[U-Boot] [PATCH V2] Add a mailbox driver framework/uclass

Simon Glass sjg at chromium.org
Sat May 14 21:33:59 CEST 2016


On 13 May 2016 at 15:50, Stephen Warren <swarren at wwwdotorg.org> wrote:
> From: Stephen Warren <swarren at nvidia.com>
>
> A mailbox is a hardware mechanism for transferring small message and/or
> notifications between the CPU on which U-Boot runs and some other device
> such as an auxilliary CPU running firmware or a hardware module.
>
> This patch defines a standard API that connects mailbox clients to mailbox
> providers (drivers). Initially, DT is the only supported method for
> connecting the two.
>
> The DT binding specification (mailbox.txt) was taken from Linux kernel
> v4.5's Documentation/devicetree/bindings/mailbox/mailbox.txt.
>
> Signed-off-by: Stephen Warren <swarren at nvidia.com>
> ---
> v2:
> * Use timer_get_us() rather than get_ticks() and conversion code.
> * Explicitly mention that mailbox messages are fixed size.
> * Spell out IPC.
> * Fix typos.
>
> I'll send a sandbox test for this as a separate patch.
>
>  doc/device-tree-bindings/mailbox/mailbox.txt |  32 ++++++
>  drivers/Kconfig                              |   2 +
>  drivers/Makefile                             |   1 +
>  drivers/mailbox/Kconfig                      |  13 +++
>  drivers/mailbox/Makefile                     |   5 +
>  drivers/mailbox/mailbox-uclass.c             | 145 ++++++++++++++++++++++++++
>  include/dm/uclass-id.h                       |   1 +
>  include/mailbox_client.h                     | 149 +++++++++++++++++++++++++++
>  include/mailbox_uclass.h                     |  83 +++++++++++++++
>  9 files changed, 431 insertions(+)
>  create mode 100644 doc/device-tree-bindings/mailbox/mailbox.txt
>  create mode 100644 drivers/mailbox/Kconfig
>  create mode 100644 drivers/mailbox/Makefile
>  create mode 100644 drivers/mailbox/mailbox-uclass.c
>  create mode 100644 include/mailbox_client.h
>  create mode 100644 include/mailbox_uclass.h

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


More information about the U-Boot mailing list