u-boot-brain/drivers
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
..
bios_emulator drivers/bios_emulator: Move conditional compilation to Makefile 2008-12-07 01:29:31 +01:00
block Update CHANGELOG, coding style cleanup. 2009-04-05 00:27:57 +02:00
dma drivers/dma: Move conditional compilation to Makefile 2008-08-13 01:40:39 +02:00
fpga fpga: Fix Spartan III FPGA booting 2009-02-21 22:52:44 +01:00
gpio i.MX31: add a simple gpio driver 2009-02-24 09:43:10 +01:00
hwmon rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
i2c Merge branch 'master' of git://git.denx.de/u-boot-arm 2009-04-02 00:24:33 +02:00
input Rename common ns16550 constants with UART_ prefix to prevent conflicts 2009-04-03 22:34:07 +02:00
misc fsl_law: Fix bug in calculation of LAW sizing 2009-04-04 10:21:40 -05:00
mmc mmc: it's safe to ignore mmc_send_if_cond() return value 2009-06-04 00:15:09 +02:00
mtd Redundant Environment: protect full sector size 2009-06-04 00:16:16 +02:00
net dm9000 EEPROM reading bugfix 2009-04-28 00:28:18 +02:00
pci fsl_pci: Renamed immap_fsl_pci.h to fsl_pci.h 2009-04-04 10:21:29 -05:00
pcmcia mpc8xx_pcmcia: move CONFIG_8xx out of .c file and into Makefile 2009-02-18 00:51:21 +01:00
qe Update CHANGELOG, coding style cleanup. 2009-04-05 00:27:57 +02:00
rtc Update CHANGELOG, coding style cleanup. 2009-04-05 00:27:57 +02:00
serial Fix e-mail address of Gary Jennejohn. 2009-05-15 22:11:59 +02:00
spi Blackfin: spi: fix pin handling of SPI0 SSEL4 2009-05-29 17:11:33 -04:00
twserial drivers/twserial: Add protocol driver for "three wire serial" interface. 2009-03-30 09:38:36 +02:00
usb Fix e-mail address of Gary Jennejohn. 2009-05-15 22:11:59 +02:00
video video: fix bug in cfb_console.c code 2009-04-28 10:55:13 +02:00
watchdog at91sam9: add watchdog support 2009-04-04 20:42:19 +02:00