Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp14995106ybl; Mon, 30 Dec 2019 22:44:06 -0800 (PST) X-Google-Smtp-Source: APXvYqx/UiP18hM/z7dCvmMdtusigCDSFqorXCP0/51DHgtC2b7C2LDc7Hoe0Qwv0OJwfVDCueK9 X-Received: by 2002:a05:6830:1e99:: with SMTP id n25mr39861122otr.67.1577774646072; Mon, 30 Dec 2019 22:44:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577774646; cv=none; d=google.com; s=arc-20160816; b=LOzbJmEleHAP5TWkP4efr0582YIJhPdSwx4vjjpwavxd5GZ6rOuV4W9qCnueaAlTK/ AbFj9Sf7yzON0m8aSHXLdSqVtncC2StYLZcChDw5eRsYSiCso3s/6YyLTuc5kzisR047 U5RhwjfONphOHv5ZgQYhQLkWrRQD5lH/ByTPfLQoVHw+Z6/Yw0ezl8PYwcm+UUdeMm9m TSfdP9FpIhCq7Bmwzdq7UE1wbrehbJdz4ypd21PC8MytnrNDShYzSjBSqk2vS+/PkIWB Yw50lgZv9h4dKA8SMxswNLtH9IuSPQ81nLZsUz605mWDNDwcPDLB8AIbkFx3hNZKQZZ+ oWog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=bWN/npsNEjMcfbkonrpzU0nmeMwCzJGl8XJnKWeuKWw=; b=zUZABJASJVVun7t1p74vbpZmyiQnb5p5xWwqH7IKpihTBf6+nrFA+i5Qjo8CNrWM2K sQ1xeFuxQ4XRzwgpaFPzUKdhSBpSQPx3vJBSDLzr6Op4p+h2B3QsEyfLgEwdGfaaJRw8 aqrqRnSaoFhiA8zhP87JPBD8gz3MfplZVvTs5UJbqUqaXRACrbEzmp1920iQA04L6Yuv 7OpZchtEqHX63HGV+ytQi1hf60pJkXxP5+p7RVZ+/VHBEKCUO+v0zCodWKr/nxMpB9kS vNHO0YT+/p73FYiu8uGLKx30tNapldE4czlp99UAF2W7myWvizXqjqLxuJ9cgv4L7bTM 76GA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l189si19667488oih.166.2019.12.30.22.43.51; Mon, 30 Dec 2019 22:44:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725793AbfLaGmv (ORCPT + 99 others); Tue, 31 Dec 2019 01:42:51 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:53478 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725468AbfLaGmv (ORCPT ); Tue, 31 Dec 2019 01:42:51 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id BBB959DF03C5317FAABC; Tue, 31 Dec 2019 14:42:48 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.439.0; Tue, 31 Dec 2019 14:42:42 +0800 From: Tian Tao To: , , , , , , , , , CC: Subject: [PATCH] drm/hisilicon: Add new clock/resolution configurations Date: Tue, 31 Dec 2019 14:42:51 +0800 Message-ID: <1577774571-60493-1-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the three new pll config for corresponding resolution 1440x900 and 1600x900, 640x480 for hibmc Signed-off-by: Tian Tao Signed-off-by: Gong junjie --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c | 3 +++ drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_regs.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c index f1ce6cb..6bf4334 100644 --- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c +++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c @@ -40,6 +40,7 @@ struct hibmc_dislay_pll_config { }; static const struct hibmc_dislay_pll_config hibmc_pll_table[] = { + {640, 480, CRT_PLL1_HS_25MHZ, CRT_PLL2_HS_25MHZ}, {800, 600, CRT_PLL1_HS_40MHZ, CRT_PLL2_HS_40MHZ}, {1024, 768, CRT_PLL1_HS_65MHZ, CRT_PLL2_HS_65MHZ}, {1152, 864, CRT_PLL1_HS_80MHZ_1152, CRT_PLL2_HS_80MHZ}, @@ -47,6 +48,8 @@ static const struct hibmc_dislay_pll_config hibmc_pll_table[] = { {1280, 720, CRT_PLL1_HS_74MHZ, CRT_PLL2_HS_74MHZ}, {1280, 960, CRT_PLL1_HS_108MHZ, CRT_PLL2_HS_108MHZ}, {1280, 1024, CRT_PLL1_HS_108MHZ, CRT_PLL2_HS_108MHZ}, + {1440, 900, CRT_PLL1_HS_106MHZ, CRT_PLL2_HS_106MHZ}, + {1600, 900, CRT_PLL1_HS_108MHZ, CRT_PLL2_HS_108MHZ}, {1600, 1200, CRT_PLL1_HS_162MHZ, CRT_PLL2_HS_162MHZ}, {1920, 1080, CRT_PLL1_HS_148MHZ, CRT_PLL2_HS_148MHZ}, {1920, 1200, CRT_PLL1_HS_193MHZ, CRT_PLL2_HS_193MHZ}, diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_regs.h b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_regs.h index 9b7e859..17b30c3 100644 --- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_regs.h +++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_regs.h @@ -179,6 +179,7 @@ #define CRT_PLL1_HS_74MHZ 0x23941dc2 #define CRT_PLL1_HS_80MHZ 0x23941001 #define CRT_PLL1_HS_80MHZ_1152 0x23540fc2 +#define CRT_PLL1_HS_106MHZ 0x237C1641 #define CRT_PLL1_HS_108MHZ 0x23b41b01 #define CRT_PLL1_HS_162MHZ 0x23480681 #define CRT_PLL1_HS_148MHZ 0x23541dc2 @@ -191,6 +192,7 @@ #define CRT_PLL2_HS_78MHZ 0x50E147AE #define CRT_PLL2_HS_74MHZ 0x602B6AE7 #define CRT_PLL2_HS_80MHZ 0x70000000 +#define CRT_PLL2_HS_106MHZ 0x0075c28f #define CRT_PLL2_HS_108MHZ 0x80000000 #define CRT_PLL2_HS_162MHZ 0xA0000000 #define CRT_PLL2_HS_148MHZ 0xB0CCCCCD -- 2.7.4