summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/i2c-pp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/target/arm/i2c-pp.c b/firmware/target/arm/i2c-pp.c
index fb3c89dd4a..07fa822ab3 100644
--- a/firmware/target/arm/i2c-pp.c
+++ b/firmware/target/arm/i2c-pp.c
@@ -197,6 +197,11 @@ void i2c_init(void)
197#if CONFIG_I2C == I2C_PP5020 197#if CONFIG_I2C == I2C_PP5020
198 outl(0x0, 0x600060a4); 198 outl(0x0, 0x600060a4);
199 outl(0x80 | (0 << 8), 0x600060a4); 199 outl(0x80 | (0 << 8), 0x600060a4);
200#elif CONFIG_I2C == I2C_PP5024
201 /* Sansa OF sets this to 0x20 first, communicates with the AS3514
202 then sets it to 0x23 - this still works fine though */
203 outl(0x0, 0x600060a4);
204 outl(0x23, 0x600060a4);
200#endif 205#endif
201 206
202 spinlock_init(&i2c_mutex); 207 spinlock_init(&i2c_mutex);