aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/files-5.10/drivers/net/dsa/rtl83xx/dsa.c
diff options
context:
space:
mode:
authorBirger Koblitz <git@birger-koblitz.de>2022-02-02 07:29:25 +0100
committerDaniel Golle <daniel@makrotopia.org>2022-02-17 15:21:47 +0000
commit0538dc693b54e52fdfb8b7cd052eb96b5eb65708 (patch)
treefbe6968dac4ec1bc3b7f36f6248514a931e96a9f /target/linux/realtek/files-5.10/drivers/net/dsa/rtl83xx/dsa.c
parentcaaac9ab3bb34a067001595648f6fb6b57621202 (diff)
downloadupstream-0538dc693b54e52fdfb8b7cd052eb96b5eb65708.tar.gz
upstream-0538dc693b54e52fdfb8b7cd052eb96b5eb65708.tar.bz2
upstream-0538dc693b54e52fdfb8b7cd052eb96b5eb65708.zip
realtek: add support for port led configuration on RTL93XX
Using the led-set attribute of a port in the dts we allow configuration of the port leds. Each led-set is being defined in the led-set configuration of the .dts, giving a specific configuration to steer the port LEDs via a serial connection. Signed-off-by: Birger Koblitz <git@birger-koblitz.de>
Diffstat (limited to 'target/linux/realtek/files-5.10/drivers/net/dsa/rtl83xx/dsa.c')
-rw-r--r--target/linux/realtek/files-5.10/drivers/net/dsa/rtl83xx/dsa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/realtek/files-5.10/drivers/net/dsa/rtl83xx/dsa.c b/target/linux/realtek/files-5.10/drivers/net/dsa/rtl83xx/dsa.c
index 8c4cd0b4a2..4e8bbc00db 100644
--- a/target/linux/realtek/files-5.10/drivers/net/dsa/rtl83xx/dsa.c
+++ b/target/linux/realtek/files-5.10/drivers/net/dsa/rtl83xx/dsa.c
@@ -258,6 +258,8 @@ static int rtl93xx_setup(struct dsa_switch *ds)
priv->r->pie_init(priv);
+ priv->r->led_init(priv);
+
return 0;
}