mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +02:00
sf: Add flag status register polling support
Flag status register polling is required for micron 512Mb flash devices onwards, for performing erase/program operations. Like polling for WIP(Write-In-Progress) bit in read status register, spi_flash_cmd_wait_ready will poll for PEC(Program-Erase-Control) bit in flag status register. Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -46,6 +46,9 @@ struct spi_flash {
|
||||
/* Current flash bank */
|
||||
u8 bank_curr;
|
||||
#endif
|
||||
/* Poll cmd - for flash erase/program */
|
||||
u8 poll_cmd;
|
||||
|
||||
void *memory_map; /* Address of read-only SPI flash access */
|
||||
int (*read)(struct spi_flash *flash, u32 offset,
|
||||
size_t len, void *buf);
|
||||
|
Reference in New Issue
Block a user