Move sdmmc init as NAND can be used before any FS is inited

This commit is contained in:
Aurora 2016-06-07 17:47:34 +02:00
parent 3bf029ad9c
commit 08b48dddb8
2 changed files with 1 additions and 7 deletions

View File

@ -37,13 +37,6 @@ DSTATUS disk_initialize (
BYTE pdrv /* Physical drive nmuber to identify the drive */
)
{
static u32 sdmmcInited = 0;
if(!sdmmcInited)
{
sdmmc_sdcard_init();
sdmmcInited = 1;
}
if(pdrv == CTRNAND)
ctrNandInit();

View File

@ -38,6 +38,7 @@ u32 console;
void main(void)
{
initScreens();
sdmmc_sdcard_init();
//Determine if booting with A9LH
u32 a9lhBoot = !PDN_SPI_CNT;