rename CFG_ENV macros to CONFIG_ENV
[platform/kernel/u-boot.git] / board / siemens / SMN42 / flash.c
old mode 100755 (executable)
new mode 100644 (file)
index e80df0b..ae64096
@@ -25,8 +25,7 @@
 #include <asm/byteorder.h>
 #include <asm/arch/hardware.h>
 
-static unsigned long flash_addr_table[CFG_MAX_FLASH_BANKS] 
-                                               = CFG_FLASH_BANKS_LIST;
+static unsigned long flash_addr_table[CFG_MAX_FLASH_BANKS] = CFG_FLASH_BANKS_LIST;
 flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
 
 extern int lpc2292_copy_buffer_to_flash(flash_info_t *, ulong);
@@ -71,8 +70,8 @@ ulong flash_init (void)
                 &flash_info[0]);
 
        flash_protect (FLAG_PROTECT_SET,
-                CFG_ENV_ADDR,
-                CFG_ENV_ADDR + CFG_ENV_SIZE - 1,
+                CONFIG_ENV_ADDR,
+                CONFIG_ENV_ADDR + CONFIG_ENV_SIZE - 1,
                 &flash_info[0]);
 
        size += ext_flash_init();