summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2010-04-26 13:07:28 +0200
committerWolfgang Denk <wd@denx.de>2011-04-30 00:45:22 +0200
commitf1fef1d8a141e0b4e4520d66e162c06ff047bd16 (patch)
tree41b7f4a2fd983b3472816ad6e613c72c97a482dd /include
parent0d01520200f3bb0686567134bc2e7bb940009559 (diff)
downloadu-boot-imx-f1fef1d8a141e0b4e4520d66e162c06ff047bd16.zip
u-boot-imx-f1fef1d8a141e0b4e4520d66e162c06ff047bd16.tar.gz
u-boot-imx-f1fef1d8a141e0b4e4520d66e162c06ff047bd16.tar.bz2
keymile, common: add setting of some environment variables
This patch adds last_stage_init to all keymile boards. And in the last stage init some environment variables for u-boot were set. Currently these are pnvramaddr, pram and var address. Signed-off-by: Holger Brunck <holger.brunck@keymile.com> Signed-off-by: Heiko Schocher <hs@denx.de> Acked-by: Kim Phillips <kim.phillips@freescale.com> cc: Valentin Longchamp <valentin.longchamp@keymile.com> cc: Wolfgang Denk <wd@denx.de> cc: Kim Phillips <kim.phillips@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/keymile-common.h3
-rw-r--r--include/configs/km_arm.h7
-rw-r--r--include/configs/mgcoge.h2
3 files changed, 10 insertions, 2 deletions
diff --git a/include/configs/keymile-common.h b/include/configs/keymile-common.h
index 77e2090..da5a447 100644
--- a/include/configs/keymile-common.h
+++ b/include/configs/keymile-common.h
@@ -26,6 +26,9 @@
/* Do boardspecific init for all boards */
#define CONFIG_BOARD_EARLY_INIT_R
+#define CONFIG_LAST_STAGE_INIT
+
+#define CONFIG_BOOTCOUNT_LIMIT
/*
* By default kwbimage.cfg from board specific folder is used
diff --git a/include/configs/km_arm.h b/include/configs/km_arm.h
index 8cb0fe8..9c8d0e7 100644
--- a/include/configs/km_arm.h
+++ b/include/configs/km_arm.h
@@ -254,4 +254,11 @@ int get_scl (void);
#define CONFIG_SYS_INIT_SP_ADDR 0xC8012000
/* Do early setups now in board_init_f() */
#define CONFIG_BOARD_EARLY_INIT_F
+
+/*
+ * resereved pram area at the end of memroy [hex]
+ * 8Mbytes for switch + 4Kbytes for bootcount
+ */
+#define CONFIG_KM_RESERVED_PRAM 0x801000
+
#endif /* _CONFIG_KM_ARM_H */
diff --git a/include/configs/mgcoge.h b/include/configs/mgcoge.h
index a0d1765..dcde76c 100644
--- a/include/configs/mgcoge.h
+++ b/include/configs/mgcoge.h
@@ -61,8 +61,6 @@
/* include further common stuff for all keymile 82xx boards */
#include "km82xx-common.h"
-/* enable last_stage_init */
-#define CONFIG_LAST_STAGE_INIT 1
/* bfticu address */
#define CONFIG_SYS_BFTICU_BASE 0x40000000