summaryrefslogtreecommitdiff
path: root/hw/omap_gpmc.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2011-08-28 16:22:20 +0000
committerPeter Maydell <peter.maydell@linaro.org>2011-08-28 16:37:13 +0000
commiteee0a1c67e46a22e7205c2240c4eaab12a9c6f72 (patch)
tree7a3ee7523bc368d7c596e8189395abd32154d249 /hw/omap_gpmc.c
parentef20677ca654f0d6e848edf93a9975b350fec2b7 (diff)
downloadqemu-eee0a1c67e46a22e7205c2240c4eaab12a9c6f72.tar.gz
qemu-eee0a1c67e46a22e7205c2240c4eaab12a9c6f72.tar.bz2
qemu-eee0a1c67e46a22e7205c2240c4eaab12a9c6f72.zip
omap: Wire up the DMA request line to the GPMC
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/omap_gpmc.c')
-rw-r--r--hw/omap_gpmc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hw/omap_gpmc.c b/hw/omap_gpmc.c
index 158c0970f9..be309fefe6 100644
--- a/hw/omap_gpmc.c
+++ b/hw/omap_gpmc.c
@@ -27,6 +27,7 @@
/* General-Purpose Memory Controller */
struct omap_gpmc_s {
qemu_irq irq;
+ qemu_irq drq;
MemoryRegion iomem;
int accept_256;
@@ -564,7 +565,8 @@ static const MemoryRegionOps omap_gpmc_ops = {
};
struct omap_gpmc_s *omap_gpmc_init(struct omap_mpu_state_s *mpu,
- target_phys_addr_t base, qemu_irq irq)
+ target_phys_addr_t base,
+ qemu_irq irq, qemu_irq drq)
{
int cs;
struct omap_gpmc_s *s = (struct omap_gpmc_s *)
@@ -574,6 +576,7 @@ struct omap_gpmc_s *omap_gpmc_init(struct omap_mpu_state_s *mpu,
memory_region_add_subregion(get_system_memory(), base, &s->iomem);
s->irq = irq;
+ s->drq = drq;
s->accept_256 = cpu_is_omap3630(mpu);
s->revision = cpu_class_omap3(mpu) ? 0x50 : 0x20;
omap_gpmc_reset(s);