zephyr/drivers/hwspinlock/Kconfig
Aziz Idomar f66b73197d drivers: hwspinlock: implement sqn hwspinlock driver
When we lock an hwspinlock, we must write the CPU identifier to
the hwspinlock register. If we want to unlock the locked hwspinlock,
we have to rewrite the same CPU identifier.

To define the CPU identifier, we use affinity 1 and affinity 2 fields
of the MPIDR register.

Signed-off-by: Aziz Idomar <aidomar@sequans.com>
2023-08-16 20:46:55 +02:00

22 lines
439 B
Plaintext

# HW spinlock configuration options
# Copyright (c) 2023 Sequans Communications.
# SPDX-License-Identifier: Apache-2.0
menuconfig HWSPINLOCK
bool "HW spinlock Support"
help
Include support for HW spinlock.
if HWSPINLOCK
config HWSPINLOCK_INIT_PRIORITY
int "HW spinlock init priority"
default KERNEL_INIT_PRIORITY_DEVICE
help
HW spinlock driver device initialization priority.
source "drivers/hwspinlock/Kconfig.sqn"
endif