Commit 0e1c8ee2221c5cd94d5b857f1dd9338c0158526e
1 parent
c50825fd42
Exists in
v3.2_SMARCT335xPSP_04.06.00.11
and in
2 other branches
Add SMARC T335X LCD and PVI PM070WL4 Panel Driver Support
Showing 2 changed files with 29 additions and 1 deletions Side-by-side Diff
arch/arm/mach-omap2/board-am335xevm.c
... | ... | @@ -117,6 +117,8 @@ |
117 | 117 | .pwm_period_ns = AM335X_PWM_PERIOD_NANO_SECONDS, |
118 | 118 | }; |
119 | 119 | |
120 | +#define SMARC_LCD_VDD_EN GPIO_TO_PIN(1, 23) | |
121 | + | |
120 | 122 | static struct lcd_ctrl_config lcd_cfg = { |
121 | 123 | &disp_panel, |
122 | 124 | .ac_bias = 255, |
... | ... | @@ -146,6 +148,12 @@ |
146 | 148 | .type = "NHD-4.3-ATXI#-T-1", |
147 | 149 | }; |
148 | 150 | |
151 | +struct da8xx_lcdc_platform_data PVI_PM070WL4_pdata = { | |
152 | + .manu_name = "PVI", | |
153 | + .controller_data = &lcd_cfg, | |
154 | + .type = "PVI_PM070WL4", | |
155 | +}; | |
156 | + | |
149 | 157 | #include "common.h" |
150 | 158 | |
151 | 159 | #include <linux/lis3lv02d.h> |
... | ... | @@ -1058,6 +1066,7 @@ |
1058 | 1066 | switch (am335x_evm_get_id()) { |
1059 | 1067 | case GEN_PURP_EVM: |
1060 | 1068 | case GEN_PURP_DDR3_EVM: |
1069 | + case SMARC_T335X: | |
1061 | 1070 | ecap_index = 0; |
1062 | 1071 | break; |
1063 | 1072 | case EVM_SK: |
... | ... | @@ -1104,6 +1113,8 @@ |
1104 | 1113 | { |
1105 | 1114 | struct da8xx_lcdc_platform_data *lcdc_pdata; |
1106 | 1115 | setup_pin_mux(lcdc_pin_mux); |
1116 | + gpio_request(SMARC_LCD_VDD_EN, "LCD_VDD_EN"); | |
1117 | + gpio_direction_output(SMARC_LCD_VDD_EN, 1); | |
1107 | 1118 | |
1108 | 1119 | if (conf_disp_pll(300000000)) { |
1109 | 1120 | pr_info("Failed configure display PLL, not attempting to" |
... | ... | @@ -1118,6 +1129,9 @@ |
1118 | 1129 | case EVM_SK: |
1119 | 1130 | lcdc_pdata = &NHD_480272MF_ATXI_pdata; |
1120 | 1131 | break; |
1132 | + case SMARC_T335X: | |
1133 | + lcdc_pdata = &PVI_PM070WL4_pdata; | |
1134 | + break; | |
1121 | 1135 | default: |
1122 | 1136 | pr_err("LCDC not supported on this evm (%d)\n",evm_id); |
1123 | 1137 | return; |
... | ... | @@ -2315,7 +2329,7 @@ |
2315 | 2329 | {rmii2_init, DEV_ON_BASEBOARD, PROFILE_NONE}, |
2316 | 2330 | {usb0_init, DEV_ON_BASEBOARD, PROFILE_NONE}, |
2317 | 2331 | {usb1_init, DEV_ON_BASEBOARD, PROFILE_NONE}, |
2318 | -/* {lcdc_init, DEV_ON_BASEBOARD, PROFILE_NONE},*/ | |
2332 | + {lcdc_init, DEV_ON_BASEBOARD, PROFILE_NONE}, | |
2319 | 2333 | {mcasp1_init, DEV_ON_BASEBOARD, PROFILE_NONE}, |
2320 | 2334 | {mmc1_emmc_init, DEV_ON_BASEBOARD, PROFILE_NONE}, |
2321 | 2335 | {mmc0_init, DEV_ON_BASEBOARD, PROFILE_NONE}, |
drivers/video/da8xx-fb.c
... | ... | @@ -290,6 +290,20 @@ |
290 | 290 | .pxl_clk = 9000000, |
291 | 291 | .invert_pxl_clk = 0, |
292 | 292 | }, |
293 | + /* PVI S9700RTWV35TR Display*/ | |
294 | + [4] = { | |
295 | + .name = "PVI_PM070WL4", | |
296 | + .width = 800, | |
297 | + .height = 480, | |
298 | + .hfp = 42, | |
299 | + .hbp = 86, | |
300 | + .hsw = 128, | |
301 | + .vfp = 10, | |
302 | + .vbp = 33, | |
303 | + .vsw = 2, | |
304 | + .pxl_clk = 32000000, | |
305 | + .invert_pxl_clk = 0, | |
306 | + }, | |
293 | 307 | }; |
294 | 308 | |
295 | 309 | static inline bool is_raster_enabled(void) |