diff options
-rw-r--r-- | firmware/target/arm/ipod/power-ipod.c | 29 | ||||
-rw-r--r-- | manual/rockbox_interface/main.tex | 6 |
2 files changed, 10 insertions, 25 deletions
diff --git a/firmware/target/arm/ipod/power-ipod.c b/firmware/target/arm/ipod/power-ipod.c index 14c8bf21e1..4266aad896 100644 --- a/firmware/target/arm/ipod/power-ipod.c +++ b/firmware/target/arm/ipod/power-ipod.c | |||
@@ -29,9 +29,6 @@ | |||
29 | #include "usb.h" | 29 | #include "usb.h" |
30 | #include "lcd.h" | 30 | #include "lcd.h" |
31 | #include "string.h" | 31 | #include "string.h" |
32 | #if CONFIG_CPU == PP5022 || CONFIG_CPU == PP5020 | ||
33 | #include "rtc.h" | ||
34 | #endif | ||
35 | 32 | ||
36 | void power_init(void) | 33 | void power_init(void) |
37 | { | 34 | { |
@@ -167,26 +164,20 @@ void power_off(void) | |||
167 | #endif | 164 | #endif |
168 | 165 | ||
169 | #ifndef BOOTLOADER | 166 | #ifndef BOOTLOADER |
170 | #if CONFIG_CPU == PP5022 || CONFIG_CPU == PP5020 | 167 | #ifdef IPOD_1G2G |
171 | /* When shut down by OF, wakeup via alarm is enabled. This resets the | ||
172 | alarm time so an unintended wakeup does not occur. */ | ||
173 | if (!(pcf50605_wakeup_flags & 0x10)) | ||
174 | rtc_enable_alarm(false); | ||
175 | #endif | ||
176 | #if defined(IPOD_1G2G) | ||
177 | /* we cannot turn off the 1st gen/ 2nd gen yet. Need to figure out sleep mode. */ | 168 | /* we cannot turn off the 1st gen/ 2nd gen yet. Need to figure out sleep mode. */ |
178 | system_reboot(); | 169 | system_reboot(); |
179 | #elif CONFIG_CPU == PP5022 | ||
180 | /* The OF in flash assumes boot failed because the battery is low. | ||
181 | If there is no charger connected, this leads to a shutdown. | ||
182 | */ | ||
183 | memcpy((void *)(0x4001ff00+8), "booting!", 8); | ||
184 | system_reboot(); | ||
185 | #elif CONFIG_CPU == PP5020 | ||
186 | memcpy((void *)(0x40017f00+8), "booting!", 8); | ||
187 | system_reboot(); | ||
188 | #else | 170 | #else |
189 | /* We don't turn off the ipod, we put it in a deep sleep */ | 171 | /* We don't turn off the ipod, we put it in a deep sleep */ |
172 | /* Clear latter part of iram (the part used by plugins/codecs) to ensure | ||
173 | * that the OF behaves properly on boot. There is some kind of boot | ||
174 | * failure flag there which otherwise may not be cleared. | ||
175 | */ | ||
176 | #if CONFIG_CPU == PP5022 | ||
177 | memset((void*)0x4000c000, 0, 0x14000); | ||
178 | #elif CONFIG_CPU == PP5020 | ||
179 | memset((void*)0x4000c000, 0, 0xc000); | ||
180 | #endif | ||
190 | pcf50605_standby_mode(); | 181 | pcf50605_standby_mode(); |
191 | #endif | 182 | #endif |
192 | #endif | 183 | #endif |
diff --git a/manual/rockbox_interface/main.tex b/manual/rockbox_interface/main.tex index 3103883a4d..9a69dde57a 100644 --- a/manual/rockbox_interface/main.tex +++ b/manual/rockbox_interface/main.tex | |||
@@ -516,12 +516,6 @@ To turn on and off your Rockbox enabled \dap{} use the following keys: | |||
516 | 516 | ||
517 | \label{ref:Safeshutdown}On shutdown, Rockbox automatically saves its settings. | 517 | \label{ref:Safeshutdown}On shutdown, Rockbox automatically saves its settings. |
518 | 518 | ||
519 | \opt{ipod4g,ipodcolor,ipodvideo,ipodnano,ipodmini}{% | ||
520 | A low-battery symbol may appear briefly on the screen during shutdown. This | ||
521 | is a side effect of the shutdown process and does not mean the battery is | ||
522 | actually low. | ||
523 | }% | ||
524 | |||
525 | \opt{IRIVER_H100_PAD,IRIVER_H300_PAD,IAUDIO_X5_PAD,SANSA_E200_PAD% | 519 | \opt{IRIVER_H100_PAD,IRIVER_H300_PAD,IAUDIO_X5_PAD,SANSA_E200_PAD% |
526 | ,SANSA_C200_PAD,IRIVER_H10_PAD,IPOD_4G_PAD,GIGABEAT_PAD}{% | 520 | ,SANSA_C200_PAD,IRIVER_H10_PAD,IPOD_4G_PAD,GIGABEAT_PAD}{% |
527 | If you have problems with your settings, such as accidentally having | 521 | If you have problems with your settings, such as accidentally having |