Searched refs:mscnt (Results 1 – 3 of 3) sorted by relevance
| /rk3399_ARM-atf/plat/intel/soc/agilex/soc/ |
| H A D | agilex_clock_manager.c | 97 uint32_t mdiv, mscnt, hscnt; in config_clkmgr_handoff() local 127 mscnt = 100 / (mdiv * BIT(drefclk_div)); in config_clkmgr_handoff() 128 if (!mscnt) in config_clkmgr_handoff() 129 mscnt = 1; in config_clkmgr_handoff() 130 hscnt = (mdiv * mscnt * BIT(drefclk_div) / refclk_div) - 4; in config_clkmgr_handoff() 139 CLKMGR_VCOCALIB_MSCNT_SET(mscnt)); in config_clkmgr_handoff() 166 mscnt = 100 / (mdiv * BIT(drefclk_div)); in config_clkmgr_handoff() 167 if (!mscnt) in config_clkmgr_handoff() 168 mscnt = 1; in config_clkmgr_handoff() 169 hscnt = (mdiv * mscnt * BIT(drefclk_div) / refclk_div) - 4; in config_clkmgr_handoff() [all …]
|
| /rk3399_ARM-atf/plat/intel/soc/stratix10/soc/ |
| H A D | s10_clock_manager.c | 40 uint32_t m_div, refclk_div, mscnt, hscnt; in config_clkmgr_handoff() local 57 mscnt = 200 / ((6 + m_div) / refclk_div); in config_clkmgr_handoff() 58 hscnt = (m_div + 6) * mscnt / refclk_div - 9; in config_clkmgr_handoff() 66 ALT_CLKMGR_MAINPLL_VCOCALIB_MSCNT_SET(mscnt)); in config_clkmgr_handoff() 79 mscnt = 200 / ((6 + m_div) / refclk_div); in config_clkmgr_handoff() 80 hscnt = (m_div + 6) * mscnt / refclk_div - 9; in config_clkmgr_handoff() 88 ALT_CLKMGR_PERPLL_VCOCALIB_MSCNT_SET(mscnt)); in config_clkmgr_handoff()
|
| /rk3399_ARM-atf/plat/intel/soc/agilex5/soc/ |
| H A D | agilex5_clock_manager.c | 104 uint32_t mdiv, refclkdiv, drefclkdiv, mscnt, hscnt, vcocalib; in calc_pll_vcocalibration() local 111 mscnt = CLKMGR_VCOCALIB_MSCNT_CONST / (mdiv * BIT(drefclkdiv)); in calc_pll_vcocalibration() 112 if (mscnt == 0) { in calc_pll_vcocalibration() 113 mscnt = 1; in calc_pll_vcocalibration() 116 hscnt = (mdiv * mscnt * BIT(drefclkdiv) / refclkdiv) - in calc_pll_vcocalibration() 120 ((mscnt << CLKMGR_VCOCALIB_MSCNT_OFFSET) & in calc_pll_vcocalibration()
|