summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-07-19 07:04:40 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-07-19 07:04:40 +0000
commite8da7e6b15674b55b8a38c23da2303fd424c5467 (patch)
tree72cbf6f502b452137b01691c36d07961489dc4be /firmware
parent3c82b84d5253337a9aa3a51b2e80c70a1c8301cc (diff)
downloadrockbox-e8da7e6b15674b55b8a38c23da2303fd424c5467.tar.gz
rockbox-e8da7e6b15674b55b8a38c23da2303fd424c5467.zip
iriver: let the boot loader decide when to power on the hard drive
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7191 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/power.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/drivers/power.c b/firmware/drivers/power.c
index b87aa79e0a..7d45021cab 100644
--- a/firmware/drivers/power.c
+++ b/firmware/drivers/power.c
@@ -64,9 +64,9 @@ void power_init(void)
64 or_l(0x00080000, &GPIO1_ENABLE); 64 or_l(0x00080000, &GPIO1_ENABLE);
65 or_l(0x00080000, &GPIO1_FUNCTION); 65 or_l(0x00080000, &GPIO1_FUNCTION);
66 66
67#ifdef BOOTLOADER 67#ifndef BOOTLOADER
68 /* Hard drive power default = off in bootloader*/ 68 /* The boot loader controls the power */
69 or_l(0x80000000, &GPIO_OUT); 69 ide_power_enable(true);
70#endif 70#endif
71 or_l(0x80000000, &GPIO_ENABLE); 71 or_l(0x80000000, &GPIO_ENABLE);
72 or_l(0x80000000, &GPIO_FUNCTION); 72 or_l(0x80000000, &GPIO_FUNCTION);