summaryrefslogtreecommitdiff
path: root/include/common.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-10-14 13:25:18 +0000
committerWolfgang Denk <wd@denx.de>2011-10-23 23:32:45 +0200
commit4a9b413108f4bd274973398356b45c0346238bc9 (patch)
treedae25295771bffb5d81b5bfb84d3dba5d1cd7e94 /include/common.h
parent3668d8fa0417a3082aa57dd5e0db8fbe887c31e0 (diff)
downloadu-boot-imx-4a9b413108f4bd274973398356b45c0346238bc9.zip
u-boot-imx-4a9b413108f4bd274973398356b45c0346238bc9.tar.gz
u-boot-imx-4a9b413108f4bd274973398356b45c0346238bc9.tar.bz2
Add getenv_ulong() to read an integer from an environment variable
This is not an uncommon operation in U-Boot, so let's put it in a common function. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index db1c7d0..a1683a2 100644
--- a/include/common.h
+++ b/include/common.h
@@ -297,6 +297,7 @@ void env_relocate (void);
int envmatch (uchar *, int);
char *getenv (const char *);
int getenv_f (const char *name, char *buf, unsigned len);
+ulong getenv_ulong(const char *name, int base, ulong default_val);
int saveenv (void);
#ifdef CONFIG_PPC /* ARM version to be fixed! */
int inline setenv (const char *, const char *);