On 14/7/26 09:56, Subrahmanya Lingappa wrote:
Add helper routines for describing RPMI shared-memory mailbox transports
and service child nodes in the RISC-V virt device tree.

The helpers keep RPMI node construction in one place so the virt machine
can add service groups without open-coding compatible strings, channel
IDs, interrupts, and shared-memory references at each call site.

Signed-off-by: Subrahmanya Lingappa <[email protected]>
---
  hw/riscv/meson.build        |   1 +
  hw/riscv/rpmi-fdt.c         | 103 ++++++++++++++++++++++++++++++++++++
  include/hw/riscv/rpmi-fdt.h |  30 +++++++++++
  3 files changed, 134 insertions(+)
  create mode 100644 hw/riscv/rpmi-fdt.c
  create mode 100644 include/hw/riscv/rpmi-fdt.h

diff --git a/hw/riscv/meson.build b/hw/riscv/meson.build
index b70a054579..529ec273fd 100644
--- a/hw/riscv/meson.build
+++ b/hw/riscv/meson.build
@@ -3,6 +3,7 @@ riscv_ss.add(files('boot.c'))
  riscv_ss.add(files('fdt-common.c'))
  riscv_ss.add(when: 'CONFIG_RISCV_NUMA', if_true: files('numa.c'))
  riscv_ss.add(files('riscv_hart.c'))
+riscv_ss.add(files('rpmi-fdt.c'))

Doesn't this depend on CONFIG_RISCV_RPMI?

  riscv_ss.add(when: 'CONFIG_OPENTITAN', if_true: files('opentitan.c'))
  riscv_ss.add(when: 'CONFIG_RISCV_VIRT', if_true: files('virt.c'))
  riscv_ss.add(when: 'CONFIG_SHAKTI_C', if_true: files('shakti_c.c'))


Reply via email to