From afbb5194d430adc0f1f3a63ea627bc93e8d17c56 Mon Sep 17 00:00:00 2001 From: balrog Date: Mon, 21 Jul 2008 20:40:22 +0000 Subject: Handle on-chip DMA controllers in one place, convert OMAP DMA to use it. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4920 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/omap1.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'hw/omap1.c') diff --git a/hw/omap1.c b/hw/omap1.c index 7dab6c8..5854500 100644 --- a/hw/omap1.c +++ b/hw/omap1.c @@ -24,6 +24,7 @@ #include "sysemu.h" #include "qemu-timer.h" #include "qemu-char.h" +#include "soc_dma.h" /* We use pc-style serial ports. */ #include "pc.h" @@ -4704,6 +4705,12 @@ struct omap_mpu_state_s *omap310_mpu_init(unsigned long sdram_size, s->port[local ].addr_valid = omap_validate_local_addr; s->port[tipb_mpui].addr_valid = omap_validate_tipb_mpui_addr; + /* Register SDRAM and SRAM DMA ports for fast transfers. */ + soc_dma_port_add_mem_ram(s->dma, + emiff_base, OMAP_EMIFF_BASE, s->sdram_size); + soc_dma_port_add_mem_ram(s->dma, + imif_base, OMAP_IMIF_BASE, s->sram_size); + s->timer[0] = omap_mpu_timer_init(0xfffec500, s->irq[0][OMAP_INT_TIMER1], omap_findclk(s, "mputim_ck")); -- cgit v1.1