Skip to contentSkip to conversation

env: common: Remove environment definitions from common.h

PATCH Superseded Simon Glass 5 participants 95 messages Aug 1, 2019 – Sep 13, 2019 Page 2 of 2

Subsystems (46)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#88 lore raw

PATCH v2 37/40 env: Drop environment.h header file where not needed

In reply to Simon Glass

This header file is now only used by files that access internal environment features. Drop it from various places where it is not needed.

---

Changes in v2: None

 arch/arm/cpu/arm926ejs/spear/spr_misc.c           | 1 -
 arch/arm/mach-davinci/misc.c                      | 1 -
 arch/arm/mach-imx/cmd_dek.c                       | 1 -
 arch/arm/mach-imx/mx6/opos6ul.c                   | 1 -
 arch/arm/mach-meson/board-common.c                | 1 -
 arch/arm/mach-omap2/boot-common.c                 | 1 -
 arch/arm/mach-omap2/omap3/clock.c                 | 1 -
 arch/arm/mach-omap2/utils.c                       | 1 -
 arch/arm/mach-stm32mp/cpu.c                       | 1 -
 arch/arm/mach-tegra/cboot.c                       | 1 -
 arch/m68k/lib/bootm.c                             | 1 -
 arch/nds32/include/asm/u-boot.h                   | 1 -
 arch/powerpc/cpu/mpc85xx/fdt.c                    | 1 -
 arch/powerpc/lib/bootm.c                          | 1 -
 arch/riscv/include/asm/u-boot.h                   | 1 -
 board/Arcturus/ucp1020/cmd_arc.c                  | 1 -
 board/CZ.NIC/turris_mox/turris_mox.c              | 1 -
 board/CZ.NIC/turris_omnia/turris_omnia.c          | 1 -
 board/LaCie/net2big_v2/net2big_v2.c               | 1 -
 board/LaCie/netspace_v2/netspace_v2.c             | 1 -
 board/amlogic/p200/p200.c                         | 1 -
 board/amlogic/p201/p201.c                         | 1 -
 board/amlogic/p212/p212.c                         | 1 -
 board/amlogic/q200/q200.c                         | 1 -
 board/amlogic/s400/s400.c                         | 1 -
 board/amlogic/u200/u200.c                         | 1 -
 board/armadeus/apf27/apf27.c                      | 1 -
 board/atmel/common/mac_eeprom.c                   | 1 -
 board/birdland/bav335x/board.c                    | 1 -
 board/bosch/guardian/board.c                      | 1 -
 board/bosch/shc/board.c                           | 1 -
 board/compulab/cl-som-imx7/cl-som-imx7.c          | 1 -
 board/compulab/cm_fx6/cm_fx6.c                    | 1 -
 board/compulab/cm_t335/cm_t335.c                  | 1 -
 board/compulab/cm_t35/cm_t35.c                    | 1 -
 board/compulab/cm_t54/cm_t54.c                    | 1 -
 board/davinci/da8xxevm/da850evm.c                 | 1 -
 board/dhelectronics/dh_imx6/dh_imx6.c             | 1 -
 board/eets/pdu001/board.c                         | 1 -
 board/freescale/imx8qm_mek/imx8qm_mek.c           | 1 -
 board/freescale/imx8qxp_mek/imx8qxp_mek.c         | 1 -
 board/gateworks/gw_ventana/gw_ventana.c           | 1 -
 board/gateworks/gw_ventana/gw_ventana_spl.c       | 1 -
 board/ge/mx53ppd/mx53ppd.c                        | 1 -
 board/grinn/chiliboard/board.c                    | 1 -
 board/gumstix/pepper/board.c                      | 1 -
 board/imgtec/ci20/ci20.c                          | 1 -
 board/intel/edison/edison.c                       | 1 -
 board/isee/igep003x/board.c                       | 1 -
 board/k+p/kp_imx53/kp_id_rev.c                    | 1 -
 board/kosagi/novena/novena.c                      | 1 -
 board/liebherr/display5/display5.c                | 1 -
 board/liebherr/display5/spl.c                     | 1 -
 board/logicpd/zoom1/zoom1.c                       | 1 -
 board/mscc/ocelot/ocelot.c                        | 1 -
 board/nvidia/p2371-2180/p2371-2180.c              | 1 -
 board/nvidia/p2771-0000/p2771-0000.c              | 1 -
 board/phytec/pcm051/board.c                       | 1 -
 board/phytec/pcm052/pcm052.c                      | 1 -
 board/phytec/phycore_rk3288/phycore-rk3288.c      | 1 -
 board/qualcomm/dragonboard410c/dragonboard410c.c  | 1 -
 board/raspberrypi/rpi/rpi.c                       | 1 -
 board/renesas/blanche/blanche.c                   | 1 -
 board/renesas/sh7752evb/sh7752evb.c               | 1 -
 board/renesas/sh7753evb/sh7753evb.c               | 1 -
 board/renesas/sh7757lcr/sh7757lcr.c               | 1 -
 board/rockchip/tinker_rk3288/tinker-rk3288.c      | 1 -
 board/samtec/vining_fpga/socfpga.c                | 1 -
 board/siemens/common/factoryset.c                 | 1 -
 board/siemens/pxm2/board.c                        | 1 -
 board/siemens/taurus/taurus.c                     | 1 -
 board/silica/pengwyn/board.c                      | 1 -
 board/softing/vining_2000/vining_2000.c           | 1 -
 board/tcl/sl50/board.c                            | 1 -
 board/technologic/ts4800/ts4800.c                 | 1 -
 board/theobroma-systems/puma_rk3399/puma-rk3399.c | 1 -
 board/ti/am335x/board.c                           | 1 -
 board/ti/am43xx/board.c                           | 1 -
 board/ti/am57xx/board.c                           | 1 -
 board/ti/dra7xx/evm.c                             | 1 -
 board/ti/ti814x/evm.c                             | 1 -
 board/ti/ti816x/evm.c                             | 1 -
 board/timll/devkit8000/devkit8000.c               | 1 -
 board/toradex/apalis-imx8/apalis-imx8.c           | 1 -
 board/toradex/apalis_imx6/apalis_imx6.c           | 1 -
 board/toradex/colibri-imx8x/colibri-imx8x.c       | 1 -
 board/toradex/colibri_imx6/colibri_imx6.c         | 1 -
 board/toradex/common/tdx-common.c                 | 1 -
 board/vscom/baltos/board.c                        | 1 -
 cmd/aes.c                                         | 1 -
 cmd/blob.c                                        | 1 -
 cmd/bootm.c                                       | 1 -
 cmd/efidebug.c                                    | 1 -
 cmd/elf.c                                         | 1 -
 cmd/ethsw.c                                       | 2 +-
 cmd/i2c.c                                         | 1 -
 cmd/ini.c                                         | 1 -
 cmd/tpm_test.c                                    | 1 -
 common/image.c                                    | 1 -
 common/spl/spl_dfu.c                              | 1 -
 drivers/bootcount/bootcount_env.c                 | 1 -
 drivers/mtd/jedec_flash.c                         | 1 -
 drivers/net/fec_mxc.c                             | 1 -
 drivers/net/fm/fm.c                               | 1 -
 drivers/net/fsl_mcdmafec.c                        | 1 -
 drivers/net/mcffec.c                              | 1 -
 drivers/net/ne2000_base.c                         | 1 -
 drivers/net/sh_eth.c                              | 1 -
 drivers/net/ti/cpsw-common.c                      | 1 -
 drivers/qe/qe.c                                   | 1 -
 drivers/usb/gadget/ether.c                        | 1 -
 lib/efi_loader/efi_boottime.c                     | 1 -
 net/eth-uclass.c                                  | 1 -
 net/eth_common.c                                  | 1 -
 net/eth_legacy.c                                  | 1 -
 net/wol.c                                         | 1 -
 116 files changed, 1 insertion(+), 116 deletions(-)
arch/arm/cpu/arm926ejs/spear/spr_misc.c +0 -1
index 533268513e..d36484c9d6 100644
@@ -7,7 +7,6 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
-#include <environment.h>
 #include <i2c.h>
 #include <net.h>
 #include <linux/mtd/st_smi.h>
arch/arm/mach-davinci/misc.c +0 -1
index b310bc7293..80e964274e 100644
@@ -10,7 +10,6 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
 #include <i2c.h>
 #include <net.h>
 #include <asm/arch/hardware.h>
arch/arm/mach-imx/cmd_dek.c +0 -1
index 463b869420..1b111ba26b 100644
@@ -7,7 +7,6 @@
 
 #include <common.h>
 #include <command.h>
-#include <environment.h>
 #include <malloc.h>
 #include <asm/byteorder.h>
 #include <linux/compiler.h>
arch/arm/mach-imx/mx6/opos6ul.c +0 -1
index 183a0c961c..3ab9a3f022 100644
@@ -14,7 +14,6 @@
 #include <asm/io.h>
 #include <common.h>
 #include <env.h>
-#include <environment.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
arch/arm/mach-meson/board-common.c +0 -1
index 08a7aae2b9..0843dca156 100644
@@ -8,7 +8,6 @@
 #include <env.h>
 #include <linux/libfdt.h>
 #include <linux/err.h>
-#include <environment.h>
 #include <asm/arch/mem.h>
 #include <asm/arch/sm.h>
 #include <asm/armv8/mmu.h>
arch/arm/mach-omap2/boot-common.c +0 -1
index c8b8ac657f..eb8c5843fa 100644
@@ -9,7 +9,6 @@
 
 #include <common.h>
 #include <ahci.h>
-#include <environment.h>
 #include <spl.h>
 #include <asm/omap_common.h>
 #include <asm/arch/omap.h>
arch/arm/mach-omap2/omap3/clock.c +0 -1
index cb9e91ebc3..71f73492c6 100644
@@ -17,7 +17,6 @@
 #include <asm/arch/clocks_omap3.h>
 #include <asm/arch/mem.h>
 #include <asm/arch/sys_proto.h>
