Merge tag 'usb-5.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
[linux/fpc-iii.git] / arch / mips / loongson32 / common / setup.c
blob4733fe037176f9886aa74ee66fc6af9deb139be1
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * Copyright (c) 2011 Zhang, Keguang <keguang.zhang@gmail.com>
4 */
6 #include <linux/io.h>
7 #include <linux/init.h>
8 #include <linux/smp.h>
9 #include <asm/cpu-info.h>
10 #include <asm/bootinfo.h>
12 const char *get_system_type(void)
14 unsigned int processor_id = (&current_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";
22 #endif
23 default:
24 return "LOONGSON (unknown)";