sf: Disable 4-KB erase command for SPANSION S25FS-S family
authorYuan Yao <yao.yuan@nxp.com>
Tue, 15 Mar 2016 06:36:43 +0000 (14:36 +0800)
committerYork Sun <york.sun@nxp.com>
Wed, 18 May 2016 15:51:24 +0000 (08:51 -0700)
commit80c1bfd2332e71dfe669cac53ba06b7435a7ca39
tree6adfe130d378dcae88fbc44f77e8e85886c2fcbf
parentfebffe8dd1c7ba841890eec578b050bb6faa3273
sf: Disable 4-KB erase command for SPANSION S25FS-S family

The S25FS-S family physical sectors may be configured as a hybrid
combination of eight 4-kB parameter sectors at the top or bottom
of the address space with all but one of the remaining sectors
being uniform size.
The default status of the flash is in this hybrid architecture.
The parameter sectors and the uniform sectors have different erase
commands.
This patch disable the hybrid sector architecture then the flash will
has uniform sector size and uniform erase command.
This configuration is temporary, the flash will revert to hybrid
architecture after power on reset.

Signed-off-by: Yuan Yao <yao.yuan@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
drivers/mtd/spi/spi_flash.c