summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2003-11-07 21:09:01 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2003-11-07 21:09:01 +0000
commitd9d63560fe8bbb637c60948f7b51817aa1ad1263 (patch)
treeafb3de79234ca951dc7cd93304ff4fff4da3fa49 /firmware
parent7ec1c45d7913af6cac32d5150026ceffc6704bf4 (diff)
downloadrockbox-d9d63560fe8bbb637c60948f7b51817aa1ad1263.tar.gz
rockbox-d9d63560fe8bbb637c60948f7b51817aa1ad1263.zip
a side effect in usb_enable() (writing back a "1" while reading a pulled-up input) masked a bug in power_init(), it would have turned off the disk with flash start. Became appearing while converting port access to and_b(), which touches only one byte.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4027 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/power.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/drivers/power.c b/firmware/drivers/power.c
index 14e912d89c..549624fd92 100644
--- a/firmware/drivers/power.c
+++ b/firmware/drivers/power.c
@@ -37,6 +37,7 @@ void power_init(void)
37 charger_enable(false); /* Default to charger OFF */ 37 charger_enable(false); /* Default to charger OFF */
38#endif 38#endif
39#ifdef HAVE_ATA_POWER_OFF 39#ifdef HAVE_ATA_POWER_OFF
40 or_b(0x20, &PADRL); /* leave the disk on */
40 or_b(0x20, &PAIORL); 41 or_b(0x20, &PAIORL);
41 PACR2 &= 0xFBFF; 42 PACR2 &= 0xFBFF;
42#endif 43#endif