Loop on sdcard init. This helps if one hasn't plugged in the card

fast enough, or there's other issues that cause the first try to fail.
This commit is contained in:
Warner Losh 2007-04-02 20:26:04 +00:00
parent 1ce2bc9187
commit cf5bdd4446

View file

@ -148,8 +148,9 @@ main(void)
board_init();
EMAC_Init();
sdcard_init();
EMAC_SetMACAddress(mac);
while (sdcard_init() == 0)
printf("Looking for SD card\n");
dmadat = (void *)(0x20000000 + (16 << 20));
/* Process configuration file */