aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-11-14 12:57:45 -0700
committerTom Rini <trini@konsulko.com>2019-12-02 18:25:04 -0500
commit67c4e9f815eb75ba5c1f86213eded93c4e06e64b (patch)
treeb09bb6915a2eff5045b3becb4ae595d0bf3534c9 /lib
parent428a6a18fe5ad5c007fd79a905429ee3ef3af1ea (diff)
downloadu-boot-67c4e9f815eb75ba5c1f86213eded93c4e06e64b.zip
u-boot-67c4e9f815eb75ba5c1f86213eded93c4e06e64b.tar.gz
u-boot-67c4e9f815eb75ba5c1f86213eded93c4e06e64b.tar.bz2
common: Move board_get_usable_ram_top() out of common.h
Move this function into init.h which seems to be designed for this sort of thing. Also update the header to declare struct global_data so that it can be included without global_data.h being needed. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/efi_loader/efi_memory.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader/efi_memory.c
index d46001f..89adf20 100644
--- a/lib/efi_loader/efi_memory.c
+++ b/lib/efi_loader/efi_memory.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <efi_loader.h>
+#include <init.h>
#include <malloc.h>
#include <mapmem.h>
#include <watchdog.h>