summaryrefslogtreecommitdiff
path: root/board/raspberrypi/rpi/rpi.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-11-14 22:57:45 +0300
committerTom Rini <trini@konsulko.com>2019-12-03 02:25:04 +0300
commit67c4e9f815eb75ba5c1f86213eded93c4e06e64b (patch)
treeb09bb6915a2eff5045b3becb4ae595d0bf3534c9 /board/raspberrypi/rpi/rpi.c
parent428a6a18fe5ad5c007fd79a905429ee3ef3af1ea (diff)
downloadu-boot-67c4e9f815eb75ba5c1f86213eded93c4e06e64b.tar.xz
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 'board/raspberrypi/rpi/rpi.c')
-rw-r--r--board/raspberrypi/rpi/rpi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c
index 3d4afaf653..5f120ea9c2 100644
--- a/board/raspberrypi/rpi/rpi.c
+++ b/board/raspberrypi/rpi/rpi.c
@@ -10,6 +10,7 @@
#include <efi_loader.h>
#include <fdt_support.h>
#include <fdt_simplefb.h>
+#include <init.h>
#include <lcd.h>
#include <memalign.h>
#include <mmc.h>