aboutsummaryrefslogtreecommitdiff
path: root/hw/mainstone.c
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2011-03-04 03:54:59 +0300
committerAndrzej Zaborowski <balrog@zabor.org>2011-03-10 03:38:13 +0100
commitb651fc6fd89365d0cdeb923e69be5611c43cbbe8 (patch)
treeec2d133f70a5f784405eec9c93b5e0c50f16fecb /hw/mainstone.c
parent95499a1d28f1f6255d7d74d2aaeaa2e7447b2b26 (diff)
mainstone: PCMCIA support
Extend mst_fpga and mainstone with logic to support PCMCIA attachment (IRQs, status regs). Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
Diffstat (limited to 'hw/mainstone.c')
-rw-r--r--hw/mainstone.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/mainstone.c b/hw/mainstone.c
index 8970dd8e41..50691ca41e 100644
--- a/hw/mainstone.c
+++ b/hw/mainstone.c
@@ -149,6 +149,13 @@ static void mainstone_common_init(ram_addr_t ram_size,
/* MMC/SD host */
pxa2xx_mmci_handlers(cpu->mmc, NULL, qdev_get_gpio_in(mst_irq, MMC_IRQ));
+ pxa2xx_pcmcia_set_irq_cb(cpu->pcmcia[0],
+ qdev_get_gpio_in(mst_irq, S0_IRQ),
+ qdev_get_gpio_in(mst_irq, S0_CD_IRQ));
+ pxa2xx_pcmcia_set_irq_cb(cpu->pcmcia[1],
+ qdev_get_gpio_in(mst_irq, S1_IRQ),
+ qdev_get_gpio_in(mst_irq, S1_CD_IRQ));
+
smc91c111_init(&nd_table[0], MST_ETH_PHYS,
qdev_get_gpio_in(mst_irq, ETHERNET_IRQ));