summaryrefslogtreecommitdiff
path: root/firmware/drivers/ata_mmc.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/ata_mmc.c')
-rw-r--r--firmware/drivers/ata_mmc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/ata_mmc.c b/firmware/drivers/ata_mmc.c
index 7bff2046ce..e1439594e5 100644
--- a/firmware/drivers/ata_mmc.c
+++ b/firmware/drivers/ata_mmc.c
@@ -281,12 +281,12 @@ int ata_init(void)
if(adc_read(ADC_MMC_SWITCH) < 0x200)
{ /* MMC inserted */
PADR &= ~0x1000; /* clear PA12 */
- PADR &= ~0x0400; /* chip select internal flash */
+ PADR &= ~0x0200; /* chip select external flash */
}
else
{ /* no MMC, use internal memory */
PADR |= 0x1000; /* set PA12 */
- PADR &= ~0x0200; /* chip select external flash */
+ PADR &= ~0x0400; /* chip select internal flash */
}
sleeping = false;