]>
Commit | Line | Data |
---|---|---|
83d290c5 | 1 | // SPDX-License-Identifier: GPL-2.0+ |
3dcdd17b BS |
2 | /* |
3 | * Copyright (c) 2015 Google, Inc | |
3dcdd17b BS |
4 | */ |
5 | ||
6 | #include <common.h> | |
7 | #include <efi.h> | |
67c4e9f8 | 8 | #include <init.h> |
401d1c4f | 9 | #include <asm/global_data.h> |
3dcdd17b BS |
10 | #include <asm/u-boot-x86.h> |
11 | ||
12 | DECLARE_GLOBAL_DATA_PTR; | |
13 | ||
14 | ulong board_get_usable_ram_top(ulong total_size) | |
15 | { | |
16 | return (ulong)efi_get_ram_base() + gd->ram_size; | |
17 | } | |
18 | ||
19 | int dram_init(void) | |
20 | { | |
21 | /* gd->ram_size is set as part of EFI init */ | |
22 | ||
23 | return 0; | |
24 | } | |
25 | ||
76b00aca | 26 | int dram_init_banksize(void) |
3dcdd17b BS |
27 | { |
28 | gd->bd->bi_dram[0].start = efi_get_ram_base(); | |
29 | gd->bd->bi_dram[0].size = CONFIG_EFI_RAM_SIZE; | |
76b00aca SG |
30 | |
31 | return 0; | |
3dcdd17b | 32 | } |