From patchwork Thu Aug 23 13:45:09 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 1367291 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 21D48DF2AB for ; Thu, 23 Aug 2012 13:45:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934002Ab2HWNpz (ORCPT ); Thu, 23 Aug 2012 09:45:55 -0400 Received: from na3sys009aog114.obsmtp.com ([74.125.149.211]:54424 "EHLO na3sys009aog114.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933964Ab2HWNpt (ORCPT ); Thu, 23 Aug 2012 09:45:49 -0400 Received: from mail-lpp01m010-f48.google.com ([209.85.215.48]) (using TLSv1) by na3sys009aob114.postini.com ([74.125.148.12]) with SMTP ID DSNKUDY0AWebg69tQ7F/GReNpSatPvtfVUpA@postini.com; Thu, 23 Aug 2012 06:45:48 PDT Received: by lagr15 with SMTP id r15so537882lag.21 for ; Thu, 23 Aug 2012 06:45:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=gXqt307xYSAxqCvfKPZg8HSO+OFFGra6zUbxQUDRVXo=; b=Gcdv/aV/bz+mMnQj8aPuNqVDZT7/nHJR66vSvKj9InfoNUyBfZkDnQWam3r4nFoChD Q0V8XbpE3xnNik74zZ+r6B0zX503z4uI1OvsK5GuRJ7dXDKX51TyAA9TSYF30ntVqy4c qaHpMfGXW1NTGhjwBU4QSSpPy1JOdKy4ZcNTfMfddAUkoJG9qoe2w6stYURryKp1tHe/ LkmlBv0U+2vgIbqfydP6nwJ58ucNGs+8ar2QylNMbu1mIMDgrdk7yFgBnOZxpP5s02bm jS7o/UkBDXTz5eE221ASlo3uUOamZKRIp9/SeCG1kWXiQN3ubZjnYGCuXI61o+fbvim4 2rmA== Received: by 10.112.54.6 with SMTP id f6mr944890lbp.89.1345729536097; Thu, 23 Aug 2012 06:45:36 -0700 (PDT) Received: from localhost.localdomain (a91-156-160-115.elisa-laajakaista.fi. [91.156.160.115]) by mx.google.com with ESMTPS id fz8sm466816lbb.9.2012.08.23.06.45.34 (version=SSLv3 cipher=OTHER); Thu, 23 Aug 2012 06:45:35 -0700 (PDT) From: Tomi Valkeinen To: archit@ti.com Cc: linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org, Tomi Valkeinen , Tony Lindgren Subject: [PATCH 3/8] OMAP4: TWL: add vdda_hdmi_dac regulator supply Date: Thu, 23 Aug 2012 16:45:09 +0300 Message-Id: <1345729514-2441-4-git-send-email-tomi.valkeinen@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1345729514-2441-1-git-send-email-tomi.valkeinen@ti.com> References: <1345729514-2441-1-git-send-email-tomi.valkeinen@ti.com> X-Gm-Message-State: ALoCoQnJyX/M+g+KLUevR446RPt70DApODDpsLfetrVHljrOG5mVBywZkhzX3PUbikytxpaNyUL9 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org HDMI requires vdda_hdmi_dac (vdac) power for operation. The regulator, or the regulator supplying the vdac, has been enabled by default and things have worked without the HDMI driver enabling the vdac. I encountered the problem when implementing HDMI device tree support, where the regulator was not enabled by default. This patch adds the vdda_hdmi_dac to twl-common.c so that the HDMI driver can use it. Signed-off-by: Tomi Valkeinen Cc: Tony Lindgren Acked-by: Tony Lindgren --- arch/arm/mach-omap2/twl-common.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-omap2/twl-common.c b/arch/arm/mach-omap2/twl-common.c index 119d5a9..bf90356 100644 --- a/arch/arm/mach-omap2/twl-common.c +++ b/arch/arm/mach-omap2/twl-common.c @@ -257,6 +257,10 @@ static struct twl4030_usb_data omap4_usb_pdata = { .phy_suspend = omap4430_phy_suspend, }; +static struct regulator_consumer_supply omap4_vdda_hdmi_dac_supplies[] = { + REGULATOR_SUPPLY("vdda_hdmi_dac", "omapdss_hdmi"), +}; + static struct regulator_init_data omap4_vdac_idata = { .constraints = { .min_uV = 1800000, @@ -266,6 +270,8 @@ static struct regulator_init_data omap4_vdac_idata = { .valid_ops_mask = REGULATOR_CHANGE_MODE | REGULATOR_CHANGE_STATUS, }, + .num_consumer_supplies = ARRAY_SIZE(omap4_vdda_hdmi_dac_supplies), + .consumer_supplies = omap4_vdda_hdmi_dac_supplies, .supply_regulator = "V2V1", };