[PATCH v2 11/16] ARM: at91: sama5: specify 0x10000 as first stage max size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The ROM code on the sama5d{2,3,4} imposes a 64K limit on the bootloader
binary it loads to SRAM. Declare this in the mach-at91/Kconfig, so
it will always be checked against.

Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
---
 arch/arm/mach-at91/Kconfig | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig
index a5e55e3cc451..0c012daf424d 100644
--- a/arch/arm/mach-at91/Kconfig
+++ b/arch/arm/mach-at91/Kconfig
@@ -224,6 +224,12 @@ config ARCH_BAREBOX_MAX_BARE_INIT_SIZE
 	default 0x6000 if ARCH_SAMA5D3
 	default 0xffffffff
 
+config ARCH_BAREBOX_MAX_IMAGE_SIZE
+	hex
+	depends on AT91_LOAD_BAREBOX_SRAM
+	default 0x10000 if SOC_SAMA5
+	default 0xffffffff
+
 config SUPPORT_CALAO_DAB_MMX
 	bool
 
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux