/* This function reads RCW to check if Serdes1{A:D} is configured to slot 1/2/3/4/5 and update the lane_to_slot array accordingly  */
static void initialize_lane_to_slot(void)
/* This function reads RCW to check if Serdes1{A:D} is configured to slot 1/2/3/4/5 and update the lane_to_slot array accordingly  */
static void initialize_lane_to_slot(void)
{
	ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
	u32 srds_s1 = in_be32(&gur->rcwsr[4]) &
				FSL_CORENET2_RCWSR4_SRDS1_PRTCL;
	srds_s1 >>= FSL_CORENET2_RCWSR4_SRDS1_PRTCL_SHIFT;
	switch (srds_s1) {
	case 0x46:
	case 0x47:
		lane_to_slot[1] = 2;
		break;
	default:
		break;
	}
}