summaryrefslogtreecommitdiff
path: root/include/configs/km
diff options
context:
space:
mode:
authorValentin Longchamp <valentin.longchamp@keymile.com>2011-05-31 02:12:46 +0000
committerU-Boot <uboot@lilith.(none)>2011-05-31 19:45:24 +0200
commitea616d4defbf90b1b0cbdf5d8425b574d606cd35 (patch)
tree3e5f1f38914244d5b71e9aa4c3b5d45b5631f10f /include/configs/km
parentb84ac38c23d44c665c4cabc9b4d5e097d79651a9 (diff)
downloadu-boot-imx-ea616d4defbf90b1b0cbdf5d8425b574d606cd35.zip
u-boot-imx-ea616d4defbf90b1b0cbdf5d8425b574d606cd35.tar.gz
u-boot-imx-ea616d4defbf90b1b0cbdf5d8425b574d606cd35.tar.bz2
arm/km: move CONFIG_EXTRA_ENV_SETTINGS from board to km_arm file
Since all the boards define the same env settings, this simplifies the board files. Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com> cc: Holger Brunck <holger.brunck@keymile.com> cc: Heiko Schocher <hs@denx.de> cc: Wolfgang Denk <wd@denx.de> cc: Detlev Zundel <dzu@denx.de> cc: Prafulla Wadaskar <prafulla@marvell.com>
Diffstat (limited to 'include/configs/km')
-rw-r--r--include/configs/km/km_arm.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/configs/km/km_arm.h b/include/configs/km/km_arm.h
index aa9f1ae..80a56dd 100644
--- a/include/configs/km/km_arm.h
+++ b/include/configs/km/km_arm.h
@@ -239,6 +239,21 @@ int get_scl(void);
"sf write ${u-boot_addr_r} 0 ${filesize};" \
"spi off\0"
+/*
+ * Default environment variables
+ */
+#define CONFIG_EXTRA_ENV_SETTINGS \
+ CONFIG_KM_DEF_ENV \
+ "newenv=setenv addr 0x100000 && " \
+ "i2c dev 1; mw.b ${addr} 0 4 && " \
+ "eeprom write " xstr(CONFIG_SYS_DEF_EEPROM_ADDR) \
+ " ${addr} " xstr(CONFIG_ENV_OFFSET) " 4 && " \
+ "eeprom write " xstr(CONFIG_SYS_DEF_EEPROM_ADDR) \
+ " ${addr} " xstr(CONFIG_ENV_OFFSET_REDUND) " 4\0" \
+ "rootpath=/opt/eldk/arm\0" \
+ "EEprom_ivm=" KM_IVM_BUS "\0" \
+ ""
+
#if defined(CONFIG_SYS_NO_FLASH)
#define CONFIG_KM_UBI_PARTITION_NAME "ubi0"
#undef CONFIG_FLASH_CFI_MTD