Home
last modified time | relevance | path

Searched refs:rstc (Results 1 – 37 of 37) sorted by relevance

/linux-4.4.14/drivers/reset/
Dcore.c93 int reset_control_reset(struct reset_control *rstc) in reset_control_reset() argument
95 if (rstc->rcdev->ops->reset) in reset_control_reset()
96 return rstc->rcdev->ops->reset(rstc->rcdev, rstc->id); in reset_control_reset()
106 int reset_control_assert(struct reset_control *rstc) in reset_control_assert() argument
108 if (rstc->rcdev->ops->assert) in reset_control_assert()
109 return rstc->rcdev->ops->assert(rstc->rcdev, rstc->id); in reset_control_assert()
119 int reset_control_deassert(struct reset_control *rstc) in reset_control_deassert() argument
121 if (rstc->rcdev->ops->deassert) in reset_control_deassert()
122 return rstc->rcdev->ops->deassert(rstc->rcdev, rstc->id); in reset_control_deassert()
134 int reset_control_status(struct reset_control *rstc) in reset_control_status() argument
[all …]
/linux-4.4.14/include/linux/
Dreset.h10 int reset_control_reset(struct reset_control *rstc);
11 int reset_control_assert(struct reset_control *rstc);
12 int reset_control_deassert(struct reset_control *rstc);
13 int reset_control_status(struct reset_control *rstc);
16 void reset_control_put(struct reset_control *rstc);
43 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
55 static inline int reset_control_deassert(struct reset_control *rstc) in reset_control_deassert() argument
61 static inline int reset_control_status(struct reset_control *rstc) in reset_control_status() argument
67 static inline void reset_control_put(struct reset_control *rstc) in reset_control_put() argument
/linux-4.4.14/Documentation/devicetree/bindings/reset/
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>;
Dzynq-reset.txt17 rstc: rstc@200 {
/linux-4.4.14/drivers/pinctrl/sunxi/
Dpinctrl-sun8i-a23-r.c100 struct reset_control *rstc; in sun8i_a23_r_pinctrl_probe() local
103 rstc = devm_reset_control_get(&pdev->dev, NULL); in sun8i_a23_r_pinctrl_probe()
104 if (IS_ERR(rstc)) { in sun8i_a23_r_pinctrl_probe()
106 return PTR_ERR(rstc); in sun8i_a23_r_pinctrl_probe()
109 ret = reset_control_deassert(rstc); in sun8i_a23_r_pinctrl_probe()
117 reset_control_assert(rstc); in sun8i_a23_r_pinctrl_probe()
Dpinctrl-sun6i-a31-r.c113 struct reset_control *rstc; in sun6i_a31_r_pinctrl_probe() local
116 rstc = devm_reset_control_get(&pdev->dev, NULL); in sun6i_a31_r_pinctrl_probe()
117 if (IS_ERR(rstc)) { in sun6i_a31_r_pinctrl_probe()
119 return PTR_ERR(rstc); in sun6i_a31_r_pinctrl_probe()
122 ret = reset_control_deassert(rstc); in sun6i_a31_r_pinctrl_probe()
130 reset_control_assert(rstc); in sun6i_a31_r_pinctrl_probe()
/linux-4.4.14/arch/arm/mach-rockchip/
Dplatsmp.c75 struct reset_control *rstc = rockchip_get_core_reset(pd); in pmu_set_power_domain() local
78 if (IS_ERR(rstc) && read_cpuid_part() != ARM_CPU_PART_CORTEX_A9) { in pmu_set_power_domain()
81 return PTR_ERR(rstc); in pmu_set_power_domain()
89 if (!IS_ERR(rstc) && !on) in pmu_set_power_domain()
90 reset_control_assert(rstc); in pmu_set_power_domain()
108 if (!IS_ERR(rstc)) { in pmu_set_power_domain()
110 reset_control_deassert(rstc); in pmu_set_power_domain()
111 reset_control_put(rstc); in pmu_set_power_domain()
/linux-4.4.14/drivers/mmc/host/
Dsdhci-st.c30 struct reset_control *rstc; member
371 pdata->rstc = devm_reset_control_get(&pdev->dev, NULL); in sdhci_st_probe()
372 if (IS_ERR(pdata->rstc)) in sdhci_st_probe()
373 pdata->rstc = NULL; in sdhci_st_probe()
375 reset_control_deassert(pdata->rstc); in sdhci_st_probe()
430 if (pdata->rstc) in sdhci_st_probe()
431 reset_control_assert(pdata->rstc); in sdhci_st_probe()
445 if (pdata->rstc) in sdhci_st_remove()
446 reset_control_assert(pdata->rstc); in sdhci_st_remove()
462 if (pdata->rstc) in sdhci_st_suspend()
[all …]
/linux-4.4.14/drivers/phy/
Dphy-stih407-usb.c40 struct reset_control *rstc; member
48 reset_control_deassert(phy_dev->rstc); in stih407_usb2_pico_ctrl()
108 phy_dev->rstc = devm_reset_control_get(dev, "global"); in stih407_usb2_picophy_probe()
109 if (IS_ERR(phy_dev->rstc)) { in stih407_usb2_picophy_probe()
111 return PTR_ERR(phy_dev->rstc); in stih407_usb2_picophy_probe()
/linux-4.4.14/drivers/clocksource/
Dtimer-stm32.c105 struct reset_control *rstc; in stm32_clockevent_init() local
125 rstc = of_reset_control_get(np, NULL); in stm32_clockevent_init()
126 if (!IS_ERR(rstc)) { in stm32_clockevent_init()
127 reset_control_assert(rstc); in stm32_clockevent_init()
128 reset_control_deassert(rstc); in stm32_clockevent_init()
Dtimer-sun5i.c328 struct reset_control *rstc; in sun5i_timer_init() local
345 rstc = of_reset_control_get(node, NULL); in sun5i_timer_init()
346 if (!IS_ERR(rstc)) in sun5i_timer_init()
347 reset_control_deassert(rstc); in sun5i_timer_init()
/linux-4.4.14/drivers/media/rc/
Dst_rc.c32 struct reset_control *rstc; member
167 if (dev->rstc) in st_rc_hardware_init()
168 reset_control_deassert(dev->rstc); in st_rc_hardware_init()
281 rc_dev->rstc = reset_control_get_optional(dev, NULL); in st_rc_probe()
282 if (IS_ERR(rc_dev->rstc)) in st_rc_probe()
283 rc_dev->rstc = NULL; in st_rc_probe()
352 if (rc_dev->rstc) in st_rc_suspend()
353 reset_control_assert(rc_dev->rstc); in st_rc_suspend()
/linux-4.4.14/drivers/i2c/busses/
Di2c-sun6i-p2wi.c90 struct reset_control *rstc; member
261 p2wi->rstc = devm_reset_control_get(dev, NULL); in p2wi_probe()
262 if (IS_ERR(p2wi->rstc)) { in p2wi_probe()
263 ret = PTR_ERR(p2wi->rstc); in p2wi_probe()
268 ret = reset_control_deassert(p2wi->rstc); in p2wi_probe()
312 reset_control_assert(p2wi->rstc); in p2wi_probe()
324 reset_control_assert(p2wi->rstc); in p2wi_remove()
Di2c-mv64xxx.c147 struct reset_control *rstc; member
832 drv_data->rstc = devm_reset_control_get_optional(dev, NULL); in mv64xxx_of_config()
833 if (IS_ERR(drv_data->rstc)) { in mv64xxx_of_config()
834 if (PTR_ERR(drv_data->rstc) == -EPROBE_DEFER) { in mv64xxx_of_config()
839 reset_control_deassert(drv_data->rstc); in mv64xxx_of_config()
964 if (!IS_ERR_OR_NULL(drv_data->rstc)) in mv64xxx_i2c_probe()
965 reset_control_assert(drv_data->rstc); in mv64xxx_i2c_probe()
984 if (!IS_ERR_OR_NULL(drv_data->rstc)) in mv64xxx_i2c_remove()
985 reset_control_assert(drv_data->rstc); in mv64xxx_i2c_remove()
/linux-4.4.14/drivers/spi/
Dspi-sun6i.c86 struct reset_control *rstc; member
320 ret = reset_control_deassert(sspi->rstc); in sun6i_spi_runtime_resume()
344 reset_control_assert(sspi->rstc); in sun6i_spi_runtime_suspend()
413 sspi->rstc = devm_reset_control_get(&pdev->dev, NULL); in sun6i_spi_probe()
414 if (IS_ERR(sspi->rstc)) { in sun6i_spi_probe()
416 ret = PTR_ERR(sspi->rstc); in sun6i_spi_probe()
/linux-4.4.14/drivers/bus/
Dsunxi-rsb.c125 struct reset_control *rstc; member
673 rsb->rstc = devm_reset_control_get(dev, NULL); in sunxi_rsb_probe()
674 if (IS_ERR(rsb->rstc)) { in sunxi_rsb_probe()
675 ret = PTR_ERR(rsb->rstc); in sunxi_rsb_probe()
680 ret = reset_control_deassert(rsb->rstc); in sunxi_rsb_probe()
732 reset_control_assert(rsb->rstc); in sunxi_rsb_probe()
745 reset_control_assert(rsb->rstc); in sunxi_rsb_remove()
/linux-4.4.14/arch/arm/boot/dts/
Datlas6.dtsi73 rstc: reset-controller@88010000 { label
74 compatible = "sirf,prima2-rstc";
134 resets = <&rstc 6>;
176 resets = <&rstc 1>;
184 resets = <&rstc 2>;
192 resets = <&rstc 0>;
316 resets = <&rstc 26>;
332 resets = <&rstc 27>;
Dprima2.dtsi84 rstc: reset-controller@88010000 { label
85 compatible = "sirf,prima2-rstc";
140 resets = <&rstc 6>;
182 resets = <&rstc 1>;
190 resets = <&rstc 2>;
198 resets = <&rstc 0>;
Dzynq-7000.dtsi262 rstc: rstc@200 { label
Dat91sam9261.dtsi820 rstc@fffffd00 {
821 compatible = "atmel,at91sam9260-rstc";
Dat91sam9rl.dtsi1018 rstc@fffffd00 {
1019 compatible = "atmel,at91sam9260-rstc";
Dat91sam9263.dtsi384 rstc@fffffd00 {
385 compatible = "atmel,at91sam9260-rstc";
Dat91sam9260.dtsi359 rstc@fffffd00 {
360 compatible = "atmel,at91sam9260-rstc";
Dat91sam9n12.dtsi376 rstc@fffffe00 {
377 compatible = "atmel,at91sam9g45-rstc";
Dsama5d2.dtsi919 rstc@f8048000 {
920 compatible = "atmel,sama5d3-rstc";
Dsama5d3.dtsi1262 rstc@fffffe00 {
1263 compatible = "atmel,sama5d3-rstc", "atmel,at91sam9g45-rstc";
Dat91sam9x5.dtsi376 rstc@fffffe00 {
377 compatible = "atmel,at91sam9g45-rstc";
Dsama5d4.dtsi1283 rstc@fc068600 {
1284 compatible = "atmel,sama5d3-rstc", "atmel,at91sam9g45-rstc";
Dat91sam9g45.dtsi387 rstc@fffffd00 {
388 compatible = "atmel,at91sam9g45-rstc";
/linux-4.4.14/arch/arm/mach-prima2/
DMakefile1 obj-y += rstc.o
/linux-4.4.14/Documentation/devicetree/bindings/arm/
Datmel-at91.txt92 - compatible: Should be "atmel,<chip>-rstc".
99 rstc@fffffd00 {
100 compatible = "atmel,at91sam9260-rstc";
/linux-4.4.14/drivers/soc/mediatek/
Dmtk-pmic-wrap.c375 struct reset_control *rstc; member
656 reset_control_reset(wrp->rstc); in pwrap_init()
832 wrp->rstc = devm_reset_control_get(wrp->dev, "pwrap"); in pwrap_probe()
833 if (IS_ERR(wrp->rstc)) { in pwrap_probe()
834 ret = PTR_ERR(wrp->rstc); in pwrap_probe()
/linux-4.4.14/drivers/dma/
Dsun6i-dma.c157 struct reset_control *rstc; member
946 sdc->rstc = devm_reset_control_get(&pdev->dev, NULL); in sun6i_dma_probe()
947 if (IS_ERR(sdc->rstc)) { in sun6i_dma_probe()
949 return PTR_ERR(sdc->rstc); in sun6i_dma_probe()
1016 ret = reset_control_deassert(sdc->rstc); in sun6i_dma_probe()
1066 reset_control_assert(sdc->rstc); in sun6i_dma_probe()
1082 reset_control_assert(sdc->rstc); in sun6i_dma_remove()
/linux-4.4.14/Documentation/devicetree/bindings/spi/
Dspi-sirf.txt41 resets = <&rstc 26>;
/linux-4.4.14/drivers/media/platform/coda/
Dcoda.h81 struct reset_control *rstc; member
Dcoda-common.c1846 if (dev->rstc) in coda_hw_init()
1847 reset_control_reset(dev->rstc); in coda_hw_init()
2167 dev->rstc = devm_reset_control_get_optional(&pdev->dev, NULL); in coda_probe()
2168 if (IS_ERR(dev->rstc)) { in coda_probe()
2169 ret = PTR_ERR(dev->rstc); in coda_probe()
2171 dev->rstc = NULL; in coda_probe()
Dcoda-bit.c117 if (!dev->rstc) in coda_hw_reset()
132 ret = reset_control_reset(dev->rstc); in coda_hw_reset()