From 50ef4b731044808ce97cb40972f62f6689746945 Mon Sep 17 00:00:00 2001 From: Alejandro Sierra Date: Mon, 26 Mar 2012 16:16:50 -0600 Subject: ENGR00177856 Accelerometer support for ARD Accelerometer support for ARD RevA and RevB. Signed-off-by: Alejandro Sierra --- arch/arm/mach-mx6/board-mx6q_sabreauto.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'arch') diff --git a/arch/arm/mach-mx6/board-mx6q_sabreauto.c b/arch/arm/mach-mx6/board-mx6q_sabreauto.c index a409a3d42dcc..073e5d057b93 100644 --- a/arch/arm/mach-mx6/board-mx6q_sabreauto.c +++ b/arch/arm/mach-mx6/board-mx6q_sabreauto.c @@ -132,6 +132,7 @@ #define SABREAUTO_USB_OTG_PWR SABREAUTO_IO_EXP_GPIO3(1) #define BMCR_PDOWN 0x0800 /* PHY Powerdown */ +static int mma8451_position = 3; static struct clk *sata_clk; static int mipi_sensor; static int uart2_en; @@ -636,6 +637,10 @@ static struct i2c_board_info mxc_i2c2_board_info[] __initdata = { .irq = gpio_to_irq(SABREAUTO_ALS_INT), .platform_data = &ls_data, }, + { + I2C_BOARD_INFO("mma8451", 0x1c), + .platform_data = (void *)&mma8451_position, + }, }; static struct i2c_board_info mxc_i2c1_board_info[] __initdata = { -- cgit v1.2.3