Searched refs:ili922x_write (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/video/backlight/
H A Dili922x.c243 * ili922x_write - write a controller register
248 static int ili922x_write(struct spi_device *spi, u8 reg, u16 value) ili922x_write() function
358 ret = ili922x_write(spi, REG_POWER_CONTROL_1, 0x0000); ili922x_poweron()
360 ret += ili922x_write(spi, REG_POWER_CONTROL_2, 0x0000); ili922x_poweron()
361 ret += ili922x_write(spi, REG_POWER_CONTROL_3, 0x0000); ili922x_poweron()
363 ret += ili922x_write(spi, REG_POWER_CONTROL_4, 0x0000); ili922x_poweron()
366 ret += ili922x_write(spi, 0x56, 0x080F); ili922x_poweron()
367 ret += ili922x_write(spi, REG_POWER_CONTROL_1, 0x4240); ili922x_poweron()
369 ret += ili922x_write(spi, REG_POWER_CONTROL_2, 0x0000); ili922x_poweron()
370 ret += ili922x_write(spi, REG_POWER_CONTROL_3, 0x0014); ili922x_poweron()
372 ret += ili922x_write(spi, REG_POWER_CONTROL_4, 0x1319); ili922x_poweron()
387 ret = ili922x_write(spi, REG_POWER_CONTROL_1, 0x0000); ili922x_poweroff()
389 ret += ili922x_write(spi, REG_POWER_CONTROL_2, 0x0000); ili922x_poweroff()
390 ret += ili922x_write(spi, REG_POWER_CONTROL_3, 0x0000); ili922x_poweroff()
392 ret += ili922x_write(spi, REG_POWER_CONTROL_4, 0x0000); ili922x_poweroff()
405 ili922x_write(spi, REG_START_OSCILLATION, 1); ili922x_display_init()
407 ili922x_write(spi, REG_DRIVER_OUTPUT_CONTROL, 0x691B); ili922x_display_init()
408 ili922x_write(spi, REG_LCD_AC_DRIVEING_CONTROL, 0x0700); ili922x_display_init()
409 ili922x_write(spi, REG_ENTRY_MODE, 0x1030); ili922x_display_init()
410 ili922x_write(spi, REG_COMPARE_1, 0x0000); ili922x_display_init()
411 ili922x_write(spi, REG_COMPARE_2, 0x0000); ili922x_display_init()
412 ili922x_write(spi, REG_DISPLAY_CONTROL_1, 0x0037); ili922x_display_init()
413 ili922x_write(spi, REG_DISPLAY_CONTROL_2, 0x0202); ili922x_display_init()
414 ili922x_write(spi, REG_DISPLAY_CONTROL_3, 0x0000); ili922x_display_init()
415 ili922x_write(spi, REG_FRAME_CYCLE_CONTROL, 0x0000); ili922x_display_init()
418 ili922x_write(spi, REG_EXT_INTF_CONTROL, 0x0110); ili922x_display_init()
422 ili922x_write(spi, REG_GAMMA_CONTROL_1, 0x0302); ili922x_display_init()
423 ili922x_write(spi, REG_GAMMA_CONTROL_2, 0x0407); ili922x_display_init()
424 ili922x_write(spi, REG_GAMMA_CONTROL_3, 0x0304); ili922x_display_init()
425 ili922x_write(spi, REG_GAMMA_CONTROL_4, 0x0203); ili922x_display_init()
426 ili922x_write(spi, REG_GAMMA_CONTROL_5, 0x0706); ili922x_display_init()
427 ili922x_write(spi, REG_GAMMA_CONTROL_6, 0x0407); ili922x_display_init()
428 ili922x_write(spi, REG_GAMMA_CONTROL_7, 0x0706); ili922x_display_init()
429 ili922x_write(spi, REG_GAMMA_CONTROL_8, 0x0000); ili922x_display_init()
430 ili922x_write(spi, REG_GAMMA_CONTROL_9, 0x0C06); ili922x_display_init()
431 ili922x_write(spi, REG_GAMMA_CONTROL_10, 0x0F00); ili922x_display_init()
432 ili922x_write(spi, REG_RAM_ADDRESS_SET, 0x0000); ili922x_display_init()
433 ili922x_write(spi, REG_GATE_SCAN_CONTROL, 0x0000); ili922x_display_init()
434 ili922x_write(spi, REG_VERT_SCROLL_CONTROL, 0x0000); ili922x_display_init()
435 ili922x_write(spi, REG_FIRST_SCREEN_DRIVE_POS, 0xDB00); ili922x_display_init()
436 ili922x_write(spi, REG_SECOND_SCREEN_DRIVE_POS, 0xDB00); ili922x_display_init()
437 ili922x_write(spi, REG_RAM_ADDR_POS_H, 0xAF00); ili922x_display_init()
438 ili922x_write(spi, REG_RAM_ADDR_POS_V, 0xDB00); ili922x_display_init()

Completed in 78 milliseconds