diff --git a/arch/arm/cpu/arm926ejs/spear/spr_misc.c b/arch/arm/cpu/arm926ejs/spear/spr_misc.c index 371dea565701ca423fb7ff68d01a22252936c53d..533268513ee346d8c23a1582d93107d0486bac11 100644 --- a/arch/arm/cpu/arm926ejs/spear/spr_misc.c +++ b/arch/arm/cpu/arm926ejs/spear/spr_misc.c @@ -6,6 +6,7 @@ #include <common.h> #include <command.h> +#include <env.h> #include <environment.h> #include <i2c.h> #include <net.h> diff --git a/arch/arm/cpu/armv7/vf610/generic.c b/arch/arm/cpu/armv7/vf610/generic.c index 337f4af7a85921a56b732023d6c11bad9ad18d3e..7e4641fd325e038459a1528538a5a97103ce6b56 100644 --- a/arch/arm/cpu/armv7/vf610/generic.c +++ b/arch/arm/cpu/armv7/vf610/generic.c @@ -9,6 +9,7 @@ #include <asm/arch/clock.h> #include <asm/arch/crm_regs.h> #include <asm/mach-imx/sys_proto.h> +#include <env.h> #include <netdev.h> #ifdef CONFIG_FSL_ESDHC_IMX #include <fsl_esdhc_imx.h> diff --git a/arch/arm/cpu/armv8/fsl-layerscape/soc.c b/arch/arm/cpu/armv8/fsl-layerscape/soc.c index 7414215208cba49e8271fbb8d9db5de0b447c319..00c705f74eb2f397903f0443fb650b85705cc35d 100644 --- a/arch/arm/cpu/armv8/fsl-layerscape/soc.c +++ b/arch/arm/cpu/armv8/fsl-layerscape/soc.c @@ -5,6 +5,7 @@ */ #include <common.h> +#include <env.h> #include <fsl_immap.h> #include <fsl_ifc.h> #include <asm/arch/fsl_serdes.h> diff --git a/arch/arm/mach-davinci/misc.c b/arch/arm/mach-davinci/misc.c index df500c8f35bf05e5b473978ce9d54f1d6a7d3eca..b310bc7293e66ca330390bf29a41f0ef7510ffd6 100644 --- a/arch/arm/mach-davinci/misc.c +++ b/arch/arm/mach-davinci/misc.c @@ -9,6 +9,7 @@ */ #include <common.h> +#include <env.h> #include <environment.h> #include <i2c.h> #include <net.h> diff --git a/arch/arm/mach-imx/mx6/opos6ul.c b/arch/arm/mach-imx/mx6/opos6ul.c index 264fa8a48e35c1e83b63f2848e0e82ff193193bf..8b921a7d370abaedd65ec36d504105140fc7e7ef 100644 --- a/arch/arm/mach-imx/mx6/opos6ul.c +++ b/arch/arm/mach-imx/mx6/opos6ul.c @@ -13,6 +13,7 @@ #include <asm/mach-imx/iomux-v3.h> #include <asm/io.h> #include <common.h> +#include <env.h> #include <environment.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/arm/mach-imx/mx7/soc.c b/arch/arm/mach-imx/mx7/soc.c index 1b4bbc503733eb2c3c461aa1abf3126a869130c4..3b8e1ba9c3ac90317ffd000549ffd0acc5544182 100644 --- a/arch/arm/mach-imx/mx7/soc.c +++ b/arch/arm/mach-imx/mx7/soc.c @@ -14,6 +14,7 @@ #include <asm/arch/imx-rdc.h> #include <asm/arch/crm_regs.h> #include <dm.h> +#include <env.h> #include <imx_thermal.h> #include <fsl_sec.h> #include <asm/setup.h> diff --git a/arch/arm/mach-meson/board-common.c b/arch/arm/mach-meson/board-common.c index 18383f774ee1d24aeb813ea30300be602a22356a..08a7aae2b9f8c3c4e7ea52b63311d815de4bf088 100644 --- a/arch/arm/mach-meson/board-common.c +++ b/arch/arm/mach-meson/board-common.c @@ -5,6 +5,7 @@ #include <common.h> #include <asm/arch/boot.h> +#include <env.h> #include <linux/libfdt.h> #include <linux/err.h> #include <environment.h> diff --git a/arch/arm/mach-omap2/utils.c b/arch/arm/mach-omap2/utils.c index 7d014469409eb56a72d2152425595aafdf0f054f..5478416e9c8659f1204286ef093b9f054353d34c 100644 --- a/arch/arm/mach-omap2/utils.c +++ b/arch/arm/mach-omap2/utils.c @@ -4,6 +4,7 @@ * Aneesh V <aneesh@ti.com> */ #include <common.h> +#include <env.h> #include <environment.h> #include <asm/setup.h> #include <asm/arch/sys_proto.h> diff --git a/arch/arm/mach-rmobile/cpu_info.c b/arch/arm/mach-rmobile/cpu_info.c index dc407d2a6121f1ecf1bc11057ebd24883453494d..9ef94a489935c0796437bb3d71fab290c2d797c9 100644 --- a/arch/arm/mach-rmobile/cpu_info.c +++ b/arch/arm/mach-rmobile/cpu_info.c @@ -5,6 +5,7 @@ */ #include <common.h> #include <asm/io.h> +#include <env.h> #include <linux/ctype.h> #ifdef CONFIG_ARCH_CPU_INIT diff --git a/arch/arm/mach-rockchip/rk3288/rk3288.c b/arch/arm/mach-rockchip/rk3288/rk3288.c index b462c0906994fef239fb5322a726ac51b7715814..057ce920809ed04dcd26100e1fdb35da9aaa1e6c 100644 --- a/arch/arm/mach-rockchip/rk3288/rk3288.c +++ b/arch/arm/mach-rockchip/rk3288/rk3288.c @@ -4,6 +4,7 @@ */ #include <common.h> #include <dm.h> +#include <env.h> #include <clk.h> #include <asm/armv7.h> #include <asm/io.h> diff --git a/arch/arm/mach-socfpga/misc_gen5.c b/arch/arm/mach-socfpga/misc_gen5.c index 71547d81ab69a10f7c3402aa28d00ad9eea00ab4..31681b799d4624b244d6147dc0017e8703bfac16 100644 --- a/arch/arm/mach-socfpga/misc_gen5.c +++ b/arch/arm/mach-socfpga/misc_gen5.c @@ -5,6 +5,7 @@ #include <common.h> #include <asm/io.h> +#include <env.h> #include <errno.h> #include <fdtdec.h> #include <linux/libfdt.h> diff --git a/arch/arm/mach-socfpga/misc_s10.c b/arch/arm/mach-socfpga/misc_s10.c index 29abc4a54c33fe2c4169d33244c3cdd30f6468d8..0a5fab11c0de46384292dded0a960c91a2756175 100644 --- a/arch/arm/mach-socfpga/misc_s10.c +++ b/arch/arm/mach-socfpga/misc_s10.c @@ -6,6 +6,7 @@ #include <altera.h> #include <common.h> +#include <env.h> #include <errno.h> #include <fdtdec.h> #include <miiphy.h> diff --git a/arch/arm/mach-stm32mp/cpu.c b/arch/arm/mach-stm32mp/cpu.c index 10190f40d4eb32fe9513eeb9d71c948fb00ecda1..b06b84c315e73aef668fecc8c9b3b3c5a381fb73 100644 --- a/arch/arm/mach-stm32mp/cpu.c +++ b/arch/arm/mach-stm32mp/cpu.c @@ -5,6 +5,7 @@ #include <common.h> #include <clk.h> #include <debug_uart.h> +#include <env.h> #include <environment.h> #include <misc.h> #include <asm/io.h> diff --git a/arch/arm/mach-tegra/board2.c b/arch/arm/mach-tegra/board2.c index bbc487aa3bf6c03f9c8ed461aaae79b05466eabc..f13bd256cc2aba5fc15d95e3fbcb280b726ebf6e 100644 --- a/arch/arm/mach-tegra/board2.c +++ b/arch/arm/mach-tegra/board2.c @@ -7,6 +7,7 @@ #include <common.h> #include <dm.h> #include <efi_loader.h> +#include <env.h> #include <errno.h> #include <ns16550.h> #include <usb.h> diff --git a/board/Arcturus/ucp1020/cmd_arc.c b/board/Arcturus/ucp1020/cmd_arc.c index 7a510c61fb015c5d9c08a149f247b4e1e6e2e0bd..755f569d13166526e14aee80a5653ac1240f30af 100644 --- a/board/Arcturus/ucp1020/cmd_arc.c +++ b/board/Arcturus/ucp1020/cmd_arc.c @@ -10,6 +10,7 @@ #include <common.h> #include <div64.h> +#include <env.h> #include <malloc.h> #include <spi_flash.h> #include <mmc.h> diff --git a/board/Arcturus/ucp1020/ucp1020.c b/board/Arcturus/ucp1020/ucp1020.c index 54fd1782cb1f2714f7775bf34fd902fe596aa50d..6a880c97bcb7d4bd8afd284d2d0ae6c6097653ee 100644 --- a/board/Arcturus/ucp1020/ucp1020.c +++ b/board/Arcturus/ucp1020/ucp1020.c @@ -10,6 +10,7 @@ #include <common.h> #include <command.h> +#include <env.h> #include <hwconfig.h> #include <pci.h> #include <i2c.h> diff --git a/board/CZ.NIC/turris_mox/turris_mox.c b/board/CZ.NIC/turris_mox/turris_mox.c index 3818e3752a00a0426f7e1395d6defc8c89da2cdf..f3c89d63d5430cfc0addfc374eae3f146bd957a7 100644 --- a/board/CZ.NIC/turris_mox/turris_mox.c +++ b/board/CZ.NIC/turris_mox/turris_mox.c @@ -8,6 +8,7 @@ #include <asm/io.h> #include <dm.h> #include <clk.h> +#include <env.h> #include <spi.h> #include <mvebu/comphy.h> #include <miiphy.h> diff --git a/board/LaCie/net2big_v2/net2big_v2.c b/board/LaCie/net2big_v2/net2big_v2.c index fb08e5041579d1dcfbeb69e56fd2138ee3effb71..1609089502c12fd0d6b35796f05978133ffbee98 100644 --- a/board/LaCie/net2big_v2/net2big_v2.c +++ b/board/LaCie/net2big_v2/net2big_v2.c @@ -10,6 +10,7 @@ #include <common.h> #include <command.h> +#include <env.h> #include <environment.h> #include <i2c.h> #include <asm/mach-types.h> diff --git a/board/LaCie/netspace_v2/netspace_v2.c b/board/LaCie/netspace_v2/netspace_v2.c index 453c0dd46780d2ab36c20f8582aaabe96a07f95a..ba667934e4219b6e121159cf8100d7ea5110e92e 100644 --- a/board/LaCie/netspace_v2/netspace_v2.c +++ b/board/LaCie/netspace_v2/netspace_v2.c @@ -10,6 +10,7 @@ #include <common.h> #include <command.h> +#include <env.h> #include <environment.h> #include <asm/mach-types.h> #include <asm/arch/cpu.h> diff --git a/board/Synology/ds414/cmd_syno.c b/board/Synology/ds414/cmd_syno.c index 59e6fe03102e564f4f7154a96037db45c5eeb271..777948f90f58cbaace41714443b7f62432fecabf 100644 --- a/board/Synology/ds414/cmd_syno.c +++ b/board/Synology/ds414/cmd_syno.c @@ -7,6 +7,7 @@ #include <common.h> #include <div64.h> +#include <env.h> #include <spi.h> #include <spi_flash.h> #include <linux/mtd/mtd.h> diff --git a/board/alliedtelesis/x530/x530.c b/board/alliedtelesis/x530/x530.c index 97dbed79dd662710ef090075f8d4bb228bc97e1e..e0fa8067c1c58f80bb4bc0f3bf09d8de2f8cb7d9 100644 --- a/board/alliedtelesis/x530/x530.c +++ b/board/alliedtelesis/x530/x530.c @@ -6,6 +6,7 @@ #include <common.h> #include <command.h> #include <dm.h> +#include <env.h> #include <i2c.h> #include <wdt.h> #include <asm/gpio.h> diff --git a/board/amazon/kc1/kc1.c b/board/amazon/kc1/kc1.c index 031fd110923c5e5c87602ada5ffef9282878223c..9034c4fbfff04900bbf63e284cf7368518dcd2ae 100644 --- a/board/amazon/kc1/kc1.c +++ b/board/amazon/kc1/kc1.c @@ -7,6 +7,7 @@ #include <config.h> #include <common.h> +#include <env.h> #include <linux/ctype.h> #include <linux/usb/musb.h> #include <asm/omap_musb.h> diff --git a/board/amlogic/p200/p200.c b/board/amlogic/p200/p200.c index 62f0f4c8718577c342d33499020bce7491a55a3c..7f33ce0f0bb318bd215137412969fc1570d3fb18 100644 --- a/board/amlogic/p200/p200.c +++ b/board/amlogic/p200/p200.c @@ -5,6 +5,7 @@ #include <common.h> #include <dm.h> +#include <env.h> #include <environment.h> #include <asm/io.h> #include <asm/arch/gx.h> diff --git a/board/amlogic/p201/p201.c b/board/amlogic/p201/p201.c index ef0c65cd9f891b20c87e3f9867f5b6fefbabac84..0a17fbedf1d44a50374a7842d9cecf6be1a9605f 100644 --- a/board/amlogic/p201/p201.c +++ b/board/amlogic/p201/p201.c @@ -5,6 +5,7 @@ #include <common.h> #include <dm.h> +#include <env.h> #include <environment.h> #include <asm/io.h> #include <asm/arch/gx.h> diff --git a/board/amlogic/p212/p212.c b/board/amlogic/p212/p212.c index 1159cee4ceeb476f53b7093d60ff0abdd3a6037e..4d6ac7264ccde6ab1b69ad7aeb5865684f3242bb 100644 --- a/board/amlogic/p212/p212.c +++ b/board/amlogic/p212/p212.c @@ -6,6 +6,7 @@ #include <common.h> #include <dm.h> +#include <env.h> #include <environment.h> #include <asm/io.h> #include <asm/arch/gx.h> diff --git a/board/amlogic/q200/q200.c b/board/amlogic/q200/q200.c index 2ea97c362ec8265d79b2528d7f64bbd4fd3bb3ac..880945f143b1198d4ded2d8809fb758eeea48913 100644 --- a/board/amlogic/q200/q200.c +++ b/board/amlogic/q200/q200.c @@ -6,6 +6,7 @@ #include <common.h> #include <dm.h> +#include <env.h> #include <environment.h> #include <asm/io.h> #include <asm/arch/gx.h> diff --git a/board/aristainetos/aristainetos-v2.c b/board/aristainetos/aristainetos-v2.c index c81c441172134380a5c232913d4f571b354b5129..c0a2e41f02e8c58c04cf07071e20a74c96f110a3 100644 --- a/board/aristainetos/aristainetos-v2.c +++ b/board/aristainetos/aristainetos-v2.c @@ -13,6 +13,7 @@ #include <asm/arch/imx-regs.h> #include <asm/arch/iomux.h> #include <asm/arch/mx6-pins.h> +#include <env.h> #include <linux/errno.h> #include <asm/gpio.h> #include <asm/mach-imx/iomux-v3.h> diff --git a/board/armltd/integrator/integrator.c b/board/armltd/integrator/integrator.c index 69d92a32a5f28d0c9e12643f544deef8c0ad1467..0a2baa72976ca3edd4696dcb7f67b8f9d0370349 100644 --- a/board/armltd/integrator/integrator.c +++ b/board/armltd/integrator/integrator.c @@ -18,6 +18,7 @@ #include <common.h> #include <dm.h> +#include <env.h> #include <netdev.h> #include <asm/io.h> #include <dm/platform_data/serial_pl01x.h> diff --git a/board/atmel/common/board.c b/board/atmel/common/board.c index 20c3b8c086d73c79697b0621f4b2abf5fb426c67..c41706c4005c011094220c843b98f1a759a60146 100644 --- a/board/atmel/common/board.c +++ b/board/atmel/common/board.c @@ -5,6 +5,7 @@ */ #include <common.h> +#include <env.h> #include <w1.h> #include <w1-eeprom.h> #include <dm/device-internal.h> diff --git a/board/atmel/common/mac_eeprom.c b/board/atmel/common/mac_eeprom.c index 7ff1ec7462f4dcb3a9d0a299b2dfa0b8908a605e..f016ef7a6a7bd63766497d5d18a70f4b62768732 100644 --- a/board/atmel/common/mac_eeprom.c +++ b/board/atmel/common/mac_eeprom.c @@ -6,6 +6,7 @@ #include <common.h> #include <dm.h> +#include <env.h> #include <environment.h> #include <i2c_eeprom.h> #include <netdev.h> diff --git a/board/atmel/sama5d3xek/sama5d3xek.c b/board/atmel/sama5d3xek/sama5d3xek.c index e373f4580092f404aaf2d18082281792a87982ef..acf61486d20b252b9638ef96054531da1852ae1c 100644 --- a/board/atmel/sama5d3xek/sama5d3xek.c +++ b/board/atmel/sama5d3xek/sama5d3xek.c @@ -12,6 +12,7 @@ #include <asm/arch/gpio.h> #include <asm/arch/clk.h> #include <debug_uart.h> +#include <env.h> #include <linux/ctype.h> #include <phy.h> #include <micrel.h> diff --git a/board/bachmann/ot1200/ot1200.c b/board/bachmann/ot1200/ot1200.c index 067a970830aa922a953def486769bd2d63e6f623..36f37084b36c0c4b7929f3c88b046a3ec9ca388b 100644 --- a/board/bachmann/ot1200/ot1200.c +++ b/board/bachmann/ot1200/ot1200.c @@ -9,6 +9,7 @@ #include <asm/arch/clock.h> #include <asm/arch/imx-regs.h> #include <asm/arch/iomux.h> +#include <env.h> #include <malloc.h> #include <asm/arch/mx6-pins.h> #include <asm/mach-imx/iomux-v3.h> diff --git a/board/bosch/shc/board.c b/board/bosch/shc/board.c index feed63bdf28b783c4dacd3b1bb7b76e121e9c40d..29be3739f914a317561bba78fe6bd301767dd19b 100644 --- a/board/bosch/shc/board.c +++ b/board/bosch/shc/board.c @@ -12,6 +12,7 @@ */ #include <common.h> +#include <env.h> #include <errno.h> #include <spl.h> #include <asm/arch/cpu.h> diff --git a/board/buffalo/lsxl/lsxl.c b/board/buffalo/lsxl/lsxl.c index bf69a746e4d98009f615085851c20ecd8b8ee7e8..b2ccb83c8a86db1c51c5701519a5e9fb53e7294b 100644 --- a/board/buffalo/lsxl/lsxl.c +++ b/board/buffalo/lsxl/lsxl.c @@ -8,6 +8,7 @@ */ #include <common.h> +#include <env.h> #include <environment.h> #include <net.h> #include <malloc.h> diff --git a/board/cadence/xtfpga/xtfpga.c b/board/cadence/xtfpga/xtfpga.c index bdda9314a59ce220d83c01b894ec449bae59aaac..256611638a55fb303d507c834e2e61239a215724 100644 --- a/board/cadence/xtfpga/xtfpga.c +++ b/board/cadence/xtfpga/xtfpga.c @@ -8,6 +8,7 @@ #include <command.h> #include <dm.h> #include <dm/platform_data/net_ethoc.h> +#include <env.h> #include <linux/ctype.h> #include <linux/string.h> #include <linux/stringify.h> diff --git a/board/ccv/xpress/xpress.c b/board/ccv/xpress/xpress.c index 35e1c557b50b01e8021009a5adaa887f2b648839..05286e643c0ea958c24d8a733b404a853b9882de 100644 --- a/board/ccv/xpress/xpress.c +++ b/board/ccv/xpress/xpress.c @@ -16,6 +16,7 @@ #include <asm/mach-imx/mxc_i2c.h> #include <asm/io.h> #include <common.h> +#include <env.h> #include <fsl_esdhc_imx.h> #include <i2c.h> #include <miiphy.h> diff --git a/board/compulab/cl-som-imx7/cl-som-imx7.c b/board/compulab/cl-som-imx7/cl-som-imx7.c index 94e7bf194bc7f36fb0f68c8838d5b03c087087a6..6cc7554c1a46d3798f23ecbcae681a881cc529c0 100644 --- a/board/compulab/cl-som-imx7/cl-som-imx7.c +++ b/board/compulab/cl-som-imx7/cl-som-imx7.c @@ -8,6 +8,7 @@ */ #include <common.h> +#include <env.h> #include <environment.h> #include <mmc.h> #include <phy.h> diff --git a/board/compulab/cm_fx6/cm_fx6.c b/board/compulab/cm_fx6/cm_fx6.c index e9262c64a5d35cda8782517a63e62b291921b1a2..57bbe41b8c9da1968239f27ebb88ab87d13721bc 100644 --- a/board/compulab/cm_fx6/cm_fx6.c +++ b/board/compulab/cm_fx6/cm_fx6.c @@ -11,6 +11,7 @@ #include <ahci.h> #include <dm.h> #include <dwc_ahsata.h> +#include <env.h> #include <environment.h> #include <fsl_esdhc_imx.h> #include <miiphy.h> diff --git a/board/compulab/cm_t335/cm_t335.c b/board/compulab/cm_t335/cm_t335.c index 95cbb777538b8f5c6e1eed478234e64ccc1901d8..fca7685ca7ae4350083a02ee8e4b25dbc4ced534 100644 --- a/board/compulab/cm_t335/cm_t335.c +++ b/board/compulab/cm_t335/cm_t335.c @@ -8,6 +8,7 @@ */ #include <common.h> +#include <env.h> #include <environment.h> #include <errno.h> #include <miiphy.h> diff --git a/board/compulab/cm_t35/cm_t35.c b/board/compulab/cm_t35/cm_t35.c index 4d171f4900be8eb6deea730435825b3edd805612..ead470064636e3a2eb43837c6c86e405bdcb82ec 100644 --- a/board/compulab/cm_t35/cm_t35.c +++ b/board/compulab/cm_t35/cm_t35.c @@ -12,6 +12,7 @@ */ #include <common.h> +#include <env.h> #include <environment.h> #include <status_led.h> #include <netdev.h> diff --git a/board/compulab/cm_t54/cm_t54.c b/board/compulab/cm_t54/cm_t54.c index 504a537f45a9edc8ae93ec70289922f63b394a5d..d7c59d5a32afd5b9bfa9246ba1da68bb6f1d3c03 100644 --- a/board/compulab/cm_t54/cm_t54.c +++ b/board/compulab/cm_t54/cm_t54.c @@ -8,6 +8,7 @@ */ #include <common.h> +#include <env.h> #include <environment.h> #include <fdt_support.h> #include <usb.h> diff --git a/board/congatec/cgtqmx6eval/cgtqmx6eval.c b/board/congatec/cgtqmx6eval/cgtqmx6eval.c index 7c767fb8b4fdd2866dc9fb66fb274eb3c9c6fa78..6b3d5b833f44ae6ff729a5e0979ff3e96e81a74a 100644 --- a/board/congatec/cgtqmx6eval/cgtqmx6eval.c +++ b/board/congatec/cgtqmx6eval/cgtqmx6eval.c @@ -20,6 +20,7 @@ #include <asm/arch/sys_proto.h> #include <asm/arch/mxc_hdmi.h> #include <asm/arch/crm_regs.h> +#include <env.h> #include <mmc.h> #include <fsl_esdhc_imx.h> #include <i2c.h> diff --git a/board/cssi/MCR3000/MCR3000.c b/board/cssi/MCR3000/MCR3000.c index d26ac35b4406fc9408bca6f558689cb1aa749e36..445b84c180fe923dd76203052b5a17a353c6ede9 100644 --- a/board/cssi/MCR3000/MCR3000.c +++ b/board/cssi/MCR3000/MCR3000.c @@ -8,6 +8,7 @@ */ #include <common.h> +#include <env.h> #include <hwconfig.h> #include <mpc8xx.h> #include <fdt_support.h> diff --git a/board/davinci/da8xxevm/da850evm.c b/board/davinci/da8xxevm/da850evm.c index 2d5710076de3568d1c535dfc49e91248ebf61b15..d3f3819f112933a6749bbfc04ba9fd5ae134b9dd 100644 --- a/board/davinci/da8xxevm/da850evm.c +++ b/board/davinci/da8xxevm/da850evm.c @@ -10,6 +10,7 @@ #include <common.h> #include <dm.h> +#include <env.h> #include <environment.h> #include <i2c.h> #include <net.h> diff --git a/board/davinci/da8xxevm/omapl138_lcdk.c b/board/davinci/da8xxevm/omapl138_lcdk.c index 578d9284437e1cae50f17064439fd4b74decc915..08881f039d8b754d50699fe6a4f0c27d22927c9b 100644 --- a/board/davinci/da8xxevm/omapl138_lcdk.c +++ b/board/davinci/da8xxevm/omapl138_lcdk.c @@ -9,6 +9,7 @@ */ #include <common.h> +#include <env.h> #include <i2c.h> #include <net.h> #include <asm/arch/hardware.h> diff --git a/board/dhelectronics/dh_imx6/dh_imx6.c b/board/dhelectronics/dh_imx6/dh_imx6.c index 40cc2a854eeea55fc51bbd1ef6c821ba90c6f906..1994dec8f99c41c3fafa2fd72dc9cc98f6a6b43e 100644 --- a/board/dhelectronics/dh_imx6/dh_imx6.c +++ b/board/dhelectronics/dh_imx6/dh_imx6.c @@ -21,6 +21,7 @@ #include <asm/mach-imx/sata.h> #include <ahci.h> #include <dwc_ahsata.h> +#include <env.h> #include <environment.h> #include <errno.h> #include <fsl_esdhc_imx.h> diff --git a/board/eets/pdu001/board.c b/board/eets/pdu001/board.c index b857a5a935ef30f64a5bc5d3dd418c632a772a93..74a66842748d1ffd41c842a218d7b6951fd33e69 100644 --- a/board/eets/pdu001/board.c +++ b/board/eets/pdu001/board.c @@ -10,6 +10,7 @@ */ #include <common.h> +#include <env.h> #include <errno.h> #include <spl.h> #include <i2c.h> diff --git a/board/el/el6x/el6x.c b/board/el/el6x/el6x.c index 55db26a819a0e73f1f52d247a338744af499866b..18d69a7da388639a2d5277c765c42aa668962d5a 100644 --- a/board/el/el6x/el6x.c +++ b/board/el/el6x/el6x.c @@ -9,6 +9,7 @@ #include <asm/arch/imx-regs.h> #include <asm/arch/iomux.h> #include <asm/arch/mx6-pins.h> +#include <env.h> #include <linux/errno.h> #include <asm/gpio.h> #include <asm/mach-imx/mxc_i2c.h> diff --git a/board/freescale/common/cmd_esbc_validate.c b/board/freescale/common/cmd_esbc_validate.c index b06235f291d0b0f08e2625c96b1bcd0149bd61e6..36b620ca23a04be6ced9f837a9f1c8ab5b148b64 100644 --- a/board/freescale/common/cmd_esbc_validate.c +++ b/board/freescale/common/cmd_esbc_validate.c @@ -5,6 +5,7 @@ #include <common.h> #include <command.h> +#include <env.h> #include <fsl_validate.h> int do_esbc_halt(cmd_tbl_t *cmdtp, int flag, int argc, diff --git a/board/freescale/common/fsl_chain_of_trust.c b/board/freescale/common/fsl_chain_of_trust.c index dddfd26a13f3d25eb55d6842f19204a1c461b703..a024e7239e6e81b834e87c55bc1183fc2e1f730c 100644 --- a/board/freescale/common/fsl_chain_of_trust.c +++ b/board/freescale/common/fsl_chain_of_trust.c @@ -5,6 +5,7 @@ #include <common.h> #include <dm.h> +#include <env.h> #include <fsl_validate.h> #include <fsl_secboot_err.h> #include <fsl_sfp.h> diff --git a/board/freescale/common/sys_eeprom.c b/board/freescale/common/sys_eeprom.c index ab0fe0baf1ecacd426de26502679ea454de955d6..510d7c266bbe8f2543993049b6603823d11811e1 100644 --- a/board/freescale/common/sys_eeprom.c +++ b/board/freescale/common/sys_eeprom.c @@ -8,6 +8,7 @@ #include <common.h> #include <command.h> +#include <env.h> #include <i2c.h> #include <linux/ctype.h> diff --git a/board/freescale/imx8mq_evk/imx8mq_evk.c b/board/freescale/imx8mq_evk/imx8mq_evk.c index 322713ccedcb12b1cc3764b8483a05af7c44187e..1463e6e6963b2f767b061ac70ef3ac5f1b718737 100644 --- a/board/freescale/imx8mq_evk/imx8mq_evk.c +++ b/board/freescale/imx8mq_evk/imx8mq_evk.c @@ -4,6 +4,7 @@ */ #include <common.h> +#include <env.h> #include <malloc.h> #include <errno.h> #include <asm/io.h> diff --git a/board/freescale/imx8qm_mek/imx8qm_mek.c b/board/freescale/imx8qm_mek/imx8qm_mek.c index b7a609b0971bec39151f9311a06c617ea8cd810a..f4b0ffc59deae0239f19d73704654227cd0edd91 100644 --- a/board/freescale/imx8qm_mek/imx8qm_mek.c +++ b/board/freescale/imx8qm_mek/imx8qm_mek.c @@ -4,6 +4,7 @@ */ #include <common.h> +#include <env.h> #include <errno.h> #include <linux/libfdt.h> #include <environment.h> diff --git a/board/freescale/imx8qxp_mek/imx8qxp_mek.c b/board/freescale/imx8qxp_mek/imx8qxp_mek.c index 3cf73e1ab645ebf55ce2e586c5df12c5659b14b3..26bbbca8fc68d4c56509ea2b1cc16a208d76612f 100644 --- a/board/freescale/imx8qxp_mek/imx8qxp_mek.c +++ b/board/freescale/imx8qxp_mek/imx8qxp_mek.c @@ -4,6 +4,7 @@ */ #include <common.h> +#include <env.h> #include <errno.h> #include <linux/libfdt.h> #include <environment.h> diff --git a/board/freescale/ls2080ardb/ls2080ardb.c b/board/freescale/ls2080ardb/ls2080ardb.c index ce419dfcaeabf9a9c17d83ec0837a500c342fadd..a278e2fc117fdb7233c4a5331385b706bd974f72 100644 --- a/board/freescale/ls2080ardb/ls2080ardb.c +++ b/board/freescale/ls2080ardb/ls2080ardb.c @@ -4,6 +4,7 @@ * Copyright 2017 NXP */ #include <common.h> +#include <env.h> #include <malloc.h> #include <errno.h> #include <netdev.h> diff --git a/board/freescale/mpc8323erdb/mpc8323erdb.c b/board/freescale/mpc8323erdb/mpc8323erdb.c index 2dc6d7f5f5f453a7d48bbd84912c91d12125609f..e5aecc4e1f28b82f91f8e843412f5f832801d6a8 100644 --- a/board/freescale/mpc8323erdb/mpc8323erdb.c +++ b/board/freescale/mpc8323erdb/mpc8323erdb.c @@ -10,6 +10,7 @@ */ #include <common.h> +#include <env.h> #include <ioports.h> #include <mpc83xx.h> #include <i2c.h> diff --git a/board/freescale/mx53loco/mx53loco.c b/board/freescale/mx53loco/mx53loco.c index d023ce667daa27966bba231ca32fb1a7ca53b072..a177815bb8aafbae3312a8073d136acc7aab8901 100644 --- a/board/freescale/mx53loco/mx53loco.c +++ b/board/freescale/mx53loco/mx53loco.c @@ -12,6 +12,7 @@ #include <asm/arch/clock.h> #include <asm/arch/iomux-mx53.h> #include <asm/arch/clock.h> +#include <env.h> #include <linux/errno.h> #include <asm/mach-imx/mx5_video.h> #include <netdev.h> diff --git a/board/freescale/mx6sabreauto/mx6sabreauto.c b/board/freescale/mx6sabreauto/mx6sabreauto.c index e1a3b4742514b1b98e6579a658a9275dafcce8cf..dc156efbbcbc62c08ec96d7ea2de10a363c7fa3b 100644 --- a/board/freescale/mx6sabreauto/mx6sabreauto.c +++ b/board/freescale/mx6sabreauto/mx6sabreauto.c @@ -11,6 +11,7 @@ #include <asm/arch/imx-regs.h> #include <asm/arch/iomux.h> #include <asm/arch/mx6-pins.h> +#include <env.h> #include <linux/errno.h> #include <asm/gpio.h> #include <asm/mach-imx/iomux-v3.h> diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b/board/freescale/mx6sabresd/mx6sabresd.c index 63e1dd0a83cab99a917c217cabbce292d654c628..b0c0117968bf37d3205d2e7902fbe0e8bf8ca798 100644 --- a/board/freescale/mx6sabresd/mx6sabresd.c +++ b/board/freescale/mx6sabresd/mx6sabresd.c @@ -10,6 +10,7 @@ #include <asm/arch/iomux.h> #include <asm/arch/mx6-pins.h> #include <asm/mach-imx/spi.h> +#include <env.h> #include <linux/errno.h> #include <asm/gpio.h> #include <asm/mach-imx/mxc_i2c.h> diff --git a/board/freescale/mx6sxsabresd/mx6sxsabresd.c b/board/freescale/mx6sxsabresd/mx6sxsabresd.c index 8ee85cc384b6a40dd7ec99921e54f539588556b5..1c10958879b1c30b27a53ae60eb5c8b742a77fb6 100644 --- a/board/freescale/mx6sxsabresd/mx6sxsabresd.c +++ b/board/freescale/mx6sxsabresd/mx6sxsabresd.c @@ -15,6 +15,7 @@ #include <asm/mach-imx/iomux-v3.h> #include <asm/io.h> #include <asm/mach-imx/mxc_i2c.h> +#include <env.h> #include <linux/sizes.h> #include <common.h> #include <fsl_esdhc_imx.h> diff --git a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c index 785247f7e2f52ad87d2e1c012447b6cd43affc68..ccbe4044786c8e53fd94cd7097bf5785b403e281 100644 --- a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c +++ b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c @@ -16,6 +16,7 @@ #include <asm/mach-imx/mxc_i2c.h> #include <asm/io.h> #include <common.h> +#include <env.h> #include <fsl_esdhc_imx.h> #include <i2c.h> #include <miiphy.h> diff --git a/board/freescale/mx6ullevk/mx6ullevk.c b/board/freescale/mx6ullevk/mx6ullevk.c index 1f0f70efbd5efce23e5e2228b05fb035ca998664..e1193478026273e3bbcc2090ca95906693892c92 100644 --- a/board/freescale/mx6ullevk/mx6ullevk.c +++ b/board/freescale/mx6ullevk/mx6ullevk.c @@ -14,6 +14,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 <mmc.h> diff --git a/board/gardena/smart-gateway-at91sam/board.c b/board/gardena/smart-gateway-at91sam/board.c index 6a1389eb05ecc0430b8a7115b8132d149fb89304..3e2da0d6f8e01f35bd2873a4ee33a249d0d00ed4 100644 --- a/board/gardena/smart-gateway-at91sam/board.c +++ b/board/gardena/smart-gateway-at91sam/board.c @@ -6,6 +6,7 @@ #include <common.h> #include <debug_uart.h> +#include <env.h> #include <led.h> #include <asm/arch/at91_common.h> #include <asm/arch/clk.h> diff --git a/board/gardena/smart-gateway-mt7688/board.c b/board/gardena/smart-gateway-mt7688/board.c index 6e11077977a3d05555e391b375937905905b7446..baa3e5726c37231d9c8809592235bf1f3a278b09 100644 --- a/board/gardena/smart-gateway-mt7688/board.c +++ b/board/gardena/smart-gateway-mt7688/board.c @@ -4,6 +4,7 @@ */ #include <common.h> +#include <env.h> #include <environment.h> #include <led.h> #include <net.h> diff --git a/board/gateworks/gw_ventana/gw_ventana.c b/board/gateworks/gw_ventana/gw_ventana.c index 92edc103816018edfb3b140a3871365acddd6d7f..3c40a4a8922476b09f09446b369fa0cc8f8782a4 100644 --- a/board/gateworks/gw_ventana/gw_ventana.c +++ b/board/gateworks/gw_ventana/gw_ventana.c @@ -21,6 +21,7 @@ #include <asm/setup.h> #include <dm.h> #include <dm/platform_data/serial_mxc.h> +#include <env.h> #include <environment.h> #include <hwconfig.h> #include <i2c.h> diff --git a/board/ge/bx50v3/bx50v3.c b/board/ge/bx50v3/bx50v3.c index 806525204f1562e812568366d1d2f57b165c3588..917ecc4c18160dc27b50558153618c8f286d14be 100644 --- a/board/ge/bx50v3/bx50v3.c +++ b/board/ge/bx50v3/bx50v3.c @@ -9,6 +9,7 @@ #include <asm/arch/imx-regs.h> #include <asm/arch/iomux.h> #include <asm/arch/mx6-pins.h> +#include <env.h> #include <linux/errno.h> #include <linux/libfdt.h> #include <asm/gpio.h> diff --git a/board/ge/common/ge_common.c b/board/ge/common/ge_common.c index 4e6ef9c48066d5d5434f9b5ac9d11491b5c59af7..501c8b2daf2aa0b5426f1f3f323844d5f5dcc9d6 100644 --- a/board/ge/common/ge_common.c +++ b/board/ge/common/ge_common.c @@ -4,6 +4,7 @@ */ #include <common.h> +#include <env.h> #include <i2c.h> #include <rtc.h> diff --git a/board/ge/mx53ppd/mx53ppd.c b/board/ge/mx53ppd/mx53ppd.c index bf75bd2d465e28d2e3f82e79c9bd8b1c8ecb3f4a..aadf4668d98ce2eb981abc263b94b0a7305a3b6b 100644 --- a/board/ge/mx53ppd/mx53ppd.c +++ b/board/ge/mx53ppd/mx53ppd.c @@ -16,6 +16,7 @@ #include <asm/arch/clock.h> #include <asm/arch/iomux-mx53.h> #include <asm/arch/clock.h> +#include <env.h> #include <linux/errno.h> #include <linux/libfdt.h> #include <asm/mach-imx/mxc_i2c.h> diff --git a/board/grinn/chiliboard/board.c b/board/grinn/chiliboard/board.c index dc0de620fc377a8c0977e312b0edace98b7c0940..6b9e6e9a0984128e27b446daa9e56d14f0b22d3e 100644 --- a/board/grinn/chiliboard/board.c +++ b/board/grinn/chiliboard/board.c @@ -16,6 +16,7 @@ #include <asm/emif.h> #include <asm/io.h> #include <cpsw.h> +#include <env.h> #include <environment.h> #include <errno.h> #include <miiphy.h> diff --git a/board/gumstix/pepper/board.c b/board/gumstix/pepper/board.c index ea29dcd75ee6d05301dc2bb06fb9c2abce37a473..7ae4c5cd77fd3e3af735630064a4f6e396c6610f 100644 --- a/board/gumstix/pepper/board.c +++ b/board/gumstix/pepper/board.c @@ -7,6 +7,7 @@ */ #include <common.h> +#include <env.h> #include <errno.h> #include <spl.h> #include <asm/arch/cpu.h> diff --git a/board/highbank/highbank.c b/board/highbank/highbank.c index 996daffa1b64574fb13b8c1b5becbfa785d3a510..9563763dfa53cd543e9b95cf0de4d1b6a2ecaaea 100644 --- a/board/highbank/highbank.c +++ b/board/highbank/highbank.c @@ -5,6 +5,7 @@ #include <common.h> #include <ahci.h> +#include <env.h> #include <netdev.h> #include <scsi.h> diff --git a/board/intel/edison/edison.c b/board/intel/edison/edison.c index d80ee3aa8a6389d051d5495f9cce49a6609d3a82..f8f498d088472a13e45eac6a186af82f9a301b09 100644 --- a/board/intel/edison/edison.c +++ b/board/intel/edison/edison.c @@ -4,6 +4,7 @@ */ #include <common.h> #include <dwc3-uboot.h> +#include <env.h> #include <environment.h> #include <mmc.h> #include <u-boot/md5.h> diff --git a/board/isee/igep003x/board.c b/board/isee/igep003x/board.c index 965a009a9f53311baebc945c11e7624c2a355ad5..398c945990919f307bb5f1031a4d266b1bdf8f95 100644 --- a/board/isee/igep003x/board.c +++ b/board/isee/igep003x/board.c @@ -6,6 +6,7 @@ */ #include <common.h> +#include <env.h> #include <errno.h> #include <spl.h> #include <asm/arch/cpu.h> diff --git a/board/isee/igep00x0/igep00x0.c b/board/isee/igep00x0/igep00x0.c index 367af82d4a16a59deeae7bd509ffda35f2b45592..74fc5f08900ae7128415c45f44508cb449ad5bfc 100644 --- a/board/isee/igep00x0/igep00x0.c +++ b/board/isee/igep00x0/igep00x0.c @@ -4,6 +4,7 @@ * ISEE 2007 SL, <www.iseebcn.com> */ #include <common.h> +#include <env.h> #include <status_led.h> #include <dm.h> #include <ns16550.h> diff --git a/board/k+p/kp_imx53/kp_id_rev.c b/board/k+p/kp_imx53/kp_id_rev.c index e8f51769f667213302b13bbaad03e82287042986..642adf78d8c29c6caf632af61fda84dcc8fa6192 100644 --- a/board/k+p/kp_imx53/kp_id_rev.c +++ b/board/k+p/kp_imx53/kp_id_rev.c @@ -10,6 +10,7 @@ */ #include <common.h> +#include <env.h> #include <environment.h> #include <i2c.h> #include "kp_id_rev.h" diff --git a/board/k+p/kp_imx53/kp_imx53.c b/board/k+p/kp_imx53/kp_imx53.c index b447e13461d24b9c0771e819b2836bfbc7463a8e..84cddd489490f0d299990388bd391cf0b27c9a6b 100644 --- a/board/k+p/kp_imx53/kp_imx53.c +++ b/board/k+p/kp_imx53/kp_imx53.c @@ -13,6 +13,7 @@ #include <asm/arch/iomux-mx53.h> #include <asm/arch/clock.h> #include <asm/gpio.h> +#include <env.h> #include <power/pmic.h> #include <fsl_pmic.h> #include "kp_id_rev.h" diff --git a/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c b/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c index 7bdc64b1be793b53cbabb19c8ee63961f8a8852b..2c541ace02100cde4660c4fc4f2f8526201c55f2 100644 --- a/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c +++ b/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c @@ -17,6 +17,7 @@ #include <asm/mach-imx/boot_mode.h> #include <asm/mach-imx/iomux-v3.h> #include <asm/mach-imx/mxc_i2c.h> +#include <env.h> #include <errno.h> #include <fsl_esdhc_imx.h> #include <fuse.h> diff --git a/board/keymile/common/common.c b/board/keymile/common/common.c index 92d4a6ff614956fd5b649813cb4c739593efa8a3..08f7f8d88451710513a9734da3ce266b96ea4c4d 100644 --- a/board/keymile/common/common.c +++ b/board/keymile/common/common.c @@ -8,6 +8,7 @@ */ #include <common.h> +#include <env.h> #include <ioports.h> #include <command.h> #include <malloc.h> diff --git a/board/keymile/common/ivm.c b/board/keymile/common/ivm.c index 23bd21c4bc017ff272a68b7686dff29bb9d6eed4..da0634f01bfa00fa92a78235f0f07a7b2e4e83b4 100644 --- a/board/keymile/common/ivm.c +++ b/board/keymile/common/ivm.c @@ -6,6 +6,7 @@ #include <common.h> #include <cli_hush.h> +#include <env.h> #include <i2c.h> #include "common.h" diff --git a/board/keymile/km83xx/km83xx.c b/board/keymile/km83xx/km83xx.c index 880ce67fa6ca0de8219f63a7e2bf9a845a431427..51778368d9ba26fa7234fcf08b731d7b316cce4a 100644 --- a/board/keymile/km83xx/km83xx.c +++ b/board/keymile/km83xx/km83xx.c @@ -14,6 +14,7 @@ */ #include <common.h> +#include <env.h> #include <ioports.h> #include <mpc83xx.h> #include <i2c.h> diff --git a/board/keymile/km_arm/km_arm.c b/board/keymile/km_arm/km_arm.c index 3db80615ef62807549bf4b4fd84f2066548620b4..922cc621f7801d4066ac513407d2d1ef3bb1bd1e 100644 --- a/board/keymile/km_arm/km_arm.c +++ b/board/keymile/km_arm/km_arm.c @@ -12,6 +12,7 @@ */ #include <common.h> +#include <env.h> #include <i2c.h> #include <nand.h> #include <netdev.h> diff --git a/board/keymile/kmp204x/kmp204x.c b/board/keymile/kmp204x/kmp204x.c index e7dcefacdd91037e99199dd865f843d4d8a58cd3..4d1e38aa3a7af12a8ab825494485fed181efed78 100644 --- a/board/keymile/kmp204x/kmp204x.c +++ b/board/keymile/kmp204x/kmp204x.c @@ -8,6 +8,7 @@ #include <common.h> #include <command.h> +#include <env.h> #include <netdev.h> #include <linux/compiler.h> #include <asm/mmu.h> diff --git a/board/kosagi/novena/novena.c b/board/kosagi/novena/novena.c index dcf3d7ff8976888a1b090bb5b19c50cd91e0ff21..e0f0d7c60c01c2d36e659bcaf0b60b3e283b8492 100644 --- a/board/kosagi/novena/novena.c +++ b/board/kosagi/novena/novena.c @@ -9,6 +9,7 @@ #include <dm.h> #include <dm/device-internal.h> #include <ahci.h> +#include <env.h> #include <linux/errno.h> #include <asm/gpio.h> #include <asm/io.h> diff --git a/board/laird/wb50n/wb50n.c b/board/laird/wb50n/wb50n.c index 89d3795857213997893b36eaaa1b544c32db67a6..a2f8eaf0ba34f05fc3e462f608b1c979d3aad862 100644 --- a/board/laird/wb50n/wb50n.c +++ b/board/laird/wb50n/wb50n.c @@ -11,6 +11,7 @@ #include <asm/arch/at91_rstc.h> #include <asm/arch/gpio.h> #include <asm/arch/clk.h> +#include <env.h> #include <micrel.h> #include <net.h> #include <netdev.h> diff --git a/board/lg/sniper/sniper.c b/board/lg/sniper/sniper.c index a7de4c21674c4eaa114aa5d096ac418df55d6879..b4205d6ed4c11e18ee2be50ccaa8f7c511eaf3c1 100644 --- a/board/lg/sniper/sniper.c +++ b/board/lg/sniper/sniper.c @@ -8,6 +8,7 @@ #include <config.h> #include <common.h> #include <dm.h> +#include <env.h> #include <linux/ctype.h> #include <linux/usb/musb.h> #include <asm/omap_musb.h> diff --git a/board/liebherr/display5/display5.c b/board/liebherr/display5/display5.c index ea49b7197f930bf3f713830d3fb86e6b4cdd32f3..5c70e1b6f28cf67fcb0ffbef5b4eba9f61df35d3 100644 --- a/board/liebherr/display5/display5.c +++ b/board/liebherr/display5/display5.c @@ -13,6 +13,7 @@ #include <asm/arch/mx6-pins.h> #include <asm/arch/mx6-ddr.h> #include <asm/arch/sys_proto.h> +#include <env.h> #include <errno.h> #include <asm/gpio.h> #include <malloc.h> diff --git a/board/logicpd/imx6/imx6logic.c b/board/logicpd/imx6/imx6logic.c index 6e3ffa72d7f390ac8c90c953d13a283914ec513a..7a59b89d94a201847f1ac8ffcc13bf3acf173624 100644 --- a/board/logicpd/imx6/imx6logic.c +++ b/board/logicpd/imx6/imx6logic.c @@ -9,6 +9,7 @@ */ #include <common.h> +#include <env.h> #include <miiphy.h> #include <input.h> #include <mmc.h> diff --git a/board/logicpd/zoom1/zoom1.c b/board/logicpd/zoom1/zoom1.c index 5e32077d64904570540eacbc357aed656274ab34..54716125f38f4b83432331019ea0304f7d84d0fb 100644 --- a/board/logicpd/zoom1/zoom1.c +++ b/board/logicpd/zoom1/zoom1.c @@ -15,6 +15,7 @@ */ #include <common.h> #include <dm.h> +#include <env.h> #include <environment.h> #include <ns16550.h> #include <netdev.h> diff --git a/board/nokia/rx51/rx51.c b/board/nokia/rx51/rx51.c index 76f6ede38c62d8b9811c717b59762b5d584fb49c..71ca79deab7f28aca40f84338260cb66afe60740 100644 --- a/board/nokia/rx51/rx51.c +++ b/board/nokia/rx51/rx51.c @@ -22,6 +22,7 @@ */ #include <common.h> +#include <env.h> #include <watchdog.h> #include <malloc.h> #include <twl4030.h> diff --git a/board/overo/overo.c b/board/overo/overo.c index 8fa41f81550cf362d33363564245b97439c3ddde..f13bff1871105b412bc007cacd4a7fde0f62a101 100644 --- a/board/overo/overo.c +++ b/board/overo/overo.c @@ -13,6 +13,7 @@ */ #include <common.h> #include <dm.h> +#include <env.h> #include <ns16550.h> #include <netdev.h> #include <twl4030.h> diff --git a/board/phytec/pcm051/board.c b/board/phytec/pcm051/board.c index e720fdc0d929da3841f17165da177c68be4960ad..0cb85e940c40a5dec6f2f4a05337d31b0402ba68 100644 --- a/board/phytec/pcm051/board.c +++ b/board/phytec/pcm051/board.c @@ -9,6 +9,7 @@ */ #include <common.h> +#include <env.h> #include <environment.h> #include <errno.h> #include <spl.h> diff --git a/board/phytec/pcm052/pcm052.c b/board/phytec/pcm052/pcm052.c index c30df5df9dca2b302271085b9b56081f503c5532..dffd03786d981d9eb669cdc1cde19e2e006682ad 100644 --- a/board/phytec/pcm052/pcm052.c +++ b/board/phytec/pcm052/pcm052.c @@ -13,6 +13,7 @@ #include <asm/arch/ddrmc-vf610.h> #include <asm/arch/crm_regs.h> #include <asm/arch/clock.h> +#include <env.h> #include <led.h> #include <environment.h> #include <miiphy.h> diff --git a/board/phytec/pfla02/pfla02.c b/board/phytec/pfla02/pfla02.c index 753cf2b87de39bf5e360f3aec8d2fea2db1813c0..ae9ffe0390c359de5c7c0910b10da3381ec46b48 100644 --- a/board/phytec/pfla02/pfla02.c +++ b/board/phytec/pfla02/pfla02.c @@ -15,6 +15,7 @@ #include <asm/mach-imx/boot_mode.h> #include <asm/mach-imx/mxc_i2c.h> #include <asm/mach-imx/spi.h> +#include <env.h> #include <linux/errno.h> #include <asm/gpio.h> #include <mmc.h> diff --git a/board/phytec/phycore_rk3288/phycore-rk3288.c b/board/phytec/phycore_rk3288/phycore-rk3288.c index 92f3bd25f460b01eebf8024bcc7e0def8d161a82..9f945e829d8e6e58223554474f5a9a3d4aa0cf62 100644 --- a/board/phytec/phycore_rk3288/phycore-rk3288.c +++ b/board/phytec/phycore_rk3288/phycore-rk3288.c @@ -7,6 +7,7 @@ #include <asm/io.h> #include <common.h> #include <dm.h> +#include <env.h> #include <environment.h> #include <fdtdec.h> #include <i2c.h> diff --git a/board/qualcomm/dragonboard410c/dragonboard410c.c b/board/qualcomm/dragonboard410c/dragonboard410c.c index 9ceed3ad9b05f27620ca168172e61e459e056a90..06d3d7e0f85b23147cab838d6485a8bc3fd4c4c2 100644 --- a/board/qualcomm/dragonboard410c/dragonboard410c.c +++ b/board/qualcomm/dragonboard410c/dragonboard410c.c @@ -7,6 +7,7 @@ #include <common.h> #include <dm.h> +#include <env.h> #include <usb.h> #include <asm/gpio.h> #include <fdt_support.h> diff --git a/board/qualcomm/dragonboard820c/dragonboard820c.c b/board/qualcomm/dragonboard820c/dragonboard820c.c index ff6903523d62f79948fe96aa47d5b5caa03ccbd7..7a889646df8d1160d1613f1829062f501847611f 100644 --- a/board/qualcomm/dragonboard820c/dragonboard820c.c +++ b/board/qualcomm/dragonboard820c/dragonboard820c.c @@ -6,6 +6,7 @@ */ #include <asm/arch/sysmap-apq8096.h> +#include <env.h> #include <linux/arm-smccc.h> #include <linux/psci.h> #include <common.h> diff --git a/board/renesas/blanche/blanche.c b/board/renesas/blanche/blanche.c index f5ada6e288e97bf449e30694d5720c4258daf645..898abfbd85f709f041e008dd82761e9cd023ebff 100644 --- a/board/renesas/blanche/blanche.c +++ b/board/renesas/blanche/blanche.c @@ -18,6 +18,7 @@ #include <asm/processor.h> #include <dm.h> #include <dm/platform_data/serial_sh.h> +#include <env.h> #include <environment.h> #include <i2c.h> #include <linux/errno.h> diff --git a/board/renesas/sh7752evb/sh7752evb.c b/board/renesas/sh7752evb/sh7752evb.c index da33a0bd8a2f084a8e18f2b5410df2cfe980a03d..b14ce263f789905277d5b239da889b074a1fa5e6 100644 --- a/board/renesas/sh7752evb/sh7752evb.c +++ b/board/renesas/sh7752evb/sh7752evb.c @@ -4,6 +4,7 @@ */ #include <common.h> +#include <env.h> #include <environment.h> #include <malloc.h> #include <asm/processor.h> diff --git a/board/renesas/sh7753evb/sh7753evb.c b/board/renesas/sh7753evb/sh7753evb.c index 5ddddb65711d8497d7d83fa390438979f1fa64ab..f643867806b3179208dc19b035033f3d65b35908 100644 --- a/board/renesas/sh7753evb/sh7753evb.c +++ b/board/renesas/sh7753evb/sh7753evb.c @@ -4,6 +4,7 @@ */ #include <common.h> +#include <env.h> #include <environment.h> #include <malloc.h> #include <asm/processor.h> diff --git a/board/renesas/sh7757lcr/sh7757lcr.c b/board/renesas/sh7757lcr/sh7757lcr.c index 3222701ad2db2ebbbca7de60d88eef1cfd93ea8f..2d32440aeb3b43c90d33d67ce8ba45e49f04b038 100644 --- a/board/renesas/sh7757lcr/sh7757lcr.c +++ b/board/renesas/sh7757lcr/sh7757lcr.c @@ -4,6 +4,7 @@ */ #include <common.h> +#include <env.h> #include <environment.h> #include <malloc.h> #include <asm/processor.h> diff --git a/board/rockchip/tinker_rk3288/tinker-rk3288.c b/board/rockchip/tinker_rk3288/tinker-rk3288.c index e6b018d89c4351e926eac261b8dfbb5034518325..e379950095b902733080788a812a4dedaa3428a1 100644 --- a/board/rockchip/tinker_rk3288/tinker-rk3288.c +++ b/board/rockchip/tinker_rk3288/tinker-rk3288.c @@ -5,6 +5,7 @@ #include <common.h> #include <dm.h> +#include <env.h> #include <environment.h> #include <i2c_eeprom.h> #include <netdev.h> diff --git a/board/samsung/common/misc.c b/board/samsung/common/misc.c index 53cd1b29070363792d7d97af8ea238ee27621cdb..3ef1e7998013855f31c6b81b24f60e4baae5982a 100644 --- a/board/samsung/common/misc.c +++ b/board/samsung/common/misc.c @@ -5,6 +5,7 @@ */ #include <common.h> +#include <env.h> #include <lcd.h> #include <libtizen.h> #include <samsung/misc.h> diff --git a/board/samsung/trats/trats.c b/board/samsung/trats/trats.c index e0846bcb5b47811f3fd239b35f6770df6be70c6d..ec85f707c19a685a7fd26e56802131ce87e6d446 100644 --- a/board/samsung/trats/trats.c +++ b/board/samsung/trats/trats.c @@ -7,6 +7,7 @@ */ #include <common.h> +#include <env.h> #include <lcd.h> #include <asm/io.h> #include <asm/gpio.h> diff --git a/board/samsung/universal_c210/universal.c b/board/samsung/universal_c210/universal.c index f8281f209a6d7965bbfc6a6757ae80f5c0cae5a4..ed9c5b50d92778bcee975d36c07d6e0f44aeb540 100644 --- a/board/samsung/universal_c210/universal.c +++ b/board/samsung/universal_c210/universal.c @@ -6,6 +6,7 @@ */ #include <common.h> +#include <env.h> #include <spi.h> #include <lcd.h> #include <asm/io.h> diff --git a/board/samtec/vining_fpga/socfpga.c b/board/samtec/vining_fpga/socfpga.c index efc8ddf162b83b789e5b9d0d2dad634e9fb12ebd..63ce4a20b5d17b20620aac77f8933742cee27a8b 100644 --- a/board/samtec/vining_fpga/socfpga.c +++ b/board/samtec/vining_fpga/socfpga.c @@ -4,6 +4,7 @@ */ #include <common.h> +#include <env.h> #include <environment.h> #include <asm/arch/reset_manager.h> #include <asm/io.h> diff --git a/board/siemens/common/factoryset.c b/board/siemens/common/factoryset.c index 96615424f6aa81f233fc2903073e33fdf91fdfdd..cd224a8e1c1782a71b9a7467a0880da8eb848f12 100644 --- a/board/siemens/common/factoryset.c +++ b/board/siemens/common/factoryset.c @@ -8,6 +8,7 @@ #if !defined(CONFIG_SPL_BUILD) #include <common.h> +#include <env.h> #include <environment.h> #include <i2c.h> #include <asm/io.h> diff --git a/board/siemens/draco/board.c b/board/siemens/draco/board.c index 95b89dac0eec8d190be08791f2a53f936f8b912a..a6840b895b2753c347e6d9815f1ad835fb36c932 100644 --- a/board/siemens/draco/board.c +++ b/board/siemens/draco/board.c @@ -13,6 +13,7 @@ */ #include <common.h> +#include <env.h> #include <errno.h> #include <spl.h> #include <asm/arch/cpu.h> diff --git a/board/siemens/pxm2/board.c b/board/siemens/pxm2/board.c index 1b9e83e248e9561a60ca1f4072732d97dd8c6ee8..0a82a5ef5c53b15c71853011a9ed049ffed15c66 100644 --- a/board/siemens/pxm2/board.c +++ b/board/siemens/pxm2/board.c @@ -13,6 +13,7 @@ */ #include <common.h> +#include <env.h> #include <environment.h> #include <errno.h> #include <spl.h> diff --git a/board/siemens/rut/board.c b/board/siemens/rut/board.c index 25e2ed22a670287fcc6761eeb95a7dcca4843d77..539ecef22cb41dad98a911039531610d7119427b 100644 --- a/board/siemens/rut/board.c +++ b/board/siemens/rut/board.c @@ -11,6 +11,7 @@ */ #include <common.h> +#include <env.h> #include <errno.h> #include <spi.h> #include <spl.h> diff --git a/board/siemens/taurus/taurus.c b/board/siemens/taurus/taurus.c index 6ea97eb4e87ccb8ab982096d709799a3bd9ba074..d0efb67bbc19082b2bcef3fbf2af6a3670488c66 100644 --- a/board/siemens/taurus/taurus.c +++ b/board/siemens/taurus/taurus.c @@ -14,6 +14,7 @@ #include <command.h> #include <common.h> #include <dm.h> +#include <env.h> #include <environment.h> #include <asm/io.h> #include <asm/arch/at91sam9260_matrix.h> diff --git a/board/silica/pengwyn/board.c b/board/silica/pengwyn/board.c index 90ea8c601c4163b3d00ed898b668c468629166da..dc10b76160afc4e45af0ef0197921ff4d866f2be 100644 --- a/board/silica/pengwyn/board.c +++ b/board/silica/pengwyn/board.c @@ -6,6 +6,7 @@ */ #include <common.h> +#include <env.h> #include <environment.h> #include <asm/arch/cpu.h> #include <asm/arch/hardware.h> diff --git a/board/softing/vining_2000/vining_2000.c b/board/softing/vining_2000/vining_2000.c index 533280130ec8609bc36c9d8dcc5113c5e9ed29d1..d1df8fc0cc6b9cdc5c2ea1ed692f956c744d8de8 100644 --- a/board/softing/vining_2000/vining_2000.c +++ b/board/softing/vining_2000/vining_2000.c @@ -16,6 +16,7 @@ #include <asm/mach-imx/iomux-v3.h> #include <asm/io.h> #include <asm/mach-imx/mxc_i2c.h> +#include <env.h> #include <linux/sizes.h> #include <common.h> #include <environment.h> diff --git a/board/solidrun/mx6cuboxi/mx6cuboxi.c b/board/solidrun/mx6cuboxi/mx6cuboxi.c index d333ccc4465c2da054a4196b98de9e1f83684aaa..f82fb0786a940f219ba0d269af05afa8a38fd93a 100644 --- a/board/solidrun/mx6cuboxi/mx6cuboxi.c +++ b/board/solidrun/mx6cuboxi/mx6cuboxi.c @@ -18,6 +18,7 @@ #include <asm/arch/iomux.h> #include <asm/arch/mx6-pins.h> #include <asm/arch/mxc_hdmi.h> +#include <env.h> #include <linux/errno.h> #include <asm/gpio.h> #include <asm/mach-imx/iomux-v3.h> diff --git a/board/technologic/ts4800/ts4800.c b/board/technologic/ts4800/ts4800.c index 927a19d05a23c6c0b23e7cf0376fdb9b8a1226b9..38d3a3de26eddd2e236bfd9222284ab083c5d0ae 100644 --- a/board/technologic/ts4800/ts4800.c +++ b/board/technologic/ts4800/ts4800.c @@ -11,6 +11,7 @@ #include <asm/gpio.h> #include <asm/arch/imx-regs.h> #include <asm/arch/iomux-mx51.h> +#include <env.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> #include <asm/arch/crm_regs.h> diff --git a/board/theobroma-systems/puma_rk3399/puma-rk3399.c b/board/theobroma-systems/puma_rk3399/puma-rk3399.c index a7e7f022ba4467c60498e94b0f2ab5a488ab0622..a00587c3fa46046a5b74533ed27eae711ff99243 100644 --- a/board/theobroma-systems/puma_rk3399/puma-rk3399.c +++ b/board/theobroma-systems/puma_rk3399/puma-rk3399.c @@ -5,6 +5,7 @@ #include <common.h> #include <dm.h> +#include <env.h> #include <environment.h> #include <misc.h> #include <spl.h> diff --git a/board/ti/am43xx/board.c b/board/ti/am43xx/board.c index d29a22cf05f5c613d2f197256783a9ea85ab9eef..756b516aa6b896c9cee09257fa249b56b54fb127 100644 --- a/board/ti/am43xx/board.c +++ b/board/ti/am43xx/board.c @@ -8,6 +8,7 @@ */ #include <common.h> +#include <env.h> #include <environment.h> #include <i2c.h> #include <linux/errno.h> diff --git a/board/ti/am65x/evm.c b/board/ti/am65x/evm.c index 7bd8c4fa6655ce98097aca7ddf711f4d3a04b60b..e01adcd642fb68446b3ad6adeb7e1becd812f18c 100644 --- a/board/ti/am65x/evm.c +++ b/board/ti/am65x/evm.c @@ -14,6 +14,7 @@ #include <asm/gpio.h> #include <asm/io.h> #include <asm/omap_common.h> +#include <env.h> #include <spl.h> #include <asm/arch/sys_proto.h> diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c index 91e0a4c026deb08ab4ec9b93eb14310b58559a24..0138fc91fcbe2ac71c0cba0b46a643d1d661a842 100644 --- a/board/ti/beagle/beagle.c +++ b/board/ti/beagle/beagle.c @@ -14,6 +14,7 @@ */ #include <common.h> #include <dm.h> +#include <env.h> #include <ns16550.h> #ifdef CONFIG_LED_STATUS #include <status_led.h> diff --git a/board/ti/common/board_detect.c b/board/ti/common/board_detect.c index 32fa10599e8250a518c9a5ea7c65492f2cd8c6b2..bc89cc57bd7818e77656d4e97226895cbdd478d8 100644 --- a/board/ti/common/board_detect.c +++ b/board/ti/common/board_detect.c @@ -11,6 +11,7 @@ #include <asm/arch/hardware.h> #include <asm/omap_common.h> #include <dm/uclass.h> +#include <env.h> #include <i2c.h> #include "board_detect.h" diff --git a/board/ti/evm/evm.c b/board/ti/evm/evm.c index 93408047b20e11299273fc8b2e652d050800b97e..d0b9bafbd1b675fe544e5693ebd2f8ffe04026f8 100644 --- a/board/ti/evm/evm.c +++ b/board/ti/evm/evm.c @@ -12,6 +12,7 @@ */ #include <common.h> #include <dm.h> +#include <env.h> #include <ns16550.h> #include <netdev.h> #include <asm/io.h> diff --git a/board/ti/panda/panda.c b/board/ti/panda/panda.c index f88aa4dfc652e85c3fe9a462de084871610fe375..20199da390ecdf35f5137eeafd2e01ff43691637 100644 --- a/board/ti/panda/panda.c +++ b/board/ti/panda/panda.c @@ -11,6 +11,7 @@ #include <asm/arch/clock.h> #include <asm/arch/gpio.h> #include <asm/gpio.h> +#include <env.h> #include <twl6030.h> #include "panda_mux_data.h" diff --git a/board/ti/ti814x/evm.c b/board/ti/ti814x/evm.c index d8ee51b3666b594f6bc12749b94ff4b7c7cfe74c..a4c094b6dc2cbc68137fc2cb78694218b2ed3972 100644 --- a/board/ti/ti814x/evm.c +++ b/board/ti/ti814x/evm.c @@ -9,6 +9,7 @@ #include <common.h> #include <cpsw.h> +#include <env.h> #include <environment.h> #include <errno.h> #include <spl.h> diff --git a/board/ti/ti816x/evm.c b/board/ti/ti816x/evm.c index 240df8cbe13aa13846ebfb33f72a58c0cff7cc70..de9e91a685b9f22aadaeab1ece2223ed4fae3013 100644 --- a/board/ti/ti816x/evm.c +++ b/board/ti/ti816x/evm.c @@ -7,6 +7,7 @@ */ #include <common.h> +#include <env.h> #include <environment.h> #include <spl.h> #include <asm/cache.h> diff --git a/board/timll/devkit8000/devkit8000.c b/board/timll/devkit8000/devkit8000.c index 50b70a501ccbe4c5dba73a664e1dc65f5812df2d..f8970b0b6dd426a79f6e410441a79d1656174806 100644 --- a/board/timll/devkit8000/devkit8000.c +++ b/board/timll/devkit8000/devkit8000.c @@ -17,6 +17,7 @@ */ #include <common.h> #include <dm.h> +#include <env.h> #include <environment.h> #include <ns16550.h> #include <twl4030.h> diff --git a/board/toradex/apalis-imx8/apalis-imx8.c b/board/toradex/apalis-imx8/apalis-imx8.c index 5433c7581b480475089f76c7c60cf05fe830233f..a770472e17f9320c43efe0b8fa965a5e4511d569 100644 --- a/board/toradex/apalis-imx8/apalis-imx8.c +++ b/board/toradex/apalis-imx8/apalis-imx8.c @@ -12,6 +12,7 @@ #include <asm/arch/sys_proto.h> #include <asm/gpio.h> #include <asm/io.h> +#include <env.h> #include <environment.h> #include <errno.h> #include <linux/libfdt.h> diff --git a/board/toradex/apalis_imx6/apalis_imx6.c b/board/toradex/apalis_imx6/apalis_imx6.c index 341735153ba02febd0f0c4f0204e0278ed4b9fea..89f1b728fd41d528615c54c8eed0391ed17c1f8e 100644 --- a/board/toradex/apalis_imx6/apalis_imx6.c +++ b/board/toradex/apalis_imx6/apalis_imx6.c @@ -26,6 +26,7 @@ #include <dm/device-internal.h> #include <dm/platform_data/serial_mxc.h> #include <dwc_ahsata.h> +#include <env.h> #include <environment.h> #include <fsl_esdhc_imx.h> #include <imx_thermal.h> diff --git a/board/toradex/colibri-imx6ull/colibri-imx6ull.c b/board/toradex/colibri-imx6ull/colibri-imx6ull.c index 21addaf6ed0a192d59bc317b31c9662368d0c8b2..d1ae463941ae0e33e4aad557b46a74272ba947c2 100644 --- a/board/toradex/colibri-imx6ull/colibri-imx6ull.c +++ b/board/toradex/colibri-imx6ull/colibri-imx6ull.c @@ -17,6 +17,7 @@ #include <asm/io.h> #include <dm.h> #include <dm/platform_data/serial_mxc.h> +#include <env.h> #include <fdt_support.h> #include <imx_thermal.h> #include <jffs2/load_kernel.h> diff --git a/board/toradex/colibri-imx8x/colibri-imx8x.c b/board/toradex/colibri-imx8x/colibri-imx8x.c index 8c725b759311686b01569f44b8eeb0bae7ebe4fd..69628b906cf76ceea108f509f44edcf656de680d 100644 --- a/board/toradex/colibri-imx8x/colibri-imx8x.c +++ b/board/toradex/colibri-imx8x/colibri-imx8x.c @@ -12,6 +12,7 @@ #include <asm/arch/sys_proto.h> #include <asm/gpio.h> #include <asm/io.h> +#include <env.h> #include <environment.h> #include <errno.h> #include <linux/libfdt.h> diff --git a/board/toradex/colibri_vf/colibri_vf.c b/board/toradex/colibri_vf/colibri_vf.c index dad754b31fadba50eae6da56431559b4cd76ffcb..04d8ffd1e666ce38e917cc5a947586b59447022f 100644 --- a/board/toradex/colibri_vf/colibri_vf.c +++ b/board/toradex/colibri_vf/colibri_vf.c @@ -15,6 +15,7 @@ #include <asm/arch/iomux-vf610.h> #include <asm/gpio.h> #include <asm/io.h> +#include <env.h> #include <fdt_support.h> #include <fsl_dcu_fb.h> #include <g_dnl.h> diff --git a/board/toradex/common/tdx-common.c b/board/toradex/common/tdx-common.c index 2d560cceaf53fccb6067bec719b50288853bc020..71642a13ea162eadf8ccabb1b543a3b590f8c48a 100644 --- a/board/toradex/common/tdx-common.c +++ b/board/toradex/common/tdx-common.c @@ -4,6 +4,7 @@ */ #include <common.h> +#include <env.h> #include <environment.h> #include <g_dnl.h> #include <linux/libfdt.h> diff --git a/board/tqc/tqma6/tqma6.c b/board/tqc/tqma6/tqma6.c index 5f0c7aace3595c5aac6fcea8c3343a627fee2093..5b20afd48814128d552ec494431c41a97ea31214 100644 --- a/board/tqc/tqma6/tqma6.c +++ b/board/tqc/tqma6/tqma6.c @@ -12,6 +12,7 @@ #include <asm/arch/imx-regs.h> #include <asm/arch/iomux.h> #include <asm/arch/sys_proto.h> +#include <env.h> #include <linux/errno.h> #include <asm/gpio.h> #include <asm/io.h> diff --git a/board/udoo/neo/neo.c b/board/udoo/neo/neo.c index d51f648178e3460948e22c7005ab02dcc0258389..5c468a6a973e91bf1502127e04b4e6da1eeee92e 100644 --- a/board/udoo/neo/neo.c +++ b/board/udoo/neo/neo.c @@ -15,6 +15,7 @@ #include <asm/arch/mx6-pins.h> #include <asm/gpio.h> #include <asm/mach-imx/iomux-v3.h> +#include <env.h> #include <mmc.h> #include <fsl_esdhc_imx.h> #include <asm/arch/crm_regs.h> diff --git a/board/udoo/udoo.c b/board/udoo/udoo.c index c34a5a636bab2cf9bbb63a9439579436a63c83b3..f2c2bf47b0fd6e9e01156da847824ccfda2a5a41 100644 --- a/board/udoo/udoo.c +++ b/board/udoo/udoo.c @@ -8,6 +8,7 @@ #include <asm/arch/clock.h> #include <asm/arch/imx-regs.h> #include <asm/arch/iomux.h> +#include <env.h> #include <malloc.h> #include <asm/arch/mx6-pins.h> #include <linux/errno.h> diff --git a/board/varisys/common/sys_eeprom.c b/board/varisys/common/sys_eeprom.c index dea9af9b5dbeec713ba0e7b7ab4b1e08633cb1a7..77772a6923e4f80d2029bf06e883684f6c77e963 100644 --- a/board/varisys/common/sys_eeprom.c +++ b/board/varisys/common/sys_eeprom.c @@ -12,6 +12,7 @@ #include <common.h> #include <command.h> +#include <env.h> #include <i2c.h> #include <linux/ctype.h> diff --git a/board/vscom/baltos/board.c b/board/vscom/baltos/board.c index c5949ad26717ea33c4b3a33adcd45ca4c4295a1e..5f5a51bfbf57a369e62d07737ed227b18d63410f 100644 --- a/board/vscom/baltos/board.c +++ b/board/vscom/baltos/board.c @@ -8,6 +8,7 @@ */ #include <common.h> +#include <env.h> #include <errno.h> #include <linux/libfdt.h> #include <spl.h> diff --git a/board/wandboard/wandboard.c b/board/wandboard/wandboard.c index 74d7a17028b3b77848cdd32f0a112b2e27dc4303..69cdf3e9c96b18b7d15ac77816bc7faeb55c6ebb 100644 --- a/board/wandboard/wandboard.c +++ b/board/wandboard/wandboard.c @@ -20,6 +20,7 @@ #include <asm/mach-imx/video.h> #include <asm/mach-imx/sata.h> #include <asm/io.h> +#include <env.h> #include <linux/sizes.h> #include <common.h> #include <miiphy.h> diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c index 6857f2c0b8469cb6e2c52af7dcb5790f3ce57c2a..35191b2f813b36a583fbec1ab79fb6846e6dee31 100644 --- a/board/xilinx/zynq/board.c +++ b/board/xilinx/zynq/board.c @@ -6,6 +6,7 @@ #include <common.h> #include <dm/uclass.h> +#include <env.h> #include <fdtdec.h> #include <fpga.h> #include <malloc.h> diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c index 057ca1fbf7a015fcd568b8ca2fc147f91f14a229..d649daba96d49ac9a0cfbc391b508621ffcf5050 100644 --- a/board/xilinx/zynqmp/zynqmp.c +++ b/board/xilinx/zynqmp/zynqmp.c @@ -5,6 +5,7 @@ */ #include <common.h> +#include <env.h> #include <sata.h> #include <ahci.h> #include <scsi.h> diff --git a/cmd/avb.c b/cmd/avb.c index 3f6fd763a0bf1838a2de4d32df962c19b420dbfb..5bc158252b30e67b2af3e564fa7fbb7f3177e595 100644 --- a/cmd/avb.c +++ b/cmd/avb.c @@ -7,6 +7,7 @@ #include <avb_verify.h> #include <command.h> +#include <env.h> #include <image.h> #include <malloc.h> #include <mmc.h> diff --git a/cmd/binop.c b/cmd/binop.c index 116a2c0d5547cae3b3ad865ffb5089d8a4604842..6d2df5f3dd4fafc9a865f504038e38a36b9b9545 100644 --- a/cmd/binop.c +++ b/cmd/binop.c @@ -2,6 +2,7 @@ #include <common.h> #include <command.h> +#include <env.h> #include <hexdump.h> #include <malloc.h> #include <mapmem.h> diff --git a/cmd/dtimg.c b/cmd/dtimg.c index ae7d82f26dd2880d3ac9d15998fbd760edc25dcf..6c5d53cc6808348695bec26ebc0a6ec00cbcde73 100644 --- a/cmd/dtimg.c +++ b/cmd/dtimg.c @@ -4,6 +4,7 @@ * Sam Protsenko <semen.protsenko@linaro.org> */ +#include <env.h> #include <image-android-dt.h> #include <common.h> diff --git a/cmd/gpt.c b/cmd/gpt.c index 33cda513969f659c63f0975721eb61831e66fa2b..0c4349f4b2494a2bc6a4045e3eca62ee278b1691 100644 --- a/cmd/gpt.c +++ b/cmd/gpt.c @@ -11,6 +11,7 @@ */ #include <common.h> +#include <env.h> #include <malloc.h> #include <command.h> #include <part_efi.h> diff --git a/cmd/ini.c b/cmd/ini.c index 8c28fa6394bd6d549d8c18863a5141dd44ffcf53..f4faa7cae1b2bc3fb8dc0024726de98ef914df13 100644 --- a/cmd/ini.c +++ b/cmd/ini.c @@ -13,6 +13,7 @@ #include <common.h> #include <command.h> +#include <env.h> #include <environment.h> #include <linux/ctype.h> #include <linux/string.h> diff --git a/cmd/md5sum.c b/cmd/md5sum.c index 9d2d4180c5cf8262ae9ea83cd00b0a4943a24b60..63cbae0364c1fe2437ea8d6c069aea327b647c6f 100644 --- a/cmd/md5sum.c +++ b/cmd/md5sum.c @@ -9,6 +9,7 @@ #include <common.h> #include <command.h> +#include <env.h> #include <mapmem.h> #include <u-boot/md5.h> #include <asm/io.h> diff --git a/cmd/net.c b/cmd/net.c index 89721b8f8be9aa4f26c3485558440e1311f9737f..237403977e8006c651182d01534912aaeeca9676 100644 --- a/cmd/net.c +++ b/cmd/net.c @@ -9,6 +9,7 @@ */ #include <common.h> #include <command.h> +#include <env.h> #include <net.h> static int netboot_common(enum proto_t, cmd_tbl_t *, int, char * const []); diff --git a/cmd/nvedit_efi.c b/cmd/nvedit_efi.c index 60a8ac84c8113a5e51a04ca312a17f52354b9dc5..ed6d09a530466e9fe8e6817e6876bb6709e32df7 100644 --- a/cmd/nvedit_efi.c +++ b/cmd/nvedit_efi.c @@ -9,6 +9,7 @@ #include <common.h> #include <command.h> #include <efi_loader.h> +#include <env.h> #include <exports.h> #include <hexdump.h> #include <malloc.h> diff --git a/cmd/part.c b/cmd/part.c index 653e13ced17c4f932a685a42a30e48b48f479615..6cfb67b2795932c417c586591d56c8fb0e83be10 100644 --- a/cmd/part.c +++ b/cmd/part.c @@ -18,6 +18,7 @@ #include <common.h> #include <config.h> #include <command.h> +#include <env.h> #include <part.h> #include <vsprintf.h> diff --git a/cmd/pxe.c b/cmd/pxe.c index 1dd0a74ea392b2682e01ca1609aa2b39a17b8022..205997544623836b0976599046d9609d15351f2e 100644 --- a/cmd/pxe.c +++ b/cmd/pxe.c @@ -6,6 +6,7 @@ #include <common.h> #include <command.h> +#include <env.h> #include <malloc.h> #include <mapmem.h> #include <lcd.h> diff --git a/cmd/qfw.c b/cmd/qfw.c index 7bf700538c80f34ba614b1307e9ecd0e17bfc91e..af826627a217c6361b0bfed0763b596fbf98cf32 100644 --- a/cmd/qfw.c +++ b/cmd/qfw.c @@ -5,6 +5,7 @@ #include <common.h> #include <command.h> +#include <env.h> #include <errno.h> #include <qfw.h> diff --git a/common/cli_hush.c b/common/cli_hush.c index 955e8fe53675a7130349625fa016f95a2fcc67af..8f86e4aa4a49e8e80a1f247951640fbbf2541d01 100644 --- a/common/cli_hush.c +++ b/common/cli_hush.c @@ -75,6 +75,7 @@ #define __U_BOOT__ #ifdef __U_BOOT__ +#include <env.h> #include <malloc.h> /* malloc, free, realloc*/ #include <linux/ctype.h> /* isalpha, isdigit */ #include <common.h> /* readline */ diff --git a/common/console.c b/common/console.c index d086feabb113f9aebfd5d415b7ea3a9a769ec6c8..0f7e0916cd2f5416a5921da85e2c8db4c39e9d82 100644 --- a/common/console.c +++ b/common/console.c @@ -8,6 +8,7 @@ #include <console.h> #include <debug_uart.h> #include <dm.h> +#include <env.h> #include <stdarg.h> #include <iomux.h> #include <malloc.h> diff --git a/common/hash.c b/common/hash.c index 413a5bfcdae5e49061ff3a4710865f11660000c1..d33e329897e1ea96c51463270cb1f3a8f25063a1 100644 --- a/common/hash.c +++ b/common/hash.c @@ -12,6 +12,7 @@ #ifndef USE_HOSTCC #include <common.h> #include <command.h> +#include <env.h> #include <malloc.h> #include <mapmem.h> #include <hw_sha.h> diff --git a/common/hwconfig.c b/common/hwconfig.c index e9e956a3223a098386ff6f47d9049da89f44fdf6..72f3c4e0faa6d3ec8129940c7def61fb1a70832a 100644 --- a/common/hwconfig.c +++ b/common/hwconfig.c @@ -11,6 +11,7 @@ #ifndef HWCONFIG_TEST #include <config.h> #include <common.h> +#include <env.h> #include <exports.h> #include <hwconfig.h> #include <linux/types.h> diff --git a/common/image-android.c b/common/image-android.c index 6c9568a655d74f4e282a2ef29d6fad6d836ae426..264bf90007e985d1c87050bb89906129ac1b3a26 100644 --- a/common/image-android.c +++ b/common/image-android.c @@ -4,6 +4,7 @@ */ #include <common.h> +#include <env.h> #include <image.h> #include <android_image.h> #include <malloc.h> diff --git a/common/main.c b/common/main.c index ce39c8d18996258c559d9c7ba3252fdf1acd7b12..3a657c3d9a3918f1a9e3782bbbd0e2fb8a260443 100644 --- a/common/main.c +++ b/common/main.c @@ -10,6 +10,7 @@ #include <autoboot.h> #include <cli.h> #include <console.h> +#include <env.h> #include <version.h> /* diff --git a/common/spl/spl_dfu.c b/common/spl/spl_dfu.c index c0225dc4e181ce35011cd216dcec7945ff6e6f0b..a05b8675676f630eedbe2f64661100dd968d90f5 100644 --- a/common/spl/spl_dfu.c +++ b/common/spl/spl_dfu.c @@ -6,6 +6,7 @@ * Ravi B <ravibabu@ti.com> */ #include <common.h> +#include <env.h> #include <spl.h> #include <linux/compiler.h> #include <errno.h> diff --git a/common/update.c b/common/update.c index f237ea53bb2a7df7c10e5a0bca7ab33029c81d90..457b29f42aa398a934eef4eca4c1825d8f2a2463 100644 --- a/common/update.c +++ b/common/update.c @@ -17,6 +17,7 @@ #endif #include <command.h> +#include <env.h> #include <flash.h> #include <net.h> #include <net/tftp.h> diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 96e3ad9a1a29b316404af4a79e4f36292fc91f2c..a8b141aba2bd0cf0020489e2e3c0531c7b306c3b 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -9,6 +9,7 @@ #include <common.h> #include <dm.h> +#include <env.h> #include <environment.h> #include <malloc.h> #include <memalign.h> diff --git a/drivers/net/lan91c96.c b/drivers/net/lan91c96.c index f2489aaf82655c42ff049371f8b0327be777dae1..c08bd21f95a84ef4e208516e4c7679c77c7d39d9 100644 --- a/drivers/net/lan91c96.c +++ b/drivers/net/lan91c96.c @@ -46,6 +46,7 @@ #include <common.h> #include <command.h> +#include <env.h> #include <malloc.h> #include "lan91c96.h" #include <net.h> diff --git a/drivers/net/ne2000_base.c b/drivers/net/ne2000_base.c index 421aa20ea6af8f876944083b54f745374a12da4f..3bc7a35086d8fd0edb1967682b345deaae6fff66 100644 --- a/drivers/net/ne2000_base.c +++ b/drivers/net/ne2000_base.c @@ -74,6 +74,7 @@ Add SNMP #include <common.h> #include <command.h> +#include <env.h> #include <environment.h> #include <net.h> #include <malloc.h> diff --git a/drivers/net/sandbox-raw.c b/drivers/net/sandbox-raw.c index 7e6625d0202fcf074a1706705d4e4c0a2915af59..3707ee35eb5c4a4c55fa26017fe41380fe6c801d 100644 --- a/drivers/net/sandbox-raw.c +++ b/drivers/net/sandbox-raw.c @@ -9,6 +9,7 @@ #include <asm/eth-raw-os.h> #include <common.h> #include <dm.h> +#include <env.h> #include <malloc.h> #include <net.h> diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c index 0b5a1a4796691eaebf3afd47843273057a65e161..fa49d3126f0c760024247abe86888966e21014c8 100644 --- a/drivers/usb/gadget/ether.c +++ b/drivers/usb/gadget/ether.c @@ -9,6 +9,7 @@ #include <common.h> #include <console.h> +#include <env.h> #include <environment.h> #include <linux/errno.h> #include <linux/netdevice.h> diff --git a/env/flags.c b/env/flags.c index 79dccc05fe27e60964f6e8948c4c6827e886ee2d..7277711594957900c8cde5014d728246c7b8d412 100644 --- a/env/flags.c +++ b/env/flags.c @@ -4,6 +4,7 @@ * Joe Hershberger, National Instruments, joe.hershberger@ni.com */ +#include <env.h> #include <linux/string.h> #include <linux/ctype.h> diff --git a/examples/api/demo.c b/examples/api/demo.c index e177bf17eb1275cf85fbdd247e8785d4b6ec88b5..e7523786b41dbc21b8fa2545baf092d621593d58 100644 --- a/examples/api/demo.c +++ b/examples/api/demo.c @@ -6,6 +6,7 @@ */ #include <common.h> +#include <env.h> #include <linux/types.h> #include <api_public.h> diff --git a/include/command.h b/include/command.h index 2bfee89df3d560dfac11d15b0bf8f74c6d96e0ce..f6170e71515be41dc644804b155e4ee2fb7dd513 100644 --- a/include/command.h +++ b/include/command.h @@ -10,6 +10,7 @@ #ifndef __COMMAND_H #define __COMMAND_H +#include <env.h> #include <linker_lists.h> #ifndef NULL diff --git a/include/common.h b/include/common.h index 8d8bbc4da306b4e327b372e55dc8c2bd275eafc6..739bbd400a4e1b5bd70f7c938ce4e8fc4a7374f1 100644 --- a/include/common.h +++ b/include/common.h @@ -157,18 +157,6 @@ int do_ext2load(cmd_tbl_t *, int, int, char * const []); */ char *env_get(const char *varname); -/** - * env_set() - set an environment variable - * - * This sets or deletes the value of an environment variable. For setting the - * value the variable is created if it does not already exist. - * - * @varname: Variable to adjust - * @value: Value to set for the variable, or NULL or "" to delete the variable - * @return 0 if OK, 1 on error - */ -int env_set(const char *varname, const char *value); - void pci_init_board(void); /* common/exports.c */ diff --git a/include/env.h b/include/env.h index dd063feb3933e1c96e2fe212a6402f97e419633b..6770a6176dfcb36e6c48e6a1b080057cbc101181 100644 --- a/include/env.h +++ b/include/env.h @@ -71,6 +71,18 @@ int env_get_f(const char *name, char *buf, unsigned int len); */ int env_get_yesno(const char *var); +/** + * env_set() - set an environment variable + * + * This sets or deletes the value of an environment variable. For setting the + * value the variable is created if it does not already exist. + * + * @varname: Variable to adjust + * @value: Value to set for the variable, or NULL or "" to delete the variable + * @return 0 if OK, 1 on error + */ +int env_set(const char *varname, const char *value); + /** * env_get_ulong() - Return an environment variable as an integer value * diff --git a/include/env_flags.h b/include/env_flags.h index 23744e395c8afb0b1c7dcd618fb2a925157be720..f2306436b4def658d1de9d4c474332fbcde6a734 100644 --- a/include/env_flags.h +++ b/include/env_flags.h @@ -146,6 +146,7 @@ int env_flags_validate_env_set_params(char *name, char *const val[], int count); #else /* !USE_HOSTCC */ +#include <env.h> #include <search.h> /* diff --git a/include/exports.h b/include/exports.h index bf8d53c6b0112bc2e9e802cea5de3a6bb71c1bc3..147a00f860b04384c14a305a46d8e6c908a1c918 100644 --- a/include/exports.h +++ b/include/exports.h @@ -3,6 +3,7 @@ #ifndef __ASSEMBLY__ #ifdef CONFIG_PHY_AQUANTIA +#include <env.h> #include <phy_interface.h> #endif diff --git a/include/net.h b/include/net.h index 7684076af63c09e0bb523e144c8e8758217b54d2..0262175c81632d8648ccbd423b9e36f00e1404ab 100644 --- a/include/net.h +++ b/include/net.h @@ -14,6 +14,7 @@ #include <asm/cache.h> #include <asm/byteorder.h> /* for nton* / ntoh* stuff */ +#include <env.h> #include <linux/if_ether.h> #define DEBUG_LL_STATE 0 /* Link local state machine changes */ diff --git a/include/search.h b/include/search.h index 5d07b49073ccf2614b59ffcd84c748cfe6f6ef97..9750336b5e5856a2c1354f08c7f14c1ca21081f3 100644 --- a/include/search.h +++ b/include/search.h @@ -14,6 +14,7 @@ #ifndef _SEARCH_H_ #define _SEARCH_H_ +#include <env.h> #include <stddef.h> #define __set_errno(val) do { errno = val; } while (0) diff --git a/lib/efi_loader/efi_variable.c b/lib/efi_loader/efi_variable.c index 889a7f2ba06f4a0189b9d988e40c4f07aa6c4f9c..8a0e0db13e7f39c931d87e03a750a41792ec09ee 100644 --- a/lib/efi_loader/efi_variable.c +++ b/lib/efi_loader/efi_variable.c @@ -5,6 +5,7 @@ * Copyright (c) 2017 Rob Clark */ +#include <env.h> #include <malloc.h> #include <charset.h> #include <efi_loader.h> diff --git a/lib/uuid.c b/lib/uuid.c index ca8be2cdca41b54dfc2e1aecd0224204385e633a..a48e19c06eafab6c39249f7a005b97298768d6e0 100644 --- a/lib/uuid.c +++ b/lib/uuid.c @@ -4,6 +4,7 @@ */ #include <common.h> +#include <env.h> #include <linux/ctype.h> #include <errno.h> #include <common.h> diff --git a/net/dns.c b/net/dns.c index eee8a02f7c4fbe2485263b8b6666a38546f27be7..67d761d7c0f5f81e32b5f4e633b7f66dd076ce16 100644 --- a/net/dns.c +++ b/net/dns.c @@ -24,6 +24,7 @@ #include <common.h> #include <command.h> +#include <env.h> #include <net.h> #include <asm/unaligned.h> diff --git a/net/eth-uclass.c b/net/eth-uclass.c index 031d55862583703d43ed33431dcacfe41424a1f9..4e4f47243123e12fc643f2e18e509f31b2f44479 100644 --- a/net/eth-uclass.c +++ b/net/eth-uclass.c @@ -7,6 +7,7 @@ #include <common.h> #include <dm.h> +#include <env.h> #include <environment.h> #include <net.h> #include <dm/device-internal.h> diff --git a/net/eth_legacy.c b/net/eth_legacy.c index e250a430f333aa66d1774346377efdc93b908d3f..0f558b23ce147fd66cda804337c4c8aa9609c5ee 100644 --- a/net/eth_legacy.c +++ b/net/eth_legacy.c @@ -7,6 +7,7 @@ #include <common.h> #include <command.h> +#include <env.h> #include <environment.h> #include <net.h> #include <phy.h> diff --git a/net/wol.c b/net/wol.c index 946bd91b473d3f45e05c4576209ba192199a93c5..51543343e409a6807b7b56448413bf204ca9fc49 100644 --- a/net/wol.c +++ b/net/wol.c @@ -5,6 +5,7 @@ #include <common.h> #include <command.h> +#include <env.h> #include <net.h> #include <environment.h> #include "wol.h" diff --git a/test/dm/eth.c b/test/dm/eth.c index 6e002b8dce954dfca681393a0bea9f01d6224ea8..ad5354b4bfbf5586faed4df1aad6df7e405890c1 100644 --- a/test/dm/eth.c +++ b/test/dm/eth.c @@ -8,6 +8,7 @@ #include <common.h> #include <dm.h> +#include <env.h> #include <fdtdec.h> #include <malloc.h> #include <net.h> diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c index eef12dd2b7579a8a0d2f9fdef1c39446076c42cb..f06252d9168af09a6e31e48f59570e3380c36f22 100644 --- a/tools/env/fw_env.c +++ b/tools/env/fw_env.c @@ -10,6 +10,7 @@ #define _GNU_SOURCE #include <compiler.h> +#include <env.h> #include <errno.h> #include <env_flags.h> #include <fcntl.h> diff --git a/tools/env/fw_env.h b/tools/env/fw_env.h index b250e2f3d75ec30b272bb1b396f4a1f348e1b56f..3d2b457b31f83614dba8651340e6800b4866be72 100644 --- a/tools/env/fw_env.h +++ b/tools/env/fw_env.h @@ -4,6 +4,7 @@ * Wolfgang Denk, DENX Software Engineering, wd@denx.de. */ +#include <env.h> #include <stdint.h> /* diff --git a/tools/env/fw_env_main.c b/tools/env/fw_env_main.c index 26ba6624cd19cb2be078e683122c95506ca11d26..1d193bd437d83ddfd78508765959f1c4561923c7 100644 --- a/tools/env/fw_env_main.c +++ b/tools/env/fw_env_main.c @@ -26,6 +26,7 @@ * of AES key), eg. '-a aabbccddeeff00112233445566778899'. */ +#include <env.h> #include <fcntl.h> #include <getopt.h> #include <stdio.h>