From adc349891e03c6288f1434351b2cd640356580e3 Mon Sep 17 00:00:00 2001 From: Barry Wardell Date: Sat, 27 Jan 2007 15:20:30 +0000 Subject: 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 --- firmware/target/arm/i2c-pp5020.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'firmware/target/arm/i2c-pp5020.c') 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) GPIOC_ENABLE &= ~0x20; #endif - DEV_EN |= DEV_I2C; - DEV_RS |= DEV_I2C; - DEV_RS &=~DEV_I2C; + DEV_EN |= DEV_I2C; /* Enable I2C */ + DEV_RS |= DEV_I2C; /* Start I2C Reset */ + DEV_RS &=~DEV_I2C; /* End I2C Reset */ outl(0x0, 0x600060a4); outl(0x80 | (0 << 8), 0x600060a4); -- cgit v1.2.3