From 14c97a7f6ba7267b13626de4dac538ce5bdb6748 Mon Sep 17 00:00:00 2001 From: d0k3 Date: Mon, 27 Aug 2018 00:26:46 +0200 Subject: [PATCH] sdmmc.c: Corrected OCR register value on SD init to the one from Process9 Thanks @profi200 ! --- arm9/source/nand/sdmmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arm9/source/nand/sdmmc.c b/arm9/source/nand/sdmmc.c index 40e7932..1f3d2e7 100644 --- a/arm9/source/nand/sdmmc.c +++ b/arm9/source/nand/sdmmc.c @@ -482,7 +482,7 @@ int SD_Init() do { sdmmc_send_command(&handleSD,0x10437,handleSD.initarg << 0x10); - sdmmc_send_command(&handleSD,0x10769,0x00FF8000 | temp); + sdmmc_send_command(&handleSD,0x10769,0x10100000 | temp); // Allow 150mA, 3.2-3.3V (from Process9) temp2 = 1; } while ( !(handleSD.error & 1) ); }