From c7cc4e95a52a5b9173d041b308e5a5dbfc9a1a5d Mon Sep 17 00:00:00 2001 From: Birger Koblitz Date: Sun, 16 Jan 2022 08:34:18 +0100 Subject: [PATCH] realtek: Add support for detecting RTL9303 SoCs Adds support for detecting RTL9303 SoCs as found e.g. in the Ubiquiti USW switch. Signed-off-by: Birger Koblitz --- target/linux/realtek/files-5.10/arch/mips/rtl838x/prom.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/target/linux/realtek/files-5.10/arch/mips/rtl838x/prom.c b/target/linux/realtek/files-5.10/arch/mips/rtl838x/prom.c index 76e3ff7486e..ad8c2d75f2e 100644 --- a/target/linux/realtek/files-5.10/arch/mips/rtl838x/prom.c +++ b/target/linux/realtek/files-5.10/arch/mips/rtl838x/prom.c @@ -170,6 +170,10 @@ void __init prom_init(void) identify_rtl9302(); soc_info.family = RTL9300_FAMILY_ID; break; + case 0x9303: + soc_info.name = "RTL9303"; + soc_info.family = RTL9300_FAMILY_ID; + break; case 0x9313: soc_info.name = "RTL9313"; soc_info.family = RTL9310_FAMILY_ID;