/drivers/video/via/tbl1636.c

https://bitbucket.org/abioy/linux · C · 71 lines · 29 code · 7 blank · 35 comment · 0 complexity · 2ccc880298712a49b24b49e2bba5bb9a MD5 · raw file

  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 IODATA COMMON_INIT_TBL_VT1636[] = {
  20. /* Index, Mask, Value */
  21. /* Set panel power sequence timing */
  22. {0x10, 0xC0, 0x00},
  23. /* T1: VDD on - Data on. Each increment is 1 ms. (50ms = 031h) */
  24. {0x0B, 0xFF, 0x40},
  25. /* T2: Data on - Backlight on. Each increment is 2 ms. (210ms = 068h) */
  26. {0x0C, 0xFF, 0x31},
  27. /* T3: Backlight off -Data off. Each increment is 2 ms. (210ms = 068h)*/
  28. {0x0D, 0xFF, 0x31},
  29. /* T4: Data off - VDD off. Each increment is 1 ms. (50ms = 031h) */
  30. {0x0E, 0xFF, 0x68},
  31. /* T5: VDD off - VDD on. Each increment is 100 ms. (500ms = 04h) */
  32. {0x0F, 0xFF, 0x68},
  33. /* LVDS output power up */
  34. {0x09, 0xA0, 0xA0},
  35. /* turn on back light */
  36. {0x10, 0x33, 0x13}
  37. };
  38. struct IODATA DUAL_CHANNEL_ENABLE_TBL_VT1636[] = {
  39. /* Index, Mask, Value */
  40. {0x08, 0xF0, 0xE0} /* Input Data Mode Select */
  41. };
  42. struct IODATA SINGLE_CHANNEL_ENABLE_TBL_VT1636[] = {
  43. /* Index, Mask, Value */
  44. {0x08, 0xF0, 0x00} /* Input Data Mode Select */
  45. };
  46. struct IODATA DITHERING_ENABLE_TBL_VT1636[] = {
  47. /* Index, Mask, Value */
  48. {0x0A, 0x70, 0x50}
  49. };
  50. struct IODATA DITHERING_DISABLE_TBL_VT1636[] = {
  51. /* Index, Mask, Value */
  52. {0x0A, 0x70, 0x00}
  53. };
  54. struct IODATA VDD_ON_TBL_VT1636[] = {
  55. /* Index, Mask, Value */
  56. {0x10, 0x20, 0x20}
  57. };
  58. struct IODATA VDD_OFF_TBL_VT1636[] = {
  59. /* Index, Mask, Value */
  60. {0x10, 0x20, 0x00}
  61. };