Home
last modified time | relevance | path

Searched full:rstc (Results 1 – 25 of 117) sorted by relevance

12345

/OK3568_Linux_fs/kernel/drivers/reset/
H A Dcore.c57 * @rstc: array of reset controls
62 struct reset_control *rstc[]; member
194 rstc_to_array(struct reset_control *rstc) { in rstc_to_array() argument
195 return container_of(rstc, struct reset_control_array, base); in rstc_to_array()
203 ret = reset_control_reset(resets->rstc[i]); in reset_control_array_reset()
216 ret = reset_control_assert(resets->rstc[i]); in reset_control_array_assert()
225 reset_control_deassert(resets->rstc[i]); in reset_control_array_assert()
234 ret = reset_control_deassert(resets->rstc[i]); in reset_control_array_deassert()
243 reset_control_assert(resets->rstc[i]); in reset_control_array_deassert()
253 err = reset_control_acquire(resets->rstc[i]); in reset_control_array_acquire()
[all …]
H A Dreset-meson-audio-arb.c15 struct reset_controller_dev rstc; member
64 container_of(rcdev, struct meson_audio_arb_data, rstc); in meson_audio_arb_update()
85 container_of(rcdev, struct meson_audio_arb_data, rstc); in meson_audio_arb_status()
167 arb->rstc.nr_resets = data->reset_num; in meson_audio_arb_probe()
168 arb->rstc.ops = &meson_audio_arb_rstc_ops; in meson_audio_arb_probe()
169 arb->rstc.of_node = dev->of_node; in meson_audio_arb_probe()
170 arb->rstc.owner = THIS_MODULE; in meson_audio_arb_probe()
185 ret = devm_reset_controller_register(dev, &arb->rstc); in meson_audio_arb_probe()
/OK3568_Linux_fs/kernel/drivers/clk/hisilicon/
H A Dreset.c46 struct hisi_reset_controller *rstc = to_hisi_reset_controller(rcdev); in hisi_reset_assert() local
54 spin_lock_irqsave(&rstc->lock, flags); in hisi_reset_assert()
56 reg = readl(rstc->membase + offset); in hisi_reset_assert()
57 writel(reg | BIT(bit), rstc->membase + offset); in hisi_reset_assert()
59 spin_unlock_irqrestore(&rstc->lock, flags); in hisi_reset_assert()
67 struct hisi_reset_controller *rstc = to_hisi_reset_controller(rcdev); in hisi_reset_deassert() local
75 spin_lock_irqsave(&rstc->lock, flags); in hisi_reset_deassert()
77 reg = readl(rstc->membase + offset); in hisi_reset_deassert()
78 writel(reg & ~BIT(bit), rstc->membase + offset); in hisi_reset_deassert()
80 spin_unlock_irqrestore(&rstc->lock, flags); in hisi_reset_deassert()
[all …]
H A Dclk-hi3519.c31 struct hisi_reset_controller *rstc; member
151 crg->rstc = hisi_reset_init(pdev); in hi3519_clk_probe()
152 if (!crg->rstc) in hi3519_clk_probe()
157 hisi_reset_exit(crg->rstc); in hi3519_clk_probe()
169 hisi_reset_exit(crg->rstc); in hi3519_clk_remove()
/OK3568_Linux_fs/kernel/drivers/reset/tegra/
H A Dreset-bpmp.c11 static struct tegra_bpmp *to_tegra_bpmp(struct reset_controller_dev *rstc) in to_tegra_bpmp() argument
13 return container_of(rstc, struct tegra_bpmp, rstc); in to_tegra_bpmp()
16 static int tegra_bpmp_reset_common(struct reset_controller_dev *rstc, in tegra_bpmp_reset_common() argument
20 struct tegra_bpmp *bpmp = to_tegra_bpmp(rstc); in tegra_bpmp_reset_common()
43 static int tegra_bpmp_reset_module(struct reset_controller_dev *rstc, in tegra_bpmp_reset_module() argument
46 return tegra_bpmp_reset_common(rstc, CMD_RESET_MODULE, id); in tegra_bpmp_reset_module()
49 static int tegra_bpmp_reset_assert(struct reset_controller_dev *rstc, in tegra_bpmp_reset_assert() argument
52 return tegra_bpmp_reset_common(rstc, CMD_RESET_ASSERT, id); in tegra_bpmp_reset_assert()
55 static int tegra_bpmp_reset_deassert(struct reset_controller_dev *rstc, in tegra_bpmp_reset_deassert() argument
58 return tegra_bpmp_reset_common(rstc, CMD_RESET_DEASSERT, id); in tegra_bpmp_reset_deassert()
[all …]
/OK3568_Linux_fs/kernel/drivers/clk/meson/
H A Dmeson-aoclk.c25 struct meson_aoclk_reset_controller *rstc = in meson_aoclk_do_reset() local
28 return regmap_write(rstc->regmap, rstc->data->reset_reg, in meson_aoclk_do_reset()
29 BIT(rstc->data->reset[id])); in meson_aoclk_do_reset()
38 struct meson_aoclk_reset_controller *rstc; in meson_aoclkc_probe() local
49 rstc = devm_kzalloc(dev, sizeof(*rstc), GFP_KERNEL); in meson_aoclkc_probe()
50 if (!rstc) in meson_aoclkc_probe()
62 rstc->data = data; in meson_aoclkc_probe()
63 rstc->regmap = regmap; in meson_aoclkc_probe()
64 rstc->reset.ops = &meson_aoclk_reset_ops; in meson_aoclkc_probe()
65 rstc->reset.nr_resets = data->num_reset; in meson_aoclkc_probe()
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/reset/
H A Dsirf,rstc.txt8 - compatible: Should be "sirf,prima2-rstc" or "sirf,marco-rstc"
15 rstc: reset-controller@88010000 {
16 compatible = "sirf,prima2-rstc";
24 The reset controller(rstc) manages various reset sources. This module provides
26 reset line on the rstc in their resets property, containing a phandle to the
27 rstc device node and a RESET_INDEX specifying which module to reset, as described
41 resets = <&rstc 6>;
/OK3568_Linux_fs/kernel/drivers/mmc/host/
H A Dsdhci-st.c21 struct reset_control *rstc; member
352 struct reset_control *rstc; in sdhci_st_probe() local
365 rstc = devm_reset_control_get_exclusive(&pdev->dev, NULL); in sdhci_st_probe()
366 if (IS_ERR(rstc)) in sdhci_st_probe()
367 rstc = NULL; in sdhci_st_probe()
369 reset_control_deassert(rstc); in sdhci_st_probe()
380 pdata->rstc = rstc; in sdhci_st_probe()
435 if (rstc) in sdhci_st_probe()
436 reset_control_assert(rstc); in sdhci_st_probe()
446 struct reset_control *rstc = pdata->rstc; in sdhci_st_remove() local
[all …]
/OK3568_Linux_fs/u-boot/arch/arm/mach-bcm283x/
H A Dreset.c38 uint32_t rstc, timeout; in reset_cpu() local
46 rstc = readl(&wdog_regs->rstc); in reset_cpu()
47 rstc &= ~BCM2835_WDOG_RSTC_WRCFG_MASK; in reset_cpu()
48 rstc |= BCM2835_WDOG_RSTC_WRCFG_FULL_RESET; in reset_cpu()
51 writel(BCM2835_WDOG_PASSWORD | rstc, &wdog_regs->rstc); in reset_cpu()
/OK3568_Linux_fs/kernel/arch/arm/mach-meson/
H A Dplatsmp.c158 struct reset_control *rstc; in meson8_smp_boot_secondary() local
161 rstc = meson_smp_get_core_reset(cpu); in meson8_smp_boot_secondary()
162 if (IS_ERR(rstc)) { in meson8_smp_boot_secondary()
164 return PTR_ERR(rstc); in meson8_smp_boot_secondary()
170 ret = reset_control_assert(rstc); in meson8_smp_boot_secondary()
195 ret = reset_control_deassert(rstc); in meson8_smp_boot_secondary()
206 reset_control_put(rstc); in meson8_smp_boot_secondary()
214 struct reset_control *rstc; in meson8b_smp_boot_secondary() local
218 rstc = meson_smp_get_core_reset(cpu); in meson8b_smp_boot_secondary()
219 if (IS_ERR(rstc)) { in meson8b_smp_boot_secondary()
[all …]
/OK3568_Linux_fs/u-boot/arch/arm/mach-at91/
H A Dphy.c26 at91_rstc_t *rstc = (at91_rstc_t *)ATMEL_BASE_RSTC; in at91_phy_reset() local
28 erstl = readl(&rstc->mr) & AT91_RSTC_MR_ERSTL_MASK; in at91_phy_reset()
37 AT91_RSTC_MR_URSTEN, &rstc->mr); in at91_phy_reset()
39 writel(AT91_RSTC_KEY | AT91_RSTC_CR_EXTRST, &rstc->cr); in at91_phy_reset()
42 while (!(readl(&rstc->sr) & AT91_RSTC_SR_NRSTL)) { in at91_phy_reset()
55 writel(AT91_RSTC_KEY | erstl | AT91_RSTC_MR_URSTEN, &rstc->mr); in at91_phy_reset()
/OK3568_Linux_fs/kernel/drivers/soc/amlogic/
H A Dmeson-gx-pwrc-vpu.c37 struct reset_control *rstc; member
174 ret = reset_control_assert(pd->rstc); in meson_gx_pwrc_vpu_power_on()
181 ret = reset_control_deassert(pd->rstc); in meson_gx_pwrc_vpu_power_on()
228 ret = reset_control_assert(pd->rstc); in meson_g12a_pwrc_vpu_power_on()
235 ret = reset_control_deassert(pd->rstc); in meson_g12a_pwrc_vpu_power_on()
276 struct reset_control *rstc; in meson_gx_pwrc_vpu_probe() local
307 rstc = devm_reset_control_array_get(&pdev->dev, false, false); in meson_gx_pwrc_vpu_probe()
308 if (IS_ERR(rstc)) { in meson_gx_pwrc_vpu_probe()
309 if (PTR_ERR(rstc) != -EPROBE_DEFER) in meson_gx_pwrc_vpu_probe()
311 return PTR_ERR(rstc); in meson_gx_pwrc_vpu_probe()
[all …]
/OK3568_Linux_fs/kernel/include/linux/
H A Dreset.h15 int reset_control_reset(struct reset_control *rstc);
16 int reset_control_assert(struct reset_control *rstc);
17 int reset_control_deassert(struct reset_control *rstc);
18 int reset_control_status(struct reset_control *rstc);
19 int reset_control_acquire(struct reset_control *rstc);
20 void reset_control_release(struct reset_control *rstc);
28 void reset_control_put(struct reset_control *rstc);
44 static inline int reset_control_reset(struct reset_control *rstc) in reset_control_reset() argument
49 static inline int reset_control_assert(struct reset_control *rstc) in reset_control_assert() argument
54 static inline int reset_control_deassert(struct reset_control *rstc) in reset_control_deassert() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/pwm/
H A Dpwm-hibvt.c39 struct reset_control *rstc; member
225 pwm_chip->rstc = devm_reset_control_get_exclusive(&pdev->dev, NULL); in hibvt_pwm_probe()
226 if (IS_ERR(pwm_chip->rstc)) { in hibvt_pwm_probe()
228 return PTR_ERR(pwm_chip->rstc); in hibvt_pwm_probe()
231 reset_control_assert(pwm_chip->rstc); in hibvt_pwm_probe()
233 reset_control_deassert(pwm_chip->rstc); in hibvt_pwm_probe()
257 reset_control_assert(pwm_chip->rstc); in hibvt_pwm_remove()
259 reset_control_deassert(pwm_chip->rstc); in hibvt_pwm_remove()
/OK3568_Linux_fs/kernel/drivers/pinctrl/sunxi/
H A Dpinctrl-sun8i-a23-r.c101 struct reset_control *rstc; in sun8i_a23_r_pinctrl_probe() local
104 rstc = devm_reset_control_get_exclusive(&pdev->dev, NULL); in sun8i_a23_r_pinctrl_probe()
105 if (IS_ERR(rstc)) { in sun8i_a23_r_pinctrl_probe()
106 ret = PTR_ERR(rstc); in sun8i_a23_r_pinctrl_probe()
113 ret = reset_control_deassert(rstc); in sun8i_a23_r_pinctrl_probe()
121 reset_control_assert(rstc); in sun8i_a23_r_pinctrl_probe()
H A Dpinctrl-sun6i-a31-r.c114 struct reset_control *rstc; in sun6i_a31_r_pinctrl_probe() local
117 rstc = devm_reset_control_get_exclusive(&pdev->dev, NULL); in sun6i_a31_r_pinctrl_probe()
118 if (IS_ERR(rstc)) { in sun6i_a31_r_pinctrl_probe()
120 return PTR_ERR(rstc); in sun6i_a31_r_pinctrl_probe()
123 ret = reset_control_deassert(rstc); in sun6i_a31_r_pinctrl_probe()
131 reset_control_assert(rstc); in sun6i_a31_r_pinctrl_probe()
/OK3568_Linux_fs/kernel/drivers/watchdog/
H A Dzx2967_wdt.c200 struct reset_control *rstc; in zx2967_wdt_probe() local
238 rstc = devm_reset_control_get_exclusive(dev, NULL); in zx2967_wdt_probe()
239 if (IS_ERR(rstc)) { in zx2967_wdt_probe()
240 dev_err(dev, "failed to get rstc"); in zx2967_wdt_probe()
241 return PTR_ERR(rstc); in zx2967_wdt_probe()
244 reset_control_assert(rstc); in zx2967_wdt_probe()
245 reset_control_deassert(rstc); in zx2967_wdt_probe()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/rockchip/rk628/
H A Drk628_rgb.c44 struct reset_control *rstc; member
113 reset_control_assert(rgb->rstc); in rk628_bt1120_rx_enable()
115 reset_control_deassert(rgb->rstc); in rk628_bt1120_rx_enable()
224 if (rgb->rstc) in rk628_rgb_bridge_disable()
225 reset_control_assert(rgb->rstc); in rk628_rgb_bridge_disable()
332 rgb->rstc = of_reset_control_get(dev->of_node, NULL); in rk628_rgb_probe()
333 if (IS_ERR(rgb->rstc)) { in rk628_rgb_probe()
334 ret = PTR_ERR(rgb->rstc); in rk628_rgb_probe()
/OK3568_Linux_fs/kernel/drivers/power/reset/
H A Dat91-reset.c158 .compatible = "atmel,at91sam9260-rstc",
163 .compatible = "atmel,at91sam9g45-rstc",
168 .compatible = "atmel,sama5d3-rstc",
173 .compatible = "atmel,samx7-rstc",
177 .compatible = "microchip,sam9x60-rstc",
201 if (!of_device_is_compatible(pdev->dev.of_node, "atmel,sama5d3-rstc")) { in at91_reset_probe()
232 if (of_device_is_compatible(pdev->dev.of_node, "microchip,sam9x60-rstc")) { in at91_reset_probe()
/OK3568_Linux_fs/kernel/arch/arm/mach-rockchip/
H A Dplatsmp.c67 struct reset_control *rstc = rockchip_get_core_reset(pd); in pmu_set_power_domain() local
70 if (IS_ERR(rstc) && read_cpuid_part() != ARM_CPU_PART_CORTEX_A9) { in pmu_set_power_domain()
73 return PTR_ERR(rstc); in pmu_set_power_domain()
81 if (!IS_ERR(rstc) && !on) in pmu_set_power_domain()
82 reset_control_assert(rstc); in pmu_set_power_domain()
103 if (!IS_ERR(rstc)) { in pmu_set_power_domain()
105 reset_control_deassert(rstc); in pmu_set_power_domain()
106 reset_control_put(rstc); in pmu_set_power_domain()
/OK3568_Linux_fs/kernel/drivers/clocksource/
H A Ddw_apb_timer_of.c22 struct reset_control *rstc; in timer_get_base_and_rate() local
33 rstc = of_reset_control_get(np, NULL); in timer_get_base_and_rate()
34 if (!IS_ERR(rstc)) { in timer_get_base_and_rate()
35 reset_control_assert(rstc); in timer_get_base_and_rate()
36 reset_control_deassert(rstc); in timer_get_base_and_rate()
/OK3568_Linux_fs/kernel/drivers/phy/st/
H A Dphy-stih407-usb.c36 struct reset_control *rstc; member
44 reset_control_deassert(phy_dev->rstc); in stih407_usb2_pico_ctrl()
104 phy_dev->rstc = devm_reset_control_get_shared(dev, "global"); in stih407_usb2_picophy_probe()
105 if (IS_ERR(phy_dev->rstc)) { in stih407_usb2_picophy_probe()
107 return PTR_ERR(phy_dev->rstc); in stih407_usb2_picophy_probe()
/OK3568_Linux_fs/kernel/drivers/i2c/busses/
H A Di2c-sun6i-p2wi.c90 struct reset_control *rstc; member
257 p2wi->rstc = devm_reset_control_get_exclusive(dev, NULL); in p2wi_probe()
258 if (IS_ERR(p2wi->rstc)) { in p2wi_probe()
259 ret = PTR_ERR(p2wi->rstc); in p2wi_probe()
264 ret = reset_control_deassert(p2wi->rstc); in p2wi_probe()
308 reset_control_assert(p2wi->rstc); in p2wi_probe()
320 reset_control_assert(p2wi->rstc); in p2wi_remove()
/OK3568_Linux_fs/kernel/drivers/spi/
H A Dspi-dw-mmio.c33 struct reset_control *rstc; member
271 dwsmmio->rstc = devm_reset_control_get_optional_exclusive(&pdev->dev, "spi"); in dw_spi_mmio_probe()
272 if (IS_ERR(dwsmmio->rstc)) { in dw_spi_mmio_probe()
273 ret = PTR_ERR(dwsmmio->rstc); in dw_spi_mmio_probe()
276 reset_control_deassert(dwsmmio->rstc); in dw_spi_mmio_probe()
311 reset_control_assert(dwsmmio->rstc); in dw_spi_mmio_probe()
324 reset_control_assert(dwsmmio->rstc); in dw_spi_mmio_remove()
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/arm/
H A Datmel-sysregs.txt28 RSTC Reset Controller required properties:
29 - compatible: Should be "atmel,<chip>-rstc".
31 it also can be "microchip,sam9x60-rstc"
37 rstc@fffffd00 {
38 compatible = "atmel,at91sam9260-rstc";

12345