From patchwork Tue Feb 15 11:21:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 542867 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 55FFBC433F5 for ; Tue, 15 Feb 2022 11:21:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237040AbiBOLVs (ORCPT ); Tue, 15 Feb 2022 06:21:48 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:41300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237037AbiBOLVr (ORCPT ); Tue, 15 Feb 2022 06:21:47 -0500 Received: from michel.telenet-ops.be (michel.telenet-ops.be [IPv6:2a02:1800:110:4::f00:18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80781A9A7E for ; Tue, 15 Feb 2022 03:21:36 -0800 (PST) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:8c73:faf1:1d11:4a47]) by michel.telenet-ops.be with bizsmtp id vPMY2600n3BmCM306PMZ0u; Tue, 15 Feb 2022 12:21:33 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1nJvtk-000rqd-Gw; Tue, 15 Feb 2022 12:21:32 +0100 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1nJvtk-00B34n-50; Tue, 15 Feb 2022 12:21:32 +0100 From: Geert Uytterhoeven To: Helge Deller Cc: Michael Schmitz , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-m68k@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 1/3] video: fbdev: atari: Fix TT High video mode Date: Tue, 15 Feb 2022 12:21:24 +0100 Message-Id: <20220215112126.2633383-2-geert@linux-m68k.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220215112126.2633383-1-geert@linux-m68k.org> References: <20220215112126.2633383-1-geert@linux-m68k.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org The horizontal resolution (640) for the TT High video mode (1280x960) is definitely bogus. While fixing that, correct the timings to match the TTM195 service manual. Signed-off-by: Geert Uytterhoeven --- Untested on actual hardware. v3: - Adjust pixclock from 7761 to 7760 to match 4 * 32.215905 MHz crystal oscillator frequency, - Make it part of a series. v2[1]: - Use correct base. [1] https://lore.kernel.org/r/20201101102759.2890612-1-geert@linux-m68k.org/ --- drivers/video/fbdev/atafb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/atafb.c b/drivers/video/fbdev/atafb.c index e3812a8ff55a4fb8..a9f25cab4a1e6737 100644 --- a/drivers/video/fbdev/atafb.c +++ b/drivers/video/fbdev/atafb.c @@ -487,8 +487,8 @@ static struct fb_videomode atafb_modedb[] __initdata = { "tt-mid", 60, 640, 480, 31041, 120, 100, 8, 16, 140, 30, 0, FB_VMODE_NONINTERLACED | FB_VMODE_YWRAP }, { - /* 1280x960, 29 kHz, 60 Hz (TT high) */ - "tt-high", 57, 640, 960, 31041, 120, 100, 8, 16, 140, 30, + /* 1280x960, 72 kHz, 72 Hz (TT high) */ + "tt-high", 57, 1280, 960, 7760, 260, 60, 36, 4, 192, 4, 0, FB_VMODE_NONINTERLACED | FB_VMODE_YWRAP },