Home
last modified time | relevance | path

Searched refs:new_clk (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/drivers/pwm/
Dpwm-atmel-hlcdc.c61 struct clk *new_clk = hlcdc->slow_clk; in atmel_hlcdc_pwm_apply() local
69 clk_freq = clk_get_rate(new_clk); in atmel_hlcdc_pwm_apply()
80 new_clk = hlcdc->sys_clk; in atmel_hlcdc_pwm_apply()
81 clk_freq = clk_get_rate(new_clk); in atmel_hlcdc_pwm_apply()
104 if (new_clk != chip->cur_clk) { in atmel_hlcdc_pwm_apply()
108 ret = clk_prepare_enable(new_clk); in atmel_hlcdc_pwm_apply()
113 chip->cur_clk = new_clk; in atmel_hlcdc_pwm_apply()
115 if (new_clk == hlcdc->sys_clk) in atmel_hlcdc_pwm_apply()
/Linux-v4.19/drivers/net/ethernet/marvell/
Dmvneta.c3421 u32 new_clk, gmac_clk = mvreg_read(pp, MVNETA_GMAC_CLOCK_DIVIDER); in mvneta_mac_config() local
3427 new_clk = gmac_clk & ~MVNETA_GMAC_1MS_CLOCK_ENABLE; in mvneta_mac_config()
3466 new_clk |= MVNETA_GMAC_1MS_CLOCK_ENABLE; in mvneta_mac_config()
3475 new_clk |= MVNETA_GMAC_1MS_CLOCK_ENABLE; in mvneta_mac_config()
3502 if (new_clk != gmac_clk) in mvneta_mac_config()
3503 mvreg_write(pp, MVNETA_GMAC_CLOCK_DIVIDER, new_clk); in mvneta_mac_config()