lib/sw_services/xilflash/src/xilflash_amd.c
static void SendCmdSeq8(u32 BaseAddr, u32 Offset1, u32 Offset2, u32 Cmd1,
				u32 Cmd2)
{
	Offset1 = ((2*Offset1) + (!(Offset1 & 0x1)));
	Offset2 = ((2*Offset2) + (!(Offset2 & 0x1)));
	WRITE_FLASH_8(((volatile u8*)BaseAddr) + Offset1, Cmd1);
	WRITE_FLASH_8(((volatile u8*)BaseAddr) + Offset2, Cmd2);
}
/*****************************************************************************/
/**
*
* Writes a command sequence using 8-bit bus cycles.
*
* @param	BaseAddr is the base address of device.
* @param	Offset1 is the first offset address into the device(s) address
*		space on which first command (Cmd1) is required to be written.
* @param	Offset2 is the second offset address into the device(s) address
*		space on which second command (Cmd2) is required to be written.
* @param	Cmd1 is the first command to write at BaseAddress + Offset1.
* @param	Cmd2 is the second command to write at BaseAddress + Offset2.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
Writes a command sequence using 8-bit bus cycles.
Writes a command sequence using 8 - bit bus cycles .
static void SendCmdSeq8(u32 BaseAddr, u32 Offset1, u32 Offset2, u32 Cmd1,
				u32 Cmd2)
{
	Offset1 = ((2*Offset1) + (!(Offset1 & 0x1)));
	Offset2 = ((2*Offset2) + (!(Offset2 & 0x1)));
	WRITE_FLASH_8(((volatile u8*)BaseAddr) + Offset1, Cmd1);
	WRITE_FLASH_8(((volatile u8*)BaseAddr) + Offset2, Cmd2);
}
static void SendCmdSeq8 ( u32 BaseAddr , u32 Offset1 , u32 Offset2 , u32 Cmd1 , u32 Cmd2 ) { Offset1 = ( ( 2 * Offset1 ) + ( ! ( Offset1 & 0x1 ) ) ) ; Offset2 = ( ( 2 * Offset2 ) + ( ! ( Offset2 & 0x1 ) ) ) ; WRITE_FLASH_8 ( ( ( volatile u8 * ) BaseAddr ) + Offset1 , Cmd1 ) ; WRITE_FLASH_8 ( ( ( volatile u8 * ) BaseAddr ) + Offset2 , Cmd2 ) ; }
Writes a command sequence using 8-bit bus cycles.
Writes a command sequence using 8 - bit bus cycles .