summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-06-02 21:40:52 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-06-02 21:40:52 +0000
commit794220c116b85a68b84673e437c0939cc616ca9b (patch)
tree4b8dadfe90f133729e8f2721a058232f7a58d6b3
parente2c93176f24c77c3f08c3d075a3a2066070d1689 (diff)
downloadrockbox-794220c116b85a68b84673e437c0939cc616ca9b.tar.gz
rockbox-794220c116b85a68b84673e437c0939cc616ca9b.tar.bz2
rockbox-794220c116b85a68b84673e437c0939cc616ca9b.zip
iRiver: The hard drive power is now OFF by default
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6551 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--bootloader/main.c2
-rw-r--r--firmware/drivers/power.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/bootloader/main.c b/bootloader/main.c
index 5a1e79735b..72b7e0bc52 100644
--- a/bootloader/main.c
+++ b/bootloader/main.c
@@ -188,7 +188,7 @@ void main(void)
lcd_setfont(FONT_SYSFIXED);
- snprintf(buf, 256, "Rockboot version 1");
+ snprintf(buf, 256, "Rockboot version 2");
lcd_puts(0, line++, buf);
sleep(HZ/50); /* Allow the button driver to check the buttons */
diff --git a/firmware/drivers/power.c b/firmware/drivers/power.c
index 66e479e1ce..57b82844bb 100644
--- a/firmware/drivers/power.c
+++ b/firmware/drivers/power.c
@@ -67,7 +67,9 @@ void power_init(void)
GPIO1_OUT |= 0x00080000;
GPIO1_ENABLE |= 0x00080000;
GPIO1_FUNCTION |= 0x00080000;
-
+
+ /* Hard drive power, default = off */
+ GPIO_OUT |= 0x80000000;
GPIO_ENABLE |= 0x80000000;
GPIO_FUNCTION |= 0x80000000;
#ifdef HAVE_SPDIF_POWER