Lines Matching refs:base
24 PWM_Type *base; member
34 static bool imx_pwm_is_enabled(PWM_Type *base) in imx_pwm_is_enabled() argument
36 return PWM_PWMCR_REG(base) & PWM_PWMCR_EN_MASK; in imx_pwm_is_enabled()
44 *cycles = get_pwm_clock_freq(config->base) >> config->prescaler; in imx_pwm_get_cycles_per_sec()
56 bool enabled = imx_pwm_is_enabled(config->base); in imx_pwm_set_cycles()
83 sr = PWM_PWMSR_REG(config->base); in imx_pwm_set_cycles()
86 period_ms = (get_pwm_clock_freq(config->base) >> in imx_pwm_set_cycles()
90 sr = PWM_PWMSR_REG(config->base); in imx_pwm_set_cycles()
96 PWM_PWMCR_REG(config->base) = PWM_PWMCR_SWR(1); in imx_pwm_set_cycles()
99 cr = PWM_PWMCR_REG(config->base); in imx_pwm_set_cycles()
119 PWM_PWMSAR_REG(config->base) = pulse_cycles; in imx_pwm_set_cycles()
127 PWM_PWMPR_REG(config->base) = period_cycles; in imx_pwm_set_cycles()
134 PWM_PWMCR_REG(config->base) = cr; in imx_pwm_set_cycles()
150 PWM_PWMPR_REG(config->base) = data->period_cycles; in imx_pwm_init()
163 .base = (PWM_Type *)DT_INST_REG_ADDR(n), \