mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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>
This commit is contained in:
parent
95499a1d28
commit
b651fc6fd8
2 changed files with 34 additions and 2 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue