summaryrefslogtreecommitdiff
path: root/firmware/export/pp5020.h
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2008-02-10 05:39:20 +0000
committerMichael Giacomelli <giac2000@hotmail.com>2008-02-10 05:39:20 +0000
commit054447f9e6037e4feb1a4c4313bd0afd4eb382a6 (patch)
tree57d78a645d2700d78a66f1807cc26dca9b6c45c9 /firmware/export/pp5020.h
parent2b3136e1f350721fa65cc304cad7a00504390850 (diff)
downloadrockbox-054447f9e6037e4feb1a4c4313bd0afd4eb382a6.tar.gz
rockbox-054447f9e6037e4feb1a4c4313bd0afd4eb382a6.zip
Commit FS#8379 by Andree Buschmann. Disables much of the remaining unneeded hardware on PP50xx targets (Ipods, Sansa, H10s, etc) resulting in a large savings in power and consequent increase in battery life. Results vary from target to target and from codec to codec, but we now approach the OF runtime on several PP devices. For now, leave base CPU clock at 30MHz, although further savings is possible with some codecs if clock is reduced. Additionally, fix battery capacity on c200 and use my measurements to improve runtime estimation for Sandisk targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16259 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/pp5020.h')
-rw-r--r--firmware/export/pp5020.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/firmware/export/pp5020.h b/firmware/export/pp5020.h
index 845c89c616..0dcd7b362d 100644
--- a/firmware/export/pp5020.h
+++ b/firmware/export/pp5020.h
@@ -132,7 +132,9 @@
132#define DEV_EN (*(volatile unsigned long *)(0x6000600c)) 132#define DEV_EN (*(volatile unsigned long *)(0x6000600c))
133#define DEV_EN2 (*(volatile unsigned long *)(0x60006010)) 133#define DEV_EN2 (*(volatile unsigned long *)(0x60006010))
134 134
135#define DEV_EXTCLOCKS 0x00000002
135#define DEV_SYSTEM 0x00000004 136#define DEV_SYSTEM 0x00000004
137#define DEV_USB0 0x00000008
136#define DEV_SER0 0x00000040 138#define DEV_SER0 0x00000040
137#define DEV_SER1 0x00000080 139#define DEV_SER1 0x00000080
138#define DEV_I2S 0x00000800 140#define DEV_I2S 0x00000800
@@ -140,7 +142,8 @@
140#define DEV_ATA 0x00004000 142#define DEV_ATA 0x00004000
141#define DEV_OPTO 0x00010000 143#define DEV_OPTO 0x00010000
142#define DEV_PIEZO 0x00010000 144#define DEV_PIEZO 0x00010000
143#define DEV_USB 0x00400000 145#define DEV_PWM 0x00020000
146#define DEV_USB1 0x00400000
144#define DEV_FIREWIRE 0x00800000 147#define DEV_FIREWIRE 0x00800000
145#define DEV_IDE0 0x02000000 148#define DEV_IDE0 0x02000000
146#define DEV_LCD 0x04000000 149#define DEV_LCD 0x04000000
@@ -332,6 +335,8 @@
332#define XMB_NOR_CFG (*(volatile unsigned long *)(0x70000038)) 335#define XMB_NOR_CFG (*(volatile unsigned long *)(0x70000038))
333#define XMB_RAM_CFG (*(volatile unsigned long *)(0x7000003c)) 336#define XMB_RAM_CFG (*(volatile unsigned long *)(0x7000003c))
334 337
338#define INIT_BUTTONS 0x00040000
339#define INIT_PLL 0x40000000
335#define INIT_USB 0x80000000 340#define INIT_USB 0x80000000
336 341
337/* 32 bit GPO port */ 342/* 32 bit GPO port */