diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2023-08-12 20:16:58 +0200 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2023-08-15 18:21:17 +0200 |
commit | d768dd88552df18d4a0527cf3d6ddd05dc072f02 (patch) | |
tree | e14fc2d32dde3e84146d80cd82751cf522b47f3e /arch/mips | |
parent | b571b3acdaa43b90de3bc7540f13c02b1ee86b8e (diff) | |
download | u-boot-d768dd88552df18d4a0527cf3d6ddd05dc072f02.tar.gz |
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 <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/mach-jz47xx/jz4780/jz4780.c | 2 | ||||
-rw-r--r-- | arch/mips/mach-octeon/dram.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/mach-jz47xx/jz4780/jz4780.c b/arch/mips/mach-jz47xx/jz4780/jz4780.c index 15d1eff2ba7..676c305fd3e 100644 --- a/arch/mips/mach-jz47xx/jz4780/jz4780.c +++ b/arch/mips/mach-jz47xx/jz4780/jz4780.c @@ -76,7 +76,7 @@ void board_init_f(ulong dummy) } #endif /* CONFIG_SPL_BUILD */ -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 CFG_SYS_SDRAM_BASE + (256 * 1024 * 1024); } diff --git a/arch/mips/mach-octeon/dram.c b/arch/mips/mach-octeon/dram.c index 85cb084c13f..5b1311d8b5b 100644 --- a/arch/mips/mach-octeon/dram.c +++ b/arch/mips/mach-octeon/dram.c @@ -77,7 +77,7 @@ phys_size_t get_effective_memsize(void) return UBOOT_RAM_SIZE_MAX; } -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 (IS_ENABLED(CONFIG_RAM_OCTEON)) { /* Map a maximum of 256MiB - return not size but address */ |