From c4b326c215120acd0e28b311301ef748094b73e8 Mon Sep 17 00:00:00 2001 From: Jörg Hohensohn Date: Fri, 1 Oct 2004 16:57:54 +0000 Subject: Ondio PACR inits for cold start git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5141 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/ata_mmc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'firmware/drivers/ata_mmc.c') 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) 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 */ + -- cgit v1.2.3