xref: /kernel/linux/linux-5.10/arch/mips/loongson32/common/setup.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/arch/mips/loongson32/common/
18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-or-later
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (c) 2011 Zhang, Keguang <keguang.zhang@gmail.com>
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#include <linux/io.h>
78c2ecf20Sopenharmony_ci#include <linux/init.h>
88c2ecf20Sopenharmony_ci#include <linux/smp.h>
98c2ecf20Sopenharmony_ci#include <asm/cpu-info.h>
108c2ecf20Sopenharmony_ci#include <asm/bootinfo.h>
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ciconst char *get_system_type(void)
138c2ecf20Sopenharmony_ci{
148c2ecf20Sopenharmony_ci	unsigned int processor_id = (&current_cpu_data)->processor_id;
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci	switch (processor_id & PRID_REV_MASK) {
178c2ecf20Sopenharmony_ci	case PRID_REV_LOONGSON1B:
188c2ecf20Sopenharmony_ci#if defined(CONFIG_LOONGSON1_LS1B)
198c2ecf20Sopenharmony_ci		return "LOONGSON LS1B";
208c2ecf20Sopenharmony_ci#elif defined(CONFIG_LOONGSON1_LS1C)
218c2ecf20Sopenharmony_ci		return "LOONGSON LS1C";
228c2ecf20Sopenharmony_ci#endif
238c2ecf20Sopenharmony_ci	default:
248c2ecf20Sopenharmony_ci		return "LOONGSON (unknown)";
258c2ecf20Sopenharmony_ci	}
268c2ecf20Sopenharmony_ci}
27

Indexes created Thu Nov 07 10:32:03 CST 2024