[U-Boot] [PATCH v2 1/4] dm: Add Hardware Spinlock class

Simon Glass sjg at chromium.org
Fri Nov 16 00:07:42 UTC 2018


On 14 November 2018 at 01:01, Benjamin Gaignard
<benjamin.gaignard at linaro.org> wrote:
> From: Benjamin Gaignard <benjamin.gaignard at linaro.org>
>
> This is uclass for Hardware Spinlocks.
> It implements two mandatory operations: lock and unlock
> and one optional relax operation.
>
> Signed-off-by: Benjamin Gaignard <benjamin.gaignard at linaro.org>
> ---
> version 2:
> - use -ETIMEDOUT and -ENOSYS for errors cases
> - do not test if ops is valid
>
>  arch/sandbox/dts/test.dts               |   4 +
>  arch/sandbox/include/asm/state.h        |   1 +
>  configs/sandbox_defconfig               |   2 +
>  drivers/Kconfig                         |   2 +
>  drivers/Makefile                        |   1 +
>  drivers/hwspinlock/Kconfig              |  16 ++++
>  drivers/hwspinlock/Makefile             |   6 ++
>  drivers/hwspinlock/hwspinlock-uclass.c  | 143 ++++++++++++++++++++++++++++++++
>  drivers/hwspinlock/sandbox_hwspinlock.c |  56 +++++++++++++
>  include/dm/uclass-id.h                  |   1 +
>  include/hwspinlock.h                    | 140 +++++++++++++++++++++++++++++++
>  test/dm/Makefile                        |   1 +
>  test/dm/hwspinlock.c                    |  40 +++++++++
>  13 files changed, 413 insertions(+)
>  create mode 100644 drivers/hwspinlock/Kconfig
>  create mode 100644 drivers/hwspinlock/Makefile
>  create mode 100644 drivers/hwspinlock/hwspinlock-uclass.c
>  create mode 100644 drivers/hwspinlock/sandbox_hwspinlock.c
>  create mode 100644 include/hwspinlock.h
>  create mode 100644 test/dm/hwspinlock.c

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


More information about the U-Boot mailing list