diff options
author | Mark Arigo <markarigo@gmail.com> | 2009-06-19 03:41:52 +0000 |
---|---|---|
committer | Mark Arigo <markarigo@gmail.com> | 2009-06-19 03:41:52 +0000 |
commit | df8f64d3a4d927a6880040c70ab2fee93f4c901c (patch) | |
tree | 85d192c9ef164fd973010ae0b6657fee17fde546 /firmware/target/arm/ata-sd-pp.c | |
parent | a61196fd3ae5ebd71134da8eb10e3189403c116f (diff) | |
download | rockbox-df8f64d3a4d927a6880040c70ab2fee93f4c901c.tar.gz rockbox-df8f64d3a4d927a6880040c70ab2fee93f4c901c.zip |
Philips SA9200: 1) reset all devices in system_init, 2) revert an earlier change in the sd driver, 3) properly detect the charger, 4) add lcd register defines.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21347 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/ata-sd-pp.c')
-rw-r--r-- | firmware/target/arm/ata-sd-pp.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/firmware/target/arm/ata-sd-pp.c b/firmware/target/arm/ata-sd-pp.c index 9f0263a411..cd3b5ca3f9 100644 --- a/firmware/target/arm/ata-sd-pp.c +++ b/firmware/target/arm/ata-sd-pp.c | |||
@@ -666,21 +666,12 @@ static void sd_init_device(int card_no) | |||
666 | sd_card_mux(card_no); | 666 | sd_card_mux(card_no); |
667 | 667 | ||
668 | /* Init NAND */ | 668 | /* Init NAND */ |
669 | #if defined(PHILIPS_SA9200) | ||
670 | MMC_INIT_1 |= (1 << 15); | ||
671 | MMC_INIT_2 |= (1 << 15); | ||
672 | MMC_INIT_2 &= ~(3 << 12); | ||
673 | MMC_INIT_2 |= (1 << 12); | ||
674 | MMC_INIT_1 &= ~(3 << 12); | ||
675 | MMC_INIT_1 |= (1 << 12); | ||
676 | #else | ||
677 | MMC_INIT_1 |= (1 << 15); | 669 | MMC_INIT_1 |= (1 << 15); |
678 | MMC_INIT_2 |= (1 << 15); | 670 | MMC_INIT_2 |= (1 << 15); |
679 | MMC_INIT_2 &= ~(3 << 12); | 671 | MMC_INIT_2 &= ~(3 << 12); |
680 | MMC_INIT_2 |= (1 << 13); | 672 | MMC_INIT_2 |= (1 << 13); |
681 | MMC_INIT_1 &= ~(3 << 12); | 673 | MMC_INIT_1 &= ~(3 << 12); |
682 | MMC_INIT_1 |= (1 << 13); | 674 | MMC_INIT_1 |= (1 << 13); |
683 | #endif | ||
684 | 675 | ||
685 | DEV_EN |= DEV_ATA; /* Enable controller */ | 676 | DEV_EN |= DEV_ATA; /* Enable controller */ |
686 | DEV_RS |= DEV_ATA; /* Reset controller */ | 677 | DEV_RS |= DEV_ATA; /* Reset controller */ |