This is an automated email from the ASF dual-hosted git repository.
xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new d43bec19363 arch/risc-v/litex: Select ONESHOT_COUNT with ONESHOT.
d43bec19363 is described below
commit d43bec19363e7e643d2c323004b5469cd8330a9f
Author: Marco Casaroli <[email protected]>
AuthorDate: Mon Oct 26 18:36:35 2026 +0100
arch/risc-v/litex: Select ONESHOT_COUNT with ONESHOT.
Since commit 2227f232f09 ("arch/risc-v: Add clkdev driver for mtime."),
riscv_mtimer.c implements the count-based oneshot operations, which
need CONFIG_ONESHOT_COUNT. Every other chip that uses riscv_mtimer.c
selects it, but ARCH_CHIP_LITEX does not. ONESHOT_COUNT has no prompt,
so a defconfig cannot enable it, and arty_a7:knsh-tickless (the LiteX
configuration with CONFIG_ONESHOT) does not build:
riscv_mtimer.c:69:4: error: 'const struct oneshot_operations_s' has
no member named 'start_absolute'
Select ONESHOT_COUNT when ONESHOT is enabled, as the Espressif chips do.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marco Casaroli <[email protected]>
---
arch/risc-v/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/risc-v/Kconfig b/arch/risc-v/Kconfig
index a511292d7f9..d672d30e511 100644
--- a/arch/risc-v/Kconfig
+++ b/arch/risc-v/Kconfig
@@ -50,6 +50,7 @@ config ARCH_CHIP_LITEX
select ARCH_HAVE_RESET
select LIBC_FDT
select DEVICE_TREE
+ select ONESHOT_COUNT if ONESHOT
---help---
Enjoy Digital LITEX VEXRISCV softcore processor (RV32IMA or
RV64GC).