mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-15 09:27:35 +00:00
401d1c4f5d
Move this out of the common header and include it only where needed. In a number of cases this requires adding "struct udevice;" to avoid adding another large header or in other cases replacing / adding missing header files that had been pulled in, very indirectly. Finally, we have a few cases where we did not need to include <asm/global_data.h> at all, so remove that include. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Rini <trini@konsulko.com>
32 lines
547 B
C
32 lines
547 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (c) 2015 Google, Inc
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <efi.h>
|
|
#include <init.h>
|
|
#include <asm/global_data.h>
|
|
#include <asm/u-boot-x86.h>
|
|
|
|
DECLARE_GLOBAL_DATA_PTR;
|
|
|
|
ulong board_get_usable_ram_top(ulong total_size)
|
|
{
|
|
return (ulong)efi_get_ram_base() + gd->ram_size;
|
|
}
|
|
|
|
int dram_init(void)
|
|
{
|
|
/* gd->ram_size is set as part of EFI init */
|
|
|
|
return 0;
|
|
}
|
|
|
|
int dram_init_banksize(void)
|
|
{
|
|
gd->bd->bi_dram[0].start = efi_get_ram_base();
|
|
gd->bd->bi_dram[0].size = CONFIG_EFI_RAM_SIZE;
|
|
|
|
return 0;
|
|
}
|