From patchwork Thu Oct 2 19:16:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Nelson X-Patchwork-Id: 396078 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 7D672140180 for ; Fri, 3 Oct 2014 05:20:10 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D9BA5AB5FE; Thu, 2 Oct 2014 21:18:44 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id q3aNJZ11RjrH; Thu, 2 Oct 2014 21:18:44 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2C06FAB600; Thu, 2 Oct 2014 21:18:10 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 01CADAB5CE for ; Thu, 2 Oct 2014 21:18:07 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BGsTt0W+0cvq for ; Thu, 2 Oct 2014 21:18:06 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by theia.denx.de (Postfix) with ESMTPS id 7A093AB5CF for ; Thu, 2 Oct 2014 21:17:46 +0200 (CEST) Received: by mail-pa0-f47.google.com with SMTP id rd3so3258161pab.34 for ; Thu, 02 Oct 2014 12:17:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ctPAhxdQVh1WgYF9zfVv9Dkwiv1SQYvcH1//pc+lRyU=; b=P6ezOR35ZdMaNZa2PbKNaymUmcnnspxg8GGbxfhkfoqKtBS1Lifcaf/unU6j4XfCRi 8S9jq1rj8h+adLVCy6IYNid+dLH1/QRI9AxwaAuqtcByNvcH+Vn163LbyjvuGt5j+d7a KPbXllnJvGuMZsNVsIusDxDtAlCKf311ycvs+zTZJkdDGkKvCziWcJwV2GPbQoie2Tji Uz+Fyq20P+UlymxNpTXnDbq+Ei7ZSK86L18etbzRweyo1Q9PVOpKbdwiN4pLehrHkfNs Yh3fLi7awJbYy3LvxlI0NkB3BtPcL/aGXmHbadtGghIo7gt2lIzrYk7KZ05g5+EOP9G/ 5euQ== X-Gm-Message-State: ALoCoQntyiKnEdzbP1BK8z3Mjy9EApA2jxQ8ZcHtZaPConHKiBuKCEVkqg8XviMQ6wEinAR9xPH/ X-Received: by 10.66.240.197 with SMTP id wc5mr1010132pac.87.1412277465078; Thu, 02 Oct 2014 12:17:45 -0700 (PDT) Received: from localhost.localdomain (174-19-208-215.phnx.qwest.net. [174.19.208.215]) by mx.google.com with ESMTPSA id ot8sm4569317pbc.1.2014.10.02.12.17.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 Oct 2014 12:17:43 -0700 (PDT) From: Eric Nelson To: u-boot@lists.denx.de Date: Thu, 2 Oct 2014 12:16:39 -0700 Message-Id: <1412277413-30271-19-git-send-email-eric.nelson@boundarydevices.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1412277413-30271-1-git-send-email-eric.nelson@boundarydevices.com> References: <1412277413-30271-1-git-send-email-eric.nelson@boundarydevices.com> Cc: diego.rondini@kynetics.it Subject: [U-Boot] [PATCH 18/32] nitrogen6x: display use I2C detect for HDMI X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de The HPD pin and RX_SENSE registers have proven to be less reliable than using I2C on the EDID pins for detection of an HDMI monitor. In particular, when the HDMI output is reset through a "reboot" cycle, the detect_hdmi() routine often bounces, resulting in a failure to detect a connected monitor. Signed-off-by: Eric Nelson --- board/boundary/nitrogen6x/nitrogen6x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/board/boundary/nitrogen6x/nitrogen6x.c b/board/boundary/nitrogen6x/nitrogen6x.c index 115ee81..269d62e 100644 --- a/board/boundary/nitrogen6x/nitrogen6x.c +++ b/board/boundary/nitrogen6x/nitrogen6x.c @@ -500,10 +500,10 @@ static void enable_rgb(struct display_info_t const *dev) } struct display_info_t const displays[] = {{ - .bus = -1, - .addr = 0, + .bus = 1, + .addr = 0x50, .pixfmt = IPU_PIX_FMT_RGB24, - .detect = detect_hdmi, + .detect = detect_i2c, .enable = do_enable_hdmi, .mode = { .name = "HDMI",