root/arch/mips/loongson32/common/setup.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. plat_mem_setup
  2. get_system_type

   1 // SPDX-License-Identifier: GPL-2.0-or-later
   2 /*
   3  * Copyright (c) 2011 Zhang, Keguang <keguang.zhang@gmail.com>
   4  */
   5 
   6 #include <asm/bootinfo.h>
   7 
   8 #include <prom.h>
   9 
  10 void __init plat_mem_setup(void)
  11 {
  12         add_memory_region(0x0, (memsize << 20), BOOT_MEM_RAM);
  13 }
  14 
  15 const char *get_system_type(void)
  16 {
  17         unsigned int processor_id = (&current_cpu_data)->processor_id;
  18 
  19         switch (processor_id & PRID_REV_MASK) {
  20         case PRID_REV_LOONGSON1B:
  21 #if defined(CONFIG_LOONGSON1_LS1B)
  22                 return "LOONGSON LS1B";
  23 #elif defined(CONFIG_LOONGSON1_LS1C)
  24                 return "LOONGSON LS1C";
  25 #endif
  26         default:
  27                 return "LOONGSON (unknown)";
  28         }
  29 }

/* [<][>][^][v][top][bottom][index][help] */