Searched refs:div_sel (Results 1 – 3 of 3) sorted by relevance
/Linux-v6.1/arch/arm/mach-cns3xxx/ |
D | pm.c | 108 int div_sel; in cns3xxx_cpu_clock() local 111 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()
|
/Linux-v6.1/drivers/misc/habanalabs/goya/ |
D | goya.c | 743 u32 nr = 0, nf = 0, od = 0, div_fctr = 0, pll_clk, div_sel; in goya_fetch_psoc_frequency() local 762 div_sel = RREG32(mmPSOC_PCI_PLL_DIV_SEL_1); in goya_fetch_psoc_frequency() 767 if (div_sel == DIV_SEL_REF_CLK || in goya_fetch_psoc_frequency() 768 div_sel == DIV_SEL_DIVIDED_REF) { in goya_fetch_psoc_frequency() 769 if (div_sel == DIV_SEL_REF_CLK) in goya_fetch_psoc_frequency() 773 } else if (div_sel == DIV_SEL_PLL_CLK || in goya_fetch_psoc_frequency() 774 div_sel == DIV_SEL_DIVIDED_PLL) { in goya_fetch_psoc_frequency() 777 if (div_sel == DIV_SEL_PLL_CLK) in goya_fetch_psoc_frequency() 784 div_sel); in goya_fetch_psoc_frequency()
|
/Linux-v6.1/drivers/misc/habanalabs/gaudi/ |
D | gaudi.c | 902 u32 nr = 0, nf = 0, od = 0, div_fctr = 0, pll_clk, div_sel; in gaudi_fetch_psoc_frequency() local 923 div_sel = RREG32(mmPSOC_CPU_PLL_DIV_SEL_2); in gaudi_fetch_psoc_frequency() 928 if (div_sel == DIV_SEL_REF_CLK || in gaudi_fetch_psoc_frequency() 929 div_sel == DIV_SEL_DIVIDED_REF) { in gaudi_fetch_psoc_frequency() 930 if (div_sel == DIV_SEL_REF_CLK) in gaudi_fetch_psoc_frequency() 934 } else if (div_sel == DIV_SEL_PLL_CLK || in gaudi_fetch_psoc_frequency() 935 div_sel == DIV_SEL_DIVIDED_PLL) { in gaudi_fetch_psoc_frequency() 938 if (div_sel == DIV_SEL_PLL_CLK) in gaudi_fetch_psoc_frequency() 943 dev_warn(hdev->dev, "Received invalid div select value: %#x", div_sel); in gaudi_fetch_psoc_frequency()
|