summaryrefslogtreecommitdiffstats
path: root/flash
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2003-12-03 01:03:54 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2003-12-03 01:03:54 +0000
commit44298163ba2afb0d5506b67e163a655c44506295 (patch)
treeae4192b5028f4c140a9e22ec2147eefac208a1c1 /flash
parent99c218a2724788d78d42217d9a685f2b2163a31b (diff)
downloadrockbox-44298163ba2afb0d5506b67e163a655c44506295.tar.gz
rockbox-44298163ba2afb0d5506b67e163a655c44506295.tar.bz2
rockbox-44298163ba2afb0d5506b67e163a655c44506295.zip
No more spinning disk while charging flashed FM+V2 (you need the new bootloader to utilize it). ToDo: remove now false voltage reading from charging screen.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4095 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'flash')
-rw-r--r--flash/bootloader/bootloader.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/flash/bootloader/bootloader.c b/flash/bootloader/bootloader.c
index 7179bbef95..543a950129 100644
--- a/flash/bootloader/bootloader.c
+++ b/flash/bootloader/bootloader.c
@@ -139,8 +139,9 @@ void PlatformInit(void)
PBDR |= 0x20; // set PB5 to keep power (fixes the ON-holding problem)
PBIOR |= 0x20; // make PB5 an output
if (ReadADC(0) < 0x1FF) // charger plugged?
- {
- // how do we switch this off?
+ { // switch off the HD, else a flat battery may not start
+ PACR2 &= 0xFBFF; // GPIO for PA5
+ PAIOR |= 0x20; // make PA5 an output (low by default)
}
#endif