Move sdmmc init as NAND can be used before any FS is inited
This commit is contained in:
parent
3bf029ad9c
commit
08b48dddb8
@ -37,13 +37,6 @@ DSTATUS disk_initialize (
|
|||||||
BYTE pdrv /* Physical drive nmuber to identify the drive */
|
BYTE pdrv /* Physical drive nmuber to identify the drive */
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
static u32 sdmmcInited = 0;
|
|
||||||
|
|
||||||
if(!sdmmcInited)
|
|
||||||
{
|
|
||||||
sdmmc_sdcard_init();
|
|
||||||
sdmmcInited = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(pdrv == CTRNAND)
|
if(pdrv == CTRNAND)
|
||||||
ctrNandInit();
|
ctrNandInit();
|
||||||
|
@ -38,6 +38,7 @@ u32 console;
|
|||||||
void main(void)
|
void main(void)
|
||||||
{
|
{
|
||||||
initScreens();
|
initScreens();
|
||||||
|
sdmmc_sdcard_init();
|
||||||
|
|
||||||
//Determine if booting with A9LH
|
//Determine if booting with A9LH
|
||||||
u32 a9lhBoot = !PDN_SPI_CNT;
|
u32 a9lhBoot = !PDN_SPI_CNT;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user