]> git.sur5r.net Git - u-boot/blobdiff - common/env_eeprom.c
tsec: Remove PHY command relocation fixups
[u-boot] / common / env_eeprom.c
index df3e31e93ab56c2175a286e23bb7a8f41c7e207f..1578d61e6bce019ebba9a45918ee28abfbde5033 100644 (file)
@@ -39,8 +39,8 @@ uchar env_get_char_spec (int index)
 {
        uchar c;
 
-       eeprom_read (CFG_DEF_EEPROM_ADDR,
-                    CFG_ENV_OFFSET+index+offsetof(env_t,data),
+       eeprom_read (CONFIG_SYS_DEF_EEPROM_ADDR,
+                    CONFIG_ENV_OFFSET+index+offsetof(env_t,data),
                     &c, 1);
 
        return (c);
@@ -48,18 +48,18 @@ uchar env_get_char_spec (int index)
 
 void env_relocate_spec (void)
 {
-       eeprom_read (CFG_DEF_EEPROM_ADDR,
-                    CFG_ENV_OFFSET,
+       eeprom_read (CONFIG_SYS_DEF_EEPROM_ADDR,
+                    CONFIG_ENV_OFFSET,
                     (uchar*)env_ptr,
-                    CFG_ENV_SIZE);
+                    CONFIG_ENV_SIZE);
 }
 
 int saveenv(void)
 {
-       return eeprom_write (CFG_DEF_EEPROM_ADDR,
-                            CFG_ENV_OFFSET,
+       return eeprom_write (CONFIG_SYS_DEF_EEPROM_ADDR,
+                            CONFIG_ENV_OFFSET,
                             (uchar *)env_ptr,
-                            CFG_ENV_SIZE);
+                            CONFIG_ENV_SIZE);
 }
 
 /************************************************************************
@@ -77,8 +77,8 @@ int env_init(void)
        eeprom_init (); /* prepare for EEPROM read/write */
 
        /* read old CRC */
-       eeprom_read (CFG_DEF_EEPROM_ADDR,
-                    CFG_ENV_OFFSET+offsetof(env_t,crc),
+       eeprom_read (CONFIG_SYS_DEF_EEPROM_ADDR,
+                    CONFIG_ENV_OFFSET+offsetof(env_t,crc),
                     (uchar *)&crc, sizeof(ulong));
 
        new = 0;
@@ -87,7 +87,7 @@ int env_init(void)
        while (len > 0) {
                int n = (len > sizeof(buf)) ? sizeof(buf) : len;
 
-               eeprom_read (CFG_DEF_EEPROM_ADDR, CFG_ENV_OFFSET+off, buf, n);
+               eeprom_read (CONFIG_SYS_DEF_EEPROM_ADDR, CONFIG_ENV_OFFSET+off, buf, n);
                new = crc32 (new, buf, n);
                len -= n;
                off += n;