]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: Add Hardware Spinlock class
authorBenjamin Gaignard <benjamin.gaignard@linaro.org>
Tue, 27 Nov 2018 12:49:50 +0000 (13:49 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 7 Dec 2018 04:26:32 +0000 (23:26 -0500)
commit7f84fc670b17fca3d8d1b7c9472a19bb8085c890
tree5af913847507ee1d58408c5f053bcdb2731b0133
parent3b074fb22b8f09178200b969395fa9f3d97a67e6
dm: Add Hardware Spinlock class

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@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
13 files changed:
arch/sandbox/dts/test.dts
arch/sandbox/include/asm/state.h
configs/sandbox_defconfig
drivers/Kconfig
drivers/Makefile
drivers/hwspinlock/Kconfig [new file with mode: 0644]
drivers/hwspinlock/Makefile [new file with mode: 0644]
drivers/hwspinlock/hwspinlock-uclass.c [new file with mode: 0644]
drivers/hwspinlock/sandbox_hwspinlock.c [new file with mode: 0644]
include/dm/uclass-id.h
include/hwspinlock.h [new file with mode: 0644]
test/dm/Makefile
test/dm/hwspinlock.c [new file with mode: 0644]