diff options
author | Vaibhav Hiremath <hvaibhav@ti.com> | 2010-02-17 17:09:28 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-02-19 18:22:17 -0500 |
commit | 1f738dc306c86a8293c7ea929d07f55f32d52ff6 (patch) | |
tree | 037afe4cf1e51710cf4f2ef079698505f9889b83 | |
parent | b344d87a28d5684ad9b6c4f880e70c48e23215f1 (diff) |
AM3517: Enable basic I2C Support
Add basic I2C board Hook-up support, where all the 3 I2C instances
are getting registered.
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/mach-omap2/board-am3517evm.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-am3517evm.c b/arch/arm/mach-omap2/board-am3517evm.c index ad323b46477..af99faf2cce 100644 --- a/arch/arm/mach-omap2/board-am3517evm.c +++ b/arch/arm/mach-omap2/board-am3517evm.c | |||
@@ -38,6 +38,15 @@ | |||
38 | #define LCD_PANEL_BKLIGHT_PWR 182 | 38 | #define LCD_PANEL_BKLIGHT_PWR 182 |
39 | #define LCD_PANEL_PWM 181 | 39 | #define LCD_PANEL_PWM 181 |
40 | 40 | ||
41 | static int __init am3517_evm_i2c_init(void) | ||
42 | { | ||
43 | omap_register_i2c_bus(1, 400, NULL, 0); | ||
44 | omap_register_i2c_bus(2, 400, NULL, 0); | ||
45 | omap_register_i2c_bus(3, 400, NULL, 0); | ||
46 | |||
47 | return 0; | ||
48 | } | ||
49 | |||
41 | static int lcd_enabled; | 50 | static int lcd_enabled; |
42 | static int dvi_enabled; | 51 | static int dvi_enabled; |
43 | 52 | ||
@@ -216,6 +225,8 @@ static struct omap_board_mux board_mux[] __initdata = { | |||
216 | 225 | ||
217 | static void __init am3517_evm_init(void) | 226 | static void __init am3517_evm_init(void) |
218 | { | 227 | { |
228 | am3517_evm_i2c_init(); | ||
229 | |||
219 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); | 230 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); |
220 | platform_add_devices(am3517_evm_devices, | 231 | platform_add_devices(am3517_evm_devices, |
221 | ARRAY_SIZE(am3517_evm_devices)); | 232 | ARRAY_SIZE(am3517_evm_devices)); |