Searched refs:prescaler_table (Results 1 – 3 of 3) sorted by relevance
/openbmc/u-boot/drivers/pwm/ |
H A D | sunxi_pwm.c | 27 static const u32 prescaler_table[] = { variable 81 if (!prescaler_table[prescaler]) in sunxi_pwm_set_config() 83 scaled_freq = lldiv(OSC_24MHZ, prescaler_table[prescaler]); in sunxi_pwm_set_config()
|
/openbmc/u-boot/drivers/clk/ |
H A D | clk_stm32h7.c | 570 u16 prescaler_table[8] = {2, 4, 8, 16, 64, 128, 256, 512}; in stm32_get_apb_psc() local 576 return prescaler_table[ in stm32_get_apb_psc() 582 return prescaler_table[ in stm32_get_apb_psc() 637 u16 prescaler_table[8] = {2, 4, 8, 16, 64, 128, 256, 512}; in stm32_clk_get_rate() local 675 sysclk = sysclk / prescaler_table[idx]; in stm32_clk_get_rate() 681 sysclk = sysclk / prescaler_table[idx]; in stm32_clk_get_rate() 702 sysclk = sysclk / prescaler_table[idx]; in stm32_clk_get_rate() 717 sysclk = sysclk / prescaler_table[idx]; in stm32_clk_get_rate()
|
/openbmc/linux/drivers/pwm/ |
H A D | pwm-sun4i.c | 58 static const u32 prescaler_table[] = { variable 143 prescaler = prescaler_table[PWM_REG_PRESCAL(val, pwm->hwpwm)]; in sun4i_pwm_get_state() 207 unsigned int pval = prescaler_table[prescaler]; in sun4i_pwm_calculate()
|