ARM: 7437/1: zImage: Allow DTB command line concatenation with ATAG_CMDLINE
authorGenoud Richard <richard.genoud@gmail.com>
Tue, 26 Jun 2012 15:37:59 +0000 (16:37 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 9 Jul 2012 16:39:39 +0000 (17:39 +0100)
commitd0f34a11ddab9b456e4caf9fc48d8d7e832e0e50
tree00c0dfd265bb37ced1c3f12626f17ec4b9df131a
parent9ad86ddde0345e903eb74837e52cf19fe0c7f825
ARM: 7437/1: zImage: Allow DTB command line concatenation with ATAG_CMDLINE

This patch allows the ATAG_CMDLINE provided by the bootloader to be
concatenated to the bootargs property of the device tree.

This is useful to merge static values defined in the device tree
with the boot loader's (possibly) more dynamic values, such as
startup reasons and more.

The bootloader should use the device tree to pass those values to
the kernel, but that's not always simple (old bootloader or very
small one).

The behaviour is the same as the one introduced by Victor Boivie in
4394c1244249198c6b85093d46935b761b36ae05 by extending the CONFIG_CMDLINE.

Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
Tested-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/Kconfig
arch/arm/boot/compressed/atags_to_fdt.c