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: 1367201 Return-Path: X-Original-To: patchwork-linux-omap@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 7540F3FCAE for ; Thu, 23 Aug 2012 13:45:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933613Ab2HWNpj (ORCPT ); Thu, 23 Aug 2012 09:45:39 -0400 Received: from na3sys009aog131.obsmtp.com ([74.125.149.247]:60845 "EHLO na3sys009aog131.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933047Ab2HWNpi (ORCPT ); Thu, 23 Aug 2012 09:45:38 -0400 Received: from mail-lpp01m010-f41.google.com ([209.85.215.41]) (using TLSv1) by na3sys009aob131.postini.com ([74.125.148.12]) with SMTP ID DSNKUDY0APElnNQCsAh0nrLExh1ZGa1+XV3T@postini.com; Thu, 23 Aug 2012 06:45:38 PDT Received: by lahd3 with SMTP id d3so457880lah.0 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=idY/v2lmNQt01qn1qEMQ2cL2RBrlwlgbaQ21Fly+qYiz1iyCMkeiBRSZQ33HW6Fdzz PiIOUqg2htk2mQWEvrwz+5BCQXri1Coc894F6wE/CPh1K8/QeIj6T9+/SgSB00QTv6OM zKn94jzoHr5/bygiWHjc713L5oxvuFmskBQpUta/tId4hKGsxbZkF7THV0UYzg2fwzGu 1g6fDhvRTzMGWFwwj4kpwQf0xomqFGRoBOcxFhyGJGUv0PGQXdhJeqWCt5HkLfgoJl3D +wr5PdaTka5V15GN+ueuL2Zv2Xk8VTW6Sfs2LxpJ6bI8INWj34T904d28V1d0D4rMpAh vTWg== 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: ALoCoQm7I6BPbGHa55ka56A5XY4/duOk0rCu8j4zX/zFfrzAGnyAYf3z2t+uo5i8n307s4RNhdkX Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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;