summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2003-06-26 21:29:13 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2003-06-26 21:29:13 +0000
commit545efb6c28e38a0f3df7c04e035b66985f3a6613 (patch)
tree5b7ae3145f6a0c1e78eab15728465f6de158dd8c /firmware
parent3019ac38b73533ac286ed08a6dd24a9c61e8f56f (diff)
downloadrockbox-545efb6c28e38a0f3df7c04e035b66985f3a6613.tar.gz
rockbox-545efb6c28e38a0f3df7c04e035b66985f3a6613.zip
port inits for cold start ability
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3764 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/ata.c5
-rw-r--r--firmware/drivers/power.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c
index b4151d0352..46c2bc8645 100644
--- a/firmware/drivers/ata.c
+++ b/firmware/drivers/ata.c
@@ -801,6 +801,11 @@ int ata_init(void)
801 801
802 led(false); 802 led(false);
803 803
804 /* Port A setup */
805 PAIOR |= 0x0200; /* output for ATA reset */
806 PADR |= 0x0200; /* release ATA reset */
807 PACR2 &= 0xBFFF; /* GPIO function for PA7 (IDE enable) */
808
804 ata_enable(true); 809 ata_enable(true);
805 810
806 if ( !initialized ) { 811 if ( !initialized ) {
diff --git a/firmware/drivers/power.c b/firmware/drivers/power.c
index b10cefef81..5121a4c4f1 100644
--- a/firmware/drivers/power.c
+++ b/firmware/drivers/power.c
@@ -63,7 +63,9 @@ void charger_enable(bool on)
63void ide_power_enable(bool on) 63void ide_power_enable(bool on)
64{ 64{
65#ifdef HAVE_ATA_POWER_OFF 65#ifdef HAVE_ATA_POWER_OFF
66 if(on) 66 PAIOR |= 0x20; /* there's no power driver init, so I have to do that here */
67
68 if(on)
67 PADR |= 0x20; 69 PADR |= 0x20;
68 else 70 else
69 PADR &= ~0x20; 71 PADR &= ~0x20;