aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelo Dureghello <angelo@kernel-space.org>2023-02-24 01:42:39 +0100
committerAngelo Dureghello <angelo@kernel-space.org>2023-03-15 01:38:19 +0100
commitcc1c2a24230343ed5213a9c4476a907c56d23082 (patch)
tree9c2e96f048aa2cca9ffc5ea1f657aa8e97acfa51
parent88e08fc5f6e508eac46cd1dfb0379b11ae032c0a (diff)
downloadu-boot-cc1c2a24230343ed5213a9c4476a907c56d23082.zip
u-boot-cc1c2a24230343ed5213a9c4476a907c56d23082.tar.gz
u-boot-cc1c2a24230343ed5213a9c4476a907c56d23082.tar.bz2
board: amcore: fix u-boot mtd partition
Signed-off-by: Angelo Dureghello <angelo@kernel-space.org>
-rw-r--r--include/configs/amcore.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/include/configs/amcore.h b/include/configs/amcore.h
index 648d30a..37c45e7 100644
--- a/include/configs/amcore.h
+++ b/include/configs/amcore.h
@@ -10,14 +10,20 @@
#define CFG_SYS_UART_PORT 0
-#define CFG_EXTRA_ENV_SETTINGS \
+#define CONFIG_MCFTMR
+#define CONFIG_MCFUART
+#define CONFIG_SYS_UART_PORT 0
+#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
+
+#define CONFIG_BOOTCOMMAND "bootm ffc30000"
+#define CONFIG_EXTRA_ENV_SETTINGS \
"upgrade_uboot=loady; " \
- "protect off 0xffc00000 0xffc1ffff; " \
- "erase 0xffc00000 0xffc1ffff; " \
+ "protect off 0xffc00000 0xffc2ffff; " \
+ "erase 0xffc00000 0xffc2ffff; " \
"cp.b 0x20000 0xffc00000 ${filesize}\0" \
"upgrade_kernel=loady; " \
- "erase 0xffc20000 0xffefffff; " \
- "cp.b 0x20000 0xffc20000 ${filesize}\0" \
+ "erase 0xffc30000 0xffefffff; " \
+ "cp.b 0x20000 0xffc30000 ${filesize}\0" \
"upgrade_jffs2=loady; " \
"erase 0xfff00000 0xffffffff; " \
"cp.b 0x20000 0xfff00000 ${filesize}\0"
@@ -38,6 +44,10 @@
/* amcore design has flash data bytes wired swapped */
#define CFG_SYS_WRITE_SWAPPED_DATA
/* reserve 128-4KB */
+#define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_FLASH_BASE + 0x400)
+#define CONFIG_SYS_MONITOR_LEN ((192 - 4) * 1024)
+#define CONFIG_SYS_MALLOC_LEN (1 * 1024 * 1024)
+#define CONFIG_SYS_BOOTPARAMS_LEN (64 * 1024)
#define LDS_BOARD_TEXT \
. = DEFINED(env_offset) ? env_offset : .; \