From patchwork Fri Mar 4 06:31:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommy Huang X-Patchwork-Id: 12769064 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8B381C433EF for ; Fri, 4 Mar 2022 13:11:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Ao+QEySVRpUYcbOyhTaWRaKUWqJOHIW35jkopqJnTnA=; b=QQU0KpUFwACNkA wIlhshTbd2KVGdBi0BpZzASvG9vFeaxPD5Wf4XOYTCfBh/3Bk0pzM70eN7ewlpEJ0UKU1723xncy3 HH9nT50sWcMCXyNQe3IuQCGtfqSMF9tr/uucT6caEzXJ9qWd3l7nsUmUvL/6PjdLMT2CFtBjRvf7o iHTsWf4ZtEoPTPVPl5vNajp8RSnXFTX95orBbNNGPHlZBukPcdJWAYiE6+Sb6MMjqcQAgjBf0Z4OH BmlTiReLR7FxG2SUY/HxoXoaXaLZ3fkl+r+cK4pPDAzrixZXrpxQ0BhAnzJRDDMIbXjvyJsFmyl6E tQEVBgtgyij4Z2rlommg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQ7hX-00A4xS-Hi; Fri, 04 Mar 2022 13:10:31 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQ7hE-00A4qS-Tf for linux-arm-kernel@bombadil.infradead.org; Fri, 04 Mar 2022 13:10:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:MIME-Version:Message-ID: Date:Subject:CC:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=i6GNHGiitz/ITx0HLzkyYQlMmGgcsMM0PdOmCuUgVs4=; b=k+SlVYjvok12Aq84ESlWiyz8DY xapwudoqNL5ZieFWdK9ZroRmPUMLaKMzhZMIM+MQ9L+r7R67TOTGIBVnzpBNde9KydXyxM4OttdKd 4CcZX9IM/V9VifV3Zaepc43ZPMXDWUoE3AX+woGPIFzSU+HVccyeGH+74m5q+ClSMk5kv8eDmCUV2 0eJsPhC54hmVii/v7+1pevSWIqaMtmIwdPiNlAe8ByX4zUXvsm2Z7DDZ5fRNb+Sw7E2ALLfM2tSgB TBOBS/ofrH+lWoYP2DBI7KP55FGDvNgsq13WTvmix9Ff65DOlAUiv2Ia0EzSZ91ZUmeL62Q11H9zz 5SvKIsEw==; Received: from twspam01.aspeedtech.com ([211.20.114.71]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQ1UV-00F7IM-Kx for linux-arm-kernel@lists.infradead.org; Fri, 04 Mar 2022 06:32:42 +0000 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 2246MIea041904; Fri, 4 Mar 2022 14:22:18 +0800 (GMT-8) (envelope-from tommy_huang@aspeedtech.com) Received: from tommy0527-VirtualBox.aspeedtech.com (192.168.2.141) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 4 Mar 2022 14:31:44 +0800 From: Tommy Haung To: , , , , , , , , , CC: Subject: [PATCH v1 0/2] Add 1024x768 timing for AST2600 Date: Fri, 4 Mar 2022 14:31:35 +0800 Message-ID: <20220304063137.12970-1-tommy_huang@aspeedtech.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [192.168.2.141] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 2246MIea041904 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220304_063240_638359_6F041F90 X-CRM114-Status: UNSURE ( 7.72 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org v1: Add 1024x768@70Hz for AST2600 soc display timing selection. Add gfx flag for future usage. Testing steps: 1. Add below config to turn VT and LOGO on. CONFIG_TTY=y CONFIG_VT=y CONFIG_CONSOLE_TRANSLATIONS=y CONFIG_VT_CONSOLE=y CONFIG_VT_CONSOLE_SLEEP=y CONFIG_HW_CONSOLE=y CONFIG_VT_HW_CONSOLE_BINDING=y CONFIG_UNIX98_PTYS=y CONFIG_LDISC_AUTOLOAD=y CONFIG_DEVMEM=y CONFIG_DUMMY_CONSOLE=y CONFIG_FRAMEBUFFER_CONSOLE=y CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y CONFIG_LOGO=y CONFIG_LOGO_LINUX_CLUT224=y 2. The Linux logo will be shown on the screen, when the BMC boot in Linux. 3. Check the display mode is 1024x768@70Hz at AST2600. 4. Check the display mode is 800x600@60Hz at AST2500. Tommy Haung (2): drm/aspeed: Add gfx flags and clock selection for AST2600 drm/aspeed: Add 1024x768 mode for AST2600 drivers/gpu/drm/aspeed/aspeed_gfx.h | 15 ++++++++++ drivers/gpu/drm/aspeed/aspeed_gfx_crtc.c | 35 ++++++++++++++++++++++++ drivers/gpu/drm/aspeed/aspeed_gfx_drv.c | 20 ++++++++++++-- drivers/gpu/drm/aspeed/aspeed_gfx_out.c | 14 +++++++++- 4 files changed, 81 insertions(+), 3 deletions(-)