From patchwork Fri Sep 14 09:14:28 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tetsuyuki Kobayashi X-Patchwork-Id: 1456331 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 3FFA6DF280 for ; Fri, 14 Sep 2012 09:15:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758166Ab2INJPT (ORCPT ); Fri, 14 Sep 2012 05:15:19 -0400 Received: from vrgw6.firstserver.ne.jp ([164.46.1.49]:53238 "EHLO vrgw6.firstserver.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758152Ab2INJPT (ORCPT ); Fri, 14 Sep 2012 05:15:19 -0400 Received: from fvrsp18.firstserver.ne.jp (fvrsp18.firstserver.ne.jp [203.183.56.4]) by vrgw6.firstserver.ne.jp (8.13.8/8.13.8/FirstServer) with ESMTP id q8E9FExN005770; Fri, 14 Sep 2012 18:15:14 +0900 (envelope-from koba@kmckk.co.jp) Received: from 203.137.25.97 (203.137.25.97) by fvrsp18.firstserver.ne.jp (F-Secure/virusgw_smtp/407/fvrsp18.firstserver.ne.jp); Fri, 14 Sep 2012 18:15:14 +0900 (JST) X-Virus-Status: clean(F-Secure/virusgw_smtp/407/fvrsp18.firstserver.ne.jp) Received: from localhost (58-188-103-12f2.kns1.eonet.ne.jp [58.188.103.12]) (authenticated (0 bits)) by mail.kmckk.co.jp (8.14.3/8.11.3) with ESMTP id q8E9FEKh001821; Fri, 14 Sep 2012 18:15:14 +0900 From: Tetsuyuki Kobayashi To: horms@verge.net.au Cc: linux-sh@vger.kernel.org, Tetsuyuki Kobayashi Subject: [PATCH 1/2] ARM: shmobile: kzm9g: enable magnetometer ak8975. Date: Fri, 14 Sep 2012 18:14:28 +0900 Message-Id: <1347614069-23345-2-git-send-email-koba@kmckk.co.jp> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1347614069-23345-1-git-send-email-koba@kmckk.co.jp> References: <1347614069-23345-1-git-send-email-koba@kmckk.co.jp> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org This patch enables magnetometer ak8975. I checked ak8975_probe() returns successfully. Signed-off-by: Tetsuyuki Kobayashi --- arch/arm/configs/kzm9g_defconfig | 2 ++ arch/arm/mach-shmobile/board-kzm9g.c | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/configs/kzm9g_defconfig b/arch/arm/configs/kzm9g_defconfig index 2388c86..2aaa2ff 100644 --- a/arch/arm/configs/kzm9g_defconfig +++ b/arch/arm/configs/kzm9g_defconfig @@ -118,6 +118,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 diff --git a/arch/arm/mach-shmobile/board-kzm9g.c b/arch/arm/mach-shmobile/board-kzm9g.c index 04c836d..9c045d4 100644 --- a/arch/arm/mach-shmobile/board-kzm9g.c +++ b/arch/arm/mach-shmobile/board-kzm9g.c @@ -562,7 +562,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[] = {