summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/system-target.h
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2017-10-30 22:48:50 +0100
committerWilliam Wilgus <me.theuser@yahoo.com>2018-07-25 06:03:44 +0200
commitc15af64452a03be1362ff2ee56915f5cca24a445 (patch)
treebf1b404ba27abce3786ea659340a1f68c320b77f /firmware/target/arm/as3525/system-target.h
parent6a568761c88622321b29e338acdb5b52eff6ae3e (diff)
downloadrockbox-c15af64452a03be1362ff2ee56915f5cca24a445.tar.gz
rockbox-c15af64452a03be1362ff2ee56915f5cca24a445.zip
AMS v1/v2: Fix I2C2_CSPR debug menu entry
I2c controller needs to be enabled in order to read CSPR0, CSPR1 registers function sets CGU_I2C_AUDIO_MASTER_CLOCK_ENABLE and only clears if it wasn't previously enabled Use divider set in register to calculate frequency rather than hard coded divider Change-Id: I54ecc0c1859e906c00f4c2ae8ae2424a4619df98
Diffstat (limited to 'firmware/target/arm/as3525/system-target.h')
-rw-r--r--firmware/target/arm/as3525/system-target.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/system-target.h b/firmware/target/arm/as3525/system-target.h
index aca30e52e1..5cdc573a1b 100644
--- a/firmware/target/arm/as3525/system-target.h
+++ b/firmware/target/arm/as3525/system-target.h
@@ -96,6 +96,6 @@ struct ams_sd_debug_info
96}; 96};
97 97
98void ams_sd_get_debug_info(struct ams_sd_debug_info *info); 98void ams_sd_get_debug_info(struct ams_sd_debug_info *info);
99 99void ams_i2c_get_debug_cpsr(unsigned int *i2c_cpsr);
100 100
101#endif /* SYSTEM_TARGET_H */ 101#endif /* SYSTEM_TARGET_H */