mdnie_tft_msm8x26.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. /* Copyright (c) 2009-2011, Code Aurora Forum. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. *
  12. * You should have received a copy of the GNU General Public License
  13. * along with this program; if not, write to the Free Software
  14. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  15. * 02110-1301, USA.
  16. *
  17. */
  18. #ifndef _MDNIE_TFT_H_
  19. #define _MDNIE_TFT_H_
  20. #if defined (CONFIG_FB_MSM_MDSS_SDC_WXGA_PANEL)
  21. #define MDNIE_TUNE_FIRST_SIZE 19
  22. #define MDNIE_TUNE_SECOND_SIZE 25
  23. #define MDNIE_TUNE_THIRD_SIZE 25
  24. #define MDNIE_TUNE_FOURTH_SIZE 25
  25. #define MDNIE_TUNE_FIFTH_SIZE 17
  26. #define MDNIE_TUNE_SIXTH_SIZE 8
  27. #elif defined(CONFIG_FB_MSM_MDSS_HX8394C_TFT_VIDEO_720P_PANEL)
  28. #define MDNIE_TUNE_FIRST_SIZE 2
  29. #define MDNIE_TUNE_SECOND_SIZE 52
  30. #define MDNIE_TUNE_THIRD_SIZE 2
  31. #define MDNIE_TUNE_FOURTH_SIZE 46
  32. #else
  33. #define MDNIE_TUNE_FIRST_SIZE 92
  34. #define MDNIE_TUNE_SECOND_SIZE 5
  35. #endif
  36. #define MDNIE_COLOR_BLIND_FIRST_SIZE 118
  37. #define MDNIE_COLOR_BLIND_SECOND_SIZE 5
  38. #define MDNIE_COLOR_BLINDE_CMD 18
  39. #define BROWSER_COLOR_TONE_SET
  40. #define SIG_MDNIE_UI_MODE 0
  41. #define SIG_MDNIE_VIDEO_MODE 1
  42. #define SIG_MDNIE_VIDEO_WARM_MODE 2
  43. #define SIG_MDNIE_VIDEO_COLD_MODE 3
  44. #define SIG_MDNIE_CAMERA_MODE 4
  45. #define SIG_MDNIE_NAVI 5
  46. #define SIG_MDNIE_GALLERY 6
  47. #define SIG_MDNIE_VT 7
  48. #define SIG_MDNIE_BROWSER 8
  49. #define SIG_MDNIE_eBOOK 9
  50. #define SIG_MDNIE_EMAIL 10
  51. #define SIG_MDNIE_DYNAMIC 0
  52. #define SIG_MDNIE_STANDARD 1
  53. #define SIG_MDNIE_MOVIE 2
  54. #if defined(CONFIG_TDMB)
  55. #define SIG_MDNIE_DMB_MODE 20
  56. #define SIG_MDNIE_DMB_WARM_MODE 21
  57. #define SIG_MDNIE_DMB_COLD_MODE 22
  58. #endif
  59. #define SIG_MDNIE_ISDBT_MODE 30
  60. #define SIG_MDNIE_ISDBT_WARM_MODE 31
  61. #define SIG_MDNIE_ISDBT_COLD_MODE 32
  62. #ifdef BROWSER_COLOR_TONE_SET
  63. #define SIG_MDNIE_BROWSER_TONE1 40
  64. #define SIG_MDNIE_BROWSER_TONE2 41
  65. #define SIG_MDNIE_BROWSER_TONE3 42
  66. #endif
  67. enum Lcd_mDNIe_UI {
  68. mDNIe_UI_MODE,
  69. mDNIe_VIDEO_MODE,
  70. mDNIe_VIDEO_WARM_MODE,
  71. mDNIe_VIDEO_COLD_MODE,
  72. mDNIe_CAMERA_MODE,
  73. mDNIe_NAVI,
  74. mDNIe_GALLERY,
  75. mDNIe_VT_MODE,
  76. mDNIe_BROWSER_MODE,
  77. mDNIe_eBOOK_MODE,
  78. mDNIe_EMAIL_MODE,
  79. mDNIE_BLINE_MODE,
  80. #if defined(CONFIG_TDMB)
  81. mDNIe_DMB_MODE = 20,
  82. mDNIe_DMB_WARM_MODE,
  83. mDNIe_DMB_COLD_MODE,
  84. #endif
  85. MAX_mDNIe_MODE,
  86. #ifdef BROWSER_COLOR_TONE_SET
  87. mDNIe_BROWSER_TONE1 = 40,
  88. mDNIe_BROWSER_TONE2,
  89. mDNIe_BROWSER_TONE3,
  90. #endif
  91. };
  92. enum Lcd_mDNIe_Negative {
  93. mDNIe_NEGATIVE_OFF = 0,
  94. mDNIe_NEGATIVE_ON,
  95. };
  96. enum Background_Mode {
  97. DYNAMIC_MODE = 0,
  98. STANDARD_MODE,
  99. #if !defined (CONFIG_FB_MSM_MDSS_HX8394C_TFT_VIDEO_720P_PANEL)
  100. NATURAL_MODE,
  101. #endif
  102. MOVIE_MODE,
  103. AUTO_MODE,
  104. MAX_BACKGROUND_MODE,
  105. };
  106. enum Outdoor_Mode {
  107. OUTDOOR_OFF_MODE = 0,
  108. OUTDOOR_ON_MODE,
  109. MAX_OUTDOOR_MODE,
  110. };
  111. enum ACCESSIBILITY {
  112. ACCESSIBILITY_OFF,
  113. NEGATIVE,
  114. COLOR_BLIND,
  115. ACCESSIBILITY_MAX,
  116. };
  117. struct mdnie_tft_type {
  118. bool mdnie_enable;
  119. enum Background_Mode background;
  120. enum Outdoor_Mode outdoor;
  121. enum Lcd_mDNIe_UI scenario;
  122. enum Lcd_mDNIe_Negative negative;
  123. enum ACCESSIBILITY blind;
  124. };
  125. void mdnie_tft_init(struct mdss_samsung_driver_data *);
  126. unsigned int mdss_dsi_show_cabc(void );
  127. void mdss_dsi_store_cabc(unsigned int cabc);
  128. void init_mdnie_class(void);
  129. void is_negative_on(void);
  130. #endif /*_MDNIE_LITE_TUNING_H_*/