]> Git Repo - u-boot.git/blame - arch/x86/cpu/efi/sdram.c
global: Make <asm/global_data.h> include <asm/u-boot.h>
[u-boot.git] / arch / x86 / cpu / efi / sdram.c
CommitLineData
83d290c5 1// SPDX-License-Identifier: GPL-2.0+
3dcdd17b
BS
2/*
3 * Copyright (c) 2015 Google, Inc
3dcdd17b
BS
4 */
5
3dcdd17b 6#include <efi.h>
67c4e9f8 7#include <init.h>
401d1c4f 8#include <asm/global_data.h>
3dcdd17b
BS
9#include <asm/u-boot-x86.h>
10
11DECLARE_GLOBAL_DATA_PTR;
12
d768dd88 13phys_addr_t board_get_usable_ram_top(phys_size_t total_size)
3dcdd17b
BS
14{
15 return (ulong)efi_get_ram_base() + gd->ram_size;
16}
17
18int dram_init(void)
19{
20 /* gd->ram_size is set as part of EFI init */
21
22 return 0;
23}
24
76b00aca 25int dram_init_banksize(void)
3dcdd17b
BS
26{
27 gd->bd->bi_dram[0].start = efi_get_ram_base();
28 gd->bd->bi_dram[0].size = CONFIG_EFI_RAM_SIZE;
76b00aca
SG
29
30 return 0;
3dcdd17b 31}
This page took 0.173714 seconds and 4 git commands to generate.