On Thu, Jul 30, 2026 at 9:38 PM raoyi <[email protected]> wrote:
>
> 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 ++++++++++++++++++++++++++++

This one should be modeled as a generic DesignWare APB Timer, then
optionally a K230 customized wrapper model.

>  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
>
> --

Regards,
Bin

Reply via email to