forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/arch/mips/alchemy/board-xxs1500.c
....@@ -1,23 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * BRIEF MODULE DESCRIPTION
34 * MyCable XXS1500 board support
45 *
56 * Copyright 2003, 2008 MontaVista Software Inc.
67 * Author: MontaVista Software, Inc. <source@mvista.com>
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program; if not, write to the Free Software
20
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
218 */
229
2310 #include <linux/kernel.h>
....@@ -37,24 +24,6 @@
3724 const char *get_system_type(void)
3825 {
3926 return "XXS1500";
40
-}
41
-
42
-void __init prom_init(void)
43
-{
44
- unsigned char *memsize_str;
45
- unsigned long memsize;
46
-
47
- prom_argc = fw_arg0;
48
- prom_argv = (char **)fw_arg1;
49
- prom_envp = (char **)fw_arg2;
50
-
51
- prom_init_cmdline();
52
-
53
- memsize_str = prom_getenv("memsize");
54
- if (!memsize_str || kstrtoul(memsize_str, 0, &memsize))
55
- memsize = 0x04000000;
56
-
57
- add_memory_region(0, memsize, BOOT_MEM_RAM);
5827 }
5928
6029 void prom_putchar(char c)