From patchwork Wed Mar 2 02:49:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommy Huang X-Patchwork-Id: 12765453 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 DFEE6C433F5 for ; Wed, 2 Mar 2022 03:36:38 +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:References:In-Reply-To: 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: List-Owner; bh=NzwbgKxbnOsmkSugKtl2R03u+fi3YKTXG2iBttWC7q0=; b=BZKbq3WGN0FJvy z1XJNlGNxJY88K3LZeBxSDiGlLG2QCUhnxKRWfpw5W6QY5mgw/CnZJpxu7CTNItp3mK08ofWfjnl+ x/SGAxrpfRnToDREIjpof836/Z84473C3xeQgKxyckOsXSKnIKt6i81H26h6RCQfiQCAkf0jWNmrM aXcb9ZQPyKvthENN4FOZcGTnX8S2uiAxxY/ObOidscr4otwlCwa8GV2o0OAgiw4Xj05ul5c9c1DAz qvY9xVB3WEaQCRO7aYB52+CqZ+uPenBZy3q/ogaKND7pUsC3sryV+gGIzPSVYNGMg27Y76aRwmy9h ysfh1ATphBjpaE2vurGg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPFlx-001JNm-H1; Wed, 02 Mar 2022 03:35:29 +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 1nPFlP-001JGq-PU for linux-arm-kernel@bombadil.infradead.org; Wed, 02 Mar 2022 03:34:55 +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:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=1xUnfboqNsyKAU3qieJiWR1Uy8ZBCRePVeYLaK17s0c=; b=qiUzgCgV3ZZcdbZ5xV4SkJNiMm L8GawIUx0b1QJa/jLtigofrBnQww1AAP7LGZQkS0kSuviLpvMOXHNY3iT+1nFXiyiMwcTy0LKIBz4 thtkasZED2NvSkXvT9XwjOPCbtPiJK5D6X4dzRW1V0Bi3yYGAV+AfgR1xGN2OcayzQDme4ESl14L1 rUA6wUCejc+4H48PJUKXjL5pKzQasOv+7munQ4a9drpD14AOSSg9AYscNtudcsnPI4m8YTFDnQ0Oy op3hhr8X2cIFcq691DJD7/QJFvLFnRGIHzRSvAOYtVgN88ZIpAtPVYbdTjytisnPNu4hpQ0c7+b2n i1dGnykQ==; Received: from twspam01.aspeedtech.com ([211.20.114.71]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPF4Q-00ESbr-VX for linux-arm-kernel@lists.infradead.org; Wed, 02 Mar 2022 02:50:33 +0000 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 2222eKE0029210; Wed, 2 Mar 2022 10:40:20 +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; Wed, 2 Mar 2022 10:49:41 +0800 From: Tommy Haung To: , , , , , , , , , CC: Subject: [PATCH v6 4/5] drm/aspeed: Add AST2600 chip support Date: Wed, 2 Mar 2022 10:49:29 +0800 Message-ID: <20220302024930.18758-5-tommy_huang@aspeedtech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220302024930.18758-1-tommy_huang@aspeedtech.com> References: <20220302024930.18758-1-tommy_huang@aspeedtech.com> 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 2222eKE0029210 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220302_025031_624372_1F763E36 X-CRM114-Status: UNSURE ( 8.98 ) 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 Add AST2600 chip support and setting. Signed-off-by: Tommy Haung --- drivers/gpu/drm/aspeed/aspeed_gfx_drv.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c b/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c index d4b56b3c7597..d10246b1d1c2 100644 --- a/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c +++ b/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c @@ -82,9 +82,18 @@ static const struct aspeed_gfx_config ast2500_config = { .scan_line_max = 128, }; +static const struct aspeed_gfx_config ast2600_config = { + .dac_reg = 0xc0, + .int_clear_reg = 0x68, + .vga_scratch_reg = 0x50, + .throd_val = CRT_THROD_LOW(0x50) | CRT_THROD_HIGH(0x70), + .scan_line_max = 128, +}; + static const struct of_device_id aspeed_gfx_match[] = { { .compatible = "aspeed,ast2400-gfx", .data = &ast2400_config }, { .compatible = "aspeed,ast2500-gfx", .data = &ast2500_config }, + { .compatible = "aspeed,ast2600-gfx", .data = &ast2600_config }, { }, }; MODULE_DEVICE_TABLE(of, aspeed_gfx_match);