From: jack wang <163wangjack@gmail.com>
To: qemu-devel@nongnu.org
Cc: Jack Wang <163wangjack@gmail.com>
Subject: [RFC PATCH 0/2] *** Add k230 reset management unit support ***
Date: Thu, 9 Jul 2026 11:12:35 +0800 [thread overview]
Message-ID: <20260709031237.21284-1-163wangjack@gmail.com> (raw)
From: Jack Wang <163wangjack@gmail.com>
This series adds support for reset management unit found on k230 soc and
successfully wires it up to k230 machine;
The register design are implemented based on k230 trm and linux reset driver
(drivers/reset/reset-k230.c)
detailed implementations:
1. write-enable mask for control registers(strobe in the upper 16 bits)
2. hardware auto-clearing for reset and flush request bits
3. latching of Done bits and w1c logic
4. qtest coverage for register read/write behaviors and hardware state modelin
There are some checkpatch style warnings (line length, comment
formatting) that will be addressed in v2 based on reviewer feedback.
this is my first time for hardware-unit modeling so apologies for possible mistake.
I am apprecitated for any feedback
Jack Wang (2):
hw/misc/k230_rmu: add Kendryte K230 Reset Management Unit model
hw/riscv/k230: wire up the RMU device
docs/system/riscv/k230.rst | 1 +
hw/misc/Kconfig | 3 +
hw/misc/k230_rmu.c | 280 ++++++++++++++++++++++++++++++++++++
hw/misc/meson.build | 1 +
hw/misc/trace-events | 6 +
hw/riscv/Kconfig | 1 +
hw/riscv/k230.c | 10 +-
include/hw/misc/k230_rmu.h | 76 ++++++++++
include/hw/riscv/k230.h | 2 +
tests/qtest/k230-rmu-test.c | 125 ++++++++++++++++
tests/qtest/meson.build | 3 +-
11 files changed, 504 insertions(+), 4 deletions(-)
create mode 100644 hw/misc/k230_rmu.c
create mode 100644 include/hw/misc/k230_rmu.h
create mode 100644 tests/qtest/k230-rmu-test.c
--
2.53.0
next reply other threads:[~2026-07-09 3:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-09 3:12 jack wang [this message]
2026-07-09 3:12 ` [RFC PATCH 1/2] hw/misc/k230_rmu: add Kendryte K230 Reset Management Unit model jack wang
2026-07-09 3:12 ` [RFC PATCH 2/2] hw/riscv/k230: wire up the RMU device jack wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260709031237.21284-1-163wangjack@gmail.com \
--to=163wangjack@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.