alp: nand: Added support for all NAND block sizes, when modifying U-Boot/environment size
Added block size alignments, to support large NAND block sizes, when modifying U-Boot/environment size
The alignments are performed according to runtime NAND block-size in use:
- When burning U-Boot, align its size to nearest block
- When saving/deleting environment, aligning its offset and size to nearest block
- removed "SKIP_BAD_BLOCK" test in resetenv cmd, as it now being handled in nand_get_env_offs()
Change-Id: Ibd10cdabc74687b58f102fda3294854573629aa2
Signed-off-by: Omri Itach <omrii@marvell.com>
Reviewed-on: http://vgitil04.il.marvell.com:8080/2759
Reviewed-by: Eli Nidam <elini@marvell.com>
Tested-by: Star_Automation <star@marvell.com>
3 files changed