18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-or-later 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright 1998-2008 VIA Technologies, Inc. All Rights Reserved. 48c2ecf20Sopenharmony_ci * Copyright 2001-2008 S3 Graphics, Inc. All Rights Reserved. 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#include "global.h" 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_cistruct GFX_DPA_SETTING GFX_DPA_SETTING_TBL_VT3324[] = { 118c2ecf20Sopenharmony_ci/* ClkRange, DVP0, DVP0DataDriving, DVP0ClockDriving, DVP1, 128c2ecf20Sopenharmony_ci DVP1Driving, DFPHigh, DFPLow */ 138c2ecf20Sopenharmony_ci/* CR96, SR2A[5], SR1B[1], SR2A[4], SR1E[2], CR9B, 148c2ecf20Sopenharmony_ci SR65, CR97, CR99 */ 158c2ecf20Sopenharmony_ci /* LCK/VCK < 30000000 will use this value */ 168c2ecf20Sopenharmony_ci {DPA_CLK_RANGE_30M, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 178c2ecf20Sopenharmony_ci 0x00}, 188c2ecf20Sopenharmony_ci /* 30000000 < LCK/VCK < 50000000 will use this value */ 198c2ecf20Sopenharmony_ci {DPA_CLK_RANGE_30_50M, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 208c2ecf20Sopenharmony_ci 0x00}, 218c2ecf20Sopenharmony_ci /* 50000000 < LCK/VCK < 70000000 will use this value */ 228c2ecf20Sopenharmony_ci {DPA_CLK_RANGE_50_70M, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 238c2ecf20Sopenharmony_ci 0x00}, 248c2ecf20Sopenharmony_ci /* 70000000 < LCK/VCK < 100000000 will use this value */ 258c2ecf20Sopenharmony_ci {DPA_CLK_RANGE_70_100M, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 268c2ecf20Sopenharmony_ci 0x00}, 278c2ecf20Sopenharmony_ci /* 100000000 < LCK/VCK < 15000000 will use this value */ 288c2ecf20Sopenharmony_ci {DPA_CLK_RANGE_100_150M, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 298c2ecf20Sopenharmony_ci 0x00}, 308c2ecf20Sopenharmony_ci /* 15000000 < LCK/VCK will use this value */ 318c2ecf20Sopenharmony_ci {DPA_CLK_RANGE_150M, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0E, 0x00, 328c2ecf20Sopenharmony_ci 0x00}, 338c2ecf20Sopenharmony_ci}; 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_cistruct GFX_DPA_SETTING GFX_DPA_SETTING_TBL_VT3327[] = { 368c2ecf20Sopenharmony_ci/* ClkRange,DVP0, DVP0DataDriving, DVP0ClockDriving, DVP1, 378c2ecf20Sopenharmony_ci DVP1Driving, DFPHigh, DFPLow */ 388c2ecf20Sopenharmony_ci/* CR96, SR2A[5], SR1B[1], SR2A[4], SR1E[2], CR9B, 398c2ecf20Sopenharmony_ci SR65, CR97, CR99 */ 408c2ecf20Sopenharmony_ci/* LCK/VCK < 30000000 will use this value */ 418c2ecf20Sopenharmony_ci{DPA_CLK_RANGE_30M, 0x07, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x08, 0x01}, 428c2ecf20Sopenharmony_ci/* 30000000 < LCK/VCK < 50000000 will use this value */ 438c2ecf20Sopenharmony_ci{DPA_CLK_RANGE_30_50M, 0x07, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x08, 0x01}, 448c2ecf20Sopenharmony_ci/* 50000000 < LCK/VCK < 70000000 will use this value */ 458c2ecf20Sopenharmony_ci{DPA_CLK_RANGE_50_70M, 0x06, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x08, 0x01}, 468c2ecf20Sopenharmony_ci/* 70000000 < LCK/VCK < 100000000 will use this value */ 478c2ecf20Sopenharmony_ci{DPA_CLK_RANGE_70_100M, 0x03, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x08, 0x03}, 488c2ecf20Sopenharmony_ci/* 100000000 < LCK/VCK < 15000000 will use this value */ 498c2ecf20Sopenharmony_ci{DPA_CLK_RANGE_100_150M, 0x03, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x01, 0x02}, 508c2ecf20Sopenharmony_ci/* 15000000 < LCK/VCK will use this value */ 518c2ecf20Sopenharmony_ci{DPA_CLK_RANGE_150M, 0x00, 0x20, 0x00, 0x10, 0x00, 0x03, 0x00, 0x0D, 0x03}, 528c2ecf20Sopenharmony_ci}; 538c2ecf20Sopenharmony_ci 548c2ecf20Sopenharmony_ci/* For VT3364: */ 558c2ecf20Sopenharmony_cistruct GFX_DPA_SETTING GFX_DPA_SETTING_TBL_VT3364[] = { 568c2ecf20Sopenharmony_ci/* ClkRange,DVP0, DVP0DataDriving, DVP0ClockDriving, DVP1, 578c2ecf20Sopenharmony_ci DVP1Driving, DFPHigh, DFPLow */ 588c2ecf20Sopenharmony_ci/* CR96, SR2A[5], SR1B[1], SR2A[4], SR1E[2], CR9B, 598c2ecf20Sopenharmony_ci SR65, CR97, CR99 */ 608c2ecf20Sopenharmony_ci/* LCK/VCK < 30000000 will use this value */ 618c2ecf20Sopenharmony_ci{DPA_CLK_RANGE_30M, 0x07, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x08}, 628c2ecf20Sopenharmony_ci/* 30000000 < LCK/VCK < 50000000 will use this value */ 638c2ecf20Sopenharmony_ci{DPA_CLK_RANGE_30_50M, 0x07, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x08}, 648c2ecf20Sopenharmony_ci/* 50000000 < LCK/VCK < 70000000 will use this value */ 658c2ecf20Sopenharmony_ci{DPA_CLK_RANGE_50_70M, 0x07, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x08}, 668c2ecf20Sopenharmony_ci/* 70000000 < LCK/VCK < 100000000 will use this value */ 678c2ecf20Sopenharmony_ci{DPA_CLK_RANGE_70_100M, 0x07, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x08}, 688c2ecf20Sopenharmony_ci/* 100000000 < LCK/VCK < 15000000 will use this value */ 698c2ecf20Sopenharmony_ci{DPA_CLK_RANGE_100_150M, 0x03, 0x00, 0x02, 0x00, 0x00, 0x03, 0x00, 0x00, 0x08}, 708c2ecf20Sopenharmony_ci/* 15000000 < LCK/VCK will use this value */ 718c2ecf20Sopenharmony_ci{DPA_CLK_RANGE_150M, 0x01, 0x00, 0x02, 0x10, 0x00, 0x03, 0x00, 0x00, 0x08}, 728c2ecf20Sopenharmony_ci}; 73