lib/sw_apps/zynqmp_fsbl/src/xfsbl_ddr_init.c
static u32 XFsbl_DdrComputeDimmParameters(u8 *SpdData,
		struct DdrcInitData *DdrDataPtr)
{
	u32 Status = XFSBL_FAILURE;

	switch (SpdData[2U]) {
	case SPD_MEMTYPE_DDR4:
		Status = XFsbl_ComputeDdr4Params(SpdData, DdrDataPtr);
		break;
	case SPD_MEMTYPE_DDR3:
		Status = XFsbl_ComputeDdr3Params(SpdData, DdrDataPtr);
		break;
	case SPD_MEMTYPE_LPDDR3:
	case SPD_MEMTYPE_LPDDR4:
		Status = XFsbl_ComputeLpDdrParams(SpdData, DdrDataPtr);
		break;
	default:
		/* Do nothing as Status is initialized to XFSBL_FAILURE */
		break;
	}

	return Status;
}
/*****************************************************************************/
/**
 * This function computes DIMM parameters based upon the SPD information.
 *
 * @param	DdrDataPtr is pointer to DDR Initialization Data Structure
 * @param	SpdData is the array containing SPD data got from EEPROM
 *
 * @return	XFSBL_SUCCESS or XFSBL_FAILURE
 *
 *****************************************************************************/
This function computes DIMM parameters based upon the SPD information.
@param       DdrDataPtr is pointer to DDR Initialization Data Structure
@param       SpdData is the array containing SPD data got from EEPROM


This function computes DIMM parameters based upon the SPD information . @param DdrDataPtr is pointer to DDR Initialization Data Structure @param SpdData is the array containing SPD data got from EEPROM
static u32 XFsbl_DdrComputeDimmParameters(u8 *SpdData,
		struct DdrcInitData *DdrDataPtr)
{
	u32 Status = XFSBL_FAILURE;
	switch (SpdData[2U]) {
	case SPD_MEMTYPE_DDR4:
		Status = XFsbl_ComputeDdr4Params(SpdData, DdrDataPtr);
		break;
	case SPD_MEMTYPE_DDR3:
		Status = XFsbl_ComputeDdr3Params(SpdData, DdrDataPtr);
		break;
	case SPD_MEMTYPE_LPDDR3:
	case SPD_MEMTYPE_LPDDR4:
		Status = XFsbl_ComputeLpDdrParams(SpdData, DdrDataPtr);
		break;
	default:
		break;
	}
	return Status;
}
static u32 XFsbl_DdrComputeDimmParameters ( u8 * SpdData , struct DdrcInitData * DdrDataPtr ) { u32 Status = XFSBL_FAILURE ; switch ( SpdData [ 2U ] ) { case SPD_MEMTYPE_DDR4 : Status = XFsbl_ComputeDdr4Params ( SpdData , DdrDataPtr ) ; break ; case SPD_MEMTYPE_DDR3 : Status = XFsbl_ComputeDdr3Params ( SpdData , DdrDataPtr ) ; break ; case SPD_MEMTYPE_LPDDR3 : case SPD_MEMTYPE_LPDDR4 : Status = XFsbl_ComputeLpDdrParams ( SpdData , DdrDataPtr ) ; break ; default : break ; } return Status ; }
This function computes DIMM parameters based upon the SPD information.
This function computes DIMM parameters based upon the SPD information .
/* Do nothing as Status is initialized to XFSBL_FAILURE */