mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
board: visionfive2: Fixup memory size passed to kernel
Use fdt_fixup_memory to make the memory size data from dtb match the actual size. Signed-off-by: Shengyu Qu <wiagn233@outlook.com> Tested-by: Milan P. Stanić <mps@arvanta.net>
This commit is contained in:
parent
7d4810cac5
commit
43177705ab
1 changed files with 7 additions and 0 deletions
|
@ -9,8 +9,10 @@
|
|||
#include <asm/sections.h>
|
||||
#include <cpu_func.h>
|
||||
#include <dm.h>
|
||||
#include <fdt_support.h>
|
||||
#include <linux/bitops.h>
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
#define JH7110_L2_PREFETCHER_BASE_ADDR 0x2030000
|
||||
#define JH7110_L2_PREFETCHER_HART_OFFSET 0x2000
|
||||
|
||||
|
@ -51,3 +53,8 @@ void *board_fdt_blob_setup(int *err)
|
|||
|
||||
return (ulong *)&_end;
|
||||
}
|
||||
|
||||
int ft_board_setup(void *blob, struct bd_info *bd)
|
||||
{
|
||||
return fdt_fixup_memory(blob, 0x40000000, gd->ram_size);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue