Searched refs:cxcprs (Results 1 – 1 of 1) sorted by relevance
48 uint32_t cxcprs; member173 uint32_t ctr, cxcprs; in pwm_it8xxx2_set_cycles() local176 cxcprs = (((uint32_t) pwm_clk_src) / (ctr + 1) / target_freq); in pwm_it8xxx2_set_cycles()181 if (cxcprs != 0) { in pwm_it8xxx2_set_cycles()182 actual_freq = ((uint32_t) pwm_clk_src) / (ctr + 1) / cxcprs; in pwm_it8xxx2_set_cycles()185 cxcprs--; in pwm_it8xxx2_set_cycles()191 if (cxcprs > UINT16_MAX) { in pwm_it8xxx2_set_cycles()198 data->cxcprs = cxcprs; in pwm_it8xxx2_set_cycles()203 inst->C4CPRS = data->cxcprs & 0xFF; in pwm_it8xxx2_set_cycles()204 inst->C4MCPRS = (data->cxcprs >> 8) & 0xFF; in pwm_it8xxx2_set_cycles()[all …]