summaryrefslogtreecommitdiff
path: root/include/ppc405.h
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2009-11-19 14:03:17 +0100
committerStefan Roese <sr@denx.de>2009-11-23 16:27:02 +0100
commiteb5eb2b0f744f0cba405160c5d01335c40f09acf (patch)
treeba637d27b660603fdf4b5f7092172aa621bfaab3 /include/ppc405.h
parentb2f618f2150b15b2674f11d09e1c0fdfe460c1cd (diff)
downloadu-boot-imx-eb5eb2b0f744f0cba405160c5d01335c40f09acf.zip
u-boot-imx-eb5eb2b0f744f0cba405160c5d01335c40f09acf.tar.gz
u-boot-imx-eb5eb2b0f744f0cba405160c5d01335c40f09acf.tar.bz2
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>
Diffstat (limited to 'include/ppc405.h')
-rw-r--r--include/ppc405.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/include/ppc405.h b/include/ppc405.h
index 508c77b..bc2d051 100644
--- a/include/ppc405.h
+++ b/include/ppc405.h
@@ -566,25 +566,6 @@
#define MAL0_RCBS24 (MAL_DCR_BASE + 0x78) /* RX 24 Channel buffer size */
/*-----------------------------------------------------------------------------
-| IIC Register Offsets
-'----------------------------------------------------------------------------*/
-#define IICMDBUF 0x00
-#define IICSDBUF 0x02
-#define IICLMADR 0x04
-#define IICHMADR 0x05
-#define IICCNTL 0x06
-#define IICMDCNTL 0x07
-#define IICSTS 0x08
-#define IICEXTSTS 0x09
-#define IICLSADR 0x0A
-#define IICHSADR 0x0B
-#define IIC0_CLKDIV 0x0C
-#define IICINTRMSK 0x0D
-#define IICXFRCNT 0x0E
-#define IICXTCNTLSS 0x0F
-#define IICDIRECTCNTL 0x10
-
-/*-----------------------------------------------------------------------------
| UART Register Offsets
'----------------------------------------------------------------------------*/
#define DATA_REG 0x00