.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * GPR board platform device registration (Au1550) |
---|
3 | 4 | * |
---|
4 | 5 | * 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 |
---|
19 | 6 | */ |
---|
20 | 7 | |
---|
21 | 8 | #include <linux/delay.h> |
---|
.. | .. |
---|
42 | 29 | const char *get_system_type(void) |
---|
43 | 30 | { |
---|
44 | 31 | 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); |
---|
62 | 32 | } |
---|
63 | 33 | |
---|
64 | 34 | void prom_putchar(char c) |
---|