Skip to content

Commit

Permalink
rename CFG_ENV_IS_IN_FLASH in CONFIG_ENV_IS_IN_FLASH
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
  • Loading branch information
plagnioj committed Sep 10, 2008
1 parent 7d9b5ba commit 5a1aceb
Show file tree
Hide file tree
Showing 463 changed files with 591 additions and 591 deletions.
4 changes: 2 additions & 2 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -2104,7 +2104,7 @@ The following definitions that deal with the placement and management
of environment data (variable area); in general, we support the
following configurations:

- CFG_ENV_IS_IN_FLASH:
- CONFIG_ENV_IS_IN_FLASH:

Define this if the environment is in flash memory.

Expand Down Expand Up @@ -2146,7 +2146,7 @@ following configurations:

- CFG_ENV_SIZE:

If you use this in combination with CFG_ENV_IS_IN_FLASH
If you use this in combination with CONFIG_ENV_IS_IN_FLASH
and CFG_ENV_SECT_SIZE, you can specify to use only a part
of this flash sector for the environment. This saves
memory for the RAM copy of the environment.
Expand Down
2 changes: 1 addition & 1 deletion board/LEOX/elpt860/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ flash_init (void)
&flash_info[0]);
#endif

#ifdef CFG_ENV_IS_IN_FLASH
#ifdef CONFIG_ENV_IS_IN_FLASH
/* ENV protection ON by default */
flash_protect(FLAG_PROTECT_SET,
CFG_ENV_ADDR,
Expand Down
2 changes: 1 addition & 1 deletion board/MAI/AmigaOneG3SE/flash_new.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ unsigned long flash_init (void)
&flash_info[0]);
#endif

#ifdef CFG_ENV_IS_IN_FLASH
#ifdef CONFIG_ENV_IS_IN_FLASH
/* ENV protection ON by default */
flash_protect(FLAG_PROTECT_SET,
CFG_ENV_ADDR,
Expand Down
2 changes: 1 addition & 1 deletion board/RPXlite_dw/README
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ make distclean
make RPXlite_DW_64_config
make all

2. CFG_ENV_IS_IN_FLASH/CONFIG_ENV_IS_IN_NVRAM
2. CONFIG_ENV_IS_IN_FLASH/CONFIG_ENV_IS_IN_NVRAM

The default environment parameter is stored in FLASH because it is a common choice for
environment parameter.So I make NVRAM as backup parameter storeage.The reason why I
Expand Down
2 changes: 1 addition & 1 deletion board/RRvision/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ unsigned long flash_init (void)
&flash_info[0]);
#endif

#ifdef CFG_ENV_IS_IN_FLASH
#ifdef CONFIG_ENV_IS_IN_FLASH
/* ENV protection ON by default */
flash_protect(FLAG_PROTECT_SET,
CFG_ENV_ADDR,
Expand Down
4 changes: 2 additions & 2 deletions board/a3000/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <common.h>
#include <mpc824x.h>

#if defined(CFG_ENV_IS_IN_FLASH)
#if defined(CONFIG_ENV_IS_IN_FLASH)
# ifndef CFG_ENV_ADDR
# define CFG_ENV_ADDR (CFG_FLASH_BASE + CFG_ENV_OFFSET)
# endif
Expand Down Expand Up @@ -108,7 +108,7 @@ unsigned long flash_init (void)
&flash_info[0]);
#endif

