Merge branch 'x86-pti-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-block.git] / arch / mips / loongson32 / common / setup.c
CommitLineData
2874c5fd 1// SPDX-License-Identifier: GPL-2.0-or-later
ca585cf9
KC
2/*
3 * Copyright (c) 2011 Zhang, Keguang <keguang.zhang@gmail.com>
ca585cf9
KC
4 */
5
75cac781
JY
6#include <linux/io.h>
7#include <linux/init.h>
8#include <linux/smp.h>
9#include <asm/cpu-info.h>
ca585cf9
KC
10#include <asm/bootinfo.h>
11
ca585cf9
KC
12const char *get_system_type(void)
13{
14 unsigned int processor_id = (&current_cpu_data)->processor_id;
15
16 switch (processor_id & PRID_REV_MASK) {
17 case PRID_REV_LOONGSON1B:
12e3280b 18#if defined(CONFIG_LOONGSON1_LS1B)
ca585cf9 19 return "LOONGSON LS1B";
12e3280b
YL
20#elif defined(CONFIG_LOONGSON1_LS1C)
21 return "LOONGSON LS1C";
22#endif
ca585cf9
KC
23 default:
24 return "LOONGSON (unknown)";
25 }
26}