diff options
author | Barry Wardell <rockbox@barrywardell.net> | 2006-09-20 23:21:59 +0000 |
---|---|---|
committer | Barry Wardell <rockbox@barrywardell.net> | 2006-09-20 23:21:59 +0000 |
commit | e63e62b2a1d849b9a965e989b3ce18576c0ac521 (patch) | |
tree | 4a992431717e4ba4218f1da6feb0e9be01165215 /firmware/export/pp5020.h | |
parent | 9acc450e716b0c2accfa3922aba91cb707d4ae14 (diff) | |
download | rockbox-e63e62b2a1d849b9a965e989b3ce18576c0ac521.tar.gz rockbox-e63e62b2a1d849b9a965e989b3ce18576c0ac521.zip |
Detect charger connected on H10. No need to sleep(HZ) when powering off.
More sensible USB support for H10: plugging in puts it into USB charging mode and leaves Rockbox usable, holding 'O' while pluggin in the USB cable will reboot the H10 (continuing to hold 'O' starts it up in UMS mode), holding any other button brings up the USB screen as previously.
Implement system_reboot() for all PP5020 devices.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11015 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/pp5020.h')
-rw-r--r-- | firmware/export/pp5020.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/export/pp5020.h b/firmware/export/pp5020.h index ccb49a0d90..37d8882519 100644 --- a/firmware/export/pp5020.h +++ b/firmware/export/pp5020.h | |||
@@ -125,6 +125,8 @@ | |||
125 | #define DEV_RS (*(volatile unsigned long *)(0x60006004)) | 125 | #define DEV_RS (*(volatile unsigned long *)(0x60006004)) |
126 | #define DEV_EN (*(volatile unsigned long *)(0x6000600c)) | 126 | #define DEV_EN (*(volatile unsigned long *)(0x6000600c)) |
127 | 127 | ||
128 | #define DEV_SYSTEM 0x4 | ||
129 | |||
128 | #define TIMER1_CFG (*(volatile unsigned long *)(0x60005000)) | 130 | #define TIMER1_CFG (*(volatile unsigned long *)(0x60005000)) |
129 | #define TIMER1_VAL (*(volatile unsigned long *)(0x60005004)) | 131 | #define TIMER1_VAL (*(volatile unsigned long *)(0x60005004)) |
130 | #define TIMER2_CFG (*(volatile unsigned long *)(0x60005008)) | 132 | #define TIMER2_CFG (*(volatile unsigned long *)(0x60005008)) |