linux/arch/mips/generic
Paul Cercueil 13a0ea28e8 MIPS: generic: Init command line with fw_init_cmdline()
The function bootcmdline_init() in arch/mips/kernel/setup.c will
populate the boot_command_line string using the parameters hardcoded in
the kernel, and those provided in the devicetree file. Then, it would
append the content of the arcs_cmdline variable, which is filled by the
board's plat_mem_setup() function.

The plat_mem_setup() function for the generic MIPS board would just copy
the current boot_command_line to arcs_cmdline, which is nonsense for two
reasons:
- the result will be appended to the boot_command_line anyway, so all it
  does is duplicate every single parameter on the command line;
- the code did not perform at all what it's supposed to, which is to
  retrieve the parameters passed by the bootloader.

Fix this by calling fw_init_cmdline() in plat_mem_setup(), which will
properly initialize arcs_cmdline to the parameters passed by the
bootloader.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
2020-09-18 16:31:10 +02:00
..
board-boston.its.S MIPS: generic: Move Boston FIT image source to its own file 2017-08-29 15:21:52 +02:00
board-ni169445.its.S MIPS: generic: Fix NI 169445 its build 2017-10-31 22:55:44 +00:00
board-ocelot.c remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
board-ocelot.its.S MIPS: mscc: add PCB120 to the ocelot fitImage 2018-10-09 10:38:29 -07:00
board-ranchu.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
board-sead3.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
board-xilfpga.its.S MIPS: generic: Add support for MIPSfpga 2017-11-08 22:53:44 +00:00
init.c MIPS: generic: Init command line with fw_init_cmdline() 2020-09-18 16:31:10 +02:00
irq.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
Kconfig MIPS: Kconfig: add MIPS_GENERIC_KERNEL symbol 2020-09-18 16:28:31 +02:00
Makefile treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
Platform MIPS: Only include the platform file needed 2020-05-13 00:17:18 +02:00
proc.c MIPS: generic: Allow boards to set system type 2020-09-18 16:28:56 +02:00
vmlinux.its.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
yamon-dt.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00