[PATCH v4 2/8] firmware: scmi: mailbox/smt agent device

Simon Glass sjg at chromium.org
Thu Sep 10 15:38:25 CEST 2020


On Wed, 9 Sep 2020 at 10:44, Etienne Carriere
<etienne.carriere at linaro.org> wrote:
>
> This change implements a mailbox transport using SMT format for SCMI
> exchanges. This implementation follows the Linux kernel and
> SCP-firmware [1] as references implementation for SCMI message
> processing using SMT format for communication channel meta-data.
>
> Use of mailboxes in SCMI FDT bindings are defined in the Linux kernel
> DT bindings since v4.17.
>
> Links: [1] https://github.com/ARM-software/SCP-firmware
> Signed-off-by: Etienne Carriere <etienne.carriere at linaro.org>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Peng Fan <peng.fan at nxp.com>
> Cc: Sudeep Holla <sudeep.holla at arm.com>
> ---
>
> Changes in v4:
> - Replace __arm__ with CONFIG_ARM.
> - Remove cast for priv reference hence remove helper scmi_mbox_get_priv().
>
> Changes in v3:
> - This is a followup of the SCMI agent patches posted in
>   https://patchwork.ozlabs.org/project/uboot/list/?series=196253
>   The v3 splits commits and introduces a new uclass as requested.
> - This patch implements the same mailbox SCMI agent proposed in v2
>   but split over few source files.
> ---
>  drivers/firmware/scmi/Kconfig         |   6 +-
>  drivers/firmware/scmi/Makefile        |   2 +
>  drivers/firmware/scmi/mailbox_agent.c | 102 +++++++++++++++++++
>  drivers/firmware/scmi/smt.c           | 139 ++++++++++++++++++++++++++
>  drivers/firmware/scmi/smt.h           |  86 ++++++++++++++++
>  5 files changed, 333 insertions(+), 2 deletions(-)
>  create mode 100644 drivers/firmware/scmi/mailbox_agent.c
>  create mode 100644 drivers/firmware/scmi/smt.c
>  create mode 100644 drivers/firmware/scmi/smt.h

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list