Commit Graph
15 Commits
Author SHA1 Message Date
Suman Anna 6fa154e282 hwspinlock/omap: Add support for TI K3 SoCs
A HwSpinlock IP is also present on the newer TI K3 AM65x and J721E
family of SoCs within the Main NavSS sub-module. Reuse the existing
OMAP Hwspinlock driver to extend the support for this IP on K3 AM65x
SoCs as well. The IP has slightly different bit-fields in the
SYSCONFIG and SYSSTATUS registers.

Signed-off-by: Suman Anna <[email protected]>
Signed-off-by: Bjorn Andersson <[email protected]>
2019-06-29 11:40:04 -07:00
Benjamin Gaignard f24fcff1d2 hwspinlock: add STM32 hwspinlock device
This patch adds support of hardware semaphores for stm32mp1 SoC.
The hardware block provides 32 semaphores.

Signed-off-by: Benjamin Gaignard <[email protected]>
Signed-off-by: Benjamin Gaignard <[email protected]>
Signed-off-by: Bjorn Andersson <[email protected]>
2018-12-05 12:45:21 -08:00
Suman Anna eebba71e1c hwspinlock/core: Switch to SPDX license identifier
Use the appropriate SPDX license identifier in the Hwspinlock core
driver source files and drop the previous boilerplate license text.

Signed-off-by: Suman Anna <[email protected]>
Signed-off-by: Bjorn Andersson <[email protected]>
2018-05-24 12:04:32 -07:00
Baolin Wang d048236dfd hwspinlock: Change hwspinlock to a bool
Change hwspinlock to a bool in case some drivers will meet dependency
issue when hwspinlock is built as a module.

Signed-off-by: Baolin Wang <[email protected]>
Signed-off-by: Bjorn Andersson <[email protected]>
2017-11-06 21:59:34 -08:00
Baolin Wang d8c8bbbb1a hwspinlock: sprd: Add hardware spinlock driver
The Spreadtrum hardware spinlock device can provide hardware assistance
for synchronization between the multiple subsystems.

Signed-off-by: Baolin Wang <[email protected]>
Signed-off-by: Bjorn Andersson <[email protected]>
2017-05-17 10:52:52 -07:00
Vincent Legoll 35fc8a07d7 Make HWSPINLOCK a menuconfig to ease disabling
So that there's no need to get into the submenu to disable all related config
entries.

Signed-off-by: Vincent Legoll <[email protected]>
Signed-off-by: Bjorn Andersson <[email protected]>
2017-05-17 10:32:14 -07:00
Wei Chen cc16d664e2 hwspinlock: add a CSR atlas7 driver
Add hwspinlock support for the CSR atlas7 SoC.

The Hardware Spinlock device on atlas7 provides hardware assistance
for synchronization between the multiple processors in the system
(dual Cortex-A7, CAN bus Cortex-M3 and audio DSP).

Reviewed-by: Suman Anna <[email protected]>
Reviewed-by: Bjorn Andersson <[email protected]>
Signed-off-by: Wei Chen <[email protected]>
Signed-off-by: Barry Song <[email protected]>
Signed-off-by: Ohad Ben-Cohen <[email protected]>
2015-06-12 10:44:06 +03:00
Bjorn Andersson 19a0f61224 hwspinlock: qcom: Add support for Qualcomm HW Mutex block
Add driver for Qualcomm Hardware Mutex block found in many Qualcomm
SoCs.

Based on initial effort by Kumar Gala <[email protected]>

Signed-off-by: Bjorn Andersson <[email protected]>
Reviewed-by: Andy Gross <[email protected]>
Reviewed-by: Jeffrey Hugo <[email protected]>
Signed-off-by: Ohad Ben-Cohen <[email protected]>
2015-05-02 10:19:17 +03:00
Suman Anna ceca89e89e hwspinlock: enable OMAP build for AM33xx, AM43xx & DRA7xx
HwSpinlocks are supported on TI's AM33xx, AM43xx and DRA7xx SoC
device families as well. The IPs are identical to that of
OMAP4/OMAP5, except for the number of locks.

