summaryrefslogtreecommitdiff
path: root/firmware/target/arm/i2c-pp5020.c
diff options
context:
space:
mode:
authorBarry Wardell <rockbox@barrywardell.net>2007-01-27 15:20:30 +0000
committerBarry Wardell <rockbox@barrywardell.net>2007-01-27 15:20:30 +0000
commitadc349891e03c6288f1434351b2cd640356580e3 (patch)
treebedba03165e88e40156a7f2a089fc12dc0ece8d1 /firmware/target/arm/i2c-pp5020.c
parent5e765b2ea2962b86c460a67968d4977f3aa55ca3 (diff)
downloadrockbox-adc349891e03c6288f1434351b2cd640356580e3.tar.gz
rockbox-adc349891e03c6288f1434351b2cd640356580e3.zip
Clean up PP5002 I2C code (no functional changes):
Move into target tree. Use #defines instead of inb/outb. Also restore comments in PP5020 I2C code. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12124 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/i2c-pp5020.c')
-rw-r--r--firmware/target/arm/i2c-pp5020.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/i2c-pp5020.c b/firmware/target/arm/i2c-pp5020.c
index 95a677ea01..ebd0318f0b 100644
--- a/firmware/target/arm/i2c-pp5020.c
+++ b/firmware/target/arm/i2c-pp5020.c
@@ -185,9 +185,9 @@ void i2c_init(void)
185 GPIOC_ENABLE &= ~0x20; 185 GPIOC_ENABLE &= ~0x20;
186#endif 186#endif
187 187
188 DEV_EN |= DEV_I2C; 188 DEV_EN |= DEV_I2C; /* Enable I2C */
189 DEV_RS |= DEV_I2C; 189 DEV_RS |= DEV_I2C; /* Start I2C Reset */
190 DEV_RS &=~DEV_I2C; 190 DEV_RS &=~DEV_I2C; /* End I2C Reset */
191 191
192 outl(0x0, 0x600060a4); 192 outl(0x0, 0x600060a4);
193 outl(0x80 | (0 << 8), 0x600060a4); 193 outl(0x80 | (0 << 8), 0x600060a4);