Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1840442rwn; Fri, 16 Sep 2022 01:22:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6wdqE69wEO3aIX+wovPvo/ZzAjBb5NcBczfmoRDZq3YtXejG+Hbtip0gYxjw7Af88yQg9b X-Received: by 2002:a17:907:1b12:b0:72f:9b44:f9e with SMTP id mp18-20020a1709071b1200b0072f9b440f9emr2757827ejc.653.1663316528122; Fri, 16 Sep 2022 01:22:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663316528; cv=none; d=google.com; s=arc-20160816; b=0HN24Yt/V+y0CLB8QPyGD3o5OL1yQ5XLMZZmkKgrtt6frCIVHiDGqF8jeWqpE3cQE9 c0vo4ZlJdndOMzK0IOCUreRhHhFBPndzgCZieU0T/EvS9AvjqKBLBLeQ6lnxLxZjBUDQ KWLEe8bnWY8UjvIrGAOOTMqqqdFdc19APJs4TB4PL60Ujp/CfToVOv6QZ8PL4PxViz1I JfXTdNfedwY7b4oWZgtOGA6/bD23iQEQBnAxgk8zzrijmnS822ho6zRyUSX1+gYBUKrR qY39cvH2CzZb8gapiM7wjT9UjwxoVYnv8mW34ipZwkJUqLZfD4nbNAszxOn93JPT/2D5 8iGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from; bh=GFM1bU7nMlGJnUzK9riUPVVrlC8vLRNgeTHgyGw2XsA=; b=JnYRjFTjIHAIkMM6Izq6X35Z6hw+pw5FUPLVIbtuA/5h9vKaSieYiLWF+3tgIOK+PN unrbWpV9KYFjfDOsEmwznmnA9DF5zh//w6u3Y+S27EENa29P/QfoczQXHJA41y3/IE/1 qq5WPdYk1cPIuWgnPuGrD3J98CKNb+YibFgXe5SidJiHAxtD5tpkFMsI6UHGbqjdW+fX wAgQBCVHso64Vbp79xHUsXy7+UGAUSpvOtMeCPDyX9q3fy3FRahiU1yihvxjzdWo0di7 DVjftxUS5BZHJm8cpKumIIaThZF7LWwPEqpV/QL+APSGDAR4gAwh6hPHP//SmKTcOFnC Cg7Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hb11-20020a170907160b00b007330c08fe49si18427365ejc.206.2022.09.16.01.21.42; Fri, 16 Sep 2022 01:22:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230217AbiIPIPE (ORCPT + 99 others); Fri, 16 Sep 2022 04:15:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbiIPIO5 (ORCPT ); Fri, 16 Sep 2022 04:14:57 -0400 Received: from twspam01.aspeedtech.com (twspam01.aspeedtech.com [211.20.114.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9147205F8 for ; Fri, 16 Sep 2022 01:14:54 -0700 (PDT) Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 28G7rljF078927; Fri, 16 Sep 2022 15:53:47 +0800 (GMT-8) (envelope-from jammy_huang@aspeedtech.com) Received: from JammyHuang-PC.aspeed.com (192.168.2.115) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 16 Sep 2022 16:14:18 +0800 From: Jammy Huang To: , , , , , Subject: [PATCH] drm/ast: Add resolution support for 1152x864@75 Date: Fri, 16 Sep 2022 16:14:16 +0800 Message-ID: <20220916081416.1824-1-jammy_huang@aspeedtech.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [192.168.2.115] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 28G7rljF078927 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add 1152x864 into support list. Signed-off-by: Jammy Huang --- drivers/gpu/drm/ast/ast_mode.c | 3 +++ drivers/gpu/drm/ast/ast_tables.h | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c index 214b10178454..0b2c5fe8dc2c 100644 --- a/drivers/gpu/drm/ast/ast_mode.c +++ b/drivers/gpu/drm/ast/ast_mode.c @@ -114,6 +114,9 @@ static bool ast_get_vbios_mode_info(const struct drm_format_info *format, case 1024: vbios_mode->enh_table = &res_1024x768[refresh_rate_index]; break; + case 1152: + vbios_mode->enh_table = &res_1152x864[refresh_rate_index]; + break; case 1280: if (mode->crtc_vdisplay == 800) vbios_mode->enh_table = &res_1280x800[refresh_rate_index]; diff --git a/drivers/gpu/drm/ast/ast_tables.h b/drivers/gpu/drm/ast/ast_tables.h index dbe1cc620f6e..0378c9bc079b 100644 --- a/drivers/gpu/drm/ast/ast_tables.h +++ b/drivers/gpu/drm/ast/ast_tables.h @@ -272,6 +272,13 @@ static const struct ast_vbios_enhtable res_1600x1200[] = { (SyncPP | Charx8Dot), 0xFF, 1, 0x33 }, }; +static const struct ast_vbios_enhtable res_1152x864[] = { + {1600, 1152, 64, 128, 900, 864, 1, 3, VCLK108, /* 75Hz */ + (SyncPP | Charx8Dot | NewModeInfo), 75, 1, 0x3B }, + {1600, 1152, 64, 128, 900, 864, 1, 3, VCLK108, /* end */ + (SyncPP | Charx8Dot | NewModeInfo), 0xFF, 1, 0x3B }, +}; + /* 16:9 */ static const struct ast_vbios_enhtable res_1360x768[] = { {1792, 1360, 64, 112, 795, 768, 3, 6, VCLK85_5, /* 60Hz */ -- 2.25.1