env: Move env_set_ulong() to env.h

Move env_set_ulong() over to the new header file.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
Simon Glass 2019-08-01 09:46:47 -06:00 committed by Tom Rini
parent c7694dd483
commit 168068fb3d
16 changed files with 23 additions and 9 deletions

View File

@ -5,6 +5,7 @@
*/
#include <common.h>
#include <env.h>
#include <mmc.h>
#include <linux/errno.h>

View File

@ -10,6 +10,7 @@
*/
#include <common.h>
#include <env.h>
#include <errno.h>
#include <spl.h>
#include <asm/arch/cpu.h>

View File

@ -6,6 +6,7 @@
* B&R Industrial Automation GmbH - http://www.br-automation.com/ *
*/
#include <common.h>
#include <env.h>
#include <errno.h>
#include <i2c.h>
#include <dm/uclass.h>

View File

@ -8,6 +8,7 @@
*/
#include <common.h>
#include <env.h>
#include <environment.h>
#include <i2c.h>
#include <miiphy.h>

View File

@ -6,6 +6,7 @@
*/
#include <common.h>
#include <env.h>
#include <mmc.h>
#include <asm/arch/sys_proto.h>
#include <watchdog.h>

View File

@ -8,6 +8,7 @@
#include <common.h>
#include <board.h>
#include <dm.h>
#include <env.h>
#include <fdt_support.h>
#include <fsl_esdhc.h>
#include <miiphy.h>

View File

@ -17,6 +17,7 @@
#include <asm/mach-imx/boot_mode.h>
#include <asm/io.h>
#include <common.h>
#include <env.h>
#include <fsl_esdhc_imx.h>
#include <linux/sizes.h>
#include <linux/fb.h>

View File

@ -7,6 +7,7 @@
*/
#include <common.h>
#include <env.h>
#include <environment.h>
#include <net.h>
#include <netdev.h>

View File

@ -6,6 +6,7 @@
#include <common.h>
#include <config.h>
#include <env.h>
#include <linux/printk.h>
#include <linux/kernel.h>
#include <linux/io.h>

View File

@ -13,6 +13,7 @@
#include <asm/mach-imx/iomux-v3.h>
#include <asm/io.h>
#include <common.h>
#include <env.h>
#include <asm/arch/crm_regs.h>
#include <netdev.h>
#include <power/pmic.h>

View File

@ -6,6 +6,7 @@
#include <common.h>
#include <command.h>
#include <dm.h>
#include <env.h>
#include <asm/unaligned.h>
#include <linux/string.h>
#include <tpm-common.h>

View File

@ -5,6 +5,7 @@
*/
#include <common.h>
#include <env.h>
#include <environment.h>
void bootcount_store(ulong a)

View File

@ -6,6 +6,7 @@
#include <common.h>
#include <dm.h>
#include <env.h>
#include <pci.h>
#include <scsi.h>
#include <dm/device-internal.h>

View File

@ -9,6 +9,7 @@
#include <common.h>
#include <asm/io.h>
#include <asm/byteorder.h>
#include <env.h>
#ifdef CONFIG_DM_BOOTCOUNT

View File

@ -200,15 +200,6 @@ int env_get_yesno(const char *var);
*/
int env_set(const char *varname, const char *value);
/**
* env_set_ulong() - set an environment variable to an integer
*
* @varname: Variable to adjust
* @value: Value to set for the variable (will be converted to a string)
* @return 0 if OK, 1 on error
*/
int env_set_ulong(const char *varname, ulong value);
void pci_init_board(void);
/* common/exports.c */

View File

@ -63,6 +63,15 @@ int env_match(unsigned char *name, int index);
*/
int env_get_f(const char *name, char *buf, unsigned int len);
/**
* env_set_ulong() - set an environment variable to an integer
*
* @varname: Variable to adjust
* @value: Value to set for the variable (will be converted to a string)
* @return 0 if OK, 1 on error
*/
int env_set_ulong(const char *varname, ulong value);
/**
* env_set_hex() - set an environment variable to a hex value
*