Home
last modified time | relevance | path

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

/openbmc/u-boot/arch/arm/mach-imx/mx7/
H A Dclock.c106 u32 reg, div_sel; in decode_pll() local
123 div_sel = (reg & CCM_ANALOG_PLL_ARM_DIV_SELECT_MASK) >> in decode_pll()
126 return (infreq * div_sel) / 2; in decode_pll()
166 div_sel = (reg & CCM_ANALOG_PLL_DDR_DIV_SELECT_MASK) >> in decode_pll()
169 return infreq * (div_sel + num / denom); in decode_pll()
/openbmc/linux/drivers/accel/habanalabs/goya/
H A Dgoya.c750 u32 nr = 0, nf = 0, od = 0, div_fctr = 0, pll_clk, div_sel; in goya_fetch_psoc_frequency() local
769 div_sel = RREG32(mmPSOC_PCI_PLL_DIV_SEL_1); in goya_fetch_psoc_frequency()
774 if (div_sel == DIV_SEL_REF_CLK || in goya_fetch_psoc_frequency()
775 div_sel == DIV_SEL_DIVIDED_REF) { in goya_fetch_psoc_frequency()
776 if (div_sel == DIV_SEL_REF_CLK) in goya_fetch_psoc_frequency()
780 } else if (div_sel == DIV_SEL_PLL_CLK || in goya_fetch_psoc_frequency()
781 div_sel == DIV_SEL_DIVIDED_PLL) { in goya_fetch_psoc_frequency()
784 if (div_sel == DIV_SEL_PLL_CLK) in goya_fetch_psoc_frequency()
791 div_sel); in goya_fetch_psoc_frequency()
/openbmc/linux/drivers/accel/habanalabs/gaudi/
H A Dgaudi.c907 u32 nr = 0, nf = 0, od = 0, div_fctr = 0, pll_clk, div_sel; in gaudi_fetch_psoc_frequency() local
928 div_sel = RREG32(mmPSOC_CPU_PLL_DIV_SEL_2); in gaudi_fetch_psoc_frequency()
933 if (div_sel == DIV_SEL_REF_CLK || in gaudi_fetch_psoc_frequency()
934 div_sel == DIV_SEL_DIVIDED_REF) { in gaudi_fetch_psoc_frequency()
935 if (div_sel == DIV_SEL_REF_CLK) in gaudi_fetch_psoc_frequency()
939 } else if (div_sel == DIV_SEL_PLL_CLK || in gaudi_fetch_psoc_frequency()
940 div_sel == DIV_SEL_DIVIDED_PLL) { in gaudi_fetch_psoc_frequency()
943 if (div_sel == DIV_SEL_PLL_CLK) in gaudi_fetch_psoc_frequency()
948 dev_warn(hdev->dev, "Received invalid div select value: %#x", div_sel); in gaudi_fetch_psoc_frequency()