Revision 751c6a17 hw/omap1.c
b/hw/omap1.c | ||
---|---|---|
4628 | 4628 |
ram_addr_t imif_base, emiff_base; |
4629 | 4629 |
qemu_irq *cpu_irq; |
4630 | 4630 |
qemu_irq dma_irqs[6]; |
4631 |
int sdindex;
|
|
4631 |
DriveInfo *dinfo;
|
|
4632 | 4632 |
|
4633 | 4633 |
if (!core) |
4634 | 4634 |
core = "ti925t"; |
... | ... | |
4740 | 4740 |
omap_dpll_init(&s->dpll[1], 0xfffed000, omap_findclk(s, "dpll2")); |
4741 | 4741 |
omap_dpll_init(&s->dpll[2], 0xfffed100, omap_findclk(s, "dpll3")); |
4742 | 4742 |
|
4743 |
sdindex = drive_get_index(IF_SD, 0, 0);
|
|
4744 |
if (sdindex == -1) {
|
|
4743 |
dinfo = drive_get(IF_SD, 0, 0);
|
|
4744 |
if (!dinfo) {
|
|
4745 | 4745 |
fprintf(stderr, "qemu: missing SecureDigital device\n"); |
4746 | 4746 |
exit(1); |
4747 | 4747 |
} |
4748 |
s->mmc = omap_mmc_init(0xfffb7800, drives_table[sdindex].bdrv,
|
|
4748 |
s->mmc = omap_mmc_init(0xfffb7800, dinfo->bdrv,
|
|
4749 | 4749 |
s->irq[1][OMAP_INT_OQN], &s->drq[OMAP_DMA_MMC_TX], |
4750 | 4750 |
omap_findclk(s, "mmc_ck")); |
4751 | 4751 |
|
Also available in: Unified diff