From d67f10ce0f5a4c114437ac6fb5891ae38e3054f8 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Mon, 24 Oct 2011 17:59:59 +0000 Subject: 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 --- include/common.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/common.h b/include/common.h index 8b719ea..9166ca1 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 -- cgit v1.1