[U-Boot] [PATCH v7 10/21] sf: Remove spansion_s25fss_disable_4KB_erase

Jagan Teki jagan at openedev.com
Fri Nov 18 12:10:34 CET 2016


On Thu, Nov 17, 2016 at 12:17 PM, Jagan Teki <jagan at openedev.com> wrote:
> From: Jagan Teki <jagan at amarulasolutions.com>
>
> 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 <yunhui.cui at nxp.com>
> Cc: Bin Meng <bmeng.cn at gmail.com>
> Cc: York Sun <york.sun at nxp.com>
> Cc: Vignesh R <vigneshr at ti.com>
> Cc: Mugunthan V N <mugunthanvnm at ti.com>
> Cc: Michal Simek <michal.simek at xilinx.com>
> Cc: Michael Trimarchi <michael at amarulasolutions.com>
> Cc: Siva Durga Prasad Paladugu <sivadur at xilinx.com>
> Signed-off-by: Jagan Teki <jagan at openedev.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> Reviewed-by: Jagan Teki <jagan at openedev.com>
> ---
> Changes for v7:
> - Add SECT_4K S25FS512S

Applied to u-boot-spi/master

thanks!
-- 
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.


More information about the U-Boot mailing list