From patchwork Fri Apr 29 07:12:00 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kalle.jokiniemi@nokia.com X-Patchwork-Id: 740431 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3T7DGPs025910 for ; Fri, 29 Apr 2011 07:13:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755666Ab1D2HNN (ORCPT ); Fri, 29 Apr 2011 03:13:13 -0400 Received: from smtp.nokia.com ([147.243.128.26]:46616 "EHLO mgw-da02.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754537Ab1D2HNL (ORCPT ); Fri, 29 Apr 2011 03:13:11 -0400 Received: from nokia.com (localhost [127.0.0.1]) by mgw-da02.nokia.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id p3T7D9nf027569; Fri, 29 Apr 2011 10:13:09 +0300 Received: from kalle-t43.nmp.nokia.com ([trdhcp213249.nmp.nokia.com [172.22.213.249]]) by mgw-da02.nokia.com with RELAY id p3T7CXB0026525 ; Fri, 29 Apr 2011 10:12:40 +0300 From: Kalle Jokiniemi To: laurent.pinchart@ideasonboard.com, tony@atomide.com, mchebab@infradead.org Cc: linux-omap@vger.kernel.org, linux-media@vger.kernel.org, Kalle Jokiniemi Subject: [PATCH 2/2] OMAP3: RX-51: define vdds_csib regulator supply Date: Fri, 29 Apr 2011 10:12:00 +0300 Message-Id: <1304061120-6383-3-git-send-email-kalle.jokiniemi@nokia.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1304061120-6383-1-git-send-email-kalle.jokiniemi@nokia.com> References: <1304061120-6383-1-git-send-email-kalle.jokiniemi@nokia.com> X-Nokia-AV: Clean Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@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, 29 Apr 2011 07:13:16 +0000 (UTC) The RX-51 uses the CSIb IO complex for camera operation. The board file is missing definition for the regulator supplying the CSIb complex, so this is added for better power management. Signed-off-by: Kalle Jokiniemi Acked-by: Tony Lindgren --- arch/arm/mach-omap2/board-rx51-peripherals.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c index bbcb677..1324ba3 100644 --- a/arch/arm/mach-omap2/board-rx51-peripherals.c +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c @@ -337,6 +337,13 @@ static struct omap2_hsmmc_info mmc[] __initdata = { static struct regulator_consumer_supply rx51_vmmc1_supply = REGULATOR_SUPPLY("vmmc", "omap_hsmmc.0"); +static struct regulator_consumer_supply rx51_vaux2_supplies[] = { + REGULATOR_SUPPLY("vdds_csib", "omap3isp"), + { + .supply = "vaux2", + }, +}; + static struct regulator_consumer_supply rx51_vaux3_supply = REGULATOR_SUPPLY("vmmc", "omap_hsmmc.1"); @@ -400,6 +407,8 @@ static struct regulator_init_data rx51_vaux2 = { .valid_ops_mask = REGULATOR_CHANGE_MODE | REGULATOR_CHANGE_STATUS, }, + .num_consumer_supplies = ARRAY_SIZE(rx51_vaux2_supplies), + .consumer_supplies = rx51_vaux2_supplies, }; /* VAUX3 - adds more power to VIO_18 rail */