Lines Matching +full:static +full:- +full:enable
1 // SPDX-License-Identifier: GPL-2.0+
11 static void exynos4_mipi_phy_control(unsigned int dev_index, in exynos4_mipi_phy_control()
12 unsigned int enable) in exynos4_mipi_phy_control() argument
19 addr = (unsigned int)&pmu->mipi_phy0_control; in exynos4_mipi_phy_control()
21 addr = (unsigned int)&pmu->mipi_phy1_control; in exynos4_mipi_phy_control()
25 if (enable) in exynos4_mipi_phy_control()
33 void set_mipi_phy_ctrl(unsigned int dev_index, unsigned int enable) in set_mipi_phy_ctrl() argument
36 exynos4_mipi_phy_control(dev_index, enable); in set_mipi_phy_ctrl()
39 void exynos5_set_usbhost_phy_ctrl(unsigned int enable) in exynos5_set_usbhost_phy_ctrl() argument
44 if (enable) { in exynos5_set_usbhost_phy_ctrl()
46 setbits_le32(&power->usbhost_phy_control, in exynos5_set_usbhost_phy_ctrl()
50 clrbits_le32(&power->usbhost_phy_control, in exynos5_set_usbhost_phy_ctrl()
55 void exynos4412_set_usbhost_phy_ctrl(unsigned int enable) in exynos4412_set_usbhost_phy_ctrl() argument
60 if (enable) { in exynos4412_set_usbhost_phy_ctrl()
62 setbits_le32(&power->usbhost_phy_control, in exynos4412_set_usbhost_phy_ctrl()
64 setbits_le32(&power->hsic1_phy_control, in exynos4412_set_usbhost_phy_ctrl()
66 setbits_le32(&power->hsic2_phy_control, in exynos4412_set_usbhost_phy_ctrl()
70 clrbits_le32(&power->usbhost_phy_control, in exynos4412_set_usbhost_phy_ctrl()
72 clrbits_le32(&power->hsic1_phy_control, in exynos4412_set_usbhost_phy_ctrl()
74 clrbits_le32(&power->hsic2_phy_control, in exynos4412_set_usbhost_phy_ctrl()
79 void set_usbhost_phy_ctrl(unsigned int enable) in set_usbhost_phy_ctrl() argument
82 exynos5_set_usbhost_phy_ctrl(enable); in set_usbhost_phy_ctrl()
85 exynos4412_set_usbhost_phy_ctrl(enable); in set_usbhost_phy_ctrl()
88 static void exynos5_set_usbdrd_phy_ctrl(unsigned int enable) in exynos5_set_usbdrd_phy_ctrl() argument
93 if (enable) { in exynos5_set_usbdrd_phy_ctrl()
95 setbits_le32(&power->usbdrd_phy_control, in exynos5_set_usbdrd_phy_ctrl()
99 clrbits_le32(&power->usbdrd_phy_control, in exynos5_set_usbdrd_phy_ctrl()
104 static void exynos5420_set_usbdev_phy_ctrl(unsigned int enable) in exynos5420_set_usbdev_phy_ctrl() argument
109 if (enable) { in exynos5420_set_usbdev_phy_ctrl()
111 setbits_le32(&power->usbdev_phy_control, in exynos5420_set_usbdev_phy_ctrl()
113 setbits_le32(&power->usbdev1_phy_control, in exynos5420_set_usbdev_phy_ctrl()
117 clrbits_le32(&power->usbdev_phy_control, in exynos5420_set_usbdev_phy_ctrl()
119 clrbits_le32(&power->usbdev1_phy_control, in exynos5420_set_usbdev_phy_ctrl()
124 void set_usbdrd_phy_ctrl(unsigned int enable) in set_usbdrd_phy_ctrl() argument
128 exynos5420_set_usbdev_phy_ctrl(enable); in set_usbdrd_phy_ctrl()
130 exynos5_set_usbdrd_phy_ctrl(enable); in set_usbdrd_phy_ctrl()
134 static void exynos5_dp_phy_control(unsigned int enable) in exynos5_dp_phy_control() argument
140 cfg = readl(&power->dptx_phy_control); in exynos5_dp_phy_control()
141 if (enable) in exynos5_dp_phy_control()
146 writel(cfg, &power->dptx_phy_control); in exynos5_dp_phy_control()
149 void exynos_dp_phy_ctrl(unsigned int enable) in exynos_dp_phy_ctrl() argument
152 exynos5_dp_phy_control(enable); in exynos_dp_phy_ctrl()
155 static void exynos5_set_ps_hold_ctrl(void) in exynos5_set_ps_hold_ctrl()
160 /* Set PS-Hold high */ in exynos5_set_ps_hold_ctrl()
161 setbits_le32(&power->ps_hold_control, in exynos5_set_ps_hold_ctrl()
168 * after the initial power-on condition goes away
178 static void exynos5_set_xclkout(void) in exynos5_set_xclkout()
184 clrsetbits_le32(&power->pmu_debug, PMU_DEBUG_CLKOUT_SEL_MASK, in exynos5_set_xclkout()
202 setbits_le32(&power->ps_hold_control, POWER_ENABLE_HW_TRIP); in set_hw_thermal_trip()
206 static uint32_t exynos5_get_reset_status(void) in exynos5_get_reset_status()
211 return power->inform1; in exynos5_get_reset_status()
214 static uint32_t exynos4_get_reset_status(void) in exynos4_get_reset_status()
219 return power->inform1; in exynos4_get_reset_status()
230 static void exynos5_power_exit_wakeup(void) in exynos5_power_exit_wakeup()
236 ((resume_func)power->inform0)(); in exynos5_power_exit_wakeup()
239 static void exynos4_power_exit_wakeup(void) in exynos4_power_exit_wakeup()
245 ((resume_func)power->inform0)(); in exynos4_power_exit_wakeup()