Searched refs:mscnt (Results 1 – 2 of 2) sorted by relevance
/u-boot/arch/arm/mach-socfpga/ |
A D | clock_manager_s10.c | 44 u32 mdiv, refclkdiv, mscnt, hscnt, vcocalib; in cm_basic_init() local 58 mscnt = CLKMGR_MSCNT_CONST / (CLKMGR_MDIV_CONST + mdiv) / refclkdiv; in cm_basic_init() 59 hscnt = (mdiv + CLKMGR_MDIV_CONST) * mscnt / refclkdiv - in cm_basic_init() 62 ((mscnt & CLKMGR_VCOCALIB_MSCNT_MASK) << in cm_basic_init() 85 mscnt = CLKMGR_MSCNT_CONST / (CLKMGR_MDIV_CONST + mdiv) / refclkdiv; in cm_basic_init() 86 hscnt = (mdiv + CLKMGR_MDIV_CONST) * mscnt / refclkdiv - in cm_basic_init() 89 ((mscnt & CLKMGR_VCOCALIB_MSCNT_MASK) << in cm_basic_init()
|
/u-boot/drivers/clk/altera/ |
A D | clk-agilex.c | 204 u32 mdiv, refclkdiv, arefclkdiv, drefclkdiv, mscnt, hscnt, vcocalib; in calc_vocalib_pll() local 213 mscnt = CLKMGR_VCOCALIB_MSCNT_CONST / (mdiv * BIT(drefclkdiv)); in calc_vocalib_pll() 214 if (!mscnt) in calc_vocalib_pll() 215 mscnt = 1; in calc_vocalib_pll() 216 hscnt = (mdiv * mscnt * BIT(drefclkdiv) / refclkdiv) - in calc_vocalib_pll() 219 ((mscnt << CLKMGR_VCOCALIB_MSCNT_OFFSET) & in calc_vocalib_pll() 227 debug("mscnt : %d\n", mscnt); in calc_vocalib_pll()
|
Completed in 8 milliseconds