/* DESCRIPTION: Get the mapping of Serdes Selector values according to the Serdes revision number INPUT: serdes_num - Serdes number serdes_type - Serdes type OUTPUT: None RETURN: Mapping of Serdes Selector values  */
u32 hws_serdes_get_phy_selector_val(int serdes_num, enum serdes_type serdes_type)
/* DESCRIPTION: Get the mapping of Serdes Selector values according to the Serdes revision number INPUT: serdes_num - Serdes number serdes_type - Serdes type OUTPUT: None RETURN: Mapping of Serdes Selector values  */
u32 hws_serdes_get_phy_selector_val(int serdes_num, enum serdes_type serdes_type)
{
	if (serdes_type >= LAST_SERDES_TYPE)
		return 0xff;
	if (hws_ctrl_serdes_rev_get() == MV_SERDES_REV_1_2) {
		return selectors_serdes_rev1_map
			[serdes_type][serdes_num];
	} else
		return selectors_serdes_rev2_map
			[serdes_type][serdes_num];
}