On 14 November 2018 at 01:01, Benjamin Gaignard <benjamin.gaign...@linaro.org> wrote: > From: Benjamin Gaignard <benjamin.gaign...@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.gaign...@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 <s...@chromium.org> _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot