From 054447f9e6037e4feb1a4c4313bd0afd4eb382a6 Mon Sep 17 00:00:00 2001 From: Michael Giacomelli Date: Sun, 10 Feb 2008 05:39:20 +0000 Subject: 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 --- firmware/drivers/audio/as3514.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'firmware/drivers/audio') 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) DEV_RS |= DEV_I2S; DEV_RS &=~DEV_I2S; - /* device enable */ - DEV_EN |= (DEV_I2S | 0x7); + /* I2S device reset */ + DEV_RS |= DEV_I2S; + DEV_RS &=~DEV_I2S; + + /* I2S device enable */ + DEV_EN |= DEV_I2S; /* enable external dev clock clocks */ - DEV_EN |= 0x2; + DEV_EN |= DEV_EXTCLOCKS; /* external dev clock to 24MHz */ outl(inl(0x70000018) & ~0xc, 0x70000018); -- cgit v1.2.3