summaryrefslogtreecommitdiffstats
path: root/include/common.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-10-24 17:59:59 +0000
committerWolfgang Denk <wd@denx.de>2011-10-26 21:32:42 +0200
commitd67f10ce0f5a4c114437ac6fb5891ae38e3054f8 (patch)
treeeedd7aed103d877971c4ac2ad9d59a51cf0f8ce7 /include/common.h
parent3cce8a5496452285e1828984ad3945417205cfc3 (diff)
downloadtalos-obmc-uboot-d67f10ce0f5a4c114437ac6fb5891ae38e3054f8.tar.gz
talos-obmc-uboot-d67f10ce0f5a4c114437ac6fb5891ae38e3054f8.zip
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. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index 8b719eac94..9166ca1ed6 100644
--- a/include/common.h
+++ b/include/common.h
@@ -303,6 +303,8 @@ int saveenv (void);
int inline setenv (const char *, const char *);
#else
int setenv (const char *, const char *);
+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>
OpenPOWER on IntegriCloud