From patchwork Thu Aug 11 03:27:52 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyle Manna X-Patchwork-Id: 1055662 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 p7B3S18G014088 for ; Thu, 11 Aug 2011 03:28:01 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754055Ab1HKD2A (ORCPT ); Wed, 10 Aug 2011 23:28:00 -0400 Received: from hapkido.dreamhost.com ([66.33.216.122]:33978 "EHLO hapkido.dreamhost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753909Ab1HKD17 (ORCPT ); Wed, 10 Aug 2011 23:27:59 -0400 Received: from homiemail-a26.g.dreamhost.com (caiajhbdccac.dreamhost.com [208.97.132.202]) by hapkido.dreamhost.com (Postfix) with ESMTP id E884F17E59A for ; Wed, 10 Aug 2011 20:27:58 -0700 (PDT) Received: from homiemail-a26.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a26.g.dreamhost.com (Postfix) with ESMTP id 71ACFB806B; Wed, 10 Aug 2011 20:27:57 -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=JzVAamvdHGsmtAcZYFgYJMrdIi1SlgZw3DJ1ysU0GGYkJCn FQU8A29HafufE3TMdgnBf2/L9oQeVECXoX9TW4X+7VDPAzvMkmzAKPsn5+so/NOJ VSB7uBBjHKLx9Ma+9wFyL4QR1oGadb1Djg1V2IXIWpGHXDMSOYAQkzdMCdF4= 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=oRJBghRXBrfG6T8AP1b0OgYkNbw=; b=I6bnUKVYrpST15 m2KKXkoyEZkoURbCdOBB8J7kVKIznZ3qj8m5zqINrS3mUgzR5Ke1eIL/7muePF3I abR97dA523BkMuKU6T6IWAHWey/pQ7U9Gs688bHdgVZ8nAmhnRDFZb4auMqhn11J uvlvDRUoPvfLHUarBAl7ridQn6s7g= 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-a26.g.dreamhost.com (Postfix) with ESMTPSA id 5BEA8B805C; Wed, 10 Aug 2011 20:27:57 -0700 (PDT) Received: by core (Postfix, from userid 1000) id 856A0680AA2; Wed, 10 Aug 2011 22:27:56 -0500 (CDT) From: Kyle Manna To: linux-omap@vger.kernel.org Cc: Kyle Manna Subject: [PATCH 3/3] BeagleBoard: add support for the twl4030-madc Date: Wed, 10 Aug 2011 22:27:52 -0500 Message-Id: <1313033272-16774-4-git-send-email-kyle@kylemanna.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1313033272-16774-1-git-send-email-kyle@kylemanna.com> References: <1313033272-16774-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]); Thu, 11 Aug 2011 03:28:01 +0000 (UTC) Signed-off-by: Kyle Manna --- arch/arm/mach-omap2/board-omap3beagle.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index 3ae16b4..a82d53b 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c @@ -362,11 +362,16 @@ static struct regulator_init_data beagle_vsim = { .consumer_supplies = beagle_vsim_supply, }; +static struct twl4030_madc_platform_data beagle_madc = { + .irq_line = 1, +}; + static struct twl4030_platform_data beagle_twldata = { /* platform_data for children goes here */ .gpio = &beagle_gpio_data, .vmmc1 = &beagle_vmmc1, .vsim = &beagle_vsim, + .madc = &beagle_madc, }; static struct i2c_board_info __initdata beagle_i2c_eeprom[] = { @@ -456,9 +461,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 = {