diff options
author | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-10-01 16:57:54 +0000 |
---|---|---|
committer | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-10-01 16:57:54 +0000 |
commit | c4b326c215120acd0e28b311301ef748094b73e8 (patch) | |
tree | b1b900db0c03163cf7d6c14ff3a4ce8710ce9a4c /firmware/drivers/ata_mmc.c | |
parent | 47ba627f61e3a41bfb3c9458a8f7a684a45ac05a (diff) | |
download | rockbox-c4b326c215120acd0e28b311301ef748094b73e8.tar.gz rockbox-c4b326c215120acd0e28b311301ef748094b73e8.zip |
Ondio PACR inits for cold start
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5141 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/ata_mmc.c')
-rw-r--r-- | firmware/drivers/ata_mmc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/drivers/ata_mmc.c b/firmware/drivers/ata_mmc.c index 159b007f64..c114743d27 100644 --- a/firmware/drivers/ata_mmc.c +++ b/firmware/drivers/ata_mmc.c | |||
@@ -585,6 +585,7 @@ int ata_soft_reset(void) | |||
585 | void ata_enable(bool on) | 585 | void ata_enable(bool on) |
586 | { | 586 | { |
587 | PBCR1 &= ~0x0CF0; /* PB13, PB11 and PB10 become GPIOs, if not modified below */ | 587 | PBCR1 &= ~0x0CF0; /* PB13, PB11 and PB10 become GPIOs, if not modified below */ |
588 | PACR2 &= ~0x4000; /* use PA7 (bridge reset) as GPIO */ | ||
588 | if (on) | 589 | if (on) |
589 | { | 590 | { |
590 | PBCR1 |= 0x08A0; /* as SCK1, TxD1, RxD1 */ | 591 | PBCR1 |= 0x08A0; /* as SCK1, TxD1, RxD1 */ |
@@ -607,6 +608,8 @@ int ata_init(void) | |||
607 | led(false); | 608 | led(false); |
608 | 609 | ||
609 | /* Port setup */ | 610 | /* Port setup */ |
611 | PACR1 &= ~0x0F00; /* GPIO function for PA12, /IRQ1 for PA13 */ | ||
612 | PACR1 |= 0x0400; | ||
610 | PADR |= 0x0680; /* set all the selects + reset high (=inactive) */ | 613 | PADR |= 0x0680; /* set all the selects + reset high (=inactive) */ |
611 | PAIOR |= 0x1680; /* make outputs for them and the PA12 clock gate */ | 614 | PAIOR |= 0x1680; /* make outputs for them and the PA12 clock gate */ |
612 | 615 | ||
@@ -638,3 +641,4 @@ int ata_init(void) | |||
638 | } | 641 | } |
639 | 642 | ||
640 | #endif /* #ifdef HAVE_MMC */ | 643 | #endif /* #ifdef HAVE_MMC */ |
644 | |||