Home
last modified time | relevance | path

Searched refs:div_sel (Results 1 – 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/arch/arm/mach-cns3xxx/
Dpm.c108 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()
/kernel/linux/linux-5.10/drivers/misc/habanalabs/goya/
Dgoya.c676 u32 div_sel = RREG32(mmPSOC_PCI_PLL_DIV_SEL_1); in goya_fetch_psoc_frequency() local
681 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()
/kernel/linux/linux-5.10/drivers/misc/habanalabs/gaudi/
Dgaudi.c638 u32 div_sel = RREG32(mmPSOC_CPU_PLL_DIV_SEL_2); in gaudi_fetch_psoc_frequency() local
643 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()