arm/km: add boardid and hwkey to kernel command line
authorHolger Brunck <holger.brunck@keymile.com>
Tue, 13 Sep 2011 22:41:04 +0000 (22:41 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Thu, 3 Nov 2011 21:56:22 +0000 (22:56 +0100)
We need in some cases a possibility for the kernel to distinguish
on which board he is running. On powerpc we did this with different
dts files. On arm currently we can't do this, so add boardid and
hwkey to the kernel command line and use it later on in the kernel
code.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
include/configs/km/km_arm.h

index f30088d532dbf5dbba72e32c367e205f0b108b9e..540d59e82875c3e5810577bcccf7afb277e93bf3 100644 (file)
@@ -74,7 +74,8 @@
 
 /* architecture specific default bootargs */
 #define CONFIG_KM_DEF_BOOT_ARGS_CPU                                    \
-               "bootcountaddr=${bootcountaddr} ${mtdparts}"
+               "bootcountaddr=${bootcountaddr} ${mtdparts}"            \
+               " boardid=0x${IVM_BoardId} hwkey=0x${IVM_HWKey}"
 
 #define CONFIG_KM_DEF_ENV_CPU                                          \
        "boot=bootm ${load_addr_r} - -\0"                               \