#ifdef CFG_ENV_IS_IN_FLASH
#ifdef CONFIG_ENV_IS_IN_FLASH
/* ENV protection ON by default */
DEBUGF("protect environtment %x @ %x\n", CFG_ENV_ADDR, CFG_ENV_SECT_SIZE);
flash_protect(FLAG_PROTECT_SET,
Expand Down
4 changes: 2 additions & 2 deletions board/amcc/bamboo/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,11 @@ unsigned long flash_init(void)
(void)flash_protect(FLAG_PROTECT_SET, CFG_MONITOR_BASE,
CFG_MONITOR_BASE + CFG_MONITOR_LEN - 1,
&flash_info[i]);
#if defined(CFG_ENV_IS_IN_FLASH)
#if defined(CONFIG_ENV_IS_IN_FLASH)
(void)flash_protect(FLAG_PROTECT_SET, CFG_ENV_ADDR,
CFG_ENV_ADDR + CFG_ENV_SECT_SIZE - 1,
&flash_info[i]);
#if defined(CFG_ENV_IS_IN_FLASH) && defined(CFG_ENV_ADDR_REDUND)
#if defined(CONFIG_ENV_IS_IN_FLASH) && defined(CFG_ENV_ADDR_REDUND)
(void)flash_protect(FLAG_PROTECT_SET, CFG_ENV_ADDR_REDUND,
CFG_ENV_ADDR_REDUND + CFG_ENV_SECT_SIZE - 1,
&flash_info[i]);
Expand Down
2 changes: 1 addition & 1 deletion board/amcc/bubinga/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ unsigned long flash_init(void)
CFG_MONITOR_BASE,
CFG_MONITOR_BASE + CFG_MONITOR_LEN - 1,
&flash_info[0]);
#ifdef CFG_ENV_IS_IN_FLASH
#ifdef CONFIG_ENV_IS_IN_FLASH
(void)flash_protect(FLAG_PROTECT_SET, CFG_ENV_ADDR,
CFG_ENV_ADDR + CFG_ENV_SECT_SIZE - 1,
&flash_info[0]);
Expand Down
2 changes: 1 addition & 1 deletion board/amcc/ebony/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ unsigned long flash_init(void)
(void)flash_protect(FLAG_PROTECT_SET, CFG_MONITOR_BASE,
CFG_MONITOR_BASE + CFG_MONITOR_LEN - 1,
&flash_info[2]);
#ifdef CFG_ENV_IS_IN_FLASH
#ifdef CONFIG_ENV_IS_IN_FLASH
(void)flash_protect(FLAG_PROTECT_SET, CFG_ENV_ADDR,
CFG_ENV_ADDR + CFG_ENV_SECT_SIZE - 1,
&flash_info[2]);
Expand Down
2 changes: 1 addition & 1 deletion board/amcc/kilauea/kilauea.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ int board_early_init_f (void)

