From patchwork Thu Aug 23 13:45:08 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 1367191 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 6FE473FCAE for ; Thu, 23 Aug 2012 13:45:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933054Ab2HWNpi (ORCPT ); Thu, 23 Aug 2012 09:45:38 -0400 Received: from na3sys009aog133.obsmtp.com ([74.125.149.82]:33270 "EHLO na3sys009aog133.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758890Ab2HWNph (ORCPT ); Thu, 23 Aug 2012 09:45:37 -0400 Received: from mail-lpp01m010-f48.google.com ([209.85.215.48]) (using TLSv1) by na3sys009aob133.postini.com ([74.125.148.12]) with SMTP ID DSNKUDY0APElnNQCsAh0nrLExh1ZGa1+XV3T@postini.com; Thu, 23 Aug 2012 06:45:36 PDT Received: by lagr15 with SMTP id r15so488604lag.35 for ; Thu, 23 Aug 2012 06:45:34 -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=qUvlyMFNvywp22a0fK/yH7ZZsCx1aZ6i19nKpNBDZlE=; b=MENg006iUCU7SjeLS6crvah5rin0UqOQG9gO50pkPATTG8vDdwh73tTRgLptYdDqRO rgifsMB6GpabhrKenlcyheYMUj5OcreKa00mrwCJ2P9aBCgaXqoD1oG6GhqBEki68JZr cLhHNdrD7Fisi/jHQMmygJLPckWOWb6eeBCmd1TEGRdWmM4DV3VlEL2NAnBo+1PWQJDW wwxP4M0QiDXo7oC9+OVmotE6pIuvm0Xq0Ab7UkARv38xjUu98Z6Qp9gTzeciqR3yGGV4 1hbKrWAZVzetB5Gem8xkWNzp2RR4XfY7q+Pivm/25ETxUHwTtdTOUa7368ojakl9eUAy sKGw== Received: by 10.112.83.200 with SMTP id s8mr962659lby.13.1345729534555; Thu, 23 Aug 2012 06:45:34 -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.32 (version=SSLv3 cipher=OTHER); Thu, 23 Aug 2012 06:45:33 -0700 (PDT) From: Tomi Valkeinen To: archit@ti.com Cc: linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org, Tomi Valkeinen Subject: [PATCH 2/8] OMAPDSS: HDMI: Add delay to wait for 5V power Date: Thu, 23 Aug 2012 16:45:08 +0300 Message-Id: <1345729514-2441-3-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: ALoCoQmCNqMkkycgzsTotkx2n/Vxv7QDZAsqpG7mxZ8EMSaFTTcizTAVsbBPqciixnlmVHMhSVwO Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org TPD12S015A spec says to wait 300us after setting CT_CP_HPD gpio for the 5V power output to reach 90% of the voltage. This patch adds the delay to the driver. Signed-off-by: Tomi Valkeinen --- drivers/video/omap2/dss/hdmi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/video/omap2/dss/hdmi.c b/drivers/video/omap2/dss/hdmi.c index 4fbe271..96a6e29 100644 --- a/drivers/video/omap2/dss/hdmi.c +++ b/drivers/video/omap2/dss/hdmi.c @@ -492,6 +492,9 @@ static int hdmi_power_on(struct omap_dss_device *dssdev) gpio_set_value(hdmi.ct_cp_hpd_gpio, 1); gpio_set_value(hdmi.ls_oe_gpio, 1); + /* wait 300us after CT_CP_HPD for the 5V power output to reach 90% */ + udelay(300); + r = hdmi_runtime_get(); if (r) goto err_runtime_get;