summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2004-10-01 16:57:54 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2004-10-01 16:57:54 +0000
commitc4b326c215120acd0e28b311301ef748094b73e8 (patch)
treeb1b900db0c03163cf7d6c14ff3a4ce8710ce9a4c
parent47ba627f61e3a41bfb3c9458a8f7a684a45ac05a (diff)
downloadrockbox-c4b326c215120acd0e28b311301ef748094b73e8.zip
rockbox-c4b326c215120acd0e28b311301ef748094b73e8.tar.gz
rockbox-c4b326c215120acd0e28b311301ef748094b73e8.tar.bz2
rockbox-c4b326c215120acd0e28b311301ef748094b73e8.tar.xz
Ondio PACR inits for cold start
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5141 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/drivers/ata_mmc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/drivers/ata_mmc.c b/firmware/drivers/ata_mmc.c
index 159b007..c114743 100644
--- a/firmware/drivers/ata_mmc.c
+++ b/firmware/drivers/ata_mmc.c
@@ -585,6 +585,7 @@ int ata_soft_reset(void)
void ata_enable(bool on)
{
PBCR1 &= ~0x0CF0; /* PB13, PB11 and PB10 become GPIOs, if not modified below */
+ PACR2 &= ~0x4000; /* use PA7 (bridge reset) as GPIO */
if (on)
{
PBCR1 |= 0x08A0; /* as SCK1, TxD1, RxD1 */
@@ -607,6 +608,8 @@ int ata_init(void)
led(false);
/* Port setup */
+ PACR1 &= ~0x0F00; /* GPIO function for PA12, /IRQ1 for PA13 */
+ PACR1 |= 0x0400;
PADR |= 0x0680; /* set all the selects + reset high (=inactive) */
PAIOR |= 0x1680; /* make outputs for them and the PA12 clock gate */
@@ -638,3 +641,4 @@ int ata_init(void)
}
#endif /* #ifdef HAVE_MMC */
+