Add a depends on to the above family of SoCs to enable the
build support for OMAP hwspinlock driver for any of the above
SoC configs.

Signed-off-by: Suman Anna <[email protected]>
[small commit log changes]
Signed-off-by: Ohad Ben-Cohen <[email protected]>
2014-07-29 11:46:28 +03:00
Vincent Stehlé 8ae053d62e hwspinlock/omap: support OMAP5 as well
OMAP5 has spinlocks, too.

Signed-off-by: Vincent Stehlé <[email protected]>
Cc: Tony Lindgren <[email protected]>
Signed-off-by: Ohad Ben-Cohen <[email protected]>
2013-04-05 09:11:17 +03:00
Mathieu J. Poirier f84a8ecfca hwspinlock/u8500: add hwspinlock driver
Add hwspinlock driver for U8500's Hsem hardware.

At this point only HSem's protocol 1 is used (i.e. no interrupts).

Signed-off-by: Mathieu Poirier <[email protected]>
Acked-by: Linus Walleij <[email protected]>
[[email protected]: adopt recent hwspin_lock_{un}register API changes]
[[email protected]: set the owner member of the driver]
[[email protected]: mark ->remove() function as __devexit]
[[email protected]: write commit log]
[[email protected]: small cleanups]
Signed-off-by: Ohad Ben-Cohen <[email protected]>
2011-09-21 19:57:45 +03:00
Ohad Ben-Cohen 315d8f5ccd hwspinlock/core: simplify Kconfig
Simplify hwspinlock's Kconfig by making the global CONFIG_HWSPINLOCK
entry invisible; users will just select it when needed.

This also prepares the ground for adding hwspinlock support for other
platforms (the 'depends on ARCH_OMAP4' was rather hideous, and while
we're at it, a dedicated menu is added).

Signed-off-by: Ohad Ben-Cohen <[email protected]>
2011-09-21 19:45:32 +03:00
Ohad Ben-Cohen 4fa8eebb04 hwspinlock: depend on OMAP4
Currently only OMAP4 supports hwspinlocks, so don't bother asking
anyone else.

Signed-off-by: Ohad Ben-Cohen <[email protected]>
Signed-off-by: Tony Lindgren <[email protected]>
2011-03-18 17:15:11 -07:00
Simon Que 70ba4cc26b drivers: hwspinlock: add OMAP implementation
Add hwspinlock support for the OMAP4 Hardware Spinlock device.

The Hardware Spinlock device on OMAP4 provides hardware assistance
for synchronization between the multiple processors in the system
(dual Cortex-A9, dual Cortex-M3 and a C64x+ DSP).

[[email protected]: adapt to hwspinlock framework, tidy up]
Signed-off-by: Simon Que <[email protected]>
Signed-off-by: Hari Kanigeri <[email protected]>
Signed-off-by: Krishnamoorthy, Balaji T <[email protected]>
Signed-off-by: Ohad Ben-Cohen <[email protected]>
Cc: Benoit Cousson <[email protected]>
Cc: Kevin Hilman <[email protected]>
Cc: Grant Likely <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Paul Walmsley <[email protected]>
Cc: Russell King <[email protected]>
Signed-off-by: Tony Lindgren <[email protected]>
2011-02-17 09:52:03 -08:00
Ohad Ben-Cohen bd9a4c7df2 drivers: hwspinlock: add framework
Add a platform-independent hwspinlock framework.

Hardware spinlock devices are needed, e.g., in order to access data
that is shared between remote processors, that otherwise have no
alternative mechanism to accomplish synchronization and mutual exclusion
operations.

Signed-off-by: Ohad Ben-Cohen <[email protected]>
Cc: Hari Kanigeri <[email protected]>
Cc: Benoit Cousson <[email protected]>
Cc: Kevin Hilman <[email protected]>
Cc: Grant Likely <[email protected]>
Cc: Paul Walmsley <[email protected]>
Cc: Russell King <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
Signed-off-by: Tony Lindgren <[email protected]>
2011-02-17 09:52:03 -08:00