diff options
author | Mark Arigo <markarigo@gmail.com> | 2009-08-01 17:51:00 +0000 |
---|---|---|
committer | Mark Arigo <markarigo@gmail.com> | 2009-08-01 17:51:00 +0000 |
commit | fc570147e66b91686aeffdf9896eb209027cf9ca (patch) | |
tree | b462ec064ef0a6e7c05dd5fd287448de0a17cfe0 /firmware/target/arm/i2c-pp.c | |
parent | 4e7517dfb1946ad8e7cbc626db2252d04dee629b (diff) | |
download | rockbox-fc570147e66b91686aeffdf9896eb209027cf9ca.tar.gz rockbox-fc570147e66b91686aeffdf9896eb209027cf9ca.zip |
Philips SA9200: initialize i2c, i2s, and as3514 as the OF does. Fixes clicks/pops heard when reading the adc.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22101 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/i2c-pp.c')
-rw-r--r-- | firmware/target/arm/i2c-pp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/target/arm/i2c-pp.c b/firmware/target/arm/i2c-pp.c index 13c8cf0a1e..60497b04b9 100644 --- a/firmware/target/arm/i2c-pp.c +++ b/firmware/target/arm/i2c-pp.c | |||
@@ -299,6 +299,13 @@ void i2c_init(void) | |||
299 | outl(0x1e, 0x600060a4); | 299 | outl(0x1e, 0x600060a4); |
300 | 300 | ||
301 | ascodec_write(AS3514_SUPERVISOR, 5); | 301 | ascodec_write(AS3514_SUPERVISOR, 5); |
302 | #elif defined(PHILIPS_SA9200) | ||
303 | outl(0x0, 0x600060a4); | ||
304 | outl(inl(0x600060a4) | 0x20, 0x600060a4); | ||
305 | |||
306 | outl(inl(0x7000c020) | 0x3, 0x7000c020); | ||
307 | outl(0x55, 0x7000c02c); | ||
308 | outl(0x54, 0x7000c030); | ||
302 | #endif | 309 | #endif |
303 | #endif | 310 | #endif |
304 | 311 | ||