diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-07-19 07:04:40 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-07-19 07:04:40 +0000 |
commit | e8da7e6b15674b55b8a38c23da2303fd424c5467 (patch) | |
tree | 72cbf6f502b452137b01691c36d07961489dc4be /firmware/drivers/power.c | |
parent | 3c82b84d5253337a9aa3a51b2e80c70a1c8301cc (diff) | |
download | rockbox-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/drivers/power.c')
-rw-r--r-- | firmware/drivers/power.c | 6 |
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) or_l(0x00080000, &GPIO1_ENABLE); or_l(0x00080000, &GPIO1_FUNCTION); -#ifdef BOOTLOADER - /* Hard drive power default = off in bootloader*/ - or_l(0x80000000, &GPIO_OUT); +#ifndef BOOTLOADER + /* The boot loader controls the power */ + ide_power_enable(true); #endif or_l(0x80000000, &GPIO_ENABLE); or_l(0x80000000, &GPIO_FUNCTION); |