diff options
| author | Simon Glass <sjg@chromium.org> | 2011-10-24 17:59:59 +0000 | 
|---|---|---|
| committer | Wolfgang Denk <wd@denx.de> | 2011-10-26 21:32:42 +0200 | 
| commit | d67f10ce0f5a4c114437ac6fb5891ae38e3054f8 (patch) | |
| tree | eedd7aed103d877971c4ac2ad9d59a51cf0f8ce7 /include/common.h | |
| parent | 3cce8a5496452285e1828984ad3945417205cfc3 (diff) | |
| download | olio-uboot-2014.01-d67f10ce0f5a4c114437ac6fb5891ae38e3054f8.tar.xz olio-uboot-2014.01-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.h | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/include/common.h b/include/common.h index 8b719eac9..9166ca1ed 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> |