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)
commita1122a3d98430754626547eb0acba11645039881
treed01fcb13b0a86af93a7e296fe47a37c09ed0f39f
parentb058f108d7d91f9a5f47c1d0d3ddf4e6ae030440
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