forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-09-20 cf4ce59b3b70238352c7f1729f0f7223214828ad
kernel/arch/mips/alchemy/board-gpr.c
....@@ -1,21 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * GPR board platform device registration (Au1550)
34 *
45 * Copyright (C) 2010 Wolfgang Grandegger <wg@denx.de>
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program; if not, write to the Free Software
18
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
196 */
207
218 #include <linux/delay.h>
....@@ -42,23 +29,6 @@
4229 const char *get_system_type(void)
4330 {
4431 return "GPR";
45
-}
46
-
47
-void __init prom_init(void)
48
-{
49
- unsigned char *memsize_str;
50
- unsigned long memsize;
51
-
52
- prom_argc = fw_arg0;
53
- prom_argv = (char **)fw_arg1;
54
- prom_envp = (char **)fw_arg2;
55
-
56
- prom_init_cmdline();
57
-
58
- memsize_str = prom_getenv("memsize");
59
- if (!memsize_str || kstrtoul(memsize_str, 0, &memsize))
60
- memsize = 0x04000000;
61
- add_memory_region(0, memsize, BOOT_MEM_RAM);
6232 }
6333
6434 void prom_putchar(char c)