diff options
author | Simon Glass <sjg@chromium.org> | 2019-11-14 12:57:45 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-12-02 18:25:04 -0500 |
commit | 67c4e9f815eb75ba5c1f86213eded93c4e06e64b (patch) | |
tree | b09bb6915a2eff5045b3becb4ae595d0bf3534c9 /arch/x86/lib | |
parent | 428a6a18fe5ad5c007fd79a905429ee3ef3af1ea (diff) |
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 'arch/x86/lib')
-rw-r--r-- | arch/x86/lib/fsp/fsp_dram.c | 1 | ||||
-rw-r--r-- | arch/x86/lib/init_helpers.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/lib/fsp/fsp_dram.c b/arch/x86/lib/fsp/fsp_dram.c index 2d1023068f..bc456bb4a9 100644 --- a/arch/x86/lib/fsp/fsp_dram.c +++ b/arch/x86/lib/fsp/fsp_dram.c @@ -5,6 +5,7 @@ #include <common.h> #include <handoff.h> +#include <init.h> #include <asm/fsp/fsp_support.h> #include <asm/e820.h> #include <asm/mrccache.h> diff --git a/arch/x86/lib/init_helpers.c b/arch/x86/lib/init_helpers.c index 3e3a11ac2f..5bb55e256f 100644 --- a/arch/x86/lib/init_helpers.c +++ b/arch/x86/lib/init_helpers.c @@ -5,6 +5,7 @@ */ #include <common.h> +#include <init.h> #include <linux/errno.h> #include <asm/mtrr.h> |