]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
km/common: add eccmode to kernel commandline
authorHolger Brunck <holger.brunck@keymile.com>
Mon, 21 Jan 2013 03:55:24 +0000 (03:55 +0000)
committerKim Phillips <kim.phillips@freescale.com>
Fri, 15 Feb 2013 23:47:20 +0000 (17:47 -0600)
If CONFIG_NAND_ECC_BCH is chosen from in the board configuration we add
an ecc mode to the kernel commandline.

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

index ae88759240fe7df6ded120f66e94476737a66913..796f33080d359a3f47c696ab30e4f76bd519c495 100644 (file)
 
 #ifdef CONFIG_NAND_ECC_BCH
 #define CONFIG_KM_UIMAGE_NAME "ecc_bch_uImage\0"
+#define CONFIG_KM_ECC_MODE    " eccmode=bch"
 #else
 #define CONFIG_KM_UIMAGE_NAME "uImage\0"
+#define CONFIG_KM_ECC_MODE
 #endif
 
 /*
                ":${hostname}:${netdev}:off3"                           \
                " console=" CONFIG_KM_CONSOLE_TTY ",${baudrate}"        \
                " mem=${kernelmem} init=${init}"                        \
+               CONFIG_KM_ECC_MODE                                      \
                " phram.phram=phvar,${varaddr}," __stringify(CONFIG_KM_PHRAM)\
                " " CONFIG_KM_UBI_LINUX_MTD " "                         \
                CONFIG_KM_DEF_BOOT_ARGS_CPU                             \