XilinxProcessorIPLib/drivers/nandps/src/xnandps_onfi.c
static void Onfi_CmdReadParamPage(XNandPs *InstancePtr)
{
	u8 Status;
	u32 ZeroCommand;

	XNandPs_SendCommand(InstancePtr, &OnfiCommands[READ_PARAM_PAGE],
			XNANDPS_PAGE_NOT_VALID, 0x00);
	/*
	 * Check the Status Register SR[6]
	 */
	do {
		Status = Onfi_CmdReadStatus(InstancePtr);
	}while ((Status & ONFI_STATUS_RDY) != ONFI_STATUS_RDY);

	/*
	 * ONFI : Reissue the 0x00 on the command line to start reading data
	 */
	ZeroCommand = InstancePtr->Config.FlashBase |
			(0 << XNANDPS_ADDR_CYCLES_SHIFT)|
			(0 << XNANDPS_END_CMD_VALID_SHIFT)|
			(XNANDPS_COMMAND_PHASE_MASK)|
			(0 << XNANDPS_END_CMD_SHIFT)|
			(0 << XNANDPS_START_CMD_SHIFT);

	/*
	 * Dummy AXI transaction for sending command 0x00 to the flash
	 */
	Xil_Out32(ZeroCommand, 0x0);
}
/**************************************************************************/
/**
*
* This function sends read parameter page command to the flash device.
*
* @param	InstancePtr is a pointer to the XNandPs instance.
*
* @return	None
*
* @note		None
*
***************************************************************************/
This function sends read parameter page command to the flash device.
This function sends read parameter page command to the flash device .
static void Onfi_CmdReadParamPage(XNandPs *InstancePtr)
{
	u8 Status;
	u32 ZeroCommand;
	XNandPs_SendCommand(InstancePtr, &OnfiCommands[READ_PARAM_PAGE],
			XNANDPS_PAGE_NOT_VALID, 0x00);
	do {
		Status = Onfi_CmdReadStatus(InstancePtr);
	}while ((Status & ONFI_STATUS_RDY) != ONFI_STATUS_RDY);
	ZeroCommand = InstancePtr->Config.FlashBase |
			(0 << XNANDPS_ADDR_CYCLES_SHIFT)|
			(0 << XNANDPS_END_CMD_VALID_SHIFT)|
			(XNANDPS_COMMAND_PHASE_MASK)|
			(0 << XNANDPS_END_CMD_SHIFT)|
			(0 << XNANDPS_START_CMD_SHIFT);
	Xil_Out32(ZeroCommand, 0x0);
}
static void Onfi_CmdReadParamPage ( XNandPs * InstancePtr ) { u8 Status ; u32 ZeroCommand ; XNandPs_SendCommand ( InstancePtr , & OnfiCommands [ READ_PARAM_PAGE ] , XNANDPS_PAGE_NOT_VALID , 0x00 ) ; do { Status = Onfi_CmdReadStatus ( InstancePtr ) ; } while ( ( Status & ONFI_STATUS_RDY ) != ONFI_STATUS_RDY ) ; ZeroCommand = InstancePtr -> Config . FlashBase | ( 0 << XNANDPS_ADDR_CYCLES_SHIFT ) | ( 0 << XNANDPS_END_CMD_VALID_SHIFT ) | ( XNANDPS_COMMAND_PHASE_MASK ) | ( 0 << XNANDPS_END_CMD_SHIFT ) | ( 0 << XNANDPS_START_CMD_SHIFT ) ; Xil_Out32 ( ZeroCommand , 0x0 ) ; }
This function sends read parameter page command to the flash device.
This function sends read parameter page command to the flash device .
/*
	 * Check the Status Register SR[6]
	 */ /*
	 * ONFI : Reissue the 0x00 on the command line to start reading data
	 */ /*
	 * Dummy AXI transaction for sending command 0x00 to the flash
	 */