+config SET_STACK_SIZE
+ bool "Enable an option to set max stack size that can be used"
+ default y if ARCH_VERSAL || ARCH_ZYNQMP
+ help
+ This will enable an option to set max stack size that can be
+ used by U-Boot.
+
+config STACK_SIZE
+ hex "Define max stack size that can be used by U-Boot"
+ depends on SET_STACK_SIZE
+ default 0x4000000 if ARCH_VERSAL || ARCH_ZYNQMP
+ help
+ Define Max stack size that can be used by U-Boot so that the
+ initrd_high will be calculated as base stack pointer minus this
+ stack size.
+