From: ChiYuan Huang <cy_huang@xxxxxxxxxxx>
Add support for RT4505 flash LED controller. It can support up to 1.5A
flash current with hardware timeout and low input voltage protection.
Signed-off-by: ChiYuan Huang <cy_huang@xxxxxxxxxxx>
---
Changes since v1 to v2
- Create flash directory into drvers/leds.
- Coding style fix to meet 80 charactors per line limit.
- Refine the description in the Kconfig help text.
- Change all descriptions for 'led' text to uppercase 'LED'.
---
drivers/leds/Kconfig | 2 +
drivers/leds/Makefile | 3 +
drivers/leds/flash/Kconfig | 17 ++
drivers/leds/flash/Makefile | 2 +
drivers/leds/flash/leds-rt4505.c | 430 +++++++++++++++++++++++++++++++++++++++
5 files changed, 454 insertions(+)
create mode 100644 drivers/leds/flash/Kconfig
create mode 100644 drivers/leds/flash/Makefile
create mode 100644 drivers/leds/flash/leds-rt4505.c