diff options
| author | Ashok Reddy Soma <[email protected]> | 2022-07-07 10:45:37 +0200 |
|---|---|---|
| committer | Michal Simek <[email protected]> | 2022-07-26 08:23:54 +0200 |
| commit | 65168910adaae3a4ac91fd5acf30941a28facc0e (patch) | |
| tree | f358cb9e735ce8793b4c612fd605d1b84bfd1556 /arch/microblaze | |
| parent | 7c1860fce4e369bdcabc1f574feb6b9af19999a3 (diff) | |
zynqmp: Run board_get_usable_ram_top() only on main U-Boot
With commit ce39ee28ec31 ("zynqmp: Do not place u-boot to reserved memory
location"), the function board_get_usable_ram_top() is allocating
MMU_SECTION_SIZE of about 2MB using lmb_alloc(). But we dont have this
much memory in case of mini U-Boot.
Keep these functions which use lmb under CONFIG_LMB so that they are
compiled and used only when LMB is enabled.
Signed-off-by: Ashok Reddy Soma <[email protected]>
Signed-off-by: Michal Simek <[email protected]>
Signed-off-by: Michal Simek <[email protected]>
Link: https://lore.kernel.org/r/75e52def75f573e554a6b177a78504c128cb0c4a.1657183534.git.michal.simek@amd.com
Diffstat (limited to 'arch/microblaze')
| -rw-r--r-- | arch/microblaze/lib/bootm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/microblaze/lib/bootm.c b/arch/microblaze/lib/bootm.c index af946b86428..31b6659cdf7 100644 --- a/arch/microblaze/lib/bootm.c +++ b/arch/microblaze/lib/bootm.c @@ -73,7 +73,7 @@ static void boot_jump_linux(bootm_headers_t *images, int flag) static void boot_prep_linux(bootm_headers_t *images) { - if (CONFIG_IS_ENABLED(OF_LIBFDT) && images->ft_len) { + if (CONFIG_IS_ENABLED(OF_LIBFDT) && CONFIG_IS_ENABLED(LMB) && images->ft_len) { debug("using: FDT\n"); if (image_setup_linux(images)) { printf("FDT creation failed! hanging..."); |
