ppc4xx: Cleanup PPC4xx I2C infrastructure
authorStefan Roese <sr@denx.de>
Thu, 19 Nov 2009 13:03:17 +0000 (14:03 +0100)
committerStefan Roese <sr@denx.de>
Mon, 23 Nov 2009 15:27:02 +0000 (16:27 +0100)
commiteb5eb2b0f744f0cba405160c5d01335c40f09acf
treeba637d27b660603fdf4b5f7092172aa621bfaab3
parentb2f618f2150b15b2674f11d09e1c0fdfe460c1cd
ppc4xx: Cleanup PPC4xx I2C infrastructure

This patch cleans up the PPC4xx I2C intrastructure:

- Use C struct to describe the I2C registers instead of defines
- Coding style cleanup (braces, whitespace, comments, line length)
- Extract common code from i2c_read() and i2c_write()
- Remove unneeded IIC defines from ppc405.h & ppc440.h

Signed-off-by: Stefan Roese <sr@denx.de>
cpu/ppc4xx/i2c.c
include/4xx_i2c.h
include/ppc405.h
include/ppc440.h