summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2008-11-12 04:41:22 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2008-11-12 04:41:22 +0000
commitd922f31a09f391d2aac26b421e75611f83972b90 (patch)
tree7b4a2a208d1302da3a90b31e3fe219f51a5542af /firmware
parent18316f670aceab5e104dc30fa1149daee894539c (diff)
Fix a bug when shutting down the player with the charger plugged in with the flashed bootloader
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19097 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/s3c2440/gigabeat-fx/power-meg-fx.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/target/arm/s3c2440/gigabeat-fx/power-meg-fx.c b/firmware/target/arm/s3c2440/gigabeat-fx/power-meg-fx.c
index 544869ab6c..c1c0595262 100644
--- a/firmware/target/arm/s3c2440/gigabeat-fx/power-meg-fx.c
+++ b/firmware/target/arm/s3c2440/gigabeat-fx/power-meg-fx.c
@@ -70,6 +70,11 @@ void power_off(void)
_backlight_off();
_buttonlight_off();
sleep(HZ);
+
+ /* Do this to allow the drive to properly reset when player restarts
+ * immediately without running OF shutdown.
+ */
+ GPGCON&=~0x00300000;
/* Rockbox never properly shutdown the player. When the sleep bit is set
* the player actually wakes up in some type of "zombie" state