summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorHolger Brunck <holger.brunck@keymile.com>2013-01-21 03:55:24 +0000
committerKim Phillips <kim.phillips@freescale.com>2013-02-15 17:47:20 -0600
commita7bc914446b46407bb478d4c7b6cb616e1cddb49 (patch)
tree84f5cfe2cd85ac84f839ab823a1a3ff25045239e /include/configs
parentbe7576fa15498e6874bbc901f0aefb7f2f17943d (diff)
downloadu-boot-imx-a7bc914446b46407bb478d4c7b6cb616e1cddb49.zip
u-boot-imx-a7bc914446b46407bb478d4c7b6cb616e1cddb49.tar.gz
u-boot-imx-a7bc914446b46407bb478d4c7b6cb616e1cddb49.tar.bz2
km/common: add eccmode to kernel commandline
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>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/km/keymile-common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/configs/km/keymile-common.h b/include/configs/km/keymile-common.h
index ae88759..796f330 100644
--- a/include/configs/km/keymile-common.h
+++ b/include/configs/km/keymile-common.h
@@ -150,8 +150,10 @@
#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
/*
@@ -190,6 +192,7 @@
":${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 \