summaryrefslogtreecommitdiff
path: root/common/env_common.c
diff options
context:
space:
mode:
authorJustin Waters <justin.waters@timesys.com>2013-04-24 17:38:39 -0400
committerJustin Waters <justin.waters@timesys.com>2013-04-24 17:38:39 -0400
commit75c641ece39c136001340df61f0ad57028ce4ffc (patch)
treee5f2c5f5764770a34d0e39b5eace575fd4751527 /common/env_common.c
parent1341f103ac87882633b019a5a137056818234248 (diff)
LogicPD Support for OMAP3/DM3/AM3 boards 2.1 Update
Diffstat (limited to 'common/env_common.c')
-rw-r--r--common/env_common.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/common/env_common.c b/common/env_common.c
index 04a947e92ba..af7a9cb57cc 100644
--- a/common/env_common.c
+++ b/common/env_common.c
@@ -194,6 +194,9 @@ void set_default_env(const char *s)
error("Environment import failed: errno = %d\n", errno);
}
gd->flags |= GD_FLG_ENV_READY;
+#ifdef CONFIG_TOUCHUP_ENV
+ touchup_env(1);
+#endif
}
int env_check_valid(const char *buf)
@@ -221,6 +224,9 @@ int env_import(const char *buf, int check)
if (himport_r(&env_htab, (char *)ep->data, ENV_SIZE, '\0', 0)) {
gd->flags |= GD_FLG_ENV_READY;
+#ifdef CONFIG_TOUCHUP_ENV
+ touchup_env(0);
+#endif
return 1;
}
@@ -247,10 +253,10 @@ void env_relocate (void)
#endif
} else {
env_relocate_spec ();
- }
#ifdef CONFIG_TOUCHUP_ENV
- touchup_env();
+ touchup_env(0);
#endif
+ }
}
#ifdef CONFIG_AUTO_COMPLETE