From patchwork Mon Dec 20 03:50:55 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Reilly X-Patchwork-Id: 419301 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oBK3pWGj012572 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 20 Dec 2010 03:51:53 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-3.v29.ch3.sourceforge.com) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1PUWma-0001Ik-GB; Mon, 20 Dec 2010 03:51:32 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1PUWmZ-0001Ic-ES for spi-devel-general@lists.sourceforge.net; Mon, 20 Dec 2010 03:51:31 +0000 Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of gmail.com designates 74.125.83.175 as permitted sender) client-ip=74.125.83.175; envelope-from=marc.reilly@gmail.com; helo=mail-pv0-f175.google.com; Received: from mail-pv0-f175.google.com ([74.125.83.175]) by sog-mx-1.v43.ch3.sourceforge.com with esmtp (Exim 4.72) id 1PUWmY-00011V-3q for spi-devel-general@lists.sourceforge.net; Mon, 20 Dec 2010 03:51:31 +0000 Received: by pvd12 with SMTP id 12so556615pvd.34 for ; Sun, 19 Dec 2010 19:51:24 -0800 (PST) Received: by 10.142.48.12 with SMTP id v12mr2903172wfv.397.1292817084579; Sun, 19 Dec 2010 19:51:24 -0800 (PST) Received: from localhost.localdomain (220-244-174-13.static.tpgi.com.au [220.244.174.13]) by mx.google.com with ESMTPS id w14sm5156070wfd.18.2010.12.19.19.51.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 19 Dec 2010 19:51:24 -0800 (PST) From: Marc Reilly To: linux-arm-kernel@lists.infradead.org, u.kleine-koenig@pengutronix.de Subject: [PATCHv3 4/4] mc13xxx: Add i2c and spi drivers to Kconfig and Makefile Date: Mon, 20 Dec 2010 14:50:55 +1100 Message-Id: <1292817055-17715-5-git-send-email-marc@cpdesign.com.au> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1292817055-17715-1-git-send-email-marc@cpdesign.com.au> References: <1292817055-17715-1-git-send-email-marc@cpdesign.com.au> X-Spam-Score: -0.9 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain 0.0 FREEMAIL_FROM Sender email is freemail (marc.reilly[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 T_TO_NO_BRKTS_FREEMAIL T_TO_NO_BRKTS_FREEMAIL 0.6 AWL AWL: From: address is in the auto white-list X-Headers-End: 1PUWmY-00011V-3q Cc: spi-devel-general@lists.sourceforge.net, w.sang@pengutronix.de, Marc Reilly , linux-i2c@vger.kernel.org X-BeenThere: spi-devel-general@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: Linux SPI core/device drivers discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: spi-devel-general-bounces@lists.sourceforge.net X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Mon, 20 Dec 2010 03:51:53 +0000 (UTC) diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig index 3a1493b..6980cf2 100644 --- a/drivers/mfd/Kconfig +++ b/drivers/mfd/Kconfig @@ -424,20 +424,26 @@ config MFD_PCF50633 facilities, and registers devices for the various functions so that function-specific drivers can bind to them. -config MFD_MC13783 - tristate - config MFD_MC13XXX - tristate "Support Freescale MC13783 and MC13892" - depends on SPI_MASTER + tristate "Support Freescale MC13XXX" + depends on SPI_MASTER || I2C select MFD_CORE - select MFD_MC13783 help Support for the Freescale (Atlas) PMIC and audio CODECs MC13783 and MC13892. - This driver provides common support for accessing the device, + This driver provides common support for accessing the device, additional drivers must be enabled in order to use the - functionality of the device. + functionality of these devices. + +config MFD_MC13XXX_SPI + tristate "Support for MC13XXX via SPI" + depends on SPI_MASTER + select MFD_MC13XXX + +config MFD_MC13XXX_I2C + tristate "Support for MC13XXX via I2C" + depends on I2C + select MFD_MC13XXX config PCF50633_ADC tristate "Support for NXP PCF50633 ADC" diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile index f54b365..b7d774f 100644 --- a/drivers/mfd/Makefile +++ b/drivers/mfd/Makefile @@ -42,6 +42,8 @@ obj-$(CONFIG_TWL4030_CODEC) += twl4030-codec.o obj-$(CONFIG_TWL6030_PWM) += twl6030-pwm.o obj-$(CONFIG_MFD_MC13XXX) += mc13xxx-core.o +obj-$(CONFIG_MFD_MC13XXX_SPI) += mc13xxx-spi.o +obj-$(CONFIG_MFD_MC13XXX_I2C) += mc13xxx-i2c.o obj-$(CONFIG_MFD_CORE) += mfd-core.o