Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / mips / loongson32 / common / setup.c
blob1640744288ee020df7200b5f01165749075bfe67
1 /*
2 * Copyright (c) 2011 Zhang, Keguang <keguang.zhang@gmail.com>
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 */
10 #include <asm/bootinfo.h>
12 #include <prom.h>
14 void __init plat_mem_setup(void)
16 add_memory_region(0x0, (memsize << 20), BOOT_MEM_RAM);
19 const char *get_system_type(void)
21 unsigned int processor_id = (&current_cpu_data)->processor_id;
23 switch (processor_id & PRID_REV_MASK) {
24 case PRID_REV_LOONGSON1B:
25 #if defined(CONFIG_LOONGSON1_LS1B)
26 return "LOONGSON LS1B";
27 #elif defined(CONFIG_LOONGSON1_LS1C)
28 return "LOONGSON LS1C";
29 #endif
30 default:
31 return "LOONGSON (unknown)";