drivers: introduce hardware spinlock framework

The intention of hardware spinlock is to allow two processors,
that have no alternative mechanism for accomplish synchronization
and mutual exclusion operations, to share resources (such as
memory and/or any other element).

Here, we add the hwspinlock framework, that makes possible to use
those hwspinlock devices and stay platform-independent. Each
platform wishing to support hardware spinlock must describe a
driver using this framework.

Signed-off-by: Aziz Idomar <aidomar@sequans.com>
This commit is contained in:
Aziz Idomar 2023-06-27 08:51:04 +02:00 committed by Carles Cufí
commit c3ac598c7f
6 changed files with 225 additions and 0 deletions

View file

@ -82,5 +82,6 @@ source "drivers/watchdog/Kconfig"
source "drivers/wifi/Kconfig"
source "drivers/xen/Kconfig"
source "drivers/sip_svc/Kconfig"
source "drivers/hwspinlock/Kconfig"
endmenu