Lines Matching +full:0 +full:x9c
26 * 0x00 engine 1 program
27 * 0x10 engine 2 program
28 * 0x20 engine 3 program
29 * 0x30 engine 1 muxing info
30 * 0x40 engine 2 muxing info
31 * 0x50 engine 3 muxing info
37 #define LP5523_REG_ENABLE 0x00
38 #define LP5523_REG_OP_MODE 0x01
39 #define LP5523_REG_ENABLE_LEDS_MSB 0x04
40 #define LP5523_REG_ENABLE_LEDS_LSB 0x05
41 #define LP5523_REG_LED_CTRL_BASE 0x06
42 #define LP5523_REG_LED_PWM_BASE 0x16
43 #define LP5523_REG_LED_CURRENT_BASE 0x26
44 #define LP5523_REG_CONFIG 0x36
46 #define LP5523_REG_STATUS 0x3A
49 #define LP5523_REG_RESET 0x3D
50 #define LP5523_REG_LED_TEST_CTRL 0x41
51 #define LP5523_REG_LED_TEST_ADC 0x42
52 #define LP5523_REG_MASTER_FADER_BASE 0x48
53 #define LP5523_REG_CH1_PROG_START 0x4C
54 #define LP5523_REG_CH2_PROG_START 0x4D
55 #define LP5523_REG_CH3_PROG_START 0x4E
56 #define LP5523_REG_PROG_PAGE_SEL 0x4F
57 #define LP5523_REG_PROG_MEM 0x50
60 #define LP5523_ENABLE 0x40
61 #define LP5523_AUTO_INC 0x40
62 #define LP5523_PWR_SAVE 0x20
63 #define LP5523_PWM_PWR_SAVE 0x04
64 #define LP5523_CP_MODE_MASK 0x18
66 #define LP5523_AUTO_CLK 0x02
70 #define LP5523_EN_LEDTEST 0x80
71 #define LP5523_LEDTEST_DONE 0x80
72 #define LP5523_RESET 0xFF
74 #define LP5523_EXT_CLK_USED 0x08
75 #define LP5523_ENG_STATUS_MASK 0x07
99 ret = lp55xx_write(chip, LP5523_REG_ENABLE_LEDS_MSB, 0x01); in lp5523_post_init_device()
103 ret = lp55xx_write(chip, LP5523_REG_ENABLE_LEDS_LSB, 0xff); in lp5523_post_init_device()
130 { 0x9c, 0x30, 0x9c, 0xb0, 0x9d, 0x80, 0xd8, 0x00, 0}, in lp5523_init_program_engine()
131 { 0x9c, 0x40, 0x9c, 0xc0, 0x9d, 0x80, 0xd8, 0x00, 0}, in lp5523_init_program_engine()
132 { 0x9c, 0x50, 0x9c, 0xd0, 0x9d, 0x80, 0xd8, 0x00, 0}, in lp5523_init_program_engine()
136 ret = lp55xx_write(chip, LP5523_REG_CH1_PROG_START, 0x00); in lp5523_init_program_engine()
140 ret = lp55xx_write(chip, LP5523_REG_CH2_PROG_START, 0x10); in lp5523_init_program_engine()
144 ret = lp55xx_write(chip, LP5523_REG_CH3_PROG_START, 0x20); in lp5523_init_program_engine()
153 for (j = 0; j < LP55xx_BYTES_PER_PAGE; j++) { in lp5523_init_program_engine()
172 "could not configure LED engine, status = 0x%.2x\n", in lp5523_init_program_engine()
189 int ret, pos = 0; in lp5523_selftest()
195 if (ret < 0) in lp5523_selftest()
200 if ((status & LP5523_EXT_CLK_USED) == 0) in lp5523_selftest()
208 if (ret < 0) in lp5523_selftest()
215 if (ret < 0) in lp5523_selftest()
220 for (i = 0; i < pdata->num_channels; i++) { in lp5523_selftest()
222 if (pdata->led_config[i].led_current == 0) in lp5523_selftest()
230 0xff); in lp5523_selftest()
238 if (ret < 0) in lp5523_selftest()
245 if (ret < 0) in lp5523_selftest()
253 0x00); in lp5523_selftest()
261 return pos == 0 ? sysfs_emit(buf, "OK\n") : pos; in lp5523_selftest()