driver: add stubs for hardware spinlocks
Some STM32MP Linux drivers, which could be ported to barebox as part of
improved second stage barebox support, are using hardware spinlocks to
coordinate access between the three processors. While barebox only
uses one of the two Cortex-A cores, spin locks may still be necessary
because of firmware loaded unto the Cortex-M.

To ease porting these drivers, without having to import the hw spinlock
driver now, add stubs for the functions.

The stubs will we be reused when CONFIG_HWSPINLOCK is introduced,
but is disabled in config. The API is oriented after the implementation
in U-Boot.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 0bf713e commit 1b90b3ff9233556c4082837c58462a919b14e008
@Ahmad Fatoum Ahmad Fatoum authored on 17 Jun 2019
Sascha Hauer committed on 20 Jun 2019
Showing 1 changed file
View
include/hwspinlock.h 0 → 100644