From patchwork Thu Feb 8 09:53:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 10206831 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1260360327 for ; Thu, 8 Feb 2018 09:53:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 063172944E for ; Thu, 8 Feb 2018 09:53:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EEF1B29455; Thu, 8 Feb 2018 09:53:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7E60E2944E for ; Thu, 8 Feb 2018 09:53:36 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B2C3C6E5AF; Thu, 8 Feb 2018 09:53:34 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf0-x242.google.com (mail-lf0-x242.google.com [IPv6:2a00:1450:4010:c07::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id AED806E5AF for ; Thu, 8 Feb 2018 09:53:32 +0000 (UTC) Received: by mail-lf0-x242.google.com with SMTP id x196so5508301lfd.12 for ; Thu, 08 Feb 2018 01:53:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=h50vQbWLyTUFtEvDl1472NIOWChpge5btrv7/5Uz1wo=; b=QtU9ZYsbbDoxWCvZ9TZKUI98n8kuC1Zu8qRK7us6NMWn3vMfuPg6DiCMYmjBiFC0ak j/RPGobF+CtJMhdQWOKL0SJnX3g+wS/mDLWq3wFM18N0YG+dxTS5skUeZiabzA6+o4Cw 68VUVUAtsahOH+Y/J2RriWFon2ees0Kf4/7VI= 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; bh=h50vQbWLyTUFtEvDl1472NIOWChpge5btrv7/5Uz1wo=; b=MTbmQkcphvlvH+nsRtkC1jMjXqfNeIjn/4yTkha5/dau7EY5nAuFklX7F+Eh8XMZJr 9C49WDGyH+rM7F0B+pg2Ogqu0zCUl8R3+XDKZIYFx4LEQPlN7OelZoX703NaU3KQNfEc 2YKHZv1XYJQXo/dypkHAacFEO9pKjR51TjnI9CRhn9VXwjjSG+6Z08/VXuJNA50DSjXk dyrDmKCsa0dcXO0UQJ0Ul77G3SvxRcBJw8rq3BtpPtEcI9UiQOGpuW9M/r1ZrCK6RpDG Zhg/9cI8PtI03fwREN3Qo00GMJEaEKZdxrew9cuGS1MUqj50puglSBmGMzj2nMgnLcpy 1gGA== X-Gm-Message-State: APf1xPCq5kDwfaK2Jm9TLvcuk6lR70O+qEcL/wOTCiWGG09v3VflP1dg 6SlQSxK7Sj47yvy21MCMIZW2lA== X-Google-Smtp-Source: AH8x226J9byKXRxk0o0wZ++LR36EE8vF7U2gWyHQ9KH7KN5LgBKKpZPjjcPdqFObuQ8jPXVYF+RkQQ== X-Received: by 10.25.193.7 with SMTP id r7mr76425lff.29.1518083609834; Thu, 08 Feb 2018 01:53:29 -0800 (PST) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id o88sm771946lfg.84.2018.02.08.01.53.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Feb 2018 01:53:29 -0800 (PST) From: Linus Walleij To: Thierry Reding , dri-devel@lists.freedesktop.org Subject: [PATCH] drm/panel: Fix ARM Versatile panel clocks Date: Thu, 8 Feb 2018 10:53:26 +0100 Message-Id: <20180208095326.15849-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.14.3 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP These clocks are in kHz not in Hz, oops. Fix it so my new bandwidth calculations patch starts working with these panels. Cc: Eric Anholt Signed-off-by: Linus Walleij --- drivers/gpu/drm/panel/panel-arm-versatile.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-arm-versatile.c b/drivers/gpu/drm/panel/panel-arm-versatile.c index 3930b4925b15..35707d0ae6b0 100644 --- a/drivers/gpu/drm/panel/panel-arm-versatile.c +++ b/drivers/gpu/drm/panel/panel-arm-versatile.c @@ -132,7 +132,7 @@ static const struct versatile_panel_type versatile_panels[] = { .width_mm = 79, .height_mm = 54, .mode = { - .clock = 10000000, + .clock = 10000, .hdisplay = 320, .hsync_start = 320 + 6, .hsync_end = 320 + 6 + 6, @@ -156,7 +156,7 @@ static const struct versatile_panel_type versatile_panels[] = { .width_mm = 171, .height_mm = 130, .mode = { - .clock = 25000000, + .clock = 25000, .hdisplay = 640, .hsync_start = 640 + 24, .hsync_end = 640 + 24 + 96, @@ -179,7 +179,7 @@ static const struct versatile_panel_type versatile_panels[] = { .width_mm = 34, .height_mm = 45, .mode = { - .clock = 625000000, + .clock = 625000, .hdisplay = 176, .hsync_start = 176 + 2, .hsync_end = 176 + 2 + 3, @@ -203,7 +203,7 @@ static const struct versatile_panel_type versatile_panels[] = { .width_mm = 37, .height_mm = 50, .mode = { - .clock = 5400000, + .clock = 5400, .hdisplay = 240, .hsync_start = 240 + 10, .hsync_end = 240 + 10 + 10,