Lines Matching +full:multi +full:- +full:chip
1 /* SPDX-License-Identifier: GPL-2.0-only */
9 * Derived from leds-lp5521.c, leds-lp5523.c
15 #include <linux/led-class-multicolor.h>
116 * @reg_op_mode : Chip specific OP MODE reg addr
117 * @engine_busy : Chip specific engine busy
119 * @reset : Chip specific reset command
120 * @enable : Chip specific enable command
121 * @prog_mem_base : Chip specific base reg address for chip SMEM programming
122 * @reg_led_pwm_base : Chip specific base reg address for LED PWM conf
123 * @reg_led_current_base : Chip specific base reg address for LED current conf
124 * @reg_master_fader_base : Chip specific base reg address for master fader base
125 * @reg_led_ctrl_base : Chip specific base reg address for LED ctrl base
127 * (if not set chip doesn't support pages)
129 * @post_init_device : Chip specific initialization code
152 int (*post_init_device) (struct lp55xx_chip *chip);
164 void (*firmware_cb)(struct lp55xx_chip *chip);
167 void (*run_engine) (struct lp55xx_chip *chip, bool start);
187 * @lock : Lock for user-space interface
197 struct mutex lock; /* lock for user-space interface */
209 * @mc_cdev : Multi color class device
210 * @color_components: Multi color LED map information
214 * @chip : The lp55xx chip data
223 struct lp55xx_chip *chip; member
227 extern int lp55xx_write(struct lp55xx_chip *chip, u8 reg, u8 val);
228 extern int lp55xx_read(struct lp55xx_chip *chip, u8 reg, u8 *val);
229 extern int lp55xx_update_bits(struct lp55xx_chip *chip, u8 reg,
233 extern bool lp55xx_is_extclk_used(struct lp55xx_chip *chip);
235 /* common chip functions */
236 extern void lp55xx_stop_all_engine(struct lp55xx_chip *chip);
237 extern void lp55xx_load_engine(struct lp55xx_chip *chip);
238 extern int lp55xx_run_engine_common(struct lp55xx_chip *chip);
239 extern int lp55xx_update_program_memory(struct lp55xx_chip *chip,
241 extern void lp55xx_firmware_loaded_cb(struct lp55xx_chip *chip);
245 extern void lp55xx_turn_off_channels(struct lp55xx_chip *chip);
246 extern void lp55xx_stop_engine(struct lp55xx_chip *chip);