Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f738dc3 authored by Vaibhav Hiremath's avatar Vaibhav Hiremath Committed by Tony Lindgren
Browse files

AM3517: Enable basic I2C Support



Add basic I2C board Hook-up support, where all the 3 I2C instances
are getting registered.

Signed-off-by: default avatarVaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent b344d87a
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -38,6 +38,15 @@
#define LCD_PANEL_BKLIGHT_PWR	182
#define LCD_PANEL_PWM		181

static int __init am3517_evm_i2c_init(void)
{
	omap_register_i2c_bus(1, 400, NULL, 0);
	omap_register_i2c_bus(2, 400, NULL, 0);
	omap_register_i2c_bus(3, 400, NULL, 0);

	return 0;
}

static int lcd_enabled;
static int dvi_enabled;

@@ -216,6 +225,8 @@ static struct omap_board_mux board_mux[] __initdata = {

static void __init am3517_evm_init(void)
{
	am3517_evm_i2c_init();

	omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
	platform_add_devices(am3517_evm_devices,
				ARRAY_SIZE(am3517_evm_devices));