lib/sw_services/xilflash/src/xilflash_amd.c
static void ExitExtendedBlockMode(XFlash * InstancePtr)
{
	XFlashVendorData_Amd *DevDataPtr;

	DevDataPtr = GET_PARTDATA(InstancePtr);

	/*
	 * Issue Exit Extended Block Command.
	 */
	DevDataPtr->SendCmdSeq(InstancePtr->Geometry.BaseAddress,
			XFL_AMD_CMD1_ADDR, XFL_AMD_CMD2_ADDR,
			XFL_AMD_CMD1_DATA, XFL_AMD_CMD2_DATA);

	DevDataPtr->SendCmd(InstancePtr->Geometry.BaseAddress,
			XFL_AMD_CMD1_ADDR, XFL_AMD_CMD_EXIT_EXT_MODE);

	DevDataPtr->WriteFlash(InstancePtr->Geometry.BaseAddress,
				0, 0);
}
/*****************************************************************************/
/**
*
* This command returns the device to Read mode from Extended Block Mode.
*
* @param	InstancePtr is the pointer to the XFlash instance.
*
* @return
*		None.
*
* @note		None.
*
******************************************************************************/
This command returns the device to Read mode from Extended Block Mode.
This command returns the device to Read mode from Extended Block Mode .
static void ExitExtendedBlockMode(XFlash * InstancePtr)
{
	XFlashVendorData_Amd *DevDataPtr;
	DevDataPtr = GET_PARTDATA(InstancePtr);
	DevDataPtr->SendCmdSeq(InstancePtr->Geometry.BaseAddress,
			XFL_AMD_CMD1_ADDR, XFL_AMD_CMD2_ADDR,
			XFL_AMD_CMD1_DATA, XFL_AMD_CMD2_DATA);
	DevDataPtr->SendCmd(InstancePtr->Geometry.BaseAddress,
			XFL_AMD_CMD1_ADDR, XFL_AMD_CMD_EXIT_EXT_MODE);
	DevDataPtr->WriteFlash(InstancePtr->Geometry.BaseAddress,
				0, 0);
}
static void ExitExtendedBlockMode ( XFlash * InstancePtr ) { XFlashVendorData_Amd * DevDataPtr ; DevDataPtr = GET_PARTDATA ( InstancePtr ) ; DevDataPtr -> SendCmdSeq ( InstancePtr -> Geometry . BaseAddress , XFL_AMD_CMD1_ADDR , XFL_AMD_CMD2_ADDR , XFL_AMD_CMD1_DATA , XFL_AMD_CMD2_DATA ) ; DevDataPtr -> SendCmd ( InstancePtr -> Geometry . BaseAddress , XFL_AMD_CMD1_ADDR , XFL_AMD_CMD_EXIT_EXT_MODE ) ; DevDataPtr -> WriteFlash ( InstancePtr -> Geometry . BaseAddress , 0 , 0 ) ; }
This command returns the device to Read mode from Extended Block Mode.
This command returns the device to Read mode from Extended Block Mode .
/*
	 * Issue Exit Extended Block Command.
	 */