| .. | .. | 
|---|
|  | 1 | +// SPDX-License-Identifier: GPL-2.0-or-later | 
|---|
| 1 | 2 | /* | 
|---|
| 2 | 3 | * BRIEF MODULE DESCRIPTION | 
|---|
| 3 | 4 | *	MyCable XXS1500 board support | 
|---|
| 4 | 5 | * | 
|---|
| 5 | 6 | * Copyright 2003, 2008 MontaVista Software Inc. | 
|---|
| 6 | 7 | * 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 | 
|---|
| 21 | 8 | */ | 
|---|
| 22 | 9 |  | 
|---|
| 23 | 10 | #include <linux/kernel.h> | 
|---|
| .. | .. | 
|---|
| 37 | 24 | const char *get_system_type(void) | 
|---|
| 38 | 25 | { | 
|---|
| 39 | 26 | 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); | 
|---|
| 58 | 27 | } | 
|---|
| 59 | 28 |  | 
|---|
| 60 | 29 | void prom_putchar(char c) | 
|---|