]> git.baikalelectronics.ru Git - uboot.git/commit
mtd: cfi: Add support for status register polling
authorMarek Vasut <marek.vasut@gmail.com>
Tue, 12 Sep 2017 17:09:31 +0000 (19:09 +0200)
committerStefan Roese <sr@denx.de>
Tue, 26 Sep 2017 08:57:53 +0000 (10:57 +0200)
commit7d29722029b2c8303c3d51b5b6c14ec16dc32ff9
tree2444e445363b16d59c133d1b2aa4a05917033642
parent886f5e3a247f89323ea1b0fa37fd65de458340e7
mtd: cfi: Add support for status register polling

The status register is optional in the AMD command sets, but it's
presence can be checked by reading out CFI table entry 0xc bit 0.
If the register is present, prefer using it's bit 7 to determine
if the flash is busy over reading the flash ; this is needed ie.
on Hyperflash memories.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Signed-off-by: Stefan Roese <sr@denx.de>
drivers/mtd/cfi_flash.c
include/flash.h
include/mtd/cfi_flash.h