From patchwork Thu Apr 15 12:06:18 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 92734 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o3FC773N017257 for ; Thu, 15 Apr 2010 12:07:07 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752995Ab0DOMHB (ORCPT ); Thu, 15 Apr 2010 08:07:01 -0400 Received: from smtp.nokia.com ([192.100.122.233]:32149 "EHLO mgw-mx06.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751515Ab0DOMG7 (ORCPT ); Thu, 15 Apr 2010 08:06:59 -0400 Received: from vaebh106.NOE.Nokia.com (vaebh106.europe.nokia.com [10.160.244.32]) by mgw-mx06.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o3FC6gh5011204; Thu, 15 Apr 2010 15:06:55 +0300 Received: from vaebh104.NOE.Nokia.com ([10.160.244.30]) by vaebh106.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 15 Apr 2010 15:06:41 +0300 Received: from mgw-sa01.ext.nokia.com ([147.243.1.47]) by vaebh104.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Thu, 15 Apr 2010 15:06:41 +0300 Received: from localhost.localdomain (esdhcp041154.research.nokia.com [172.21.41.154]) by mgw-sa01.ext.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o3FC6d80029675; Thu, 15 Apr 2010 15:06:40 +0300 From: Roger Quadros To: Tomi.Valkeinen@nokia.com Cc: tony@atomide.com, linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org Subject: [PATCHv3 2/5] OMAP: RX51: Add "vdds_sdi" supply voltage for SDI Date: Thu, 15 Apr 2010 15:06:18 +0300 Message-Id: <1271333181-23609-3-git-send-email-roger.quadros@nokia.com> X-Mailer: git-send-email 1.6.0.4 In-Reply-To: <1271333181-23609-2-git-send-email-roger.quadros@nokia.com> References: <1271333181-23609-1-git-send-email-roger.quadros@nokia.com> <1271333181-23609-2-git-send-email-roger.quadros@nokia.com> X-OriginalArrivalTime: 15 Apr 2010 12:06:41.0296 (UTC) FILETIME=[1BC9C900:01CADC94] X-Nokia-AV: Clean 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.3 (demeter.kernel.org [140.211.167.41]); Thu, 15 Apr 2010 12:07:09 +0000 (UTC) diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c index f404537..3ef805e 100644 --- a/arch/arm/mach-omap2/board-rx51-peripherals.c +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c @@ -300,6 +300,19 @@ static struct regulator_consumer_supply rx51_vsim_supply = { .dev_name = "mmci-omap-hs.1", }; +#if defined(CONFIG_FB_OMAP2) || defined(CONFIG_FB_OMAP2_MODULE) +extern struct platform_device rx51_display_device; +#endif + +static struct regulator_consumer_supply rx51_vaux1_consumers[] = { +#if defined(CONFIG_FB_OMAP2) || defined(CONFIG_FB_OMAP2_MODULE) + { + .supply = "vdds_sdi", + .dev = &rx51_display_device.dev, + }, +#endif +}; + static struct regulator_init_data rx51_vaux1 = { .constraints = { .name = "V28", @@ -310,6 +323,8 @@ static struct regulator_init_data rx51_vaux1 = { .valid_ops_mask = REGULATOR_CHANGE_MODE | REGULATOR_CHANGE_STATUS, }, + .num_consumer_supplies = ARRAY_SIZE(rx51_vaux1_consumers), + .consumer_supplies = rx51_vaux1_consumers, }; static struct regulator_init_data rx51_vaux2 = {