ARM: zynq: Setup stack size via Kconfig
authorMichal Simek <michal.simek@xilinx.com>
Thu, 16 Apr 2020 12:17:23 +0000 (14:17 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 27 Apr 2020 11:53:13 +0000 (13:53 +0200)
Stack size has been introduced by commit a69814c815b9 ("arm64: zynqmp:
Set initrd_high to as high as possible") and commit 085201c246ee ("arm64:
versal: Set initrd_high to as high as possible")
to support setting up initrd_high as high as possible.
The same change should happen for Zynq because the code is moved to xilinx
common location.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/Kconfig

index 1bcf3450288c54a117fc6e91dffb6ea64c08f3ec..8e67e1c58733c474213738384f9a33e2560060ca 100644 (file)
@@ -475,7 +475,7 @@ config TPL_USE_ARCH_MEMSET
 
 config SET_STACK_SIZE
        bool "Enable an option to set max stack size that can be used"
-       default y if ARCH_VERSAL || ARCH_ZYNQMP
+       default y if ARCH_VERSAL || ARCH_ZYNQMP || ARCH_ZYNQ
        help
          This will enable an option to set max stack size that can be
          used by U-Boot.
@@ -484,6 +484,7 @@ 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
+       default 0x1000000 if ARCH_ZYNQ
        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