summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2021-04-27 22:23:04 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2021-05-10 09:18:40 +0200
commit6fd5711a111e8c7c4e6ea09d962b6885da09f86b (patch)
tree22b7cc54477502d5199b7caac5ddac8d3b6aa669 /commands
parent60b6da3b17214d0efb27d5b42e804aa641bf5ceb (diff)
downloadbarebox-6fd5711a111e8c7c4e6ea09d962b6885da09f86b.tar.gz
barebox-6fd5711a111e8c7c4e6ea09d962b6885da09f86b.tar.xz
RISC-V: add SBI based cpuinfo
SBI appeared to be especially useful to implement a generic console driver. However, SBI v0.2 removes these services without substitute. We might find other use for it later, but for now, add the bare minimum of querying the version of the running SBI implementation. The cpuinfo command is intentionally kept generic. It can later be extended to support CONFIG_RISCV_M_MODE as well. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20210427202309.32077-7-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r--commands/Kconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/commands/Kconfig b/commands/Kconfig
index b3937fdd8d..5ae3cb3dd1 100644
--- a/commands/Kconfig
+++ b/commands/Kconfig
@@ -44,6 +44,13 @@ config CMD_ARM_CPUINFO
D-cache: 8192 bytes (linelen = 8)
Control register: M C W P D L I V RR DT IT U XP
+config CMD_RISCV_CPUINFO
+ bool "cpuinfo command"
+ default y
+ depends on RISCV_SBI
+ help
+ Show SBI info about RISC-V CPU
+
config CMD_DEVINFO
tristate
default y