From patchwork Mon Jul 18 17:35:21 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 987342 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 p6IHaCbD013507 for ; Mon, 18 Jul 2011 17:36:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754538Ab1GRRgM (ORCPT ); Mon, 18 Jul 2011 13:36:12 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:60875 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754488Ab1GRRgJ convert rfc822-to-8bit (ORCPT ); Mon, 18 Jul 2011 13:36:09 -0400 Received: from dlep34.itg.ti.com ([157.170.170.115]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id p6IHa5oW007891 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 18 Jul 2011 12:36:05 -0500 Received: from dlep26.itg.ti.com (smtp-le.itg.ti.com [157.170.170.27]) by dlep34.itg.ti.com (8.13.7/8.13.8) with ESMTP id p6IHa5Qk022142; Mon, 18 Jul 2011 12:36:05 -0500 (CDT) Received: from dnce72.ent.ti.com (localhost [127.0.0.1]) by dlep26.itg.ti.com (8.13.8/8.13.8) with ESMTP id p6IHa4wi010649; Mon, 18 Jul 2011 12:36:04 -0500 (CDT) thread-index: AcxFcSsEUIy0PoJGTqac9GDr/IGA4w== Content-Class: urn:content-classes:message Importance: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4657 Received: from localhost.localdomain (172.24.88.4) by dnce72.ent.ti.com (137.167.131.87) with Microsoft SMTP Server (TLS) id 8.3.106.1; Mon, 18 Jul 2011 19:36:03 +0200 From: Tero Kristo To: CC: , , , , Subject: [PATCHv3 5/6] omap3: beagleboard: add SMPS regulators Date: Mon, 18 Jul 2011 20:35:21 +0300 Message-ID: <1311010522-5868-6-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1311010522-5868-1-git-send-email-t-kristo@ti.com> References: <1311010522-5868-1-git-send-email-t-kristo@ti.com> MIME-Version: 1.0 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]); Mon, 18 Jul 2011 17:36:16 +0000 (UTC) This is using the common API defined in twl-common. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/board-omap3beagle.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index 32f5f89..d493b0b 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c @@ -444,6 +444,8 @@ static struct platform_device keys_gpio = { }, }; +static struct platform_device beagle_smps; + static void __init omap3_beagle_init_early(void) { omap2_init_common_infrastructure(); @@ -459,6 +461,7 @@ static void __init omap3_beagle_init_irq(void) static struct platform_device *omap3_beagle_devices[] __initdata = { &leds_gpio, &keys_gpio, + &beagle_smps, }; static const struct usbhs_omap_board_data usbhs_bdata __initconst = { @@ -533,6 +536,7 @@ static void __init omap3_beagle_init(void) gpio_buttons[0].gpio = beagle_config.usr_button_gpio; + omap3_pmic_get_smps_config(&beagle_smps); platform_add_devices(omap3_beagle_devices, ARRAY_SIZE(omap3_beagle_devices)); omap_display_init(&beagle_dss_data);