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 /arch/arm/cpu/pxa/cpu.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 'arch/arm/cpu/pxa/cpu.c')
-rw-r--r-- | arch/arm/cpu/pxa/cpu.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/cpu/pxa/cpu.c b/arch/arm/cpu/pxa/cpu.c index 7d49cbb..9970a4b 100644 --- a/arch/arm/cpu/pxa/cpu.c +++ b/arch/arm/cpu/pxa/cpu.c @@ -318,3 +318,13 @@ int arch_cpu_init(void) pxa_clock_setup(); return 0; } + +void i2c_clk_enable(void) +{ + /* set the global I2C clock on */ +#ifdef CONFIG_CPU_MONAHANS + writel(readl(CKENB) | (CKENB_4_I2C), CKENB); +#else + writel(readl(CKEN) | CKEN14_I2C, CKEN); +#endif +} |