]> Git Repo - J-u-boot.git/commit
sf: Remove spansion_s25fss_disable_4KB_erase
authorJagan Teki <[email protected]>
Tue, 15 Nov 2016 17:27:42 +0000 (22:57 +0530)
committerJagan Teki <[email protected]>
Fri, 18 Nov 2016 07:34:53 +0000 (13:04 +0530)
commit116e005cfd00021424f5f81eeedd355e4ca72f07
tree4947864d8529ccc29a144770a13ee85e15059f29
parent43ecc776cac9b95d5e7fa151138936d03239f439
sf: Remove spansion_s25fss_disable_4KB_erase

In spansion S25FS-S family the physical sectors are grouped as
normal and parameter sectors. Parameter sectors are 4kB in size
with 8 set located at the bottom or top address of a device.
Normal sectors are similar to other flash family with sizes of
64kB or 32 kB.

To erase whole flash using sector erase(D8h or DCh) won't effect
the parameter sectors, so in order to erase these we must use 4K
sector erase commands (20h or 21h) separately.

So better to erase the whole flash using 4K sector erase instead
of detecting these family parts again and do two different erase
operations.

For this:
- Removed spansion_s25fss_disable_4KB_erase code
- Add SECT_4K for S25FS512S chip

Cc: Yunhui Cui <[email protected]>
Cc: Bin Meng <[email protected]>
Cc: York Sun <[email protected]>
Cc: Vignesh R <[email protected]>
Cc: Mugunthan V N <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Michael Trimarchi <[email protected]>
Cc: Siva Durga Prasad Paladugu <[email protected]>
Signed-off-by: Jagan Teki <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Reviewed-by: Jagan Teki <[email protected]>
Tested-by: Jagan Teki <[email protected]>
drivers/mtd/spi/sf_internal.h
drivers/mtd/spi/sf_params.c
drivers/mtd/spi/spi_flash.c
This page took 0.035833 seconds and 4 git commands to generate.