diff options
| author | Heinrich Schuchardt <[email protected]> | 2023-08-12 20:16:58 +0200 |
|---|---|---|
| committer | Heinrich Schuchardt <[email protected]> | 2023-08-15 18:21:17 +0200 |
| commit | d768dd88552df18d4a0527cf3d6ddd05dc072f02 (patch) | |
| tree | e14fc2d32dde3e84146d80cd82751cf522b47f3e /arch/x86/lib | |
| parent | b571b3acdaa43b90de3bc7540f13c02b1ee86b8e (diff) | |
common: return type board_get_usable_ram_top
board_get_usable_ram_top() returns a physical address that is stored in
gd->ram_top. The return type of the function should be phys_addr_t like the
current type of gd->ram_top.
Signed-off-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'arch/x86/lib')
| -rw-r--r-- | arch/x86/lib/fsp1/fsp_dram.c | 2 | ||||
| -rw-r--r-- | arch/x86/lib/fsp2/fsp_dram.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/lib/fsp1/fsp_dram.c b/arch/x86/lib/fsp1/fsp_dram.c index 5825221d1e5..eee9ce54b1c 100644 --- a/arch/x86/lib/fsp1/fsp_dram.c +++ b/arch/x86/lib/fsp1/fsp_dram.c @@ -34,7 +34,7 @@ int dram_init(void) * the relocation address, and how far U-Boot is moved by relocation are * set in the global data structure. */ -phys_size_t board_get_usable_ram_top(phys_size_t total_size) +phys_addr_t board_get_usable_ram_top(phys_size_t total_size) { return fsp_get_usable_lowmem_top(gd->arch.hob_list); } diff --git a/arch/x86/lib/fsp2/fsp_dram.c b/arch/x86/lib/fsp2/fsp_dram.c index f9ea1ab3baa..a1432239cfc 100644 --- a/arch/x86/lib/fsp2/fsp_dram.c +++ b/arch/x86/lib/fsp2/fsp_dram.c @@ -77,7 +77,7 @@ int dram_init(void) return 0; } -phys_size_t board_get_usable_ram_top(phys_size_t total_size) +phys_addr_t board_get_usable_ram_top(phys_size_t total_size) { if (!ll_boot_init()) return gd->ram_size; |
