Lines Matching full:lcd

94 jbt_ret_write_0(struct td028ttec1_panel *lcd, u8 reg, int *err)  in jbt_ret_write_0()  argument
96 struct spi_device *spi = lcd->spi; in jbt_ret_write_0()
114 jbt_reg_write_1(struct td028ttec1_panel *lcd, in jbt_reg_write_1() argument
117 struct spi_device *spi = lcd->spi; in jbt_reg_write_1()
138 jbt_reg_write_2(struct td028ttec1_panel *lcd, in jbt_reg_write_2() argument
141 struct spi_device *spi = lcd->spi; in jbt_reg_write_2()
164 struct td028ttec1_panel *lcd = to_td028ttec1_device(panel); in td028ttec1_prepare() local
170 jbt_ret_write_0(lcd, 0x00, &ret); in td028ttec1_prepare()
175 jbt_reg_write_1(lcd, JBT_REG_POWER_ON_OFF, 0x17, &ret); in td028ttec1_prepare()
178 jbt_reg_write_1(lcd, JBT_REG_DISPLAY_MODE, 0x80, &ret); in td028ttec1_prepare()
181 jbt_reg_write_1(lcd, JBT_REG_QUAD_RATE, 0x00, &ret); in td028ttec1_prepare()
184 jbt_reg_write_1(lcd, JBT_REG_POWER_ON_OFF, 0x16, &ret); in td028ttec1_prepare()
187 jbt_reg_write_2(lcd, JBT_REG_OUTPUT_CONTROL, 0xfff9, &ret); in td028ttec1_prepare()
190 jbt_ret_write_0(lcd, JBT_REG_SLEEP_OUT, &ret); in td028ttec1_prepare()
195 jbt_reg_write_1(lcd, JBT_REG_DISPLAY_MODE1, 0x01, &ret); in td028ttec1_prepare()
196 jbt_reg_write_1(lcd, JBT_REG_DISPLAY_MODE2, 0x00, &ret); in td028ttec1_prepare()
197 jbt_reg_write_1(lcd, JBT_REG_RGB_FORMAT, 0x60, &ret); in td028ttec1_prepare()
198 jbt_reg_write_1(lcd, JBT_REG_DRIVE_SYSTEM, 0x10, &ret); in td028ttec1_prepare()
199 jbt_reg_write_1(lcd, JBT_REG_BOOSTER_OP, 0x56, &ret); in td028ttec1_prepare()
200 jbt_reg_write_1(lcd, JBT_REG_BOOSTER_MODE, 0x33, &ret); in td028ttec1_prepare()
201 jbt_reg_write_1(lcd, JBT_REG_BOOSTER_FREQ, 0x11, &ret); in td028ttec1_prepare()
202 jbt_reg_write_1(lcd, JBT_REG_BOOSTER_FREQ, 0x11, &ret); in td028ttec1_prepare()
203 jbt_reg_write_1(lcd, JBT_REG_OPAMP_SYSCLK, 0x02, &ret); in td028ttec1_prepare()
204 jbt_reg_write_1(lcd, JBT_REG_VSC_VOLTAGE, 0x2b, &ret); in td028ttec1_prepare()
205 jbt_reg_write_1(lcd, JBT_REG_VCOM_VOLTAGE, 0x40, &ret); in td028ttec1_prepare()
206 jbt_reg_write_1(lcd, JBT_REG_EXT_DISPL, 0x03, &ret); in td028ttec1_prepare()
207 jbt_reg_write_1(lcd, JBT_REG_DCCLK_DCEV, 0x04, &ret); in td028ttec1_prepare()
212 jbt_reg_write_1(lcd, JBT_REG_ASW_SLEW, 0x04, &ret); in td028ttec1_prepare()
213 jbt_reg_write_1(lcd, JBT_REG_DUMMY_DISPLAY, 0x00, &ret); in td028ttec1_prepare()
215 jbt_reg_write_1(lcd, JBT_REG_SLEEP_OUT_FR_A, 0x11, &ret); in td028ttec1_prepare()
216 jbt_reg_write_1(lcd, JBT_REG_SLEEP_OUT_FR_B, 0x11, &ret); in td028ttec1_prepare()
217 jbt_reg_write_1(lcd, JBT_REG_SLEEP_OUT_FR_C, 0x11, &ret); in td028ttec1_prepare()
218 jbt_reg_write_2(lcd, JBT_REG_SLEEP_IN_LCCNT_D, 0x2040, &ret); in td028ttec1_prepare()
219 jbt_reg_write_2(lcd, JBT_REG_SLEEP_IN_LCCNT_E, 0x60c0, &ret); in td028ttec1_prepare()
220 jbt_reg_write_2(lcd, JBT_REG_SLEEP_IN_LCCNT_F, 0x1020, &ret); in td028ttec1_prepare()
221 jbt_reg_write_2(lcd, JBT_REG_SLEEP_IN_LCCNT_G, 0x60c0, &ret); in td028ttec1_prepare()
223 jbt_reg_write_2(lcd, JBT_REG_GAMMA1_FINE_1, 0x5533, &ret); in td028ttec1_prepare()
224 jbt_reg_write_1(lcd, JBT_REG_GAMMA1_FINE_2, 0x00, &ret); in td028ttec1_prepare()
225 jbt_reg_write_1(lcd, JBT_REG_GAMMA1_INCLINATION, 0x00, &ret); in td028ttec1_prepare()
226 jbt_reg_write_1(lcd, JBT_REG_GAMMA1_BLUE_OFFSET, 0x00, &ret); in td028ttec1_prepare()
228 jbt_reg_write_2(lcd, JBT_REG_HCLOCK_VGA, 0x1f0, &ret); in td028ttec1_prepare()
229 jbt_reg_write_1(lcd, JBT_REG_BLANK_CONTROL, 0x02, &ret); in td028ttec1_prepare()
230 jbt_reg_write_2(lcd, JBT_REG_BLANK_TH_TV, 0x0804, &ret); in td028ttec1_prepare()
232 jbt_reg_write_1(lcd, JBT_REG_CKV_ON_OFF, 0x01, &ret); in td028ttec1_prepare()
233 jbt_reg_write_2(lcd, JBT_REG_CKV_1_2, 0x0000, &ret); in td028ttec1_prepare()
235 jbt_reg_write_2(lcd, JBT_REG_OEV_TIMING, 0x0d0e, &ret); in td028ttec1_prepare()
236 jbt_reg_write_2(lcd, JBT_REG_ASW_TIMING_1, 0x11a4, &ret); in td028ttec1_prepare()
237 jbt_reg_write_1(lcd, JBT_REG_ASW_TIMING_2, 0x0e, &ret); in td028ttec1_prepare()
244 struct td028ttec1_panel *lcd = to_td028ttec1_device(panel); in td028ttec1_enable() local
246 return jbt_ret_write_0(lcd, JBT_REG_DISPLAY_ON, NULL); in td028ttec1_enable()
251 struct td028ttec1_panel *lcd = to_td028ttec1_device(panel); in td028ttec1_disable() local
253 jbt_ret_write_0(lcd, JBT_REG_DISPLAY_OFF, NULL); in td028ttec1_disable()
260 struct td028ttec1_panel *lcd = to_td028ttec1_device(panel); in td028ttec1_unprepare() local
262 jbt_reg_write_2(lcd, JBT_REG_OUTPUT_CONTROL, 0x8002, NULL); in td028ttec1_unprepare()
263 jbt_ret_write_0(lcd, JBT_REG_SLEEP_IN, NULL); in td028ttec1_unprepare()
264 jbt_reg_write_1(lcd, JBT_REG_POWER_ON_OFF, 0x00, NULL); in td028ttec1_unprepare()
322 struct td028ttec1_panel *lcd; in td028ttec1_probe() local
325 lcd = devm_kzalloc(&spi->dev, sizeof(*lcd), GFP_KERNEL); in td028ttec1_probe()
326 if (!lcd) in td028ttec1_probe()
329 spi_set_drvdata(spi, lcd); in td028ttec1_probe()
330 lcd->spi = spi; in td028ttec1_probe()
341 drm_panel_init(&lcd->panel, &lcd->spi->dev, &td028ttec1_funcs, in td028ttec1_probe()
344 ret = drm_panel_of_backlight(&lcd->panel); in td028ttec1_probe()
348 drm_panel_add(&lcd->panel); in td028ttec1_probe()
355 struct td028ttec1_panel *lcd = spi_get_drvdata(spi); in td028ttec1_remove() local
357 drm_panel_remove(&lcd->panel); in td028ttec1_remove()
358 drm_panel_disable(&lcd->panel); in td028ttec1_remove()
359 drm_panel_unprepare(&lcd->panel); in td028ttec1_remove()