summaryrefslogtreecommitdiff
path: root/arch/mips/loongson2ef/common/init.c
diff options
context:
space:
mode:
authorJiaxun Yang <jiaxun.yang@flygoat.com>2019-11-07 12:01:15 +0800
committerPaul Burton <paulburton@kernel.org>2019-11-11 10:44:56 -0800
commit75cac781dca43e735fbb4166d994263a14f0823e (patch)
treeef25a2c60eefce7b1172db0a3d32f43e545a6137 /arch/mips/loongson2ef/common/init.c
parent28e6b875fdbb17ef57cc4343d8825e0d5770f427 (diff)
MIPS: Loongson{2ef, 32, 64} convert to generic fw cmdline
All of Loongson firmwares are passing boot cmdline/env in the manner of YAMON/PMON. Thus we can remove duplicated cmdline initialize code and convert to generic fw method. Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Signed-off-by: Paul Burton <paulburton@kernel.org> Cc: linux-mips@vger.kernel.org Cc: chenhe@lemote.com
Diffstat (limited to 'arch/mips/loongson2ef/common/init.c')
-rw-r--r--arch/mips/loongson2ef/common/init.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/mips/loongson2ef/common/init.c b/arch/mips/loongson2ef/common/init.c
index a45430365729..dab3ffda8b14 100644
--- a/arch/mips/loongson2ef/common/init.c
+++ b/arch/mips/loongson2ef/common/init.c
@@ -9,6 +9,7 @@
#include <asm/traps.h>
#include <asm/smp-ops.h>
#include <asm/cacheflush.h>
+#include <asm/fw/fw.h>
#include <loongson.h>
@@ -32,7 +33,8 @@ void __init prom_init(void)
ioremap(LOONGSON_ADDRWINCFG_BASE, LOONGSON_ADDRWINCFG_SIZE);
#endif
- prom_init_cmdline();
+ fw_init_cmdline();
+ prom_init_machtype();
prom_init_env();
/* init base address of io space */