]> git.baikalelectronics.ru Git - uboot.git/commit
mtd: spi-nor-core: Detect Soft Reset sequence support from BFPT
authorPratyush Yadav <p.yadav@ti.com>
Fri, 25 Jun 2021 19:17:23 +0000 (00:47 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Mon, 28 Jun 2021 06:34:30 +0000 (12:04 +0530)
commit7ad9fd9e9a831989a21c63e5e5dffe4bb264bb59
treed01fcb13b0a86af93a7e296fe47a37c09ed0f39f
parent777d37a807dad98d14b6c12b8397a76ddf2b627b
mtd: spi-nor-core: Detect Soft Reset sequence support from BFPT

A Soft Reset sequence will return the flash to Power-on-Reset (POR)
state. It consists of two commands: Soft Reset Enable and Soft Reset.
Find out if the sequence is supported from BFPT DWORD 16.

Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/mtd/spi/spi-nor-core.c
include/linux/mtd/spi-nor.h