diff options
author | Richard Zhao <richard.zhao@freescale.com> | 2011-01-14 04:48:04 -0500 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-01-19 03:58:21 -0500 |
commit | 98b7d550f292ae96f1058f19b83aadd6985a6fa0 (patch) | |
tree | 1778e3bfa4aeaf75761fef678b13e54725ac4458 /arch/arm/mach-mx5/board-mx50_rdp.c | |
parent | 82c520dccf7fd5afcd95b941f48c25f38c162c77 (diff) |
arm: mx50_rdp: add i2c bus support
Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx5/board-mx50_rdp.c')
-rw-r--r-- | arch/arm/mach-mx5/board-mx50_rdp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-mx5/board-mx50_rdp.c b/arch/arm/mach-mx5/board-mx50_rdp.c index 3180d43aeced..75beef74b375 100644 --- a/arch/arm/mach-mx5/board-mx50_rdp.c +++ b/arch/arm/mach-mx5/board-mx50_rdp.c | |||
@@ -184,6 +184,10 @@ static inline void mx50_rdp_fec_reset(void) | |||
184 | gpio_set_value(FEC_RESET_B, 1); | 184 | gpio_set_value(FEC_RESET_B, 1); |
185 | } | 185 | } |
186 | 186 | ||
187 | static const struct imxi2c_platform_data i2c_data __initconst = { | ||
188 | .bitrate = 100000, | ||
189 | }; | ||
190 | |||
187 | /* | 191 | /* |
188 | * Board specific initialization. | 192 | * Board specific initialization. |
189 | */ | 193 | */ |
@@ -196,6 +200,9 @@ static void __init mx50_rdp_board_init(void) | |||
196 | imx50_add_imx_uart(1, &uart_pdata); | 200 | imx50_add_imx_uart(1, &uart_pdata); |
197 | mx50_rdp_fec_reset(); | 201 | mx50_rdp_fec_reset(); |
198 | imx50_add_fec(&fec_data); | 202 | imx50_add_fec(&fec_data); |
203 | imx50_add_imx_i2c(0, &i2c_data); | ||
204 | imx50_add_imx_i2c(1, &i2c_data); | ||
205 | imx50_add_imx_i2c(2, &i2c_data); | ||
199 | } | 206 | } |
200 | 207 | ||
201 | static void __init mx50_rdp_timer_init(void) | 208 | static void __init mx50_rdp_timer_init(void) |