From e8da7e6b15674b55b8a38c23da2303fd424c5467 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Tue, 19 Jul 2005 07:04:40 +0000 Subject: 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 --- firmware/drivers/power.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'firmware/drivers/power.c') 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); -- cgit v1.2.3