Move env_get_ulong() over to the new header file.
Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
*
*/
#include <common.h>
+#include <env.h>
#include <errno.h>
#include <spl.h>
#include <asm/arch/cpu.h>
#include <common.h>
#include <dm.h>
+#include <env.h>
#include <malloc.h>
#include <fs.h>
#include <i2c.h>
*/
#include "env-lib.h"
+#include <env.h>
#define MAX_CMD_LEN 25
* 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>
#include <common.h>
#include <dm.h>
+#include <env.h>
#include <asm/arch/clock.h>
#include <asm/arch/crm_regs.h>
*/
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
*
*/
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
*
#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>
#include <common.h>
#include <command.h>
+#include <env.h>
#include <efi_loader.h>
#include <net.h>
#include <net/tftp.h>