waterTankDataOperation.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. //----------------------------------------------------------------------------
  2. //
  3. // File generated by S1D13806CFG.EXE
  4. //
  5. // Copyright (c) 2000,2001 Epson Research and Development, Inc.
  6. // All rights reserved.
  7. //
  8. //----------------------------------------------------------------------------
  9. // Panel: (active) 640x480 77Hz STN Single 8-bit (PCLK=CLKI=25.175MHz)
  10. // Memory: Embedded SDRAM (MCLK=CLKI3=50.000MHz) (BUSCLK=33.333MHz)
  11. #define SWIVEL_VIEW 0 /* 0:none, 1:90 not completed */
  12. static struct s1d13xxxfb_regval s1d13xxxfb_initregs[] = {
  13. {0x0001,0x00}, // Miscellaneous Register
  14. {0x01FC,0x00}, // Display Mode Register
  15. #if defined(CONFIG_PLAT_MAPPI)
  16. {0x0004,0x00}, // General IO Pins Configuration Register 0
  17. {0x0005,0x00}, // General IO Pins Configuration Register 1
  18. {0x0008,0x00}, // General IO Pins Control Register 0
  19. {0x0009,0x00}, // General IO Pins Control Register 1
  20. {0x0010,0x00}, // Memory Clock Configuration Register
  21. {0x0014,0x00}, // LCD Pixel Clock Configuration Register
  22. {0x0018,0x00}, // CRT/TV Pixel Clock Configuration Register
  23. {0x001C,0x00}, // MediaPlug Clock Configuration Register
  24. /*
  25. * .. 10MHz: 0x00
  26. * .. 30MHz: 0x01
  27. * 30MHz ..: 0x02
  28. */
  29. {0x001E,0x02}, // CPU To Memory Wait State Select Register
  30. {0x0021,0x02}, // DRAM Refresh Rate Register
  31. {0x002A,0x11}, // DRAM Timings Control Register 0
  32. {0x002B,0x13}, // DRAM Timings Control Register 1
  33. {0x0020,0x80}, // Memory Configuration Register
  34. {0x0030,0x25}, // Panel Type Register
  35. {0x0031,0x00}, // MOD Rate Register
  36. {0x0032,0x4F}, // LCD Horizontal Display Width Register
  37. {0x0034,0x12}, // LCD Horizontal Non-Display Period Register
  38. {0x0035,0x01}, // TFT FPLINE Start Position Register
  39. {0x0036,0x0B}, // TFT FPLINE Pulse Width Register
  40. {0x0038,0xDF}, // LCD Vertical Display Height Register 0
  41. {0x0039,0x01}, // LCD Vertical Display Height Register 1
  42. {0x003A,0x2C}, // LCD Vertical Non-Display Period Register
  43. {0x003B,0x0A}, // TFT FPFRAME Start Position Register
  44. {0x003C,0x01}, // TFT FPFRAME Pulse Width Register
  45. {0x0041,0x00}, // LCD Miscellaneous Register
  46. {0x0042,0x00}, // LCD Display Start Address Register 0
  47. {0x0043,0x00}, // LCD Display Start Address Register 1
  48. {0x0044,0x00}, // LCD Display Start Address Register 2
  49. #elif defined(CONFIG_PLAT_M32700UT) || defined(CONFIG_PLAT_OPSPUT) || defined(CONFIG_PLAT_MAPPI3)
  50. {0x0004,0x07}, // GPIO[0:7] direction
  51. {0x0005,0x00}, // GPIO[8:12] direction
  52. {0x0008,0x00}, // GPIO[0:7] data
  53. {0x0009,0x00}, // GPIO[8:12] data
  54. {0x0008,0x04}, // LCD panel Vcc on
  55. {0x0008,0x05}, // LCD panel reset
  56. {0x0010,0x01}, // Memory Clock Configuration Register
  57. {0x0014,0x30}, // LCD Pixel Clock Configuration Register (CLKI 22MHz/4)
  58. {0x0018,0x00}, // CRT/TV Pixel Clock Configuration Register
  59. {0x001C,0x00}, // MediaPlug Clock Configuration Register(10MHz)
  60. {0x001E,0x00}, // CPU To Memory Wait State Select Register
  61. {0x0020,0x80}, // Memory Configuration Register
  62. {0x0021,0x03}, // DRAM Refresh Rate Register
  63. {0x002A,0x00}, // DRAM Timings Control Register 0
  64. {0x002B,0x01}, // DRAM Timings Control Register 1
  65. {0x0030,0x25}, // Panel Type Register
  66. {0x0031,0x00}, // MOD Rate Register
  67. {0x0032,0x1d}, // LCD Horizontal Display Width Register
  68. {0x0034,0x05}, // LCD Horizontal Non-Display Period Register
  69. {0x0035,0x01}, // TFT FPLINE Start Position Register
  70. {0x0036,0x01}, // TFT FPLINE Pulse Width Register
  71. {0x0038,0x3F}, // LCD Vertical Display Height Register 0
  72. {0x0039,0x01}, // LCD Vertical Display Height Register 1
  73. {0x003A,0x0b}, // LCD Vertical Non-Display Period Register
  74. {0x003B,0x07}, // TFT FPFRAME Start Position Register
  75. {0x003C,0x02}, // TFT FPFRAME Pulse Width Register
  76. {0x0041,0x00}, // LCD Miscellaneous Register
  77. #if (SWIVEL_VIEW == 0)
  78. {0x0042,0x00}, // LCD Display Start Address Register 0
  79. {0x0043,0x00}, // LCD Display Start Address Register 1
  80. {0x0044,0x00}, // LCD Display Start Address Register 2
  81. #elif (SWIVEL_VIEW == 1)
  82. // 1024 - W(320) = 0x2C0
  83. {0x0042,0xC0}, // LCD Display Start Address Register 0
  84. {0x0043,0x02}, // LCD Display Start Address Register 1
  85. {0x0044,0x00}, // LCD Display Start Address Register 2