Re: [PATCH 01/11] hw/ssi: Add K230 DesignWare SSI register model

Bin Meng <[email protected]> Mon, 27 Jul 2026 12:45:12 +0800
Newsgroups org.nongnu.qemu-riscv,org.nongnu.qemu-devel
Message-ID <CAEUhbmUEF7fLEP9+HbE6mKE5OKsVm0rds+1S==BtRLArLZMbxA@mail.gmail.com>
Hi Kangjie,

On Sun, Jul 26, 2026 at 8:30=E2=80=AFPM Kangjie Huang <flamboyant.h.01@gmai=
l.com> wrote:
>
> Add a SysBus model for the K230 DesignWare SSI controllers.
>
> Implement the register layout, reset values, writable masks, FIFO state,
> chip-select GPIOs, and the MMIO regions needed by the K230 machine,
> based on the K230 Technical Reference Manual. The controller is not
> instantiated by this patch.

Please split the model into 2 models:

- One generic model for Synopsys DesignWare SSI controller
- One K230 specific wrapper model on top of the Synopsys DesignWare
SSI controller [optional, if the generic model is enough to make the
k230 software happy]

This way we can reuse the Synopsys DesignWare SSI controller model by
other machines in the future.

>
> Signed-off-by: Kangjie Huang <[email protected]>
> ---
>  hw/ssi/Kconfig               |   4 +
>  hw/ssi/k230_dw_ssi.c         | 795 +++++++++++++++++++++++++++++++++++
>  hw/ssi/meson.build           |   1 +
>  include/hw/ssi/k230_dw_ssi.h |  50 +++
>  4 files changed, 850 insertions(+)
>  create mode 100644 hw/ssi/k230_dw_ssi.c
>  create mode 100644 include/hw/ssi/k230_dw_ssi.h
>

Regards,
Bin