lib/utils: Add RPMI messaging protocol and shared memory transport support

The RISC-V Platform Management Interface (RPMI) defines a messaging protocol
and shared memory based transport for bi-directional communication with an
on-chip or external microcontroller.

To support RPMI in OpenSBI, add:
1) The RPMI messaging protocol defines and helper macros
2) A FDT mailbox driver for the RPMI shared memory transport

Signed-off-by: Rahul Pathak <rpathak@ventanamicro.com>
Co-developed-by: Subrahmanya Lingappa <slingappa@ventanamicro.com>
Signed-off-by: Subrahmanya Lingappa <slingappa@ventanamicro.com>
Co-developed-by: Anup Patel <apatel@ventanamicro.com>
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
This commit is contained in:
Rahul Pathak
2024-08-06 10:07:33 +05:30
committed by Anup Patel
parent 2244a34f0d
commit 91f46fb47e
7 changed files with 1173 additions and 0 deletions

View File

@@ -8,8 +8,22 @@ config FDT_MAILBOX
select MAILBOX
default n
config RPMI_MAILBOX
bool "RPMI based mailbox drivers"
select MAILBOX
default n
config MAILBOX
bool "Mailbox support"
default n
if FDT_MAILBOX
config FDT_MAILBOX_RPMI_SHMEM
bool "RPMI Shared Memory Mailbox Controller"
depends on RPMI_MAILBOX
default n
endif
endmenu