-#include <environment.h>
 #include <command.h>
 
 /******************************************************************************
arch/arm/mach-omap2/utils.c +0 -1
index cf4f10a8f5..b6d019ab18 100644
@@ -5,7 +5,6 @@
  */
 #include <common.h>
 #include <env.h>
-#include <environment.h>
 #include <asm/setup.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/omap_common.h>
arch/arm/mach-stm32mp/cpu.c +0 -1
index b06b84c315..a46e8438f7 100644
@@ -6,7 +6,6 @@
 #include <clk.h>
 #include <debug_uart.h>
 #include <env.h>
-#include <environment.h>
 #include <misc.h>
 #include <asm/io.h>
 #include <asm/arch/stm32.h>
arch/arm/mach-tegra/cboot.c +0 -1
index bd4f33686d..0433081c6c 100644
@@ -5,7 +5,6 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
 #include <fdt_support.h>
 #include <fdtdec.h>
 #include <stdlib.h>
arch/m68k/lib/bootm.c +0 -1
index 5b7a68b250..19445b3fc7 100644
@@ -11,7 +11,6 @@
 #include <u-boot/zlib.h>
 #include <bzlib.h>
 #include <watchdog.h>
-#include <environment.h>
 #include <asm/byteorder.h>
 #ifdef CONFIG_SHOW_BOOT_PROGRESS
 # include <status_led.h>
arch/nds32/include/asm/u-boot.h +0 -1
index 68701d6da9..8c949e7fb7 100644
@@ -21,7 +21,6 @@
 
 #include <asm/u-boot-nds32.h>
 
