Searched refs:div_sel (Results 1 – 6 of 6) sorted by relevance
108 int div_sel; in cns3xxx_cpu_clock() local111 div_sel = (reg >> PM_CLK_CTRL_REG_OFFSET_CPU_CLK_DIV) & 0x3; in cns3xxx_cpu_clock()113 cpu = (300 + ((cpu_sel / 3) * 100) + ((cpu_sel % 3) * 33)) >> div_sel; in cns3xxx_cpu_clock()
107 u32 reg, div_sel; in decode_pll() local124 div_sel = (reg & CCM_ANALOG_PLL_ARM_DIV_SELECT_MASK) >> in decode_pll()127 return (infreq * div_sel) / 2; in decode_pll()167 div_sel = (reg & CCM_ANALOG_PLL_DDR_DIV_SELECT_MASK) >> in decode_pll()170 return infreq * (div_sel + num / denom); in decode_pll()
1368 u32 con, sel, div_sel; in rv1126_gmac_tx_rx_set_clk() local1375 div_sel = RGMII_CLK_DIV50; in rv1126_gmac_tx_rx_set_clk()1377 div_sel = RGMII_CLK_DIV5; in rv1126_gmac_tx_rx_set_clk()1379 div_sel = RGMII_CLK_DIV0; in rv1126_gmac_tx_rx_set_clk()1381 div_sel << RGMII_CLK_SEL_SHIFT); in rv1126_gmac_tx_rx_set_clk()1384 div_sel = RMII_CLK_DIV20; in rv1126_gmac_tx_rx_set_clk()1386 div_sel = RMII_CLK_DIV2; in rv1126_gmac_tx_rx_set_clk()1388 div_sel << RMII_CLK_SEL_SHIFT); in rv1126_gmac_tx_rx_set_clk()
2052 u32 con, sel, div_sel; in rk3568_gmac_tx_rx_set_clk() local2059 div_sel = RGMII0_CLK_SEL_2_5M; in rk3568_gmac_tx_rx_set_clk()2061 div_sel = RGMII0_CLK_SEL_25M; in rk3568_gmac_tx_rx_set_clk()2063 div_sel = RGMII0_CLK_SEL_125M; in rk3568_gmac_tx_rx_set_clk()2066 div_sel << RGMII0_CLK_SEL_SHIFT); in rk3568_gmac_tx_rx_set_clk()2069 div_sel = RMII0_CLK_SEL_2_5M; in rk3568_gmac_tx_rx_set_clk()2071 div_sel = RMII0_CLK_SEL_25M; in rk3568_gmac_tx_rx_set_clk()2074 div_sel << RMII0_CLK_SEL_SHIFT); in rk3568_gmac_tx_rx_set_clk()
676 u32 div_sel = RREG32(mmPSOC_PCI_PLL_DIV_SEL_1); in goya_fetch_psoc_frequency() local681 if (div_sel == DIV_SEL_REF_CLK || div_sel == DIV_SEL_DIVIDED_REF) { in goya_fetch_psoc_frequency()682 if (div_sel == DIV_SEL_REF_CLK) in goya_fetch_psoc_frequency()686 } else if (div_sel == DIV_SEL_PLL_CLK || in goya_fetch_psoc_frequency()687 div_sel == DIV_SEL_DIVIDED_PLL) { in goya_fetch_psoc_frequency()689 if (div_sel == DIV_SEL_PLL_CLK) in goya_fetch_psoc_frequency()695 "Received invalid div select value: %d", div_sel); in goya_fetch_psoc_frequency()
638 u32 div_sel = RREG32(mmPSOC_CPU_PLL_DIV_SEL_2); in gaudi_fetch_psoc_frequency() local643 if (div_sel == DIV_SEL_REF_CLK || div_sel == DIV_SEL_DIVIDED_REF) { in gaudi_fetch_psoc_frequency()644 if (div_sel == DIV_SEL_REF_CLK) in gaudi_fetch_psoc_frequency()648 } else if (div_sel == DIV_SEL_PLL_CLK || in gaudi_fetch_psoc_frequency()649 div_sel == DIV_SEL_DIVIDED_PLL) { in gaudi_fetch_psoc_frequency()651 if (div_sel == DIV_SEL_PLL_CLK) in gaudi_fetch_psoc_frequency()657 "Received invalid div select value: %d", div_sel); in gaudi_fetch_psoc_frequency()