summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-10-24 17:59:59 +0000
committerGerrit <chrome-bot@google.com>2011-11-16 20:46:08 -0800
commit5057f67800dd116b73816d75bbeb0e4ce1b66302 (patch)
tree8adfccceb8caf013ccc23658ba01980d59c77452 /include
parent1c1cd642bedc8d27b1a6d1cfed7b972c9f0d90a5 (diff)
BACKPORT: Add setenv_ulong() and setenv_addr()
It seems we put numbers and addresses into environment variables a lot. We should have some functions to do this. (cherry picked from commit d67f10c) Change-Id: I922e72a7db872f26774459a6dc074a80016ef904 Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/11792 Reviewed-by: Doug Anderson <dianders@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index 771bb1930a..1911c3a1bc 100644
--- a/include/common.h
+++ b/include/common.h
@@ -307,6 +307,8 @@ int setenv (char *, char *);
/* Set environment to the default value */
void env_set_default(void);
+int setenv_ulong(const char *varname, ulong value);
+int setenv_addr(const char *varname, const void *addr);
#endif /* CONFIG_PPC */
#ifdef CONFIG_ARM
# include <asm/mach-types.h>