tblDPASetting.c 3.9 KB

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