f66b73197d
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>
21 lines
449 B
Plaintext
21 lines
449 B
Plaintext
# Sequans HW spinlock configuration
|
|
|
|
# Copyright (c) 2023 Sequans Communications.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config SQN_HWSPINLOCK
|
|
bool "Sequans HW spinlock Driver"
|
|
default y
|
|
depends on DT_HAS_SQN_HWSPINLOCK_ENABLED
|
|
help
|
|
Enable HW spinlock for SQN
|
|
|
|
if SQN_HWSPINLOCK
|
|
config SQN_HWSPINLOCK_RELAX_TIME
|
|
int "Sequans HW spinlock relax time"
|
|
default 50
|
|
help
|
|
Default HW spinlock relax time in microseconds.
|
|
|
|
endif #SQN_HWSPINLOCK
|