1f7018c21STomi Valkeinen /*
2f7018c21STomi Valkeinen  * Copyright 1998-2008 VIA Technologies, Inc. All Rights Reserved.
3f7018c21STomi Valkeinen  * Copyright 2001-2008 S3 Graphics, Inc. All Rights Reserved.
4f7018c21STomi Valkeinen 
5f7018c21STomi Valkeinen  * This program is free software; you can redistribute it and/or
6f7018c21STomi Valkeinen  * modify it under the terms of the GNU General Public
7f7018c21STomi Valkeinen  * License as published by the Free Software Foundation;
8f7018c21STomi Valkeinen  * either version 2, or (at your option) any later version.
9f7018c21STomi Valkeinen 
10f7018c21STomi Valkeinen  * This program is distributed in the hope that it will be useful,
11f7018c21STomi Valkeinen  * but WITHOUT ANY WARRANTIES OR REPRESENTATIONS; without even
12f7018c21STomi Valkeinen  * the implied warranty of MERCHANTABILITY or FITNESS FOR
13f7018c21STomi Valkeinen  * A PARTICULAR PURPOSE.See the GNU General Public License
14f7018c21STomi Valkeinen  * for more details.
15f7018c21STomi Valkeinen 
16f7018c21STomi Valkeinen  * You should have received a copy of the GNU General Public License
17f7018c21STomi Valkeinen  * along with this program; if not, write to the Free Software
18f7018c21STomi Valkeinen  * Foundation, Inc.,
19f7018c21STomi Valkeinen  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20f7018c21STomi Valkeinen  */
21f7018c21STomi Valkeinen 
22f7018c21STomi Valkeinen #include "global.h"
23f7018c21STomi Valkeinen 
24f7018c21STomi Valkeinen struct GFX_DPA_SETTING GFX_DPA_SETTING_TBL_VT3324[] = {
25f7018c21STomi Valkeinen /*  ClkRange, DVP0, DVP0DataDriving,  DVP0ClockDriving, DVP1,
26f7018c21STomi Valkeinen 					DVP1Driving, DFPHigh, DFPLow */
27f7018c21STomi Valkeinen /*  CR96, SR2A[5], SR1B[1], SR2A[4], SR1E[2], CR9B,
28f7018c21STomi Valkeinen 					SR65,        CR97,    CR99   */
29f7018c21STomi Valkeinen 	/* LCK/VCK < 30000000 will use this value */
30f7018c21STomi Valkeinen 	{DPA_CLK_RANGE_30M, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00,
31f7018c21STomi Valkeinen 	 0x00},
32f7018c21STomi Valkeinen 	/* 30000000 < LCK/VCK < 50000000 will use this value */
33f7018c21STomi Valkeinen 	{DPA_CLK_RANGE_30_50M, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00,
34f7018c21STomi Valkeinen 	 0x00},
35f7018c21STomi Valkeinen 	/* 50000000 < LCK/VCK < 70000000 will use this value */
36f7018c21STomi Valkeinen 	{DPA_CLK_RANGE_50_70M, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00,
37f7018c21STomi Valkeinen 	 0x00},
38f7018c21STomi Valkeinen 	/* 70000000 < LCK/VCK < 100000000 will use this value */
39f7018c21STomi Valkeinen 	{DPA_CLK_RANGE_70_100M, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00,
40f7018c21STomi Valkeinen 	 0x00},
41f7018c21STomi Valkeinen 	/* 100000000 < LCK/VCK < 15000000 will use this value */
42f7018c21STomi Valkeinen 	{DPA_CLK_RANGE_100_150M, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00,
43f7018c21STomi Valkeinen 	 0x00},
44f7018c21STomi Valkeinen 	/* 15000000 < LCK/VCK will use this value */
45f7018c21STomi Valkeinen 	{DPA_CLK_RANGE_150M, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0E, 0x00,
46f7018c21STomi Valkeinen 	 0x00},
47f7018c21STomi Valkeinen };
48f7018c21STomi Valkeinen 
49f7018c21STomi Valkeinen struct GFX_DPA_SETTING GFX_DPA_SETTING_TBL_VT3327[] = {
50f7018c21STomi Valkeinen /*  ClkRange,DVP0, DVP0DataDriving,  DVP0ClockDriving, DVP1,
51f7018c21STomi Valkeinen 					DVP1Driving, DFPHigh,   DFPLow */
52f7018c21STomi Valkeinen /*   CR96, SR2A[5], SR1B[1], SR2A[4], SR1E[2], CR9B,
53f7018c21STomi Valkeinen 					SR65,        CR97,      CR99   */
54f7018c21STomi Valkeinen /* LCK/VCK < 30000000 will use this value */
55f7018c21STomi Valkeinen {DPA_CLK_RANGE_30M, 0x07, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x08, 0x01},
56f7018c21STomi Valkeinen /* 30000000 < LCK/VCK < 50000000 will use this value */
57f7018c21STomi Valkeinen {DPA_CLK_RANGE_30_50M, 0x07, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x08, 0x01},
58f7018c21STomi Valkeinen /* 50000000 < LCK/VCK < 70000000 will use this value */
59f7018c21STomi Valkeinen {DPA_CLK_RANGE_50_70M, 0x06, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x08, 0x01},
60f7018c21STomi Valkeinen /* 70000000 < LCK/VCK < 100000000 will use this value */
61f7018c21STomi Valkeinen {DPA_CLK_RANGE_70_100M, 0x03, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x08, 0x03},
62f7018c21STomi Valkeinen /* 100000000 < LCK/VCK < 15000000 will use this value */
63f7018c21STomi Valkeinen {DPA_CLK_RANGE_100_150M, 0x03, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x01, 0x02},
64f7018c21STomi Valkeinen /* 15000000 < LCK/VCK will use this value */
65f7018c21STomi Valkeinen {DPA_CLK_RANGE_150M, 0x00, 0x20, 0x00, 0x10, 0x00, 0x03, 0x00, 0x0D, 0x03},
66f7018c21STomi Valkeinen };
67f7018c21STomi Valkeinen 
68f7018c21STomi Valkeinen /* For VT3364: */
69f7018c21STomi Valkeinen struct GFX_DPA_SETTING GFX_DPA_SETTING_TBL_VT3364[] = {
70f7018c21STomi Valkeinen /*  ClkRange,DVP0, DVP0DataDriving,  DVP0ClockDriving, DVP1,
71f7018c21STomi Valkeinen 					DVP1Driving, DFPHigh,   DFPLow */
72f7018c21STomi Valkeinen /*   CR96, SR2A[5], SR1B[1], SR2A[4], SR1E[2], CR9B,
73f7018c21STomi Valkeinen 					SR65,        CR97,      CR99   */
74f7018c21STomi Valkeinen /* LCK/VCK < 30000000 will use this value */
75f7018c21STomi Valkeinen {DPA_CLK_RANGE_30M, 0x07, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x08},
76f7018c21STomi Valkeinen /* 30000000 < LCK/VCK < 50000000 will use this value */
77f7018c21STomi Valkeinen {DPA_CLK_RANGE_30_50M, 0x07, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x08},
78f7018c21STomi Valkeinen /* 50000000 < LCK/VCK < 70000000 will use this value */
79f7018c21STomi Valkeinen {DPA_CLK_RANGE_50_70M, 0x07, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x08},
80f7018c21STomi Valkeinen /* 70000000 < LCK/VCK < 100000000 will use this value */
81f7018c21STomi Valkeinen {DPA_CLK_RANGE_70_100M, 0x07, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x08},
82f7018c21STomi Valkeinen /* 100000000 < LCK/VCK < 15000000 will use this value */
83f7018c21STomi Valkeinen {DPA_CLK_RANGE_100_150M, 0x03, 0x00, 0x02, 0x00, 0x00, 0x03, 0x00, 0x00, 0x08},
84f7018c21STomi Valkeinen /* 15000000 < LCK/VCK will use this value */
85f7018c21STomi Valkeinen {DPA_CLK_RANGE_150M, 0x01, 0x00, 0x02, 0x10, 0x00, 0x03, 0x00, 0x00, 0x08},
86f7018c21STomi Valkeinen };
87