Tom Rini
2024-07-22 09:38:04 -06:00
5 changed files with 21 additions and 6 deletions

View File

@@ -93,10 +93,6 @@
bootph-pre-ram;
};
&pllclk {
bootph-pre-ram;
};
&S7_0 {
status = "okay";
};

View File

@@ -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
View 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);
}

View File

@@ -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 */

View File

@@ -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