mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 16:33:17 +00:00
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 3029 file(s). Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Allison Randal <[email protected]> Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
30 lines
602 B
C
30 lines
602 B
C
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
/*
|
|
* Copyright (c) 2011 Zhang, Keguang <[email protected]>
|
|
*/
|
|
|
|
#include <asm/bootinfo.h>
|
|
|
|
#include <prom.h>
|
|
|
|
void __init plat_mem_setup(void)
|
|
{
|
|
add_memory_region(0x0, (memsize << 20), BOOT_MEM_RAM);
|
|
}
|
|
|
|
const char *get_system_type(void)
|
|
{
|
|
unsigned int processor_id = (¤t_cpu_data)->processor_id;
|
|
|
|
switch (processor_id & PRID_REV_MASK) {
|
|
case PRID_REV_LOONGSON1B:
|
|
#if defined(CONFIG_LOONGSON1_LS1B)
|
|
return "LOONGSON LS1B";
|
|
#elif defined(CONFIG_LOONGSON1_LS1C)
|
|
return "LOONGSON LS1C";
|
|
#endif
|
|
default:
|
|
return "LOONGSON (unknown)";
|
|
}
|
|
}
|