xref: /openbmc/linux/drivers/leds/flash/Kconfig (revision 3d37ef41)
1# SPDX-License-Identifier: GPL-2.0
2
3if LEDS_CLASS_FLASH
4
5config LEDS_RT4505
6	tristate "LED support for RT4505 flashlight controller"
7	depends on I2C && OF
8	depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
9	select REGMAP_I2C
10	help
11	  This option enables support for the RT4505 flash LED controller.
12	  RT4505 includes torch and flash functions with programmable current.
13	  And it's commonly used to compensate the illuminance for the camera
14	  inside the mobile product like as phones or tablets.
15
16config LEDS_RT8515
17	tristate "LED support for Richtek RT8515 flash/torch LED"
18	depends on GPIOLIB
19	depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
20	help
21	  This option enables support for the Richtek RT8515 flash
22	  and torch LEDs found on some mobile phones.
23
24	  To compile this driver as a module, choose M here: the module
25	  will be called leds-rt8515.
26
27endif # LEDS_CLASS_FLASH
28