diff options
-rw-r--r-- | board/BuR/brxre1/board.c | 1 | ||||
-rw-r--r-- | board/gdsys/p1022/controlcenterd-id.c | 1 | ||||
-rw-r--r-- | board/synopsys/hsdk/env-lib.c | 1 | ||||
-rw-r--r-- | board/ti/ks2_evm/board_k2g.c | 1 | ||||
-rw-r--r-- | board/toradex/colibri_imx6/colibri_imx6.c | 1 | ||||
-rw-r--r-- | include/common.h | 13 | ||||
-rw-r--r-- | include/env.h | 13 | ||||
-rw-r--r-- | lib/fdtdec.c | 1 | ||||
-rw-r--r-- | net/bootp.c | 1 |
9 files changed, 20 insertions, 13 deletions
diff --git a/board/BuR/brxre1/board.c b/board/BuR/brxre1/board.c index 0d1c6c47205..873208c668d 100644 --- a/board/BuR/brxre1/board.c +++ b/board/BuR/brxre1/board.c @@ -9,6 +9,7 @@ * */ #include <common.h> +#include <env.h> #include <errno.h> #include <spl.h> #include <asm/arch/cpu.h> diff --git a/board/gdsys/p1022/controlcenterd-id.c b/board/gdsys/p1022/controlcenterd-id.c index 6ac956cacac..43f5404231f 100644 --- a/board/gdsys/p1022/controlcenterd-id.c +++ b/board/gdsys/p1022/controlcenterd-id.c @@ -12,6 +12,7 @@ #include <common.h> #include <dm.h> +#include <env.h> #include <malloc.h> #include <fs.h> #include <i2c.h> diff --git a/board/synopsys/hsdk/env-lib.c b/board/synopsys/hsdk/env-lib.c index 66e4581faee..f443c21e6d9 100644 --- a/board/synopsys/hsdk/env-lib.c +++ b/board/synopsys/hsdk/env-lib.c @@ -5,6 +5,7 @@ */ #include "env-lib.h" +#include <env.h> #define MAX_CMD_LEN 25 diff --git a/board/ti/ks2_evm/board_k2g.c b/board/ti/ks2_evm/board_k2g.c index 6d0fc21c67a..4ff9a44b371 100644 --- a/board/ti/ks2_evm/board_k2g.c +++ b/board/ti/ks2_evm/board_k2g.c @@ -6,6 +6,7 @@ * Texas Instruments Incorporated, <www.ti.com> */ #include <common.h> +#include <env.h> #include <asm/arch/clock.h> #include <asm/ti-common/keystone_net.h> #include <asm/arch/psc_defs.h> diff --git a/board/toradex/colibri_imx6/colibri_imx6.c b/board/toradex/colibri_imx6/colibri_imx6.c index 6417ba49804..f657db87d8f 100644 --- a/board/toradex/colibri_imx6/colibri_imx6.c +++ b/board/toradex/colibri_imx6/colibri_imx6.c @@ -8,6 +8,7 @@ #include <common.h> #include <dm.h> +#include <env.h> #include <asm/arch/clock.h> #include <asm/arch/crm_regs.h> diff --git a/include/common.h b/include/common.h index 283cb23fd11..48f443e851c 100644 --- a/include/common.h +++ b/include/common.h @@ -158,19 +158,6 @@ int do_ext2load(cmd_tbl_t *, int, int, char * const []); char *env_get(const char *varname); /** - * env_get_ulong() - Return an environment variable as an integer value - * - * Most U-Boot environment variables store hex values. For those which store - * (e.g.) base-10 integers, this function can be used to read the value. - * - * @name: Variable to look up - * @base: Base to use (e.g. 10 for base 10, 2 for binary) - * @default_val: Default value to return if no value is found - * @return the value found, or @default_val if none - */ -ulong env_get_ulong(const char *name, int base, ulong default_val); - -/** * env_get_hex() - Return an environment variable as a hex value * * Decode an environment as a hex number (it may or may not have a 0x diff --git a/include/env.h b/include/env.h index 8898b78b8e4..9124718f2d6 100644 --- a/include/env.h +++ b/include/env.h @@ -64,6 +64,19 @@ int env_match(unsigned char *name, int index); int env_get_f(const char *name, char *buf, unsigned int len); /** + * env_get_ulong() - Return an environment variable as an integer value + * + * Most U-Boot environment variables store hex values. For those which store + * (e.g.) base-10 integers, this function can be used to read the value. + * + * @name: Variable to look up + * @base: Base to use (e.g. 10 for base 10, 2 for binary) + * @default_val: Default value to return if no value is found + * @return the value found, or @default_val if none + */ +ulong env_get_ulong(const char *name, int base, ulong default_val); + +/** * env_set_ulong() - set an environment variable to an integer * * @varname: Variable to adjust diff --git a/lib/fdtdec.c b/lib/fdtdec.c index 464de5b3b52..ef5e54875c9 100644 --- a/lib/fdtdec.c +++ b/lib/fdtdec.c @@ -8,6 +8,7 @@ #include <boot_fit.h> #include <dm.h> #include <dm/of_extra.h> +#include <env.h> #include <errno.h> #include <fdtdec.h> #include <fdt_support.h> diff --git a/net/bootp.c b/net/bootp.c index 9a2b512e4a7..505489140e8 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -10,6 +10,7 @@ #include <common.h> #include <command.h> +#include <env.h> #include <efi_loader.h> #include <net.h> #include <net/tftp.h> |