i2c, ppc4xx: fix compiling KAREF and METROBOX boards.
authorHeiko Schocher <hs@denx.de>
Thu, 3 Dec 2009 10:23:17 +0000 (11:23 +0100)
committerStefan Roese <sr@denx.de>
Tue, 22 Dec 2009 04:52:48 +0000 (05:52 +0100)
commit072e754b6b9bef438fc0870318755e33051baa7d
tree43916f202637ababbd6fe5f2306e36ca7855e32b
parentbb3bcfa2426cc6a0aecec7270e3ee67ca843a125
i2c, ppc4xx: fix compiling KAREF and METROBOX boards.

commit eb5eb2b0f744f0cba405160c5d01335c40f09acf

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

breaks comiling for the KAREF and METROBOX boards.

This patch fixes this issue.

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Stefan Roese <sr@denx.de>
board/sandburst/common/ppc440gx_i2c.c
board/sandburst/common/ppc440gx_i2c.h