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>
This commit is contained in:
Lei Wen
2011-04-13 23:48:31 +05:30
committed by Albert ARIBAUD
parent 879de1275a
commit 3df619ec2c
7 changed files with 164 additions and 137 deletions

View File

@@ -141,6 +141,7 @@
* I2C bus
*/
#define CONFIG_I2C_MV 1
#define CONFIG_MV_I2C_REG 0x40301680
#define CONFIG_HARD_I2C 1
#define CONFIG_SYS_I2C_SPEED 50000
#define CONFIG_SYS_I2C_SLAVE 0xfe

View File

@@ -62,6 +62,7 @@
* I2C bus
*/
#define CONFIG_I2C_MV 1
#define CONFIG_MV_I2C_REG 0x40301680
#define CONFIG_HARD_I2C 1
#define CONFIG_SYS_I2C_SPEED 50000
#define CONFIG_SYS_I2C_SLAVE 0xfe