Revision 751c6a17 hw/omap2.c
b/hw/omap2.c | ||
---|---|---|
4496 | 4496 |
qemu_irq *cpu_irq; |
4497 | 4497 |
qemu_irq dma_irqs[4]; |
4498 | 4498 |
omap_clk gpio_clks[4]; |
4499 |
int sdindex;
|
|
4499 |
DriveInfo *dinfo;
|
|
4500 | 4500 |
int i; |
4501 | 4501 |
|
4502 | 4502 |
/* Core */ |
... | ... | |
4645 | 4645 |
s->sdrc = omap_sdrc_init(0x68009000); |
4646 | 4646 |
s->gpmc = omap_gpmc_init(0x6800a000, s->irq[0][OMAP_INT_24XX_GPMC_IRQ]); |
4647 | 4647 |
|
4648 |
sdindex = drive_get_index(IF_SD, 0, 0);
|
|
4649 |
if (sdindex == -1) {
|
|
4648 |
dinfo = drive_get(IF_SD, 0, 0);
|
|
4649 |
if (!dinfo) {
|
|
4650 | 4650 |
fprintf(stderr, "qemu: missing SecureDigital device\n"); |
4651 | 4651 |
exit(1); |
4652 | 4652 |
} |
4653 |
s->mmc = omap2_mmc_init(omap_l4tao(s->l4, 9), drives_table[sdindex].bdrv,
|
|
4653 |
s->mmc = omap2_mmc_init(omap_l4tao(s->l4, 9), dinfo->bdrv,
|
|
4654 | 4654 |
s->irq[0][OMAP_INT_24XX_MMC_IRQ], |
4655 | 4655 |
&s->drq[OMAP24XX_DMA_MMC1_TX], |
4656 | 4656 |
omap_findclk(s, "mmc_fclk"), omap_findclk(s, "mmc_iclk")); |
Also available in: Unified diff