realtek: sync latest version
[openwrt/staging/blogic.git] / target / linux / realtek / files-5.4 / arch / mips / rtl838x / prom.c
index 5278afae03429918c9a9ea2b84cdc96750d8d8cc..27da109b13110c3e38d7134ee93563dcb64c9b21 100644 (file)
@@ -119,6 +119,17 @@ void __init prom_init(void)
                soc_info.name = "DEFAULT";
                soc_info.family = 0;
        }
+
        pr_info("SoC Type: %s\n", get_system_type());
+
+       switch(soc_info.family) {
+       case RTL8380_FAMILY_ID:
+               soc_info.cpu_port = RTL838X_CPU_PORT;
+               break;
+       case RTL8390_FAMILY_ID:
+               soc_info.cpu_port = RTL839X_CPU_PORT;
+               break;
+       }
+
        prom_init_cmdline();
 }