env: Move env_get_f() to env.h
Move this function 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:
parent
f1f0ae6a9c
commit
3a7d55716d
@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <env.h>
|
||||
#include <fsl_ddr_sdram.h>
|
||||
#include <asm/io.h>
|
||||
#include <linux/errno.h>
|
||||
|
@ -10,6 +10,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <env.h>
|
||||
#include <watchdog.h>
|
||||
#include <asm/processor.h>
|
||||
#include <ioports.h>
|
||||
|
@ -7,6 +7,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <env.h>
|
||||
#include <environment.h>
|
||||
#include <linux/libfdt.h>
|
||||
#include <fdt_support.h>
|
||||
|
@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <env.h>
|
||||
#ifdef CONFIG_SYS_P4080_ERRATUM_SERDES8
|
||||
#include <hwconfig.h>
|
||||
#endif
|
||||
|
@ -10,6 +10,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <env.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/gpio.h>
|
||||
#include <asm/mach-types.h>
|
||||
|
@ -5,6 +5,7 @@
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <env.h>
|
||||
#include <i2c.h>
|
||||
#include <netdev.h>
|
||||
#include <linux/compiler.h>
|
||||
|
@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <env.h>
|
||||
#include <hwconfig.h>
|
||||
#include <i2c.h>
|
||||
#include <asm/io.h>
|
||||
|
@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <env.h>
|
||||
#include <asm/arch/clock.h>
|
||||
#include <asm/arch/iomux.h>
|
||||
#include <asm/arch/imx-regs.h>
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <env.h>
|
||||
#include <netdev.h>
|
||||
#include <asm/mipsregs.h>
|
||||
#include "vct.h"
|
||||
|
@ -11,6 +11,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <env.h>
|
||||
#include <pci.h>
|
||||
#include <asm/processor.h>
|
||||
#include <asm/immap_85xx.h>
|
||||
|
@ -8,6 +8,7 @@
|
||||
#include <config.h>
|
||||
#include <clk.h>
|
||||
#include <dm.h>
|
||||
#include <env.h>
|
||||
#include <environment.h>
|
||||
#include <g_dnl.h>
|
||||
#include <generic-phy.h>
|
||||
|
@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <env.h>
|
||||
#include "fsl_8xxx_misc.h"
|
||||
|
||||
int checkboard(void)
|
||||
|
@ -72,6 +72,7 @@
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <env.h>
|
||||
#include <malloc.h>
|
||||
#include <jffs2/load_kernel.h>
|
||||
#include <linux/list.h>
|
||||
|
@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <env.h>
|
||||
#include <asm/io.h>
|
||||
#include <fsl_ddr_sdram.h>
|
||||
#include <asm/processor.h>
|
||||
|
@ -13,6 +13,7 @@
|
||||
|
||||
#include <common.h>
|
||||
#include <cli.h>
|
||||
#include <env.h>
|
||||
#include <linux/ctype.h>
|
||||
#include <asm/types.h>
|
||||
#include <asm/io.h>
|
||||
|
@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <env.h>
|
||||
#include <hwconfig.h>
|
||||
#include <fsl_ddr_sdram.h>
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
#include <common.h>
|
||||
#include <console.h>
|
||||
#include <dm.h>
|
||||
#include <env.h>
|
||||
#include <errno.h>
|
||||
#include <fdt_support.h>
|
||||
#include <asm/processor.h>
|
||||
|
@ -4,6 +4,7 @@
|
||||
* Heiko Schocher, DENX Software Engineering, hs@denx.de.
|
||||
*/
|
||||
#include <common.h>
|
||||
#include <env.h>
|
||||
#include <dm/device.h>
|
||||
#include <dm/uclass-internal.h>
|
||||
#include <jffs2/jffs2.h> /* LEGACY */
|
||||
|
@ -4,6 +4,7 @@
|
||||
* Roy Zang <tie-fei.zang@freescale.com>
|
||||
*/
|
||||
#include <common.h>
|
||||
#include <env.h>
|
||||
#include <phy.h>
|
||||
#include <fm_eth.h>
|
||||
#include <asm/io.h>
|
||||
|
@ -162,18 +162,6 @@ int envmatch (uchar *, int);
|
||||
*/
|
||||
char *env_get(const char *varname);
|
||||
|
||||
/**
|
||||
* env_get_f() - Look up the value of an environment variable (early)
|
||||
*
|
||||
* This function is called from env_get() if the environment has not been
|
||||
* loaded yet (GD_FLG_ENV_READY flag is 0). Some environment locations will
|
||||
* support reading the value (slowly) and some will not.
|
||||
*
|
||||
* @varname: Variable to look up
|
||||
* @return value of variable, or NULL if not found
|
||||
*/
|
||||
int env_get_f(const char *name, char *buf, unsigned len);
|
||||
|
||||
/**
|
||||
* env_get_ulong() - Return an environment variable as an integer value
|
||||
*
|
||||
|
@ -21,6 +21,18 @@
|
||||
*/
|
||||
int env_get_id(void);
|
||||
|
||||
/**
|
||||
* env_get_f() - Look up the value of an environment variable (early)
|
||||
*
|
||||
* This function is called from env_get() if the environment has not been
|
||||
* loaded yet (GD_FLG_ENV_READY flag is 0). Some environment locations will
|
||||
* support reading the value (slowly) and some will not.
|
||||
*
|
||||
* @varname: Variable to look up
|
||||
* @return value of variable, or NULL if not found
|
||||
*/
|
||||
int env_get_f(const char *name, char *buf, unsigned int len);
|
||||
|
||||
/**
|
||||
* env_complete() - return an auto-complete for environment variables
|
||||
*
|
||||
|
@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <env.h>
|
||||
#include <stdio_dev.h>
|
||||
#include <watchdog.h>
|
||||
#include <div64.h>
|
||||
|
Loading…
Reference in New Issue
Block a user