]> git.dujemihanovic.xyz Git - u-boot.git/commit
sf: Add flag status register polling support
authorJagannadha Sutradharudu Teki <jaganna@xilinx.com>
Fri, 21 Jun 2013 10:26:30 +0000 (15:56 +0530)
committerJagannadha Sutradharudu Teki <jaganna@xilinx.com>
Sun, 23 Jun 2013 16:32:51 +0000 (22:02 +0530)
commit615a1561673a9a1b863f905d40f084f36edb9022
tree76c2bd6819b12b69877c25ef8aaa34f26dba0f30
parentba549de6c53663e534a20741f9ec917fb6526830
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>
drivers/mtd/spi/spi_flash.c
drivers/mtd/spi/spi_flash_internal.h
drivers/mtd/spi/stmicro.c
include/spi_flash.h