Searched refs:div_sel (Results 1 – 2 of 2) sorted by relevance
/Linux-v6.6/drivers/accel/habanalabs/goya/ |
D | goya.c | 750 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()
|
/Linux-v6.6/drivers/accel/habanalabs/gaudi/ |
D | gaudi.c | 907 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()
|