summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorAlejandro Sierra <b18039@freescale.com>2012-03-26 16:16:50 -0600
committerAlejandro Sierra <b18039@freescale.com>2012-03-26 16:16:50 -0600
commit50ef4b731044808ce97cb40972f62f6689746945 (patch)
treee09593cb1eec59a06c64d2aefdf719d774454b1d /arch
parentdfbba173c68f8a78ab60433e9276a7e9c8a331e3 (diff)
ENGR00177856 Accelerometer support for ARD
Accelerometer support for ARD RevA and RevB. Signed-off-by: Alejandro Sierra <b18039@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-mx6/board-mx6q_sabreauto.c5
1 files changed, 5 insertions, 0 deletions
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 = {