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

	/* HIF address bits used as row address bits 2U to 10U */
	DdrDataPtr->AddrMapRowBits2To10 = 15U;

	/* Calculate Row Addresses */
	for (RowBit = 0U; RowBit < XFSBL_MAX_ROWS; RowBit++) {
		if (RowBit < PDimmPtr->NumRowAddr) {
			Index = RowBit + 6U;

			while (HifAddr[Index] != XFSBL_HIF_ROW(RowBit)) {
				Index++;
			}

			DdrDataPtr->AddrMapRowBit[RowBit] = Index -
				(RowBit + 6U);
		} else {
			DdrDataPtr->AddrMapRowBit[RowBit] = 0xFU;
		}
	}
}
/*****************************************************************************/
/**
 * This function calculates the Row 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 Row 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 Row 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_DdrCalcRowAddr(struct DdrcInitData *DdrDataPtr, u32 *HifAddr)
{
	u32 Index;
	u32 RowBit;
	XFsbl_DimmParams *PDimmPtr = &DdrDataPtr->PDimm;
	DdrDataPtr->AddrMapRowBits2To10 = 15U;
	for (RowBit = 0U; RowBit < XFSBL_MAX_ROWS; RowBit++) {
		if (RowBit < PDimmPtr->NumRowAddr) {
			Index = RowBit + 6U;
			while (HifAddr[Index] != XFSBL_HIF_ROW(RowBit)) {
				Index++;
			}
			DdrDataPtr->AddrMapRowBit[RowBit] = Index -
				(RowBit + 6U);
		} else {
			DdrDataPtr->AddrMapRowBit[RowBit] = 0xFU;
		}
	}
}
static void XFsbl_DdrCalcRowAddr ( struct DdrcInitData * DdrDataPtr , u32 * HifAddr ) { u32 Index ; u32 RowBit ; XFsbl_DimmParams * PDimmPtr = & DdrDataPtr -> PDimm ; DdrDataPtr -> AddrMapRowBits2To10 = 15U ; for ( RowBit = 0U ; RowBit < XFSBL_MAX_ROWS ; RowBit ++ ) { if ( RowBit < PDimmPtr -> NumRowAddr ) { Index = RowBit + 6U ; while ( HifAddr [ Index ] != XFSBL_HIF_ROW ( RowBit ) ) { Index ++ ; } DdrDataPtr -> AddrMapRowBit [ RowBit ] = Index - ( RowBit + 6U ) ; } else { DdrDataPtr -> AddrMapRowBit [ RowBit ] = 0xFU ; } } }
This function calculates the Row 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 Row 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
/* HIF address bits used as row address bits 2U to 10U */ /* Calculate Row Addresses */