summaryrefslogtreecommitdiffstats
path: root/firmware/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers')
-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)
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);