Home
last modified time | relevance | path

Searched refs:SL28CPLD_PWM_CLK (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-6.6/drivers/pwm/
H A Dpwm-sl28cpld.c54 #define SL28CPLD_PWM_CLK 32000 /* 32 kHz */ macro
57 (NSEC_PER_SEC / SL28CPLD_PWM_CLK * SL28CPLD_PWM_MAX_DUTY_CYCLE(prescaler))
64 * max_period_ns = 1 << (7 - prescaler) / SL28CPLD_PWM_CLK * NSEC_PER_SEC
67 * duty_cycle_ns = pwm_cycle_reg / SL28CPLD_PWM_CLK * NSEC_PER_SEC
68 * = NSEC_PER_SEC / SL28CPLD_PWM_CLK * pwm_cycle_reg
70 * NSEC_PER_SEC is a multiple of SL28CPLD_PWM_CLK, therefore we're not losing
74 (NSEC_PER_SEC / SL28CPLD_PWM_CLK * (reg))
76 (DIV_ROUND_DOWN_ULL((duty_cycle), NSEC_PER_SEC / SL28CPLD_PWM_CLK))
/kernel/linux/linux-5.10/drivers/pwm/
H A Dpwm-sl28cpld.c53 #define SL28CPLD_PWM_CLK 32000 /* 32 kHz */ macro
56 (NSEC_PER_SEC / SL28CPLD_PWM_CLK * SL28CPLD_PWM_MAX_DUTY_CYCLE(prescaler))
63 * max_period_ns = 1 << (7 - prescaler) / SL28CPLD_PWM_CLK * NSEC_PER_SEC
66 * duty_cycle_ns = pwm_cycle_reg / SL28CPLD_PWM_CLK * NSEC_PER_SEC
67 * = NSEC_PER_SEC / SL28CPLD_PWM_CLK * pwm_cycle_reg
69 * NSEC_PER_SEC is a multiple of SL28CPLD_PWM_CLK, therefore we're not losing
73 (NSEC_PER_SEC / SL28CPLD_PWM_CLK * (reg))
75 (DIV_ROUND_DOWN_ULL((duty_cycle), NSEC_PER_SEC / SL28CPLD_PWM_CLK))

Completed in 2 milliseconds