This API enters the flash device into 4 bytes addressing mode. As per the Micron spec, before issuing the command to enter into 4 byte addr mode, a write enable command is issued.
Prototype
u32 XSfl_FlashEnterExit4BAddMode(XSfl_Interface *SflInstnacePtr, int Enable, u8 ChpiSelect);
Parameters
The following table lists the XSfl_FlashEnterExit4BAddMode function arguments.
| Type | Name | Description |
|---|---|---|
| XSfl_Interface | SflInstancePtr |
is a pointer to the
XSfl_Interface
driver component to use.
|
| int | Enable | is a either 1 or 0 if 1 then enters 4 byte if 0 exits. |
| u8 | ChipSelNum | is the chip select number. |
Returns
- XST_SUCCESS if successful
- XST_FAILURE - In case of failure