summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authoresw@bus-elektronik.de <esw@bus-elektronik.de>2012-03-19 05:18:17 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-07-07 14:07:29 +0200
commit5e7d0917b644e1768ddfdeb1fa5822dc7c974fa4 (patch)
tree3c9e5994ad57d1cd8d66885d23a85a3b8a2b5b39 /include/configs
parent2feb73666174518e50364f76966af8b291cb6fa7 (diff)
downloadu-boot-imx-5e7d0917b644e1768ddfdeb1fa5822dc7c974fa4.zip
u-boot-imx-5e7d0917b644e1768ddfdeb1fa5822dc7c974fa4.tar.gz
u-boot-imx-5e7d0917b644e1768ddfdeb1fa5822dc7c974fa4.tar.bz2
Fix: AT91SAM9263 nor flash usage
Fix: board doesn't boot from norflash Fix: environment can't write to flash (end address/start address not on sector boundary) Signed-off-by: Jens Scharsig (BuS Elektronik) <esw@bus-elektronik.de> Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/at91sam9263ek.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/configs/at91sam9263ek.h b/include/configs/at91sam9263ek.h
index 61a622a..f2163f1 100644
--- a/include/configs/at91sam9263ek.h
+++ b/include/configs/at91sam9263ek.h
@@ -33,7 +33,11 @@
*/
#include <asm/hardware.h>
+#ifndef CONFIG_SYS_USE_BOOT_NORFLASH
#define CONFIG_SYS_TEXT_BASE 0x21F00000
+#else
+#define CONFIG_SYS_TEXT_BASE 0x0000000
+#endif
/* ARM asynchronous clock */
#define CONFIG_SYS_AT91_MAIN_CLOCK 16367660 /* 16.367 MHz crystal */
@@ -147,11 +151,11 @@
#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE
#define CONFIG_SYS_MONITOR_LEN (256 << 10)
#define CONFIG_ENV_IS_IN_FLASH 1
-#define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + 0x007FE000)
+#define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + 0x007E0000)
#define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR - CONFIG_ENV_SIZE)
/* Address and size of Primary Environment Sector */
-#define CONFIG_ENV_SIZE 0x2000
+#define CONFIG_ENV_SIZE 0x10000
#define xstr(s) str(s)
#define str(s) #s