lib/sw_apps/zynqmp_fsbl/src/xfsbl_ddr_init.c
static void XFsbl_DdrCalcColAddr(struct DdrcInitData *DdrDataPtr, u32 *HifAddr)
{
	u32 Index;
	u32 ColBit;
	XFsbl_DimmParams *PDimmPtr = &DdrDataPtr->PDimm;

	/* Calculate Column Addresses */
	for (ColBit = 2U; ColBit < XFSBL_MAX_COLUMNS; ColBit++) {
		if (ColBit < PDimmPtr->NumColAddr) {
			Index = ColBit;

			while (HifAddr[Index] != XFSBL_HIF_COLUMN(ColBit)) {
				Index++;
			}

			DdrDataPtr->AddrMapColBit[ColBit] = Index - ColBit;
		} else {
			DdrDataPtr->AddrMapColBit[ColBit] = 0xFU;
		}
	}
}
/*****************************************************************************/
/**
 * This function calculates the Column Address Map based on HIF Addresses
 *
 * @param	DdrDataPtr is pointer to DDR Initialization Data Structure
 * @param	HifAddr is the pointer to the HIF Addresses Array
 *
 * @return	None
 *
 *****************************************************************************/
This function calculates the Column Address Map based on HIF Addresses
@param       DdrDataPtr is pointer to DDR Initialization Data Structure
@param       HifAddr is the pointer to the HIF Addresses Array

@return      None
This function calculates the Column Address Map based on HIF Addresses @param DdrDataPtr is pointer to DDR Initialization Data Structure @param HifAddr is the pointer to the HIF Addresses Array @return None
static void XFsbl_DdrCalcColAddr(struct DdrcInitData *DdrDataPtr, u32 *HifAddr)
{
	u32 Index;
	u32 ColBit;
	XFsbl_DimmParams *PDimmPtr = &DdrDataPtr->PDimm;
	for (ColBit = 2U; ColBit < XFSBL_MAX_COLUMNS; ColBit++) {
		if (ColBit < PDimmPtr->NumColAddr) {
			Index = ColBit;
			while (HifAddr[Index] != XFSBL_HIF_COLUMN(ColBit)) {
				Index++;
			}
			DdrDataPtr->AddrMapColBit[ColBit] = Index - ColBit;
		} else {
			DdrDataPtr->AddrMapColBit[ColBit] = 0xFU;
		}
	}
}
static void XFsbl_DdrCalcColAddr ( struct DdrcInitData * DdrDataPtr , u32 * HifAddr ) { u32 Index ; u32 ColBit ; XFsbl_DimmParams * PDimmPtr = & DdrDataPtr -> PDimm ; for ( ColBit = 2U ; ColBit < XFSBL_MAX_COLUMNS ; ColBit ++ ) { if ( ColBit < PDimmPtr -> NumColAddr ) { Index = ColBit ; while ( HifAddr [ Index ] != XFSBL_HIF_COLUMN ( ColBit ) ) { Index ++ ; } DdrDataPtr -> AddrMapColBit [ ColBit ] = Index - ColBit ; } else { DdrDataPtr -> AddrMapColBit [ ColBit ] = 0xFU ; } } }
This function calculates the Column Address Map based on HIF Addresses
 @param       DdrDataPtr is pointer to DDR Initialization Data Structure
 @param       HifAddr is the pointer to the HIF Addresses Array
This function calculates the Column Address Map based on HIF Addresses @param DdrDataPtr is pointer to DDR Initialization Data Structure @param HifAddr is the pointer to the HIF Addresses Array
/* Calculate Column Addresses */