summaryrefslogtreecommitdiff
path: root/drivers/hwspinlock
Commit message (Collapse)AuthorAgeFilesLines
* dm: core: Create a new header file for 'compat' featuresSimon Glass2020-02-052-0/+3
| | | | | | | | | | | | At present dm/device.h includes the linux-compatible features. This requires including linux/compat.h which in turn includes a lot of headers. One of these is malloc.h which we thus end up including in every file in U-Boot. Apart from the inefficiency of this, it is problematic for sandbox which needs to use the system malloc() in some files. Move the compatibility features into a separate header file. Signed-off-by: Simon Glass <sjg@chromium.org>
* hwspinlock: add stm32 hardware spinlock supportBenjamin Gaignard2018-12-063-0/+101
| | | | | | | | Implement hardware spinlock support for STM32MP1. Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
* dm: Add Hardware Spinlock classBenjamin Gaignard2018-12-064-0/+222
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>