Jelajahi Sumber

arm/km: add boardid and hwkey to kernel command line

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>
Holger Brunck 14 tahun lalu
induk
melakukan
66072a8ca0
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      include/configs/km/km_arm.h

+ 2 - 1
include/configs/km/km_arm.h

@@ -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"				\