Simon Glass | c2ae7d8 | 2016-09-12 23:18:22 -0600 | [diff] [blame^] | 1 | config SUPPORT_SPL |
| 2 | bool |
| 3 | |
| 4 | config SUPPORT_TPL |
| 5 | bool |
| 6 | |
| 7 | config SPL |
| 8 | bool |
| 9 | depends on SUPPORT_SPL |
| 10 | prompt "Enable SPL" |
| 11 | help |
| 12 | If you want to build SPL as well as the normal image, say Y. |
| 13 | |
| 14 | config SPL_SYS_MALLOC_SIMPLE |
| 15 | bool |
| 16 | depends on SPL |
| 17 | prompt "Only use malloc_simple functions in the SPL" |
| 18 | help |
| 19 | Say Y here to only use the *_simple malloc functions from |
| 20 | malloc_simple.c, rather then using the versions from dlmalloc.c; |
| 21 | this will make the SPL binary smaller at the cost of more heap |
| 22 | usage as the *_simple malloc functions do not re-use free-ed mem. |
| 23 | |
| 24 | config SPL_STACK_R |
| 25 | depends on SPL |
| 26 | bool "Enable SDRAM location for SPL stack" |
| 27 | help |
| 28 | SPL starts off execution in SRAM and thus typically has only a small |
| 29 | stack available. Since SPL sets up DRAM while in its board_init_f() |
| 30 | function, it is possible for the stack to move there before |
| 31 | board_init_r() is reached. This option enables a special SDRAM |
| 32 | location for the SPL stack. U-Boot SPL switches to this after |
| 33 | board_init_f() completes, and before board_init_r() starts. |
| 34 | |
| 35 | config SPL_STACK_R_ADDR |
| 36 | depends on SPL_STACK_R |
| 37 | hex "SDRAM location for SPL stack" |
| 38 | help |
| 39 | Specify the address in SDRAM for the SPL stack. This will be set up |
| 40 | before board_init_r() is called. |
| 41 | |
| 42 | config SPL_STACK_R_MALLOC_SIMPLE_LEN |
| 43 | depends on SPL_STACK_R && SPL_SYS_MALLOC_SIMPLE |
| 44 | hex "Size of malloc_simple heap after switching to DRAM SPL stack" |
| 45 | default 0x100000 |
| 46 | help |
| 47 | Specify the amount of the stack to use as memory pool for |
| 48 | malloc_simple after switching the stack to DRAM. This may be set |
| 49 | to give board_init_r() a larger heap then the initial heap in |
| 50 | SRAM which is limited to SYS_MALLOC_F_LEN bytes. |
| 51 | |
| 52 | config SPL_SEPARATE_BSS |
| 53 | depends on SPL |
| 54 | bool "BSS section is in a different memory region from text" |
| 55 | help |
| 56 | Some platforms need a large BSS region in SPL and can provide this |
| 57 | because RAM is already set up. In this case BSS can be moved to RAM. |
| 58 | This option should then be enabled so that the correct device tree |
| 59 | location is used. Normally we put the device tree at the end of BSS |
| 60 | but with this option enabled, it goes at _image_binary_end. |
| 61 | |
| 62 | config TPL |
| 63 | bool |
| 64 | depends on SPL && SUPPORT_TPL |
| 65 | prompt "Enable TPL" |
| 66 | help |
| 67 | If you want to build TPL as well as the normal image and SPL, say Y. |