u-boot/drivers/mtd
Wolfgang Denk dfcd7f2160 Redundant Environment: protect full sector size
Several boards used different ways to specify the size of the
protected area when enabling flash write protection for the sectors
holding the environment variables: some used CONFIG_ENV_SIZE and
CONFIG_ENV_SIZE_REDUND, some used CONFIG_ENV_SECT_SIZE, and some even
a mix of both for the "normal" and the "redundant" areas.

Normally, this makes no difference at all. However, things are
different when you have to deal with boards that can come with
different types of flash chips, which may have different sector
sizes.

Here we may have to chose CONFIG_ENV_SECT_SIZE such that it fits the
biggest sector size, which may include several sectors on boards using
the smaller sector flash types. In such a case, using CONFIG_ENV_SIZE
or CONFIG_ENV_SIZE_REDUND to enable the protection may lead to the
case that only the first of these sectors get protected, while the
following ones aren't.

This is no real problem, but it can be confusing for the user -
especially on boards that use CONFIG_ENV_SECT_SIZE to protect the
"normal" areas, while using CONFIG_ENV_SIZE_REDUND for the
"redundant" area.

To avoid such inconsistencies, I changed all sucn boards that I found
to consistently use CONFIG_ENV_SECT_SIZE for protection. This should
not cause any functional changes to the code.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Paul Ruhland
Cc: Pantelis Antoniou <panto@intracom.gr>
Cc: Stefan Roese <sr@denx.de>
Cc: Gary Jennejohn <garyj@denx.de>
Cc: Dave Ellis <DGE@sixnetio.com>
Acked-by: Stefan Roese <sr@denx.de>
2009-06-04 00:16:16 +02:00
..
nand nand: Fix problem with ECC ordering for PPC4xx NDFC platforms 2009-05-23 12:51:39 +02:00
nand_legacy Noisily disable the legacy NAND subsystem. 2009-04-03 15:27:26 -05:00
onenand mtd: nand/onenand: Register mtd device upon device scanning 2009-04-28 01:15:38 +02:00
spi sf: stmicro: dont send 4 bytes when reading status register 2009-04-02 12:51:28 -04:00
ubi Coding style cleanup, update CHANGELOG. 2008-12-16 01:02:17 +01:00
at45.c drivers/mtd: Move conditional compilation to Makefile 2008-08-13 01:40:42 +02:00
cfi_flash.c Redundant Environment: protect full sector size 2009-06-04 00:16:16 +02:00
cfi_mtd.c cfi_mtd: Fix bug in last sector detection 2009-06-03 23:45:27 +02:00
dataflash.c mtd/dataflash.c: fix a problem with the last partition 2008-12-02 21:53:24 +01:00
jedec_flash.c jedec_flash: Only use manufacturer defines from common flash.h 2009-02-05 11:27:58 +01:00
Makefile CMD_UBI != MTD_PARTITIONS 2009-04-16 23:03:27 +02:00
mtdcore.c mtd: Remove a printf() from add_mtd_device(). 2008-11-24 11:29:53 +01:00
mtdpart.c MTD: Fix problem based on non-working relocation (list head mtd_partitions) 2008-12-09 10:07:23 +01:00
mw_eeprom.c Update i386 code (sc520_cdp) 2008-09-09 11:48:53 +02:00