diff options
author | Yong Shen <yong.shen@freescale.com> | 2011-01-06 23:25:33 -0500 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-01-07 09:20:53 -0500 |
commit | 0d7671ee66964760a718aa6d0277453b02a2c9b3 (patch) | |
tree | 3d15add1376f1866fc4e6fcf8011f7d6e017457c /arch/arm/mach-mx5/board-mx53_evk.c | |
parent | 639047677b2fc931d6874807a7b596a236071015 (diff) |
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) | |||
65 | imx53_add_imx_uart(2, &mx53_evk_uart_pdata); | 65 | imx53_add_imx_uart(2, &mx53_evk_uart_pdata); |
66 | } | 66 | } |
67 | 67 | ||
68 | static const struct imxi2c_platform_data mx53_evk_i2c_data __initconst = { | ||
69 | .bitrate = 100000, | ||
70 | }; | ||
71 | |||
68 | static inline void mx53_evk_fec_reset(void) | 72 | static inline void mx53_evk_fec_reset(void) |
69 | { | 73 | { |
70 | int ret; | 74 | int ret; |
@@ -92,6 +96,9 @@ static void __init mx53_evk_board_init(void) | |||
92 | mx53_evk_init_uart(); | 96 | mx53_evk_init_uart(); |
93 | mx53_evk_fec_reset(); | 97 | mx53_evk_fec_reset(); |
94 | imx53_add_fec(&mx53_evk_fec_pdata); | 98 | imx53_add_fec(&mx53_evk_fec_pdata); |
99 | |||
100 | imx53_add_imx_i2c(0, &mx53_evk_i2c_data); | ||
101 | imx53_add_imx_i2c(1, &mx53_evk_i2c_data); | ||
95 | } | 102 | } |
96 | 103 | ||
97 | static void __init mx53_evk_timer_init(void) | 104 | static void __init mx53_evk_timer_init(void) |