Lines Matching +full:0 +full:x9c
25 * 0x00 engine 1 program (4 pages)
26 * 0x40 engine 2 program (4 pages)
27 * 0x80 engine 3 program (4 pages)
28 * 0xc0 engine 1 muxing info (1 page)
29 * 0xd0 engine 2 muxing info (1 page)
30 * 0xe0 engine 3 muxing info (1 page)
34 #define LP5569_REG_ENABLE 0x00
37 #define LP5569_REG_EXEC_CTRL 0x01
40 #define LP5569_REG_OP_MODE 0x02
43 #define LP5569_REG_ENABLE_LEDS_MSB 0x04
44 #define LP5569_REG_ENABLE_LEDS_LSB 0x05
45 #define LP5569_REG_LED_CTRL_BASE 0x07
47 #define LP5569_REG_LED_PWM_BASE 0x16
48 #define LP5569_REG_LED_CURRENT_BASE 0x22
49 #define LP5569_REG_MISC 0x2F
54 #define LP5569_INTERNAL_CLK BIT(0)
55 #define LP5569_REG_MISC2 0x33
58 #define LP5569_REG_STATUS 0x3C
64 #define LP5569_ENGINE3_INT BIT(0)
67 #define LP5569_REG_IO_CONTROL 0x3D
69 #define LP5569_REG_RESET 0x3F
70 #define LP5569_RESET 0xFF
71 #define LP5569_REG_MASTER_FADER_BASE 0x46
72 #define LP5569_REG_CH1_PROG_START 0x4B
73 #define LP5569_REG_CH2_PROG_START 0x4C
74 #define LP5569_REG_CH3_PROG_START 0x4D
75 #define LP5569_REG_PROG_PAGE_SEL 0x4F
76 #define LP5569_REG_PROG_MEM 0x50
77 #define LP5569_REG_LED_FAULT1 0x81
78 #define LP5569_LED_FAULT8 BIT(0)
79 #define LP5569_REG_LED_FAULT2 0x82
87 #define LP5569_LED_FAULT0 BIT(0)
89 #define LP5569_ENG1_PROG_ADDR 0x0
90 #define LP5569_ENG2_PROG_ADDR 0x40
91 #define LP5569_ENG3_PROG_ADDR 0x80
92 #define LP5569_ENG1_MUX_ADDR 0xc0
93 #define LP5569_ENG2_MUX_ADDR 0xd0
94 #define LP5569_ENG3_MUX_ADDR 0xe0
98 #define LEDn_STATUS_FAULT(n, status) ((status) >> (n) & BIT(0))
122 { 0x9c, LP5569_ENG1_MUX_ADDR, 0x9c, 0xb0, 0x9d, 0x80, 0xd8, 0x00, 0}, in lp5569_init_program_engine()
123 { 0x9c, LP5569_ENG2_MUX_ADDR, 0x9c, 0xc0, 0x9d, 0x80, 0xd8, 0x00, 0}, in lp5569_init_program_engine()
124 { 0x9c, LP5569_ENG3_MUX_ADDR, 0x9c, 0xd0, 0x9d, 0x80, 0xd8, 0x00, 0}, in lp5569_init_program_engine()
145 for (j = 0; j < LP55xx_BYTES_PER_PAGE; j++) { in lp5569_init_program_engine()
162 "could not configure LED engine, status = 0x%.2x\n", in lp5569_init_program_engine()
215 int i, ret, pos = 0; in lp5569_led_open_test()
219 ret = lp55xx_write(chip, LP5569_REG_ENABLE, 0); in lp5569_led_open_test()
248 for (i = 0; i < pdata->num_channels; i++) { in lp5569_led_open_test()
262 if (ret < 0) in lp5569_led_open_test()
265 for (i = 0; i < 8; i++) in lp5569_led_open_test()
266 leds_fault[i] = !!((status >> i) & 0x1); in lp5569_led_open_test()
270 if (ret < 0) in lp5569_led_open_test()
273 for (i = 0; i < 1; i++) in lp5569_led_open_test()
274 leds_fault[i + 8] = !!((status >> i) & 0x1); in lp5569_led_open_test()
278 for (i = 0; i < pdata->num_channels; i++) { in lp5569_led_open_test()
290 lp55xx_update_bits(chip, LP5569_REG_MISC2, LP5569_LED_OPEN_TEST, 0); in lp5569_led_open_test()
293 for (i = 0; i < pdata->num_channels; i++) { in lp5569_led_open_test()
294 lp55xx_write(chip, LP5569_REG_LED_PWM_BASE + led_tmp->chan_nr, 0); in lp5569_led_open_test()
308 int i, ret, pos = 0; in lp5569_led_short_test()
312 ret = lp55xx_write(chip, LP5569_REG_ENABLE, 0); in lp5569_led_short_test()
327 for (i = 0; i < pdata->num_channels; i++) { in lp5569_led_short_test()
360 if (ret < 0) in lp5569_led_short_test()
363 for (i = 0; i < 8; i++) in lp5569_led_short_test()
368 if (ret < 0) in lp5569_led_short_test()
371 for (i = 0; i < 1; i++) in lp5569_led_short_test()
376 for (i = 0; i < pdata->num_channels; i++) { in lp5569_led_short_test()
388 lp55xx_update_bits(chip, LP5569_REG_MISC2, LP5569_LED_SHORT_TEST, 0); in lp5569_led_short_test()
391 for (i = 0; i < pdata->num_channels; i++) { in lp5569_led_short_test()
392 lp55xx_write(chip, LP5569_REG_LED_PWM_BASE + led_tmp->chan_nr, 0); in lp5569_led_short_test()
406 int i, pos = 0; in lp5569_selftest()
412 if (pos < 0) in lp5569_selftest()
417 if (pos < 0) in lp5569_selftest()
420 for (i = 0; i < chip->pdata->num_channels; i++) { in lp5569_selftest()
431 return pos == 0 ? sysfs_emit(buf, "OK\n") : pos; in lp5569_selftest()