int misc_init_r(void)
{
#ifdef CFG_ENV_IS_IN_FLASH
#ifdef CONFIG_ENV_IS_IN_FLASH
/* Monitor protection ON by default */
flash_protect(FLAG_PROTECT_SET,
-CFG_MONITOR_LEN,
Expand Down
2 changes: 1 addition & 1 deletion board/amcc/luan/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ unsigned long flash_init(void)
(void)flash_protect(FLAG_PROTECT_SET, CFG_MONITOR_BASE,
CFG_MONITOR_BASE + CFG_MONITOR_LEN - 1,
&flash_info[2]);
#ifdef CFG_ENV_IS_IN_FLASH
#ifdef CONFIG_ENV_IS_IN_FLASH
(void)flash_protect(FLAG_PROTECT_SET, CFG_ENV_ADDR,
CFG_ENV_ADDR + CFG_ENV_SECT_SIZE - 1,
&flash_info[2]);
Expand Down
2 changes: 1 addition & 1 deletion board/amcc/makalu/makalu.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ int board_early_init_f (void)

int misc_init_r(void)
{
#ifdef CFG_ENV_IS_IN_FLASH
#ifdef CONFIG_ENV_IS_IN_FLASH
/* Monitor protection ON by default */
flash_protect(FLAG_PROTECT_SET,
-CFG_MONITOR_LEN,
Expand Down
2 changes: 1 addition & 1 deletion board/amcc/ocotea/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ unsigned long flash_init(void)
(void)flash_protect(FLAG_PROTECT_SET, CFG_MONITOR_BASE,
CFG_MONITOR_BASE + CFG_MONITOR_LEN - 1,
&flash_info[i]);
#ifdef CFG_ENV_IS_IN_FLASH
#ifdef CONFIG_ENV_IS_IN_FLASH
(void)flash_protect(FLAG_PROTECT_SET, CFG_ENV_ADDR,
CFG_ENV_ADDR + CFG_ENV_SECT_SIZE - 1,
&flash_info[i]);
Expand Down
2 changes: 1 addition & 1 deletion board/amcc/sequoia/sequoia.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ int misc_init_r(void)
*/
flash_get_size(gd->bd->bi_flashstart, 0);

#ifdef CFG_ENV_IS_IN_FLASH
#ifdef CONFIG_ENV_IS_IN_FLASH
/* Monitor protection ON by default */
(void)flash_protect(FLAG_PROTECT_SET,
-CFG_MONITOR_LEN,
Expand Down
2 changes: 1 addition & 1 deletion board/amcc/taihu/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ unsigned long flash_init(void)
CFG_MONITOR_BASE,
CFG_MONITOR_BASE + CFG_MONITOR_LEN - 1,
&flash_info[0]);
#ifdef CFG_ENV_IS_IN_FLASH
#ifdef CONFIG_ENV_IS_IN_FLASH
(void)flash_protect(FLAG_PROTECT_SET, CFG_ENV_ADDR,
CFG_ENV_ADDR + CFG_ENV_SECT_SIZE - 1,
&flash_info[0]);
Expand Down
2 changes: 1 addition & 1 deletion board/amcc/walnut/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ unsigned long flash_init(void)
CFG_MONITOR_BASE,
CFG_MONITOR_BASE + CFG_MONITOR_LEN - 1,
&flash_info[0]);
#ifdef CFG_ENV_IS_IN_FLASH
#ifdef CONFIG_ENV_IS_IN_FLASH
(void)flash_protect(FLAG_PROTECT_SET, CFG_ENV_ADDR,
CFG_ENV_ADDR + CFG_ENV_SECT_SIZE - 1,
&flash_info[0]);
Expand Down
2 changes: 1 addition & 1 deletion board/amcc/yucca/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ unsigned long flash_init(void)
(void)flash_protect(FLAG_PROTECT_SET, CFG_MONITOR_BASE,
CFG_MONITOR_BASE + CFG_MONITOR_LEN - 1,
&flash_info[i]);
#if defined(CFG_ENV_IS_IN_FLASH)
#if defined(CONFIG_ENV_IS_IN_FLASH)
(void)flash_protect(FLAG_PROTECT_SET, CFG_ENV_ADDR,
CFG_ENV_ADDR + CFG_ENV_SECT_SIZE - 1,
&flash_info[i]);
Expand Down
2 changes: 1 addition & 1 deletion board/atc/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ unsigned long flash_init (void)
flash_get_info(CFG_MONITOR_BASE));
#endif

#ifdef CFG_ENV_IS_IN_FLASH
#ifdef CONFIG_ENV_IS_IN_FLASH
/* ENV protection ON by default */
flash_protect(FLAG_PROTECT_SET,
CFG_ENV_ADDR,
Expand Down
4 changes: 2 additions & 2 deletions board/barco/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips */

#if defined(CFG_ENV_IS_IN_FLASH)
#if defined(CONFIG_ENV_IS_IN_FLASH)
# ifndef CFG_ENV_ADDR
# define CFG_ENV_ADDR (CFG_FLASH_BASE + CFG_ENV_OFFSET)
# endif
Expand Down Expand Up @@ -224,7 +224,7 @@ unsigned long flash_init(void)
&flash_info[0]);
#endif

#if defined(CFG_ENV_IS_IN_FLASH) && defined(CFG_ENV_ADDR)
#if defined(CONFIG_ENV_IS_IN_FLASH) && defined(CFG_ENV_ADDR)
flash_protect(FLAG_PROTECT_SET,
CFG_ENV_ADDR,
CFG_ENV_ADDR + CFG_ENV_SIZE - 1,
Expand Down
4 changes: 2 additions & 2 deletions board/bmw/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips */

#if defined(CFG_ENV_IS_IN_FLASH)
#if defined(CONFIG_ENV_IS_IN_FLASH)
# ifndef CFG_ENV_ADDR
# define CFG_ENV_ADDR (CFG_FLASH_BASE + CFG_ENV_OFFSET)
# endif
Expand Down Expand Up @@ -224,7 +224,7 @@ unsigned long flash_init (void)
&flash_info[0]);
#endif

#if defined(CFG_ENV_IS_IN_FLASH) && defined(CFG_ENV_ADDR)
#if defined(CONFIG_ENV_IS_IN_FLASH) && defined(CFG_ENV_ADDR)
flash_protect (FLAG_PROTECT_SET,
CFG_ENV_ADDR,
CFG_ENV_ADDR + CFG_ENV_SIZE - 1,
Expand Down
4 changes: 2 additions & 2 deletions board/c2mon/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ unsigned long flash_init (void)
&flash_info[0]);
#endif

#ifdef CFG_ENV_IS_IN_FLASH
#ifdef CONFIG_ENV_IS_IN_FLASH
/* ENV protection ON by default */
flash_protect(FLAG_PROTECT_SET,
CFG_ENV_ADDR,
Expand All @@ -122,7 +122,7 @@ unsigned long flash_init (void)
&flash_info[1]);
#endif

#ifdef CFG_ENV_IS_IN_FLASH
#ifdef CONFIG_ENV_IS_IN_FLASH
/* ENV protection ON by default */
flash_protect(FLAG_PROTECT_SET,
CFG_ENV_ADDR,
Expand Down
2 changes: 1 addition & 1 deletion board/cmc_pu2/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ unsigned long flash_init (void)
flash_get_info(CFG_MONITOR_BASE));
#endif

#ifdef CFG_ENV_IS_IN_FLASH
#ifdef CONFIG_ENV_IS_IN_FLASH
/* ENV protection ON by default */
flash_protect(FLAG_PROTECT_SET,
CFG_ENV_ADDR,
Expand Down
4 changes: 2 additions & 2 deletions board/cmi/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include <common.h>
#include <mpc5xx.h>

#if defined(CFG_ENV_IS_IN_FLASH)
#if defined(CONFIG_ENV_IS_IN_FLASH)
# ifndef CFG_ENV_ADDR
# define CFG_ENV_ADDR (CFG_FLASH_BASE + CFG_ENV_OFFSET)
# endif
Expand Down Expand Up @@ -110,7 +110,7 @@ unsigned long flash_init (void)
&flash_info[0]);
#endif

#ifdef CFG_ENV_IS_IN_FLASH
#ifdef CONFIG_ENV_IS_IN_FLASH
/* ENV protection ON by default */
flash_protect(FLAG_PROTECT_SET,
CFG_ENV_ADDR,
Expand Down
4 changes: 2 additions & 2 deletions board/cogent/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips */

#if defined(CFG_ENV_IS_IN_FLASH)
#if defined(CONFIG_ENV_IS_IN_FLASH)
# ifndef CFG_ENV_ADDR
# define CFG_ENV_ADDR (CFG_FLASH_BASE + CFG_ENV_OFFSET)
# endif
Expand Down Expand Up @@ -327,7 +327,7 @@ flash_init(void)
&flash_info[0]);
#endif

#ifdef CFG_ENV_IS_IN_FLASH
#ifdef CONFIG_ENV_IS_IN_FLASH
/* ENV protection ON by default */
flash_protect(FLAG_PROTECT_SET,
CFG_ENV_ADDR,
Expand Down
4 changes: 2 additions & 2 deletions board/cpc45/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <mpc824x.h>
#include <asm/processor.h>

#if defined(CFG_ENV_IS_IN_FLASH)
#if defined(CONFIG_ENV_IS_IN_FLASH)
# ifndef CFG_ENV_ADDR
# define CFG_ENV_ADDR (CFG_FLASH_BASE + CFG_ENV_OFFSET)
# endif
Expand Down Expand Up @@ -174,7 +174,7 @@ unsigned long flash_init (void)
&flash_info[0]);
#endif

#if defined(CFG_ENV_IS_IN_FLASH) && defined(CFG_ENV_ADDR)
#if defined(CONFIG_ENV_IS_IN_FLASH) && defined(CFG_ENV_ADDR)
#if CFG_ENV_ADDR >= CFG_FLASH_BASE + FLASH_BANK_SIZE
flash_protect (FLAG_PROTECT_SET,
CFG_ENV_ADDR,
Expand Down
2 changes: 1 addition & 1 deletion board/cpu86/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ unsigned long flash_init (void)
#endif
#endif

#if defined(CFG_ENV_IS_IN_FLASH) && defined(CFG_ENV_ADDR)
#if defined(CONFIG_ENV_IS_IN_FLASH) && defined(CFG_ENV_ADDR)
# ifndef CFG_ENV_SIZE
# define CFG_ENV_SIZE CFG_ENV_SECT_SIZE
# endif
Expand Down
2 changes: 1 addition & 1 deletion board/cpu87/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ unsigned long flash_init (void)
#endif
#endif

#if defined(CFG_ENV_IS_IN_FLASH) && defined(CFG_ENV_ADDR)
#if defined(CONFIG_ENV_IS_IN_FLASH) && defined(CFG_ENV_ADDR)
# ifndef CFG_ENV_SIZE
# define CFG_ENV_SIZE CFG_ENV_SECT_SIZE
# endif
Expand Down
4 changes: 2 additions & 2 deletions board/cu824/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <mpc824x.h>
#include <asm/processor.h>

#if defined(CFG_ENV_IS_IN_FLASH)
#if defined(CONFIG_ENV_IS_IN_FLASH)
# ifndef CFG_ENV_ADDR
# define CFG_ENV_ADDR (CFG_FLASH_BASE + CFG_ENV_OFFSET)
# endif
Expand Down Expand Up @@ -135,7 +135,7 @@ unsigned long flash_init(void)
#endif
#endif

#if defined(CFG_ENV_IS_IN_FLASH) && defined(CFG_ENV_ADDR)
#if defined(CONFIG_ENV_IS_IN_FLASH) && defined(CFG_ENV_ADDR)
#if CFG_ENV_ADDR >= CFG_FLASH_BASE + FLASH_BANK_SIZE
flash_protect(FLAG_PROTECT_SET,
CFG_ENV_ADDR,
Expand Down
2 changes: 1 addition & 1 deletion board/emk/common/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ unsigned long flash_init (void)
flash_get_info(CFG_MONITOR_BASE));
#endif

#ifdef CFG_ENV_IS_IN_FLASH
#ifdef CONFIG_ENV_IS_IN_FLASH
/* ENV protection ON by default */
flash_protect(FLAG_PROTECT_SET,
CFG_ENV_ADDR,
Expand Down
2 changes: 1 addition & 1 deletion board/ep8260/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ unsigned long flash_init (void)
&flash_info[0]);
#endif

#if defined(CFG_ENV_IS_IN_FLASH) && defined(CFG_ENV_ADDR)
#if defined(CONFIG_ENV_IS_IN_FLASH) && defined(CFG_ENV_ADDR)
# ifndef CFG_ENV_SIZE
# define CFG_ENV_SIZE CFG_ENV_SECT_SIZE
# endif
Expand Down
2 changes: 1 addition & 1 deletion board/esd/pf5200/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ unsigned long flash_init(void)
flash_get_info(CFG_MONITOR_BASE));
#endif

#ifdef CFG_ENV_IS_IN_FLASH
#ifdef CONFIG_ENV_IS_IN_FLASH
/* ENV protection ON by default */
flash_protect(FLAG_PROTECT_SET, CFG_ENV_ADDR,
CFG_ENV_ADDR + CFG_ENV_SIZE - 1,
Expand Down
2 changes: 1 addition & 1 deletion board/esd/pmc440/pmc440.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ int misc_init_r(void)
*/
flash_get_size(gd->bd->bi_flashstart, 0);

#ifdef CFG_ENV_IS_IN_FLASH
#ifdef CONFIG_ENV_IS_IN_FLASH
/* Monitor protection ON by default */
(void)flash_protect(FLAG_PROTECT_SET,
-CFG_MONITOR_LEN,
Expand Down
2 changes: 1 addition & 1 deletion board/evb64260/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ flash_init (void)
flash_get_info(CFG_MONITOR_BASE));
#endif

#ifdef CFG_ENV_IS_IN_FLASH
#ifdef CONFIG_ENV_IS_IN_FLASH
/* ENV protection ON by default */
flash_protect(FLAG_PROTECT_SET,
CFG_ENV_ADDR,
Expand Down
2 changes: 1 addition & 1 deletion board/exbitgen/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ unsigned long flash_init (void)
#endif
#endif

#if defined(CFG_ENV_IS_IN_FLASH) && defined(CFG_ENV_ADDR)
#if defined(CONFIG_ENV_IS_IN_FLASH) && defined(CFG_ENV_ADDR)
flash_protect(FLAG_PROTECT_SET,
CFG_ENV_ADDR,
CFG_ENV_ADDR + CFG_ENV_SIZE - 1,
Expand Down
Loading

0 comments on commit 5a1aceb

Please sign in to comment.