]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00221131: imx6sl arm2/evk: add mma8450q accelerometer support
authorRobby Cai <R63905@freescale.com>
Wed, 22 Aug 2012 13:47:59 +0000 (21:47 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:17 +0000 (08:35 +0200)
mma8450q on E-INK DC3 boards, with i2c address 0x1c on I2C1.

Signed-off-by: Robby Cai <R63905@freescale.com>
arch/arm/configs/imx6s_defconfig
arch/arm/mach-mx6/board-mx6sl_arm2.c
arch/arm/mach-mx6/board-mx6sl_evk.c

index 390770f974cbecfb54376a4c758796e9774fc750..f03e456d73862e2875c6d91186e8c4b0d71dabb0 100644 (file)
@@ -1382,8 +1382,8 @@ CONFIG_SENSORS_MAX17135=y
 # CONFIG_SENSORS_W83627HF is not set
 # CONFIG_SENSORS_W83627EHF is not set
 CONFIG_SENSORS_MAG3110=y
-# CONFIG_MXC_MMA8450 is not set
-CONFIG_MXC_MMA8451=y
+CONFIG_MXC_MMA8450=y
+# CONFIG_MXC_MMA8451 is not set
 CONFIG_THERMAL=y
 # CONFIG_THERMAL_HWMON is not set
 CONFIG_WATCHDOG=y
index 5e3d91519c9418b7e2f663a67716832c8a65ca06..d1cf110f6c3bed5639a51f9abb3a176196cffb52 100755 (executable)
@@ -562,6 +562,8 @@ static struct i2c_board_info mxc_i2c0_board_info[] __initdata = {
        }, {
                I2C_BOARD_INFO("elan-touch", 0x10),
                .irq = gpio_to_irq(MX6SL_BRD_ELAN_INT),
+       }, {
+               I2C_BOARD_INFO("mma8450", 0x1c),
        },
 };
 
index 7ef077f91cfc389288b7424c170c9dfc86b547dc..11623ccc68e72f86d34443963e4d35e516be89fc 100644 (file)
@@ -575,6 +575,8 @@ static struct i2c_board_info mxc_i2c0_board_info[] __initdata = {
        }, {
                I2C_BOARD_INFO("elan-touch", 0x10),
                .irq = gpio_to_irq(MX6SL_BRD_ELAN_INT),
+       }, {
+               I2C_BOARD_INFO("mma8450", 0x1c),
        },
 };