summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2004-09-20 22:54:13 +0000
committerJens Arnold <amiconn@rockbox.org>2004-09-20 22:54:13 +0000
commit56cbda370d2a0af777aa55e5cc2dea018625cb3e (patch)
treeb1a180a4bdd3640b8fe133fe9f5f963117aec03a /firmware
parent2d875f83e6d5c14a0faf4474d17e8740406c7649 (diff)
Chip selects for internal & external card were reversed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5098 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-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;