Patchwork [v3,4/4] xilinx_zynq: Added sdhci controllers

login
register
mail settings
Submitter Peter A. G. Crosthwaite
Date June 7, 2012, 5:05 a.m.
Message ID <d2bb70a6c349bded9e2990d5118cddad3484e88e.1339044751.git.peter.crosthwaite@petalogix.com>
Download mbox | patch
Permalink /patch/163467/
State New
Headers show

Comments

Peter A. G. Crosthwaite - June 7, 2012, 5:05 a.m.
Signed-off-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>
---
 hw/xilinx_zynq.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/xilinx_zynq.c b/hw/xilinx_zynq.c
index 7290c64..42b6e69 100644
--- a/hw/xilinx_zynq.c
+++ b/hw/xilinx_zynq.c
@@ -130,6 +130,18 @@  static void zynq_init(ram_addr_t ram_size, const char *boot_device,
         }
     }
 
+	{
+		dev = qdev_create(NULL, "sdhci");
+		qdev_init_nofail(dev);
+		sysbus_mmio_map(sysbus_from_qdev(dev), 0, 0xE0100000);
+		sysbus_connect_irq(sysbus_from_qdev(dev), 0, pic[56-IRQ_OFFSET]);
+
+		dev = qdev_create(NULL, "sdhci");
+		qdev_init_nofail(dev);
+		sysbus_mmio_map(sysbus_from_qdev(dev), 0, 0xE0101000);
+		sysbus_connect_irq(sysbus_from_qdev(dev), 0, pic[79-IRQ_OFFSET]);
+	}
+
     zynq_binfo.ram_size = ram_size;
     zynq_binfo.kernel_filename = kernel_filename;
     zynq_binfo.kernel_cmdline = kernel_cmdline;