XilinxProcessorIPLib/drivers/nandps/src/xnandps_onfi.c
static void Onfi_WriteData(XNandPs *InstancePtr, u8 *Buf, u32 Length)
{
	u32 Index;

	/*
	 * 8-bit/16-bit access for basic write operations
	 */
	for(Index = 0; Index < Length; Index++) {
		if (InstancePtr->Config.FlashWidth == XNANDPS_FLASH_WIDTH_16)
			Xil_Out16(InstancePtr->DataPhaseAddr, Buf[Index]);
		else
			Xil_Out8(InstancePtr->DataPhaseAddr, Buf[Index]);
	}
}
/**************************************************************************/
/**
*
* This function writes command data to flash. It is used for writing the
* control information like set features.
*
* @param	InstancePtr is a pointer to the XNandPs instance.
* @param	Buf is the buffer pointer to write the data.
* @param	Length is the length of data to write.
*
* @return	None
*
* @note		None
*
***************************************************************************/
This function writes command data to flash. It is used for writing the
control information like set features.
This function writes command data to flash . It is used for writing the control information like set features .
static void Onfi_WriteData(XNandPs *InstancePtr, u8 *Buf, u32 Length)
{
	u32 Index;
	for(Index = 0; Index < Length; Index++) {
		if (InstancePtr->Config.FlashWidth == XNANDPS_FLASH_WIDTH_16)
			Xil_Out16(InstancePtr->DataPhaseAddr, Buf[Index]);
		else
			Xil_Out8(InstancePtr->DataPhaseAddr, Buf[Index]);
	}
}
static void Onfi_WriteData ( XNandPs * InstancePtr , u8 * Buf , u32 Length ) { u32 Index ; for ( Index = 0 ; Index < Length ; Index ++ ) { if ( InstancePtr -> Config . FlashWidth == XNANDPS_FLASH_WIDTH_16 ) Xil_Out16 ( InstancePtr -> DataPhaseAddr , Buf [ Index ] ) ; else Xil_Out8 ( InstancePtr -> DataPhaseAddr , Buf [ Index ] ) ; } }
This function writes command data to flash.
This function writes command data to flash .
/*
	 * 8-bit/16-bit access for basic write operations
	 */