mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
This commit is contained in:
@@ -93,10 +93,6 @@
|
||||
bootph-pre-ram;
|
||||
};
|
||||
|
||||
&pllclk {
|
||||
bootph-pre-ram;
|
||||
};
|
||||
|
||||
&S7_0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
@@ -26,6 +26,7 @@ obj-y += setjmp.o
|
||||
obj-$(CONFIG_$(SPL_)SMP) += smp.o
|
||||
obj-$(CONFIG_SPL_BUILD) += spl.o
|
||||
obj-y += fdt_fixup.o
|
||||
obj-$(CONFIG_$(SPL)CMD_BDI) += bdinfo.o
|
||||
|
||||
# For building EFI apps
|
||||
CFLAGS_NON_EFI := -fstack-protector-strong
|
||||
|
||||
18
arch/riscv/lib/bdinfo.c
Normal file
18
arch/riscv/lib/bdinfo.c
Normal file
@@ -0,0 +1,18 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
/*
|
||||
* RISC-V-specific information for the 'bdinfo' command
|
||||
*/
|
||||
|
||||
#include <init.h>
|
||||
#include <asm/global_data.h>
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
void arch_print_bdinfo(void)
|
||||
{
|
||||
bdinfo_print_num_l("boot hart", gd->arch.boot_hart);
|
||||
|
||||
if (gd->arch.firmware_fdt_addr)
|
||||
bdinfo_print_num_ll("firmware fdt",
|
||||
(long long)gd->arch.firmware_fdt_addr);
|
||||
}
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
.pushsection .text.smh_trap, "ax"
|
||||
ENTRY(smh_trap)
|
||||
.align 2
|
||||
.align 4 /* keep slli, ebreak, srai in same page */
|
||||
.option push
|
||||
.option norvc /* semihosting sequence must be 32-bit wide */
|
||||
|
||||
|
||||
@@ -16,4 +16,4 @@ partitions=
|
||||
name=loader1,start=17K,size=1M,type=${type_guid_gpt_loader1};
|
||||
name=loader2,size=4MB,type=${type_guid_gpt_loader2};
|
||||
name=system,size=-,bootable,type=${type_guid_gpt_system};
|
||||
fdtfile= CONFIG_DEFAULT_FDT_FILE
|
||||
fdtfile=CONFIG_DEFAULT_FDT_FILE
|
||||
|
||||
Reference in New Issue
Block a user