From 921d5477b971693892025a3b76feb3628a078b50 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Sun, 17 Jan 2021 21:27:13 +0000 Subject: [PATCH 1/2] cmd/riscv/sbi: support System Reset Extension Let the sbi command detect the 'System Reset Extension' (EID #0x53525354 "SRST"). Cf. https://github.com/riscv/riscv-sbi-doc Signed-off-by: Heinrich Schuchardt Reviewed-by: Pragnesh Patel Reviewed-by: Leo Liang Reviewed-by: Bin Meng --- cmd/riscv/sbi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/riscv/sbi.c b/cmd/riscv/sbi.c index 2c905f1f8f..90c0811e14 100644 --- a/cmd/riscv/sbi.c +++ b/cmd/riscv/sbi.c @@ -43,6 +43,7 @@ static struct sbi_ext extensions[] = { { 0x00735049, "IPI Extension" }, { 0x52464E43, "RFENCE Extension" }, { 0x0048534D, "Hart State Management Extension" }, + { 0x53525354, "System Reset Extension" }, }; static int do_sbi(struct cmd_tbl *cmdtp, int flag, int argc, From 5540294fa48598bf1aa8aa4d9084506a19bbd64c Mon Sep 17 00:00:00 2001 From: Sean Anderson Date: Thu, 4 Feb 2021 23:11:19 -0500 Subject: [PATCH 2/2] riscv: k210: Enable QSPI for spi3 This device has four IOs connected to the SPI flash. Add the appropriate bindings. Signed-off-by: Sean Anderson Reviewed-by: Bin Meng Reviewed-by: Leo Liang --- arch/riscv/dts/k210-maix-bit.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/riscv/dts/k210-maix-bit.dts b/arch/riscv/dts/k210-maix-bit.dts index e4dea205b2..902dcfd08a 100644 --- a/arch/riscv/dts/k210-maix-bit.dts +++ b/arch/riscv/dts/k210-maix-bit.dts @@ -200,6 +200,8 @@ compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <50000000>; + spi-tx-bus-width = <4>; + spi-rx-bus-width = <4>; m25p,fast-read; broken-flash-reset; };