Lines Matching defs:timebase
43 * PWM period is specified with a timebase register,
45 * specified in step periods, in the [0, $timebase] range.
46 * In other words, the timebase imposes the duty cycle
47 * resolution. Therefore, let's constraint the timebase to
49 * Imposing a minimum timebase, will impose a maximum PWM frequency.
95 u32 val, div, duty, timebase;
113 timebase = DIV_ROUND_UP(mul, 1);
116 timebase = DIV_ROUND_UP(mul, 8);
119 timebase = DIV_ROUND_UP(mul, 64);
122 timebase = DIV_ROUND_UP(mul, 512);
125 "failed to configure timebase steps/divider value\n");
129 duty = DIV_ROUND_UP(timebase * duty_ns, period_ns);
144 (timebase << PWM_CH_CFG_TMBASE_SHIFT);