mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-19 03:15:00 +00:00
This commit is contained in:
commit
79d389a548
6 changed files with 29 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
// SPDX-License-Identifier: GPL-2.0+
|
// SPDX-License-Identifier: GPL-2.0+
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2020-201 SiFive, Inc
|
* Copyright (C) 2020-2021 SiFive, Inc
|
||||||
* Pragnesh Patel <pragnesh.patel@sifive.com>
|
* Pragnesh Patel <pragnesh.patel@sifive.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 Western Digital Corporation or its affiliates.
|
# Copyright (c) 2019 Western Digital Corporation or its affiliates.
|
||||||
|
|
||||||
obj-y += unleashed.o
|
|
||||||
|
|
||||||
ifdef CONFIG_SPL_BUILD
|
ifdef CONFIG_SPL_BUILD
|
||||||
obj-y += spl.o
|
obj-y += spl.o
|
||||||
|
else
|
||||||
|
obj-y += unleashed.o
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
#include <misc.h>
|
#include <misc.h>
|
||||||
#include <spl.h>
|
#include <spl.h>
|
||||||
#include <asm/arch/cache.h>
|
#include <asm/arch/cache.h>
|
||||||
|
#include <asm/sections.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This define is a value used for error/unknown serial.
|
* This define is a value used for error/unknown serial.
|
||||||
|
@ -113,6 +114,16 @@ int misc_init_r(void)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void *board_fdt_blob_setup(void)
|
||||||
|
{
|
||||||
|
if (IS_ENABLED(CONFIG_OF_SEPARATE)) {
|
||||||
|
if (gd->arch.firmware_fdt_addr)
|
||||||
|
return (ulong *)gd->arch.firmware_fdt_addr;
|
||||||
|
else
|
||||||
|
return (ulong *)&_end;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int board_init(void)
|
int board_init(void)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
|
@ -2,9 +2,10 @@
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020-2021 SiFive, Inc
|
# Copyright (c) 2020-2021 SiFive, Inc
|
||||||
|
|
||||||
obj-y += unmatched.o
|
|
||||||
obj-$(CONFIG_ID_EEPROM) += hifive-platform-i2c-eeprom.o
|
obj-$(CONFIG_ID_EEPROM) += hifive-platform-i2c-eeprom.o
|
||||||
|
|
||||||
ifdef CONFIG_SPL_BUILD
|
ifdef CONFIG_SPL_BUILD
|
||||||
obj-y += spl.o
|
obj-y += spl.o
|
||||||
|
else
|
||||||
|
obj-y += unmatched.o
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -9,6 +9,17 @@
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <asm/arch/cache.h>
|
#include <asm/arch/cache.h>
|
||||||
|
#include <asm/sections.h>
|
||||||
|
|
||||||
|
void *board_fdt_blob_setup(void)
|
||||||
|
{
|
||||||
|
if (IS_ENABLED(CONFIG_OF_SEPARATE)) {
|
||||||
|
if (gd->arch.firmware_fdt_addr)
|
||||||
|
return (ulong *)gd->arch.firmware_fdt_addr;
|
||||||
|
else
|
||||||
|
return (ulong *)&_end;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int board_init(void)
|
int board_init(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,6 +6,8 @@ CONFIG_ARCH_RV64I=y
|
||||||
CONFIG_RISCV_SMODE=y
|
CONFIG_RISCV_SMODE=y
|
||||||
CONFIG_DISTRO_DEFAULTS=y
|
CONFIG_DISTRO_DEFAULTS=y
|
||||||
CONFIG_FIT=y
|
CONFIG_FIT=y
|
||||||
|
CONFIG_USE_PREBOOT=y
|
||||||
|
CONFIG_PREBOOT="setenv fdt_addr ${fdtcontroladdr}; fdt addr ${fdtcontroladdr};"
|
||||||
CONFIG_DISPLAY_CPUINFO=y
|
CONFIG_DISPLAY_CPUINFO=y
|
||||||
CONFIG_DISPLAY_BOARDINFO=y
|
CONFIG_DISPLAY_BOARDINFO=y
|
||||||
CONFIG_CMD_BOOTEFI_SELFTEST=y
|
CONFIG_CMD_BOOTEFI_SELFTEST=y
|
||||||
|
|
Loading…
Add table
Reference in a new issue