aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorTetsuyuki Kobayashi <koba@kmckk.co.jp>2012-09-14 05:14:29 -0400
committerSimon Horman <horms@verge.net.au>2012-10-30 03:21:10 -0400
commit608c5620d90c016f9cdb7b90a14761849cf344b2 (patch)
treef3f09098b7621b9c782cb72649fe709193250410 /arch/arm
parent8cec0123bb762eb90753f61a0e5a0c2ff91aec25 (diff)
ARM: shmobile: kzm9g: enable three-axis digital accelerometer ADXL345
This patch enables three-axis digital accelerometer ADXL345. Test: sudo cat /dev/input/event2 then tip up the board. You get something from /dev/input/event2. Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/configs/kzm9g_defconfig2
-rw-r--r--arch/arm/mach-shmobile/board-kzm9g.c4
2 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/configs/kzm9g_defconfig b/arch/arm/configs/kzm9g_defconfig
index 1404b0487801..ce99e3e00efa 100644
--- a/arch/arm/configs/kzm9g_defconfig
+++ b/arch/arm/configs/kzm9g_defconfig
@@ -74,6 +74,8 @@ CONFIG_KEYBOARD_GPIO=y
74# CONFIG_INPUT_MOUSE is not set 74# CONFIG_INPUT_MOUSE is not set
75CONFIG_INPUT_TOUCHSCREEN=y 75CONFIG_INPUT_TOUCHSCREEN=y
76CONFIG_TOUCHSCREEN_ST1232=y 76CONFIG_TOUCHSCREEN_ST1232=y
77CONFIG_INPUT_MISC=y
78CONFIG_INPUT_ADXL34X=y
77# CONFIG_LEGACY_PTYS is not set 79# CONFIG_LEGACY_PTYS is not set
78CONFIG_SERIAL_SH_SCI=y 80CONFIG_SERIAL_SH_SCI=y
79CONFIG_SERIAL_SH_SCI_NR_UARTS=9 81CONFIG_SERIAL_SH_SCI_NR_UARTS=9
diff --git a/arch/arm/mach-shmobile/board-kzm9g.c b/arch/arm/mach-shmobile/board-kzm9g.c
index a37da78687f2..1a4642200747 100644
--- a/arch/arm/mach-shmobile/board-kzm9g.c
+++ b/arch/arm/mach-shmobile/board-kzm9g.c
@@ -562,6 +562,10 @@ static struct i2c_board_info i2c0_devices[] = {
562 I2C_BOARD_INFO("ak8975", 0x0c), 562 I2C_BOARD_INFO("ak8975", 0x0c),
563 .irq = intcs_evt2irq(0x3380), /* IRQ28 */ 563 .irq = intcs_evt2irq(0x3380), /* IRQ28 */
564 }, 564 },
565 {
566 I2C_BOARD_INFO("adxl34x", 0x1d),
567 .irq = intcs_evt2irq(0x3340), /* IRQ26 */
568 },
565}; 569};
566 570
567static struct i2c_board_info i2c1_devices[] = { 571static struct i2c_board_info i2c1_devices[] = {