-#include <environment.h>
 
 typedef struct bd_info {
 	unsigned long	bi_arch_number;	/* unique id for this board */
arch/powerpc/cpu/mpc85xx/fdt.c +0 -1
index d17c382cc9..db12aefb29 100644
@@ -8,7 +8,6 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <asm/processor.h>
arch/powerpc/lib/bootm.c +0 -1
index 52bcd4e6f1..84691b7554 100644
@@ -15,7 +15,6 @@
 #include <malloc.h>
 #include <u-boot/zlib.h>
 #include <bzlib.h>
-#include <environment.h>
 #include <asm/byteorder.h>
 #include <asm/mp.h>
 #include <bootm.h>
arch/riscv/include/asm/u-boot.h +0 -1
index 3186835e0a..5ba8e77812 100644
@@ -20,7 +20,6 @@
 
 #include <asm/u-boot-riscv.h>
 
-#include <environment.h>
 
 typedef struct bd_info {
 	unsigned long	bi_boot_params;	/* where this board expects params */
board/Arcturus/ucp1020/cmd_arc.c +0 -1
index 755f569d13..2e8477ed3b 100644
@@ -15,7 +15,6 @@
 #include <spi_flash.h>
 #include <mmc.h>
 #include <version.h>
-#include <environment.h>
 #include <asm/io.h>
 
 static ulong fwenv_addr[MAX_FWENV_ADDR];
board/CZ.NIC/turris_mox/turris_mox.c +0 -1
index f3c89d63d5..946e20ab49 100644
@@ -15,7 +15,6 @@
 #include <linux/string.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
-#include <environment.h>
 
 #include "mox_sp.h"
 
board/CZ.NIC/turris_omnia/turris_omnia.c +0 -1
index 418657c2d5..1d8d08a847 100644
@@ -9,7 +9,6 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
 #include <i2c.h>
 #include <miiphy.h>
 #include <netdev.h>
board/LaCie/net2big_v2/net2big_v2.c +0 -1
index 1609089502..686608d25a 100644
@@ -11,7 +11,6 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
-#include <environment.h>
 #include <i2c.h>
 #include <asm/mach-types.h>
 #include <asm/arch/cpu.h>
board/LaCie/netspace_v2/netspace_v2.c +0 -1
index ba667934e4..bd7ab22948 100644
@@ -11,7 +11,6 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
-#include <environment.h>
 #include <asm/mach-types.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
board/amlogic/p200/p200.c +0 -1
index 7f33ce0f0b..41d331dda2 100644
@@ -6,7 +6,6 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
-#include <environment.h>
 #include <asm/io.h>
 #include <asm/arch/gx.h>
 #include <asm/arch/sm.h>
board/amlogic/p201/p201.c +0 -1
index 0a17fbedf1..e46fcaea6d 100644
@@ -6,7 +6,6 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
-#include <environment.h>
 #include <asm/io.h>
 #include <asm/arch/gx.h>
 #include <asm/arch/sm.h>
board/amlogic/p212/p212.c +0 -1
index 4d6ac7264c..094ab5478d 100644
@@ -7,7 +7,6 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
-#include <environment.h>
 #include <asm/io.h>
 #include <asm/arch/gx.h>
 #include <asm/arch/sm.h>
board/amlogic/q200/q200.c +0 -1
index 880945f143..f1faa7418e 100644
@@ -7,7 +7,6 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
-#include <environment.h>
 #include <asm/io.h>
 #include <asm/arch/gx.h>
 #include <asm/arch/mem.h>
board/amlogic/s400/s400.c +0 -1
index 02a0e9286c..bdb4eca883 100644
@@ -6,7 +6,6 @@
 
 #include <common.h>
 #include <dm.h>
-#include <environment.h>
 #include <asm/io.h>
 #include <asm/arch/axg.h>
 #include <asm/arch/sm.h>
board/amlogic/u200/u200.c +0 -1
index 94ee3ce6e4..69fd29d4fe 100644
@@ -6,7 +6,6 @@
 
 #include <common.h>
 #include <dm.h>
-#include <environment.h>
 #include <asm/io.h>
 #include <asm/arch/axg.h>
 #include <asm/arch/sm.h>
board/armadeus/apf27/apf27.c +0 -1
index bf2586d326..20be0c3bd4 100644
@@ -7,7 +7,6 @@
  */
 
 #include <common.h>
-#include <environment.h>
 #include <jffs2/jffs2.h>
 #include <nand.h>
 #include <netdev.h>
board/atmel/common/mac_eeprom.c +0 -1
index f016ef7a6a..83a7778e99 100644
@@ -7,7 +7,6 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
-#include <environment.h>
 #include <i2c_eeprom.h>
 #include <netdev.h>
 
board/birdland/bav335x/board.c +0 -1
index b0339ad8f0..9e64cbbc82 100644
@@ -30,7 +30,6 @@
 #include <power/tps65910.h>
 #include <environment.h>
 #include <watchdog.h>
-#include <environment.h>
 #include "board.h"
 
 DECLARE_GLOBAL_DATA_PTR;
board/bosch/guardian/board.c +0 -1
index 86ab180f5c..bc3c6d229c 100644
@@ -12,7 +12,6 @@
 #include <cpsw.h>
 #include <dm.h>
 #include <environment.h>
-#include <environment.h>
 #include <errno.h>
 #include <i2c.h>
 #include <miiphy.h>
board/bosch/shc/board.c +0 -1
index 29be3739f9..358118f757 100644
@@ -33,7 +33,6 @@
 #include <power/tps65217.h>
 #include <environment.h>
 #include <watchdog.h>
-#include <environment.h>
 #include "mmc.h"
 #include "board.h"
 
board/compulab/cl-som-imx7/cl-som-imx7.c +0 -1
index 6cc7554c1a..395d5dce17 100644
@@ -9,7 +9,6 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
 #include <mmc.h>
 #include <phy.h>
 #include <netdev.h>
board/compulab/cm_fx6/cm_fx6.c +0 -1
index 57bbe41b8c..feb7a71f00 100644
@@ -12,7 +12,6 @@
 #include <dm.h>
 #include <dwc_ahsata.h>
 #include <env.h>
-#include <environment.h>
 #include <fsl_esdhc_imx.h>
 #include <miiphy.h>
 #include <mtd_node.h>
board/compulab/cm_t335/cm_t335.c +0 -1
index fca7685ca7..6e38745191 100644
@@ -9,7 +9,6 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
 #include <errno.h>
 #include <miiphy.h>
 #include <cpsw.h>
board/compulab/cm_t35/cm_t35.c +0 -1
index ead4700646..b52358baac 100644
@@ -13,7 +13,6 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
 #include <status_led.h>
 #include <netdev.h>
 #include <net.h>
board/compulab/cm_t54/cm_t54.c +0 -1
index d7c59d5a32..811bbb528a 100644
@@ -9,7 +9,6 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
 #include <fdt_support.h>
 #include <usb.h>
 #include <mmc.h>
board/davinci/da8xxevm/da850evm.c +0 -1
index dc750208c6..3ff6f781f7 100644
@@ -11,7 +11,6 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
-#include <environment.h>
 #include <i2c.h>
 #include <net.h>
 #include <spi.h>
board/dhelectronics/dh_imx6/dh_imx6.c +0 -1
index 1994dec8f9..2d0f78da11 100644
@@ -22,7 +22,6 @@
 #include <ahci.h>
 #include <dwc_ahsata.h>
 #include <env.h>
-#include <environment.h>
 #include <errno.h>
 #include <fsl_esdhc_imx.h>
 #include <fuse.h>
board/eets/pdu001/board.c +0 -1
index 74a6684274..8a3d0ada27 100644
@@ -14,7 +14,6 @@
 #include <errno.h>
 #include <spl.h>
 #include <i2c.h>
-#include <environment.h>
 #include <watchdog.h>
 #include <debug_uart.h>
 #include <dm/ofnode.h>
board/freescale/imx8qm_mek/imx8qm_mek.c +0 -1
index f4b0ffc59d..76634a3a28 100644
@@ -7,7 +7,6 @@
 #include <env.h>
 #include <errno.h>
 #include <linux/libfdt.h>
-#include <environment.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
 #include <asm/arch/clock.h>
board/freescale/imx8qxp_mek/imx8qxp_mek.c +0 -1
index 26bbbca8fc..4ba8314284 100644
@@ -7,7 +7,6 @@
 #include <env.h>
 #include <errno.h>
 #include <linux/libfdt.h>
-#include <environment.h>
 #include <fsl_esdhc_imx.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
board/gateworks/gw_ventana/gw_ventana.c +0 -1
index 3c40a4a892..8a694a71c9 100644
@@ -22,7 +22,6 @@
 #include <dm.h>
 #include <dm/platform_data/serial_mxc.h>
 #include <env.h>
-#include <environment.h>
 #include <hwconfig.h>
 #include <i2c.h>
 #include <fdt_support.h>
board/gateworks/gw_ventana/gw_ventana_spl.c +0 -1
index 6886ff9b33..b0891379a1 100644
@@ -15,7 +15,6 @@
 #include <asm/mach-imx/iomux-v3.h>
 #include <asm/mach-imx/mxc_i2c.h>
 #include <env.h>
-#include <environment.h>
 #include <i2c.h>
 #include <spl.h>
 
board/ge/mx53ppd/mx53ppd.c +0 -1
index aadf4668d9..5448567298 100644
@@ -21,7 +21,6 @@
 #include <linux/libfdt.h>
 #include <asm/mach-imx/mxc_i2c.h>
 #include <asm/mach-imx/mx5_video.h>
-#include <environment.h>
 #include <netdev.h>
 #include <i2c.h>
 #include <mmc.h>
board/grinn/chiliboard/board.c +0 -1
index 6b9e6e9a09..c6d53600fa 100644
@@ -17,7 +17,6 @@
 #include <asm/io.h>
 #include <cpsw.h>
 #include <env.h>
-#include <environment.h>
 #include <errno.h>
 #include <miiphy.h>
 #include <spl.h>
board/gumstix/pepper/board.c +0 -1
index 7ae4c5cd77..f5beb8c940 100644
@@ -26,7 +26,6 @@
 #include <miiphy.h>
 #include <cpsw.h>
 #include <power/tps65217.h>
-#include <environment.h>
 #include <watchdog.h>
 #include "board.h"
 
board/imgtec/ci20/ci20.c +0 -1
index f72a660581..5368b67b38 100644
@@ -8,7 +8,6 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
 #include <net.h>
 #include <netdev.h>
 #include <asm/io.h>
board/intel/edison/edison.c +0 -1
index 599e1e35bc..40d51df661 100644
@@ -5,7 +5,6 @@
 #include <common.h>
 #include <dwc3-uboot.h>
 #include <env.h>
-#include <environment.h>
 #include <mmc.h>
 #include <u-boot/md5.h>
 #include <usb.h>
board/isee/igep003x/board.c +0 -1
index 398c945990..a8c2b121a4 100644
@@ -26,7 +26,6 @@
 #include <fdt_support.h>
 #include <mtd_node.h>
 #include <jffs2/load_kernel.h>
-#include <environment.h>
 #include "board.h"
 
 DECLARE_GLOBAL_DATA_PTR;
board/k+p/kp_imx53/kp_id_rev.c +0 -1
index 642adf78d8..9dae54dda5 100644
@@ -11,7 +11,6 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
 #include <i2c.h>
 #include "kp_id_rev.h"
 
board/kosagi/novena/novena.c +0 -1
index e0f0d7c60c..b7b747d196 100644
@@ -25,7 +25,6 @@
 #include <asm/mach-imx/sata.h>
 #include <asm/mach-imx/video.h>
 #include <dwc_ahsata.h>
-#include <environment.h>
 #include <fsl_esdhc_imx.h>
 #include <i2c.h>
 #include <input.h>
board/liebherr/display5/display5.c +0 -1
index 5c70e1b6f2..037c4e69e5 100644
@@ -26,7 +26,6 @@
 #include <miiphy.h>
 #include <netdev.h>
 #include <i2c.h>
-#include <environment.h>
 
 #include <dm.h>
 #include <dm/platform_data/serial_mxc.h>
board/liebherr/display5/spl.c +0 -1
index d92760b487..354b63e431 100644
@@ -18,7 +18,6 @@
 #include "asm/arch/iomux.h"
 #include <asm/mach-imx/iomux-v3.h>
 #include <asm/gpio.h>
-#include <environment.h>
 #include <fsl_esdhc_imx.h>
 #include <netdev.h>
 #include <bootcount.h>
board/logicpd/zoom1/zoom1.c +0 -1
index 54716125f3..6bfa41737f 100644
@@ -16,7 +16,6 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
-#include <environment.h>
 #include <ns16550.h>
 #include <netdev.h>
 #include <twl4030.h>
board/mscc/ocelot/ocelot.c +0 -1
index bcae8fa50c..91d03951db 100644
@@ -7,7 +7,6 @@
 #include <asm/io.h>
 #include <asm/addrspace.h>
 #include <asm/types.h>
-#include <environment.h>
 #include <spi.h>
 #include <led.h>
 #include <wait_bit.h>
board/nvidia/p2371-2180/p2371-2180.c +0 -1
index b1da5c9982..fa5288bf18 100644
@@ -6,7 +6,6 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
 #include <fdtdec.h>
 #include <i2c.h>
 #include <linux/libfdt.h>
board/nvidia/p2771-0000/p2771-0000.c +0 -1
index 8c91b75f96..63cdb3a604 100644
@@ -5,7 +5,6 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
 #include <fdtdec.h>
 #include <i2c.h>
 #include <linux/libfdt.h>
board/phytec/pcm051/board.c +0 -1
index 0cb85e940c..43f6c5afcb 100644
@@ -10,7 +10,6 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
 #include <errno.h>
 #include <spl.h>
 #include <asm/arch/cpu.h>
board/phytec/pcm052/pcm052.c +0 -1
index 2417111765..e1ebe8e75d 100644
@@ -15,7 +15,6 @@
 #include <asm/arch/clock.h>
 #include <env.h>
 #include <led.h>
-#include <environment.h>
 #include <miiphy.h>
 
 DECLARE_GLOBAL_DATA_PTR;
board/phytec/phycore_rk3288/phycore-rk3288.c +0 -1
index 9f945e829d..7b9178e3a6 100644
@@ -9,7 +9,6 @@
 #include <dm.h>
 #include <env.h>
 #include <environment.h>
-#include <fdtdec.h>
 #include <i2c.h>
 #include <i2c_eeprom.h>
 #include <netdev.h>
board/qualcomm/dragonboard410c/dragonboard410c.c +0 -1
index 06d3d7e0f8..d7f0f93fb1 100644
@@ -11,7 +11,6 @@
 #include <usb.h>
 #include <asm/gpio.h>
 #include <fdt_support.h>
-#include <environment.h>
 #include <asm/arch/dram.h>
 #include <asm/arch/misc.h>
 
board/raspberrypi/rpi/rpi.c +0 -1
index 104589bff1..7a6ca8f759 100644
@@ -7,7 +7,6 @@
 #include <config.h>
 #include <dm.h>
 #include <env.h>
-#include <environment.h>
 #include <efi_loader.h>
 #include <fdt_support.h>
 #include <fdt_simplefb.h>
board/renesas/blanche/blanche.c +0 -1
index 898abfbd85..08c5448609 100644
@@ -19,7 +19,6 @@
 #include <dm.h>
 #include <dm/platform_data/serial_sh.h>
 #include <env.h>
-#include <environment.h>
 #include <i2c.h>
 #include <linux/errno.h>
 #include <malloc.h>
board/renesas/sh7752evb/sh7752evb.c +0 -1
index b14ce263f7..d0b850f35d 100644
@@ -5,7 +5,6 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
 #include <malloc.h>
 #include <asm/processor.h>
 #include <asm/io.h>
board/renesas/sh7753evb/sh7753evb.c +0 -1
index f643867806..e1bed7dcc3 100644
@@ -5,7 +5,6 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
 #include <malloc.h>
 #include <asm/processor.h>
 #include <asm/io.h>
board/renesas/sh7757lcr/sh7757lcr.c +0 -1
index 2d32440aeb..d2671202e9 100644
@@ -5,7 +5,6 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
 #include <malloc.h>
 #include <asm/processor.h>
 #include <asm/io.h>
board/rockchip/tinker_rk3288/tinker-rk3288.c +0 -1
index e379950095..6c76c3c25c 100644
@@ -6,7 +6,6 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
-#include <environment.h>
 #include <i2c_eeprom.h>
 #include <netdev.h>
 
board/samtec/vining_fpga/socfpga.c +0 -1
index 63ce4a20b5..1e095a4e7d 100644
@@ -5,7 +5,6 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
 #include <asm/arch/reset_manager.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
board/siemens/common/factoryset.c +0 -1
index cd224a8e1c..049a65ff77 100644
@@ -9,7 +9,6 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
 #include <i2c.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
board/siemens/pxm2/board.c +0 -1
index 0a82a5ef5c..30f0902701 100644
@@ -14,7 +14,6 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
 #include <errno.h>
 #include <spl.h>
 #include <asm/arch/cpu.h>
board/siemens/taurus/taurus.c +0 -1
index d0efb67bbc..1cf1f9e1f7 100644
@@ -15,7 +15,6 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
-#include <environment.h>
 #include <asm/io.h>
 #include <asm/arch/at91sam9260_matrix.h>
 #include <asm/arch/at91sam9_smc.h>
board/silica/pengwyn/board.c +0 -1
index dc10b76160..345701fd52 100644
@@ -7,7 +7,6 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/ddr_defs.h>
board/softing/vining_2000/vining_2000.c +0 -1
index d1df8fc0cc..51985b91c2 100644
@@ -19,7 +19,6 @@
 #include <env.h>
 #include <linux/sizes.h>
 #include <common.h>
-#include <environment.h>
 #include <fsl_esdhc_imx.h>
 #include <mmc.h>
 #include <i2c.h>
board/tcl/sl50/board.c +0 -1
index 8ddbee5436..a9c9d377b4 100644
@@ -30,7 +30,6 @@
 #include <power/tps65910.h>
 #include <environment.h>
 #include <watchdog.h>
-#include <environment.h>
 #include "board.h"
 
 DECLARE_GLOBAL_DATA_PTR;
board/technologic/ts4800/ts4800.c +0 -1
index 38d3a3de26..82eb0c285c 100644
@@ -17,7 +17,6 @@
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/clock.h>
 #include <asm/mach-imx/mx5_video.h>
-#include <environment.h>
 #include <mmc.h>
 #include <input.h>
 #include <fsl_esdhc_imx.h>
board/theobroma-systems/puma_rk3399/puma-rk3399.c +0 -1
index a00587c3fa..4113a1c6ee 100644
@@ -6,7 +6,6 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
-#include <environment.h>
 #include <misc.h>
 #include <spl.h>
 #include <syscon.h>
board/ti/am335x/board.c +0 -1
index 58d09f7c20..54adcd510d 100644
@@ -36,7 +36,6 @@
 #include <power/tps65910.h>
 #include <environment.h>
 #include <watchdog.h>
-#include <environment.h>
 #include "../common/board_detect.h"
 #include "board.h"
 
board/ti/am43xx/board.c +0 -1
index 756b516aa6..2e09cc20e8 100644
@@ -9,7 +9,6 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
 #include <i2c.h>
 #include <linux/errno.h>
 #include <spl.h>
board/ti/am57xx/board.c +0 -1
index 0dacfd4327..f78e6c2e1f 100644
@@ -24,7 +24,6 @@
 #include <asm/arch/sata.h>
 #include <asm/arch/gpio.h>
 #include <asm/arch/omap.h>
-#include <environment.h>
 #include <usb.h>
 #include <linux/usb/gadget.h>
 #include <dwc3-uboot.h>
board/ti/dra7xx/evm.c +0 -1
index 97eef65d51..74d04bb1e3 100644
@@ -25,7 +25,6 @@
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/mmc_host_def.h>
 #include <asm/arch/sata.h>
-#include <environment.h>
 #include <dwc3-uboot.h>
 #include <dwc3-omap-uboot.h>
 #include <i2c.h>
board/ti/ti814x/evm.c +0 -1
index a4c094b6dc..2b9385d14b 100644
@@ -10,7 +10,6 @@
 #include <common.h>
 #include <cpsw.h>
 #include <env.h>
-#include <environment.h>
 #include <errno.h>
 #include <spl.h>
 #include <asm/arch/cpu.h>
board/ti/ti816x/evm.c +0 -1
index de9e91a685..8f7b591b5c 100644
@@ -8,7 +8,6 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
 #include <spl.h>
 #include <asm/cache.h>
 #include <asm/io.h>
board/timll/devkit8000/devkit8000.c +0 -1
index f8970b0b6d..490d8cbcd0 100644
@@ -18,7 +18,6 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
-#include <environment.h>
 #include <ns16550.h>
 #include <twl4030.h>
 #include <asm/io.h>
board/toradex/apalis-imx8/apalis-imx8.c +0 -1
index a770472e17..af48b56095 100644
@@ -13,7 +13,6 @@
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <env.h>
-#include <environment.h>
 #include <errno.h>
 #include <linux/libfdt.h>
 
board/toradex/apalis_imx6/apalis_imx6.c +0 -1
index 89f1b728fd..6421a22c25 100644
@@ -27,7 +27,6 @@
 #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>
 #include <micrel.h>
board/toradex/colibri-imx8x/colibri-imx8x.c +0 -1
index 69628b906c..eae3c591a1 100644
@@ -13,7 +13,6 @@
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <env.h>
-#include <environment.h>
 #include <errno.h>
 #include <linux/libfdt.h>
 
board/toradex/colibri_imx6/colibri_imx6.c +0 -1
index f657db87d8..ad40b589c1 100644
@@ -25,7 +25,6 @@
 #include <asm/mach-imx/video.h>
 #include <cpu.h>
 #include <dm/platform_data/serial_mxc.h>
-#include <environment.h>
 #include <fsl_esdhc_imx.h>
 #include <imx_thermal.h>
 #include <micrel.h>
board/toradex/common/tdx-common.c +0 -1
index 71642a13ea..e9441a7979 100644
@@ -5,7 +5,6 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
 #include <g_dnl.h>
 #include <linux/libfdt.h>
 
board/vscom/baltos/board.c +0 -1
index 5f5a51bfbf..f5540841c9 100644
@@ -29,7 +29,6 @@
 #include <miiphy.h>
 #include <cpsw.h>
 #include <power/tps65910.h>
-#include <environment.h>
 #include <watchdog.h>
 #include "board.h"
 
cmd/aes.c +0 -1
index 25efb9642a..7ff4a71709 100644
@@ -7,7 +7,6 @@
 
 #include <common.h>
 #include <command.h>
-#include <environment.h>
 #include <uboot_aes.h>
 #include <malloc.h>
 #include <asm/byteorder.h>
cmd/blob.c +0 -1
index d3b6e454bf..80478b8802 100644
@@ -6,7 +6,6 @@
 
 #include <common.h>
 #include <command.h>
-#include <environment.h>
 #include <malloc.h>
 #include <asm/byteorder.h>
 #include <linux/compiler.h>
cmd/bootm.c +0 -1
index b326ac9b43..8279f2b7cc 100644
@@ -11,7 +11,6 @@
 #include <bootm.h>
 #include <command.h>
 #include <env.h>
-#include <environment.h>
 #include <errno.h>
 #include <image.h>
 #include <malloc.h>
cmd/efidebug.c +0 -1
index 02dc491a68..e610dd308c 100644
@@ -9,7 +9,6 @@
 #include <common.h>
 #include <command.h>
 #include <efi_loader.h>
-#include <environment.h>
 #include <exports.h>
 #include <hexdump.h>
 #include <malloc.h>
cmd/elf.c +0 -1
index 5e5cf47cf8..538562fda5 100644
@@ -17,7 +17,6 @@
 #include <command.h>
 #include <elf.h>
 #include <env.h>
-#include <environment.h>
 #include <net.h>
 #include <vxworks.h>
 #ifdef CONFIG_X86
cmd/ethsw.c +1 -1
index 473324f878..8846805799 100644
@@ -7,7 +7,7 @@
 
 #include <common.h>
 #include <command.h>
-#include <environment.h>
+#include <env.h>
 #include <errno.h>
 #include <env_flags.h>
 #include <ethsw.h>
cmd/i2c.c +0 -1
index 09c4ba9a1c..e0f8ece597 100644
@@ -71,7 +71,6 @@
 #include <console.h>
 #include <dm.h>
 #include <edid.h>
-#include <environment.h>
 #include <errno.h>
 #include <i2c.h>
 #include <malloc.h>
cmd/ini.c +0 -1
index f4faa7cae1..0c425262d0 100644
@@ -14,7 +14,6 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
-#include <environment.h>
 #include <linux/ctype.h>
 #include <linux/string.h>
 
cmd/tpm_test.c +0 -1
index 56a5aa4aa5..c14dd75a26 100644
@@ -5,7 +5,6 @@
 
 #include <common.h>
 #include <command.h>
-#include <environment.h>
 #include <tpm-v1.h>
 #include "tpm-user-utils.h"
 
common/image.c +0 -1
index 4a578f3ef0..84e859a30f 100644
@@ -17,7 +17,6 @@
 
 #include <rtc.h>
 
-#include <environment.h>
 #include <gzip.h>
 #include <image.h>
 #include <mapmem.h>
common/spl/spl_dfu.c +0 -1
index 3f54ae0260..5728d43ad3 100644
@@ -15,7 +15,6 @@
 #include <g_dnl.h>
 #include <usb.h>
 #include <dfu.h>
-#include <environment.h>
 
 static int run_dfu(int usb_index, char *interface, char *devstring)
 {
drivers/bootcount/bootcount_env.c +0 -1
index 50e0857b3b..b75c9002b2 100644
@@ -6,7 +6,6 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
 
 void bootcount_store(ulong a)
 {
drivers/mtd/jedec_flash.c +0 -1
index a3540c1115..f59b2bc62f 100644
@@ -15,7 +15,6 @@
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <asm/byteorder.h>
-#include <environment.h>
 
 #define P_ID_AMD_STD CFI_CMDSET_AMD_LEGACY
 
drivers/net/fec_mxc.c +0 -1
index a8b141aba2..080dbcf7db 100644
@@ -10,7 +10,6 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
-#include <environment.h>
 #include <malloc.h>
 #include <memalign.h>
 #include <miiphy.h>
drivers/net/fm/fm.c +0 -1
index ce0f1678fd..4c9dce8dc5 100644
@@ -15,7 +15,6 @@
 #include <nand.h>
 #include <spi_flash.h>
 #include <mmc.h>
-#include <environment.h>
 
 #ifdef CONFIG_ARM64
 #include <asm/armv8/mmu.h>
drivers/net/fsl_mcdmafec.c +0 -1
index 41752c0b6a..e66fb16de8 100644
@@ -9,7 +9,6 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
 #include <malloc.h>
 #include <command.h>
 #include <config.h>
drivers/net/mcffec.c +0 -1
index a8553cbbc2..fb93041256 100644
@@ -9,7 +9,6 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
 #include <malloc.h>
 
 #include <command.h>
drivers/net/ne2000_base.c +0 -1
index 3bc7a35086..819a246070 100644
@@ -75,7 +75,6 @@ Add SNMP
 #include <common.h>
 #include <command.h>
 #include <env.h>
-#include <environment.h>
 #include <net.h>
 #include <malloc.h>
 #include <linux/compiler.h>
drivers/net/sh_eth.c +0 -1
index dfc41bcbc4..118a88183a 100644
@@ -11,7 +11,6 @@
 #include <config.h>
 #include <common.h>
 #include <env.h>
-#include <environment.h>
 #include <malloc.h>
 #include <net.h>
 #include <netdev.h>
drivers/net/ti/cpsw-common.c +0 -1
index ac12cfe9b8..21b8bbda3d 100644
@@ -7,7 +7,6 @@
 
 #include <common.h>
 #include <dm.h>
-#include <environment.h>
 #include <fdt_support.h>
 #include <asm/io.h>
 #include <cpsw.h>
drivers/qe/qe.c +0 -1
index 505ae9b45f..6e4d732a07 100644
@@ -14,7 +14,6 @@
 #include <linux/immap_qe.h>
 #include <fsl_qe.h>
 #include <mmc.h>
-#include <environment.h>
 
 #ifdef CONFIG_ARCH_LS1021A
 #include <asm/arch/immap_ls102xa.h>
drivers/usb/gadget/ether.c +0 -1
index fa49d3126f..a118283984 100644
@@ -10,7 +10,6 @@
 #include <common.h>
 #include <console.h>
 #include <env.h>
-#include <environment.h>
 #include <linux/errno.h>
 #include <linux/netdevice.h>
 #include <linux/usb/ch9.h>
lib/efi_loader/efi_boottime.c +0 -1
index 4f6e8d1679..c59cdb268a 100644
@@ -8,7 +8,6 @@
 #include <common.h>
 #include <div64.h>
 #include <efi_loader.h>
-#include <environment.h>
 #include <malloc.h>
 #include <linux/libfdt_env.h>
 #include <u-boot/crc.h>
net/eth-uclass.c +0 -1
index 4e4f472431..1d5d2f03b7 100644
@@ -8,7 +8,6 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
-#include <environment.h>
 #include <net.h>
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
net/eth_common.c +0 -1
index dcc59186d8..ed26b1b693 100644
@@ -8,7 +8,6 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
-#include <environment.h>
 #include <miiphy.h>
 #include <net.h>
 #include "eth_internal.h"
net/eth_legacy.c +0 -1
index 0f558b23ce..850f362d87 100644
@@ -8,7 +8,6 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
-#include <environment.h>
 #include <net.h>
 #include <phy.h>
 #include <linux/errno.h>
net/wol.c +0 -1
index 51543343e4..0a625668a9 100644
@@ -7,7 +7,6 @@
 #include <command.h>
 #include <env.h>
 #include <net.h>
-#include <environment.h>
 #include "wol.h"
 
 static ulong wol_timeout = WOL_DEFAULT_TIMEOUT;
Signature · 1 line
2.22.0.709.g102302147b-goog
#89 lore raw

PATCH v2 37/40 env: Drop environment.h header file where not needed

Quoted 5 lines · Simon Glass

This header file is now only used by files that access internal environment features. Drop it from various places where it is not needed.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190813/0e1875bd/attachment.sig>
#90 lore raw

PATCH v2 38/40 env: Rename environment.h to env_internal.h

In reply to Simon Glass

This file contains lots of internal details about the environment. Most code can include env.h instead, calling the functions there as needed.

Rename this file and add a comment at the top to indicate its internal nature.

---

Changes in v2: None

 api/api.c                                    |  2 +-
 arch/arm/cpu/armv8/fsl-layerscape/cpu.c      |  2 +-
 arch/arm/cpu/armv8/fsl-layerscape/soc.c      |  2 +-
 arch/x86/cpu/qemu/e820.c                     |  2 +-
 board/Arcturus/ucp1020/spl.c                 |  2 +-
 board/birdland/bav335x/board.c               |  2 +-
 board/bosch/guardian/board.c                 |  2 +-
 board/bosch/shc/board.c                      |  2 +-
 board/buffalo/lsxl/lsxl.c                    |  2 +-
 board/freescale/b4860qds/spl.c               |  2 +-
 board/freescale/c29xpcie/spl.c               |  2 +-
 board/freescale/ls1012afrdm/ls1012afrdm.c    |  2 +-
 board/freescale/ls1012aqds/ls1012aqds.c      |  2 +-
 board/freescale/ls1012ardb/ls1012ardb.c      |  2 +-
 board/freescale/ls1028a/ls1028a.c            |  2 +-
 board/freescale/ls1088a/ls1088a.c            |  2 +-
 board/freescale/ls2080a/ls2080a.c            |  2 +-
 board/freescale/ls2080aqds/ls2080aqds.c      |  2 +-
 board/freescale/ls2080ardb/ls2080ardb.c      |  2 +-
 board/freescale/lx2160a/lx2160a.c            |  2 +-
 board/freescale/p1010rdb/spl.c               |  2 +-
 board/freescale/p1022ds/spl.c                |  2 +-
 board/freescale/p1_p2_rdb_pc/spl.c           |  2 +-
 board/freescale/t102xqds/spl.c               |  2 +-
 board/freescale/t102xrdb/spl.c               |  2 +-
 board/freescale/t104xrdb/spl.c               |  2 +-
 board/freescale/t208xqds/spl.c               |  2 +-
 board/freescale/t208xrdb/spl.c               |  2 +-
 board/freescale/t4qds/spl.c                  |  2 +-
 board/freescale/t4rdb/spl.c                  |  2 +-
 board/gardena/smart-gateway-mt7688/board.c   |  2 +-
 board/phytec/phycore_rk3288/phycore-rk3288.c |  2 +-
 board/renesas/alt/alt.c                      |  2 +-
 board/renesas/gose/gose.c                    |  2 +-
 board/renesas/koelsch/koelsch.c              |  2 +-
 board/renesas/lager/lager.c                  |  2 +-
 board/renesas/porter/porter.c                |  2 +-
 board/renesas/silk/silk.c                    |  2 +-
 board/renesas/stout/stout.c                  |  2 +-
 board/st/stm32mp1/stm32mp1.c                 |  2 +-
 board/sunxi/board.c                          |  2 +-
 board/tcl/sl50/board.c                       |  2 +-
 board/ti/am335x/board.c                      |  2 +-
 cmd/nvedit.c                                 |  2 +-
 common/board_f.c                             |  2 +-
 common/board_r.c                             |  2 +-
 common/console.c                             |  2 +-
 drivers/mtd/cfi_flash.c                      |  2 +-
 drivers/serial/serial-uclass.c               |  2 +-
 drivers/serial/serial.c                      |  2 +-
 env/callback.c                               |  2 +-
 env/common.c                                 |  2 +-
 env/eeprom.c                                 |  2 +-
 env/embedded.c                               |  2 +-
 env/env.c                                    |  2 +-
 env/ext4.c                                   |  2 +-
 env/fat.c                                    |  2 +-
 env/flags.c                                  |  2 +-
 env/flash.c                                  |  2 +-
 env/mmc.c                                    |  2 +-
 env/nand.c                                   |  2 +-
 env/nowhere.c                                |  2 +-
 env/nvram.c                                  |  2 +-
 env/onenand.c                                |  2 +-
 env/remote.c                                 |  2 +-
 env/sata.c                                   |  2 +-
 env/sf.c                                     |  2 +-
 env/ubi.c                                    |  2 +-
 include/common.h                             |  2 +-
 include/{environment.h => env_internal.h}    | 14 +++++++++++---
 lib/efi_loader/efi_variable.c                |  2 +-
 net/net.c                                    |  2 +-
 tools/envcrc.c                               |  2 +-
 73 files changed, 83 insertions(+), 75 deletions(-)
 rename include/{environment.h => env_internal.h} (93%)
api/api.c +1 -1
index cd7487fde2..bc9454eb4b 100644
@@ -10,7 +10,7 @@
 #include <common.h>
 #include <env.h>
 #include <malloc.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <linux/types.h>
 #include <api_public.h>
 
arch/arm/cpu/armv8/fsl-layerscape/cpu.c +1 -1
index 9577ada113..26f4fdacdb 100644
@@ -33,7 +33,7 @@
 #include <fsl_qbman.h>
 
 #ifdef CONFIG_TFABOOT
-#include <environment.h>
+#include <env_internal.h>
 #ifdef CONFIG_CHAIN_OF_TRUST
 #include <fsl_validate.h>
 #endif
arch/arm/cpu/armv8/fsl-layerscape/soc.c +1 -1
index 00c705f74e..ca8005992a 100644
@@ -27,7 +27,7 @@
 #endif
 #include <fsl_immap.h>
 #ifdef CONFIG_TFABOOT
-#include <environment.h>
+#include <env_internal.h>
 DECLARE_GLOBAL_DATA_PTR;
 #endif
 
arch/x86/cpu/qemu/e820.c +1 -1
index 7b3bc7db5e..e682486547 100644
@@ -4,7 +4,7 @@
  */
 
 #include <common.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <asm/e820.h>
 
 DECLARE_GLOBAL_DATA_PTR;
board/Arcturus/ucp1020/spl.c +1 -1
index f3b7d99878..9314fabdf2 100644
@@ -10,7 +10,7 @@
 #include <common.h>
 #include <console.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <ns16550.h>
 #include <malloc.h>
 #include <mmc.h>
board/birdland/bav335x/board.c +1 -1
index 9e64cbbc82..8811583ac6 100644
@@ -28,7 +28,7 @@
 #include <cpsw.h>
 #include <power/tps65217.h>
 #include <power/tps65910.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <watchdog.h>
 #include "board.h"
 
board/bosch/guardian/board.c +1 -1
index bc3c6d229c..ec0c4a17f6 100644
@@ -11,7 +11,7 @@
 #include <common.h>
 #include <cpsw.h>
 #include <dm.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <errno.h>
 #include <i2c.h>
 #include <miiphy.h>
board/bosch/shc/board.c +1 -1
index 358118f757..a96fdef992 100644
@@ -31,7 +31,7 @@
 #include <miiphy.h>
 #include <cpsw.h>
 #include <power/tps65217.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <watchdog.h>
 #include "mmc.h"
 #include "board.h"
board/buffalo/lsxl/lsxl.c +1 -1
index b2ccb83c8a..95d3a5e1f5 100644
@@ -9,7 +9,7 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <net.h>
 #include <malloc.h>
 #include <netdev.h>
board/freescale/b4860qds/spl.c +1 -1
index d9aa57f41c..6dfc0c73ec 100644
@@ -5,7 +5,7 @@
 #include <common.h>
 #include <console.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <asm/spl.h>
 #include <malloc.h>
 #include <ns16550.h>
board/freescale/c29xpcie/spl.c +1 -1
index 5db60d8ed9..29040962cf 100644
@@ -4,7 +4,7 @@
 
 #include <common.h>
 #include <console.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <ns16550.h>
 #include <malloc.h>
 #include <mmc.h>
board/freescale/ls1012afrdm/ls1012afrdm.c +1 -1
index b4c611e19f..31e41ce169 100644
@@ -15,7 +15,7 @@
 #include <asm/arch/soc.h>
 #include <fsl_esdhc.h>
 #include <hwconfig.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <fsl_mmdc.h>
 #include <netdev.h>
 #include <fsl_sec.h>
board/freescale/ls1012aqds/ls1012aqds.c +1 -1
index a862fe6a93..86c72ee357 100644
@@ -18,7 +18,7 @@
 #include <ahci.h>
 #include <hwconfig.h>
 #include <mmc.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <scsi.h>
 #include <fm_eth.h>
 #include <fsl_esdhc.h>
board/freescale/ls1012ardb/ls1012ardb.c +1 -1
index f648a9040b..e4527c19b8 100644
@@ -18,7 +18,7 @@
 #include <mmc.h>
 #include <scsi.h>
 #include <fsl_esdhc.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <fsl_mmdc.h>
 #include <netdev.h>
 #include <fsl_sec.h>
board/freescale/ls1028a/ls1028a.c +1 -1
index e5de4eb70c..4aa7cec9ce 100644
@@ -11,7 +11,7 @@
 #include <hwconfig.h>
 #include <fdt_support.h>
 #include <linux/libfdt.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <asm/arch-fsl-layerscape/soc.h>
 #include <i2c.h>
 #include <asm/arch/soc.h>
board/freescale/ls1088a/ls1088a.c +1 -1
index a1c9eb3f46..f0bea7327d 100644
@@ -15,7 +15,7 @@
 #include <fdt_support.h>
 #include <linux/libfdt.h>
 #include <fsl-mc/fsl_mc.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <asm/arch-fsl-layerscape/soc.h>
 #include <asm/arch/ppa.h>
 #include <hwconfig.h>
board/freescale/ls2080a/ls2080a.c +1 -1
index cc1822d0f5..413a698511 100644
@@ -12,7 +12,7 @@
 #include <fdt_support.h>
 #include <linux/libfdt.h>
 #include <fsl-mc/fsl_mc.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <asm/arch/soc.h>
 
 DECLARE_GLOBAL_DATA_PTR;
board/freescale/ls2080aqds/ls2080aqds.c +1 -1
index e9e0999a18..e9c055745f 100644
@@ -13,7 +13,7 @@
 #include <fdt_support.h>
 #include <linux/libfdt.h>
 #include <fsl-mc/fsl_mc.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <i2c.h>
 #include <rtc.h>
 #include <asm/arch/soc.h>
board/freescale/ls2080ardb/ls2080ardb.c +1 -1
index a278e2fc11..2b2dbbb0ce 100644
@@ -15,7 +15,7 @@
 #include <fdt_support.h>
 #include <linux/libfdt.h>
 #include <fsl-mc/fsl_mc.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <efi_loader.h>
 #include <i2c.h>
 #include <asm/arch/mmu.h>
board/freescale/lx2160a/lx2160a.c +1 -1
index 3b4cb86692..f3885fa8b7 100644
@@ -16,7 +16,7 @@
 #include <fdt_support.h>
 #include <linux/libfdt.h>
 #include <fsl-mc/fsl_mc.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <efi_loader.h>
 #include <asm/arch/mmu.h>
 #include <hwconfig.h>
board/freescale/p1010rdb/spl.c +1 -1
index 95f8b5837d..8f050b3947 100644
@@ -5,7 +5,7 @@
 #include <common.h>
 #include <console.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <ns16550.h>
 #include <malloc.h>
 #include <mmc.h>
board/freescale/p1022ds/spl.c +1 -1
index 92fd199876..06273f1d20 100644
@@ -6,7 +6,7 @@
 #include <common.h>
 #include <console.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <ns16550.h>
 #include <malloc.h>
 #include <mmc.h>
board/freescale/p1_p2_rdb_pc/spl.c +1 -1
index 9d7b5eff6f..dbf9f739b2 100644
@@ -6,7 +6,7 @@
 #include <common.h>
 #include <console.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <ns16550.h>
 #include <malloc.h>
 #include <mmc.h>
board/freescale/t102xqds/spl.c +1 -1
index 1b58174ed1..3008f0919f 100644
@@ -4,7 +4,7 @@
 
 #include <common.h>
 #include <console.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <malloc.h>
 #include <ns16550.h>
 #include <nand.h>
board/freescale/t102xrdb/spl.c +1 -1
index a226d4b5b5..029e3d212c 100644
@@ -4,7 +4,7 @@
 
 #include <common.h>
 #include <console.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <malloc.h>
 #include <ns16550.h>
 #include <nand.h>
board/freescale/t104xrdb/spl.c +1 -1
index 58a7376e7f..7b0eb8edf5 100644
@@ -4,7 +4,7 @@
 
 #include <common.h>
 #include <console.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <malloc.h>
 #include <ns16550.h>
 #include <nand.h>
board/freescale/t208xqds/spl.c +1 -1
index 27f3c4c84f..9695dfc2e2 100644
@@ -4,7 +4,7 @@
 
 #include <common.h>
 #include <console.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <malloc.h>
 #include <ns16550.h>
 #include <nand.h>
board/freescale/t208xrdb/spl.c +1 -1
index ecb1e0d73c..ca7d6a28e0 100644
@@ -4,7 +4,7 @@
 
 #include <common.h>
 #include <console.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <malloc.h>
 #include <ns16550.h>
 #include <nand.h>
board/freescale/t4qds/spl.c +1 -1
index 16cc29eaa6..7666fe7556 100644
@@ -4,7 +4,7 @@
 
 #include <common.h>
 #include <console.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <asm/spl.h>
 #include <malloc.h>
 #include <ns16550.h>
board/freescale/t4rdb/spl.c +1 -1
index cc2b2f9ffb..a19558bd6b 100644
@@ -7,7 +7,7 @@
 
 #include <common.h>
 #include <console.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <asm/spl.h>
 #include <malloc.h>
 #include <ns16550.h>
board/gardena/smart-gateway-mt7688/board.c +1 -1
index baa3e5726c..bd494c84fc 100644
@@ -5,7 +5,7 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <led.h>
 #include <net.h>
 #include <spi.h>
board/phytec/phycore_rk3288/phycore-rk3288.c +1 -1
index 7b9178e3a6..5fcbf65b7c 100644
@@ -8,7 +8,7 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <i2c.h>
 #include <i2c_eeprom.h>
 #include <netdev.h>
board/renesas/alt/alt.c +1 -1
index 77979704be..10ef7f931b 100644
@@ -10,7 +10,7 @@
 #include <malloc.h>
 #include <dm.h>
 #include <dm/platform_data/serial_sh.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
board/renesas/gose/gose.c +1 -1
index bffa85c232..f86c9f1a63 100644
@@ -10,7 +10,7 @@
 #include <malloc.h>
 #include <dm.h>
 #include <dm/platform_data/serial_sh.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
board/renesas/koelsch/koelsch.c +1 -1
index 1bb3b492e2..841d337f4d 100644
@@ -11,7 +11,7 @@
 #include <malloc.h>
 #include <dm.h>
 #include <dm/platform_data/serial_sh.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
board/renesas/lager/lager.c +1 -1
index bda3295bad..3cb1a56142 100644
@@ -9,7 +9,7 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <malloc.h>
 #include <netdev.h>
 #include <dm.h>
board/renesas/porter/porter.c +1 -1
index d3afc2a400..86f79da7fd 100644
@@ -11,7 +11,7 @@
 #include <malloc.h>
 #include <dm.h>
 #include <dm/platform_data/serial_sh.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
board/renesas/silk/silk.c +1 -1
index bda6a414e6..25221e3c55 100644
@@ -11,7 +11,7 @@
 #include <malloc.h>
 #include <dm.h>
 #include <dm/platform_data/serial_sh.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
board/renesas/stout/stout.c +1 -1
index 95b5711fdb..0a0ff5ff76 100644
@@ -14,7 +14,7 @@
 #include <netdev.h>
 #include <dm.h>
 #include <dm/platform_data/serial_sh.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
board/st/stm32mp1/stm32mp1.c +1 -1
index 1f9251d7a0..279c7b7797 100644
@@ -9,7 +9,7 @@
 #include <clk.h>
 #include <dm.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <g_dnl.h>
 #include <generic-phy.h>
 #include <i2c.h>
board/sunxi/board.c +1 -1
index bb425cbf66..e3b2d13892 100644
@@ -30,7 +30,7 @@
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <u-boot/crc.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <linux/libfdt.h>
 #include <nand.h>
 #include <net.h>
board/tcl/sl50/board.c +1 -1
index a9c9d377b4..c7eed31946 100644
@@ -28,7 +28,7 @@
 #include <cpsw.h>
 #include <power/tps65217.h>
 #include <power/tps65910.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <watchdog.h>
 #include "board.h"
 
board/ti/am335x/board.c +1 -1
index 54adcd510d..7eaa6cd96d 100644
@@ -34,7 +34,7 @@
 #include <cpsw.h>
 #include <power/tps65217.h>
 #include <power/tps65910.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <watchdog.h>
 #include "../common/board_detect.h"
 #include "board.h"
cmd/nvedit.c +1 -1
index 8e8572235c..1cb0bc1460 100644
@@ -28,7 +28,7 @@
 #include <command.h>
 #include <console.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <search.h>
 #include <errno.h>
 #include <malloc.h>
common/board_f.c +1 -1
index 18937bf6f5..31181a9dc4 100644
@@ -15,7 +15,7 @@
 #include <cpu.h>
 #include <dm.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <fdtdec.h>
 #include <fs.h>
 #include <i2c.h>
common/board_r.c +1 -1
index f4193cdbec..1dabf5a11c 100644
@@ -19,7 +19,7 @@
 #include <console.h>
 #include <dm.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <fdtdec.h>
 #include <ide.h>
 #include <initcall.h>
common/console.c +1 -1
index 4c5f7d8f1f..f474388f37 100644
@@ -17,7 +17,7 @@
 #include <serial.h>
 #include <stdio_dev.h>
 #include <exports.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <watchdog.h>
 
 DECLARE_GLOBAL_DATA_PTR;
drivers/mtd/cfi_flash.c +1 -1
index 6c22f074b0..c59254c76e 100644
@@ -26,7 +26,7 @@
 #include <asm/io.h>
 #include <asm/byteorder.h>
 #include <asm/unaligned.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <mtd/cfi_flash.h>
 #include <watchdog.h>
 
drivers/serial/serial-uclass.c +1 -1
index d4488a2cc2..dcdaedefe7 100644
@@ -5,7 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <errno.h>
 #include <os.h>
 #include <serial.h>
drivers/serial/serial.c +1 -1
index 09365ba6a1..b907508dbe 100644
@@ -5,7 +5,7 @@
  */
 
 #include <common.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <serial.h>
 #include <stdio_dev.h>
 #include <post.h>
env/callback.c +1 -1
index d5469ce3c2..f0904cfdc5 100644
@@ -6,7 +6,7 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 
 #if defined(CONFIG_NEEDS_MANUAL_RELOC)
 DECLARE_GLOBAL_DATA_PTR;
env/common.c +1 -1
index 474ea2280b..3fb60509dd 100644
@@ -10,7 +10,7 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <linux/stddef.h>
 #include <search.h>
 #include <errno.h>
env/eeprom.c +1 -1
index 91ee3f35eb..cb04d2ac88 100644
@@ -10,7 +10,7 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <linux/stddef.h>
 #if defined(CONFIG_I2C_ENV_EEPROM_BUS)
 #include <i2c.h>
env/embedded.c +1 -1
index b1090e90e5..a38e169fe0 100644
@@ -12,7 +12,7 @@
 #define	__ASM_STUB_PROCESSOR_H__	/* don't include asm/processor. */
 #include <config.h>
 #undef	__ASSEMBLY__
-#include <environment.h>
+#include <env_internal.h>
 #include <linux/stringify.h>
 
 /* Handle HOSTS that have prepended crap on symbol names, not TARGETS. */
env/env.c +1 -1
index 9d421e8125..9237bb9c74 100644
@@ -6,7 +6,7 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
env/ext4.c +1 -1
index 6aa36867b6..1f6b1b5bd8 100644
@@ -22,7 +22,7 @@
 
 #include <command.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <linux/stddef.h>
 #include <malloc.h>
 #include <memalign.h>
env/fat.c +1 -1
index d23753c6ff..1836556f36 100644
@@ -10,7 +10,7 @@
 
 #include <command.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <linux/stddef.h>
 #include <malloc.h>
 #include <memalign.h>
env/flags.c +1 -1
index 93d337a1aa..418d6cc742 100644
@@ -19,7 +19,7 @@
 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
 #else
 #include <common.h>
-#include <environment.h>
+#include <env_internal.h>
 #endif
 
 #ifdef CONFIG_CMD_NET
env/flash.c +1 -1
index bdba09e306..231a5fdf24 100644
@@ -12,7 +12,7 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <linux/stddef.h>
 #include <malloc.h>
 #include <search.h>
env/mmc.c +1 -1
index 4ca7c2b9ff..9f1878def1 100644
@@ -9,7 +9,7 @@
 
 #include <command.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <fdtdec.h>
 #include <linux/stddef.h>
 #include <malloc.h>
env/nand.c +1 -1
index 3e2235f5f3..9f3dc635cf 100644
@@ -16,7 +16,7 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <linux/stddef.h>
 #include <malloc.h>
 #include <memalign.h>
env/nowhere.c +1 -1
index 7db4eec845..f5b0a17652 100644
@@ -10,7 +10,7 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <linux/stddef.h>
 
 DECLARE_GLOBAL_DATA_PTR;
env/nvram.c +1 -1
index a5b1873aaf..79201bd788 100644
@@ -26,7 +26,7 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <linux/stddef.h>
 #include <search.h>
 #include <errno.h>
env/onenand.c +1 -1
index d371bd757c..dfd4e939f8 100644
@@ -9,7 +9,7 @@
 
 #include <common.h>
 #include <command.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <linux/stddef.h>
 #include <malloc.h>
 #include <search.h>
env/remote.c +1 -1
index b1a7d1a4c1..02531f427b 100644
@@ -7,7 +7,7 @@
 
 #include <common.h>
 #include <command.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <linux/stddef.h>
 
 #ifdef ENV_IS_EMBEDDED
env/sata.c +1 -1
index a5364dda5d..9369710081 100644
@@ -9,7 +9,7 @@
 
 #include <command.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <linux/stddef.h>
 #include <errno.h>
 #include <memalign.h>
env/sf.c +1 -1
index 09646e1eed..590d0cedd8 100644
@@ -11,7 +11,7 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <malloc.h>
 #include <spi.h>
 #include <spi_flash.h>
env/ubi.c +1 -1
index a69db14afd..08aac47df2 100644
@@ -8,7 +8,7 @@
 
 #include <command.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <errno.h>
 #include <malloc.h>
 #include <memalign.h>
include/common.h +1 -1
index 34ae514805..f8afbc0d70 100644
@@ -394,7 +394,7 @@ int cpu_release(u32 nr, int argc, char * const argv[]);
 
 /* Pull in stuff for the build system */
 #ifdef DO_DEPS_ONLY
-# include <environment.h>
+# include <env_internal.h>
 #endif
 
 #endif	/* __COMMON_H_ */
include/env_internal.h renamed from include/environment.h +11 -3
similarity index 93%
rename from include/environment.h
rename to include/env_internal.h
index cc8c0546c2..b1ddcb5adf 100644
@@ -1,11 +1,19 @@
 /* SPDX-License-Identifier: GPL-2.0+ */
 /*
+ * Internal environment header file. This includes direct access to environment
+ * information such as its size and offset, direct access to the default
+ * environment and embedded environment (if used). It also provides environment
+ * drivers with various declarations.
+ *
+ * It should not be included by board files, drivers and code other than that
+ * related to the environment implementation.
+ *
  * (C) Copyright 2002
  * Wolfgang Denk, DENX Software Engineering, wd at denx.de.
  */
 
-#ifndef _ENVIRONMENT_H_
-#define _ENVIRONMENT_H_
+#ifndef _ENV_INTERNAL_H_
+#define _ENV_INTERNAL_H_
 
 #include <linux/kconfig.h>
 
@@ -267,4 +275,4 @@ extern struct hsearch_data env_htab;
 
 #endif /* DO_DEPS_ONLY */
 
-#endif /* _ENVIRONMENT_H_ */
+#endif /* _ENV_INTERNAL_H_ */
lib/efi_loader/efi_variable.c +1 -1
index 8a0e0db13e..6687b69a40 100644
@@ -10,7 +10,7 @@
 #include <charset.h>
 #include <efi_loader.h>
 #include <hexdump.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <search.h>
 #include <uuid.h>
 
net/net.c +1 -1
index f0a3996cd6..40511db645 100644
@@ -91,7 +91,7 @@
 #include <command.h>
 #include <console.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <errno.h>
 #include <net.h>
 #include <net/fastboot.h>
tools/envcrc.c +1 -1
index 7eb7246d45..672ef4d675 100644
@@ -59,7 +59,7 @@
 
 
 #ifdef CONFIG_BUILD_ENVCRC
-# include <environment.h>
+# include <env_internal.h>
 extern unsigned int env_size;
 extern env_t embedded_environment;
 #endif	/* CONFIG_BUILD_ENVCRC */
Signature · 1 line
2.22.0.709.g102302147b-goog
#91 lore raw

PATCH v2 38/40 env: Rename environment.h to env_internal.h

Am 01.08.2019 um 17:47 schrieb Simon Glass:

Quoted 8 lines

This file contains lots of internal details about the environment. Most code can include env.h instead, calling the functions there as needed.

Rename this file and add a comment at the top to indicate its internal nature.

Again, nice cleanup!

Quoted 1 line

---

#92 lore raw

PATCH v2 39/40 Drop PCMCIA

In reply to Simon Glass

This is no-longer used in U-Boot and has not been converted to driver model. Drop it.

---

Changes in v2: None

 README                          |   2 +-
 cmd/Kconfig                     |   8 -
 cmd/Makefile                    |   1 -
 cmd/ide.c                       |   4 -
 cmd/pcmcia.c                    | 341 --------------------------------
 common/board_r.c                |  12 --
 doc/README.marubun-pcmcia       |  65 ------
 doc/README.ne2000               |  11 --
 drivers/Kconfig                 |   2 -
 drivers/Makefile                |   1 -
 drivers/net/ne2000_base.c       |  10 -
 drivers/pcmcia/Kconfig          |   0
 drivers/pcmcia/Makefile         |   6 -
 drivers/pcmcia/marubun_pcmcia.c |  99 ----------
 include/common.h                |   2 -
 include/pcmcia.h                | 137 -------------
 include/pcmcia/yenta.h          | 156 ---------------
 scripts/config_whitelist.txt    |   6 -
 18 files changed, 1 insertion(+), 862 deletions(-)
 delete mode 100644 cmd/pcmcia.c
 delete mode 100644 doc/README.marubun-pcmcia
 delete mode 100644 drivers/pcmcia/Kconfig
 delete mode 100644 drivers/pcmcia/Makefile
 delete mode 100644 drivers/pcmcia/marubun_pcmcia.c
 delete mode 100644 include/pcmcia.h
 delete mode 100644 include/pcmcia/yenta.h
README +1 -1
index d2f466e6f6..ed1297056f 100644
@@ -83,7 +83,7 @@ Where we come from:
   * Provide extended interface to Linux boot loader
   * S-Record download
   * network boot
-  * PCMCIA / CompactFlash / ATA disk / SCSI ... boot
+  * ATA disk / SCSI ... boot
 - create ARMBoot project (http://sourceforge.net/projects/armboot)
 - add other CPU families (starting with ARM)
 - create U-Boot project (http://sourceforge.net/projects/u-boot)
cmd/Kconfig +0 -8
index 16cb5c2956..d446c43c88 100644
@@ -1010,14 +1010,6 @@ config CMD_PCI
 	  peripherals. Sub-commands allow bus enumeration, displaying and
 	  changing configuration space and a few other features.
 
-config CMD_PCMCIA
-	bool "pinit - Set up PCMCIA device"
-	help
-	  Provides a means to initialise a PCMCIA (Personal Computer Memory
-	  Card International Association) device. This is an old standard from
-	  about 1990. These devices are typically removable memory or network
-	  cards using a standard 68-pin connector.
-
 config CMD_PINMUX
 	bool "pinmux - show pins muxing"
 	default y if PINCTRL
cmd/Makefile +0 -1
index 43a6b0ee21..58827b5679 100644
@@ -106,7 +106,6 @@ obj-$(CONFIG_CMD_PART) += part.o
 ifdef CONFIG_PCI
 obj-$(CONFIG_CMD_PCI) += pci.o
 endif
-obj-$(CONFIG_CMD_PCMCIA) += pcmcia.o
 obj-$(CONFIG_CMD_PINMUX) += pinmux.o
 obj-$(CONFIG_CMD_PXE) += pxe.o
 obj-$(CONFIG_CMD_WOL) += wol.o
cmd/ide.c +0 -4
index 1c58efc55a..2f93ba7904 100644
@@ -17,10 +17,6 @@
 #include <asm/byteorder.h>
 #include <asm/io.h>
 
-#if defined(CONFIG_IDE_PCMCIA)
-# include <pcmcia.h>
-#endif
-
 #include <ide.h>
 #include <ata.h>
 
cmd/pcmcia.c deleted +0 -341

341 lines not on this page · raw message

common/board_r.c +0 -12
index 1dabf5a11c..b7f68bba4a 100644
@@ -583,15 +583,6 @@ static int initr_post(void)
 }
 #endif
 
-#if defined(CONFIG_CMD_PCMCIA) && !defined(CONFIG_IDE)
-static int initr_pcmcia(void)
-{
-	puts("PCMCIA:");
-	pcmcia_init();
-	return 0;
-}
-#endif
-
 #if defined(CONFIG_IDE) && !defined(CONFIG_BLK)
 static int initr_ide(void)
 {
@@ -820,9 +811,6 @@ static init_fnc_t init_sequence_r[] = {
 #ifdef CONFIG_POST
 	initr_post,
 #endif
-#if defined(CONFIG_CMD_PCMCIA) && !defined(CONFIG_IDE)
-	initr_pcmcia,
-#endif
 #if defined(CONFIG_IDE) && !defined(CONFIG_BLK)
 	initr_ide,
 #endif
doc/README.marubun-pcmcia deleted +0 -65

65 lines not on this page · raw message

doc/README.ne2000 +0 -11
index d5ae9a9eb1..0f6a2e04ff 100644
@@ -21,17 +21,6 @@ value for my board as an example):
 
 - Address where the board is mapped
 
-#define CONFIG_DRIVER_NE2000_CCR (0x28000000+0x3f8)
-
-- Address of the CCR (card configuration register). It could be found
-by enabling DEBUG in cmd_pcmcia.c. If this is not defined nothing is
-done as far as PCMCIA support is concerned.
-
-#define CONFIG_DRIVER_NE2000_VAL (0x20)
-
-- The value to be written in the CCR. It selects among different I/O
-spaces that could be used by the card.
-
 
 Enjoy!
 
drivers/Kconfig +0 -2
index 5a9d01b508..350acf81f3 100644
@@ -70,8 +70,6 @@ source "drivers/pci_endpoint/Kconfig"
 
 source "drivers/pch/Kconfig"
 
-source "drivers/pcmcia/Kconfig"
-
 source "drivers/phy/Kconfig"
 
 source "drivers/phy/allwinner/Kconfig"
drivers/Makefile +0 -1
index 41933605ce..a4bb5e4975 100644
@@ -88,7 +88,6 @@ obj-y += misc/
 obj-$(CONFIG_MMC) += mmc/
 obj-$(CONFIG_NVME) += nvme/
 obj-$(CONFIG_PCI_ENDPOINT) += pci_endpoint/
-obj-y += pcmcia/
 obj-y += dfu/
 obj-$(CONFIG_PCH) += pch/
 obj-y += phy/allwinner/
drivers/net/ne2000_base.c +0 -10
index 819a246070..a240d06ad4 100644
@@ -693,16 +693,6 @@ static int ne2k_setup_driver(struct eth_device *dev)
 		}
 	}
 
-#ifdef CONFIG_DRIVER_NE2000_CCR
-	{
-		vu_char *p = (vu_char *) CONFIG_DRIVER_NE2000_CCR;
-
-		PRINTK("CCR before is %x\n", *p);
-		*p = CONFIG_DRIVER_NE2000_VAL;
-		PRINTK("CCR after is %x\n", *p);
-	}
-#endif
-
 	nic.base = (u8 *) CONFIG_DRIVER_NE2000_BASE;
 
 	nic.data = nic.base + DP_DATA;
drivers/pcmcia/Kconfig deleted +0 -0
deleted file mode 100644
index e69de29bb2..0000000000
drivers/pcmcia/Makefile deleted +0 -6
deleted file mode 100644
index 8374a56c34..0000000000
@@ -1,6 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# (C) Copyright 2000-2007
-# Wolfgang Denk, DENX Software Engineering, wd at denx.de.
-
-obj-$(CONFIG_MARUBUN_PCCARD) += marubun_pcmcia.o
drivers/pcmcia/marubun_pcmcia.c deleted +0 -99

99 lines not on this page · raw message

include/common.h +0 -2
index f8afbc0d70..2645ac9615 100644
@@ -339,8 +339,6 @@ static inline struct in_addr env_get_ip(char *var)
 	return string_to_ip(env_get(var));
 }
 
-int	pcmcia_init (void);
-
 #ifdef CONFIG_LED_STATUS
 # include <status_led.h>
 #endif
include/pcmcia.h deleted +0 -137

137 lines not on this page · raw message

include/pcmcia/yenta.h deleted +0 -156

156 lines not on this page · raw message

scripts/config_whitelist.txt +0 -6
index 89119aea22..c21a12d2c4 100644
@@ -362,8 +362,6 @@ CONFIG_DRIVER_DM9000
 CONFIG_DRIVER_EP93XX_MAC
 CONFIG_DRIVER_NE2000
 CONFIG_DRIVER_NE2000_BASE
-CONFIG_DRIVER_NE2000_CCR
-CONFIG_DRIVER_NE2000_VAL
 CONFIG_DRIVER_SMC911X_BASE
 CONFIG_DRIVER_TI_EMAC_USE_RMII
 CONFIG_DSP_CLUSTER_START
@@ -1360,9 +1358,6 @@ CONFIG_PCI_SKIP_HOST_BRIDGE
 CONFIG_PCI_SYS_BUS
 CONFIG_PCI_SYS_PHYS
 CONFIG_PCI_SYS_SIZE
-CONFIG_PCMCIA
-CONFIG_PCMCIA_SLOT_A
-CONFIG_PCMCIA_SLOT_B
 CONFIG_PCNET
 CONFIG_PCNET_79C973
 CONFIG_PCNET_79C975
@@ -3708,7 +3703,6 @@ CONFIG_SYS_PCI_TBATR3
 CONFIG_SYS_PCI_TBATR4
 CONFIG_SYS_PCI_TBATR5
 CONFIG_SYS_PCI_VIRT
-CONFIG_SYS_PCMCIA_MEM_SIZE
 CONFIG_SYS_PDCNT
 CONFIG_SYS_PEHLPAR
 CONFIG_SYS_PEPAR
Signature · 1 line
2.22.0.709.g102302147b-goog
#93 lore raw

PATCH v2 39/40 Drop PCMCIA

Quoted 4 lines · Simon Glass

This is no-longer used in U-Boot and has not been converted to driver model. Drop it.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190813/9a486761/attachment.sig>
#94 lore raw

PATCH v2 40/40 common: Add a note about the effort to reduce common.h

In reply to Simon Glass

This file has quite a lot of general definitions and include files. Add a note about our intent to remove more of this.

The file should ultimately include the configuration and perhaps a very other very common things used by most U-Boot files.

---

Changes in v2:
- Rebase to master

 include/common.h | 6 ++++++
 1 file changed, 6 insertions(+)
include/common.h +6 -0
index 2645ac9615..d8f302ea92 100644
@@ -1,5 +1,11 @@
 /* SPDX-License-Identifier: GPL-2.0+ */
 /*
+ * Common header file for U-Boot
+ *
+ * This file still includes quite a bit of stuff that should be in separate
+ * headers like command.h, cpu.h and timer.h. Please think before adding more
+ * things. Patches to remove things are welcome.
+ *
  * (C) Copyright 2000-2009
  * Wolfgang Denk, DENX Software Engineering, wd at denx.de.
  */
Signature · 1 line
2.22.0.709.g102302147b-goog