env: common: Remove environment definitions from common.h
Subsystems (46)
PATCH v2 37/40 env: Drop environment.h header file where not needed
In reply to Simon GlassThis 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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.
Acked-by Joe Hershberger <[email protected]>Signed-off-by Simon Glass <[email protected]>
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>
PATCH v2 38/40 env: Rename environment.h to env_internal.h
In reply to Simon GlassThis 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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.hinstead, calling the functions there as needed.Rename this file and add a comment at the top to indicate its internal nature.
Signed-off-by Simon Glass <[email protected]>Acked-by Joe Hershberger <[email protected]>
Again, nice cleanup!
Quoted 1 line
---
PATCH v2 39/40 Drop PCMCIA
In reply to Simon GlassThis 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
drivers/pcmcia/Makefile deleted +0 -6
@@ -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
@@ -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
@@ -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
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.
Signed-off-by Simon Glass <[email protected]>
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>
PATCH v2 40/40 common: Add a note about the effort to reduce common.h
In reply to Simon GlassThis 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
@@ -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