summaryrefslogtreecommitdiff
path: root/include/configs/sama5d3_xplained.h
diff options
context:
space:
mode:
authorFabien Lehoussel <fabien.lehoussel@medianesysteme.com>2020-02-24 16:45:31 +0100
committerEugen Hristev <eugen.hristev@microchip.com>2020-03-10 11:01:08 +0200
commitdf1cf775ffa0ae770931f5911c1dc99a9545c3cd (patch)
treee9dc95662b058d46da59fc99030a9a0725c41f83 /include/configs/sama5d3_xplained.h
parent21cb8749b420c3da8f89d53510cf536d052343ae (diff)
board: sama5d3_xplained: Fix uboot size when loaded from NAND by SPL
Uboot size is incorrect. Uboot SPL use CONFIG_SYS_MONITOR_LEN to read uboot from NAND : 0x80000 With sama5d3_xplained_nandflash_defconfig : u-boot.bin size is ~800Ko 0xC0000 So I increased size to 1MB : 0x100000 Signed-off-by: Fabien Lehoussel <fabien.lehoussel@medianesysteme.com>
Diffstat (limited to 'include/configs/sama5d3_xplained.h')
-rw-r--r--include/configs/sama5d3_xplained.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/configs/sama5d3_xplained.h b/include/configs/sama5d3_xplained.h
index 696933da73..42c14007c0 100644
--- a/include/configs/sama5d3_xplained.h
+++ b/include/configs/sama5d3_xplained.h
@@ -9,6 +9,7 @@
#ifndef __CONFIG_H
#define __CONFIG_H
+#include <linux/sizes.h>
#include "at91-sama5_common.h"
/*
@@ -64,7 +65,8 @@
#define CONFIG_SYS_SPL_MALLOC_START 0x20080000
#define CONFIG_SYS_SPL_MALLOC_SIZE 0x80000
-#define CONFIG_SYS_MONITOR_LEN (512 << 10)
+/* size of u-boot.bin to load */
+#define CONFIG_SYS_MONITOR_LEN (2 * SZ_512K)
#ifdef CONFIG_SD_BOOT
#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1