diff options
author | Michael Giacomelli <giac2000@hotmail.com> | 2008-02-10 05:39:20 +0000 |
---|---|---|
committer | Michael Giacomelli <giac2000@hotmail.com> | 2008-02-10 05:39:20 +0000 |
commit | 054447f9e6037e4feb1a4c4313bd0afd4eb382a6 (patch) | |
tree | 57d78a645d2700d78a66f1807cc26dca9b6c45c9 /firmware/drivers/audio | |
parent | 2b3136e1f350721fa65cc304cad7a00504390850 (diff) | |
download | rockbox-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/drivers/audio')
-rw-r--r-- | firmware/drivers/audio/as3514.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/firmware/drivers/audio/as3514.c b/firmware/drivers/audio/as3514.c index 2dc1513668..80ada46f80 100644 --- a/firmware/drivers/audio/as3514.c +++ b/firmware/drivers/audio/as3514.c | |||
@@ -146,11 +146,15 @@ void audiohw_init(void) | |||
146 | DEV_RS |= DEV_I2S; | 146 | DEV_RS |= DEV_I2S; |
147 | DEV_RS &=~DEV_I2S; | 147 | DEV_RS &=~DEV_I2S; |
148 | 148 | ||
149 | /* device enable */ | 149 | /* I2S device reset */ |
150 | DEV_EN |= (DEV_I2S | 0x7); | 150 | DEV_RS |= DEV_I2S; |
151 | DEV_RS &=~DEV_I2S; | ||
152 | |||
153 | /* I2S device enable */ | ||
154 | DEV_EN |= DEV_I2S; | ||
151 | 155 | ||
152 | /* enable external dev clock clocks */ | 156 | /* enable external dev clock clocks */ |
153 | DEV_EN |= 0x2; | 157 | DEV_EN |= DEV_EXTCLOCKS; |
154 | 158 | ||
155 | /* external dev clock to 24MHz */ | 159 | /* external dev clock to 24MHz */ |
156 | outl(inl(0x70000018) & ~0xc, 0x70000018); | 160 | outl(inl(0x70000018) & ~0xc, 0x70000018); |