summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-05-26 11:14:13 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-05-26 11:14:13 +0000
commit55d60d4e76ceb3cd789785d2f7d6ea0fc21f89f5 (patch)
treeb5ea16f82b3acdb0534cf8e8710324a20d3647bf /firmware
parent1c967b788e324ce648928326efa2fe8a1789987d (diff)
downloadrockbox-55d60d4e76ceb3cd789785d2f7d6ea0fc21f89f5.tar.gz
rockbox-55d60d4e76ceb3cd789785d2f7d6ea0fc21f89f5.tar.bz2
rockbox-55d60d4e76ceb3cd789785d2f7d6ea0fc21f89f5.zip
as3525v2: no need to set PMU_GATE bit (bit 3) in PMU_enable register when reading
It's only needed when we'll write to the selected register git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26309 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/as3525/ascodec-target.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/ascodec-target.h b/firmware/target/arm/as3525/ascodec-target.h
index 8ce9a428d3..d3d095c365 100644
--- a/firmware/target/arm/as3525/ascodec-target.h
+++ b/firmware/target/arm/as3525/ascodec-target.h
@@ -131,7 +131,7 @@ static inline int ascodec_read_pmu(unsigned int index, unsigned int subreg)
/* we disable interrupts to make sure no operation happen on the i2c bus
* between selecting the sub register and reading it */
int oldstatus = disable_irq_save();
- ascodec_write(AS3543_PMU_ENABLE, 8|subreg);
+ ascodec_write(AS3543_PMU_ENABLE, subreg);
int ret = ascodec_read(index);
restore_irq(oldstatus);
return ret;