[U-Boot] [PATCH] mailbox: implement a sandbox test

Simon Glass sjg at chromium.org
Sat May 14 21:42:25 CEST 2016


Hi Stephen,

On 13 May 2016 at 16:59, Stephen Warren <swarren at wwwdotorg.org> wrote:
> From: Stephen Warren <swarren at nvidia.com>
>
> This adds a sandbox mailbox implementation (provider), a test client
> device, instantiates them both from Sandbox's DT, and adds a DM test
> that excercises everything.
>
> Signed-off-by: Stephen Warren <swarren at nvidia.com>
> ---
> This depends on "Add a mailbox driver framework/uclass".
>
>  arch/sandbox/dts/test.dts           |  11 ++++
>  arch/sandbox/include/asm/mbox.h     |  14 +++++
>  configs/sandbox_defconfig           |   2 +
>  drivers/mailbox/Kconfig             |   7 +++
>  drivers/mailbox/Makefile            |   2 +
>  drivers/mailbox/sandbox-mbox-test.c |  54 +++++++++++++++++++
>  drivers/mailbox/sandbox-mbox.c      | 103 ++++++++++++++++++++++++++++++++++++
>  test/dm/Makefile                    |   1 +
>  test/dm/mailbox.c                   |  31 +++++++++++
>  9 files changed, 225 insertions(+)
>  create mode 100644 arch/sandbox/include/asm/mbox.h
>  create mode 100644 drivers/mailbox/sandbox-mbox-test.c
>  create mode 100644 drivers/mailbox/sandbox-mbox.c
>  create mode 100644 test/dm/mailbox.c

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

My only suggestion is to use a shared constant for 0x12345678 in the
mbox.h header file.

- Simon


More information about the U-Boot mailing list