]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
stm32mp: remove efi_add_known_memory() function definition
authorSughosh Ganu <sughosh.ganu@linaro.org>
Tue, 15 Oct 2024 15:37:10 +0000 (21:07 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 15 Oct 2024 19:45:29 +0000 (13:45 -0600)
The efi_add_known_memory() function for the stm32mp platforms is adding
the EFI_CONVENTIONAL_MEMORY type. This memory is now being handled
through the LMB module -- the lmb_add_memory() adds this memory to the
memory map. Remove the definition of the now superfluous
efi_add_known_memory() function.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/mach-stm32mp/dram_init.c

index 198785353f13d968f8a8b92ed84ef9b472fea073..3698fc49bf180c495f40b6ea475b4420e44931c6 100644 (file)
@@ -86,14 +86,3 @@ phys_addr_t board_get_usable_ram_top(phys_size_t total_size)
 
        return reg + size;
 }
-
-void efi_add_known_memory(void)
-{
-       if (IS_ENABLED(CONFIG_EFI_LOADER))
-               /*
-                * Memory over ram_top is reserved to OPTEE.
-                * Declare to EFI only memory area below ram_top
-                */
-               efi_add_memory_map(gd->ram_base, gd->ram_top - gd->ram_base,
-                                  EFI_CONVENTIONAL_MEMORY);
-}