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: 1367301 Return-Path: X-Original-To: patchwork-linux-fbdev@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 041DADF2AB for ; Thu, 23 Aug 2012 13:45:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933972Ab2HWNpy (ORCPT ); Thu, 23 Aug 2012 09:45:54 -0400 Received: from na3sys009aog111.obsmtp.com ([74.125.149.205]:41669 "EHLO na3sys009aog111.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934002Ab2HWNpt (ORCPT ); Thu, 23 Aug 2012 09:45:49 -0400 Received: from mail-lpp01m010-f54.google.com ([209.85.215.54]) (using TLSv1) by na3sys009aob111.postini.com ([74.125.148.12]) with SMTP ID DSNKUDY0AWebg69tQ7F/GReNpSatPvtfVUpA@postini.com; Thu, 23 Aug 2012 06:45:48 PDT Received: by lage12 with SMTP id e12so391795lag.41 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=e9K/pEHrFBrPSTFOHG1XQ3E7ph3uzvR6ByX59nYpJyCpVLDNYOhbMwlkVh1sON4cIp YG5Ft1QTd0JjQEtKZhSf2trb/lN0lGoiI2dOmmvlZ4UWnROfwshF4VLokVavRvloqi21 I3mzYxDKf4dn2xLbX52rBW2cb7qOMl4Tyws5bJKgf4ReJyV6DO8RALn0n/AojUgBH0QH +wd4YiqocXI0tWof21pJ2HdMy2akINIIQiFU7/rTflN9UmpxWvAgGhk1DEOPn+XVIFbs 71V89GUu/iAwVP6B1MvufikzYupdnUQfxlTgg4lHg1jcBnUgsKuq4+CuMJjz0K6pPtaS PVyg== 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: ALoCoQm7E2z0uR00iofa1GvaUz/vRv7HgC0JGA8XN7PFq3FHby5IokbuwPGsNhlb4pdRMLnlTDxK Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@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", };