Message ID | 20210910141529.69841-5-heinrich.schuchardt@canonical.com |
---|---|
State | Superseded |
Delegated to: | Andes |
Headers | show |
Series | riscv: enable SBI system reset | expand |
On Fri, Sep 10, 2021 at 10:15 PM Heinrich Schuchardt <heinrich.schuchardt@canonical.com> wrote: > > There should be a platform compiled with the new driver. > > If you want to test the SBI sysreset driver, disable > CONFIG_SYSRESET_SYSCON. In OpenSBI sifive_test_system_reset() will be > called. > > Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> > --- > v5: > new patch > --- > configs/qemu-riscv32_smode_defconfig | 1 + > configs/qemu-riscv64_smode_defconfig | 1 + > 2 files changed, 2 insertions(+) > Should also turn it on for the SPL version. Regards, Bin
diff --git a/configs/qemu-riscv32_smode_defconfig b/configs/qemu-riscv32_smode_defconfig index 05eda43961..5a4ef47a22 100644 --- a/configs/qemu-riscv32_smode_defconfig +++ b/configs/qemu-riscv32_smode_defconfig @@ -13,3 +13,4 @@ CONFIG_CMD_NVEDIT_EFI=y CONFIG_OF_PRIOR_STAGE=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y CONFIG_DM_MTD=y +CONFIG_SYSRESET_SBI=y diff --git a/configs/qemu-riscv64_smode_defconfig b/configs/qemu-riscv64_smode_defconfig index 4a6416e254..8fb80d7008 100644 --- a/configs/qemu-riscv64_smode_defconfig +++ b/configs/qemu-riscv64_smode_defconfig @@ -16,3 +16,4 @@ CONFIG_CMD_NVEDIT_EFI=y CONFIG_OF_PRIOR_STAGE=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y CONFIG_DM_MTD=y +CONFIG_SYSRESET_SBI=y
There should be a platform compiled with the new driver. If you want to test the SBI sysreset driver, disable CONFIG_SYSRESET_SYSCON. In OpenSBI sifive_test_system_reset() will be called. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> --- v5: new patch --- configs/qemu-riscv32_smode_defconfig | 1 + configs/qemu-riscv64_smode_defconfig | 1 + 2 files changed, 2 insertions(+)