Skip to content
This repository has been archived by the owner on Feb 4, 2021. It is now read-only.

Commit

Permalink
Move sdmmc init as NAND can be used before any FS is inited
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraWright committed Jun 7, 2016
1 parent 3bf029a commit 08b48dd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 0 additions & 7 deletions source/fatfs/diskio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions source/installer.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ u32 console;
void main(void)
{
initScreens();
sdmmc_sdcard_init();

//Determine if booting with A9LH
u32 a9lhBoot = !PDN_SPI_CNT;
Expand Down

0 comments on commit 08b48dd

Please sign in to comment.