/* Returns the name of the slot to which the PCIe or SATA controller is connected  */
const char* board_serdes_name(enum srds_prtcl device)
/* Returns the name of the slot to which the PCIe or SATA controller is connected  */
const char* board_serdes_name(enum srds_prtcl device)
{
	ccsr_gur_t *gur = (void *)CONFIG_SYS_MPC85xx_GUTS_ADDR;
	u32 pordevsr = in_be32(&gur->pordevsr);
	unsigned int srds_cfg = (pordevsr & MPC85xx_PORDEVSR_IO_SEL) >>
				MPC85xx_PORDEVSR_IO_SEL_SHIFT;
	enum slot_id slot = serdes_dev_slot[srds_cfg][device];
	const char *name = slot_names[slot];
	if (name)
		return name;
	else
		return "Nothing";
}