From patchwork Thu Jul 4 13:52:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 1127545 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="Esf0Xkgb"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45ffYM3q2Nz9sBp for ; Thu, 4 Jul 2019 23:52:22 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 5A6DDC21C3F; Thu, 4 Jul 2019 13:52:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 768C2C21C2C; Thu, 4 Jul 2019 13:52:15 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 1C477C21C2C; Thu, 4 Jul 2019 13:52:14 +0000 (UTC) Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by lists.denx.de (Postfix) with ESMTPS id C1C07C21BE5 for ; Thu, 4 Jul 2019 13:52:13 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id 207so5848581wma.1 for ; Thu, 04 Jul 2019 06:52:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=36wNKgdHK8lDUoTJF+8tRDU66RLmWTTFpiuCod+c9/E=; b=Esf0XkgbG7lVYKYnPim8KnQGrEMUxiu7a/0KGtTTDrgeDoVAX6/EnW5uOFWjUomfyR eOwx9/laCXgglVXhV6fW+mWxeETz8JgzYkTAsTiWrqSwGcjwHHqfmXwmbkrMcgCzm9vn mTes9XoOekt/UefswRSUYwz/T6kfnyLGRmtudOrM57UD11zruvrIh4OGqqTn76WG99z5 7a5JfG0RUWc2TCbzN8nPOEcoiniMmLvmGtcj7g7WNF4F4lqCCyX2H+JDXYRU2iYG03kR Og61wwuIOMjPpZ482jQwg6vPhw2iloDBrB1lQp0LQttodbLugsfNmgpHczyzlOSh0ji9 mmiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=36wNKgdHK8lDUoTJF+8tRDU66RLmWTTFpiuCod+c9/E=; b=d28R20DjXPHNhQ1Ny4L6BWQI2gD7Z91Kq5GZUZ1ZnIa0zErI1AHpGhwYSM4xl4leub Z3NWyq4cWlYNZIXgHLD6YrEby5edel63PCDmY7/Epu7QkWGYk0oRpnYV4nMFb/0Phwml 7IXNONSHNNsY7GTzBhyUL5tqpiSE1cpX8OYbXIA/VoA7K1hKIDk23SK3yJEe7BQTmJGK rbN4ZAyLJzYakUiLKqtqVtnbvU9sYELaCdsZ2ddYUqKPmxHDTodahJjmMEZVCzieu3G0 SxE4nLM6whgFVeB8H3uEg15oMRwVKvGkL41WzqQknSp8bSR0E/GJogfjp15PJ0apGgIq LG3w== X-Gm-Message-State: APjAAAWPgDctLxIpHsfWGT8BSGViyxKhHScerutkglKextxvfxWTV+U2 4qXDvUloWWy5v9NMTdNO2bQAGw== X-Google-Smtp-Source: APXvYqwwNyBFMqGQ2wRntnViKp9VO7ikMfhW/CCAJGq9MK+yMJ4HqeGbrjt3DOQcFK/3IDiUYxO/NA== X-Received: by 2002:a1c:e341:: with SMTP id a62mr13239359wmh.165.1562248333097; Thu, 04 Jul 2019 06:52:13 -0700 (PDT) Received: from localhost.localdomain (176-150-251-154.abo.bbox.fr. [176.150.251.154]) by smtp.gmail.com with ESMTPSA id x11sm4793199wmi.26.2019.07.04.06.52.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Jul 2019 06:52:12 -0700 (PDT) From: Neil Armstrong To: agust@denx.de Date: Thu, 4 Jul 2019 15:52:05 +0200 Message-Id: <20190704135208.32104-1-narmstrong@baylibre.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Cc: u-boot@lists.denx.de, u-boot-amlogic@groups.io Subject: [U-Boot] [PATCH 0/3] video: add support for EDID timings validation X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This patch introduces an edid_get_timing_validate() variant function with a mode_valid() callback in order to filter supported timings from a display driver while adding a new mode_valid() display op. This permits selecting a valid timing on Amlogic SoCs when plugged on 4K monitors/TVs for example. Neil Armstrong (3): edid: add edid_get_timing_validate() variant to filter out edid modes video: display: use edid_get_timing_validate() variant to filter supported EDID modes video: meson: dw-hdmi: add EDID mode filtering to only select supported modes common/edid.c | 22 +++++++++++++++++++--- drivers/video/display-uclass.c | 15 ++++++++++++++- drivers/video/meson/meson_dw_hdmi.c | 7 +++++++ include/display.h | 10 ++++++++++ include/edid.h | 22 ++++++++++++++++++++++ 5 files changed, 72 insertions(+), 4 deletions(-)