From patchwork Fri Jun 17 07:12:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 70286 Delivered-To: patches@linaro.org Received: by 10.140.28.4 with SMTP id 4csp140216qgy; Fri, 17 Jun 2016 00:12:24 -0700 (PDT) X-Received: by 10.66.178.49 with SMTP id cv17mr769721pac.157.1466147544620; Fri, 17 Jun 2016 00:12:24 -0700 (PDT) Return-Path: Received: from mail-pf0-x235.google.com (mail-pf0-x235.google.com. [2607:f8b0:400e:c00::235]) by mx.google.com with ESMTPS id b6si21804963pay.99.2016.06.17.00.12.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Jun 2016 00:12:24 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c00::235 as permitted sender) client-ip=2607:f8b0:400e:c00::235; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c00::235 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-pf0-x235.google.com with SMTP id t190so28118058pfb.3 for ; Fri, 17 Jun 2016 00:12:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id; bh=fg5sE2VxLFlFy+xImRiylcEXB08k47lRY6ILoEeNbsc=; b=S1IXQaIMY3Lnj0hXV3fCD2ecN2wZWk8Fy6fOhc0qHXU7C2AJuMdfrdBkDMuGj06K5F Bwnz4XR556Sk9JbsPKFcOvO/zYgBDT3F4f+7fWdfnZFnfUBBsZA/pPpPahSqEp36yZWA tB7CLmLrqHR/enG2kA5P8Jg94GmvmPpYKwdSU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=fg5sE2VxLFlFy+xImRiylcEXB08k47lRY6ILoEeNbsc=; b=md54sYQiHsfihOA6Dso1TSQe58VfPu2oL8qFjG3g/l/2KFxGK7i1p6A1+DNm3K3uMo xb9ZZlIxkl6bd6MqF5uW/tZk3dvNz9pCTXSdWpAvul+Dk0kBl8VqcRcrBovsm9daVIyR MmzMH0YOsbS5UVd0jOT1hZXbvSSqqwq3k3/L86P2wfTktNPCSiSZys6nDGgsKmfxfxxi j2T/Ed+L6IyaNS8BFgxx7EaCDpASYNdmegsohrkbZ0/ksrCPPNr40OcpKXemrvgS5b6h Bjb8H25QSRUgNBKH2iizkkzoYU+j9MhOejRFNduwBMaQdYJlKN5kjyv3TLA/bEzKIu2K IReA== X-Gm-Message-State: ALyK8tJ5LBF9QTWrLnIiRRpavxIt/qxvNQFFbUi+JLcM5BWRXk/0ygpOW7axhrPOyzs+My3dSM4= X-Received: by 10.98.57.220 with SMTP id u89mr827488pfj.148.1466147544170; Fri, 17 Jun 2016 00:12:24 -0700 (PDT) Return-Path: Received: from localhost.localdomain (c-73-67-244-238.hsd1.or.comcast.net. [73.67.244.238]) by smtp.gmail.com with ESMTPSA id a87sm7228325pfc.63.2016.06.17.00.12.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 17 Jun 2016 00:12:22 -0700 (PDT) From: John Stultz To: john.stultz@linaro.org Subject: [PATCH] adv7511: Add more modes to HiKey whitelist Date: Fri, 17 Jun 2016 00:12:20 -0700 Message-Id: <1466147540-22854-1-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 I went through a bunch more potential modes to check if HiKey could properly drive them or not, and these all seemed to work ok, so add them to the whitelist. There are likely more valid modes out there. Signed-off-by: John Stultz --- drivers/gpu/drm/i2c/adv7511.c | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) -- 1.9.1 diff --git a/drivers/gpu/drm/i2c/adv7511.c b/drivers/gpu/drm/i2c/adv7511.c index 016d156..554aa99 100644 --- a/drivers/gpu/drm/i2c/adv7511.c +++ b/drivers/gpu/drm/i2c/adv7511.c @@ -816,12 +816,23 @@ static int adv7511_mode_valid(struct adv7511 *adv7511, DRM_DEBUG("Checking mode %ix%i@%i clock: %i...", mode->hdisplay, mode->vdisplay, drm_mode_vrefresh(mode), mode->clock); if ((mode->hdisplay == 1920 && mode->vdisplay == 1080 && mode->clock == 148500) || - (mode->hdisplay == 1280 && mode->vdisplay == 800 && mode->clock == 83496) || - (mode->hdisplay == 1280 && mode->vdisplay == 720 && mode->clock == 74440) || - (mode->hdisplay == 1280 && mode->vdisplay == 720 && mode->clock == 74250) || - (mode->hdisplay == 1024 && mode->vdisplay == 768 && mode->clock == 75000) || - (mode->hdisplay == 1024 && mode->vdisplay == 768 && mode->clock == 81833) || - (mode->hdisplay == 800 && mode->vdisplay == 600 && mode->clock == 40000)) { + (mode->hdisplay == 1920 && mode->vdisplay == 1080 && mode->clock == 80192) || + (mode->hdisplay == 1920 && mode->vdisplay == 1080 && mode->clock == 74250) || + (mode->hdisplay == 1920 && mode->vdisplay == 1080 && mode->clock == 61855) || + (mode->hdisplay == 1680 && mode->vdisplay == 1050 && mode->clock == 147116) || + (mode->hdisplay == 1600 && mode->vdisplay == 1200 && mode->clock == 160961) || + (mode->hdisplay == 1600 && mode->vdisplay == 900 && mode->clock == 118963) || + (mode->hdisplay == 1440 && mode->vdisplay == 900 && mode->clock == 126991) || + (mode->hdisplay == 1280 && mode->vdisplay == 1024 && mode->clock == 128946) || + (mode->hdisplay == 1280 && mode->vdisplay == 960 && mode->clock == 102081) || + (mode->hdisplay == 1280 && mode->vdisplay == 800 && mode->clock == 83496) || + (mode->hdisplay == 1280 && mode->vdisplay == 720 && mode->clock == 74440) || + (mode->hdisplay == 1280 && mode->vdisplay == 720 && mode->clock == 74250) || + (mode->hdisplay == 1024 && mode->vdisplay == 768 && mode->clock == 78800) || + (mode->hdisplay == 1024 && mode->vdisplay == 768 && mode->clock == 75000) || + (mode->hdisplay == 1024 && mode->vdisplay == 768 && mode->clock == 81833) || + (mode->hdisplay == 800 && mode->vdisplay == 600 && mode->clock == 48907) || + (mode->hdisplay == 800 && mode->vdisplay == 600 && mode->clock == 40000)) { mode->type |= DRM_MODE_TYPE_PREFERRED; DRM_DEBUG("OK\n"); return MODE_OK;