aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/patches-4.14/818-MIPS-ath79-add-nu801-led-driver.patch
blob: 349c43d9fb38ffe3c43600ec22c565692d263fac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- a/drivers/leds/Kconfig
+++ b/drivers/leds/Kconfig
@@ -632,6 +632,13 @@ config LEDS_IS31FL32XX
 
 comment "LED driver for blink(1) USB RGB LED is under Special HID drivers (HID_THINGM)"
 
+config LEDS_NU801
+	tristate "LED driver for NU801 RGB LED"
+	depends on LEDS_CLASS && (ATH79_MACH_MR18 || ATH79_MACH_Z1)
+	help
+	  This option enables support for NU801 RGB LED driver chips
+	  accessed via GPIO.
+
 config LEDS_BLINKM
 	tristate "LED support for the BlinkM I2C RGB LED"
 	depends on LEDS_CLASS
--- a/drivers/leds/Makefile
+++ b/drivers/leds/Makefile
@@ -58,6 +58,7 @@ obj-$(CONFIG_LEDS_LT3593)		+= leds-lt359
 obj-$(CONFIG_LEDS_ADP5520)		+= leds-adp5520.o
 obj-$(CONFIG_LEDS_MC13783)		+= leds-mc13783.o
 obj-$(CONFIG_LEDS_RB750)		+= leds-rb750.o
+obj-$(CONFIG_LEDS_NU801)		+= leds-nu801.o
 obj-$(CONFIG_LEDS_NS2)			+= leds-ns2.o
 obj-$(CONFIG_LEDS_NETXBIG)		+= leds-netxbig.o
 obj-$(CONFIG_LEDS_ASIC3)		+= leds-asic3.o