1 // SPDX-License-Identifier: GPL-2.0-or-later
7 #include <linux/init.h>
9 #include <asm/cpu-info.h>
10 #include <asm/bootinfo.h>
12 const char *get_system_type(void)
14 unsigned int processor_id = (¤t_cpu_data)->processor_id;
16 switch (processor_id & PRID_REV_MASK) {
17 case PRID_REV_LOONGSON1B:
18 #if defined(CONFIG_LOONGSON1_LS1B)
19 return "LOONGSON LS1B";
20 #elif defined(CONFIG_LOONGSON1_LS1C)
21 return "LOONGSON LS1C";
24 return "LOONGSON (unknown)";