]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - Kconfig
arm: spl: Allow board_init_r() to run with a larger stack
[karo-tx-uboot.git] / Kconfig
diff --git a/Kconfig b/Kconfig
index 8fa41921d1f2886a1bd6253056619bb16cbdd0a8..6ceff971b48e42cbe9673ec03a9f9f4023d03cb9 100644 (file)
--- a/Kconfig
+++ b/Kconfig
@@ -96,6 +96,24 @@ config SPL
        help
          If you want to build SPL as well as the normal image, say Y.
 
+config SPL_STACK_R
+       depends on SPL
+       bool "Enable SDRAM location for SPL stack"
+       help
+         SPL starts off execution in SRAM and thus typically has only a small
+         stack available. Since SPL sets up DRAM while in its board_init_f()
+         function, it is possible for the stack to move there before
+         board_init_r() is reached. This option enables a special SDRAM
+         location for the SPL stack. U-Boot SPL switches to this after
+         board_init_f() completes, and before board_init_r() starts.
+
+config SPL_STACK_R_ADDR
+       depends on SPL_STACK_R
+       hex "SDRAM location for SPL stack"
+       help
+         Specify the address in SDRAM for the SPL stack. This will be set up
+         before board_init_r() is called.
+
 config TPL
        bool
        depends on SPL && SUPPORT_TPL