aboutsummaryrefslogtreecommitdiff
path: root/hw/puv3.c
diff options
context:
space:
mode:
authorGuan Xuetao <gxt@mprc.pku.edu.cn>2012-08-10 14:42:32 +0800
committerBlue Swirl <blauwirbel@gmail.com>2012-08-11 09:37:01 +0000
commit1ea3489963a9eb20f3c2312224e2638b79256f84 (patch)
treee857b9fc350b0bb3ff3a28ff97bf900562acfbbd /hw/puv3.c
parentf716c1973ac97d3838212d16b94dff69becf3d67 (diff)
unicore32-softmmu: Add puv3 dma support
This patch adds puv3 dma (Direct Memory Access) support, include dma device simulation for kernel booting. v1->v2: Add initialization to ret in puv3_dma_read. Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/puv3.c')
-rw-r--r--hw/puv3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/puv3.c b/hw/puv3.c
index 3a14b27487..9acfc5a38b 100644
--- a/hw/puv3.c
+++ b/hw/puv3.c
@@ -49,6 +49,7 @@ static void puv3_soc_init(CPUUniCore32State *env)
/* Initialize minimal necessary devices for kernel booting */
sysbus_create_simple("puv3_pm", PUV3_PM_BASE, NULL);
+ sysbus_create_simple("puv3_dma", PUV3_DMA_BASE, NULL);
sysbus_create_simple("puv3_ost", PUV3_OST_BASE, irqs[PUV3_IRQS_OST0]);
sysbus_create_varargs("puv3_gpio", PUV3_GPIO_BASE,
irqs[PUV3_IRQS_GPIOLOW0], irqs[PUV3_IRQS_GPIOLOW1],