diff options
author | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2020-10-05 13:28:45 +0200 |
---|---|---|
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2020-10-06 12:33:57 +0200 |
commit | 026ba130a5e8861259d12fb9ae352e9ce408955d (patch) | |
tree | 31f802aec9fedaefebc9ed9802525658c5e943ce /arch/mips/alchemy/devboards/platform.c | |
parent | MIPS: alchemy: Fix build breakage, if TOUCHSCREEN_WM97XX is disabled (diff) | |
download | linux-026ba130a5e8861259d12fb9ae352e9ce408955d.tar.xz linux-026ba130a5e8861259d12fb9ae352e9ce408955d.zip |
MIPS: alchemy: Share prom_init implementation
All boards have the same prom_init() function. Move it to common code and
delete the duplicates.
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/alchemy/devboards/platform.c')
-rw-r--r-- | arch/mips/alchemy/devboards/platform.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/arch/mips/alchemy/devboards/platform.c b/arch/mips/alchemy/devboards/platform.c index 8d4b65c3268a..754bdd2ca630 100644 --- a/arch/mips/alchemy/devboards/platform.c +++ b/arch/mips/alchemy/devboards/platform.c @@ -20,23 +20,6 @@ #include <prom.h> -void __init prom_init(void) -{ - unsigned char *memsize_str; - unsigned long memsize; - - prom_argc = (int)fw_arg0; - prom_argv = (char **)fw_arg1; - prom_envp = (char **)fw_arg2; - - prom_init_cmdline(); - memsize_str = prom_getenv("memsize"); - if (!memsize_str || kstrtoul(memsize_str, 0, &memsize)) - memsize = 64 << 20; /* all devboards have at least 64MB RAM */ - - add_memory_region(0, memsize, BOOT_MEM_RAM); -} - void prom_putchar(char c) { if (alchemy_get_cputype() == ALCHEMY_CPU_AU1300) |