Lines Matching refs:ctrl
62 u32 ctrl; in pwm_lpss_config() local
82 ctrl = readl(lpwm->regs + PWM); in pwm_lpss_config()
83 ctrl &= ~(PWM_BASE_UNIT_MASK | PWM_ON_TIME_DIV_MASK); in pwm_lpss_config()
84 ctrl |= (u16) base_unit << PWM_BASE_UNIT_SHIFT; in pwm_lpss_config()
85 ctrl |= on_time_div; in pwm_lpss_config()
87 ctrl |= PWM_SW_UPDATE; in pwm_lpss_config()
88 writel(ctrl, lpwm->regs + PWM); in pwm_lpss_config()
96 u32 ctrl; in pwm_lpss_enable() local
98 ctrl = readl(lpwm->regs + PWM); in pwm_lpss_enable()
99 writel(ctrl | PWM_ENABLE, lpwm->regs + PWM); in pwm_lpss_enable()
107 u32 ctrl; in pwm_lpss_disable() local
109 ctrl = readl(lpwm->regs + PWM); in pwm_lpss_disable()
110 writel(ctrl & ~PWM_ENABLE, lpwm->regs + PWM); in pwm_lpss_disable()
152 u32 ctrl; in pwm_lpss_remove() local
154 ctrl = readl(lpwm->regs + PWM); in pwm_lpss_remove()
155 writel(ctrl & ~PWM_ENABLE, lpwm->regs + PWM); in pwm_lpss_remove()