Skip to content

hw/timer: add k230 dwapb timer

raoyi qemu-devel qemu-riscv 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v11 patch 1 replySuperseded

Changes in v2 from the cover letter

- Split into 3 patches: model, board integration, tests
- Remove goto pattern from read/write handlers
- Fix include order, add explicit bitops.h include
- Add QOM <private>/<public> markers in struct
- Fix copyright headers

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3hw/timer: add k230 dwapb timer modelhw/timer/Kconfig hw/timer/k230_dwapb_timer.c hw/timer/meson.build +2 more+403 -00 replies
2/3hw/riscv: integrate k230 dwapb timer into k230 boardhw/riscv/Kconfig hw/riscv/k230.c include/hw/riscv/k230.h+29 -30 replies
3/3tests/qtest: add k230 dwapb timer testMAINTAINERS tests/qtest/k230-dwapb-timer-test.c tests/qtest/meson.build+231 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] hw/timer: add k230 dwapb timer

Add DesignWare APB timer peripheral for K230 machine. The timer uses the Clock framework for frequency input, preparing for future CMU integration.

Changes since v1:
- Split into 3 patches: model, board integration, tests
- Remove goto pattern from read/write handlers
- Fix include order, add explicit bitops.h include
- Add QOM <private>/<public> markers in struct
- Fix copyright headers

raoyi (3):
hw/timer: add k230 dwapb timer model hw/riscv: integrate k230 dwapb timer into k230 board tests/qtest: add k230 dwapb timer test

 MAINTAINERS                         |   3 +
 hw/riscv/Kconfig                    |   1 +
 hw/riscv/k230.c                     |  23 +-
 hw/timer/Kconfig                    |   4 +
 hw/timer/k230_dwapb_timer.c         | 317 ++++++++++++++++++++++++++++
 hw/timer/meson.build                |   1 +
 hw/timer/trace-events               |   9 +
 include/hw/riscv/k230.h             |   8 +
 include/hw/timer/k230_dwapb_timer.h |  72 +++++++
 tests/qtest/k230-dwapb-timer-test.c | 227 ++++++++++++++++++++
 tests/qtest/meson.build             |   2 +-
 11 files changed, 663 insertions(+), 4 deletions(-)
 create mode 100644 hw/timer/k230_dwapb_timer.c
 create mode 100644 include/hw/timer/k230_dwapb_timer.h
 create mode 100644 tests/qtest/k230-dwapb-timer-test.c
Signature · 1 line
2.53.0