diff options
author | TsiChung Liew <Tsi-Chung.Liew@freescale.com> | 2008-08-06 19:37:17 -0500 |
---|---|---|
committer | John Rigby <jrigby@freescale.com> | 2008-08-14 12:31:56 -0600 |
commit | 07efc9e321619c3dec213310c32e011aa6f02783 (patch) | |
tree | 076d8858958bd9e1a0ca6ca8294ce8e0a4dcffc4 /common/cmd_misc.c | |
parent | 4cb4e654cafabaa1ac180d37b00c8f6095dae9c9 (diff) | |
download | u-boot-imx-07efc9e321619c3dec213310c32e011aa6f02783.zip u-boot-imx-07efc9e321619c3dec213310c32e011aa6f02783.tar.gz u-boot-imx-07efc9e321619c3dec213310c32e011aa6f02783.tar.bz2 |
Change CFG_ENV_SIZE to CFG_ENV_SECT_SIZE for SPI sector erase
The CFG_ENV_SIZE is not suitable used for SPI flash erase
sector size if CFG_ENV_SIZE is less than CFG_ENV_SECT_SIZE.
Add condition check if CFG_ENV_SIZE is larger than
CFG_ENV_SECT_SIZE, calculate the right number of sectors for
erasing.
Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
Diffstat (limited to 'common/cmd_misc.c')
0 files changed, 0 insertions, 0 deletions