From patchwork Wed Mar 19 19:29:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 3861481 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7623BBF540 for ; Wed, 19 Mar 2014 21:21:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AA73D201FB for ; Wed, 19 Mar 2014 21:21:28 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AA639201FA for ; Wed, 19 Mar 2014 21:21:27 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WQMOL-0006ci-Ri; Wed, 19 Mar 2014 19:43:11 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WQMN7-0006Qv-7q; Wed, 19 Mar 2014 19:41:53 +0000 Received: from moutng.kundenserver.de ([212.227.17.13]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WQMHc-00060t-FV for linux-arm-kernel@lists.infradead.org; Wed, 19 Mar 2014 19:36:20 +0000 Received: from wuerfel.lan (HSI-KBW-134-3-135-108.hsi14.kabel-badenwuerttemberg.de [134.3.135.108]) by mrelayeu.kundenserver.de (node=mreue105) with ESMTP (Nemesis) id 0Lwqt6-1XAJ2131jc-016N8o; Wed, 19 Mar 2014 20:35:45 +0100 From: Arnd Bergmann To: arm@kernel.org Subject: [PATCH 56/62] ARM: samsung: select I2C where needed for PMIC Date: Wed, 19 Mar 2014 20:29:53 +0100 Message-Id: <1395257399-359545-57-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1395257399-359545-1-git-send-email-arnd@arndb.de> References: <1395257399-359545-1-git-send-email-arnd@arndb.de> X-Provags-ID: V02:K0:3YNCuyWQMZRrWd49YLx7VREQIVRp68/4XPku+OLZO5w cF/+g1Tx/S7HXKDtmKlwo3BJHWfDU3N9sFZZcLy/YS40HMCPYA DWDtVVK4zBMgY17V7Zi+oQOF3cSrfXq9VhMU7EESVKlRaHVP+F d7tI1i96FjN34yUMBnM028CqocyG3kh0/Qyr02pzOocwtCFCQg HJu/xFbPuSHTtIrQ+le82TrQPx+9FGnGOWwyjxR195yk9JCr74 /Y08rdXKEiUlNnOo0le+5/8mUjT3/Dlj3i2nmopUtNif6wYai9 8UWBT7tA3YZz/uJuv3Wvnskp8eon5O9ybg8317YmOukU8FgBMJ XC2PFH5gnoxyTKQfNw8GxtpGfZnZ8PSIn2l2HURYV X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140319_153613_028333_75C309DE X-CRM114-Status: GOOD ( 10.81 ) X-Spam-Score: -1.9 (-) Cc: Kukjin Kim , Ben Dooks , Arnd Bergmann , linux-arm-kernel@lists.infradead.org, Tomasz Figa X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The OSIRIS machine cannot build without I2C and TPS65010 both enabled unconditionally. The SMDK6410_WM1190_EV1 and SMDK6410_WM1192_EV1 add-on cards already select MFD_WM*_I2C. In each case, failing to enable CONFIG_I2C results in a build or link error, so most consistent solution is to ensure that it is impossible to disable those options. It would be nice to leave CONFIG_I2C as user-selectable, but doing that properly would require more work. Signed-off-by: Arnd Bergmann Cc: Tomasz Figa Cc: Kukjin Kim Cc: Ben Dooks Acked-by: Kukjin Kim --- arch/arm/mach-s3c24xx/Kconfig | 1 + arch/arm/mach-s3c64xx/Kconfig | 2 ++ 2 files changed, 3 insertions(+) diff --git a/arch/arm/mach-s3c24xx/Kconfig b/arch/arm/mach-s3c24xx/Kconfig index a6060d0..1272647 100644 --- a/arch/arm/mach-s3c24xx/Kconfig +++ b/arch/arm/mach-s3c24xx/Kconfig @@ -572,6 +572,7 @@ config MACH_OSIRIS_DVS tristate "Simtec IM2440D20 (OSIRIS) Dynamic Voltage Scaling driver" depends on MACH_OSIRIS select TPS65010 + select I2C help Say Y/M here if you want to have dynamic voltage scaling support on the Simtec IM2440D20 (OSIRIS) module via the TPS65011. diff --git a/arch/arm/mach-s3c64xx/Kconfig b/arch/arm/mach-s3c64xx/Kconfig index 92885d7..0148112 100644 --- a/arch/arm/mach-s3c64xx/Kconfig +++ b/arch/arm/mach-s3c64xx/Kconfig @@ -191,6 +191,7 @@ endchoice config SMDK6410_WM1190_EV1 bool "Support Wolfson Microelectronics 1190-EV1 PMIC card" depends on MACH_SMDK6410 + select I2C select MFD_WM8350_I2C select REGULATOR select REGULATOR_WM8350 @@ -205,6 +206,7 @@ config SMDK6410_WM1190_EV1 config SMDK6410_WM1192_EV1 bool "Support Wolfson Microelectronics 1192-EV1 PMIC card" depends on MACH_SMDK6410 + select I2C select MFD_WM831X select MFD_WM831X_I2C select REGULATOR