rtl838x: fix RTL838X_LED_SW_CTRL definition
authorPeter Körner <git@mazdermind.de>
Tue, 19 Sep 2023 22:44:39 +0000 (00:44 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Mon, 15 Jan 2024 17:09:22 +0000 (18:09 +0100)
According to https://svanheule.net/realtek/maple/register/led_sw_ctrl and also
drivers/net/dsa/rtl83xx/debugfs.c LED_SW_CTRL on the RTL838X should be 0xa00c
not 0x0128. Please note, that is is 0x0128 on the RTL8390/cypress SOC family.

Signed-off-by: Peter Körner <git@mazdermind.de>
target/linux/realtek/files-5.15/arch/mips/include/asm/mach-rtl838x/mach-rtl83xx.h

index d9c0b311aeaa510c87c343b6420ba613f3c4c3f1..81a9ac00f821bf973d7d61457ee371040739e475 100644 (file)
 #define RTL838X_LED_P_EN_CTRL          (0xA008)
 
 /* LED control by software */
-#define RTL838X_LED_SW_CTRL            (0x0128)
+#define RTL838X_LED_SW_CTRL            (0xA00C)
 #define RTL839X_LED_SW_CTRL            (0xA00C)
 #define RTL838X_LED_SW_P_EN_CTRL       (0xA010)
 #define RTL839X_LED_SW_P_EN_CTRL       (0x012C)