Ashok Reddy Soma 65168910ad 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 <ashok.reddy.soma@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>

Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/75e52def75f573e554a6b177a78504c128cb0c4a.1657183534.git.michal.simek@amd.com
2022-07-26 08:23:54 +02:00
..
2021-11-07 18:36:55 +01:00
2022-04-28 09:26:44 -04:00
2022-07-01 15:55:54 -04:00
2021-10-27 16:38:26 -04:00
2021-09-04 11:42:41 -04:00
2022-04-28 09:26:44 -04:00
2022-07-11 14:58:57 -04:00
2022-07-08 17:57:34 -04:00
2021-09-07 16:22:30 -04:00
2022-04-28 09:26:44 -04:00
2021-12-20 17:12:04 -05:00
2022-04-08 09:05:20 -04:00
2022-04-12 15:36:18 +02:00
2022-07-11 14:58:57 -04:00
2022-01-08 11:16:03 -05:00