From patchwork Tue Dec 21 17:25:35 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jarkko Nikula X-Patchwork-Id: 424731 X-Patchwork-Delegate: tony@atomide.com 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 oBLHQ4wv030562 for ; Tue, 21 Dec 2010 17:26:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751366Ab0LUR0I (ORCPT ); Tue, 21 Dec 2010 12:26:08 -0500 Received: from mail-bw0-f45.google.com ([209.85.214.45]:51969 "EHLO mail-bw0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751076Ab0LUR0H (ORCPT ); Tue, 21 Dec 2010 12:26:07 -0500 Received: by mail-bw0-f45.google.com with SMTP id 16so4816310bwz.4 for ; Tue, 21 Dec 2010 09:26:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=YQV5BnuL8IU31t9WmfAKaaglrZv1mNuDXCrhUo8mDpg=; b=IlGsfJUaFzQgMWd0h8/xhxvtWIx8z/X1dO9vffvaEIADt/3M4JU6wkOIZEphFumQ8t wEDRzusOANlEvMxiFJhNKAw4Tm4NzwhL5XeBub1VsPK89SM8y80uKe33ex0vyg+EvGkc 2jWZSYBXjHsihYgxnV4dN+mDjplG0zWo2QFqM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=c0V1Xo214Drdzx4tp/6hcfgO69nWwHZE+S7s4XLWZiURpo8hqiuWmg7WxRYkfFAq46 ipTFQim4EoD9qn9GuiNDgZ6zlcCWbZ4uvcYYy3bLoKBt7e2KW6ALYg4U9KlSL79pGkdq Pr1BPs7otUxpta9VIkhX8YrOz8X6i8rMFeMQc= Received: by 10.204.97.193 with SMTP id m1mr5027878bkn.46.1292952364648; Tue, 21 Dec 2010 09:26:04 -0800 (PST) Received: from localhost (host-94-101-4-66.igua.fi [94.101.4.66]) by mx.google.com with ESMTPS id x38sm3143188bkj.1.2010.12.21.09.26.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 21 Dec 2010 09:26:03 -0800 (PST) From: Jarkko Nikula To: linux-omap@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Tony Lindgren , Jarkko Nikula , Srikar , Mark Brown Subject: [PATCH 2/2] omap: rx51: Add vdda_dac supply for tvout Date: Tue, 21 Dec 2010 19:25:35 +0200 Message-Id: <1292952335-21314-3-git-send-email-jhnikula@gmail.com> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1292952335-21314-1-git-send-email-jhnikula@gmail.com> References: <1292952335-21314-1-git-send-email-jhnikula@gmail.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.3 (demeter1.kernel.org [140.211.167.41]); Tue, 21 Dec 2010 17:26:09 +0000 (UTC) diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c index 768f0dc..e75e240 100644 --- a/arch/arm/mach-omap2/board-rx51-peripherals.c +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c @@ -363,6 +363,10 @@ static struct regulator_consumer_supply rx51_vaux1_consumers[] = { REGULATOR_SUPPLY("vdds_sdi", "omapdss"), }; +static struct regulator_consumer_supply rx51_vdac_supply[] = { + REGULATOR_SUPPLY("vdda_dac", "omapdss"), +}; + static struct regulator_init_data rx51_vaux1 = { .constraints = { .name = "V28", @@ -480,14 +484,17 @@ static struct regulator_init_data rx51_vsim = { static struct regulator_init_data rx51_vdac = { .constraints = { + .name = "VDAC", .min_uV = 1800000, .max_uV = 1800000, + .apply_uV = true, .valid_modes_mask = REGULATOR_MODE_NORMAL | REGULATOR_MODE_STANDBY, - .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE - | REGULATOR_CHANGE_MODE + .valid_ops_mask = REGULATOR_CHANGE_MODE | REGULATOR_CHANGE_STATUS, }, + .num_consumer_supplies = 1, + .consumer_supplies = rx51_vdac_supply, }; static struct regulator_init_data rx51_vio = {