forked from len0rd/rockbox
Chip selects for internal & external card were reversed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5098 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2d875f83e6
commit
56cbda370d
1 changed files with 2 additions and 2 deletions
|
@ -281,12 +281,12 @@ int ata_init(void)
|
||||||
if(adc_read(ADC_MMC_SWITCH) < 0x200)
|
if(adc_read(ADC_MMC_SWITCH) < 0x200)
|
||||||
{ /* MMC inserted */
|
{ /* MMC inserted */
|
||||||
PADR &= ~0x1000; /* clear PA12 */
|
PADR &= ~0x1000; /* clear PA12 */
|
||||||
PADR &= ~0x0400; /* chip select internal flash */
|
PADR &= ~0x0200; /* chip select external flash */
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{ /* no MMC, use internal memory */
|
{ /* no MMC, use internal memory */
|
||||||
PADR |= 0x1000; /* set PA12 */
|
PADR |= 0x1000; /* set PA12 */
|
||||||
PADR &= ~0x0200; /* chip select external flash */
|
PADR &= ~0x0400; /* chip select internal flash */
|
||||||
}
|
}
|
||||||
|
|
||||||
sleeping = false;
|
sleeping = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue