diff options
author | Yong Shen <yong.shen@freescale.com> | 2011-01-07 12:25:33 +0800 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-01-07 15:20:53 +0100 |
commit | 0d7671ee66964760a718aa6d0277453b02a2c9b3 (patch) | |
tree | 3d15add1376f1866fc4e6fcf8011f7d6e017457c /arch/arm/mach-mx5/board-mx53_evk.c | |
parent | 639047677b2fc931d6874807a7b596a236071015 (diff) | |
download | talos-op-linux-0d7671ee66964760a718aa6d0277453b02a2c9b3.tar.gz talos-op-linux-0d7671ee66964760a718aa6d0277453b02a2c9b3.zip |
ARM i.MX53 enable i2c on EVK board
add i2c platform data and clock
Signed-off-by: Yong Shen <yong.shen@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx5/board-mx53_evk.c')
-rw-r--r-- | arch/arm/mach-mx5/board-mx53_evk.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-mx5/board-mx53_evk.c b/arch/arm/mach-mx5/board-mx53_evk.c index 8a744ae09f6f..d0b4570f44ee 100644 --- a/arch/arm/mach-mx5/board-mx53_evk.c +++ b/arch/arm/mach-mx5/board-mx53_evk.c @@ -65,6 +65,10 @@ static inline void mx53_evk_init_uart(void) imx53_add_imx_uart(2, &mx53_evk_uart_pdata); } +static const struct imxi2c_platform_data mx53_evk_i2c_data __initconst = { + .bitrate = 100000, +}; + static inline void mx53_evk_fec_reset(void) { int ret; @@ -92,6 +96,9 @@ static void __init mx53_evk_board_init(void) mx53_evk_init_uart(); mx53_evk_fec_reset(); imx53_add_fec(&mx53_evk_fec_pdata); + + imx53_add_imx_i2c(0, &mx53_evk_i2c_data); + imx53_add_imx_i2c(1, &mx53_evk_i2c_data); } static void __init mx53_evk_timer_init(void) |