Advertisement
Guest User

Untitled

a guest
Apr 27th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 6.90 KB | None | 0 0
  1. diff --git a/arch/arm/include/asm/imx-common/fbpanel.h b/arch/arm/include/asm/imx-common/fbpanel.h
  2. index bda2e07..a3eeddd 100644
  3. --- a/arch/arm/include/asm/imx-common/fbpanel.h
  4. +++ b/arch/arm/include/asm/imx-common/fbpanel.h
  5. @@ -853,6 +853,31 @@ void fbp_setup_display(const struct display_info_t *displays, int cnt);
  6.     }\
  7.  }
  8.  
  9. +#define VD_CHIMEI_G104X1_L03(_mode, _detect, _bus, _addr) \
  10. +{\
  11. +   .bus    = _bus,\
  12. +   .addr   = _addr,\
  13. +   .pixfmt = IPU_PIX_FMT_RGB24,\
  14. +   .detect = _detect,\
  15. +   .enable = fbp_enable_fb,\
  16. +   .fbtype = FB_##_mode,\
  17. +   .mode   = {\
  18. +       .name           = "chimei-g104x1-l03-rgb24",\
  19. +       .refresh        = 60,\
  20. +       .xres           = 1024,\
  21. +       .yres           = 768,\
  22. +       .pixclock       = 1000000000000ULL/((1024+220+40+60)*(768+21+7+10)*60),\
  23. +       .left_margin    = 220,\
  24. +       .right_margin   = 40,\
  25. +       .upper_margin   = 21,\
  26. +       .lower_margin   = 7,\
  27. +       .hsync_len      = 60,\
  28. +       .vsync_len      = 10,\
  29. +       .sync           = FB_SYNC_EXT,\
  30. +       .vmode          = FB_VMODE_NONINTERLACED\
  31. +   }\
  32. +}
  33. +
  34.  #define VD_1024_600(_mode, _detect, _bus, _addr) \
  35.  {\
  36.     .bus    = _bus,\
  37. diff --git a/board/boundary/dash/dash.c b/board/boundary/dash/dash.c
  38. index 25c10b8..1a8b0fa 100644
  39. --- a/board/boundary/dash/dash.c
  40. +++ b/board/boundary/dash/dash.c
  41. @@ -265,6 +265,7 @@ static const struct display_info_t displays[] = {
  42.     VD_WXGA_J(LVDS, NULL, 0, 0x00),
  43.     VD_WXGA(LVDS, NULL, 0, 0x00),
  44.     VD_HANNSTAR(LVDS, fbp_detect_i2c, 2, 0x04),
  45. +   VD_CHIMEI_G104X1_L03(LVDS, NULL, 0, 0x00),
  46.     VD_LG9_7(LVDS, NULL, 2, 0x04),
  47.     VD_WSVGA(LVDS, fbp_detect_i2c, 2, 0x38),
  48.  };
  49. diff --git a/board/boundary/ioc/ioc.c b/board/boundary/ioc/ioc.c
  50. index ae3995d..b2fe921 100644
  51. --- a/board/boundary/ioc/ioc.c
  52. +++ b/board/boundary/ioc/ioc.c
  53. @@ -533,6 +533,7 @@ static const struct display_info_t displays[] = {
  54.  
  55.     /* egalax_ts */
  56.     VD_HANNSTAR(LVDS, fbp_detect_i2c, 2, 0x04),
  57. +   VD_CHIMEI_G104X1_L03(LVDS, NULL, 0, 0x00),
  58.     VD_LG9_7(LVDS, NULL, 2, 0x04),
  59.  
  60.     /* fusion7 specific touchscreen */
  61. diff --git a/board/boundary/jlm/jlm.c b/board/boundary/jlm/jlm.c
  62. index 55e155a..cbbed0b 100644
  63. --- a/board/boundary/jlm/jlm.c
  64. +++ b/board/boundary/jlm/jlm.c
  65. @@ -457,6 +457,7 @@ static const struct display_info_t displays[] = {
  66.  
  67.     /* egalax_ts */
  68.     VD_HANNSTAR(LVDS, fbp_detect_i2c, 2, 0x04),
  69. +   VD_CHIMEI_G104X1_L03(LVDS, NULL, 0, 0x00),
  70.     VD_LG9_7(LVDS, NULL, 2, 0x04),
  71.  
  72.     /* fusion7 specific touchscreen */
  73. diff --git a/board/boundary/nit6xlite/nit6xlite.c b/board/boundary/nit6xlite/nit6xlite.c
  74. index 07fea3d..3829cf5 100644
  75. --- a/board/boundary/nit6xlite/nit6xlite.c
  76. +++ b/board/boundary/nit6xlite/nit6xlite.c
  77. @@ -454,6 +454,7 @@ static const struct display_info_t displays[] = {
  78.     VD_WSVGA(LVDS, NULL, 2, 0x38),
  79.  
  80.     VD_HANNSTAR(LVDS, fbp_detect_i2c, 2, 0x04),
  81. +   VD_CHIMEI_G104X1_L03(LVDS, NULL, 0, 0x00),
  82.     VD_LG9_7(LVDS, NULL, 2, 0x04),
  83.     VD_SHARP_LQ101K1LY04(LVDS, NULL, 0, 0x00),
  84.  
  85. diff --git a/board/boundary/nitrogen6_max/nitrogen6_max.c b/board/boundary/nitrogen6_max/nitrogen6_max.c
  86. index 794dc9f..97de838 100644
  87. --- a/board/boundary/nitrogen6_max/nitrogen6_max.c
  88. +++ b/board/boundary/nitrogen6_max/nitrogen6_max.c
  89. @@ -596,6 +596,7 @@ static const struct display_info_t displays[] = {
  90.     /* egalax_ts */
  91.     VD_HANNSTAR(LVDS, fbp_detect_i2c, 2, 0x04),
  92.     VD_HANNSTAR(LVDS2, NULL, 2, 0x04),
  93. +   VD_CHIMEI_G104X1_L03(LVDS, NULL, 0, 0x00),
  94.     VD_LG9_7(LVDS, NULL, 2, 0x04),
  95.  
  96.     /* fusion7 specific touchscreen */
  97. diff --git a/board/boundary/nitrogen6_som2/nitrogen6_som2.c b/board/boundary/nitrogen6_som2/nitrogen6_som2.c
  98. index 8be4b6e..035a184 100644
  99. --- a/board/boundary/nitrogen6_som2/nitrogen6_som2.c
  100. +++ b/board/boundary/nitrogen6_som2/nitrogen6_som2.c
  101. @@ -685,6 +685,7 @@ static const struct display_info_t displays[] = {
  102.  
  103.     /* egalax_ts */
  104.     VD_HANNSTAR(LVDS, fbp_detect_i2c, 2, 0x04),
  105. +   VD_CHIMEI_G104X1_L03(LVDS, NULL, 0, 0x00),
  106.     VD_LG9_7(LVDS, NULL, 2, 0x04),
  107.  
  108.     /* fusion7 specific touchscreen */
  109. diff --git a/board/boundary/nitrogen6_vm/nitrogen6_vm.c b/board/boundary/nitrogen6_vm/nitrogen6_vm.c
  110. index 6730039..6733072 100644
  111. --- a/board/boundary/nitrogen6_vm/nitrogen6_vm.c
  112. +++ b/board/boundary/nitrogen6_vm/nitrogen6_vm.c
  113. @@ -522,6 +522,7 @@ static const struct display_info_t displays[] = {
  114.  
  115.     /* egalax_ts */
  116.     VD_HANNSTAR(LVDS, fbp_detect_i2c, 2, 0x04),
  117. +   VD_CHIMEI_G104X1_L03(LVDS, NULL, 0, 0x00),
  118.     VD_LG9_7(LVDS, NULL, 2, 0x04),
  119.  
  120.     VD_SHARP_LQ101K1LY04(LVDS, NULL, 0, 0x00),
  121. diff --git a/board/boundary/nitrogen6sx/nitrogen6sx.c b/board/boundary/nitrogen6sx/nitrogen6sx.c
  122. index bcc2ae4..7052f18 100644
  123. --- a/board/boundary/nitrogen6sx/nitrogen6sx.c
  124. +++ b/board/boundary/nitrogen6sx/nitrogen6sx.c
  125. @@ -703,6 +703,7 @@ static const struct display_info_t displays[] = {
  126.  
  127.     /* egalax_ts */
  128.     VD_HANNSTAR(LVDS, fbp_detect_i2c, 2, 0x04),
  129. +   VD_CHIMEI_G104X1_L03(LVDS, NULL, 0, 0x00),
  130.     VD_LG9_7(LVDS, NULL, 2, 0x04),
  131.  
  132.     /* fusion7 specific touchscreen */
  133. diff --git a/board/boundary/nitrogen6x/nitrogen6x.c b/board/boundary/nitrogen6x/nitrogen6x.c
  134. index 0455525..4414de7 100644
  135. --- a/board/boundary/nitrogen6x/nitrogen6x.c
  136. +++ b/board/boundary/nitrogen6x/nitrogen6x.c
  137. @@ -598,6 +598,7 @@ static const struct display_info_t displays[] = {
  138.  
  139.     /* egalax_ts */
  140.     VD_HANNSTAR(LVDS, fbp_detect_i2c, 2, 0x04),
  141. +   VD_CHIMEI_G104X1_L03(LVDS, NULL, 0, 0x00),
  142.     VD_LG9_7(LVDS, NULL, 2, 0x04),
  143.  
  144.     /* fusion7 specific touchscreen */
  145. diff --git a/board/boundary/oc/oc.c b/board/boundary/oc/oc.c
  146. index 44ecae4..db7ea95 100644
  147. --- a/board/boundary/oc/oc.c
  148. +++ b/board/boundary/oc/oc.c
  149. @@ -377,6 +377,7 @@ static const struct display_info_t displays[] = {
  150.  
  151.     /* egalax_ts */
  152.     VD_HANNSTAR(LVDS, fbp_detect_i2c, 2, 0x04),
  153. +   VD_CHIMEI_G104X1_L03(LVDS, NULL, 0, 0x00),
  154.  
  155.     VD_VGA(LVDS, NULL, 0, 0x00),
  156.     VD_WXGA_J(LVDS, NULL, 0, 0x00),
  157. diff --git a/board/boundary/ta/ta.c b/board/boundary/ta/ta.c
  158. index cdbe6fa..0551b6e 100644
  159. --- a/board/boundary/ta/ta.c
  160. +++ b/board/boundary/ta/ta.c
  161. @@ -439,6 +439,7 @@ static const struct display_info_t displays[] = {
  162.  
  163.     /* egalax_ts */
  164.     VD_HANNSTAR(LVDS, fbp_detect_i2c, 2, 0x04),
  165. +   VD_CHIMEI_G104X1_L03(LVDS, NULL, 0, 0x00),
  166.     VD_LG9_7(LVDS, NULL, 2, 0x04),
  167.  };
  168.  
  169. diff --git a/board/boundary/usd/usd.c b/board/boundary/usd/usd.c
  170. index c63cea8..4904d72 100644
  171. --- a/board/boundary/usd/usd.c
  172. +++ b/board/boundary/usd/usd.c
  173. @@ -554,6 +554,7 @@ static const struct display_info_t displays[] = {
  174.  
  175.     /* egalax_ts */
  176.     VD_HANNSTAR(LVDS, fbp_detect_i2c, 2, 0x04),
  177. +   VD_CHIMEI_G104X1_L03(LVDS, NULL, 0, 0x00),
  178.     VD_LG9_7(LVDS, NULL, 2, 0x04),
  179.  
  180.     VD_SHARP_LQ101K1LY04(LVDS, NULL, 0, 0x00),
  181. diff --git a/board/boundary/utc/utc.c b/board/boundary/utc/utc.c
  182. index 8a5e144..e8722a6 100644
  183. --- a/board/boundary/utc/utc.c
  184. +++ b/board/boundary/utc/utc.c
  185. @@ -483,6 +483,7 @@ static const struct display_info_t displays[] = {
  186.  
  187.     /* egalax_ts */
  188.     VD_HANNSTAR(LVDS, fbp_detect_i2c, 2, 0x04),
  189. +   VD_CHIMEI_G104X1_L03(LVDS, NULL, 0, 0x00),
  190.  
  191.     /* ft5x06 */
  192.     VD_WSVGA(LVDS, fbp_detect_i2c, 2, 0x38),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement