Lines Matching +full:static +full:- +full:enable
5 * SPDX-License-Identifier: GPL-2.0+
12 static void exynos4_mipi_phy_control(unsigned int dev_index, in exynos4_mipi_phy_control()
13 unsigned int enable) in exynos4_mipi_phy_control() argument
20 addr = (unsigned int)&pmu->mipi_phy0_control; in exynos4_mipi_phy_control()
22 addr = (unsigned int)&pmu->mipi_phy1_control; in exynos4_mipi_phy_control()
26 if (enable) in exynos4_mipi_phy_control()
34 void set_mipi_phy_ctrl(unsigned int dev_index, unsigned int enable) in set_mipi_phy_ctrl() argument
37 exynos4_mipi_phy_control(dev_index, enable); in set_mipi_phy_ctrl()
40 void exynos5_set_usbhost_phy_ctrl(unsigned int enable) in exynos5_set_usbhost_phy_ctrl() argument
45 if (enable) { in exynos5_set_usbhost_phy_ctrl()
47 setbits_le32(&power->usbhost_phy_control, in exynos5_set_usbhost_phy_ctrl()
51 clrbits_le32(&power->usbhost_phy_control, in exynos5_set_usbhost_phy_ctrl()
56 void exynos4412_set_usbhost_phy_ctrl(unsigned int enable) in exynos4412_set_usbhost_phy_ctrl() argument
61 if (enable) { in exynos4412_set_usbhost_phy_ctrl()
63 setbits_le32(&power->usbhost_phy_control, in exynos4412_set_usbhost_phy_ctrl()
65 setbits_le32(&power->hsic1_phy_control, in exynos4412_set_usbhost_phy_ctrl()
67 setbits_le32(&power->hsic2_phy_control, in exynos4412_set_usbhost_phy_ctrl()
71 clrbits_le32(&power->usbhost_phy_control, in exynos4412_set_usbhost_phy_ctrl()
73 clrbits_le32(&power->hsic1_phy_control, in exynos4412_set_usbhost_phy_ctrl()
75 clrbits_le32(&power->hsic2_phy_control, in exynos4412_set_usbhost_phy_ctrl()
80 void set_usbhost_phy_ctrl(unsigned int enable) in set_usbhost_phy_ctrl() argument
83 exynos5_set_usbhost_phy_ctrl(enable); in set_usbhost_phy_ctrl()
86 exynos4412_set_usbhost_phy_ctrl(enable); in set_usbhost_phy_ctrl()
89 static void exynos5_set_usbdrd_phy_ctrl(unsigned int enable) in exynos5_set_usbdrd_phy_ctrl() argument
94 if (enable) { in exynos5_set_usbdrd_phy_ctrl()
96 setbits_le32(&power->usbdrd_phy_control, in exynos5_set_usbdrd_phy_ctrl()
100 clrbits_le32(&power->usbdrd_phy_control, in exynos5_set_usbdrd_phy_ctrl()
105 static void exynos5420_set_usbdev_phy_ctrl(unsigned int enable) in exynos5420_set_usbdev_phy_ctrl() argument
110 if (enable) { in exynos5420_set_usbdev_phy_ctrl()
112 setbits_le32(&power->usbdev_phy_control, in exynos5420_set_usbdev_phy_ctrl()
114 setbits_le32(&power->usbdev1_phy_control, in exynos5420_set_usbdev_phy_ctrl()
118 clrbits_le32(&power->usbdev_phy_control, in exynos5420_set_usbdev_phy_ctrl()
120 clrbits_le32(&power->usbdev1_phy_control, in exynos5420_set_usbdev_phy_ctrl()
125 void set_usbdrd_phy_ctrl(unsigned int enable) in set_usbdrd_phy_ctrl() argument
129 exynos5420_set_usbdev_phy_ctrl(enable); in set_usbdrd_phy_ctrl()
131 exynos5_set_usbdrd_phy_ctrl(enable); in set_usbdrd_phy_ctrl()
135 static void exynos5_dp_phy_control(unsigned int enable) in exynos5_dp_phy_control() argument
141 cfg = readl(&power->dptx_phy_control); in exynos5_dp_phy_control()
142 if (enable) in exynos5_dp_phy_control()
147 writel(cfg, &power->dptx_phy_control); in exynos5_dp_phy_control()
150 void exynos_dp_phy_ctrl(unsigned int enable) in exynos_dp_phy_ctrl() argument
153 exynos5_dp_phy_control(enable); in exynos_dp_phy_ctrl()
156 static void exynos5_set_ps_hold_ctrl(void) in exynos5_set_ps_hold_ctrl()
161 /* Set PS-Hold high */ in exynos5_set_ps_hold_ctrl()
162 setbits_le32(&power->ps_hold_control, in exynos5_set_ps_hold_ctrl()
169 * after the initial power-on condition goes away
179 static void exynos5_set_xclkout(void) in exynos5_set_xclkout()
185 clrsetbits_le32(&power->pmu_debug, PMU_DEBUG_CLKOUT_SEL_MASK, in exynos5_set_xclkout()
203 setbits_le32(&power->ps_hold_control, POWER_ENABLE_HW_TRIP); in set_hw_thermal_trip()
207 static uint32_t exynos5_get_reset_status(void) in exynos5_get_reset_status()
212 return power->inform1; in exynos5_get_reset_status()
215 static uint32_t exynos4_get_reset_status(void) in exynos4_get_reset_status()
220 return power->inform1; in exynos4_get_reset_status()
231 static void exynos5_power_exit_wakeup(void) in exynos5_power_exit_wakeup()
237 ((resume_func)power->inform0)(); in exynos5_power_exit_wakeup()
240 static void exynos4_power_exit_wakeup(void) in exynos4_power_exit_wakeup()
246 ((resume_func)power->inform0)(); in exynos4_power_exit_wakeup()