Lines Matching refs:mck_divisor
839 uint32_t mck_divisor; in get_mck_clock_divisor() local
842 mck_divisor = GMAC_NCFGR_CLK_MCK_8; in get_mck_clock_divisor()
844 mck_divisor = GMAC_NCFGR_CLK_MCK_16; in get_mck_clock_divisor()
846 mck_divisor = GMAC_NCFGR_CLK_MCK_32; in get_mck_clock_divisor()
848 mck_divisor = GMAC_NCFGR_CLK_MCK_48; in get_mck_clock_divisor()
850 mck_divisor = GMAC_NCFGR_CLK_MCK_64; in get_mck_clock_divisor()
852 mck_divisor = GMAC_NCFGR_CLK_MCK_96; in get_mck_clock_divisor()
855 mck_divisor = -ENOTSUP; in get_mck_clock_divisor()
858 return mck_divisor; in get_mck_clock_divisor()
1054 int mck_divisor; in gmac_init() local
1056 mck_divisor = get_mck_clock_divisor(MCK_FREQ_HZ); in gmac_init()
1057 if (mck_divisor < 0) { in gmac_init()
1058 return mck_divisor; in gmac_init()
1076 gmac->GMAC_NCFGR = gmac_ncfgr_val | mck_divisor; in gmac_init()