ARM: shmobile: kzm9g: enable magnetometer ak8975.
authorTetsuyuki Kobayashi <koba@kmckk.co.jp>
Fri, 14 Sep 2012 09:14:28 +0000 (18:14 +0900)
committerSimon Horman <horms@verge.net.au>
Tue, 30 Oct 2012 07:21:07 +0000 (15:21 +0800)
This patch enables magnetometer ak8975.
I checked ak8975_probe() returns successfully.

Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
Signed-off-by: Simon Horman <horms@verge.net.au>
arch/arm/configs/kzm9g_defconfig
arch/arm/mach-shmobile/board-kzm9g.c

index c88b57886e791906f8f21459df939718a95be0b6..1404b0487801614cd59aa8059ccf5979ff1cbd61 100644 (file)
@@ -119,6 +119,8 @@ CONFIG_DMADEVICES=y
 CONFIG_SH_DMAE=y
 CONFIG_ASYNC_TX_DMA=y
 CONFIG_STAGING=y
+CONFIG_SENSORS_AK8975=y
+CONFIG_IIO=y
 # CONFIG_DNOTIFY is not set
 CONFIG_INOTIFY_USER=y
 CONFIG_VFAT_FS=y
index 0a43f3189c21c176f41f13ee82062f837a9ab6f8..a37da78687f26987c4404e5c320c619e4f4e9009 100644 (file)
@@ -557,7 +557,11 @@ static struct i2c_board_info i2c0_devices[] = {
        },
        {
                I2C_BOARD_INFO("r2025sd", 0x32),
-       }
+       },
+       {
+               I2C_BOARD_INFO("ak8975", 0x0c),
+               .irq = intcs_evt2irq(0x3380), /* IRQ28 */
+       },
 };
 
 static struct i2c_board_info i2c1_devices[] = {