Lines Matching refs:ili922x_write
245 static int ili922x_write(struct spi_device *spi, u8 reg, u16 value) in ili922x_write() function
360 ret = ili922x_write(spi, REG_POWER_CONTROL_1, 0x0000); in ili922x_poweron()
362 ret += ili922x_write(spi, REG_POWER_CONTROL_2, 0x0000); in ili922x_poweron()
363 ret += ili922x_write(spi, REG_POWER_CONTROL_3, 0x0000); in ili922x_poweron()
365 ret += ili922x_write(spi, REG_POWER_CONTROL_4, 0x0000); in ili922x_poweron()
368 ret += ili922x_write(spi, 0x56, 0x080F); in ili922x_poweron()
369 ret += ili922x_write(spi, REG_POWER_CONTROL_1, 0x4240); in ili922x_poweron()
371 ret += ili922x_write(spi, REG_POWER_CONTROL_2, 0x0000); in ili922x_poweron()
372 ret += ili922x_write(spi, REG_POWER_CONTROL_3, 0x0014); in ili922x_poweron()
374 ret += ili922x_write(spi, REG_POWER_CONTROL_4, 0x1319); in ili922x_poweron()
389 ret = ili922x_write(spi, REG_POWER_CONTROL_1, 0x0000); in ili922x_poweroff()
391 ret += ili922x_write(spi, REG_POWER_CONTROL_2, 0x0000); in ili922x_poweroff()
392 ret += ili922x_write(spi, REG_POWER_CONTROL_3, 0x0000); in ili922x_poweroff()
394 ret += ili922x_write(spi, REG_POWER_CONTROL_4, 0x0000); in ili922x_poweroff()
407 ili922x_write(spi, REG_START_OSCILLATION, 1); in ili922x_display_init()
409 ili922x_write(spi, REG_DRIVER_OUTPUT_CONTROL, 0x691B); in ili922x_display_init()
410 ili922x_write(spi, REG_LCD_AC_DRIVEING_CONTROL, 0x0700); in ili922x_display_init()
411 ili922x_write(spi, REG_ENTRY_MODE, 0x1030); in ili922x_display_init()
412 ili922x_write(spi, REG_COMPARE_1, 0x0000); in ili922x_display_init()
413 ili922x_write(spi, REG_COMPARE_2, 0x0000); in ili922x_display_init()
414 ili922x_write(spi, REG_DISPLAY_CONTROL_1, 0x0037); in ili922x_display_init()
415 ili922x_write(spi, REG_DISPLAY_CONTROL_2, 0x0202); in ili922x_display_init()
416 ili922x_write(spi, REG_DISPLAY_CONTROL_3, 0x0000); in ili922x_display_init()
417 ili922x_write(spi, REG_FRAME_CYCLE_CONTROL, 0x0000); in ili922x_display_init()
420 ili922x_write(spi, REG_EXT_INTF_CONTROL, 0x0110); in ili922x_display_init()
424 ili922x_write(spi, REG_GAMMA_CONTROL_1, 0x0302); in ili922x_display_init()
425 ili922x_write(spi, REG_GAMMA_CONTROL_2, 0x0407); in ili922x_display_init()
426 ili922x_write(spi, REG_GAMMA_CONTROL_3, 0x0304); in ili922x_display_init()
427 ili922x_write(spi, REG_GAMMA_CONTROL_4, 0x0203); in ili922x_display_init()
428 ili922x_write(spi, REG_GAMMA_CONTROL_5, 0x0706); in ili922x_display_init()
429 ili922x_write(spi, REG_GAMMA_CONTROL_6, 0x0407); in ili922x_display_init()
430 ili922x_write(spi, REG_GAMMA_CONTROL_7, 0x0706); in ili922x_display_init()
431 ili922x_write(spi, REG_GAMMA_CONTROL_8, 0x0000); in ili922x_display_init()
432 ili922x_write(spi, REG_GAMMA_CONTROL_9, 0x0C06); in ili922x_display_init()
433 ili922x_write(spi, REG_GAMMA_CONTROL_10, 0x0F00); in ili922x_display_init()
434 ili922x_write(spi, REG_RAM_ADDRESS_SET, 0x0000); in ili922x_display_init()
435 ili922x_write(spi, REG_GATE_SCAN_CONTROL, 0x0000); in ili922x_display_init()
436 ili922x_write(spi, REG_VERT_SCROLL_CONTROL, 0x0000); in ili922x_display_init()
437 ili922x_write(spi, REG_FIRST_SCREEN_DRIVE_POS, 0xDB00); in ili922x_display_init()
438 ili922x_write(spi, REG_SECOND_SCREEN_DRIVE_POS, 0xDB00); in ili922x_display_init()
439 ili922x_write(spi, REG_RAM_ADDR_POS_H, 0xAF00); in ili922x_display_init()
440 ili922x_write(spi, REG_RAM_ADDR_POS_V, 0xDB00); in ili922x_display_init()