Home
last modified time | relevance | path

Searched +full:hwspinlock +full:- +full:r3p0 (Results 1 – 4 of 4) sorted by relevance

/linux/Documentation/devicetree/bindings/hwlock/
H A Dsprd,hwspinlock-r3p0.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/hwlock/sprd,hwspinlock-r3p0.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Orson Zhai <orsonzhai@gmail.com>
11 - Baolin Wang <baolin.wang7@gmail.com>
12 - Chunyan Zhang <zhang.lyra@gmail.com>
16 const: sprd,hwspinlock-r3p0
24 clock-names:
27 '#hwlock-cells':
[all …]
/linux/drivers/hwspinlock/
H A Dsprd_hwspinlock.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (C) 2017 Spreadtrum - http://www.spreadtrum.com
10 #include <linux/hwspinlock.h>
20 /* hwspinlock registers definition */
30 /* hwspinlock number */
40 static int sprd_hwspinlock_trylock(struct hwspinlock *lock) in sprd_hwspinlock_trylock()
43 dev_get_drvdata(lock->bank->dev); in sprd_hwspinlock_trylock()
44 void __iomem *addr = lock->priv; in sprd_hwspinlock_trylock()
52 user_id = readl(sprd_hwlock->base + HWSPINLOCK_MASTERID(lock_id)); in sprd_hwspinlock_trylock()
53 dev_warn(sprd_hwlock->bank.dev, in sprd_hwspinlock_trylock()
[all …]
/linux/arch/arm64/boot/dts/sprd/
H A Dwhale2.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 #include <dt-bindings/clock/sprd,sc9860-clk.h>
11 interrupt-parent = <&gic>;
12 #address-cells = <2>;
13 #size-cells = <2>;
16 compatible = "simple-bus";
17 #address-cells = <2>;
18 #size-cells = <2>;
66 ap-apb@70000000 {
67 compatible = "simple-bus";
[all …]
/linux/drivers/spi/
H A Dspi-sprd-adi.c4 * SPDX-License-Identifier: GPL-2.0
8 #include <linux/hwspinlock.h>
36 #define REG_ADI_CHN_ADDR(id) (0x44 + (id - 2) * 4)
54 * ADI supports 12/14bit address for r2p0, and additional 17bit for r3p0 or
83 * REG_ADI_RD_CMD bit[16:2] for r3p0
149 struct hwspinlock *hwlock;
157 if (reg >= sadi->data->slave_addr_size) { in sprd_adi_check_addr()
158 dev_err(sadi->dev, in sprd_adi_check_addr()
161 return -EINVAL; in sprd_adi_check_addr()
173 sts = readl_relaxed(sadi->base + REG_ADI_ARM_FIFO_STS); in sprd_adi_drain_fifo()
[all …]