From patchwork Fri Aug 12 03:33:15 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyle Manna X-Patchwork-Id: 1059532 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p7C3Y4iA018539 for ; Fri, 12 Aug 2011 03:34:08 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752957Ab1HLDeE (ORCPT ); Thu, 11 Aug 2011 23:34:04 -0400 Received: from mailbigip.dreamhost.com ([208.97.132.5]:38864 "EHLO homiemail-a64.g.dreamhost.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752669Ab1HLDeB (ORCPT ); Thu, 11 Aug 2011 23:34:01 -0400 Received: from homiemail-a64.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a64.g.dreamhost.com (Postfix) with ESMTP id 4E00943807E; Thu, 11 Aug 2011 20:34:00 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=kylemanna.com; h=from:to:cc :subject:date:message-id:in-reply-to:references; q=dns; s= kylemanna.com; b=dbfG8gL6mJj3pQbUsrUxDdj3qITu03u2nZaAJlu304M0kze YF19pajgiRdrTSbgMCb7nX0LcmUb0EnvU8bkTEgziLSuREEjcA7qFqUEu+uwWa8/ 40z4uLAV5evRgqZjTyTLkRe4NOeXBq7OWFhtNusCJ/J48mMog4VXbJthiXsk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=kylemanna.com; h=from:to :cc:subject:date:message-id:in-reply-to:references; s= kylemanna.com; bh=86V1kRfU/37fCSVRAopubGSfLaU=; b=k2kBQVTlBivZ8A JaZZ1oI5xP2nO0cCQ6dViDKGMZufgdjdK0CLPs8VGcxkIxjeznhZrsCC+p/ITHQQ kqYZ4yc+UNTk0fzE8klEbA9muneDFx4ekdrQ6VNP/Y39Kpo7S3yUS1i+bcFIddFd Q0APFydCuhFJjDjZK3h4BLeyCfCII= Received: from core (cpe-70-116-138-43.tx.res.rr.com [70.116.138.43]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: core@frozenliquid.net) by homiemail-a64.g.dreamhost.com (Postfix) with ESMTPSA id 33BF143806C; Thu, 11 Aug 2011 20:34:00 -0700 (PDT) Received: by core (Postfix, from userid 1000) id 3B0DD682188; Thu, 11 Aug 2011 22:33:59 -0500 (CDT) From: Kyle Manna To: Tony Lindgren , Russell King , Samuel Ortiz Cc: Keerthy , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kyle Manna Subject: [PATCH v2 4/4] arm: BeagleBoard: add support for the twl4030-madc Date: Thu, 11 Aug 2011 22:33:15 -0500 Message-Id: <1313119995-15382-5-git-send-email-kyle@kylemanna.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1313119995-15382-1-git-send-email-kyle@kylemanna.com> References: <1313119995-15382-1-git-send-email-kyle@kylemanna.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 12 Aug 2011 03:34:08 +0000 (UTC) Signed-off-by: Kyle Manna --- arch/arm/mach-omap2/board-omap3beagle.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index 3ae16b4..9cc9fa9 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c @@ -378,7 +378,8 @@ static struct i2c_board_info __initdata beagle_i2c_eeprom[] = { static int __init omap3_beagle_i2c_init(void) { omap3_pmic_get_config(&beagle_twldata, - TWL_COMMON_PDATA_USB | TWL_COMMON_PDATA_AUDIO, + TWL_COMMON_PDATA_USB | TWL_COMMON_PDATA_MADC | + TWL_COMMON_PDATA_AUDIO, TWL_COMMON_REGULATOR_VDAC | TWL_COMMON_REGULATOR_VPLL2); beagle_twldata.vpll2->constraints.name = "VDVI"; @@ -456,9 +457,15 @@ static void __init omap3_beagle_init_irq(void) omap3_init_irq(); } +static struct platform_device madc_hwmon = { + .name = "twl4030_madc_hwmon", + .id = -1, +}; + static struct platform_device *omap3_beagle_devices[] __initdata = { &leds_gpio, &keys_gpio, + &madc_hwmon, }; static const struct usbhs_omap_board_data usbhs_bdata __initconst = {