All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/3] hw/timer: add K230 DW APB timer support
@ 2026-08-19 13:18 raoyi
  2026-08-19 13:18 ` [PATCH v5 1/3] hw/timer: add DesignWare APB timer model raoyi
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: raoyi @ 2026-08-19 13:18 UTC (permalink / raw)
  To: qemu-devel, qemu-riscv
  Cc: Chao Liu, Alistair Francis, Palmer Dabbelt, Weiwei Li,
	Daniel Henrique Barboza, Liu Zhiwei, caojunze424, Bin Meng,
	Philippe Mathieu-Daudé, raoyi

Add a DesignWare APB timer model to QEMU, wire it to the K230 board,
and provide qtest coverage for the timer behavior.

Changes in v5:
- Rename DW_APB_TIMER_CONTROL_INT to
  DW_APB_TIMER_CONTROL_INT_MASK.
- Fix the K230 timer clock frequency from 6.25 MHz to 50 MHz.
- Wrap the qtest commit message at about 70 characters per line.
- Register both K230 qtests directly under CONFIG_K230.

Testing:
- QEMU build passed in the Debian container.
- tests/qtest/k230-dwapb-timer-test: 8/8 passed.
- Mainline Linux 7.2.0-rc3 booted successfully.
- DW APB timer registered at 50 MHz; PLIC timer interrupt counts increased.

raoyi (3):
  hw/timer: add DesignWare APB timer model
  hw/riscv: add DesignWare APB timer to K230 board
  tests/qtest: add k230 dwapb timer test

 MAINTAINERS                         |   3 +
 hw/riscv/Kconfig                    |   1 +
 hw/riscv/k230.c                     |  33 ++-
 hw/timer/Kconfig                    |   4 +
 hw/timer/dw-apb-timer.c             | 376 ++++++++++++++++++++++++++++
 hw/timer/meson.build                |   1 +
 hw/timer/trace-events               |   8 +
 include/hw/riscv/k230.h             |   8 +
 include/hw/timer/dw-apb-timer.h     |  40 +++
 tests/qtest/k230-dwapb-timer-test.c | 274 ++++++++++++++++++++
 tests/qtest/meson.build             |   3 +-
 11 files changed, 747 insertions(+), 4 deletions(-)
 create mode 100644 hw/timer/dw-apb-timer.c
 create mode 100644 include/hw/timer/dw-apb-timer.h
 create mode 100644 tests/qtest/k230-dwapb-timer-test.c


base-commit: f893c46c3931b3684d235d221bf8b7844ddbf1d7
-- 
2.53.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-08-19 13:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-19 13:18 [PATCH v5 0/3] hw/timer: add K230 DW APB timer support raoyi
2026-08-19 13:18 ` [PATCH v5 1/3] hw/timer: add DesignWare APB timer model raoyi
2026-08-19 13:18 ` [PATCH v5 2/3] hw/riscv: add DesignWare APB timer to K230 board raoyi
2026-08-19 13:18 ` [PATCH v5 3/3] tests/qtest: add k230 dwapb timer test raoyi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.