Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4514281pxb; Mon, 27 Sep 2021 19:59:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgs9tLeA3p9XXQXaBpq60TVGs7zrHZplmdF9ZBamNs25fD/4jweAuU7rnOpzGuTjAp8J+a X-Received: by 2002:a50:e108:: with SMTP id h8mr4738988edl.42.1632797999002; Mon, 27 Sep 2021 19:59:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632797998; cv=none; d=google.com; s=arc-20160816; b=0/TTfh5IyjuJaYbDEcK/KLguomWvZLyKBfO82MOoGU0n3FCGYz5GIo4ZxLthAmlcjN taZW3/s/uxBU6WB3JyygudGwYT+gXNO2F9KWRljxcAx5gXkGcMyfLIQH/XpKb9iI2aVf CrEIfiDWx7JYP/DNiB01cyKoercv4VCFah9t57kjawBLklHsmbo7yw6C32ImvotUS7jf m07sKJ7O58fwFOkaM41A9enzEdsVGByUrDdUo7kzSImdfmVfpgAhvajCIzzV/GTU1Lro oQEvI67gd4Bwj6b5zLCt88lXKFOxJA2UQW4yz0GszzbyI2zG4Iya4gM1/FgyL9C88Bzf 7wmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=AW+UDoKusiFOoTGG3avakLYiKLn1BrDuLOe/rG+liEk=; b=TPh2O6DUnCjHtaqIJfYvdS7f/oAEXcBSEdCcPhTe36co57WfJjh+BtS++LQyv/krBw VaVXhfn/c288Yvl6gMlsFWfdgKYLr6NqZdcQAxOuTmeAso0pTPdSt4kUj+VW7O9PrasC snny8v9bpzoH25fozVHUkMnHUulhOPYPce/vZuAA0ubCffzbYkXpfD1i/Nu1C92mDQwG SKQ1+W47VxsCHWP9RrQmzc4AYrZ79VHMszOvLhdEboPutiHNqcT43Z0wKHq0ZkLbJuyA 63Qb8h4VtdiT8vZDIrXzm/7aqMBszdeCdRIj8xpJZcsG1+HTkOZUyBtfFi1Hp+w6blZ6 A0Cg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f30si21292724edj.24.2021.09.27.19.59.35; Mon, 27 Sep 2021 19:59:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238750AbhI1C74 (ORCPT + 99 others); Mon, 27 Sep 2021 22:59:56 -0400 Received: from twspam01.aspeedtech.com ([211.20.114.71]:53813 "EHLO twspam01.aspeedtech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238710AbhI1C7z (ORCPT ); Mon, 27 Sep 2021 22:59:55 -0400 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 18S2aURW072687; Tue, 28 Sep 2021 10:36:30 +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; Tue, 28 Sep 2021 10:57:11 +0800 From: tommy-huang To: , , , , , , , , , CC: Subject: [PATCH 3/6] drm/aspeed: Add AST2600 support Date: Tue, 28 Sep 2021 10:57:00 +0800 Message-ID: <20210928025703.10909-4-tommy_huang@aspeedtech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210928025703.10909-1-tommy_huang@aspeedtech.com> References: <20210928025703.10909-1-tommy_huang@aspeedtech.com> MIME-Version: 1.0 Content-Type: text/plain 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 18S2aURW072687 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joel Stanley The values for the threshold and scan line size come from the ASPEED SDK. The DAC register is SCUC0 in the AST2600 datasheet. It has the same layout as the previous generations. Signed-off-by: Joel Stanley Signed-off-by: tommy-huang --- drivers/gpu/drm/aspeed/aspeed_gfx_drv.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c b/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c index b53fee6f1c17..ea9cb0a4f16c 100644 --- a/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c +++ b/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c @@ -79,9 +79,16 @@ static const struct aspeed_gfx_config ast2500_config = { .scan_line_max = 128, }; +static const struct aspeed_gfx_config ast2600_config = { + .dac_reg = 0xc0, + .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); -- 2.17.1