lib: utils/mailbox: Add simple FDT based mailbox framework

Add a simple FDT based mailbox framework which is built on top of the generic
mailbox library. The phandle of FDT mailbox DT node is treated as the unique
mailbox controller ID which is required by the generic mailbox library. The
FDT based mailbox drivers will be probed on-demand from fdt_mailbox_request_chan()
called by the mailbox client drivers.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
This commit is contained in:
Anup Patel
2024-08-06 10:02:04 +05:30
committed by Anup Patel
parent ad846a7cb8
commit 2244a34f0d
5 changed files with 145 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
HEADER: sbi_utils/mailbox/fdt_mailbox.h
TYPE: const struct fdt_mailbox
NAME: fdt_mailbox_drivers
MEMBER-NAME: driver
MEMBER-TYPE: const struct fdt_driver