1*64b70da0SThomas Gleixner // SPDX-License-Identifier: GPL-2.0-or-later 2f7018c21STomi Valkeinen /* 3f7018c21STomi Valkeinen * Copyright 1998-2008 VIA Technologies, Inc. All Rights Reserved. 4f7018c21STomi Valkeinen * Copyright 2001-2008 S3 Graphics, Inc. All Rights Reserved. 5f7018c21STomi Valkeinen 6f7018c21STomi Valkeinen */ 7f7018c21STomi Valkeinen 8f7018c21STomi Valkeinen #include "global.h" 9f7018c21STomi Valkeinen 10f7018c21STomi Valkeinen struct GFX_DPA_SETTING GFX_DPA_SETTING_TBL_VT3324[] = { 11f7018c21STomi Valkeinen /* ClkRange, DVP0, DVP0DataDriving, DVP0ClockDriving, DVP1, 12f7018c21STomi Valkeinen DVP1Driving, DFPHigh, DFPLow */ 13f7018c21STomi Valkeinen /* CR96, SR2A[5], SR1B[1], SR2A[4], SR1E[2], CR9B, 14f7018c21STomi Valkeinen SR65, CR97, CR99 */ 15f7018c21STomi Valkeinen /* LCK/VCK < 30000000 will use this value */ 16f7018c21STomi Valkeinen {DPA_CLK_RANGE_30M, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 17f7018c21STomi Valkeinen 0x00}, 18f7018c21STomi Valkeinen /* 30000000 < LCK/VCK < 50000000 will use this value */ 19f7018c21STomi Valkeinen {DPA_CLK_RANGE_30_50M, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 20f7018c21STomi Valkeinen 0x00}, 21f7018c21STomi Valkeinen /* 50000000 < LCK/VCK < 70000000 will use this value */ 22f7018c21STomi Valkeinen {DPA_CLK_RANGE_50_70M, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 23f7018c21STomi Valkeinen 0x00}, 24f7018c21STomi Valkeinen /* 70000000 < LCK/VCK < 100000000 will use this value */ 25f7018c21STomi Valkeinen {DPA_CLK_RANGE_70_100M, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 26f7018c21STomi Valkeinen 0x00}, 27f7018c21STomi Valkeinen /* 100000000 < LCK/VCK < 15000000 will use this value */ 28f7018c21STomi Valkeinen {DPA_CLK_RANGE_100_150M, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 29f7018c21STomi Valkeinen 0x00}, 30f7018c21STomi Valkeinen /* 15000000 < LCK/VCK will use this value */ 31f7018c21STomi Valkeinen {DPA_CLK_RANGE_150M, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0E, 0x00, 32f7018c21STomi Valkeinen 0x00}, 33f7018c21STomi Valkeinen }; 34f7018c21STomi Valkeinen 35f7018c21STomi Valkeinen struct GFX_DPA_SETTING GFX_DPA_SETTING_TBL_VT3327[] = { 36f7018c21STomi Valkeinen /* ClkRange,DVP0, DVP0DataDriving, DVP0ClockDriving, DVP1, 37f7018c21STomi Valkeinen DVP1Driving, DFPHigh, DFPLow */ 38f7018c21STomi Valkeinen /* CR96, SR2A[5], SR1B[1], SR2A[4], SR1E[2], CR9B, 39f7018c21STomi Valkeinen SR65, CR97, CR99 */ 40f7018c21STomi Valkeinen /* LCK/VCK < 30000000 will use this value */ 41f7018c21STomi Valkeinen {DPA_CLK_RANGE_30M, 0x07, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x08, 0x01}, 42f7018c21STomi Valkeinen /* 30000000 < LCK/VCK < 50000000 will use this value */ 43f7018c21STomi Valkeinen {DPA_CLK_RANGE_30_50M, 0x07, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x08, 0x01}, 44f7018c21STomi Valkeinen /* 50000000 < LCK/VCK < 70000000 will use this value */ 45f7018c21STomi Valkeinen {DPA_CLK_RANGE_50_70M, 0x06, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x08, 0x01}, 46f7018c21STomi Valkeinen /* 70000000 < LCK/VCK < 100000000 will use this value */ 47f7018c21STomi Valkeinen {DPA_CLK_RANGE_70_100M, 0x03, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x08, 0x03}, 48f7018c21STomi Valkeinen /* 100000000 < LCK/VCK < 15000000 will use this value */ 49f7018c21STomi Valkeinen {DPA_CLK_RANGE_100_150M, 0x03, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x01, 0x02}, 50f7018c21STomi Valkeinen /* 15000000 < LCK/VCK will use this value */ 51f7018c21STomi Valkeinen {DPA_CLK_RANGE_150M, 0x00, 0x20, 0x00, 0x10, 0x00, 0x03, 0x00, 0x0D, 0x03}, 52f7018c21STomi Valkeinen }; 53f7018c21STomi Valkeinen 54f7018c21STomi Valkeinen /* For VT3364: */ 55f7018c21STomi Valkeinen struct GFX_DPA_SETTING GFX_DPA_SETTING_TBL_VT3364[] = { 56f7018c21STomi Valkeinen /* ClkRange,DVP0, DVP0DataDriving, DVP0ClockDriving, DVP1, 57f7018c21STomi Valkeinen DVP1Driving, DFPHigh, DFPLow */ 58f7018c21STomi Valkeinen /* CR96, SR2A[5], SR1B[1], SR2A[4], SR1E[2], CR9B, 59f7018c21STomi Valkeinen SR65, CR97, CR99 */ 60f7018c21STomi Valkeinen /* LCK/VCK < 30000000 will use this value */ 61f7018c21STomi Valkeinen {DPA_CLK_RANGE_30M, 0x07, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x08}, 62f7018c21STomi Valkeinen /* 30000000 < LCK/VCK < 50000000 will use this value */ 63f7018c21STomi Valkeinen {DPA_CLK_RANGE_30_50M, 0x07, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x08}, 64f7018c21STomi Valkeinen /* 50000000 < LCK/VCK < 70000000 will use this value */ 65f7018c21STomi Valkeinen {DPA_CLK_RANGE_50_70M, 0x07, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x08}, 66f7018c21STomi Valkeinen /* 70000000 < LCK/VCK < 100000000 will use this value */ 67f7018c21STomi Valkeinen {DPA_CLK_RANGE_70_100M, 0x07, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x08}, 68f7018c21STomi Valkeinen /* 100000000 < LCK/VCK < 15000000 will use this value */ 69f7018c21STomi Valkeinen {DPA_CLK_RANGE_100_150M, 0x03, 0x00, 0x02, 0x00, 0x00, 0x03, 0x00, 0x00, 0x08}, 70f7018c21STomi Valkeinen /* 15000000 < LCK/VCK will use this value */ 71f7018c21STomi Valkeinen {DPA_CLK_RANGE_150M, 0x01, 0x00, 0x02, 0x10, 0x00, 0x03, 0x00, 0x00, 0x08}, 72f7018c21STomi Valkeinen }; 73