diff options
author | Lei Wen <[leiwen@marvell.com]> | 2011-04-13 23:48:31 +0530 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2011-04-27 19:38:08 +0200 |
commit | 3df619ec2cae3305c20b808c4d49cfed66c1cf9b (patch) | |
tree | 28492296d69892e06b869f0bab4cafdfda38632a /board/innokom/innokom.c | |
parent | 879de1275abf66fbb08e601f12d6ac5a888255e1 (diff) | |
download | u-boot-imx-3df619ec2cae3305c20b808c4d49cfed66c1cf9b.zip u-boot-imx-3df619ec2cae3305c20b808c4d49cfed66c1cf9b.tar.gz u-boot-imx-3df619ec2cae3305c20b808c4d49cfed66c1cf9b.tar.bz2 |
mv_i2c: use structure to replace the direclty define
Add i2c_clk_enable in the cpu specific code, since previous platform it,
while new platform don't need. In the pantheon and armada100 platform,
this function is defined as NULL one.
Acked-by: Heiko Schocher <hs@denx.de>
Acked-by: Prafulla Wadaskar <prafulla@marvell.com>
Signed-off-by: Lei Wen <leiwen@marvell.com>
Diffstat (limited to 'board/innokom/innokom.c')
-rw-r--r-- | board/innokom/innokom.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/board/innokom/innokom.c b/board/innokom/innokom.c index e658c35..22de7e3 100644 --- a/board/innokom/innokom.c +++ b/board/innokom/innokom.c @@ -45,12 +45,7 @@ DECLARE_GLOBAL_DATA_PTR; */ int i2c_init_board(void) { - int i, icr; - - /* disable I2C controller first, otherwhise it thinks we want to */ - /* talk to the slave port... */ - icr = readl(ICR); - writel(readl(ICR) & ~(ICR_SCLE | ICR_IUE), ICR); + int i; /* set gpio pin low _before_ we change direction to output */ writel(GPIO_bit(70), GPCR(70)); @@ -63,8 +58,6 @@ int i2c_init_board(void) udelay(10); } - writel(icr, ICR); - return 0; } |