mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
- Fixup memory size passed to kernel on visionfive2
This commit is contained in:
commit
d01a8541d6
2 changed files with 8 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);
|
||||
}
|
||||
|
|
|
@ -36,6 +36,7 @@ CONFIG_SPL_OPENSBI_LOAD_ADDR=0x40000000
|
|||
CONFIG_ARCH_RV64I=y
|
||||
CONFIG_CMODEL_MEDANY=y
|
||||
CONFIG_RISCV_SMODE=y
|
||||
CONFIG_OF_BOARD_SETUP=y
|
||||
# CONFIG_OF_BOARD_FIXUP is not set
|
||||
CONFIG_FIT=y
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
|
|
Loading…
Reference in a new issue