Merge tag 'ti-v2020.07-rc3' of https://gitlab.denx.de/u-boot/custodians/u-boot-ti
authorTom Rini <trini@konsulko.com>
Mon, 25 May 2020 18:09:42 +0000 (14:09 -0400)
committerTom Rini <trini@konsulko.com>
Mon, 25 May 2020 18:09:42 +0000 (14:09 -0400)
- Enable DM_ETH on omap3_logic board
- Enable Caches in SPL for K3 platforms
- Enable backup boot mode support for J721E
- Update the DDR timings for AM654 EVM
- Add automated tests for RX-51

3576 files changed:
MAINTAINERS
README
api/api.c
api/api_display.c
api/api_storage.c
arch/Kconfig
arch/arc/include/asm/arcregs.h
arch/arc/lib/bootm.c
arch/arc/lib/cache.c
arch/arc/lib/cpu.c
arch/arc/lib/init_helpers.c
arch/arc/lib/relocate.c
arch/arc/lib/reset.c
arch/arm/Kconfig
arch/arm/cpu/arm11/cpu.c
arch/arm/cpu/arm1136/mx31/generic.c
arch/arm/cpu/arm1136/mx31/timer.c
arch/arm/cpu/arm1136/mx35/generic.c
arch/arm/cpu/arm1136/mx35/timer.c
arch/arm/cpu/arm920t/ep93xx/timer.c
arch/arm/cpu/arm920t/imx/timer.c
arch/arm/cpu/arm926ejs/armada100/cpu.c
arch/arm/cpu/arm926ejs/armada100/dram.c
arch/arm/cpu/arm926ejs/armada100/timer.c
arch/arm/cpu/arm926ejs/cache.c
arch/arm/cpu/arm926ejs/cpu.c
arch/arm/cpu/arm926ejs/mx25/generic.c
arch/arm/cpu/arm926ejs/mx25/timer.c
arch/arm/cpu/arm926ejs/mx27/generic.c
arch/arm/cpu/arm926ejs/mx27/timer.c
arch/arm/cpu/arm926ejs/mxs/clock.c
arch/arm/cpu/arm926ejs/mxs/mxs.c
arch/arm/cpu/arm926ejs/mxs/spl_boot.c
arch/arm/cpu/arm926ejs/mxs/spl_lradc_init.c
arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c
arch/arm/cpu/arm926ejs/mxs/spl_power_init.c
arch/arm/cpu/arm926ejs/mxs/timer.c
arch/arm/cpu/arm926ejs/spear/cpu.c
arch/arm/cpu/arm926ejs/spear/reset.c
arch/arm/cpu/arm926ejs/spear/spl.c
arch/arm/cpu/arm926ejs/spear/spr_misc.c
arch/arm/cpu/arm926ejs/spear/timer.c
arch/arm/cpu/armv7/arch_timer.c
arch/arm/cpu/armv7/bcm235xx/clk-core.c
arch/arm/cpu/armv7/bcm235xx/clk-core.h
arch/arm/cpu/armv7/bcm235xx/clk-eth.c
arch/arm/cpu/armv7/bcm281xx/clk-core.c
arch/arm/cpu/armv7/bcm281xx/clk-core.h
arch/arm/cpu/armv7/bcm281xx/clk-eth.c
arch/arm/cpu/armv7/cache_v7.c
arch/arm/cpu/armv7/exception_level.c
arch/arm/cpu/armv7/iproc-common/hwinit-common.c
arch/arm/cpu/armv7/iproc-common/timer.c
arch/arm/cpu/armv7/kona-common/hwinit-common.c
arch/arm/cpu/armv7/ls102xa/cpu.c
arch/arm/cpu/armv7/ls102xa/fdt.c
arch/arm/cpu/armv7/ls102xa/soc.c
arch/arm/cpu/armv7/ls102xa/timer.c
arch/arm/cpu/armv7/mpu_v7r.c
arch/arm/cpu/armv7/s5p-common/cpu_info.c
arch/arm/cpu/armv7/s5p-common/timer.c
arch/arm/cpu/armv7/stv0991/reset.c
arch/arm/cpu/armv7/stv0991/timer.c
arch/arm/cpu/armv7/sunxi/psci.c
arch/arm/cpu/armv7/sunxi/timer.c
arch/arm/cpu/armv7/vf610/generic.c
arch/arm/cpu/armv7/vf610/timer.c
arch/arm/cpu/armv7/virt-dt.c
arch/arm/cpu/armv7/virt-v7.c
arch/arm/cpu/armv7m/cache.c
arch/arm/cpu/armv7m/systick-timer.c
arch/arm/cpu/armv8/cache_v8.c
arch/arm/cpu/armv8/cpu-dt.c
arch/arm/cpu/armv8/cpu.c
arch/arm/cpu/armv8/exception_level.c
arch/arm/cpu/armv8/fsl-layerscape/cpu.c
arch/arm/cpu/armv8/fsl-layerscape/fdt.c
arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_serdes.c
arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c
arch/arm/cpu/armv8/fsl-layerscape/ls1028_ids.c
arch/arm/cpu/armv8/fsl-layerscape/mp.c
arch/arm/cpu/armv8/fsl-layerscape/ppa.c
arch/arm/cpu/armv8/fsl-layerscape/soc.c
arch/arm/cpu/armv8/fsl-layerscape/spl.c
arch/arm/cpu/armv8/fwcall.c
arch/arm/cpu/armv8/generic_timer.c
arch/arm/cpu/armv8/hisilicon/pinmux.c
arch/arm/cpu/armv8/s32v234/cpu.c
arch/arm/cpu/armv8/s32v234/generic.c
arch/arm/cpu/armv8/sec_firmware.c
arch/arm/cpu/pxa/cache.c
arch/arm/cpu/pxa/cpuinfo.c
arch/arm/cpu/pxa/pxa2xx.c
arch/arm/cpu/pxa/timer.c
arch/arm/cpu/pxa/usb.c
arch/arm/cpu/sa1100/timer.c
arch/arm/dts/Makefile
arch/arm/dts/fsl-ls1012a-2g5rdb.dts
arch/arm/dts/fsl-ls1012a-frdm.dtsi
arch/arm/dts/fsl-ls1012a-qds.dtsi
arch/arm/dts/fsl-ls1012a-rdb.dtsi
arch/arm/dts/fsl-ls1012a.dtsi
arch/arm/dts/fsl-ls1043a-qds.dtsi
arch/arm/dts/fsl-ls1043a.dtsi
arch/arm/dts/fsl-ls1046a-frwy.dts
arch/arm/dts/fsl-ls1046a-qds.dtsi
arch/arm/dts/fsl-ls1046a-rdb.dts
arch/arm/dts/fsl-ls1046a.dtsi
arch/arm/dts/fsl-ls1088a-qds-21-x.dts [new file with mode: 0644]
arch/arm/dts/fsl-ls1088a-qds-29-x.dts [new file with mode: 0644]
arch/arm/dts/fsl-ls1088a-qds-sd1-21.dtsi [new file with mode: 0644]
arch/arm/dts/fsl-ls1088a-qds-sd1-29.dtsi [new file with mode: 0644]
arch/arm/dts/fsl-ls1088a-qds.dts
arch/arm/dts/fsl-ls1088a-qds.dtsi [new file with mode: 0644]
arch/arm/dts/fsl-ls1088a-rdb.dts
arch/arm/dts/fsl-ls1088a.dtsi
arch/arm/dts/fsl-ls2080a-qds-42-x.dts [new file with mode: 0644]
arch/arm/dts/fsl-ls2080a-qds-sd1-42.dtsi [new file with mode: 0644]
arch/arm/dts/fsl-ls2080a-qds.dts
arch/arm/dts/fsl-ls2080a-qds.dtsi [new file with mode: 0644]
arch/arm/dts/fsl-ls2080a.dtsi
arch/arm/dts/fsl-ls2088a-rdb-qspi.dts
arch/arm/dts/fsl-lx2160a-qds-19-11-x.dts [new file with mode: 0644]
arch/arm/dts/fsl-lx2160a-qds-19-x-x.dts [new file with mode: 0644]
arch/arm/dts/fsl-lx2160a-qds-20-11-x.dts [new file with mode: 0644]
arch/arm/dts/fsl-lx2160a-qds-20-x-x.dts [new file with mode: 0644]
arch/arm/dts/fsl-lx2160a-qds-3-11-x.dts [new file with mode: 0644]
arch/arm/dts/fsl-lx2160a-qds-3-x-x.dts [new file with mode: 0644]
arch/arm/dts/fsl-lx2160a-qds-7-11-x.dts [new file with mode: 0644]
arch/arm/dts/fsl-lx2160a-qds-7-x-x.dts [new file with mode: 0644]
arch/arm/dts/fsl-lx2160a-qds-sd1-19.dtsi [new file with mode: 0644]
arch/arm/dts/fsl-lx2160a-qds-sd1-20.dtsi [new file with mode: 0644]
arch/arm/dts/fsl-lx2160a-qds-sd1-3.dtsi [new file with mode: 0644]
arch/arm/dts/fsl-lx2160a-qds-sd1-7.dtsi [new file with mode: 0644]
arch/arm/dts/fsl-lx2160a-qds-sd2-11.dtsi [new file with mode: 0644]
arch/arm/dts/fsl-lx2160a-qds.dts
arch/arm/dts/fsl-lx2160a-qds.dtsi [new file with mode: 0644]
arch/arm/dts/fsl-lx2160a.dtsi
arch/arm/dts/ls1021a-twr.dtsi
arch/arm/dts/ls1021a.dtsi
arch/arm/dts/r8a77950-salvator-x-u-boot.dts
arch/arm/dts/r8a77950-ulcb-u-boot.dts
arch/arm/dts/r8a77960-salvator-x-u-boot.dts
arch/arm/dts/r8a77960-ulcb-u-boot.dts
arch/arm/dts/r8a77965-salvator-x-u-boot.dts
arch/arm/dts/r8a77965-ulcb-u-boot.dts
arch/arm/dts/r8a77990-ebisu.dts
arch/arm/dts/rk3328-rock64-u-boot.dtsi
arch/arm/dts/rk3399-u-boot.dtsi
arch/arm/include/asm/arch-am33xx/clk_synthesizer.h
arch/arm/include/asm/arch-am33xx/cpu.h
arch/arm/include/asm/arch-am33xx/hardware_am43xx.h
arch/arm/include/asm/arch-am33xx/mux.h
arch/arm/include/asm/arch-am33xx/mux_am33xx.h
arch/arm/include/asm/arch-am33xx/mux_am43xx.h
arch/arm/include/asm/arch-am33xx/mux_ti816x.h
arch/arm/include/asm/arch-fsl-layerscape/clock.h
arch/arm/include/asm/arch-fsl-layerscape/config.h
arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h
arch/arm/include/asm/arch-fsl-layerscape/immap_lsch3.h
arch/arm/include/asm/arch-hi3660/hi3660.h
arch/arm/include/asm/arch-imx8/iomux.h
arch/arm/include/asm/arch-imx8/sci/sci.h
arch/arm/include/asm/arch-imx8m/clock_imx8mm.h
arch/arm/include/asm/arch-imx8m/clock_imx8mq.h
arch/arm/include/asm/arch-lpc32xx/dma.h
arch/arm/include/asm/arch-lpc32xx/i2c.h
arch/arm/include/asm/arch-ls102xa/clock.h
arch/arm/include/asm/arch-ls102xa/config.h
arch/arm/include/asm/arch-meson/axg.h
arch/arm/include/asm/arch-meson/g12a.h
arch/arm/include/asm/arch-meson/gx.h
arch/arm/include/asm/arch-meson/sd_emmc.h
arch/arm/include/asm/arch-mx25/clock.h
arch/arm/include/asm/arch-mx27/regs-rtc.h
arch/arm/include/asm/arch-mx31/clock.h
arch/arm/include/asm/arch-mx35/clock.h
arch/arm/include/asm/arch-mx5/clock.h
arch/arm/include/asm/arch-mx5/imx-regs.h
arch/arm/include/asm/arch-mx6/clock.h
arch/arm/include/asm/arch-mx6/imx-regs.h
arch/arm/include/asm/arch-mx7/clock.h
arch/arm/include/asm/arch-mx7/imx-regs.h
arch/arm/include/asm/arch-mx7/mx7-ddr.h
arch/arm/include/asm/arch-mx7ulp/clock.h
arch/arm/include/asm/arch-mx7ulp/pcc.h
arch/arm/include/asm/arch-mx7ulp/scg.h
arch/arm/include/asm/arch-omap4/clock.h
arch/arm/include/asm/arch-omap5/clock.h
arch/arm/include/asm/arch-omap5/dra7xx_iodelay.h
arch/arm/include/asm/arch-rk3308/cru_rk3308.h
arch/arm/include/asm/arch-rk3308/grf_rk3308.h
arch/arm/include/asm/arch-rockchip/cru.h
arch/arm/include/asm/arch-rockchip/cru_px30.h
arch/arm/include/asm/arch-rockchip/cru_rk3036.h
arch/arm/include/asm/arch-rockchip/cru_rk3128.h
arch/arm/include/asm/arch-rockchip/cru_rk322x.h
arch/arm/include/asm/arch-rockchip/cru_rk3328.h
arch/arm/include/asm/arch-rockchip/cru_rk3368.h
arch/arm/include/asm/arch-rockchip/cru_rk3399.h
arch/arm/include/asm/arch-rockchip/cru_rv1108.h
arch/arm/include/asm/arch-rockchip/ddr_rk3368.h
arch/arm/include/asm/arch-rockchip/grf_px30.h
arch/arm/include/asm/arch-rockchip/grf_rk3036.h
arch/arm/include/asm/arch-rockchip/grf_rk3128.h
arch/arm/include/asm/arch-rockchip/grf_rk322x.h
arch/arm/include/asm/arch-rockchip/grf_rk3368.h
arch/arm/include/asm/arch-rockchip/grf_rv1108.h
arch/arm/include/asm/arch-rockchip/lvds_rk3288.h
arch/arm/include/asm/arch-rockchip/sdram_pctl_px30.h
arch/arm/include/asm/arch-rockchip/sdram_phy_px30.h
arch/arm/include/asm/arch-rockchip/sdram_rk3036.h
arch/arm/include/asm/arch-rockchip/sdram_rk322x.h
arch/arm/include/asm/arch-rockchip/sdram_rk3399.h
arch/arm/include/asm/arch-s32v234/clock.h
arch/arm/include/asm/arch-s32v234/imx-regs.h
arch/arm/include/asm/arch-stih410/sdhci.h
arch/arm/include/asm/arch-stm32f4/stm32_pwr.h
arch/arm/include/asm/arch-stm32f7/stm32_pwr.h
arch/arm/include/asm/arch-stm32f7/syscfg.h
arch/arm/include/asm/arch-sunxi/ccu.h
arch/arm/include/asm/arch-sunxi/clock_sun50i_h6.h
arch/arm/include/asm/arch-sunxi/clock_sun9i.h
arch/arm/include/asm/arch-sunxi/dram_sun50i_h6.h
arch/arm/include/asm/arch-sunxi/dram_sun6i.h
arch/arm/include/asm/arch-sunxi/dram_sun8i_a33.h
arch/arm/include/asm/arch-sunxi/dram_sun8i_a83t.h
arch/arm/include/asm/arch-sunxi/dram_sun9i.h
arch/arm/include/asm/arch-sunxi/pwm.h
arch/arm/include/asm/arch-sunxi/rsb.h
arch/arm/include/asm/arch-tegra/cboot.h
arch/arm/include/asm/arch-tegra/dc.h
arch/arm/include/asm/arch-tegra/ivc.h
arch/arm/include/asm/arch-tegra/pmc.h
arch/arm/include/asm/arch-tegra/tegra_mmc.h
arch/arm/include/asm/arch-tegra124/flow.h
arch/arm/include/asm/arch-vf610/clock.h
arch/arm/include/asm/arch-vf610/imx-regs.h
arch/arm/include/asm/armv7_mpu.h
arch/arm/include/asm/bitops.h
arch/arm/include/asm/dma-mapping.h
arch/arm/include/asm/ehci-omap.h
arch/arm/include/asm/emif.h
arch/arm/include/asm/gic-v3.h
arch/arm/include/asm/mach-imx/dma.h
arch/arm/include/asm/mach-imx/iomux-v3.h
arch/arm/include/asm/mach-imx/sys_proto.h
arch/arm/include/asm/omap_common.h
arch/arm/include/asm/omap_mmc.h
arch/arm/include/asm/omap_sec_common.h
arch/arm/include/asm/psci.h
arch/arm/include/asm/system.h
arch/arm/include/asm/ti-common/keystone_net.h
arch/arm/include/asm/ti-common/omap_wdt.h
arch/arm/include/asm/ti-common/ti-edma3.h
arch/arm/lib/bootm.c
arch/arm/lib/cache-cp15.c
arch/arm/lib/cache.c
arch/arm/lib/cmd_boot.c
arch/arm/lib/gic-v3-its.c
arch/arm/lib/image.c
arch/arm/lib/interrupts.c
arch/arm/lib/interrupts_64.c
arch/arm/lib/psci-dt.c
arch/arm/lib/reset.c
arch/arm/lib/semihosting.c
arch/arm/lib/spl.c
arch/arm/lib/stack.c
arch/arm/lib/zimage.c
arch/arm/mach-aspeed/ast2500-board.c
arch/arm/mach-aspeed/ast2500/sdram_ast2500.c
arch/arm/mach-at91/arm920t/cpu.c
arch/arm/mach-at91/arm920t/timer.c
arch/arm/mach-at91/arm926ejs/cpu.c
arch/arm/mach-at91/arm926ejs/eflash.c
arch/arm/mach-at91/arm926ejs/timer.c
arch/arm/mach-at91/armv7/clock.c
arch/arm/mach-at91/armv7/cpu.c
arch/arm/mach-at91/armv7/timer.c
arch/arm/mach-at91/include/mach/at91_pmc.h
arch/arm/mach-at91/include/mach/at91_sfr.h
arch/arm/mach-at91/include/mach/atmel_pio4.h
arch/arm/mach-at91/mpddrc.c
arch/arm/mach-at91/phy.c
arch/arm/mach-at91/spl_at91.c
arch/arm/mach-at91/spl_atmel.c
arch/arm/mach-bcm283x/include/mach/timer.h
arch/arm/mach-bcm283x/init.c
arch/arm/mach-bcm283x/mbox.c
arch/arm/mach-davinci/cpu.c
arch/arm/mach-davinci/da850_lowlevel.c
arch/arm/mach-davinci/misc.c
arch/arm/mach-davinci/spl.c
arch/arm/mach-davinci/timer.c
arch/arm/mach-exynos/clock.c
arch/arm/mach-exynos/include/mach/clock.h
arch/arm/mach-exynos/include/mach/dp_info.h
arch/arm/mach-exynos/lowlevel_init.c
arch/arm/mach-exynos/pinmux.c
arch/arm/mach-exynos/soc.c
arch/arm/mach-exynos/spl_boot.c
arch/arm/mach-highbank/timer.c
arch/arm/mach-imx/cache.c
arch/arm/mach-imx/cmd_bmode.c
arch/arm/mach-imx/cmd_dek.c
arch/arm/mach-imx/cmd_hdmidet.c
arch/arm/mach-imx/cmd_nandbcb.c
arch/arm/mach-imx/cpu.c
arch/arm/mach-imx/ddrmc-vf610-calibration.c
arch/arm/mach-imx/ddrmc-vf610.c
arch/arm/mach-imx/hab.c
arch/arm/mach-imx/i2c-mxv7.c
arch/arm/mach-imx/imx8/ahab.c
arch/arm/mach-imx/imx8/cpu.c
arch/arm/mach-imx/imx8/fdt.c
arch/arm/mach-imx/imx8/image.c
arch/arm/mach-imx/imx8/iomux.c
arch/arm/mach-imx/imx8/misc.c
arch/arm/mach-imx/imx8/parse-container.c
arch/arm/mach-imx/imx8/snvs_security_sc.c
arch/arm/mach-imx/imx8m/clock_imx8mm.c
arch/arm/mach-imx/imx8m/clock_imx8mq.c
arch/arm/mach-imx/imx8m/soc.c
arch/arm/mach-imx/imx_bootaux.c
arch/arm/mach-imx/imxrt/soc.c
arch/arm/mach-imx/misc.c
arch/arm/mach-imx/mx5/clock.c
arch/arm/mach-imx/mx5/soc.c
arch/arm/mach-imx/mx6/clock.c
arch/arm/mach-imx/mx6/ddr.c
arch/arm/mach-imx/mx6/litesom.c
arch/arm/mach-imx/mx6/soc.c
arch/arm/mach-imx/mx7/clock.c
arch/arm/mach-imx/mx7/psci-mx7.c
arch/arm/mach-imx/mx7/soc.c
arch/arm/mach-imx/mx7ulp/clock.c
arch/arm/mach-imx/mx7ulp/iomux.c
arch/arm/mach-imx/mx7ulp/pcc.c
arch/arm/mach-imx/mx7ulp/scg.c
arch/arm/mach-imx/mx7ulp/soc.c
arch/arm/mach-imx/sata.c
arch/arm/mach-imx/sip.c
arch/arm/mach-imx/spl.c
arch/arm/mach-imx/spl_imx_romapi.c
arch/arm/mach-imx/syscounter.c
arch/arm/mach-imx/timer.c
arch/arm/mach-k3/am6_init.c
arch/arm/mach-k3/common.c
arch/arm/mach-k3/include/mach/am6_hardware.h
arch/arm/mach-k3/include/mach/j721e_hardware.h
arch/arm/mach-k3/include/mach/j721e_spl.h
arch/arm/mach-k3/j721e_init.c
arch/arm/mach-k3/security.c
arch/arm/mach-k3/sysfw-loader.c
arch/arm/mach-keystone/clock.c
arch/arm/mach-keystone/cmd_clock.c
arch/arm/mach-keystone/cmd_mon.c
arch/arm/mach-keystone/cmd_poweroff.c
arch/arm/mach-keystone/ddr3.c
arch/arm/mach-keystone/ddr3_spd.c
arch/arm/mach-keystone/include/mach/clock_defs.h
arch/arm/mach-keystone/include/mach/hardware-k2hk.h
arch/arm/mach-keystone/include/mach/hardware-k2l.h
arch/arm/mach-keystone/include/mach/hardware.h
arch/arm/mach-keystone/include/mach/xhci-keystone.h
arch/arm/mach-keystone/init.c
arch/arm/mach-keystone/keystone.c
arch/arm/mach-keystone/mon.c
arch/arm/mach-keystone/psc.c
arch/arm/mach-kirkwood/cache.c
arch/arm/mach-kirkwood/cpu.c
arch/arm/mach-kirkwood/mpp.c
arch/arm/mach-lpc32xx/cpu.c
arch/arm/mach-lpc32xx/dram.c
arch/arm/mach-lpc32xx/timer.c
arch/arm/mach-mediatek/cpu.c
arch/arm/mach-mediatek/mt7622/init.c
arch/arm/mach-mediatek/mt7629/init.c
arch/arm/mach-mediatek/mt8512/init.c
arch/arm/mach-mediatek/mt8516/init.c
arch/arm/mach-mediatek/mt8518/init.c
arch/arm/mach-mediatek/spl.c
arch/arm/mach-meson/board-axg.c
arch/arm/mach-meson/board-common.c
arch/arm/mach-meson/board-g12a.c
arch/arm/mach-meson/board-gx.c
arch/arm/mach-meson/board-info.c
arch/arm/mach-meson/sm.c
arch/arm/mach-mvebu/arm64-common.c
arch/arm/mach-mvebu/armada3700/cpu.c
arch/arm/mach-mvebu/armada8k/dram.c
arch/arm/mach-mvebu/cpu.c
arch/arm/mach-mvebu/efuse.c
arch/arm/mach-mvebu/include/mach/soc.h
arch/arm/mach-mvebu/mbus.c
arch/arm/mach-mvebu/serdes/a38x/ctrl_pex.c
arch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec.c
arch/arm/mach-mvebu/serdes/a38x/seq_exec.c
arch/arm/mach-mvebu/serdes/axp/high_speed_env_lib.c
arch/arm/mach-mvebu/spl.c
arch/arm/mach-mvebu/timer.c
arch/arm/mach-omap2/abb.c
arch/arm/mach-omap2/am33xx/board.c
arch/arm/mach-omap2/am33xx/chilisom.c
arch/arm/mach-omap2/am33xx/clock.c
arch/arm/mach-omap2/am33xx/clock_ti814x.c
arch/arm/mach-omap2/am33xx/clock_ti816x.c
arch/arm/mach-omap2/am33xx/ddr.c
arch/arm/mach-omap2/am33xx/sys_info.c
arch/arm/mach-omap2/am33xx/ti816x_emif4.c
arch/arm/mach-omap2/boot-common.c
arch/arm/mach-omap2/clocks-common.c
arch/arm/mach-omap2/emif-common.c
arch/arm/mach-omap2/fdt-common.c
arch/arm/mach-omap2/hwinit-common.c
arch/arm/mach-omap2/omap-cache.c
arch/arm/mach-omap2/omap3/am35x_musb.c
arch/arm/mach-omap2/omap3/board.c
arch/arm/mach-omap2/omap3/emac.c
arch/arm/mach-omap2/omap3/emif4.c
arch/arm/mach-omap2/omap3/sdrc.c
arch/arm/mach-omap2/omap4/sdram_elpida.c
arch/arm/mach-omap2/omap5/abb.c
arch/arm/mach-omap2/omap5/dra7xx_iodelay.c
arch/arm/mach-omap2/omap5/emif.c
arch/arm/mach-omap2/omap5/fdt.c
arch/arm/mach-omap2/omap5/hwinit.c
arch/arm/mach-omap2/omap5/sdram.c
arch/arm/mach-omap2/pipe3-phy.c
arch/arm/mach-omap2/sec-common.c
arch/arm/mach-omap2/timer.c
arch/arm/mach-omap2/utils.c
arch/arm/mach-orion5x/cpu.c
arch/arm/mach-orion5x/timer.c
arch/arm/mach-owl/soc.c
arch/arm/mach-rmobile/board.c
arch/arm/mach-rmobile/cpu_info.c
arch/arm/mach-rmobile/emac.c
arch/arm/mach-rmobile/include/mach/rcar-gen3-base.h
arch/arm/mach-rmobile/include/mach/sh_sdhi.h
arch/arm/mach-rmobile/timer.c
arch/arm/mach-rockchip/board.c
arch/arm/mach-rockchip/boot_mode.c
arch/arm/mach-rockchip/bootrom.c
arch/arm/mach-rockchip/cpu-info.c
arch/arm/mach-rockchip/misc.c
arch/arm/mach-rockchip/px30-board-tpl.c
arch/arm/mach-rockchip/px30/px30.c
arch/arm/mach-rockchip/px30/syscon_px30.c
arch/arm/mach-rockchip/rk3036-board-spl.c
arch/arm/mach-rockchip/rk3036/rk3036.c
arch/arm/mach-rockchip/rk3036/sdram_rk3036.c
arch/arm/mach-rockchip/rk3128/rk3128.c
arch/arm/mach-rockchip/rk3188/rk3188.c
arch/arm/mach-rockchip/rk3188/syscon_rk3188.c
arch/arm/mach-rockchip/rk322x/rk322x.c
arch/arm/mach-rockchip/rk3288/rk3288.c
arch/arm/mach-rockchip/rk3288/syscon_rk3288.c
arch/arm/mach-rockchip/rk3308/rk3308.c
arch/arm/mach-rockchip/rk3328/rk3328.c
arch/arm/mach-rockchip/rk3368/rk3368.c
arch/arm/mach-rockchip/rk3368/syscon_rk3368.c
arch/arm/mach-rockchip/rk3399/rk3399.c
arch/arm/mach-rockchip/rk3399/syscon_rk3399.c
arch/arm/mach-rockchip/sdram.c
arch/arm/mach-rockchip/spl-boot-order.c
arch/arm/mach-rockchip/spl.c
arch/arm/mach-rockchip/tpl.c
arch/arm/mach-s5pc1xx/cache.c
arch/arm/mach-snapdragon/dram.c
arch/arm/mach-snapdragon/pinctrl-snapdragon.c
arch/arm/mach-socfpga/board.c
arch/arm/mach-socfpga/clock_manager.c
arch/arm/mach-socfpga/clock_manager_agilex.c
arch/arm/mach-socfpga/clock_manager_arria10.c
arch/arm/mach-socfpga/freeze_controller.c
arch/arm/mach-socfpga/include/mach/clock_manager.h
arch/arm/mach-socfpga/include/mach/clock_manager_arria10.h
arch/arm/mach-socfpga/include/mach/clock_manager_gen5.h
arch/arm/mach-socfpga/include/mach/clock_manager_s10.h
arch/arm/mach-socfpga/include/mach/firewall.h
arch/arm/mach-socfpga/include/mach/fpga_manager_arria10.h
arch/arm/mach-socfpga/include/mach/fpga_manager_gen5.h
arch/arm/mach-socfpga/include/mach/mailbox_s10.h
arch/arm/mach-socfpga/include/mach/reset_manager_arria10.h
arch/arm/mach-socfpga/include/mach/sdram_arria10.h
arch/arm/mach-socfpga/include/mach/system_manager.h
arch/arm/mach-socfpga/include/mach/system_manager_soc64.h
arch/arm/mach-socfpga/misc.c
arch/arm/mach-socfpga/misc_arria10.c
arch/arm/mach-socfpga/misc_gen5.c
arch/arm/mach-socfpga/misc_s10.c
arch/arm/mach-socfpga/pinmux_arria10.c
arch/arm/mach-socfpga/reset_manager_gen5.c
arch/arm/mach-socfpga/scan_manager.c
arch/arm/mach-socfpga/spl_a10.c
arch/arm/mach-socfpga/spl_agilex.c
arch/arm/mach-socfpga/spl_gen5.c
arch/arm/mach-socfpga/spl_s10.c
arch/arm/mach-socfpga/timer.c
arch/arm/mach-socfpga/timer_s10.c
arch/arm/mach-stm32/soc.c
arch/arm/mach-stm32mp/boot_params.c
arch/arm/mach-stm32mp/bsec.c
arch/arm/mach-stm32mp/cmd_stm32key.c
arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c
arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c
arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_serial.c
arch/arm/mach-stm32mp/cpu.c
arch/arm/mach-stm32mp/dram_init.c
arch/arm/mach-stm32mp/fdt.c
arch/arm/mach-stm32mp/include/mach/stm32.h
arch/arm/mach-stm32mp/psci.c
arch/arm/mach-stm32mp/pwr_regulator.c
arch/arm/mach-stm32mp/spl.c
arch/arm/mach-sunxi/board.c
arch/arm/mach-sunxi/clock_sun6i.c
arch/arm/mach-sunxi/clock_sun8i_a83t.c
arch/arm/mach-sunxi/cpu_info.c
arch/arm/mach-sunxi/dram_sun4i.c
arch/arm/mach-sunxi/dram_sun50i_h6.c
arch/arm/mach-sunxi/dram_sun6i.c
arch/arm/mach-sunxi/dram_sun8i_a23.c
arch/arm/mach-sunxi/dram_sun8i_a33.c
arch/arm/mach-sunxi/dram_sun8i_a83t.c
arch/arm/mach-sunxi/dram_sun9i.c
arch/arm/mach-sunxi/dram_sunxi_dw.c
arch/arm/mach-sunxi/spl_spi_sunxi.c
arch/arm/mach-tegra/ap.c
arch/arm/mach-tegra/board.c
arch/arm/mach-tegra/board2.c
arch/arm/mach-tegra/cboot.c
arch/arm/mach-tegra/clock.c
arch/arm/mach-tegra/cmd_enterrcm.c
arch/arm/mach-tegra/cpu.c
arch/arm/mach-tegra/gpu.c
arch/arm/mach-tegra/ivc.c
arch/arm/mach-tegra/pinmux-common.c
arch/arm/mach-tegra/pmc.c
arch/arm/mach-tegra/powergate.c
arch/arm/mach-tegra/spl.c
arch/arm/mach-tegra/sys_info.c
arch/arm/mach-tegra/tegra114/clock.c
arch/arm/mach-tegra/tegra114/cpu.c
arch/arm/mach-tegra/tegra114/funcmux.c
arch/arm/mach-tegra/tegra124/clock.c
arch/arm/mach-tegra/tegra124/cpu.c
arch/arm/mach-tegra/tegra124/funcmux.c
arch/arm/mach-tegra/tegra124/xusb-padctl.c
arch/arm/mach-tegra/tegra20/clock.c
arch/arm/mach-tegra/tegra20/cpu.c
arch/arm/mach-tegra/tegra20/crypto.c
arch/arm/mach-tegra/tegra20/emc.c
arch/arm/mach-tegra/tegra20/funcmux.c
arch/arm/mach-tegra/tegra20/pmu.c
arch/arm/mach-tegra/tegra210/clock.c
arch/arm/mach-tegra/tegra210/funcmux.c
arch/arm/mach-tegra/tegra210/xusb-padctl.c
arch/arm/mach-tegra/tegra30/clock.c
arch/arm/mach-tegra/tegra30/cpu.c
arch/arm/mach-tegra/tegra30/funcmux.c
arch/arm/mach-tegra/xusb-padctl-common.c
arch/arm/mach-u8500/cache.c
arch/arm/mach-u8500/cpuinfo.c
arch/arm/mach-uniphier/arm32/cache-uniphier.c
arch/arm/mach-uniphier/arm32/psci.c
arch/arm/mach-uniphier/arm32/timer.c
arch/arm/mach-uniphier/arm64/mem_map.c
arch/arm/mach-uniphier/base-address.c
arch/arm/mach-uniphier/board_late_init.c
arch/arm/mach-uniphier/boards.c
arch/arm/mach-uniphier/boot-device/boot-device-ld11.c
arch/arm/mach-uniphier/boot-device/boot-device-ld4.c
arch/arm/mach-uniphier/boot-device/boot-device-pro5.c
arch/arm/mach-uniphier/boot-device/boot-device-pxs2.c
arch/arm/mach-uniphier/boot-device/boot-device-pxs3.c
arch/arm/mach-uniphier/boot-device/boot-device.c
arch/arm/mach-uniphier/clk/clk-dram-ld4.c
arch/arm/mach-uniphier/clk/clk-dram-pxs2.c
arch/arm/mach-uniphier/clk/clk-early-ld4.c
arch/arm/mach-uniphier/clk/clk-ld11.c
arch/arm/mach-uniphier/clk/dpll-ld4.c
arch/arm/mach-uniphier/clk/dpll-pro4.c
arch/arm/mach-uniphier/cpu-info.c
arch/arm/mach-uniphier/debug-uart/debug-uart.c
arch/arm/mach-uniphier/dram/cmd_ddrmphy.c
arch/arm/mach-uniphier/dram/cmd_ddrphy.c
arch/arm/mach-uniphier/dram/ddrphy-regs.h
arch/arm/mach-uniphier/dram/umc-ld4.c
arch/arm/mach-uniphier/dram/umc-pro4.c
arch/arm/mach-uniphier/dram/umc-pxs2.c
arch/arm/mach-uniphier/dram/umc-sld8.c
arch/arm/mach-uniphier/dram_init.c
arch/arm/mach-uniphier/fdt-fixup.c
arch/arm/mach-uniphier/init.h
arch/arm/mach-uniphier/memconf.c
arch/arm/mach-uniphier/micro-support-card.c
arch/arm/mach-uniphier/mmc-boot-mode.c
arch/arm/mach-uniphier/mmc-first-dev.c
arch/arm/mach-uniphier/pinctrl-glue.c
arch/arm/mach-uniphier/reset.c
arch/arm/mach-uniphier/sbc/sbc-ld11.c
arch/arm/mach-uniphier/sbc/sbc.c
arch/arm/mach-uniphier/spl_board_init.c
arch/arm/mach-versal/clk.c
arch/arm/mach-versal/cpu.c
arch/arm/mach-versal/include/mach/hardware.h
arch/arm/mach-zynq/clk.c
arch/arm/mach-zynq/cpu.c
arch/arm/mach-zynq/spl.c
arch/arm/mach-zynq/timer.c
arch/arm/mach-zynqmp-r5/cpu.c
arch/arm/mach-zynqmp/clk.c
arch/arm/mach-zynqmp/cpu.c
arch/arm/mach-zynqmp/include/mach/hardware.h
arch/arm/mach-zynqmp/mp.c
arch/arm/mach-zynqmp/psu_spl_init.c
arch/arm/mach-zynqmp/spl.c
arch/m68k/cpu/mcf5227x/cpu.c
arch/m68k/cpu/mcf5227x/cpu_init.c
arch/m68k/cpu/mcf523x/cpu.c
arch/m68k/cpu/mcf523x/cpu_init.c
arch/m68k/cpu/mcf52x2/cpu.c
arch/m68k/cpu/mcf52x2/cpu_init.c
arch/m68k/cpu/mcf52x2/speed.c
arch/m68k/cpu/mcf530x/cpu.c
arch/m68k/cpu/mcf530x/cpu_init.c
arch/m68k/cpu/mcf532x/cpu.c
arch/m68k/cpu/mcf532x/cpu_init.c
arch/m68k/cpu/mcf5445x/cpu.c
arch/m68k/cpu/mcf5445x/cpu_init.c
arch/m68k/cpu/mcf5445x/pci.c
arch/m68k/cpu/mcf547x_8x/cpu.c
arch/m68k/cpu/mcf547x_8x/cpu_init.c
arch/m68k/cpu/mcf547x_8x/pci.c
arch/m68k/cpu/mcf547x_8x/slicetimer.c
arch/m68k/lib/bootm.c
arch/m68k/lib/interrupts.c
arch/m68k/lib/time.c
arch/m68k/lib/traps.c
arch/microblaze/cpu/cache.c
arch/microblaze/cpu/interrupts.c
arch/microblaze/cpu/spl.c
arch/microblaze/cpu/timer.c
arch/microblaze/lib/bootm.c
arch/mips/cpu/cpu.c
arch/mips/include/asm/cacheops.h
arch/mips/include/asm/cm.h
arch/mips/include/asm/mipsregs.h
arch/mips/lib/bootm.c
arch/mips/lib/cache.c
arch/mips/lib/reloc.c
arch/mips/lib/spl.c
arch/mips/lib/stack.c
arch/mips/lib/traps.c
arch/mips/mach-ath79/ar933x/ddr.c
arch/mips/mach-ath79/ar934x/clk.c
arch/mips/mach-ath79/ar934x/ddr.c
arch/mips/mach-ath79/cpu.c
arch/mips/mach-ath79/qca953x/ddr.c
arch/mips/mach-ath79/qca956x/clk.c
arch/mips/mach-ath79/qca956x/ddr.c
arch/mips/mach-ath79/reset.c
arch/mips/mach-bmips/dram.c
arch/mips/mach-jz47xx/include/mach/jz4780_dram.h
arch/mips/mach-jz47xx/jz4780/gpio.c
arch/mips/mach-jz47xx/jz4780/jz4780.c
arch/mips/mach-jz47xx/jz4780/pll.c
arch/mips/mach-jz47xx/jz4780/reset.c
arch/mips/mach-jz47xx/jz4780/sdram.c
arch/mips/mach-jz47xx/jz4780/timer.c
arch/mips/mach-mscc/cpu.c
arch/mips/mach-mscc/dram.c
arch/mips/mach-mscc/gpio.c
arch/mips/mach-mscc/include/mach/ddr.h
arch/mips/mach-mscc/include/mach/jr2/jr2_devcpu_gcb.h
arch/mips/mach-mscc/include/mach/jr2/jr2_devcpu_gcb_miim_regs.h
arch/mips/mach-mscc/include/mach/jr2/jr2_icpu_cfg.h
arch/mips/mach-mscc/include/mach/luton/luton_devcpu_gcb.h
arch/mips/mach-mscc/include/mach/luton/luton_devcpu_gcb_miim_regs.h
arch/mips/mach-mscc/include/mach/luton/luton_icpu_cfg.h
arch/mips/mach-mscc/include/mach/ocelot/ocelot_devcpu_gcb.h
arch/mips/mach-mscc/include/mach/ocelot/ocelot_devcpu_gcb_miim_regs.h
arch/mips/mach-mscc/include/mach/ocelot/ocelot_icpu_cfg.h
arch/mips/mach-mscc/include/mach/serval/serval_devcpu_gcb.h
arch/mips/mach-mscc/include/mach/serval/serval_devcpu_gcb_miim_regs.h
arch/mips/mach-mscc/include/mach/serval/serval_icpu_cfg.h
arch/mips/mach-mscc/include/mach/servalt/servalt_devcpu_gcb.h
arch/mips/mach-mscc/include/mach/servalt/servalt_devcpu_gcb_miim_regs.h
arch/mips/mach-mscc/include/mach/servalt/servalt_icpu_cfg.h
arch/mips/mach-mscc/include/mach/tlb.h
arch/mips/mach-mscc/phy.c
arch/mips/mach-mtmips/cpu.c
arch/mips/mach-mtmips/ddr_init.c
arch/mips/mach-mtmips/mt7628/ddr.c
arch/mips/mach-mtmips/spl.c
arch/mips/mach-pic32/cpu.c
arch/nds32/cpu/n1213/ae3xx/cpu.c
arch/nds32/cpu/n1213/ag101/cpu.c
arch/nds32/cpu/n1213/ag101/timer.c
arch/nds32/include/asm/u-boot-nds32.h
arch/nds32/lib/boot.c
arch/nds32/lib/bootm.c
arch/nds32/lib/cache.c
arch/nios2/cpu/cpu.c
arch/nios2/cpu/interrupts.c
arch/nios2/lib/bootm.c
arch/powerpc/cpu/mpc83xx/Kconfig
arch/powerpc/cpu/mpc83xx/cpu.c
arch/powerpc/cpu/mpc83xx/cpu_init.c
arch/powerpc/cpu/mpc83xx/ecc.c
arch/powerpc/cpu/mpc83xx/interrupts.c
arch/powerpc/cpu/mpc83xx/law.c
arch/powerpc/cpu/mpc83xx/pci.c
arch/powerpc/cpu/mpc83xx/pcie.c
arch/powerpc/cpu/mpc83xx/serdes.c
arch/powerpc/cpu/mpc83xx/spd_sdram.c
arch/powerpc/cpu/mpc83xx/speed.c
arch/powerpc/cpu/mpc83xx/spl_minimal.c
arch/powerpc/cpu/mpc83xx/traps.c
arch/powerpc/cpu/mpc85xx/bsc9132_serdes.c
arch/powerpc/cpu/mpc85xx/c29x_serdes.c
arch/powerpc/cpu/mpc85xx/cmd_errata.c
arch/powerpc/cpu/mpc85xx/commproc.c
arch/powerpc/cpu/mpc85xx/cpu.c
arch/powerpc/cpu/mpc85xx/cpu_init.c
arch/powerpc/cpu/mpc85xx/cpu_init_early.c
arch/powerpc/cpu/mpc85xx/fdt.c
arch/powerpc/cpu/mpc85xx/fsl_corenet2_serdes.c
arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c
arch/powerpc/cpu/mpc85xx/interrupts.c
arch/powerpc/cpu/mpc85xx/liodn.c
arch/powerpc/cpu/mpc85xx/mp.c
arch/powerpc/cpu/mpc85xx/mpc8536_serdes.c
arch/powerpc/cpu/mpc85xx/mpc8544_serdes.c
arch/powerpc/cpu/mpc85xx/mpc8548_serdes.c
arch/powerpc/cpu/mpc85xx/mpc8568_serdes.c
arch/powerpc/cpu/mpc85xx/mpc8569_serdes.c
arch/powerpc/cpu/mpc85xx/mpc8572_serdes.c
arch/powerpc/cpu/mpc85xx/p1010_serdes.c
arch/powerpc/cpu/mpc85xx/p1021_serdes.c
arch/powerpc/cpu/mpc85xx/p1022_serdes.c
arch/powerpc/cpu/mpc85xx/p1023_serdes.c
arch/powerpc/cpu/mpc85xx/p2020_serdes.c
arch/powerpc/cpu/mpc85xx/pci.c
arch/powerpc/cpu/mpc85xx/spl_minimal.c
arch/powerpc/cpu/mpc85xx/tlb.c
arch/powerpc/cpu/mpc85xx/traps.c
arch/powerpc/cpu/mpc86xx/cpu.c
arch/powerpc/cpu/mpc86xx/cpu_init.c
arch/powerpc/cpu/mpc86xx/interrupts.c
arch/powerpc/cpu/mpc86xx/mp.c
arch/powerpc/cpu/mpc86xx/mpc8610_serdes.c
arch/powerpc/cpu/mpc86xx/mpc8641_serdes.c
arch/powerpc/cpu/mpc86xx/traps.c
arch/powerpc/cpu/mpc8xx/cpu.c
arch/powerpc/cpu/mpc8xx/cpu_init.c
arch/powerpc/cpu/mpc8xx/immap.c
arch/powerpc/cpu/mpc8xx/interrupts.c
arch/powerpc/cpu/mpc8xx/traps.c
arch/powerpc/cpu/mpc8xxx/cpu.c
arch/powerpc/cpu/mpc8xxx/fsl_lbc.c
arch/powerpc/cpu/mpc8xxx/fsl_pamu.c
arch/powerpc/cpu/mpc8xxx/law.c
arch/powerpc/cpu/mpc8xxx/pamu_table.c
arch/powerpc/cpu/mpc8xxx/srio.c
arch/powerpc/include/asm/fsl_i2c.h
arch/powerpc/include/asm/mmu.h
arch/powerpc/include/asm/u-boot.h
arch/powerpc/lib/bootm.c
arch/powerpc/lib/extable.c
arch/powerpc/lib/interrupts.c
arch/powerpc/lib/kgdb.c
arch/powerpc/lib/spl.c
arch/powerpc/lib/stack.c
arch/powerpc/lib/time.c
arch/riscv/cpu/ax25/cache.c
arch/riscv/cpu/cpu.c
arch/riscv/cpu/generic/cpu.c
arch/riscv/include/asm/encoding.h
arch/riscv/lib/boot.c
arch/riscv/lib/bootm.c
arch/riscv/lib/fdt_fixup.c
arch/riscv/lib/image.c
arch/riscv/lib/reset.c
arch/riscv/lib/spl.c
arch/sandbox/cpu/cpu.c
arch/sandbox/cpu/spl.c
arch/sandbox/cpu/start.c
arch/sandbox/cpu/state.c
arch/sandbox/include/asm/eth.h
arch/sandbox/lib/bootm.c
arch/sandbox/lib/pci_io.c
arch/sh/config.mk
arch/sh/cpu/sh4/cache.c
arch/sh/cpu/sh4/cpu.c
arch/sh/lib/bootm.c
arch/sh/lib/time.c
arch/sh/lib/time_sh2.c
arch/sh/lib/zimageboot.c
arch/x86/cpu/acpi_gpe.c
arch/x86/cpu/apollolake/cpu_spl.c
arch/x86/cpu/apollolake/fsp_m.c
arch/x86/cpu/apollolake/fsp_s.c
arch/x86/cpu/apollolake/hostbridge.c
arch/x86/cpu/apollolake/lpc.c
arch/x86/cpu/apollolake/pmc.c
arch/x86/cpu/apollolake/punit.c
arch/x86/cpu/apollolake/spl.c
arch/x86/cpu/baytrail/acpi.c
arch/x86/cpu/baytrail/cpu.c
arch/x86/cpu/baytrail/fsp_configs.c
arch/x86/cpu/baytrail/valleyview.c
arch/x86/cpu/braswell/braswell.c
arch/x86/cpu/braswell/fsp_configs.c
arch/x86/cpu/broadwell/adsp.c
arch/x86/cpu/broadwell/cpu.c
arch/x86/cpu/broadwell/cpu_from_spl.c
arch/x86/cpu/broadwell/cpu_full.c
arch/x86/cpu/broadwell/iobp.c
arch/x86/cpu/broadwell/lpc.c
arch/x86/cpu/broadwell/me.c
arch/x86/cpu/broadwell/pch.c
arch/x86/cpu/broadwell/pinctrl_broadwell.c
arch/x86/cpu/broadwell/power_state.c
arch/x86/cpu/broadwell/refcode.c
arch/x86/cpu/broadwell/sata.c
arch/x86/cpu/broadwell/sdram.c
arch/x86/cpu/coreboot/coreboot.c
arch/x86/cpu/coreboot/timestamp.c
arch/x86/cpu/cpu.c
arch/x86/cpu/efi/app.c
arch/x86/cpu/efi/payload.c
arch/x86/cpu/i386/interrupt.c
arch/x86/cpu/intel_common/cpu.c
arch/x86/cpu/intel_common/cpu_from_spl.c
arch/x86/cpu/intel_common/itss.c
arch/x86/cpu/intel_common/lpc.c
arch/x86/cpu/intel_common/me_status.c
arch/x86/cpu/intel_common/microcode.c
arch/x86/cpu/intel_common/mrc.c
arch/x86/cpu/intel_common/p2sb.c
arch/x86/cpu/intel_common/report_platform.c
arch/x86/cpu/ioapic.c
arch/x86/cpu/irq.c
arch/x86/cpu/ivybridge/bd82x6x.c
arch/x86/cpu/ivybridge/cpu.c
arch/x86/cpu/ivybridge/early_me.c
arch/x86/cpu/ivybridge/fsp_configs.c
arch/x86/cpu/ivybridge/ivybridge.c
arch/x86/cpu/ivybridge/lpc.c
arch/x86/cpu/ivybridge/model_206ax.c
arch/x86/cpu/ivybridge/northbridge.c
arch/x86/cpu/ivybridge/sata.c
arch/x86/cpu/ivybridge/sdram.c
arch/x86/cpu/ivybridge/sdram_nop.c
arch/x86/cpu/lapic.c
arch/x86/cpu/mp_init.c
arch/x86/cpu/mtrr.c
arch/x86/cpu/pci.c
arch/x86/cpu/qemu/qemu.c
arch/x86/cpu/quark/dram.c
arch/x86/cpu/quark/mrc_util.h
arch/x86/cpu/quark/quark.c
arch/x86/cpu/queensbay/tnc.c
arch/x86/cpu/slimbootloader/serial.c
arch/x86/cpu/slimbootloader/slimbootloader.c
arch/x86/cpu/tangier/pinmux.c
arch/x86/cpu/tangier/sdram.c
arch/x86/cpu/tangier/tangier.c
arch/x86/cpu/turbo.c
arch/x86/cpu/x86_64/cpu.c
arch/x86/include/asm/arch-apollolake/lpc.h
arch/x86/include/asm/arch-apollolake/systemagent.h
arch/x86/include/asm/arch-braswell/fsp/fsp_vpd.h
arch/x86/include/asm/arch-broadwell/adsp.h
arch/x86/include/asm/arch-broadwell/serialio.h
arch/x86/include/asm/atomic.h
arch/x86/include/asm/fast_spi.h
arch/x86/include/asm/fsp/fsp_api.h
arch/x86/include/asm/fsp/fsp_fv.h
arch/x86/include/asm/intel_pinctrl.h
arch/x86/include/asm/mp.h
arch/x86/include/asm/msr-index.h
arch/x86/include/asm/mtrr.h
arch/x86/include/asm/sipi.h
arch/x86/lib/acpi.c
arch/x86/lib/acpi_table.c
arch/x86/lib/bios.c
arch/x86/lib/bios_interrupts.c
arch/x86/lib/bootm.c
arch/x86/lib/cmd_boot.c
arch/x86/lib/coreboot_table.c
arch/x86/lib/fsp/fsp_common.c
arch/x86/lib/fsp/fsp_dram.c
arch/x86/lib/fsp/fsp_graphics.c
arch/x86/lib/fsp/fsp_support.c
arch/x86/lib/fsp1/fsp_common.c
arch/x86/lib/fsp1/fsp_dram.c
arch/x86/lib/fsp1/fsp_support.c
arch/x86/lib/fsp2/fsp_dram.c
arch/x86/lib/fsp2/fsp_init.c
arch/x86/lib/fsp2/fsp_meminit.c
arch/x86/lib/fsp2/fsp_silicon_init.c
arch/x86/lib/fsp2/fsp_support.c
arch/x86/lib/i8259.c
arch/x86/lib/interrupts.c
arch/x86/lib/mpspec.c
arch/x86/lib/mrccache.c
arch/x86/lib/physmem.c
arch/x86/lib/pinctrl_ich6.c
arch/x86/lib/pirq_routing.c
arch/x86/lib/pmu.c
arch/x86/lib/relocate.c
arch/x86/lib/scu.c
arch/x86/lib/spl.c
arch/x86/lib/tpl.c
arch/x86/lib/zimage.c
arch/xtensa/cpu/cpu.c
arch/xtensa/cpu/exceptions.c
arch/xtensa/lib/bootm.c
arch/xtensa/lib/time.c
board/AndesTech/adp-ae3xx/adp-ae3xx.c
board/AndesTech/adp-ag101p/adp-ag101p.c
board/AndesTech/ax25-ae350/ax25-ae350.c
board/Arcturus/ucp1020/cmd_arc.c
board/Arcturus/ucp1020/ucp1020.c
board/BuR/brppt2/board.c
board/BuR/common/br_resetc.c
board/BuR/common/common.c
board/BuS/eb_cpu5282/eb_cpu5282.c
board/CZ.NIC/turris_mox/mox_sp.c
board/CZ.NIC/turris_mox/turris_mox.c
board/CZ.NIC/turris_omnia/turris_omnia.c
board/CarMediaLab/flea3/flea3.c
board/LaCie/net2big_v2/net2big_v2.c
board/LaCie/netspace_v2/netspace_v2.c
board/Marvell/aspenite/aspenite.c
board/Marvell/db-88f6281-bp/db-88f6281-bp.c
board/Marvell/db-88f6720/db-88f6720.c
board/Marvell/db-88f6820-amc/db-88f6820-amc.c
board/Marvell/db-88f6820-gp/db-88f6820-gp.c
board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c
board/Marvell/db-xc3-24g4xg/db-xc3-24g4xg.c
board/Marvell/dreamplug/dreamplug.c
board/Marvell/gplugd/gplugd.c
board/Marvell/guruplug/guruplug.c
board/Marvell/mvebu_armada-37xx/board.c
board/Marvell/mvebu_armada-8k/board.c
board/Marvell/openrd/openrd.c
board/Marvell/sheevaplug/sheevaplug.c
board/Seagate/dockstar/dockstar.c
board/Seagate/goflexhome/goflexhome.c
board/Seagate/nas220/nas220.c
board/Synology/ds109/ds109.c
board/Synology/ds414/cmd_syno.c
board/Synology/ds414/ds414.c
board/abilis/tb100/tb100.c
board/advantech/dms-ba16/dms-ba16.c
board/advantech/imx8qm_rom7720_a1/imx8qm_rom7720_a1.c
board/advantech/imx8qm_rom7720_a1/spl.c
board/advantech/som-db5800-som-6867/som-db5800-som-6867.c
board/alliedtelesis/SBx81LIFKW/sbx81lifkw.c
board/alliedtelesis/SBx81LIFXCAT/sbx81lifxcat.c
board/alliedtelesis/x530/x530.c
board/amazon/kc1/kc1.c
board/amlogic/p200/p200.c
board/amlogic/p201/p201.c
board/amlogic/p212/p212.c
board/amlogic/q200/q200.c
board/amlogic/s400/s400.c
board/amlogic/sei510/sei510.c
board/amlogic/sei610/sei610.c
board/amlogic/u200/u200.c
board/amlogic/w400/w400.c
board/aristainetos/aristainetos.c
board/armadeus/apf27/fpga.c
board/armltd/integrator/integrator.c
board/armltd/integrator/pci.c
board/armltd/integrator/timer.c
board/armltd/vexpress/vexpress_common.c
board/armltd/vexpress64/pcie.c
board/armltd/vexpress64/vexpress64.c
board/astro/mcf5373l/mcf5373l.c
board/atmel/at91rm9200ek/at91rm9200ek.c
board/atmel/at91sam9260ek/led.c
board/atmel/at91sam9263ek/at91sam9263ek.c
board/atmel/at91sam9n12ek/at91sam9n12ek.c
board/atmel/common/mac-spi-nor.c
board/atmel/common/mac_eeprom.c
board/atmel/common/video_display.c
board/avionic-design/common/tamonten-ng.c
board/bachmann/ot1200/ot1200.c
board/bachmann/ot1200/ot1200_spl.c
board/barco/platinum/platinum.c
board/barco/platinum/platinum_picon.c
board/barco/platinum/platinum_titanium.c
board/barco/platinum/spl_picon.c
board/barco/platinum/spl_titanium.c
board/barco/titanium/titanium.c
board/beacon/imx8mm/spl.c
board/beckhoff/mx53cx9020/mx53cx9020.c
board/birdland/bav335x/board.c
board/bluegiga/apx4devkit/apx4devkit.c
board/bluewater/gurnard/gurnard.c
board/bluewater/snapper9260/snapper9260.c
board/bosch/guardian/board.c
board/bosch/shc/board.c
board/boundary/nitrogen6x/nitrogen6x.c
board/broadcom/bcm23550_w1d/bcm23550_w1d.c
board/broadcom/bcm28155_ap/bcm28155_ap.c
board/broadcom/bcm963158/bcm963158.c
board/broadcom/bcm968360bg/bcm968360bg.c
board/broadcom/bcm968580xref/bcm968580xref.c
board/broadcom/bcm_ep/board.c
board/broadcom/bcmns2/northstar2.c
board/broadcom/bcmstb/bcmstb.c
board/bticino/mamoj/mamoj.c
board/bticino/mamoj/spl.c
board/buffalo/lsxl/lsxl.c
board/cavium/thunderx/atf.c
board/cavium/thunderx/thunderx.c
board/ccv/xpress/spl.c
board/ccv/xpress/xpress.c
board/cirrus/edb93xx/edb93xx.c
board/cloudengines/pogo_e02/pogo_e02.c
board/cobra5272/flash.c
board/compal/paz00/paz00.c
board/compulab/cl-som-imx7/cl-som-imx7.c
board/compulab/cm_fx6/cm_fx6.c
board/compulab/cm_fx6/spl.c
board/compulab/cm_t335/cm_t335.c
board/compulab/cm_t335/spl.c
board/compulab/cm_t35/cm_t35.c
board/compulab/cm_t43/cm_t43.c
board/compulab/cm_t54/cm_t54.c
board/compulab/cm_t54/mux.c
board/compulab/common/common.c
board/compulab/common/omap3_smc911x.c
board/congatec/cgtqmx6eval/cgtqmx6eval.c
board/corscience/tricorder/tricorder-eeprom.c
board/corscience/tricorder/tricorder.c
board/cortina/presidio-asic/presidio.c
board/creative/xfi3/xfi3.c
board/cssi/MCR3000/MCR3000.c
board/d-link/dns325/dns325.c
board/davinci/da8xxevm/da850evm.c
board/davinci/da8xxevm/omapl138_lcdk.c
board/dfi/dfi-bt700/dfi-bt700.c
board/dhelectronics/dh_imx6/dh_imx6.c
board/dhelectronics/dh_imx6/dh_imx6_spl.c
board/dhelectronics/dh_stm32mp1/board.c
board/ea/mx7ulp_com/mx7ulp_com.c
board/eets/pdu001/board.c
board/egnite/ethernut5/ethernut5_pwrman.c
board/el/el6x/el6x.c
board/elgin/elgin_rv1108/elgin_rv1108.c
board/embest/mx6boards/mx6boards.c
board/emulation/qemu-arm/qemu-arm.c
board/emulation/qemu-riscv/qemu-riscv.c
board/engicam/common/board.c
board/engicam/common/spl.c
board/esd/meesc/meesc.c
board/esd/vme8349/caddy.c
board/esd/vme8349/pci.c
board/esd/vme8349/vme8349.c
board/firefly/firefly-rk3288/firefly-rk3288.c
board/firefly/firefly-rk3308/roc_cc_rk3308.c
board/firefly/roc-pc-rk3399/roc-pc-rk3399.c
board/freescale/b4860qds/b4860qds.c
board/freescale/b4860qds/ddr.c
board/freescale/b4860qds/eth_b4860qds.c
board/freescale/bsc9131rdb/bsc9131rdb.c
board/freescale/bsc9131rdb/spl_minimal.c
board/freescale/bsc9132qds/bsc9132qds.c
board/freescale/bsc9132qds/spl_minimal.c
board/freescale/c29xpcie/c29xpcie.c
board/freescale/c29xpcie/cpld.c
board/freescale/common/arm_sleep.c
board/freescale/common/cmd_esbc_validate.c
board/freescale/common/diu_ch7301.c
board/freescale/common/fsl_chain_of_trust.c
board/freescale/common/fsl_validate.c
board/freescale/common/ics307_clk.c
board/freescale/common/idt8t49n222a_serdes_clk.c
board/freescale/common/mc34vr500.c
board/freescale/common/mpc85xx_sleep.c
board/freescale/common/ngpixis.c
board/freescale/common/ns_access.c
board/freescale/common/pixis.c
board/freescale/common/qixis.c
board/freescale/common/sgmii_riser.c
board/freescale/common/sys_eeprom.c
board/freescale/common/vid.c
board/freescale/common/vsc3316_3308.c
board/freescale/common/zm7300.c
board/freescale/corenet_ds/corenet_ds.c
board/freescale/corenet_ds/ddr.c
board/freescale/corenet_ds/eth_hydra.c
board/freescale/corenet_ds/eth_p4080.c
board/freescale/corenet_ds/eth_superhydra.c
board/freescale/imx8mm_evk/imx8mm_evk.c
board/freescale/imx8mm_evk/spl.c
board/freescale/imx8mn_evk/imx8mn_evk.c
board/freescale/imx8mn_evk/spl.c
board/freescale/imx8mp_evk/imx8mp_evk.c
board/freescale/imx8mp_evk/spl.c
board/freescale/imx8mq_evk/imx8mq_evk.c
board/freescale/imx8mq_evk/spl.c
board/freescale/imx8qm_mek/spl.c
board/freescale/imx8qxp_mek/imx8qxp_mek.c
board/freescale/imx8qxp_mek/spl.c
board/freescale/imxrt1020-evk/imxrt1020-evk.c
board/freescale/imxrt1050-evk/imxrt1050-evk.c
board/freescale/ls1012afrdm/eth.c
board/freescale/ls1012afrdm/ls1012afrdm.c
board/freescale/ls1012aqds/eth.c
board/freescale/ls1012aqds/ls1012aqds.c
board/freescale/ls1012ardb/eth.c
board/freescale/ls1012ardb/ls1012ardb.c
board/freescale/ls1021aiot/ls1021aiot.c
board/freescale/ls1021aqds/ddr.c
board/freescale/ls1021aqds/eth.c
board/freescale/ls1021aqds/ls1021aqds.c
board/freescale/ls1021atsn/ls1021atsn.c
board/freescale/ls1021atwr/ls1021atwr.c
board/freescale/ls1028a/ls1028a.c
board/freescale/ls1043aqds/ddr.c
board/freescale/ls1043aqds/eth.c
board/freescale/ls1043aqds/ls1043aqds.c
board/freescale/ls1043ardb/cpld.c
board/freescale/ls1043ardb/ddr.c
board/freescale/ls1043ardb/eth.c
board/freescale/ls1043ardb/ls1043ardb.c
board/freescale/ls1046afrwy/eth.c
board/freescale/ls1046afrwy/ls1046afrwy.c
board/freescale/ls1046aqds/ddr.c
board/freescale/ls1046aqds/eth.c
board/freescale/ls1046aqds/ls1046aqds.c
board/freescale/ls1046ardb/cpld.c
board/freescale/ls1046ardb/ddr.c
board/freescale/ls1046ardb/eth.c
board/freescale/ls1046ardb/ls1046ardb.c
board/freescale/ls1088a/ddr.c
board/freescale/ls1088a/eth_ls1088aqds.c
board/freescale/ls1088a/ls1088a.c
board/freescale/ls2080a/ddr.c
board/freescale/ls2080a/ls2080a.c
board/freescale/ls2080aqds/ddr.c
board/freescale/ls2080aqds/eth.c
board/freescale/ls2080aqds/ls2080aqds.c
board/freescale/ls2080ardb/ddr.c
board/freescale/ls2080ardb/ls2080ardb.c
board/freescale/lx2160a/eth_lx2160aqds.c
board/freescale/lx2160a/eth_lx2160ardb.c
board/freescale/lx2160a/lx2160a.c
board/freescale/m5208evbe/m5208evbe.c
board/freescale/m52277evb/m52277evb.c
board/freescale/m5249evb/m5249evb.c
board/freescale/m5253demo/flash.c
board/freescale/m5253demo/m5253demo.c
board/freescale/m5282evb/m5282evb.c
board/freescale/m53017evb/m53017evb.c
board/freescale/m5329evb/m5329evb.c
board/freescale/m5373evb/m5373evb.c
board/freescale/m54418twr/m54418twr.c
board/freescale/m54451evb/m54451evb.c
board/freescale/m54455evb/m54455evb.c
board/freescale/m547xevb/m547xevb.c
board/freescale/m548xevb/m548xevb.c
board/freescale/mpc8308rdb/mpc8308rdb.c
board/freescale/mpc8313erdb/sdram.c
board/freescale/mpc8315erdb/mpc8315erdb.c
board/freescale/mpc8315erdb/sdram.c
board/freescale/mpc8323erdb/mpc8323erdb.c
board/freescale/mpc832xemds/mpc832xemds.c
board/freescale/mpc832xemds/pci.c
board/freescale/mpc8349emds/mpc8349emds.c
board/freescale/mpc8349emds/pci.c
board/freescale/mpc8349itx/mpc8349itx.c
board/freescale/mpc8349itx/pci.c
board/freescale/mpc837xemds/mpc837xemds.c
board/freescale/mpc837xemds/pci.c
board/freescale/mpc837xerdb/mpc837xerdb.c
board/freescale/mpc837xerdb/pci.c
board/freescale/mpc8536ds/mpc8536ds.c
board/freescale/mpc8541cds/mpc8541cds.c
board/freescale/mpc8544ds/mpc8544ds.c
board/freescale/mpc8548cds/mpc8548cds.c
board/freescale/mpc8555cds/mpc8555cds.c
board/freescale/mpc8568mds/bcsr.c
board/freescale/mpc8568mds/mpc8568mds.c
board/freescale/mpc8569mds/bcsr.c
board/freescale/mpc8569mds/mpc8569mds.c
board/freescale/mpc8572ds/mpc8572ds.c
board/freescale/mpc8610hpcd/mpc8610hpcd.c
board/freescale/mpc8610hpcd/mpc8610hpcd_diu.c
board/freescale/mpc8641hpcn/mpc8641hpcn.c
board/freescale/mx23evk/mx23evk.c
board/freescale/mx25pdk/mx25pdk.c
board/freescale/mx28evk/mx28evk.c
board/freescale/mx31pdk/mx31pdk.c
board/freescale/mx35pdk/mx35pdk.c
board/freescale/mx51evk/mx51evk.c
board/freescale/mx53ard/mx53ard.c
board/freescale/mx53loco/mx53loco.c
board/freescale/mx6memcal/mx6memcal.c
board/freescale/mx6memcal/spl.c
board/freescale/mx6qarm2/mx6qarm2.c
board/freescale/mx6sabreauto/mx6sabreauto.c
board/freescale/mx6sabresd/mx6sabresd.c
board/freescale/mx6slevk/mx6slevk.c
board/freescale/mx6sxsabreauto/mx6sxsabreauto.c
board/freescale/mx6sxsabresd/mx6sxsabresd.c
board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
board/freescale/mx7dsabresd/mx7dsabresd.c
board/freescale/mx7ulp_evk/mx7ulp_evk.c
board/freescale/p1010rdb/p1010rdb.c
board/freescale/p1022ds/diu.c
board/freescale/p1022ds/p1022ds.c
board/freescale/p1023rdb/p1023rdb.c
board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
board/freescale/p1_twr/p1_twr.c
board/freescale/p2041rdb/cpld.c
board/freescale/p2041rdb/ddr.c
board/freescale/p2041rdb/eth.c
board/freescale/p2041rdb/p2041rdb.c
board/freescale/qemu-ppce500/qemu-ppce500.c
board/freescale/t102xqds/ddr.c
board/freescale/t102xqds/eth_t102xqds.c
board/freescale/t102xqds/t102xqds.c
board/freescale/t102xrdb/cpld.c
board/freescale/t102xrdb/ddr.c
board/freescale/t102xrdb/eth_t102xrdb.c
board/freescale/t102xrdb/t102xrdb.c
board/freescale/t1040qds/ddr.c
board/freescale/t1040qds/eth.c
board/freescale/t1040qds/t1040qds.c
board/freescale/t104xrdb/cpld.c
board/freescale/t104xrdb/ddr.c
board/freescale/t104xrdb/eth.c
board/freescale/t104xrdb/t104xrdb.c
board/freescale/t208xqds/ddr.c
board/freescale/t208xqds/eth_t208xqds.c
board/freescale/t208xqds/t208xqds.c
board/freescale/t208xrdb/cpld.c
board/freescale/t208xrdb/ddr.c
board/freescale/t208xrdb/eth_t208xrdb.c
board/freescale/t208xrdb/t208xrdb.c
board/freescale/t4qds/ddr.c
board/freescale/t4qds/eth.c
board/freescale/t4qds/t4240emu.c
board/freescale/t4qds/t4240qds.c
board/freescale/t4rdb/cpld.c
board/freescale/t4rdb/ddr.c
board/freescale/t4rdb/eth.c
board/freescale/t4rdb/t4240rdb.c
board/gardena/smart-gateway-mt7688/board.c
board/gateworks/gw_ventana/common.c
board/gateworks/gw_ventana/eeprom.c
board/gateworks/gw_ventana/gsc.c
board/gateworks/gw_ventana/gw_ventana.c
board/gateworks/gw_ventana/gw_ventana_spl.c
board/gdsys/a38x/controlcenterdc.c
board/gdsys/a38x/hre.c
board/gdsys/a38x/hydra.c
board/gdsys/a38x/ihs_phys.c
board/gdsys/common/cmd_ioloop.c
board/gdsys/common/ihs_mdio.c
board/gdsys/common/ioep-fpga.c
board/gdsys/common/mclink.c
board/gdsys/common/osd.c
board/gdsys/common/osd_cmd.c
board/gdsys/common/phy.c
board/gdsys/mpc8308/gazerbeam.c
board/gdsys/mpc8308/hrcon.c
board/gdsys/mpc8308/mpc8308.c
board/gdsys/mpc8308/strider.c
board/gdsys/p1022/controlcenterd-id.c
board/gdsys/p1022/controlcenterd.c
board/gdsys/p1022/ddr.c
board/gdsys/p1022/diu.c
board/ge/bx50v3/bx50v3.c
board/google/chromebook_coral/coral.c
board/google/gru/gru.c
board/google/imx8mq_phanbell/spl.c
board/google/veyron/veyron.c
board/grinn/chiliboard/board.c
board/grinn/liteboard/board.c
board/gumstix/duovero/duovero.c
board/gumstix/pepper/board.c
board/highbank/ahci.c
board/highbank/highbank.c
board/hisilicon/hikey/hikey.c
board/hisilicon/hikey960/hikey960.c
board/hisilicon/poplar/poplar.c
board/ids/ids8313/ids8313.c
board/imgtec/boston/checkboard.c
board/imgtec/ci20/ci20.c
board/imgtec/malta/malta.c
board/imgtec/xilfpga/xilfpga.c
board/intel/cougarcanyon2/cougarcanyon2.c
board/intel/crownbay/crownbay.c
board/intel/minnowmax/minnowmax.c
board/inversepath/usbarmory/usbarmory.c
board/iomega/iconnect/iconnect.c
board/isee/igep003x/board.c
board/isee/igep00x0/common.c
board/isee/igep00x0/igep00x0.c
board/k+p/kp_imx53/kp_id_rev.c
board/k+p/kp_imx6q_tpc/kp_imx6q_tpc_spl.c
board/keymile/common/common.c
board/keymile/common/qrio.c
board/keymile/km83xx/Kconfig
board/keymile/km83xx/MAINTAINERS
board/keymile/km83xx/km83xx.c
board/keymile/km83xx/km83xx_i2c.c
board/keymile/km_arm/fpga_config.c
board/keymile/kmp204x/ddr.c
board/keymile/kmp204x/eth.c
board/keymile/kmp204x/kmp204x.c
board/keymile/kmp204x/pci.c
board/kmc/kzm9g/kzm9g.c
board/kobol/helios4/helios4.c
board/kosagi/novena/novena.c
board/kosagi/novena/novena_spl.c
board/kosagi/novena/video.c
board/lego/ev3/legoev3.c
board/lg/sniper/sniper.c
board/liebherr/display5/display5.c
board/liebherr/display5/spl.c
board/liebherr/mccmon6/spl.c
board/liebherr/xea/xea.c
board/logicpd/am3517evm/am3517evm.c
board/logicpd/omap3som/omap3logic.c
board/logicpd/zoom1/zoom1.c
board/maxbcm/maxbcm.c
board/mediatek/mt7622/mt7622_rfb.c
board/mediatek/mt8512/mt8512.c
board/mediatek/mt8518/mt8518_ap1.c
board/menlo/m53menlo/m53menlo.c
board/microchip/mpfs_icicle/mpfs_icicle.c
board/microchip/pic32mzda/pic32mzda.c
board/mikrotik/crs305-1g-4s/crs305-1g-4s.c
board/mpc8308_p1m/mpc8308_p1m.c
board/mscc/common/spi.c
board/mscc/jr2/jr2.c
board/mscc/luton/luton.c
board/mscc/ocelot/ocelot.c
board/mscc/serval/serval.c
board/mscc/servalt/servalt.c
board/netgear/dgnd3700v2/dgnd3700v2.c
board/nokia/rx51/rx51.c
board/novtech/meerkat96/meerkat96.c
board/nvidia/cardhu/cardhu.c
board/nvidia/dalmore/dalmore.c
board/nvidia/e2220-1170/e2220-1170.c
board/nvidia/jetson-tk1/jetson-tk1.c
board/nvidia/nyan-big/nyan-big.c
board/nvidia/p2371-0000/p2371-0000.c
board/nvidia/p2371-2180/p2371-2180.c
board/nvidia/p2571/p2571.c
board/nvidia/p2771-0000/p2771-0000.c
board/nvidia/p3450-0000/p3450-0000.c
board/nvidia/venice2/as3722_init.c
board/olimex/mx23_olinuxino/mx23_olinuxino.c
board/overo/overo.c
board/overo/spl.c
board/pandora/pandora.c
board/phytec/pcl063/spl.c
board/phytec/pcm051/board.c
board/phytec/pcm052/pcm052.c
board/phytec/pcm058/pcm058.c
board/phytec/pfla02/pfla02.c
board/phytec/phycore_rk3288/phycore-rk3288.c
board/phytium/durian/durian.c
board/pine64/rockpro64_rk3399/rockpro64-rk3399.c
board/ppcag/bg0900/bg0900.c
board/qca/ap121/ap121.c
board/qca/ap143/ap143.c
board/qca/ap152/ap152.c
board/qemu-mips/qemu-mips.c
board/qualcomm/dragonboard410c/dragonboard410c.c
board/qualcomm/dragonboard820c/dragonboard820c.c
board/raidsonic/ib62x0/ib62x0.c
board/renesas/MigoR/migo_r.c
board/renesas/alt/alt.c
board/renesas/alt/alt_spl.c
board/renesas/blanche/blanche.c
board/renesas/condor/condor.c
board/renesas/draak/draak.c
board/renesas/eagle/eagle.c
board/renesas/ebisu/ebisu.c
board/renesas/gose/gose.c
board/renesas/gose/gose_spl.c
board/renesas/grpeach/grpeach.c
board/renesas/koelsch/koelsch.c
board/renesas/koelsch/koelsch_spl.c
board/renesas/lager/lager.c
board/renesas/lager/lager_spl.c
board/renesas/porter/porter.c
board/renesas/porter/porter_spl.c
board/renesas/r2dplus/r2dplus.c
board/renesas/r7780mp/r7780mp.c
board/renesas/rcar-common/common.c
board/renesas/rcar-common/gen3-spl.c
board/renesas/salvator-x/salvator-x.c
board/renesas/sh7752evb/sh7752evb.c
board/renesas/sh7753evb/sh7753evb.c
board/renesas/sh7757lcr/sh7757lcr.c
board/renesas/sh7763rdp/sh7763rdp.c
board/renesas/silk/silk.c
board/renesas/silk/silk_spl.c
board/renesas/stout/cpld.c
board/renesas/stout/stout.c
board/renesas/stout/stout_spl.c
board/renesas/ulcb/cpld.c
board/renesas/ulcb/ulcb.c
board/rockchip/evb_rk3399/evb-rk3399.c
board/rockchip/evb_rv1108/evb_rv1108.c
board/rockchip/kylin_rk3036/kylin_rk3036.c
board/rockchip/tinker_rk3288/tinker-rk3288.c
board/samsung/arndale/arndale.c
board/samsung/common/board.c
board/samsung/common/exynos5-dt-types.c
board/samsung/common/exynos5-dt.c
board/samsung/common/misc.c
board/samsung/goni/goni.c
board/samsung/odroid/odroid.c
board/samsung/smdkc100/smdkc100.c
board/samsung/smdkv310/smdkv310.c
board/samsung/trats/trats.c
board/samsung/trats2/trats2.c
board/samsung/universal_c210/universal.c
board/sandisk/sansa_fuze_plus/sfp.c
board/sbc8349/pci.c
board/sbc8349/sbc8349.c
board/sbc8548/ddr.c
board/sbc8548/sbc8548.c
board/sbc8641d/sbc8641d.c
board/schulercontrol/sc_sps_1/sc_sps_1.c
board/seco/mx6quq7/mx6quq7.c
board/seeed/linkit-smart-7688/board.c
board/siemens/capricorn/board.c
board/siemens/capricorn/spl.c
board/siemens/common/board.c
board/siemens/common/factoryset.c
board/siemens/corvus/board.c
board/siemens/draco/board.c
board/siemens/pxm2/board.c
board/siemens/rut/board.c
board/siemens/smartweb/smartweb.c
board/siemens/taurus/taurus.c
board/sifive/fu540/fu540.c
board/silica/pengwyn/board.c
board/sks-kinkel/sksimx6/sksimx6.c
board/socrates/sdram.c
board/socrates/socrates.c
board/softing/vining_2000/vining_2000.c
board/softing/vining_fpga/socfpga.c
board/solidrun/clearfog/clearfog.c
board/solidrun/mx6cuboxi/mx6cuboxi.c
board/spear/spear300/spear300.c
board/spear/spear310/spear310.c
board/spear/spear320/spear320.c
board/spear/spear600/spear600.c
board/spear/x600/fpga.c
board/spear/x600/x600.c
board/sr1500/socfpga.c
board/st/common/cmd_stboard.c
board/st/common/stm32mp_dfu.c
board/st/stih410-b2260/board.c
board/st/stm32f429-discovery/stm32f429-discovery.c
board/st/stm32f429-evaluation/stm32f429-evaluation.c
board/st/stm32f469-discovery/stm32f469-discovery.c
board/st/stm32f746-disco/stm32f746-disco.c
board/st/stm32h743-disco/stm32h743-disco.c
board/st/stm32h743-eval/stm32h743-eval.c
board/st/stm32mp1/board.c
board/st/stm32mp1/stm32mp1.c
board/st/stv0991/stv0991.c
board/ste/stemmy/stemmy.c
board/sunxi/board.c
board/sunxi/dram_sun4i_auto.c
board/sunxi/dram_sun5i_auto.c
board/synopsys/axs10x/axs10x.c
board/synopsys/emsdp/emsdp.c
board/synopsys/hsdk/clk-lib.c
board/synopsys/hsdk/clk-lib.h
board/synopsys/hsdk/env-lib.c
board/synopsys/hsdk/hsdk.c
board/synopsys/iot_devkit/iot_devkit.c
board/synopsys/nsim/nsim.c
board/syteco/zmx25/zmx25.c
board/tbs/tbs2910/tbs2910.c
board/tcl/sl50/board.c
board/technexion/pico-imx6/pico-imx6.c
board/technexion/pico-imx6/spl.c
board/technexion/pico-imx6ul/pico-imx6ul.c
board/technexion/pico-imx7d/pico-imx7d.c
board/technexion/pico-imx7d/spl.c
board/technexion/pico-imx8mq/pico-imx8mq.c
board/technexion/pico-imx8mq/spl.c
board/technexion/tao3530/tao3530.c
board/technologic/ts4600/ts4600.c
board/technologic/ts4800/ts4800.c
board/theadorable/fpga.c
board/theadorable/theadorable.c
board/theobroma-systems/puma_rk3399/fit_spl_atf.sh
board/theobroma-systems/puma_rk3399/puma-rk3399.c
board/ti/am335x/board.c
board/ti/am3517crane/am3517crane.c
board/ti/am43xx/board.c
board/ti/am57xx/board.c
board/ti/am65x/evm.c
board/ti/beagle/beagle.c
board/ti/common/board_detect.c
board/ti/common/board_detect.h
board/ti/dra7xx/evm.c
board/ti/evm/evm.c
board/ti/j721e/evm.c
board/ti/ks2_evm/board.c
board/ti/ks2_evm/board_k2e.c
board/ti/ks2_evm/board_k2g.c
board/ti/ks2_evm/board_k2hk.c
board/ti/ks2_evm/board_k2l.c
board/ti/omap5_uevm/evm.c
board/ti/panda/panda.c
board/ti/sdp4430/cmd_bat.c
board/ti/sdp4430/sdp.c
board/ti/ti814x/evm.c
board/ti/ti816x/evm.c
board/timll/devkit3250/devkit3250.c
board/timll/devkit8000/devkit8000.c
board/toradex/apalis-tk1/apalis-tk1.c
board/toradex/apalis-tk1/as3722_init.c
board/toradex/apalis_imx6/apalis_imx6.c
board/toradex/apalis_imx6/do_fuse.c
board/toradex/apalis_imx6/pf0100.c
board/toradex/apalis_t30/apalis_t30.c
board/toradex/colibri-imx6ull/colibri-imx6ull.c
board/toradex/colibri_imx6/colibri_imx6.c
board/toradex/colibri_imx6/do_fuse.c
board/toradex/colibri_imx6/pf0100.c
board/toradex/colibri_imx7/colibri_imx7.c
board/toradex/colibri_pxa270/colibri_pxa270.c
board/toradex/colibri_t20/colibri_t20.c
board/toradex/colibri_t30/colibri_t30.c
board/toradex/common/tdx-cfg-block.c
board/toradex/common/tdx-common.c
board/toradex/verdin-imx8mm/spl.c
board/toradex/verdin-imx8mm/verdin-imx8mm.c
board/tplink/wdr4300/wdr4300.c
board/tqc/tqm834x/pci.c
board/tqc/tqm834x/tqm834x.c
board/tqc/tqma6/tqma6.c
board/tqc/tqma6/tqma6_mba6.c
board/tqc/tqma6/tqma6_wru4.c
board/udoo/neo/neo.c
board/udoo/udoo.c
board/udoo/udoo_spl.c
board/vamrs/rock960_rk3399/rock960-rk3399.c
board/variscite/dart_6ul/dart_6ul.c
board/variscite/dart_6ul/spl.c
board/varisys/common/sys_eeprom.c
board/varisys/cyrus/cyrus.c
board/varisys/cyrus/ddr.c
board/varisys/cyrus/eth.c
board/ve8313/ve8313.c
board/vscom/baltos/board.c
board/wandboard/spl.c
board/wandboard/wandboard.c
board/warp7/warp7.c
board/work-microwave/work_92105/work_92105.c
board/work-microwave/work_92105/work_92105_display.c
board/xes/common/board.c
board/xes/xpedite517x/ddr.c
board/xes/xpedite537x/ddr.c
board/xilinx/common/board.c
board/xilinx/microblaze-generic/microblaze-generic.c
board/xilinx/versal/board.c
board/xilinx/zynq/bootimg.c
board/xilinx/zynq/cmds.c
board/xilinx/zynqmp/cmds.c
board/xilinx/zynqmp/tap_delays.c
board/xilinx/zynqmp/xil_io.h
board/xilinx/zynqmp/zynqmp.c
board/xilinx/zynqmp_r5/board.c
board/zyxel/nsa310s/nsa310s.c
cmd/Kconfig
cmd/ab_select.c
cmd/abootimg.c
cmd/acpi.c
cmd/adc.c
cmd/adtimg.c
cmd/aes.c
cmd/arm/exception.c
cmd/arm/exception64.c
cmd/armflash.c
cmd/avb.c
cmd/axi.c
cmd/bcb.c
cmd/bdinfo.c
cmd/bedbug.c
cmd/bind.c
cmd/binop.c
cmd/blk_common.c
cmd/blkcache.c
cmd/blob.c
cmd/bmp.c
cmd/boot.c
cmd/bootcount.c
cmd/bootefi.c
cmd/booti.c
cmd/bootm.c
cmd/bootmenu.c
cmd/bootstage.c
cmd/bootz.c
cmd/btrfs.c
cmd/cache.c
cmd/cbfs.c
cmd/clk.c
cmd/cls.c
cmd/config.c
cmd/conitrace.c
cmd/console.c
cmd/cpu.c
cmd/cramfs.c
cmd/cros_ec.c
cmd/dataflash_mmc_mux.c
cmd/date.c
cmd/demo.c
cmd/dfu.c
cmd/diag.c
cmd/disk.c
cmd/dm.c
cmd/echo.c
cmd/eeprom.c
cmd/efi.c
cmd/efidebug.c
cmd/elf.c
cmd/ethsw.c
cmd/exit.c
cmd/ext2.c
cmd/ext4.c
cmd/fastboot.c
cmd/fat.c
cmd/fdt.c
cmd/fitupd.c
cmd/flash.c
cmd/fpga.c
cmd/fpgad.c
cmd/fs.c
cmd/fs_uuid.c
cmd/fuse.c
cmd/gettime.c
cmd/gpio.c
cmd/gpt.c
cmd/hash.c
cmd/help.c
cmd/host.c
cmd/i2c.c
cmd/ide.c
cmd/ini.c
cmd/io.c
cmd/iotrace.c
cmd/irq.c
cmd/itest.c
cmd/jffs2.c
cmd/led.c
cmd/legacy_led.c
cmd/license.c
cmd/load.c
cmd/log.c
cmd/lzmadec.c
cmd/mac.c
cmd/md5sum.c
cmd/mdio.c
cmd/mem.c
cmd/mfsl.c
cmd/mii.c
cmd/misc.c
cmd/mmc.c
cmd/mp.c
cmd/mtd.c
cmd/mtdparts.c
cmd/mvebu/bubt.c
cmd/nand.c
cmd/net.c
cmd/nvedit.c
cmd/nvedit_efi.c
cmd/nvme.c
cmd/onenand.c
cmd/osd.c
cmd/part.c
cmd/pcap.c
cmd/pci.c
cmd/pinmux.c
cmd/pmc.c
cmd/pmic.c
cmd/pxe.c
cmd/pxe_utils.c
cmd/pxe_utils.h
cmd/qfw.c
cmd/read.c
cmd/reginfo.c
cmd/regulator.c
cmd/reiser.c
cmd/remoteproc.c
cmd/riscv/exception.c
cmd/rng.c
cmd/rockusb.c
cmd/sata.c
cmd/sb.c
cmd/scsi.c
cmd/setexpr.c
cmd/sf.c
cmd/sha1sum.c
cmd/smccc.c
cmd/sound.c
cmd/source.c
cmd/spi.c
cmd/spl.c
cmd/strings.c
cmd/sysboot.c
cmd/terminal.c
cmd/test.c
cmd/thordown.c
cmd/ti/ddr3.c
cmd/time.c
cmd/tlv_eeprom.c
cmd/tpm-common.c
cmd/tpm-user-utils.h
cmd/tpm-v1.c
cmd/tpm-v2.c
cmd/tpm_test.c
cmd/trace.c
cmd/tsi148.c
cmd/ubi.c
cmd/ubifs.c
cmd/ufs.c
cmd/universe.c
cmd/unlz4.c
cmd/unzip.c
cmd/usb.c
cmd/usb_gadget_sdp.c
cmd/usb_mass_storage.c
cmd/version.c
cmd/virtio.c
cmd/w1.c
cmd/wdt.c
cmd/wol.c
cmd/x86/exception.c
cmd/x86/fsp.c
cmd/x86/hob.c
cmd/x86/mtrr.c
cmd/ximg.c
cmd/yaffs2.c
cmd/zfs.c
cmd/zip.c
common/android_ab.c
common/autoboot.c
common/bedbug.c
common/board_f.c
common/board_info.c
common/board_r.c
common/boot_fit.c
common/bootm.c
common/bootm_os.c
common/bootstage.c
common/bouncebuf.c
common/cli.c
common/cli_hush.c
common/cli_readline.c
common/cli_simple.c
common/command.c
common/common_fit.c
common/console.c
common/cros_ec.c
common/dfu.c
common/dlmalloc.c
common/edid.c
common/exports.c
common/fdt_region.c
common/fdt_support.c
common/flash.c
common/hash.c
common/hwconfig.c
common/image-cipher.c
common/image-fdt.c
common/image-fit-sig.c
common/image-fit.c
common/image-sig.c
common/image.c
common/init/board_init.c
common/iotrace.c
common/kgdb.c
common/kgdb_stubs.c
common/lcd.c
common/lcd_console.c
common/log_syslog.c
common/main.c
common/malloc_simple.c
common/miiphyutil.c
common/spl/spl.c
common/spl/spl_atf.c
common/spl/spl_ext.c
common/spl/spl_fat.c
common/spl/spl_fit.c
common/spl/spl_legacy.c
common/spl/spl_mmc.c
common/spl/spl_nand.c
common/spl/spl_net.c
common/spl/spl_nor.c
common/spl/spl_onenand.c
common/spl/spl_opensbi.c
common/spl/spl_ram.c
common/spl/spl_sdp.c
common/spl/spl_spi.c
common/spl/spl_ubi.c
common/spl/spl_usb.c
common/spl/spl_xip.c
common/spl/spl_ymodem.c
common/splash_source.c
common/stdio.c
common/usb.c
common/usb_hub.c
common/usb_kbd.c
common/usb_storage.c
configs/at91sam9n12ek_mmc_defconfig
configs/at91sam9n12ek_nandflash_defconfig
configs/at91sam9n12ek_spiflash_defconfig
configs/bcm7260_defconfig
configs/bcm7445_defconfig
configs/chromebit_mickey_defconfig
configs/chromebook_jerry_defconfig
configs/chromebook_minnie_defconfig
configs/chromebook_speedy_defconfig
configs/gurnard_defconfig
configs/imx8mq_evk_defconfig
configs/imx8mq_phanbell_defconfig
configs/ls1012a2g5rdb_qspi_defconfig
configs/ls1012a2g5rdb_tfa_defconfig
configs/ls1012afrdm_qspi_defconfig
configs/ls1012afrdm_tfa_defconfig
configs/ls1012afrwy_qspi_SECURE_BOOT_defconfig
configs/ls1012afrwy_qspi_defconfig
configs/ls1012afrwy_tfa_SECURE_BOOT_defconfig
configs/ls1012afrwy_tfa_defconfig
configs/ls1012aqds_qspi_defconfig
configs/ls1012aqds_tfa_SECURE_BOOT_defconfig
configs/ls1012aqds_tfa_defconfig
configs/ls1012ardb_qspi_SECURE_BOOT_defconfig
configs/ls1012ardb_qspi_defconfig
configs/ls1012ardb_tfa_SECURE_BOOT_defconfig
configs/ls1012ardb_tfa_defconfig
configs/ls1021aiot_qspi_defconfig
configs/ls1021aiot_sdcard_defconfig
configs/ls1043aqds_qspi_defconfig
configs/ls1043aqds_sdcard_qspi_defconfig
configs/ls1043aqds_tfa_SECURE_BOOT_defconfig
configs/ls1043aqds_tfa_defconfig
configs/ls1046afrwy_tfa_defconfig
configs/ls1046aqds_qspi_defconfig
configs/ls1046aqds_sdcard_qspi_defconfig
configs/ls1046aqds_tfa_SECURE_BOOT_defconfig
configs/ls1046aqds_tfa_defconfig
configs/ls1046ardb_qspi_SECURE_BOOT_defconfig
configs/ls1046ardb_qspi_defconfig
configs/ls1046ardb_tfa_SECURE_BOOT_defconfig
configs/ls1046ardb_tfa_defconfig
configs/ls1088aqds_tfa_defconfig
configs/ls1088ardb_tfa_defconfig
configs/ls2088aqds_tfa_defconfig
configs/ls2088ardb_qspi_defconfig
configs/ls2088ardb_tfa_defconfig
configs/lx2160aqds_tfa_SECURE_BOOT_defconfig
configs/lx2160aqds_tfa_defconfig
configs/nanopc-t4-rk3399_defconfig
configs/pico-imx8mq_defconfig
configs/r8a77970_eagle_defconfig
configs/r8a77980_condor_defconfig
configs/r8a77990_ebisu_defconfig
configs/r8a77995_draak_defconfig
configs/rcar3_salvator-x_defconfig
configs/rcar3_ulcb_defconfig
configs/roc-pc-mezzanine-rk3399_defconfig
configs/rock64-rk3328_defconfig
configs/rock960-rk3399_defconfig
configs/rockpro64-rk3399_defconfig
configs/s32v234evb_defconfig
configs/suvd3_defconfig [deleted file]
configs/uniphier_ld4_sld8_defconfig
configs/uniphier_v7_defconfig
configs/uniphier_v8_defconfig
disk/part.c
disk/part_amiga.c
disk/part_dos.c
disk/part_efi.c
disk/part_iso.c
disk/part_mac.c
doc/README.commands
doc/README.dfu
doc/README.standalone
doc/api/dfu.rst [new file with mode: 0644]
doc/api/index.rst
drivers/adc/adc-uclass.c
drivers/adc/meson-saradc.c
drivers/adc/rockchip-saradc.c
drivers/adc/stm32-adc-core.c
drivers/adc/stm32-adc.c
drivers/ata/ahci.c
drivers/ata/ahci_mvebu.c
drivers/ata/ahci_sunxi.c
drivers/ata/dwc_ahsata.c
drivers/ata/fsl_sata.c
drivers/ata/mvsata_ide.c
drivers/ata/sata.c
drivers/ata/sata_ceva.c
drivers/ata/sata_mv.c
drivers/ata/sata_sandbox.c
drivers/ata/sata_sil.c
drivers/ata/sata_sil3114.c
drivers/axi/axi-emul-uclass.c
drivers/axi/ihs_axi.c
drivers/axi/sandbox_store.c
drivers/bios_emulator/atibios.c
drivers/block/blk-uclass.c
drivers/block/blk_legacy.c
drivers/block/blkcache.c
drivers/block/ide.c
drivers/board/gazerbeam.c
drivers/bootcount/bootcount-uclass.c
drivers/bootcount/bootcount.c
drivers/bootcount/bootcount_ram.c
drivers/bootcount/i2c-eeprom.c
drivers/bootcount/rtc.c
drivers/cache/cache-ncore.c
drivers/cache/cache-v5l2.c
drivers/clk/altera/clk-agilex.c
drivers/clk/altera/clk-agilex.h
drivers/clk/altera/clk-arria10.c
drivers/clk/aspeed/clk_ast2500.c
drivers/clk/at91/clk-generated.c
drivers/clk/at91/clk-system.c
drivers/clk/at91/clk-usb.c
drivers/clk/at91/pmc.c
drivers/clk/clk-cdce9xx.c
drivers/clk/clk-divider.c
drivers/clk/clk-gate.c
drivers/clk/clk-hsdk-cgu.c
drivers/clk/clk-mux.c
drivers/clk/clk-ti-sci.c
drivers/clk/clk-uclass.c
drivers/clk/clk.c
drivers/clk/clk_bcm6345.c
drivers/clk/clk_boston.c
drivers/clk/clk_pic32.c
drivers/clk/clk_sandbox_ccf.c
drivers/clk/clk_stm32f.c
drivers/clk/clk_stm32h7.c
drivers/clk/clk_stm32mp1.c
drivers/clk/clk_versal.c
drivers/clk/clk_vexpress_osc.c
drivers/clk/clk_zynq.c
drivers/clk/clk_zynqmp.c
drivers/clk/ics8n3qv01.c
drivers/clk/imx/clk-composite-8m.c
drivers/clk/imx/clk-imx6q.c
drivers/clk/imx/clk-imx8.c
drivers/clk/imx/clk-imx8mm.c
drivers/clk/imx/clk-imx8mn.c
drivers/clk/imx/clk-imx8mp.c
drivers/clk/imx/clk-imx8qm.c
drivers/clk/imx/clk-imx8qxp.c
drivers/clk/imx/clk-imxrt1050.c
drivers/clk/imx/clk-pll14xx.c
drivers/clk/mediatek/clk-mt7622.c
drivers/clk/mediatek/clk-mt7623.c
drivers/clk/mediatek/clk-mt7629.c
drivers/clk/mediatek/clk-mt8512.c
drivers/clk/mediatek/clk-mt8516.c
drivers/clk/mediatek/clk-mt8518.c
drivers/clk/mediatek/clk-mtk.c
drivers/clk/mediatek/clk-mtk.h
drivers/clk/meson/axg.c
drivers/clk/meson/clk_meson.h
drivers/clk/meson/g12a.c
drivers/clk/meson/gxbb.c
drivers/clk/mpc83xx_clk.c
drivers/clk/mpc83xx_clk.h
drivers/clk/mvebu/armada-37xx-periph.c
drivers/clk/owl/clk_owl.c
drivers/clk/owl/clk_owl.h
drivers/clk/renesas/clk-rcar-gen2.c
drivers/clk/renesas/clk-rcar-gen3.c
drivers/clk/renesas/r8a7790-cpg-mssr.c
drivers/clk/renesas/r8a7791-cpg-mssr.c
drivers/clk/renesas/r8a7792-cpg-mssr.c
drivers/clk/renesas/r8a7794-cpg-mssr.c
drivers/clk/renesas/r8a7795-cpg-mssr.c
drivers/clk/renesas/r8a7796-cpg-mssr.c
drivers/clk/renesas/r8a77965-cpg-mssr.c
drivers/clk/renesas/r8a77970-cpg-mssr.c
drivers/clk/renesas/r8a77980-cpg-mssr.c
drivers/clk/renesas/r8a77990-cpg-mssr.c
drivers/clk/renesas/r8a77995-cpg-mssr.c
drivers/clk/renesas/renesas-cpg-mssr.c
drivers/clk/renesas/renesas-cpg-mssr.h
drivers/clk/rockchip/clk_pll.c
drivers/clk/rockchip/clk_px30.c
drivers/clk/rockchip/clk_rk3036.c
drivers/clk/rockchip/clk_rk3128.c
drivers/clk/rockchip/clk_rk3188.c
drivers/clk/rockchip/clk_rk322x.c
drivers/clk/rockchip/clk_rk3288.c
drivers/clk/rockchip/clk_rk3308.c
drivers/clk/rockchip/clk_rk3328.c
drivers/clk/rockchip/clk_rk3368.c
drivers/clk/rockchip/clk_rk3399.c
drivers/clk/rockchip/clk_rv1108.c
drivers/clk/sifive/fu540-prci.c
drivers/clk/sunxi/clk_a10.c
drivers/clk/sunxi/clk_a10s.c
drivers/clk/sunxi/clk_a23.c
drivers/clk/sunxi/clk_a31.c
drivers/clk/sunxi/clk_a64.c
drivers/clk/sunxi/clk_a80.c
drivers/clk/sunxi/clk_a83t.c
drivers/clk/sunxi/clk_h3.c
drivers/clk/sunxi/clk_h6.c
drivers/clk/sunxi/clk_r40.c
drivers/clk/sunxi/clk_sunxi.c
drivers/clk/sunxi/clk_v3s.c
drivers/clk/tegra/tegra-car-clk.c
drivers/clk/tegra/tegra186-clk.c
drivers/clk/uniphier/clk-uniphier-core.c
drivers/core/acpi.c
drivers/core/device.c
drivers/core/devres.c
drivers/core/fdtaddr.c
drivers/core/lists.c
drivers/core/of_access.c
drivers/core/of_addr.c
drivers/core/of_extra.c
drivers/core/ofnode.c
drivers/core/regmap.c
drivers/core/root.c
drivers/core/syscon-uclass.c
drivers/core/uclass.c
drivers/cpu/bmips_cpu.c
drivers/cpu/cpu-uclass.c
drivers/cpu/imx8_cpu.c
drivers/cpu/mpc83xx_cpu.c
drivers/cpu/riscv_cpu.c
drivers/crypto/ace_sha.c
drivers/crypto/fsl/error.c
drivers/crypto/fsl/fsl_blob.c
drivers/crypto/fsl/fsl_hash.c
drivers/crypto/fsl/fsl_rsa.c
drivers/crypto/fsl/jobdesc.c
drivers/crypto/fsl/jr.c
drivers/crypto/rsa_mod_exp/mod_exp_sw.c
drivers/ddr/altera/sdram_agilex.c
drivers/ddr/altera/sdram_arria10.c
drivers/ddr/altera/sdram_gen5.c
drivers/ddr/altera/sdram_s10.c
drivers/ddr/altera/sdram_soc64.c
drivers/ddr/altera/sequencer.c
drivers/ddr/fsl/arm_ddr_gen3.c
drivers/ddr/fsl/ctrl_regs.c
drivers/ddr/fsl/ddr1_dimm_params.c
drivers/ddr/fsl/ddr2_dimm_params.c
drivers/ddr/fsl/ddr3_dimm_params.c
drivers/ddr/fsl/ddr4_dimm_params.c
drivers/ddr/fsl/fsl_ddr_gen4.c
drivers/ddr/fsl/fsl_mmdc.c
drivers/ddr/fsl/interactive.c
drivers/ddr/fsl/lc_common_dimm_params.c
drivers/ddr/fsl/main.c
drivers/ddr/fsl/mpc85xx_ddr_gen1.c
drivers/ddr/fsl/mpc85xx_ddr_gen2.c
drivers/ddr/fsl/mpc85xx_ddr_gen3.c
drivers/ddr/fsl/mpc86xx_ddr.c
drivers/ddr/fsl/options.c
drivers/ddr/fsl/util.c
drivers/ddr/imx/imx8m/ddr_init.c
drivers/ddr/imx/imx8m/ddrphy_train.c
drivers/ddr/imx/imx8m/ddrphy_utils.c
drivers/ddr/imx/imx8m/helper.c
drivers/ddr/marvell/a38x/ddr3_debug.c
drivers/ddr/marvell/a38x/ddr3_training.c
drivers/ddr/marvell/a38x/ddr3_training_ip_engine.c
drivers/ddr/marvell/a38x/ddr3_training_leveling.c
drivers/ddr/marvell/a38x/mv_ddr_plat.c
drivers/ddr/marvell/axp/ddr3_dfs.c
drivers/ddr/marvell/axp/ddr3_dqs.c
drivers/ddr/marvell/axp/ddr3_hw_training.c
drivers/ddr/marvell/axp/ddr3_init.c
drivers/ddr/marvell/axp/ddr3_pbs.c
drivers/ddr/marvell/axp/ddr3_read_leveling.c
drivers/ddr/marvell/axp/ddr3_write_leveling.c
drivers/ddr/marvell/axp/xor.c
drivers/demo/demo-shape.c
drivers/demo/demo-uclass.c
drivers/dfu/dfu.c
drivers/dfu/dfu_mmc.c
drivers/dfu/dfu_nand.c
drivers/dfu/dfu_sf.c
drivers/dfu/dfu_tftp.c
drivers/dfu/dfu_virt.c
drivers/dma/apbh_dma.c
drivers/dma/bcm6348-iudma.c
drivers/dma/dma-uclass.c
drivers/dma/keystone_nav.c
drivers/dma/lpc32xx_dma.c
drivers/dma/sandbox-dma-test.c
drivers/dma/ti-edma3.c
drivers/dma/ti/k3-udma-hwdef.h
drivers/dma/ti/k3-udma.c
drivers/fastboot/fb_command.c
drivers/fastboot/fb_getvar.c
drivers/fastboot/fb_mmc.c
drivers/fastboot/fb_nand.c
drivers/firmware/firmware-zynqmp.c
drivers/firmware/psci.c
drivers/firmware/ti_sci.c
drivers/firmware/ti_sci.h
drivers/fpga/ACEX1K.c
drivers/fpga/altera.c
drivers/fpga/cyclon2.c
drivers/fpga/fpga.c
drivers/fpga/ivm_core.c
drivers/fpga/lattice.c
drivers/fpga/socfpga_arria10.c
drivers/fpga/stratix10.c
drivers/fpga/stratixII.c
drivers/fpga/stratixv.c
drivers/fpga/versalpl.c
drivers/fpga/virtex2.c
drivers/fpga/xilinx.c
drivers/fpga/zynqmppl.c
drivers/fpga/zynqpl.c
drivers/gpio/adi_gpio2.c
drivers/gpio/atmel_pio4.c
drivers/gpio/bcm6345_gpio.c
drivers/gpio/cortina_gpio.c
drivers/gpio/dwapb_gpio.c
drivers/gpio/gpio-rcar.c
drivers/gpio/gpio-rza1.c
drivers/gpio/gpio-uclass.c
drivers/gpio/hi6220_gpio.c
drivers/gpio/hsdk-creg-gpio.c
drivers/gpio/intel_broadwell_gpio.c
drivers/gpio/intel_gpio.c
drivers/gpio/intel_ich6_gpio.c
drivers/gpio/mscc_sgpio.c
drivers/gpio/mt7621_gpio.c
drivers/gpio/mvebu_gpio.c
drivers/gpio/mxs_gpio.c
drivers/gpio/pca953x.c
drivers/gpio/pca953x_gpio.c
drivers/gpio/pcf8575_gpio.c
drivers/gpio/pic32_gpio.c
drivers/gpio/pm8916_gpio.c
drivers/gpio/s5p_gpio.c
drivers/gpio/sandbox.c
drivers/gpio/sh_pfc.c
drivers/gpio/sifive-gpio.c
drivers/gpio/stm32_gpio.c
drivers/gpio/tca642x.c
drivers/gpio/tegra186_gpio_priv.h
drivers/gpio/tegra_gpio.c
drivers/gpio/xilinx_gpio.c
drivers/gpio/zynq_gpio.c
drivers/hwspinlock/hwspinlock-uclass.c
drivers/hwspinlock/stm32_hwspinlock.c
drivers/i2c/ast_i2c.c
drivers/i2c/at91_i2c.h
drivers/i2c/cros_ec_ldo.c
drivers/i2c/davinci_i2c.c
drivers/i2c/designware_i2c.c
drivers/i2c/designware_i2c.h
drivers/i2c/designware_i2c_pci.c
drivers/i2c/exynos_hs_i2c.c
drivers/i2c/fsl_i2c.c
drivers/i2c/i2c-cdns.c
drivers/i2c/i2c-emul-uclass.c
drivers/i2c/i2c-gpio.c
drivers/i2c/i2c-uclass.c
drivers/i2c/i2c-versatile.c
drivers/i2c/i2c_core.c
drivers/i2c/ihs_i2c.c
drivers/i2c/imx_lpi2c.c
drivers/i2c/intel_i2c.c
drivers/i2c/kona_i2c.c
drivers/i2c/lpc32xx_i2c.c
drivers/i2c/meson_i2c.c
drivers/i2c/muxes/i2c-arb-gpio-challenge.c
drivers/i2c/muxes/i2c-mux-gpio.c
drivers/i2c/muxes/i2c-mux-uclass.c
drivers/i2c/muxes/pca954x.c
drivers/i2c/mv_i2c.c
drivers/i2c/mvtwsi.c
drivers/i2c/mxc_i2c.c
drivers/i2c/omap24xx_i2c.c
drivers/i2c/rcar_i2c.c
drivers/i2c/rcar_iic.c
drivers/i2c/rk_i2c.c
drivers/i2c/s3c24x0_i2c.c
drivers/i2c/sandbox_i2c.c
drivers/i2c/sh_i2c.c
drivers/i2c/soft_i2c.c
drivers/i2c/stm32f7_i2c.c
drivers/i2c/tegra186_bpmp_i2c.c
drivers/i2c/tegra_i2c.c
drivers/input/cros_ec_keyb.c
drivers/input/i8042.c
drivers/input/input.c
drivers/input/key_matrix.c
drivers/input/keyboard-uclass.c
drivers/input/tegra-kbc.c
drivers/led/led_bcm6328.c
drivers/led/led_bcm6358.c
drivers/led/led_bcm6858.c
drivers/led/led_gpio.c
drivers/mailbox/k3-sec-proxy.c
drivers/mailbox/mailbox-uclass.c
drivers/mailbox/sandbox-mbox.c
drivers/mailbox/stm32-ipcc.c
drivers/mailbox/tegra-hsp.c
drivers/mailbox/zynqmp-ipi.c
drivers/misc/altera_sysid.c
drivers/misc/atsha204a-i2c.c
drivers/misc/cros_ec.c
drivers/misc/cros_ec_i2c.c
drivers/misc/cros_ec_lpc.c
drivers/misc/cros_ec_sandbox.c
drivers/misc/cros_ec_spi.c
drivers/misc/ds4510.c
drivers/misc/esm_pmic.c
drivers/misc/fs_loader.c
drivers/misc/fsl_ifc.c
drivers/misc/fsl_iim.c
drivers/misc/fsl_portals.c
drivers/misc/fsl_sec_mon.c
drivers/misc/gdsys_ioep.c
drivers/misc/gdsys_ioep.h
drivers/misc/gdsys_soc.c
drivers/misc/i2c_eeprom.c
drivers/misc/i2c_eeprom_emul.c
drivers/misc/ihs_fpga.c
drivers/misc/imx8/scu.c
drivers/misc/irq-uclass.c
drivers/misc/jz4780_efuse.c
drivers/misc/k3_avs.c
drivers/misc/k3_esm.c
drivers/misc/microchip_flexcom.c
drivers/misc/mpc83xx_serdes.c
drivers/misc/mpc83xx_serdes.h
drivers/misc/mxc_ocotp.c
drivers/misc/mxs_ocotp.c
drivers/misc/p2sb-uclass.c
drivers/misc/p2sb_emul.c
drivers/misc/qfw.c
drivers/misc/rockchip-efuse.c
drivers/misc/stm32_rcc.c
drivers/misc/swap_case.c
drivers/misc/tegra186_bpmp.c
drivers/misc/tegra_car.c
drivers/misc/vexpress_config.c
drivers/mmc/am654_sdhci.c
drivers/mmc/arm_pl180_mmci.c
drivers/mmc/bcm2835_sdhci.c
drivers/mmc/bcm2835_sdhost.c
drivers/mmc/davinci_mmc.c
drivers/mmc/dw_mmc.c
drivers/mmc/fsl_esdhc.c
drivers/mmc/fsl_esdhc_imx.c
drivers/mmc/ftsdc010_mci.c
drivers/mmc/gen_atmel_mci.c
drivers/mmc/iproc_sdhci.c
drivers/mmc/jz_mmc.c
drivers/mmc/kona_sdhci.c
drivers/mmc/meson_gx_mmc.c
drivers/mmc/mmc-uclass.c
drivers/mmc/mmc.c
drivers/mmc/mmc_boot.c
drivers/mmc/mmc_legacy.c
drivers/mmc/mmc_spi.c
drivers/mmc/mmc_write.c
drivers/mmc/mvebu_mmc.c
drivers/mmc/mxsmmc.c
drivers/mmc/omap_hsmmc.c
drivers/mmc/pxa_mmc_gen.c
drivers/mmc/renesas-sdhi.c
drivers/mmc/rockchip_dw_mmc.c
drivers/mmc/rpmb.c
drivers/mmc/s5p_sdhci.c
drivers/mmc/sandbox_mmc.c
drivers/mmc/sdhci-cadence.c
drivers/mmc/sdhci.c
drivers/mmc/sh_mmcif.c
drivers/mmc/sh_sdhi.c
drivers/mmc/socfpga_dw_mmc.c
drivers/mmc/sti_sdhci.c
drivers/mmc/stm32_sdmmc2.c
drivers/mmc/sunxi_mmc.c
drivers/mmc/tegra_mmc.c
drivers/mmc/tmio-common.c
drivers/mmc/tmio-common.h
drivers/mmc/xenon_sdhci.c
drivers/mmc/zynq_sdhci.c
drivers/mtd/altera_qspi.c
drivers/mtd/cfi_flash.c
drivers/mtd/jedec_flash.c
drivers/mtd/mtd_uboot.c
drivers/mtd/mtdconcat.c
drivers/mtd/mtdcore.c
drivers/mtd/mtdpart.c
drivers/mtd/mw_eeprom.c
drivers/mtd/nand/bbt.c
drivers/mtd/nand/core.c
drivers/mtd/nand/raw/Kconfig
drivers/mtd/nand/raw/am335x_spl_bch.c
drivers/mtd/nand/raw/arasan_nfc.c
drivers/mtd/nand/raw/atmel_nand.c
drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c
drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c
drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c
drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c
drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c
drivers/mtd/nand/raw/brcmnand/brcmnand.c
drivers/mtd/nand/raw/davinci_nand.c
drivers/mtd/nand/raw/denali.c
drivers/mtd/nand/raw/denali_dt.c
drivers/mtd/nand/raw/denali_spl.c
drivers/mtd/nand/raw/fsl_ifc_spl.c
drivers/mtd/nand/raw/fsl_upm.c
drivers/mtd/nand/raw/kmeter1_nand.c
drivers/mtd/nand/raw/lpc32xx_nand_mlc.c
drivers/mtd/nand/raw/lpc32xx_nand_slc.c
drivers/mtd/nand/raw/mxc_nand.c
drivers/mtd/nand/raw/mxs_nand.c
drivers/mtd/nand/raw/mxs_nand_spl.c
drivers/mtd/nand/raw/nand_base.c
drivers/mtd/nand/raw/nand_bbt.c
drivers/mtd/nand/raw/nand_bch.c
drivers/mtd/nand/raw/nand_util.c
drivers/mtd/nand/raw/omap_gpmc.c
drivers/mtd/nand/raw/pxa3xx_nand.c
drivers/mtd/nand/raw/stm32_fmc2_nand.c
drivers/mtd/nand/raw/sunxi_nand.c
drivers/mtd/nand/raw/sunxi_nand_spl.c
drivers/mtd/nand/raw/tegra_nand.c
drivers/mtd/nand/raw/zynq_nand.c
drivers/mtd/nand/spi/core.c
drivers/mtd/nand/spi/macronix.c
drivers/mtd/nand/spi/micron.c
drivers/mtd/nand/spi/toshiba.c
drivers/mtd/nand/spi/winbond.c
drivers/mtd/onenand/onenand_base.c
drivers/mtd/onenand/onenand_bbt.c
drivers/mtd/onenand/onenand_spl.c
drivers/mtd/pic32_flash.c
drivers/mtd/renesas_rpc_hf.c
drivers/mtd/spi/sandbox.c
drivers/mtd/spi/sf-uclass.c
drivers/mtd/spi/sf_dataflash.c
drivers/mtd/spi/sf_internal.h
drivers/mtd/spi/sf_mtd.c
drivers/mtd/spi/sf_probe.c
drivers/mtd/spi/spi-nor-core.c
drivers/mtd/spi/spi-nor-tiny.c
drivers/mtd/st_smi.c
drivers/mtd/stm32_flash.c
drivers/mtd/ubi/attach.c
drivers/mtd/ubi/build.c
drivers/mtd/ubi/eba.c
drivers/mtd/ubi/fastmap.c
drivers/mtd/ubi/io.c
drivers/mtd/ubi/misc.c
drivers/mtd/ubi/upd.c
drivers/mtd/ubi/vmt.c
drivers/mtd/ubi/vtbl.c
drivers/mtd/ubi/wl.c
drivers/mtd/ubispl/ubispl.c
drivers/net/Kconfig
drivers/net/ag7xxx.c
drivers/net/altera_tse.c
drivers/net/altera_tse.h
drivers/net/armada100_fec.c
drivers/net/at91_emac.c
drivers/net/ax88180.c
drivers/net/ax88796.c
drivers/net/bcm-sf2-eth-gmac.c
drivers/net/bcm-sf2-eth.c
drivers/net/bcm6348-eth.c
drivers/net/bcm6368-eth.c
drivers/net/bcmgenet.c
drivers/net/calxedaxgmac.c
drivers/net/cs8900.c
drivers/net/dc2114x.c
drivers/net/designware.c
drivers/net/designware.h
drivers/net/dm9000x.c
drivers/net/dnet.c
drivers/net/dwc_eth_qos.c
drivers/net/e1000.c
drivers/net/e1000.h
drivers/net/e1000_spi.c
drivers/net/eepro100.c
drivers/net/ep93xx_eth.c
drivers/net/ethoc.c
drivers/net/fec_mxc.c
drivers/net/fm/dtsec.c
drivers/net/fm/eth.c
drivers/net/fm/fdt.c
drivers/net/fm/init.c
drivers/net/fm/memac.c
drivers/net/fm/tgec.c
drivers/net/fsl-mc/dpio/qbman_portal.c
drivers/net/fsl-mc/dpio/qbman_private.h
drivers/net/fsl-mc/dpio/qbman_sys.h
drivers/net/fsl-mc/mc.c
drivers/net/fsl-mc/mc_sys.c
drivers/net/fsl_enetc.c
drivers/net/fsl_enetc.h
drivers/net/fsl_mcdmafec.c
drivers/net/ftgmac100.c
drivers/net/ftgmac100.h
drivers/net/ftmac100.c
drivers/net/ftmac110.c
drivers/net/gmac_rockchip.c
drivers/net/higmacv300.c
drivers/net/ks8851_mll.c
drivers/net/lan91c96.c
drivers/net/ldpaa_eth/ldpaa_eth.c
drivers/net/lpc32xx_eth.c
drivers/net/macb.c
drivers/net/mcffec.c
drivers/net/mcfmii.c
drivers/net/mdio_mux_i2creg.c
drivers/net/mpc8xx_fec.c
drivers/net/mscc_eswitch/jr2_switch.c
drivers/net/mscc_eswitch/luton_switch.c
drivers/net/mscc_eswitch/mscc_mac_table.c
drivers/net/mscc_eswitch/mscc_miim.c
drivers/net/mscc_eswitch/mscc_xfer.c
drivers/net/mscc_eswitch/ocelot_switch.c
drivers/net/mscc_eswitch/serval_switch.c
drivers/net/mscc_eswitch/servalt_switch.c
drivers/net/mt7628-eth.c
drivers/net/mtk_eth.c
drivers/net/mtk_eth.h
drivers/net/mvgbe.c
drivers/net/mvmdio.c
drivers/net/mvneta.c
drivers/net/mvpp2.c
drivers/net/natsemi.c
drivers/net/ne2000.c
drivers/net/ne2000_base.c
drivers/net/ne2000_base.h
drivers/net/netconsole.c
drivers/net/ns8382x.c
drivers/net/pch_gbe.c
drivers/net/pcnet.c
drivers/net/pfe_eth/pfe_cmd.c
drivers/net/pfe_eth/pfe_driver.c
drivers/net/pfe_eth/pfe_eth.c
drivers/net/pfe_eth/pfe_firmware.c
drivers/net/pfe_eth/pfe_hw.c
drivers/net/pfe_eth/pfe_mdio.c
drivers/net/phy/aquantia.c
drivers/net/phy/atheros.c
drivers/net/phy/b53.c
drivers/net/phy/broadcom.c
drivers/net/phy/cortina.c
drivers/net/phy/dp83867.c
drivers/net/phy/marvell.c
drivers/net/phy/micrel_ksz8xxx.c
drivers/net/phy/mscc.c
drivers/net/phy/mv88e61xx.c
drivers/net/phy/mv88e6352.c
drivers/net/phy/ncsi.c
drivers/net/phy/phy.c
drivers/net/phy/realtek.c
drivers/net/phy/teranetics.c
drivers/net/phy/xilinx_gmii2rgmii.c
drivers/net/phy/xilinx_phy.c
drivers/net/pic32_eth.c
drivers/net/pic32_eth.h
drivers/net/pic32_mdio.c
drivers/net/ravb.c
drivers/net/rtl8139.c
drivers/net/rtl8169.c
drivers/net/sandbox-raw.c
drivers/net/sandbox.c
drivers/net/sh_eth.c
drivers/net/smc91111.c
drivers/net/smc91111.h
drivers/net/smc911x.c
drivers/net/smc911x.h
drivers/net/sni_ave.c
drivers/net/sun8i_emac.c
drivers/net/sunxi_emac.c
drivers/net/ti/am65-cpsw-nuss.c
drivers/net/ti/cpsw.c
drivers/net/ti/cpsw_mdio.c
drivers/net/ti/davinci_emac.c
drivers/net/ti/keystone_net.c
drivers/net/tsec.c
drivers/net/uli526x.c
drivers/net/vsc7385.c
drivers/net/vsc9953.c
drivers/net/xilinx_axi_emac.c
drivers/net/xilinx_emaclite.c
drivers/net/zynq_gem.c
drivers/nvme/nvme-uclass.c
drivers/nvme/nvme.c
drivers/pch/pch7.c
drivers/pch/pch9.c
drivers/pci/Kconfig
drivers/pci/Makefile
drivers/pci/fsl_pci_init.c
drivers/pci/pci-aardvark.c
drivers/pci/pci-emul-uclass.c
drivers/pci/pci-rcar-gen2.c
drivers/pci/pci-rcar-gen3.c
drivers/pci/pci-uclass.c
drivers/pci/pci.c
drivers/pci/pci_auto.c
drivers/pci/pci_auto_common.c
drivers/pci/pci_auto_old.c
drivers/pci/pci_compat.c
drivers/pci/pci_ftpci100.c
drivers/pci/pci_gt64120.c
drivers/pci/pci_mpc85xx.c
drivers/pci/pci_msc01.c
drivers/pci/pci_mvebu.c
drivers/pci/pci_rom.c
drivers/pci/pci_sandbox.c
drivers/pci/pci_sh4.c
drivers/pci/pci_sh7751.c
drivers/pci/pci_sh7780.c
drivers/pci/pci_tegra.c
drivers/pci/pcie_dw_mvebu.c
drivers/pci/pcie_dw_ti.c
drivers/pci/pcie_fsl.c
drivers/pci/pcie_imx.c
drivers/pci/pcie_intel_fpga.c
drivers/pci/pcie_layerscape.c
drivers/pci/pcie_layerscape_fixup.c
drivers/pci/pcie_layerscape_fixup_common.c
drivers/pci/pcie_layerscape_gen4.c
drivers/pci/pcie_layerscape_gen4.h
drivers/pci/pcie_layerscape_gen4_fixup.c
drivers/pci/pcie_mediatek.c
drivers/pci/pcie_rockchip.c [new file with mode: 0644]
drivers/pci/pcie_rockchip.h [new file with mode: 0644]
drivers/pci/pcie_rockchip_phy.c [new file with mode: 0644]
drivers/pci/pcie_xilinx.c
drivers/pci_endpoint/pcie-cadence.h
drivers/phy/allwinner/phy-sun4i-usb.c
drivers/phy/bcm6318-usbh-phy.c
drivers/phy/bcm6348-usbh-phy.c
drivers/phy/bcm6358-usbh-phy.c
drivers/phy/bcm6368-usbh-phy.c
drivers/phy/keystone-usb-phy.c
drivers/phy/marvell/comphy_a3700.c
drivers/phy/marvell/comphy_core.c
drivers/phy/marvell/comphy_cp110.c
drivers/phy/marvell/comphy_mux.c
drivers/phy/meson-g12a-usb2.c
drivers/phy/meson-g12a-usb3-pcie.c
drivers/phy/meson-gxbb-usb2.c
drivers/phy/meson-gxl-usb2.c
drivers/phy/msm8916-usbh-phy.c
drivers/phy/mt76x8-usb-phy.c
drivers/phy/omap-usb2-phy.c
drivers/phy/phy-da8xx-usb.c
drivers/phy/phy-mtk-tphy.c
drivers/phy/phy-rcar-gen2.c
drivers/phy/phy-stm32-usbphyc.c
drivers/phy/phy-ti-am654.c
drivers/phy/phy-uclass.c
drivers/phy/sti_usb_phy.c
drivers/phy/ti-pipe3-phy.c
drivers/pinctrl/aspeed/pinctrl_ast2500.c
drivers/pinctrl/ath79/pinctrl_ar933x.c
drivers/pinctrl/ath79/pinctrl_qca953x.c
drivers/pinctrl/broadcom/pinctrl-bcm283x.c
drivers/pinctrl/intel/pinctrl.c
drivers/pinctrl/intel/pinctrl_apl.c
drivers/pinctrl/mediatek/pinctrl-mtk-common.c
drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c
drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c
drivers/pinctrl/meson/pinctrl-meson.c
drivers/pinctrl/mscc/mscc-common.c
drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
drivers/pinctrl/mvebu/pinctrl-mvebu.c
drivers/pinctrl/nxp/pinctrl-imx.c
drivers/pinctrl/nxp/pinctrl-mxs.c
drivers/pinctrl/pinctrl-at91-pio4.c
drivers/pinctrl/pinctrl-at91.c
drivers/pinctrl/pinctrl-sandbox.c
drivers/pinctrl/pinctrl-sti.c
drivers/pinctrl/pinctrl-stmfx.c
drivers/pinctrl/pinctrl_pic32.c
drivers/pinctrl/pinctrl_stm32.c
drivers/pinctrl/renesas/pfc-r7s72100.c
drivers/pinctrl/renesas/pfc-r8a77990.c
drivers/pinctrl/renesas/pfc.c
drivers/pinctrl/renesas/sh_pfc.h
drivers/pinctrl/rockchip/pinctrl-px30.c
drivers/pinctrl/rockchip/pinctrl-rk3036.c
drivers/pinctrl/rockchip/pinctrl-rk3128.c
drivers/pinctrl/rockchip/pinctrl-rk3188.c
drivers/pinctrl/rockchip/pinctrl-rk322x.c
drivers/pinctrl/rockchip/pinctrl-rk3288.c
drivers/pinctrl/rockchip/pinctrl-rk3308.c
drivers/pinctrl/rockchip/pinctrl-rk3328.c
drivers/pinctrl/rockchip/pinctrl-rk3368.c
drivers/pinctrl/rockchip/pinctrl-rk3399.c
drivers/pinctrl/rockchip/pinctrl-rockchip-core.c
drivers/pinctrl/rockchip/pinctrl-rockchip.h
drivers/pinctrl/rockchip/pinctrl-rv1108.c
drivers/pinctrl/uniphier/pinctrl-uniphier-core.c
drivers/pinctrl/uniphier/pinctrl-uniphier.h
drivers/power/acpi_pmc/pmc_emul.c
drivers/power/acpi_pmc/sandbox.c
drivers/power/axp152.c
drivers/power/axp209.c
drivers/power/axp221.c
drivers/power/axp809.c
drivers/power/axp818.c
drivers/power/battery/bat_trats.c
drivers/power/battery/bat_trats2.c
drivers/power/domain/bcm6328-power-domain.c
drivers/power/domain/imx8-power-domain-legacy.c
drivers/power/domain/imx8-power-domain.c
drivers/power/domain/meson-ee-pwrc.c
drivers/power/domain/meson-gx-pwrc-vpu.c
drivers/power/domain/mtk-power-domain.c
drivers/power/domain/power-domain-uclass.c
drivers/power/domain/sandbox-power-domain.c
drivers/power/domain/tegra186-power-domain.c
drivers/power/domain/ti-sci-power-domain.c
drivers/power/exynos-tmu.c
drivers/power/fuel_gauge/fg_max17042.c
drivers/power/mfd/fg_max77693.c
drivers/power/mfd/muic_max77693.c
drivers/power/mfd/pmic_max77693.c
drivers/power/mt6323.c
drivers/power/pmic/act8846.c
drivers/power/pmic/as3722.c
drivers/power/pmic/bd71837.c
drivers/power/pmic/da9063.c
drivers/power/pmic/fan53555.c
drivers/power/pmic/i2c_pmic_emul.c
drivers/power/pmic/lp873x.c
drivers/power/pmic/lp87565.c
drivers/power/pmic/max77686.c
drivers/power/pmic/muic_max8997.c
drivers/power/pmic/palmas.c
drivers/power/pmic/pca9450.c
drivers/power/pmic/pfuze100.c
drivers/power/pmic/pmic-uclass.c
drivers/power/pmic/pmic_hi6553.c
drivers/power/pmic/pmic_max8997.c
drivers/power/pmic/pmic_tps65910_dm.c
drivers/power/pmic/rk8xx.c
drivers/power/pmic/rn5t567.c
drivers/power/pmic/s2mps11.c
drivers/power/pmic/s5m8767.c
drivers/power/pmic/tps65090.c
drivers/power/pmic/tps65941.c
drivers/power/power_core.c
drivers/power/power_dialog.c
drivers/power/power_i2c.c
drivers/power/regulator/as3722_regulator.c
drivers/power/regulator/bd71837.c
drivers/power/regulator/da9063.c
drivers/power/regulator/fan53555.c
drivers/power/regulator/fixed.c
drivers/power/regulator/gpio-regulator.c
drivers/power/regulator/lp87565_regulator.c
drivers/power/regulator/pbias_regulator.c
drivers/power/regulator/pfuze100.c
drivers/power/regulator/pwm_regulator.c
drivers/power/regulator/regulator-uclass.c
drivers/power/regulator/regulator_common.c
drivers/power/regulator/rk8xx.c
drivers/power/regulator/s2mps11_regulator.c
drivers/power/regulator/stm32-vrefbuf.c
drivers/power/regulator/stpmic1.c
drivers/power/regulator/tps65090_regulator.c
drivers/power/regulator/tps65910_regulator.c
drivers/power/regulator/tps65941_regulator.c
drivers/power/tps6586x.c
drivers/power/twl4030.c
drivers/power/twl6030.c
drivers/pwm/exynos_pwm.c
drivers/pwm/pwm-imx.c
drivers/pwm/rk_pwm.c
drivers/pwm/sunxi_pwm.c
drivers/pwm/tegra_pwm.c
drivers/qe/qe.c
drivers/qe/uec.c
drivers/qe/uec_phy.c
drivers/ram/imxrt_sdram.c
drivers/ram/k3-am654-ddrss.c
drivers/ram/k3-am654-ddrss.h
drivers/ram/k3-j721e/k3-j721e-ddrss.c
drivers/ram/mediatek/ddr3-mt7629.c
drivers/ram/mpc83xx_sdram.c
drivers/ram/rockchip/dmc-rk3368.c
drivers/ram/rockchip/sdram_pctl_px30.c
drivers/ram/rockchip/sdram_phy_px30.c
drivers/ram/rockchip/sdram_px30.c
drivers/ram/rockchip/sdram_rk3128.c
drivers/ram/rockchip/sdram_rk3188.c
drivers/ram/rockchip/sdram_rk322x.c
drivers/ram/rockchip/sdram_rk3288.c
drivers/ram/rockchip/sdram_rk3328.c
drivers/ram/rockchip/sdram_rk3399.c
drivers/ram/stm32_sdram.c
drivers/ram/stm32mp1/stm32mp1_ddr.c
drivers/ram/stm32mp1/stm32mp1_ddr_regs.h
drivers/ram/stm32mp1/stm32mp1_interactive.c
drivers/ram/stm32mp1/stm32mp1_ram.c
drivers/ram/stm32mp1/stm32mp1_tests.c
drivers/ram/stm32mp1/stm32mp1_tuning.c
drivers/remoteproc/k3_system_controller.c
drivers/remoteproc/rproc-elf-loader.c
drivers/remoteproc/rproc-uclass.c
drivers/remoteproc/sandbox_testproc.c
drivers/remoteproc/stm32_copro.c
drivers/remoteproc/ti_k3_dsp_rproc.c
drivers/remoteproc/ti_k3_r5f_rproc.c
drivers/remoteproc/ti_power_proc.c
drivers/reset/ast2500-reset.c
drivers/reset/reset-bcm6345.c
drivers/reset/reset-hisilicon.c
drivers/reset/reset-hsdk.c
drivers/reset/reset-imx7.c
drivers/reset/reset-mediatek.c
drivers/reset/reset-meson.c
drivers/reset/reset-mtmips.c
drivers/reset/reset-rockchip.c
drivers/reset/reset-socfpga.c
drivers/reset/reset-sunxi.c
drivers/reset/reset-ti-sci.c
drivers/reset/reset-uclass.c
drivers/reset/reset-uniphier.c
drivers/reset/sandbox-reset-test.c
drivers/reset/sandbox-reset.c
drivers/reset/sti-reset.c
drivers/reset/stm32-reset.c
drivers/reset/tegra-car-reset.c
drivers/reset/tegra186-reset.c
drivers/rng/rockchip_rng.c
drivers/rng/sandbox_rng.c
drivers/rng/stm32mp1_rng.c
drivers/rtc/davinci.c
drivers/rtc/ds1302.c
drivers/rtc/ds1306.c
drivers/rtc/ds1307.c
drivers/rtc/ds1337.c
drivers/rtc/ds3231.c
drivers/rtc/ds3232.c
drivers/rtc/ftrtc010.c
drivers/rtc/i2c_rtc_emul.c
drivers/rtc/imxdi.c
drivers/rtc/m41t11.c
drivers/rtc/m41t60.c
drivers/rtc/m41t62.c
drivers/rtc/max6900.c
drivers/rtc/mvrtc.c
drivers/rtc/pcf2127.c
drivers/rtc/pcf8563.c
drivers/rtc/pl031.c
drivers/rtc/pt7c4338.c
drivers/rtc/rtc-uclass.c
drivers/rtc/rv3029.c
drivers/rtc/rv8803.c
drivers/rtc/rx8010sj.c
drivers/rtc/s35392a.c
drivers/rtc/stm32_rtc.c
drivers/rtc/x1205.c
drivers/scsi/scsi.c
drivers/serial/altera_jtag_uart.c
drivers/serial/altera_uart.c
drivers/serial/atmel_usart.c
drivers/serial/ns16550.c
drivers/serial/serial-uclass.c
drivers/serial/serial.c
drivers/serial/serial_ar933x.c
drivers/serial/serial_bcm283x_mu.c
drivers/serial/serial_cortina.c
drivers/serial/serial_efi.c
drivers/serial/serial_lpuart.c
drivers/serial/serial_meson.c
drivers/serial/serial_mtk.c
drivers/serial/serial_omap.c
drivers/serial/serial_owl.c
drivers/serial/serial_pic32.c
drivers/serial/serial_sh.c
drivers/serial/serial_sifive.c
drivers/serial/serial_sti_asc.c
drivers/serial/serial_stm32.c
drivers/serial/serial_stm32.h
drivers/serial/serial_xuartlite.c
drivers/serial/serial_zynq.c
drivers/smem/msm_smem.c
drivers/soc/ti/k3-navss-ringacc.c
drivers/soc/ti/keystone_serdes.c
drivers/sound/broadwell_i2s.c
drivers/sound/hda_codec.c
drivers/sound/ivybridge_sound.c
drivers/sound/max98088.c
drivers/sound/max98088.h
drivers/sound/max98090.c
drivers/sound/max98095.c
drivers/sound/maxim_codec.c
drivers/sound/rockchip_i2s.c
drivers/sound/rockchip_sound.c
drivers/sound/rt5677.c
drivers/sound/samsung-i2s.c
drivers/sound/samsung_sound.c
drivers/sound/sandbox.c
drivers/sound/sound-uclass.c
drivers/sound/sound.c
drivers/sound/tegra_ahub.c
drivers/sound/tegra_i2s.c
drivers/sound/tegra_sound.c
drivers/sound/wm8994.c
drivers/spi/altera_spi.c
drivers/spi/atcspi200_spi.c
drivers/spi/atmel-quadspi.c
drivers/spi/atmel_spi.h
drivers/spi/bcm63xx_hsspi.c
drivers/spi/bcm63xx_spi.c
drivers/spi/cadence_qspi.c
drivers/spi/cadence_qspi_apb.c
drivers/spi/cf_spi.c
drivers/spi/davinci_spi.c
drivers/spi/designware_spi.c
drivers/spi/exynos_spi.c
drivers/spi/fsl_dspi.c
drivers/spi/fsl_espi.c
drivers/spi/fsl_qspi.c
drivers/spi/ich.c
drivers/spi/ich.h
drivers/spi/kirkwood_spi.c
drivers/spi/meson_spifc.c
drivers/spi/mpc8xx_spi.c
drivers/spi/mpc8xxx_spi.c
drivers/spi/mscc_bb_spi.c
drivers/spi/mt7621_spi.c
drivers/spi/mvebu_a3700_spi.c
drivers/spi/mxc_spi.c
drivers/spi/mxs_spi.c
drivers/spi/nxp_fspi.c
drivers/spi/omap3_spi.c
drivers/spi/pic32_spi.c
drivers/spi/renesas_rpc_spi.c
drivers/spi/rk_spi.c
drivers/spi/sandbox_spi.c
drivers/spi/sh_qspi.c
drivers/spi/sh_spi.c
drivers/spi/soft_spi.c
drivers/spi/spi-mem-nodm.c
drivers/spi/spi-mem.c
drivers/spi/spi-sifive.c
drivers/spi/spi-sunxi.c
drivers/spi/spi-uclass.c
drivers/spi/stm32_qspi.c
drivers/spi/stm32_spi.c
drivers/spi/tegra114_spi.c
drivers/spi/tegra20_sflash.c
drivers/spi/tegra20_slink.c
drivers/spi/tegra210_qspi.c
drivers/spi/ti_qspi.c
drivers/spi/uniphier_spi.c
drivers/spi/xilinx_spi.c
drivers/spi/zynq_qspi.c
drivers/spi/zynq_spi.c
drivers/spi/zynqmp_gqspi.c
drivers/sysreset/sysreset-ti-sci.c
drivers/sysreset/sysreset-uclass.c
drivers/sysreset/sysreset_ast.c
drivers/sysreset/sysreset_gpio.c
drivers/sysreset/sysreset_mpc83xx.c
drivers/sysreset/sysreset_socfpga.c
drivers/sysreset/sysreset_sti.c
drivers/tee/tee-uclass.c
drivers/thermal/imx_scu_thermal.c
drivers/thermal/imx_thermal.c
drivers/timer/altera_timer.c
drivers/timer/atmel_pit_timer.c
drivers/timer/cadence-ttc.c
drivers/timer/mpc83xx_timer.c
drivers/timer/mtk_timer.c
drivers/timer/nomadik-mtu-timer.c
drivers/timer/omap-timer.c
drivers/timer/ostm_timer.c
drivers/timer/rockchip_timer.c
drivers/timer/stm32_timer.c
drivers/timer/timer-uclass.c
drivers/timer/tsc_timer.c
drivers/tpm/cr50_i2c.c
drivers/tpm/tpm-uclass.c
drivers/tpm/tpm2_ftpm_tee.c
drivers/tpm/tpm2_tis_sandbox.c
drivers/tpm/tpm2_tis_spi.c
drivers/tpm/tpm_atmel_twi.c
drivers/tpm/tpm_tis_infineon.c
drivers/tpm/tpm_tis_lpc.c
drivers/tpm/tpm_tis_st33zp24_i2c.c
drivers/tpm/tpm_tis_st33zp24_spi.c
drivers/ufs/cdns-platform.c
drivers/ufs/ti-j721e-ufs.c
drivers/ufs/ufs.c
drivers/usb/cdns3/cdns3-ti.c
drivers/usb/cdns3/core.c
drivers/usb/cdns3/drd.h
drivers/usb/cdns3/ep0.c
drivers/usb/cdns3/gadget.c
drivers/usb/cdns3/gadget.h
drivers/usb/common/fsl-dt-fixup.c
drivers/usb/dwc3/core.c
drivers/usb/dwc3/core.h
drivers/usb/dwc3/dwc3-generic.c
drivers/usb/dwc3/dwc3-meson-g12a.c
drivers/usb/dwc3/ep0.c
drivers/usb/dwc3/gadget.c
drivers/usb/dwc3/samsung_usb_phy.c
drivers/usb/dwc3/ti_usb_phy.c
drivers/usb/emul/sandbox_flash.c
drivers/usb/emul/sandbox_hub.c
drivers/usb/emul/sandbox_keyb.c
drivers/usb/emul/usb-emul-uclass.c
drivers/usb/eth/asix.c
drivers/usb/eth/asix88179.c
drivers/usb/eth/lan75xx.c
drivers/usb/eth/lan78xx.c
drivers/usb/eth/lan7x.c
drivers/usb/eth/lan7x.h
drivers/usb/eth/mcs7830.c
drivers/usb/eth/r8152.c
drivers/usb/eth/r8152.h
drivers/usb/eth/r8152_fw.c
drivers/usb/eth/smsc95xx.c
drivers/usb/eth/usb_ether.c
drivers/usb/gadget/at91_udc.c
drivers/usb/gadget/atmel_usba_udc.c
drivers/usb/gadget/bcm_udc_otg_phy.c
drivers/usb/gadget/ci_udc.c
drivers/usb/gadget/composite.c
drivers/usb/gadget/core.c
drivers/usb/gadget/designware_udc.c
drivers/usb/gadget/dwc2_udc_otg.c
drivers/usb/gadget/dwc2_udc_otg_phy.c
drivers/usb/gadget/dwc2_udc_otg_regs.h
drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c
drivers/usb/gadget/ether.c
drivers/usb/gadget/f_dfu.c
drivers/usb/gadget/f_fastboot.c
drivers/usb/gadget/f_mass_storage.c
drivers/usb/gadget/f_rockusb.c
drivers/usb/gadget/f_sdp.c
drivers/usb/gadget/f_thor.c
drivers/usb/gadget/fotg210.c
drivers/usb/gadget/g_dnl.c
drivers/usb/gadget/pxa25x_udc.c
drivers/usb/gadget/pxa27x_udc.c
drivers/usb/gadget/rndis.c
drivers/usb/gadget/storage_common.c
drivers/usb/host/dwc2.c
drivers/usb/host/dwc3-sti-glue.c
drivers/usb/host/ehci-armada100.c
drivers/usb/host/ehci-atmel.c
drivers/usb/host/ehci-exynos.c
drivers/usb/host/ehci-faraday.c
drivers/usb/host/ehci-fsl.c
drivers/usb/host/ehci-generic.c
drivers/usb/host/ehci-hcd.c
drivers/usb/host/ehci-marvell.c
drivers/usb/host/ehci-mx5.c
drivers/usb/host/ehci-mx6.c
drivers/usb/host/ehci-mxc.c
drivers/usb/host/ehci-mxs.c
drivers/usb/host/ehci-omap.c
drivers/usb/host/ehci-pci.c
drivers/usb/host/ehci-rmobile.c
drivers/usb/host/ehci-spear.c
drivers/usb/host/ehci-tegra.c
drivers/usb/host/ehci-vf.c
drivers/usb/host/ehci.h
drivers/usb/host/ohci-generic.c
drivers/usb/host/ohci-hcd.c
drivers/usb/host/ohci-lpc32xx.c
drivers/usb/host/r8a66597-hcd.c
drivers/usb/host/r8a66597.h
drivers/usb/host/sl811-hcd.c
drivers/usb/host/usb-sandbox.c
drivers/usb/host/usb-uclass.c
drivers/usb/host/utmi-armada100.c
drivers/usb/host/xhci-dwc3.c
drivers/usb/host/xhci-exynos5.c
drivers/usb/host/xhci-fsl.c
drivers/usb/host/xhci-mem.c
drivers/usb/host/xhci-mvebu.c
drivers/usb/host/xhci-omap.c
drivers/usb/host/xhci-pci.c
drivers/usb/host/xhci-rcar.c
drivers/usb/host/xhci-ring.c
drivers/usb/host/xhci-rockchip.c
drivers/usb/host/xhci.c
drivers/usb/musb-new/am35x.c
drivers/usb/musb-new/da8xx.c
drivers/usb/musb-new/linux-compat.h
drivers/usb/musb-new/mt85xx.c
drivers/usb/musb-new/musb_core.c
drivers/usb/musb-new/musb_gadget.c
drivers/usb/musb-new/musb_gadget_ep0.c
drivers/usb/musb-new/musb_host.c
drivers/usb/musb-new/musb_uboot.c
drivers/usb/musb-new/omap2430.c
drivers/usb/musb-new/pic32.c
drivers/usb/musb-new/sunxi.c
drivers/usb/musb-new/ti-musb.c
drivers/usb/musb/am35x.c
drivers/usb/musb/musb_core.c
drivers/usb/musb/musb_hcd.c
drivers/usb/musb/musb_udc.c
drivers/usb/phy/omap_usb_phy.c
drivers/usb/phy/rockchip_usb2_phy.c
drivers/usb/phy/twl4030.c
drivers/usb/ulpi/omap-ulpi-viewport.c
drivers/usb/ulpi/ulpi-viewport.c
drivers/usb/ulpi/ulpi.c
drivers/video/am335x-fb.c
drivers/video/anx9804.c
drivers/video/anx98xx-edp.h
drivers/video/ati_radeon_fb.c
drivers/video/atmel_hlcdfb.c
drivers/video/atmel_lcdfb.c
drivers/video/backlight_gpio.c
drivers/video/bcm2835.c
drivers/video/bridge/anx6345.c
drivers/video/bridge/ps862x.c
drivers/video/bridge/ptn3460.c
drivers/video/bridge/video-bridge-uclass.c
drivers/video/broadwell_igd.c
drivers/video/bus_vcxk.c
drivers/video/cfb_console.c
drivers/video/console_truetype.c
drivers/video/da8xx-fb.c
drivers/video/dw_hdmi.c
drivers/video/dw_mipi_dsi.c
drivers/video/efi.c
drivers/video/exynos/exynos_dp.c
drivers/video/exynos/exynos_dp_lowlevel.c
drivers/video/exynos/exynos_fb.c
drivers/video/exynos/exynos_mipi_dsi.c
drivers/video/exynos/exynos_mipi_dsi_common.c
drivers/video/exynos/exynos_mipi_dsi_lowlevel.c
drivers/video/formike.c
drivers/video/fsl_dcu_fb.c
drivers/video/hitachi_tx18d42vm_lcd.c
drivers/video/ihs_video_out.c
drivers/video/imx/ipu_common.c
drivers/video/imx/ipu_disp.c
drivers/video/imx/mxc_ipuv3_fb.c
drivers/video/ivybridge_igd.c
drivers/video/ld9040.c
drivers/video/lg4573.c
drivers/video/logicore_dp_tx.c
drivers/video/mali_dp.c
drivers/video/mb862xx.c
drivers/video/meson/meson_dw_hdmi.c
drivers/video/meson/meson_dw_hdmi.h
drivers/video/meson/meson_plane.c
drivers/video/meson/meson_registers.h
drivers/video/meson/meson_vclk.c
drivers/video/meson/meson_venc.c
drivers/video/meson/meson_vpu.c
drivers/video/meson/meson_vpu_init.c
drivers/video/mvebu_lcd.c
drivers/video/mx3fb.c
drivers/video/mxsfb.c
drivers/video/orisetech_otm8009a.c
drivers/video/pwm_backlight.c
drivers/video/pxa_lcd.c
drivers/video/raydium-rm68200.c
drivers/video/rockchip/rk3288_hdmi.c
drivers/video/rockchip/rk3288_mipi.c
drivers/video/rockchip/rk3288_vop.c
drivers/video/rockchip/rk3399_mipi.c
drivers/video/rockchip/rk3399_vop.c
drivers/video/rockchip/rk_edp.c
drivers/video/rockchip/rk_hdmi.c
drivers/video/rockchip/rk_lvds.c
drivers/video/rockchip/rk_mipi.c
drivers/video/rockchip/rk_vop.c
drivers/video/s6e8ax0.c
drivers/video/sandbox_sdl.c
drivers/video/scf0403_lcd.c
drivers/video/simple_panel.c
drivers/video/simplefb.c
drivers/video/ssd2828.c
drivers/video/stm32/stm32_dsi.c
drivers/video/stm32/stm32_ltdc.c
drivers/video/sunxi/lcdc.c
drivers/video/sunxi/sunxi_de2.c
drivers/video/sunxi/sunxi_display.c
drivers/video/sunxi/sunxi_dw_hdmi.c
drivers/video/sunxi/sunxi_lcd.c
drivers/video/tda19988.c
drivers/video/tegra.c
drivers/video/tegra124/display.c
drivers/video/tegra124/dp.c
drivers/video/tegra124/sor.c
drivers/video/vidconsole-uclass.c
drivers/video/video-uclass.c
drivers/video/video_bmp.c
drivers/virtio/virtio-uclass.c
drivers/virtio/virtio_blk.c
drivers/virtio/virtio_mmio.c
drivers/virtio/virtio_mmio.h
drivers/virtio/virtio_pci_legacy.c
drivers/virtio/virtio_pci_modern.c
drivers/virtio/virtio_ring.c
drivers/virtio/virtio_rng.c
drivers/virtio/virtio_sandbox.c
drivers/w1-eeprom/w1-eeprom-uclass.c
drivers/w1/mxc_w1.c
drivers/w1/w1-gpio.c
drivers/w1/w1-uclass.c
drivers/watchdog/ast_wdt.c
drivers/watchdog/at91sam9_wdt.c
drivers/watchdog/bcm6345_wdt.c
drivers/watchdog/cdns_wdt.c
drivers/watchdog/designware_wdt.c
drivers/watchdog/ftwdt010_wdt.c
drivers/watchdog/mt7621_wdt.c
drivers/watchdog/mtk_wdt.c
drivers/watchdog/omap_wdt.c
drivers/watchdog/orion_wdt.c
drivers/watchdog/sp805_wdt.c
drivers/watchdog/stm32mp_wdt.c
drivers/watchdog/tangier_wdt.c
drivers/watchdog/wdt-uclass.c
drivers/watchdog/xilinx_tb_wdt.c
env/Kconfig
env/common.c
env/env.c
env/ext4.c
env/fat.c
env/flash.c
env/mmc.c
env/sf.c
examples/api/demo.c
examples/api/libgenwrap.c
examples/standalone/atmel_df_pow2.c
examples/standalone/hello_world.c
examples/standalone/smc91111_eeprom.c
examples/standalone/smc911x_eeprom.c
examples/standalone/stubs.c
fs/btrfs/btrfs.c
fs/btrfs/btrfs.h
fs/btrfs/chunk-map.c
fs/btrfs/compression.c
fs/btrfs/ctree.c
fs/btrfs/dev.c
fs/btrfs/super.c
fs/cramfs/cramfs.c
fs/ext4/dev.c
fs/ext4/ext4_common.c
fs/ext4/ext4_common.h
fs/ext4/ext4_journal.c
fs/ext4/ext4_write.c
fs/ext4/ext4fs.c
fs/fat/fat.c
fs/fat/fat_write.c
fs/fs.c
fs/fs_internal.c
fs/jffs2/jffs2_1pass.c
fs/reiserfs/dev.c
fs/sandbox/sandboxfs.c
fs/ubifs/budget.c
fs/ubifs/debug.c
fs/ubifs/gc.c
fs/ubifs/io.c
fs/ubifs/log.c
fs/ubifs/lprops.c
fs/ubifs/lpt.c
fs/ubifs/lpt_commit.c
fs/ubifs/master.c
fs/ubifs/orphan.c
fs/ubifs/recovery.c
fs/ubifs/replay.c
fs/ubifs/sb.c
fs/ubifs/scan.c
fs/ubifs/super.c
fs/ubifs/tnc.c
fs/ubifs/tnc_misc.c
fs/ubifs/ubifs.c
fs/yaffs2/yaffs_mtdif2.c
fs/yaffs2/yportenv.h
fs/zfs/dev.c
fs/zfs/zfs.c
include/_exports.h
include/acpi/acpi_table.h
include/android_ab.h
include/asm-generic/gpio.h
include/asm-generic/u-boot.h
include/atf_common.h
include/avb_verify.h
include/bedbug/type.h
include/bitfield.h
include/blk.h
include/bootm.h
include/bootstage.h
include/btrfs.h
include/command.h
include/common.h
include/config_fsl_chain_trust.h
include/configs/B4860QDS.h
include/configs/C29XPCIE.h
include/configs/M52277EVB.h
include/configs/M5253DEMO.h
include/configs/M5373EVB.h
include/configs/M54418TWR.h
include/configs/M54451EVB.h
include/configs/M54455EVB.h
include/configs/MPC8308RDB.h
include/configs/MPC8313ERDB_NAND.h
include/configs/MPC8313ERDB_NOR.h
include/configs/MPC8323ERDB.h
include/configs/MPC8349ITX.h
include/configs/MPC837XERDB.h
include/configs/MPC8536DS.h
include/configs/MPC8544DS.h
include/configs/MPC8548CDS.h
include/configs/MPC8560ADS.h
include/configs/MPC8572DS.h
include/configs/MPC8610HPCD.h
include/configs/MPC8641HPCN.h
include/configs/P1010RDB.h
include/configs/P1022DS.h
include/configs/P1023RDB.h
include/configs/P2041RDB.h
include/configs/T102xQDS.h
include/configs/T102xRDB.h
include/configs/T1040QDS.h
include/configs/T104xRDB.h
include/configs/T208xQDS.h
include/configs/T208xRDB.h
include/configs/T4240QDS.h
include/configs/T4240RDB.h
include/configs/UCP1020.h
include/configs/apalis_imx6.h
include/configs/apf27.h
include/configs/at91sam9263ek.h
include/configs/at91sam9n12ek.h
include/configs/bcmstb.h
include/configs/brppt1.h
include/configs/brsmarc1.h
include/configs/brxre1.h
include/configs/cgtqmx6eval.h
include/configs/clearfog.h
include/configs/colibri-imx8x.h
include/configs/colibri_imx6.h
include/configs/controlcenterd.h
include/configs/corenet_ds.h
include/configs/cyrus.h
include/configs/dart_6ul.h
include/configs/el6x_common.h
include/configs/exynos-common.h
include/configs/gardena-smart-gateway-at91sam.h
include/configs/helios4.h
include/configs/hrcon.h
include/configs/ids8313.h
include/configs/imx6-engicam.h
include/configs/imx8mm_evk.h
include/configs/imx8mn_evk.h
include/configs/imx8mp_evk.h
include/configs/imx8mq_evk.h
include/configs/imx8mq_phanbell.h
include/configs/imx8qm_mek.h
include/configs/imx8qm_rom7720.h
include/configs/imx8qxp_mek.h
include/configs/km/keymile-common.h
include/configs/km/km-mpc83xx.h
include/configs/km/km_arm.h
include/configs/liteboard.h
include/configs/ls1012a_common.h
include/configs/ls1012afrwy.h
include/configs/ls1012ardb.h
include/configs/ls1021aiot.h
include/configs/ls1021aqds.h
include/configs/ls1021atwr.h
include/configs/ls1043aqds.h
include/configs/ls1046afrwy.h
include/configs/ls1046aqds.h
include/configs/ls1046ardb.h
include/configs/ls1088a_common.h
include/configs/ls1088aqds.h
include/configs/ls1088ardb.h
include/configs/ls2080aqds.h
include/configs/ls2080ardb.h
include/configs/mpc8308_p1m.h
include/configs/mv-common.h
include/configs/mx6_common.h
include/configs/mx6cuboxi.h
include/configs/mx6sabre_common.h
include/configs/mx6sllevk.h
include/configs/mx6sxsabresd.h
include/configs/mx6ul_14x14_evk.h
include/configs/mx6ullevk.h
include/configs/mx7_common.h
include/configs/nitrogen6x.h
include/configs/p1_p2_rdb_pc.h
include/configs/p1_twr.h
include/configs/pcl063_ull.h
include/configs/pcm052.h
include/configs/pico-imx6ul.h
include/configs/pico-imx7d.h
include/configs/pico-imx8mq.h
include/configs/rockpro64_rk3399.h
include/configs/s32v234evb.h
include/configs/sandbox.h
include/configs/sbc8548.h
include/configs/snapper9g45.h
include/configs/socfpga_arria5_secu1.h
include/configs/socfpga_common.h
include/configs/socfpga_soc64_common.h
include/configs/strider.h
include/configs/suvd3.h [deleted file]
include/configs/tqma6.h
include/configs/udoo.h
include/configs/ve8313.h
include/configs/vf610twr.h
include/configs/wandboard.h
include/configs/wb45n.h
include/configs/xpedite517x.h
include/configs/xpedite537x.h
include/configs/xpedite550x.h
include/cpu_func.h
include/dfu.h
include/dma.h
include/dwc3-sti-glue.h
include/dwmmc.h
include/efi.h
include/efi_api.h
include/efi_loader.h
include/elf.h
include/env_default.h
include/environment/ti/boot.h
include/exception.h
include/exports.h
include/ext4fs.h
include/ext_common.h
include/faraday/ftpci100.h
include/faraday/ftsdc010.h
include/faraday/ftsdmc021.h
include/fat.h
include/fb_mmc.h
include/fdtdec.h
include/flash.h
include/fs.h
include/fs_internal.h
include/fsl-mc/fsl_mc.h
include/fsl_ddr.h
include/fsl_ifc.h
include/fsl_validate.h
include/gzip.h
include/hash.h
include/i2c.h
include/image.h
include/initcall.h
include/kgdb.h
include/linux/bitops.h
include/linux/compat.h
include/linux/mtd/rawnand.h
include/linux/soc/ti/cppi5.h
include/linux/soc/ti/k3-navss-ringacc.h
include/linux/soc/ti/ti_sci_protocol.h
include/log.h
include/mipi_dsi.h
include/mmc.h
include/mpc83xx.h
include/net.h
include/net/pfe_eth/pfe/cbus/class_csr.h
include/net/pfe_eth/pfe/cbus/emac.h
include/net/pfe_eth/pfe/cbus/hif.h
include/net/pfe_eth/pfe/cbus/tmu_csr.h
include/net/pfe_eth/pfe/pfe_hw.h
include/net/pfe_eth/pfe_eth.h
include/part.h
include/pch.h
include/power/stpmic1.h
include/regmap.h
include/reiserfs.h
include/sandboxfs.h
include/scsi.h
include/sdhci.h
include/search.h
include/spi.h
include/spl.h
include/tee.h
include/tee/optee.h
include/test/suites.h
include/test/ut.h
include/tpm-common.h
include/tpm-v1.h
include/ubifs_uboot.h
include/virtio.h
include/vsc9953.h
include/vxworks.h
include/wait_bit.h
include/wdt.h
include/xyzModem.h
include/zfs_common.h
include/zynqmppl.h
lib/Kconfig
lib/acpi/acpi_table.c
lib/aes.c
lib/asm-offsets.c
lib/asn1_decoder.c
lib/bch.c
lib/binman.c
lib/bzip2/bzlib_blocksort.c
lib/circbuf.c
lib/crypto/asymmetric_type.c
lib/crypto/pkcs7_parser.c
lib/crypto/public_key.c
lib/crypto/x509_cert_parser.c
lib/dhry/cmd_dhry.c
lib/div64.c
lib/efi/efi_app.c
lib/efi_driver/efi_block_device.c
lib/efi_driver/efi_uclass.c
lib/efi_loader/efi_acpi.c
lib/efi_loader/efi_bootmgr.c
lib/efi_loader/efi_boottime.c
lib/efi_loader/efi_device_path.c
lib/efi_loader/efi_device_path_to_text.c
lib/efi_loader/efi_disk.c
lib/efi_loader/efi_file.c
lib/efi_loader/efi_gop.c
lib/efi_loader/efi_memory.c
lib/efi_loader/efi_net.c
lib/efi_loader/efi_rng.c
lib/efi_loader/efi_runtime.c
lib/efi_loader/efi_setup.c
lib/efi_loader/efi_smbios.c
lib/efi_loader/efi_variable.c
lib/efi_selftest/efi_selftest_block_device.c
lib/efi_selftest/efi_selftest_console.c
lib/efi_selftest/efi_selftest_snp.c
lib/fdtdec.c
lib/fdtdec_common.c
lib/fdtdec_test.c
lib/gunzip.c
lib/hashtable.c
lib/image-sparse.c
lib/libavb/avb_cmdline.c
lib/libavb/avb_descriptor.c
lib/libavb/avb_slot_verify.c
lib/libavb/avb_util.c
lib/linux_compat.c
lib/list_sort.c
lib/lmb.c
lib/lzma/LzmaTools.c
lib/membuff.c
lib/net_utils.c
lib/of_live.c
lib/optee/optee.c
lib/panic.c
lib/physmem.c
lib/qsort.c
lib/rsa/rsa-mod-exp.c
lib/rsa/rsa-verify.c
lib/slre.c
lib/time.c
lib/tpm-common.c
lib/tpm-v1.c
lib/tpm-v2.c
lib/uuid.c
lib/vsprintf.c
net/arp.c
net/bootp.c
net/dns.c
net/eth-uclass.c
net/eth_common.c
net/eth_legacy.c
net/fastboot.c
net/link_local.c
net/mdio-mux-uclass.c
net/mdio-uclass.c
net/net.c
net/nfs.c
net/ping.c
net/rarp.c
net/sntp.c
net/tftp.c
post/cpu/mpc83xx/ecc.c
post/drivers/i2c.c
post/drivers/memory.c
post/lib_powerpc/multi.c
post/post.c
scripts/config_whitelist.txt
scripts/dtc/libfdt/fdt_overlay.c
scripts/dtc/libfdt/libfdt.h
test/bloblist.c
test/cmd_ut.c
test/command_ut.c
test/compression.c
test/dm/acpi.c
test/dm/axi.c
test/dm/blk.c
test/dm/board.c
test/dm/bootcount.c
test/dm/bus.c
test/dm/clk.c
test/dm/core.c
test/dm/cpu.c
test/dm/devres.c
test/dm/dma.c
test/dm/eth.c
test/dm/gpio.c
test/dm/i2c.c
test/dm/mdio.c
test/dm/misc.c
test/dm/mmc.c
test/dm/ofnode.c
test/dm/osd.c
test/dm/phy.c
test/dm/regmap.c
test/dm/regulator.c
test/dm/remoteproc.c
test/dm/reset.c
test/dm/rng.c
test/dm/rtc.c
test/dm/serial.c
test/dm/sf.c
test/dm/syscon.c
test/dm/tee.c
test/dm/test-driver.c
test/dm/test-fdt.c
test/dm/test-main.c
test/dm/test-uclass.c
test/dm/usb.c
test/dm/video.c
test/env/cmd_ut_env.c
test/env/hashtable.c
test/lib/cmd_ut_lib.c
test/lib/lmb.c
test/lib/string.c
test/lib/test_aes.c
test/log/log_test.c
test/log/test-main.c
test/optee/cmd_ut_optee.c
test/overlay/cmd_ut_overlay.c
test/print_ut.c
test/str_ut.c
test/time_ut.c
test/unicode_ut.c
tools/env/fw_env.h
tools/imx8image.c
tools/proftool.c
tools/rkcommon.c

index 8add9d4c2ae9b5effc5c62c1c27d0ae0d854d1d8..9da0459bf747a2cddb88bfa299aee65b80b4f432 100644 (file)
@@ -600,13 +600,16 @@ F:        cmd/usb_*.c
 F:     common/dfu.c
 F:     common/update.c
 F:     common/usb_storage.c
+F:     doc/api/dfu.rst
 F:     drivers/dfu/
 F:     drivers/usb/gadget/
+F:     include/dfu.h
 
 DRIVER MODEL
 M:     Simon Glass <sjg@chromium.org>
 S:     Maintained
 T:     git https://gitlab.denx.de/u-boot/custodians/u-boot-dm.git
+F:     doc/driver-model/
 F:     drivers/core/
 F:     include/dm/
 F:     test/dm/
diff --git a/README b/README
index be9e6391d6b8f90e1151abb5883f4b0a67d56753..17dc0ee33ba23d18f504de11fb5106f91aa328fa 100644 (file)
--- a/README
+++ b/README
@@ -2729,10 +2729,6 @@ Configuration Settings:
        regular expression. This allows multiple variables to define the same
        flags without explicitly listing them for each variable.
 
-- CONFIG_ENV_ACCESS_IGNORE_FORCE
-       If defined, don't allow the -f switch to env set override variable
-       access flags.
-
 The following definitions that deal with the placement and management
 of environment data (variable area); in general, we support the
 following configurations:
index 4fc451a83d1905a9f50faf0d767ce75ed8a19ca7..c7f5db776af9d9e80fe1ac7fcb6718627d48589f 100644 (file)
--- a/api/api.c
+++ b/api/api.c
@@ -11,6 +11,7 @@
 #include <env.h>
 #include <malloc.h>
 #include <env_internal.h>
+#include <linux/delay.h>
 #include <linux/types.h>
 #include <api_public.h>
 #include <u-boot/crc.h>
index 8ae358abb14d04518cfaeae074f72d8c42d4886f..4f2cdd7330e2fd43ffeb472417a3d62f80a591a7 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <api_public.h>
 #include <lcd.h>
+#include <log.h>
 #include <video_font.h> /* Get font width and height */
 
 /* lcd.h needs BMP_LOGO_HEIGHT to calculate CONSOLE_ROWS */
index 7ae03ac2306eb97b806592eee429260a0fe0c21d..a0dacad1a55ec7468573b6f5c7cae5b8abe4214b 100644 (file)
@@ -8,6 +8,7 @@
 #include <config.h>
 #include <common.h>
 #include <api_public.h>
+#include <part.h>
 
 #if defined(CONFIG_CMD_USB) && defined(CONFIG_USB_STORAGE)
 #include <usb.h>
index 91e049b3226d4d901e28718659006ed32db1dbd2..a11f872938d1a48c5eb35a0dc13c23b2a0e653b6 100644 (file)
@@ -86,6 +86,7 @@ config RISCV
 config SANDBOX
        bool "Sandbox"
        select BOARD_LATE_INIT
+       select BZIP2
        select DM
        select DM_GPIO
        select DM_I2C
@@ -94,6 +95,7 @@ config SANDBOX
        select DM_SERIAL
        select DM_SPI
        select DM_SPI_FLASH
+       select GZIP_COMPRESSED
        select HAVE_BLOCK_DEVICE
        select LZO
        select OF_BOARD_SETUP
index 516c14e105b1d90c3702a9382e8185b7a2258316..a9f54f61e0cc7c4acc35d8ee7f8cd5c7b176a7a5 100644 (file)
 #define ARC_AUX_SUBSYS_BUILD   0xF0
 
 #ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+
 /* Accessors for auxiliary registers */
 #define read_aux_reg(reg)      __builtin_arc_lr(reg)
 
index d38c18ef8f436ab629b628e7c7e17b91b6219259..63d6207c04778236c5ba2fab075d924ddd49b877 100644 (file)
@@ -3,9 +3,14 @@
  * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
  */
 
+#include <common.h>
+#include <bootstage.h>
+#include <env.h>
+#include <image.h>
 #include <irq_func.h>
+#include <lmb.h>
+#include <log.h>
 #include <asm/cache.h>
-#include <common.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 8a1d67870a82d629b7e51fda124ee632ef917145..85651b219cf8eee8f5808f5d33a1f1d673282893 100644 (file)
@@ -6,6 +6,7 @@
 #include <config.h>
 #include <common.h>
 #include <cpu_func.h>
+#include <linux/bitops.h>
 #include <linux/compiler.h>
 #include <linux/kernel.h>
 #include <linux/log2.h>
index 83246550ec1250ecac153d131939b8f5491ad8b5..27b5832a0c9652adab69cabf97d57c034e9e5869 100644 (file)
@@ -4,10 +4,12 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <malloc.h>
 #include <vsprintf.h>
 #include <asm/arcregs.h>
 #include <asm/cache.h>
+#include <linux/bitops.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index c853f25d34a06a1a65bb0d7990180fab1f53aab5..023eae190759938d6f64132003f7dd52049d6086 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright (C) 2013-2015 Synopsys, Inc. All rights reserved.
  */
 
+#include <init.h>
 #include <asm/cache.h>
 #include <common.h>
 
index 4ffba84eeb3ec2a3d022111f0b4f52182f947de7..6882ebec6d883d5ba69e333dcf27e98a45a01ad3 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <elf.h>
+#include <log.h>
 #include <asm-generic/sections.h>
 
 extern ulong __image_copy_start;
index 30dd4b5238b26ebfcb7ac655201b089c547881b8..fbb56ec83af0134145864b18e26afff5fde95ab5 100644 (file)
@@ -13,7 +13,7 @@ __weak void reset_cpu(ulong addr)
        __builtin_arc_brk();
 }
 
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        printf("Resetting the board...\n");
 
index ef7da2787796b2ee84a1015cb01f164d4523d0cd..21df1c415f58897caa6575c14057612669d6a9d1 100644 (file)
@@ -1582,6 +1582,7 @@ config ARCH_UNIPHIER
        bool "Socionext UniPhier SoCs"
        select BOARD_LATE_INIT
        select DM
+       select DM_ETH
        select DM_GPIO
        select DM_I2C
        select DM_MMC
index 177d1f40b93f96efc729238873c939264babfd08..ffe35111d589729c7cb94c8580f46254e0725883 100644 (file)
@@ -18,6 +18,7 @@
 #include <command.h>
 #include <cpu_func.h>
 #include <irq_func.h>
+#include <asm/cache.h>
 #include <asm/system.h>
 
 static void cache_flush(void);
index 3f6af6f5a3632a73154b70aaf8ce696fa823d513..a3d4f14796234df8b6b3c3441afb508a8bb8d3a4 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <div64.h>
+#include <init.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/clock.h>
 #include <asm/io.h>
index 3d07ee68094465dfb1c7a9c00d1d8094caf60992..a913860491cb02e6ac33ebb337cb658bb4c7d411 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/io.h>
 
index 45bf49b5ac7372e15fda825b427637c89201c7ab..e6fff5b2207b0ddd10cb69ab4f980f2a8df58344 100644 (file)
@@ -8,7 +8,10 @@
 
 #include <common.h>
 #include <clock_legacy.h>
+#include <command.h>
 #include <div64.h>
+#include <init.h>
+#include <net.h>
 #include <asm/io.h>
 #include <linux/errno.h>
 #include <asm/arch/imx-regs.h>
@@ -377,8 +380,8 @@ u32 imx_get_fecclk(void)
 }
 #endif
 
-int do_mx35_showclocks(cmd_tbl_t *cmdtp,
-       int flag, int argc, char * const argv[])
+int do_mx35_showclocks(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        u32 cpufreq = get_mcu_main_clk();
        printf("mx35 cpu clock: %dMHz\n", cpufreq / 1000000);
index c1cdf35fb25bdd6dfb78be1c9bff24ee336bbf8f..f2541c398d89c4a6455aac8986efd7b355dd9d41 100644 (file)
@@ -7,9 +7,11 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/crm_regs.h>
+#include <asm/ptrace.h>
 
 /* General purpose timers bitfields */
 #define GPTCR_SWR       (1<<15)        /* Software reset */
index 4829c996be880839bd85ef1713320dc29f4be335..892bb06db10e01220e51efa68dfdccfc0285ec40 100644 (file)
@@ -12,7 +12,9 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <time.h>
+#include <linux/delay.h>
 #include <linux/types.h>
 #include <asm/arch/ep93xx.h>
 #include <asm/io.h>
index 21129a7901c5ef0c784bdbf2242648a238938418..e9d55779214b64f47a348476f08070668e10b1a9 100644 (file)
@@ -18,6 +18,7 @@
 #if defined (CONFIG_IMX)
 
 #include <asm/arch/imx-regs.h>
+#include <linux/delay.h>
 
 int timer_init (void)
 {
@@ -48,7 +49,7 @@ ulong get_timer (ulong base)
        return get_timer_masked() - base;
 }
 
-void __udelay (unsigned long usec)
+void __udelay(unsigned long usec)
 {
        ulong endtime = get_timer_masked() + usec;
        signed long diff;
index 0c81de7e36a99e4e6f846e41f64cc78c15ec759f..96726b3144ecfccb9154435a8f5181024b62b165 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/armada100.h>
 
index f4e1f0db0943502cc80216cc186a2f363e68fa65..da0615faf1591f6f8047d652b7a528aafa65702c 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/armada100.h>
 
index f4962ec45f984de32ee5733e1efba8393a18adc1..0f1e68c8355f64c8303f2858562a3fdaf2cedf6c 100644 (file)
@@ -8,9 +8,11 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
 #include <time.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/armada100.h>
+#include <linux/delay.h>
 
 /*
  * Timer registers
index 7b7eaaf31df8e231059cdabd6ac58ec427c676d6..acab9bccc01ad44e8e5150790ff3a7f38af54054 100644 (file)
@@ -4,6 +4,7 @@
  * Ilya Yanok, EmCraft Systems
  */
 #include <cpu_func.h>
+#include <asm/cache.h>
 #include <linux/types.h>
 #include <common.h>
 
index 6ab320da7d935d82de597b4b26ea0b92f37958f2..93d7a02ed4c212aaa8dc9a549b789943efaaef6b 100644 (file)
@@ -16,6 +16,7 @@
 #include <command.h>
 #include <cpu_func.h>
 #include <irq_func.h>
+#include <asm/cache.h>
 #include <asm/system.h>
 
 static void cache_flush(void);
index 09bda0e3398e38ce6cb0498f144e03917c5f9673..8f6cd4dc19b20e254511bae58c89e24f720f37df 100644 (file)
@@ -11,6 +11,8 @@
 #include <common.h>
 #include <clock_legacy.h>
 #include <div64.h>
+#include <init.h>
+#include <net.h>
 #include <netdev.h>
 #include <vsprintf.h>
 #include <asm/io.h>
index 04698fe563991ded651fa85e77c5d0e017af1efd..4b726d5c73f06547aa6b1f19814547b967cb4396 100644 (file)
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
+#include <asm/ptrace.h>
 
 /* nothing really to do with interrupts, just starts up a counter. */
 /* The 32KHz 32-bit timer overruns in 134217 seconds */
index 9bed0e91bea670b085a007e2807ff7b9aac0a900..a003ab816a0840636c15a116ceca7287aef54d38 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <div64.h>
+#include <net.h>
 #include <netdev.h>
 #include <vsprintf.h>
 #include <asm/io.h>
index f51f0df8ec78a1ba2d4e469812c69fa97f5141f9..408e88aa129e9594a77143d41e629ebad5addd11 100644 (file)
 
 #include <common.h>
 #include <div64.h>
+#include <init.h>
 #include <time.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
+#include <asm/ptrace.h>
+#include <linux/delay.h>
 
 /* General purpose timers bitfields */
 #define GPTCR_SWR              (1 << 15)       /* Software reset       */
index 43d044d917beee5b5cf8d9c46ae495a4b4cde447..4e1cf3a1e32bbcdb7cf0cae6524f29c60490ad9e 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
index 16c080a1e159c7c34003254e85f44c125cad01d5..12ebc1c8029f68653ecf2685d0c64c8d75ace8ac 100644 (file)
  */
 
 #include <common.h>
+#include <command.h>
 #include <cpu_func.h>
 #include <hang.h>
+#include <init.h>
+#include <net.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
@@ -185,7 +189,8 @@ int print_cpuinfo(void)
 }
 #endif
 
-int do_mx28_showclocks(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_mx28_showclocks(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        printf("CPU:   %3d MHz\n", mxc_get_clock(MXC_ARM_CLK) / 1000000);
        printf("BUS:   %3d MHz\n", mxc_get_clock(MXC_AHB_CLK) / 1000000);
index 9168b91f27af1ae10dbb5c6b7cab6aba383d7a32..565392eab5647ddb2c6f516268b34076fed350dd 100644 (file)
@@ -8,6 +8,8 @@
 
 #include <common.h>
 #include <config.h>
+#include <init.h>
+#include <log.h>
 #include <serial.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
index cfd6c4a10f30a70e2271d580c8fafab995f3ccdc..2cfbd780953d96f09a9a134d5bc19e388b7d5937 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <config.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 
index 542543cc2857a416e5a64d2df79f1699a092bf94..a94803ee93d93d77379c47472a7c11c4149d7ccd 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <config.h>
 #include <init.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/sys_proto.h>
index 7c57cab0b13241ccd546d0f68d6eedc185715a74..35ea71a5ba89dd58210245f5255a2624cbdf8517 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <config.h>
 #include <hang.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 
index 226401dd6e2c4679d186983164c9f82566c65908..5ab4ed0c5a3da057a52ed4bc41a2b726d26e2866 100644 (file)
  */
 
 #include <common.h>
+#include <init.h>
 #include <time.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/sys_proto.h>
+#include <linux/delay.h>
 
 /* Maximum fixed count */
 #if defined(CONFIG_MX23)
index 51c4a730f4072ae8deaea94f8f23753570ad9aa0..21065410746b4622590f1011f5eda841a29bbf64 100644 (file)
@@ -5,6 +5,8 @@
  */
 
 #include <common.h>
+#include <command.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/spr_misc.h>
@@ -80,7 +82,7 @@ int print_cpuinfo(void)
 #endif
 
 #if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_NAND_ECC_BCH) && defined(CONFIG_NAND_FSMC)
-static int do_switch_ecc(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_switch_ecc(struct cmd_tbl *cmdtp, int flag, int argc,
                         char *const argv[])
 {
        if (argc != 2)
index 3b884cd0d3cd630e36536d21bc3605d97abc2c7b..a316540d52a8273a08d3f2d0a9096123bd2283ca 100644 (file)
@@ -9,6 +9,7 @@
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/spr_syscntl.h>
+#include <linux/delay.h>
 
 void reset_cpu(ulong ignored)
 {
index a919a455eb0279cc222154eedc4727459a173035..08b98a2d068357df75fc72cdf40561dd5d3ae4ba 100644 (file)
@@ -7,9 +7,11 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <spl.h>
 #include <version.h>
 #include <asm/io.h>
+#include <asm/ptrace.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/spr_defs.h>
 #include <asm/arch/spr_misc.h>
index d5be646555e170d820942ae1ed63ed8ed7519c19..998423b6525c9e622e1bb03985111e73c4a49fbb 100644 (file)
@@ -182,7 +182,8 @@ static int write_mac(uchar *mac)
 }
 #endif
 
-int do_chip_config(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_chip_config(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        void (*sram_setfreq) (unsigned int, unsigned int);
        unsigned int frequency;
index 28c09e9fd67c99d7ecece6753399789175743d69..dd0f15c0ceee51cc5e3ebba358a02be2a144ab54 100644 (file)
@@ -5,11 +5,14 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <time.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/spr_gpt.h>
 #include <asm/arch/spr_misc.h>
+#include <asm/ptrace.h>
+#include <linux/delay.h>
 
 #define GPT_RESOLUTION (CONFIG_SPEAR_HZ_CLOCK / CONFIG_SPEAR_HZ)
 #define READ_TIMER()   (readl(&gpt_regs_p->count) & GPT_FREE_RUNNING)
index 2eb571050a33aa8911e616893da470f84dd6e889..871629c2333b2b782fbf0ebd9a9978d7992f5b3c 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <time.h>
 #include <asm/io.h>
 #include <div64.h>
index 72f8eb7222fbae795fb7e560640a3e55f35a9a1e..d7edefee23184ceaa907876f9685732ad4a8df66 100644 (file)
@@ -10,7 +10,9 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <bitfield.h>
 #include <asm/arch/sysmap.h>
index ac475b6dc32761b85ed34da4a3edb86c8cf89107..ace384dea782fbbf4a967c69245989d990a43328 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <linux/stddef.h>
+#include <linux/stringify.h>
 
 #ifdef CONFIG_CLK_DEBUG
 #undef writel
index 618af709fa5a9f5a07258567bd81d7353f7f3a1e..209ceca9a06e4b1c4058c2e2e69b2f13cdc1893e 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/arch/sysmap.h>
 #include <asm/kona-common/clk.h>
index 6a36f948f03c8e52829fa4c54867846c787c2044..26b673a5405e26e7e8d04d5ef954edf41df1d8e3 100644 (file)
@@ -10,7 +10,9 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <bitfield.h>
 #include <asm/arch/sysmap.h>
index a736ae9e62d519aaac98b7bee70fe2e7fc813f36..f0fbff081d0270e3149739eef0f288a8b26dca5b 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <linux/stddef.h>
+#include <linux/stringify.h>
 
 #ifdef CONFIG_CLK_DEBUG
 #undef writel
index 618af709fa5a9f5a07258567bd81d7353f7f3a1e..209ceca9a06e4b1c4058c2e2e69b2f13cdc1893e 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/arch/sysmap.h>
 #include <asm/kona-common/clk.h>
index 99eb7db3426ca95f94112483ea90d225ea75bff3..146cf526089f3440dbf525edefd737d46e4fad8e 100644 (file)
@@ -5,6 +5,7 @@
  * Aneesh V <aneesh@ti.com>
  */
 #include <cpu_func.h>
+#include <asm/cache.h>
 #include <linux/types.h>
 #include <common.h>
 #include <asm/armv7.h>
index 6648aed291e96b51b06d28fa925e370003df0ef0..f6d25bb682c707b4aa8eb52fe5c9a9fd1a02a8a0 100644 (file)
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <bootm.h>
 #include <cpu_func.h>
+#include <log.h>
 #include <asm/armv7.h>
 #include <asm/secure.h>
 #include <asm/setjmp.h>
index a5445338cb780b825862bbffc441cd1a9f89486f..896d2f9569427b5040514996c254d05afd49d0c0 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <asm/cache.h>
 
 #if !CONFIG_IS_ENABLED(SYS_DCACHE_OFF)
 void enable_caches(void)
index 668b5e11a688ec37536765c06f72b909e7651791..a4255a44c00138ba5e4746bad00b5a580349bf3a 100644 (file)
@@ -5,10 +5,12 @@
 
 #include <common.h>
 #include <div64.h>
+#include <init.h>
 #include <time.h>
 #include <asm/io.h>
 #include <asm/iproc-common/timer.h>
 #include <asm/iproc-common/sysmap.h>
+#include <linux/delay.h>
 
 static inline uint64_t timer_global_read(void)
 {
index 6bf89e07d873d5a0aec7db2d0b3bd2e07808f60c..cfc7c9fbc64bb6b4bcb6c0c4f8a92b88aa26645e 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <asm/cache.h>
 #include <linux/sizes.h>
 
 #if !CONFIG_IS_ENABLED(SYS_DCACHE_OFF)
index 664c9c1f4de9b7793ff8576515f94a69162a3df0..91e988217ad4a63514d5c744c057212df97e78d6 100644 (file)
@@ -5,6 +5,8 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
+#include <net.h>
 #include <vsprintf.h>
 #include <asm/arch/clock.h>
 #include <asm/io.h>
@@ -16,6 +18,7 @@
 #include <fsl_esdhc.h>
 #include <config.h>
 #include <fsl_wdog.h>
+#include <linux/delay.h>
 
 #include "fsl_epu.h"
 
index 16ab8676fe4dfd2c611370d06695a9a95519b7c7..56ca7b01641e6d2af1bdb506b25012e930095a40 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <clock_legacy.h>
+#include <net.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <asm/io.h>
index a779d337399a5195f170a044bb9a06fea296111c..8a95ee86a9b74b2ba917447a1d71587605c24eff 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/arch/clock.h>
 #include <asm/io.h>
 #include <asm/arch/fsl_serdes.h>
index a5f4e31ac70bc27bd4679d38053d8e0f1eb9db2c..2a32b30999fec7d4e8bcf4c4c1b4d6099fff3175 100644 (file)
@@ -4,11 +4,13 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <time.h>
 #include <asm/io.h>
 #include <div64.h>
 #include <asm/arch/immap_ls102xa.h>
 #include <asm/arch/clock.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 6deecfdc23899fd7dae955f13bd8c3c466b61d03..57ab640e26331b21dc96abd91d5726663a28757a 100644 (file)
@@ -12,6 +12,7 @@
 #include <asm/armv7.h>
 #include <asm/system.h>
 #include <asm/barriers.h>
+#include <linux/bitops.h>
 #include <linux/compiler.h>
 
 #include <asm/armv7_mpu.h>
index 5f4076d6b701b399710b17093400dbc0cb380e79..7790f087a09d4d79a76ca0c2d56205dd0fb8f15d 100644 (file)
@@ -5,6 +5,7 @@
  */
 #include <common.h>
 #include <fdtdec.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/clk.h>
 
index e54cfb06dcbf1d08a31ae090191fe853d37181a2..3064fd25d4d04424a59ee1a44609c41df96563c4 100644 (file)
@@ -8,10 +8,12 @@
 
 #include <common.h>
 #include <div64.h>
+#include <init.h>
 #include <time.h>
 #include <asm/io.h>
 #include <asm/arch/pwm.h>
 #include <asm/arch/clk.h>
+#include <linux/delay.h>
 
 /* Use the old PWM interface for now */
 #undef CONFIG_DM_PWM
index 008e271dccfbbe09047c3638ec2a7a95073c7aee..fb67de10f48347db0abc1d48ae627bcd911326a2 100644 (file)
@@ -8,6 +8,7 @@
 #include <cpu_func.h>
 #include <asm/io.h>
 #include <asm/arch/stv0991_wdru.h>
+#include <linux/delay.h>
 void reset_cpu(ulong ignored)
 {
        puts("System is going to reboot ...\n");
index 695bdd7a5cc0a87da08403039fc1337a06d5fe55..919529aa1b030aa098627f6872501e71568d05d7 100644 (file)
@@ -5,11 +5,13 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <time.h>
 #include <asm/io.h>
 #include <asm/arch-stv0991/hardware.h>
 #include <asm/arch-stv0991/stv0991_cgu.h>
 #include <asm/arch-stv0991/stv0991_gpt.h>
+#include <linux/delay.h>
 
 static struct stv0991_cgu_regs *const stv0991_cgu_regs = \
                                (struct stv0991_cgu_regs *) (CGU_BASE_ADDR);
index 2c5d99e9acda4bab5c29ad680299106a28a6b571..1ac50f558a40956eff6e33be4413bbfedc3cabfe 100644 (file)
@@ -8,6 +8,7 @@
  */
 #include <config.h>
 #include <common.h>
+#include <asm/cache.h>
 
 #include <asm/arch/cpu.h>
 #include <asm/arch/cpucfg.h>
index 6bda5fbbb6610a99d65952910ddb7bdfa78a1399..65b64b5ac75bdd0b00f98a2c255839e96c56d2ca 100644 (file)
@@ -6,9 +6,11 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <time.h>
 #include <asm/io.h>
 #include <asm/arch/timer.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 6698b821d0e1b03068d48b4f8edf08c6b8506d91..fd2ab37a8fe473225c276932c05e6980974e3dba 100644 (file)
@@ -5,7 +5,11 @@
 
 #include <common.h>
 #include <clock_legacy.h>
+#include <command.h>
 #include <cpu_func.h>
+#include <init.h>
+#include <net.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/clock.h>
@@ -237,8 +241,8 @@ unsigned int mxc_get_clock(enum mxc_clock clk)
 }
 
 /* Dump some core clocks */
-int do_vf610_showclocks(cmd_tbl_t *cmdtp, int flag, int argc,
-                        char * const argv[])
+int do_vf610_showclocks(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        printf("\n");
        printf("cpu clock : %8d MHz\n", mxc_get_clock(MXC_ARM_CLK) / 1000000);
index f858de953d4316b80d400f5fccb37c4f9ac88115..fa8f8fae10a0eb25e977a6c141abfb3743f3bc84 100644 (file)
@@ -4,11 +4,13 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <time.h>
 #include <asm/io.h>
 #include <div64.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/clock.h>
+#include <linux/delay.h>
 
 static struct pit_reg *cur_pit = (struct pit_reg *)PIT_BASE_ADDR;
 
index 204187c1b4b3a39b31fd69e62e016d917c80e95f..61c82f64699c838494cb40f09338c907c76086de 100644 (file)
@@ -17,6 +17,7 @@
 
 #include <common.h>
 #include <errno.h>
+#include <log.h>
 #include <stdio_dev.h>
 #include <linux/ctype.h>
 #include <linux/types.h>
index 26c93393cd7a6e2132d5327753bce05c592ef1b8..5ffeca13d91341d5e2b40f03f44b0076a7b990bb 100644 (file)
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <asm/armv7.h>
+#include <asm/cache.h>
 #include <asm/gic.h>
 #include <asm/io.h>
 #include <asm/secure.h>
index 735369855795863368ed0e6de7c016f940c12758..d1aecf6a85cfdfebf48c832f65c0952a971e8860 100644 (file)
@@ -7,8 +7,11 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <errno.h>
+#include <log.h>
 #include <asm/armv7m.h>
+#include <asm/cache.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 /* Cache maintenance operation registers */
 
index 5c310d306d0e1fff1acf6de1713a39aeedc09801..d2672fd40cdb9157007b98c3132c72387fe776de 100644 (file)
  */
 
 #include <common.h>
+#include <init.h>
 #include <time.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 6a5518f9de82db7ac03e275b0266fb9ae5418222..7c31d98a6f03157af1d72f28fe9c0162cdb7d02f 100644 (file)
@@ -10,6 +10,8 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <hang.h>
+#include <log.h>
+#include <asm/cache.h>
 #include <asm/system.h>
 #include <asm/armv8/mmu.h>
 
@@ -555,7 +557,7 @@ static u64 set_one_region(u64 start, u64 size, u64 attrs, bool flag, int level)
 void mmu_set_region_dcache_behaviour(phys_addr_t start, size_t size,
                                     enum dcache_option option)
 {
-       u64 attrs = PMD_ATTRINDX(option);
+       u64 attrs = PMD_ATTRINDX(option >> 2);
        u64 real_start = start;
        u64 real_size = size;
 
index 267abb83e8f1e030179aed4bb88d706903ad0d81..97d4473a68686960e241aa8edb0ef96dcdc98678 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <asm/cache.h>
 #include <asm/psci.h>
 #include <asm/system.h>
 #include <asm/armv8/sec_firmware.h>
index 35752037bcf1f825460d1fa5c53bb47758d38cf9..ea40c55dd2c080c18b8e2bf5e26063128c4e8acb 100644 (file)
@@ -14,6 +14,7 @@
 #include <command.h>
 #include <cpu_func.h>
 #include <irq_func.h>
+#include <asm/cache.h>
 #include <asm/system.h>
 #include <asm/secure.h>
 #include <linux/compiler.h>
index 9c1f4a8ca8b15ecc76d573d94cd39697a8c3475a..b11936548fb3ed08faa577b4dd4dca598c7bc9e3 100644 (file)
@@ -11,6 +11,8 @@
 #include <common.h>
 #include <bootm.h>
 #include <cpu_func.h>
+#include <log.h>
+#include <asm/cache.h>
 #include <asm/setjmp.h>
 
 /**
index 2cf3f4bb986d563023389f0d6b5c23b159cf05d5..3fcedd53ff43befba54acd83106949d16fd45a2c 100644 (file)
 #include <fsl_ddr_sdram.h>
 #include <init.h>
 #include <hang.h>
+#include <log.h>
+#include <net.h>
 #include <vsprintf.h>
+#include <asm/cache.h>
 #include <asm/io.h>
+#include <asm/ptrace.h>
 #include <linux/errno.h>
 #include <asm/system.h>
 #include <fm_eth.h>
index 0696ea6d35746a8b88a905b67ce9a79fb3ad2e8a..9c7546028a1c01b2a2a5184bc12dbe3d7fcc5a99 100644 (file)
@@ -7,6 +7,8 @@
 #include <common.h>
 #include <clock_legacy.h>
 #include <efi_loader.h>
+#include <log.h>
+#include <asm/cache.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <phy.h>
index cb64cc2db81bbbda06d4ec26fea96ac13846b8b2..41c89b8904eea2bb4190ca4659f52c224b11d22d 100644 (file)
@@ -4,7 +4,9 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/arch/fsl_serdes.h>
 #include <asm/arch/soc.h>
index d143864af1cd263454e5cf97bf0bcf0fb0da7fdc..aa6fd6b28ce1627c7169f1381e31ed22c5d314cc 100644 (file)
@@ -5,7 +5,11 @@
  */
 
 #include <common.h>
+#include <env.h>
+#include <log.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/arch/fsl_serdes.h>
 #include <asm/arch/soc.h>
index 8110412da60381d5b03d086871c71135110bb24b..49df8b37900e442181ae871051e92c70d0b8bbc0 100644 (file)
@@ -4,6 +4,8 @@
  */
 
 #include <common.h>
+#include <fdt_support.h>
+#include <log.h>
 #include <asm/arch-fsl-layerscape/immap_lsch3.h>
 #include <asm/arch-fsl-layerscape/fsl_icid.h>
 #include <asm/arch-fsl-layerscape/fsl_portals.h>
index ca07c68863b8b90376ecf90fa437638de960c018..1ea887b3319f89b288f8699e405189c7a33f3276 100644 (file)
@@ -5,10 +5,13 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <image.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/system.h>
 #include <asm/arch/mp.h>
 #include <asm/arch/soc.h>
+#include <linux/delay.h>
 #include "cpu.h"
 #include <asm/arch-fsl-layerscape/soc.h>
 
@@ -258,7 +261,7 @@ int cpu_status(u32 nr)
        return 0;
 }
 
-int cpu_release(u32 nr, int argc, char * const argv[])
+int cpu_release(u32 nr, int argc, char *const argv[])
 {
        u64 boot_addr;
        u64 *table = (u64 *)get_spin_tbl_addr();
index d391f93041528b7591baafaf4162abfe70def8b2..1ddb267093cb07165c647b1a29865c12041ed7f9 100644 (file)
@@ -3,9 +3,11 @@
  * Copyright 2016 NXP Semiconductor, Inc.
  */
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 #include <config.h>
 #include <errno.h>
+#include <asm/cache.h>
 #include <asm/system.h>
 #include <asm/types.h>
 #include <asm/arch/soc.h>
index 28bb1d740142aabd0f7bfe10c675497fd45bb3b5..ad7ea0593506b74b7d28da657d99cff56a61497f 100644 (file)
 #include <fsl_ifc.h>
 #include <init.h>
 #include <linux/sizes.h>
+#include <log.h>
 #include <asm/arch/fsl_serdes.h>
 #include <asm/arch/soc.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/global_data.h>
 #include <asm/arch-fsl-layerscape/config.h>
index accad6e8ae75b6a488fd22dd5413ab16dc81bde4..77724336d62c1c7dc5be5a39dfb3927a7606b9c0 100644 (file)
@@ -7,7 +7,11 @@
 #include <clock_legacy.h>
 #include <cpu_func.h>
 #include <env.h>
+#include <image.h>
+#include <init.h>
+#include <log.h>
 #include <spl.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <fsl_ifc.h>
 #include <i2c.h>
index cbd35b7f4a2a89d19b02139fc4c15d0ce8e81265..b29bc30fc253dd415aba3d3858a94f336e379bab 100644 (file)
@@ -8,8 +8,10 @@
 #include <asm-offsets.h>
 #include <config.h>
 #include <version.h>
+#include <asm/cache.h>
 #include <asm/macro.h>
 #include <asm/psci.h>
+#include <asm/ptrace.h>
 #include <asm/system.h>
 
 /*
index 46e63294fef016254ceefd1ec1d787015f250fd4..e23629ab0bc3eb2c70f09eb996d0f9ac728848e7 100644 (file)
@@ -5,9 +5,11 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
 #include <command.h>
 #include <time.h>
 #include <asm/system.h>
+#include <linux/bitops.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index c549ddb335225a78cb58cdc0c6488b78a283f7fe..5183e00a44cb14ee635294c89194d0a69280fbc0 100644 (file)
@@ -6,9 +6,11 @@
 
 #include <common.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <asm/arch/pinmux.h>
+#include <linux/bitops.h>
 
 struct hi6220_pinmux0_regs *pmx0 =
        (struct hi6220_pinmux0_regs *)HI6220_PINMUX0_BASE;
index b5a9513eadc345c94be3bb30c7b39d2b67ade024..8ee3adc8058491a4ca1bda0057b1feef0f5a104a 100644 (file)
@@ -5,11 +5,14 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/system.h>
 #include <asm/armv8/mmu.h>
 #include <asm/io.h>
 #include <asm/arch/mc_me_regs.h>
+#include <linux/bitops.h>
 #include "cpu.h"
 
 u32 cpu_mask(void)
index ec4641dcdbe2bf20851139875fe17022cd735c42..bc07dae318b5946ea39209d04d1be0aeea3ae44c 100644 (file)
@@ -6,6 +6,8 @@
 #include <common.h>
 #include <clock_legacy.h>
 #include <cpu_func.h>
+#include <init.h>
+#include <net.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/clock.h>
index 95ea57d571b1494c1819004ad3ce124ec4034388..bfc0fac3eff2b76b92eb20b3484a86995a308ae9 100644 (file)
@@ -6,6 +6,11 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <errno.h>
+#include <fdt_support.h>
+#include <image.h>
+#include <log.h>
+#include <asm/cache.h>
+#include <asm/ptrace.h>
 #include <linux/kernel.h>
 #include <asm/io.h>
 #include <asm/system.h>
index d4dfe7f6d85c062724b251d31977e91f0b690f55..a2ec5e28c7dcef6236258f547909ced3eeb1eedf 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <cpu_func.h>
+#include <asm/cache.h>
 #include <linux/types.h>
 #include <common.h>
 
index 5379e13e2b26b385deb2ad85f57e575d9402019b..0d9542f998e439124b2d283d412c2194212f1a62 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
 #include <errno.h>
 #include <linux/compiler.h>
index 002ff7988b90b7eb8695fe2ed9622024947171d5..ea91d8aaec2bbf90e4c13281271f23a96057285a 100644 (file)
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
 #include <irq_func.h>
 #include <asm/arch/pxa-regs.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/system.h>
 #include <command.h>
index 169fed808ba89b7fbda2ebc22fb39b03f0cc01a9..8e9d610441ee85e463e4f1b9ee7ebc3e4038974e 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
 
 int timer_init(void)
index 80a5977415502d2301ead921cdbfc6ebeb14dfad..13e010d91ec4ede75418fb74925267d87af75574 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <linux/delay.h>
 
 #if defined(CONFIG_USB_OHCI_NEW) && defined(CONFIG_SYS_USB_OHCI_CPU_INIT)
 # if defined(CONFIG_CPU_MONAHANS) || defined(CONFIG_CPU_PXA27X)
index 8e20c96bcda1dfb7b4850534f5be0caf4b1cea66..a5cdaf5a66c4593f2b967031445cb9a9babec669 100644 (file)
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <SA-1100.h>
 #include <time.h>
+#include <linux/delay.h>
 
 static ulong get_timer_masked (void)
 {
@@ -23,7 +24,7 @@ ulong get_timer (ulong base)
        return get_timer_masked ();
 }
 
-void __udelay (unsigned long usec)
+void __udelay(unsigned long usec)
 {
        ulong tmo;
        ulong endtime;
index ca663a86f2db8582a07c39af7287fbd7cd6e7b2d..12ec6c71dc5eb598e67c63bd7b0583bcd04a0a53 100644 (file)
@@ -374,16 +374,27 @@ dtb-$(CONFIG_ARCH_LS1021A) += ls1021a-qds-duart.dtb \
        ls1021a-twr-duart.dtb ls1021a-twr-lpuart.dtb \
        ls1021a-iot-duart.dtb ls1021a-tsn.dtb
 dtb-$(CONFIG_FSL_LSCH3) += fsl-ls2080a-qds.dtb \
+       fsl-ls2080a-qds-42-x.dtb \
        fsl-ls2080a-rdb.dtb \
        fsl-ls2081a-rdb.dtb \
        fsl-ls2088a-rdb-qspi.dtb \
        fsl-ls1088a-rdb.dtb \
        fsl-ls1088a-qds.dtb \
+       fsl-ls1088a-qds-21-x.dtb \
+       fsl-ls1088a-qds-29-x.dtb \
        fsl-ls1028a-rdb.dtb \
        fsl-ls1028a-qds-duart.dtb \
        fsl-ls1028a-qds-lpuart.dtb \
        fsl-lx2160a-rdb.dtb \
-       fsl-lx2160a-qds.dtb
+       fsl-lx2160a-qds.dtb \
+       fsl-lx2160a-qds-3-x-x.dtb \
+       fsl-lx2160a-qds-3-11-x.dtb \
+       fsl-lx2160a-qds-7-x-x.dtb \
+       fsl-lx2160a-qds-7-11-x.dtb \
+       fsl-lx2160a-qds-19-x-x.dtb \
+       fsl-lx2160a-qds-19-11-x.dtb \
+       fsl-lx2160a-qds-20-x-x.dtb \
+       fsl-lx2160a-qds-20-11-x.dtb
 dtb-$(CONFIG_FSL_LSCH2) += fsl-ls1043a-qds-duart.dtb \
        fsl-ls1043a-qds-lpuart.dtb \
        fsl-ls1043a-rdb.dtb \
@@ -766,6 +777,10 @@ dtb-$(CONFIG_RCAR_GEN3) += \
        r8a77990-ebisu-u-boot.dtb \
        r8a77995-draak-u-boot.dtb
 
+ifdef CONFIG_RCAR_GEN3
+DTC_FLAGS += -R 4 -p 0x1000
+endif
+
 dtb-$(CONFIG_RZA1) += \
        r7s72100-gr-peach-u-boot.dtb
 
index fecef88e08094a5e247f54a7b439ea37b588f0c4..6402cf5aca50f59f4538f48e8f67130f767c9dc4 100644 (file)
 };
 
 &qspi {
-       bus-num = <0>;
        status = "okay";
 
-       qflash0: s25fl128s@0 {
+       s25fs512s0: flash@0 {
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
-               spi-max-frequency = <20000000>;
+               spi-max-frequency = <50000000>;
                reg = <0>;
        };
 };
index a357793bfaca5180aa22bddeccd32776c71f465a..88aa24a6d26a82995fe24e6ddab0bb5665c26674 100644 (file)
 };
 
 &qspi {
-       bus-num = <0>;
        status = "okay";
 
-       qflash0: s25fl128s@0 {
+       s25fs512s0: flash@0 {
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
-               spi-max-frequency = <20000000>;
+               spi-max-frequency = <50000000>;
                reg = <0>;
        };
 };
index a330597b6c047ed3969fd7d7cf64dabd66583fbd..910d2a5c778e59c5eeefc57fd95cdfcff2479ef2 100644 (file)
 };
 
 &qspi {
-       bus-num = <0>;
        status = "okay";
 
-       qflash0: s25fl128s@0 {
+       s25fs512s0: flash@0 {
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
-               spi-max-frequency = <20000000>;
+               spi-max-frequency = <50000000>;
                reg = <0>;
        };
 };
index 55155fd32139b415f6e55d5dde78cd55c19ef5ab..3757051b78b74dee1d6fe0cb91b28451af438e1b 100644 (file)
 };
 
 &qspi {
-       bus-num = <0>;
        status = "okay";
 
-       qflash0: s25fl128s@0 {
+       s25fs512s0: flash@0 {
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
-               spi-max-frequency = <20000000>;
+               spi-max-frequency = <50000000>;
                reg = <0>;
        };
 };
index 1125e5753b9583a281246af6c14a5604fbf89a5b..2d70c82a728c2a52b325c2ededfe2b435c3942b6 100644 (file)
                };
 
                qspi: quadspi@1550000 {
-                       compatible = "fsl,vf610-qspi";
+                       compatible = "fsl,ls1021a-qspi";
                        #address-cells = <1>;
                        #size-cells = <0>;
                        reg = <0x0 0x1550000 0x0 0x10000>,
                                <0x0 0x40000000 0x0 0x4000000>;
                        reg-names = "QuadSPI", "QuadSPI-memory";
-                       num-cs = <1>;
-                       big-endian;
                        status = "disabled";
                };
 
index 70e1a6a53f1130cd18f6eab0f4b1ac7d7359626f..884bdad196b31aa12e941fab66a5e6334dfaab63 100644 (file)
 };
 
 &qspi {
-       bus-num = <0>;
        status = "okay";
 
-       qflash0: s25fl128s@0 {
+       s25fl128s0: flash@0 {
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
-               spi-max-frequency = <20000000>;
+               spi-max-frequency = <50000000>;
                reg = <0>;
        };
 };
index 0a959f0f2d2732e7c828cdc8b626c78c33b62c25..f7db44c0fa57ac1e14dd1584949c6520eb9a35bd 100644 (file)
                        status = "disabled";
                };
                qspi: quadspi@1550000 {
-                       compatible = "fsl,vf610-qspi";
+                       compatible = "fsl,ls1021a-qspi";
                        #address-cells = <1>;
                        #size-cells = <0>;
                        reg = <0x0 0x1550000 0x0 0x10000>,
-                               <0x0 0x40000000 0x0 0x4000000>;
+                               <0x0 0x40000000 0x0 0x1000000>;
                        reg-names = "QuadSPI", "QuadSPI-memory";
-                       num-cs = <2>;
-                       big-endian;
                        status = "disabled";
                };
 
index d39159322a5ba88baf19e8e95bda5129fd9479c7..cda05411d881af65a94d09ac074517e72d3ac57c 100644 (file)
 };
 
 &qspi {
-       bus-num = <0>;
        status = "okay";
 
-       qflash0: mt25qu512abb8esf@0 {
+       mt25qu512a0: flash@0 {
                #address-cells = <1>;
                #size-cells = <1>;
-               compatible = "spi-flash";
+               compatible = "jedec,spi-nor";
                spi-max-frequency = <50000000>;
                reg = <0>;
        };
index 76dc397328a198df6aa31596b1f8b1a404d19ec6..fec5c8ddb23ac2e3968fbcc8081e9a3d60b3f5ab 100644 (file)
 };
 
 &qspi {
-       bus-num = <0>;
        status = "okay";
 
-       qflash0: s25fl128s@0 {
+       s25fs512s0: flash@0 {
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
-               spi-max-frequency = <20000000>;
+               spi-max-frequency = <50000000>;
                reg = <0>;
        };
 };
index cac65a7afad9fd36ba83a431fd4e94cf21cbb277..464129291c91d43fb86a4a7c8e1e1fe3a193bb06 100644 (file)
 };
 
 &qspi {
-       bus-num = <0>;
        status = "okay";
 
-       qflash0: s25fs512s@0 {
+       s25fs512s0: flash@0 {
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
@@ -32,7 +31,7 @@
                reg = <0>;
        };
 
-       qflash1: s25fs512s@1 {
+       s25fs512s1: flash@1 {
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
index 4e91d5c9956392d5c1d6460d534b9867bae06760..8673a5db2af8ebc6c4b7467137bf88bf9e1af4c4 100644 (file)
                };
 
                qspi: quadspi@1550000 {
-                       compatible = "fsl,vf610-qspi";
+                       compatible = "fsl,ls1021a-qspi";
                        #address-cells = <1>;
                        #size-cells = <0>;
                        reg = <0x0 0x1550000 0x0 0x10000>,
                                <0x0 0x40000000 0x0 0x10000000>;
                        reg-names = "QuadSPI", "QuadSPI-memory";
-                       num-cs = <4>;
-                       big-endian;
                        status = "disabled";
                };
 
diff --git a/arch/arm/dts/fsl-ls1088a-qds-21-x.dts b/arch/arm/dts/fsl-ls1088a-qds-21-x.dts
new file mode 100644 (file)
index 0000000..a877964
--- /dev/null
@@ -0,0 +1,16 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * NXP LS1088AQDS device tree source for SERDES protocol 21.x
+ *
+ * Copyright 2020 NXP
+ *
+ */
+
+/dts-v1/;
+
+#include "fsl-ls1088a-qds-sd1-21.dtsi"
+
+/ {
+       model = "NXP Layerscape 1088a QDS Board (DTS 21-x)";
+       compatible = "fsl,ls1088a-qds", "fsl,ls1088a";
+};
diff --git a/arch/arm/dts/fsl-ls1088a-qds-29-x.dts b/arch/arm/dts/fsl-ls1088a-qds-29-x.dts
new file mode 100644 (file)
index 0000000..29c4ec5
--- /dev/null
@@ -0,0 +1,16 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * NXP LS1088AQDS device tree source for SERDES protocol 29.x
+ *
+ * Copyright 2020 NXP
+ *
+ */
+
+/dts-v1/;
+
+#include "fsl-ls1088a-qds-sd1-29.dtsi"
+
+/ {
+       model = "NXP Layerscape 1088a QDS Board (DTS 29-x)";
+       compatible = "fsl,ls1088a-qds", "fsl,ls1088a";
+};
diff --git a/arch/arm/dts/fsl-ls1088a-qds-sd1-21.dtsi b/arch/arm/dts/fsl-ls1088a-qds-sd1-21.dtsi
new file mode 100644 (file)
index 0000000..e0a6c04
--- /dev/null
@@ -0,0 +1,30 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * NXP LS1088AQDS device tree source for SERDES block #1 - protocol 21 (0x15)
+ *
+ * Copyright 2020 NXP
+ */
+
+#include "fsl-ls1088a-qds.dtsi"
+
+&dpmac1 {
+       status = "okay";
+       phy-connection-type = "xfi";
+};
+
+&dpmac2 {
+       status = "okay";
+       phy-connection-type = "xfi";
+};
+
+&dpmac4 {
+       status = "okay";
+       phy-handle = <&rgmii_phy1>;
+       phy-connection-type = "rgmii-id";
+};
+
+&dpmac5 {
+       status = "okay";
+       phy-handle = <&rgmii_phy2>;
+       phy-connection-type = "rgmii-id";
+};
diff --git a/arch/arm/dts/fsl-ls1088a-qds-sd1-29.dtsi b/arch/arm/dts/fsl-ls1088a-qds-sd1-29.dtsi
new file mode 100644 (file)
index 0000000..65e9530
--- /dev/null
@@ -0,0 +1,18 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * NXP LS1088AQDS device tree source for SERDES block #1 - protocol 29 (0x1d)
+ *
+ * Copyright 2020 NXP
+ */
+
+#include "fsl-ls1088a-qds.dtsi"
+
+&dpmac1 {
+       status = "okay";
+       phy-connection-type = "xfi";
+};
+
+&dpmac2 {
+       status = "okay";
+       phy-connection-type = "xfi";
+};
index f07d0c6f2748939ffc161d9fab0b761510f79e86..8e64e713aaa06c68120584f1397d231a2449970e 100644 (file)
 // SPDX-License-Identifier: GPL-2.0+ OR X11
 /*
- * NXP ls1088a QDS board device tree source
+ * NXP ls1088a QDS default board device tree source
  *
- * Copyright 2017 NXP
+ * Copyright 2020 NXP
  */
 
 /dts-v1/;
 
-#include "fsl-ls1088a.dtsi"
+#include "fsl-ls1088a-qds.dtsi"
 
 / {
        model = "NXP Layerscape 1088a QDS Board";
        compatible = "fsl,ls1088a-qds", "fsl,ls1088a";
-       aliases {
-               spi0 = &qspi;
-               spi1 = &dspi;
-       };
-};
-
-&i2c0 {
-       status = "okay";
-       u-boot,dm-pre-reloc;
-
-       i2c-mux@77 {
-               compatible = "nxp,pca9547";
-               reg = <0x77>;
-               #address-cells = <1>;
-               #size-cells = <0>;
-
-               i2c@3 {
-                       #address-cells = <1>;
-                       #size-cells = <0>;
-                       reg = <0x3>;
-
-                       rtc@51 {
-                               compatible = "pcf2127-rtc";
-                               reg = <0x51>;
-                       };
-               };
-       };
-};
-
-&ifc {
-       #address-cells = <2>;
-       #size-cells = <1>;
-       /* NOR, NAND Flashes and FPGA on board */
-       ranges = <0 0 0x5 0x80000000 0x08000000
-                       2 0 0x5 0x30000000 0x00010000
-                       3 0 0x5 0x20000000 0x00010000>;
-       status = "okay";
-
-       nor@0,0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
-               compatible = "cfi-flash";
-               reg = <0x0 0x0 0x8000000>;
-               bank-width = <2>;
-               device-width = <1>;
-       };
-
-       nand@2,0 {
-               compatible = "fsl,ifc-nand";
-               #address-cells = <1>;
-               #size-cells = <1>;
-               reg = <0x1 0x0 0x10000>;
-       };
-
-       fpga: board-control@3,0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
-               compatible = "simple-bus", "fsl,ls1088aqds-fpga",
-                               "fsl,fpga-qixis";
-               reg = <0x2 0x0 0x0000100>;
-               bank-width = <1>;
-               device-width = <1>;
-               ranges = <0 2 0 0x100>;
-       };
-};
-
-&dspi {
-       bus-num = <0>;
-       status = "okay";
-
-       dflash0: n25q128a {
-               #address-cells = <1>;
-               #size-cells = <1>;
-               compatible = "jedec,spi-nor";
-               reg = <0>;
-               spi-max-frequency = <1000000>; /* input clock */
-       };
-
-       dflash1: sst25wf040b {
-               #address-cells = <1>;
-               #size-cells = <1>;
-               compatible = "jedec,spi-nor";
-               spi-max-frequency = <3500000>;
-               reg = <1>;
-       };
-
-       dflash2: en25s64 {
-               #address-cells = <1>;
-               #size-cells = <1>;
-               compatible = "jedec,spi-nor";
-               spi-max-frequency = <3500000>;
-               reg = <2>;
-       };
-};
-
-&qspi {
-       bus-num = <0>;
-       status = "okay";
-
-       qflash0: s25fs512s@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
-               compatible = "jedec,spi-nor";
-               spi-max-frequency = <50000000>;
-               reg = <0>;
-       };
-
-       qflash1: s25fs512s@1 {
-               #address-cells = <1>;
-               #size-cells = <1>;
-               compatible = "jedec,spi-nor";
-               spi-max-frequency = <50000000>;
-               reg = <1>;
-        };
-};
-
-&sata {
-       status = "okay";
 };
diff --git a/arch/arm/dts/fsl-ls1088a-qds.dtsi b/arch/arm/dts/fsl-ls1088a-qds.dtsi
new file mode 100644 (file)
index 0000000..a7d0edc
--- /dev/null
@@ -0,0 +1,186 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * NXP ls1088a QDS common board device tree source
+ *
+ * Copyright 2017-2020 NXP
+ */
+
+#include "fsl-ls1088a.dtsi"
+
+/ {
+       aliases {
+               spi0 = &qspi;
+               spi1 = &dspi;
+       };
+};
+
+&emdio1 {
+       status = "okay";
+};
+
+&emdio2 {
+       status = "okay";
+};
+
+&i2c0 {
+       status = "okay";
+       u-boot,dm-pre-reloc;
+
+       fpga@66 {
+               #address-cells = <1>;
+               #size-cells = <0>;
+               compatible = "simple-mfd";
+               reg = <0x66>;
+
+               mux-mdio@54 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       compatible = "mdio-mux-i2creg";
+                       reg = <0x54>;
+                       #mux-control-cells = <1>;
+                       mux-reg-masks = <0x54 0xe0>; // reg 0x54, bits 7:5
+                       mdio-parent-bus = <&emdio1>;
+
+                       mdio@00 {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               reg = <0x00>;
+
+                               rgmii_phy1: ethernet-phy@1 {
+                                       reg = <0x1>;
+                               };
+                       };
+                       mdio@20 {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               reg = <0x20>;
+
+                               rgmii_phy2: ethernet-phy@2 {
+                                       reg = <0x2>;
+                               };
+                       };
+
+                       emdio1_slot1: mdio@40 { /* I/O Slot #1 */
+                               reg = <0x40>;
+                               device-name = "emdio1_slot1";
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                       };
+
+                       emdio1_slot3: mdio@60 { /* I/O Slot #3 */
+                               reg = <0x60>;
+                               device-name = "emdio1_slot3";
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                       };
+               };
+       };
+
+       i2c-mux@77 {
+               compatible = "nxp,pca9547";
+               reg = <0x77>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               i2c@3 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0x3>;
+
+                       rtc@51 {
+                               compatible = "pcf2127-rtc";
+                               reg = <0x51>;
+                       };
+               };
+       };
+};
+
+&ifc {
+       #address-cells = <2>;
+       #size-cells = <1>;
+       /* NOR, NAND Flashes and FPGA on board */
+       ranges = <0 0 0x5 0x80000000 0x08000000
+                       2 0 0x5 0x30000000 0x00010000
+                       3 0 0x5 0x20000000 0x00010000>;
+       status = "okay";
+
+       nor@0,0 {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "cfi-flash";
+               reg = <0x0 0x0 0x8000000>;
+               bank-width = <2>;
+               device-width = <1>;
+       };
+
+       nand@2,0 {
+               compatible = "fsl,ifc-nand";
+               #address-cells = <1>;
+               #size-cells = <1>;
+               reg = <0x1 0x0 0x10000>;
+       };
+
+       fpga: board-control@3,0 {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "simple-bus", "fsl,ls1088aqds-fpga",
+                               "fsl,fpga-qixis";
+               reg = <0x2 0x0 0x0000100>;
+               bank-width = <1>;
+               device-width = <1>;
+               ranges = <0 2 0 0x100>;
+       };
+};
+
+&dspi {
+       bus-num = <0>;
+       status = "okay";
+
+       dflash0: n25q128a {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "jedec,spi-nor";
+               reg = <0>;
+               spi-max-frequency = <1000000>; /* input clock */
+       };
+
+       dflash1: sst25wf040b {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "jedec,spi-nor";
+               spi-max-frequency = <3500000>;
+               reg = <1>;
+       };
+
+       dflash2: en25s64 {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "jedec,spi-nor";
+               spi-max-frequency = <3500000>;
+               reg = <2>;
+       };
+};
+
+&qspi {
+       status = "okay";
+
+       s25fs512s0: flash@0 {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "jedec,spi-nor";
+               spi-max-frequency = <50000000>;
+               reg = <0>;
+       };
+
+       s25fs512s1: flash@1 {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "jedec,spi-nor";
+               spi-max-frequency = <50000000>;
+               reg = <1>;
+        };
+};
+
+&sata {
+       status = "okay";
+};
index 46a5780547fe7439387ae00fa2f1e43b9be78877..de92bf22e203182fe65c955f3ca7373bcb6d4de4 100644 (file)
 };
 
 &qspi {
-       bus-num = <0>;
        status = "okay";
 
-       qflash0: s25fs512s@0 {
+       s25fs512s0: flash@0 {
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
        };
 
-       qflash1: s25fs512s@1 {
+       s25fs512s1: flash@1 {
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
index 133cacb93e39c1ae516de257aa7724675dacb359..bf303c6ad38b46f91fb9459cbe93285b4dcfafe2 100644 (file)
@@ -92,7 +92,7 @@
        };
 
        qspi: quadspi@1550000 {
-               compatible = "fsl,vf610-qspi";
+               compatible = "fsl,ls1088a-qspi";
                #address-cells = <1>;
                #size-cells = <0>;
                reg = <0x0 0x20c0000 0x0 0x10000>,
diff --git a/arch/arm/dts/fsl-ls2080a-qds-42-x.dts b/arch/arm/dts/fsl-ls2080a-qds-42-x.dts
new file mode 100644 (file)
index 0000000..bd46c39
--- /dev/null
@@ -0,0 +1,16 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * NXP LS2080AQDS device tree source for SERDES protocol 42.x
+ *
+ * Copyright 2020 NXP
+ *
+ */
+
+/dts-v1/;
+
+#include "fsl-ls2080a-qds-sd1-42.dtsi"
+
+/ {
+       model = "NXP Layerscape LS2080AQDS Board (DTS 42-x)";
+       compatible = "fsl,ls2080a-qds", "fsl,ls2080a";
+};
diff --git a/arch/arm/dts/fsl-ls2080a-qds-sd1-42.dtsi b/arch/arm/dts/fsl-ls2080a-qds-sd1-42.dtsi
new file mode 100644 (file)
index 0000000..ccbb5de
--- /dev/null
@@ -0,0 +1,48 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * NXP LS2080aQDS device tree source for SERDES block #1 - protocol 42 (0x2a)
+ *
+ * Copyright 2020 NXP
+ */
+
+#include "fsl-ls2080a-qds.dtsi"
+
+&dpmac1 {
+       status = "okay";
+       phy-connection-type = "xfi";
+};
+
+&dpmac2 {
+       status = "okay";
+       phy-connection-type = "xfi";
+};
+
+&dpmac3 {
+       status = "okay";
+       phy-connection-type = "xfi";
+};
+
+&dpmac4 {
+       status = "okay";
+       phy-connection-type = "xfi";
+};
+
+&dpmac5 {
+       status = "okay";
+       phy-connection-type = "xfi";
+};
+
+&dpmac6 {
+       status = "okay";
+       phy-connection-type = "xfi";
+};
+
+&dpmac7 {
+       status = "okay";
+       phy-connection-type = "xfi";
+};
+
+&dpmac8 {
+       status = "okay";
+       phy-connection-type = "xfi";
+};
index 13461b5c4580782e77b07aa0a37ed09fc2cb0c85..a1196f929287cb1af023062314cd937aa57991ac 100644 (file)
@@ -1,13 +1,13 @@
 // SPDX-License-Identifier: GPL-2.0+ OR X11
 /*
- * Freescale ls2080a QDS board device tree source
+ * Freescale ls2080a QDS defaul board device tree source
  *
  * Copyright 2013-2015 Freescale Semiconductor, Inc.
  */
 
 /dts-v1/;
 
-#include "fsl-ls2080a.dtsi"
+#include "fsl-ls2080a-qds.dtsi"
 
 / {
        model = "Freescale Layerscape 2080a QDS Board";
                spi1 = &dspi;
        };
 };
-
-&i2c0 {
-       status = "okay";
-       pca9547@77 {
-               compatible = "nxp,pca9547";
-               reg = <0x77>;
-               #address-cells = <1>;
-               #size-cells = <0>;
-               i2c@0 {
-                       #address-cells = <1>;
-                       #size-cells = <0>;
-                       reg = <0x00>;
-                       rtc@68 {
-                               compatible = "dallas,ds3232";
-                               reg = <0x68>;
-                       };
-               };
-       };
-};
-
-&dspi {
-       bus-num = <0>;
-       status = "okay";
-
-       dflash0: n25q128a {
-               #address-cells = <1>;
-               #size-cells = <1>;
-               compatible = "jedec,spi-nor";
-               spi-max-frequency = <3000000>;
-               spi-cpol;
-               spi-cpha;
-               reg = <0>;
-       };
-       dflash1: sst25wf040b {
-               #address-cells = <1>;
-               #size-cells = <1>;
-               compatible = "jedec,spi-nor";
-               spi-max-frequency = <3000000>;
-               spi-cpol;
-               spi-cpha;
-               reg = <1>;
-       };
-       dflash2: en25s64 {
-               #address-cells = <1>;
-               #size-cells = <1>;
-               compatible = "jedec,spi-nor";
-               spi-max-frequency = <3000000>;
-               spi-cpol;
-               spi-cpha;
-               reg = <2>;
-       };
-};
-
-&qspi {
-       bus-num = <0>;
-       status = "okay";
-
-       qflash0: s25fs256s@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
-               compatible = "jedec,spi-nor";
-               spi-max-frequency = <20000000>;
-               reg = <0>;
-       };
-};
-
-&sata {
-       status = "okay";
-};
diff --git a/arch/arm/dts/fsl-ls2080a-qds.dtsi b/arch/arm/dts/fsl-ls2080a-qds.dtsi
new file mode 100644 (file)
index 0000000..cb7851f
--- /dev/null
@@ -0,0 +1,77 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * Freescale ls2080a QDS common device tree source
+ *
+ * Copyright 2013-2015 Freescale Semiconductor, Inc.
+ * Copyright 2020 NXP
+ */
+
+#include "fsl-ls2080a.dtsi"
+
+&i2c0 {
+       status = "okay";
+       pca9547@77 {
+               compatible = "nxp,pca9547";
+               reg = <0x77>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+               i2c@0 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0x00>;
+                       rtc@68 {
+                               compatible = "dallas,ds3232";
+                               reg = <0x68>;
+                       };
+               };
+       };
+};
+
+&dspi {
+       bus-num = <0>;
+       status = "okay";
+
+       dflash0: n25q128a {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "jedec,spi-nor";
+               spi-max-frequency = <3000000>;
+               spi-cpol;
+               spi-cpha;
+               reg = <0>;
+       };
+       dflash1: sst25wf040b {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "jedec,spi-nor";
+               spi-max-frequency = <3000000>;
+               spi-cpol;
+               spi-cpha;
+               reg = <1>;
+       };
+       dflash2: en25s64 {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "jedec,spi-nor";
+               spi-max-frequency = <3000000>;
+               spi-cpol;
+               spi-cpha;
+               reg = <2>;
+       };
+};
+
+&qspi {
+       status = "okay";
+
+       s25fs256s0: flash@0 {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "jedec,spi-nor";
+               spi-max-frequency = <50000000>;
+               reg = <0>;
+       };
+};
+
+&sata {
+       status = "okay";
+};
index fb5777e268e4953b86fc9dea73b82e1f3ee2c957..90a0a3f8fbe76f29f3928ac73408ce7bb4288f00 100644 (file)
        };
 
        qspi: quadspi@1550000 {
-               compatible = "fsl,vf610-qspi";
+               compatible = "fsl,ls2080a-qspi";
                #address-cells = <1>;
                #size-cells = <0>;
                reg = <0x0 0x20c0000 0x0 0x10000>,
                        <0x0 0x20000000 0x0 0x10000000>;
                reg-names = "QuadSPI", "QuadSPI-memory";
-               num-cs = <4>;
+               status = "disabled";
        };
 
        esdhc: esdhc@0 {
index 16b9aeec966c0d1663bc97ca1732783be307afd4..179ed19bf2c1b6babf628bc5bdb2d4612ee22b35 100644 (file)
 };
 
 &qspi {
-       bus-num = <0>;
        status = "okay";
 
-       qflash0: s25fs512s@0 {
+       s25fs512s0: flash@0 {
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
        };
 
-       qflash1: s25fs512s@1 {
+       s25fs512s1: flash@1 {
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
diff --git a/arch/arm/dts/fsl-lx2160a-qds-19-11-x.dts b/arch/arm/dts/fsl-lx2160a-qds-19-11-x.dts
new file mode 100644 (file)
index 0000000..5857591
--- /dev/null
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * NXP LX2160AQDS device tree source for SERDES protocol 19.11.x
+ *
+ * Copyright 2020 NXP
+ *
+ */
+
+/dts-v1/;
+
+#include "fsl-lx2160a-qds-sd1-19.dtsi"
+
+#include "fsl-lx2160a-qds-sd2-11.dtsi"
+
+/ {
+       model = "NXP Layerscape LX2160AQDS Board (DTS 19.11.x)";
+       compatible = "fsl,lx2160aqds", "fsl,lx2160a";
+
+};
diff --git a/arch/arm/dts/fsl-lx2160a-qds-19-x-x.dts b/arch/arm/dts/fsl-lx2160a-qds-19-x-x.dts
new file mode 100644 (file)
index 0000000..ebe1139
--- /dev/null
@@ -0,0 +1,17 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * NXP LX2160AQDS device tree source for SERDES protocol 19.x.x
+ *
+ * Copyright 2020 NXP
+ *
+ */
+
+/dts-v1/;
+
+#include "fsl-lx2160a-qds-sd1-19.dtsi"
+
+/ {
+       model = "NXP Layerscape LX2160AQDS Board (DTS 19.x.x)";
+       compatible = "fsl,lx2160aqds", "fsl,lx2160a";
+
+};
diff --git a/arch/arm/dts/fsl-lx2160a-qds-20-11-x.dts b/arch/arm/dts/fsl-lx2160a-qds-20-11-x.dts
new file mode 100644 (file)
index 0000000..d9f0918
--- /dev/null
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * NXP LX2160AQDS device tree source for SERDES protocol 20.11.x
+ *
+ * Copyright 2020 NXP
+ *
+ */
+
+/dts-v1/;
+
+#include "fsl-lx2160a-qds-sd1-20.dtsi"
+
+#include "fsl-lx2160a-qds-sd2-11.dtsi"
+
+/ {
+       model = "NXP Layerscape LX2160AQDS Board (DTS 20.11.x)";
+       compatible = "fsl,lx2160aqds", "fsl,lx2160a";
+
+};
diff --git a/arch/arm/dts/fsl-lx2160a-qds-20-x-x.dts b/arch/arm/dts/fsl-lx2160a-qds-20-x-x.dts
new file mode 100644 (file)
index 0000000..735d440
--- /dev/null
@@ -0,0 +1,17 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * NXP LX2160AQDS device tree source for SERDES protocol 20.x.x
+ *
+ * Copyright 2020 NXP
+ *
+ */
+
+/dts-v1/;
+
+#include "fsl-lx2160a-qds-sd1-20.dtsi"
+
+/ {
+       model = "NXP Layerscape LX2160AQDS Board (DTS 20.x.x)";
+       compatible = "fsl,lx2160aqds", "fsl,lx2160a";
+
+};
diff --git a/arch/arm/dts/fsl-lx2160a-qds-3-11-x.dts b/arch/arm/dts/fsl-lx2160a-qds-3-11-x.dts
new file mode 100644 (file)
index 0000000..3b21c87
--- /dev/null
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * NXP LX2160AQDS device tree source for SERDES protocol 3.11.x
+ *
+ * Copyright 2020 NXP
+ *
+ */
+
+/dts-v1/;
+
+#include "fsl-lx2160a-qds-sd1-3.dtsi"
+
+#include "fsl-lx2160a-qds-sd2-11.dtsi"
+
+/ {
+       model = "NXP Layerscape LX2160AQDS Board (DTS 3.11.x)";
+       compatible = "fsl,lx2160aqds", "fsl,lx2160a";
+
+};
diff --git a/arch/arm/dts/fsl-lx2160a-qds-3-x-x.dts b/arch/arm/dts/fsl-lx2160a-qds-3-x-x.dts
new file mode 100644 (file)
index 0000000..ede4056
--- /dev/null
@@ -0,0 +1,17 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * NXP LX2160AQDS device tree source for SERDES protocol 3.x.x
+ *
+ * Copyright 2020 NXP
+ *
+ */
+
+/dts-v1/;
+
+#include "fsl-lx2160a-qds-sd1-3.dtsi"
+
+/ {
+       model = "NXP Layerscape LX2160AQDS Board (DTS 3.x.x)";
+       compatible = "fsl,lx2160aqds", "fsl,lx2160a";
+
+};
diff --git a/arch/arm/dts/fsl-lx2160a-qds-7-11-x.dts b/arch/arm/dts/fsl-lx2160a-qds-7-11-x.dts
new file mode 100644 (file)
index 0000000..8100af4
--- /dev/null
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * NXP LX2160AQDS device tree source for SERDES protocol 7.11.x
+ *
+ * Copyright 2020 NXP
+ *
+ */
+
+/dts-v1/;
+
+#include "fsl-lx2160a-qds-sd1-7.dtsi"
+
+#include "fsl-lx2160a-qds-sd2-11.dtsi"
+
+/ {
+       model = "NXP Layerscape LX2160AQDS Board (DTS 7.11.x)";
+       compatible = "fsl,lx2160aqds", "fsl,lx2160a";
+
+};
diff --git a/arch/arm/dts/fsl-lx2160a-qds-7-x-x.dts b/arch/arm/dts/fsl-lx2160a-qds-7-x-x.dts
new file mode 100644 (file)
index 0000000..15dee35
--- /dev/null
@@ -0,0 +1,17 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * NXP LX2160AQDS device tree source for SERDES protocol 7.x.x
+ *
+ * Copyright 2020 NXP
+ *
+ */
+
+/dts-v1/;
+
+#include "fsl-lx2160a-qds-sd1-7.dtsi"
+
+/ {
+       model = "NXP Layerscape LX2160AQDS Board (DTS 7-x-x)";
+       compatible = "fsl,lx2160aqds", "fsl,lx2160a";
+
+};
diff --git a/arch/arm/dts/fsl-lx2160a-qds-sd1-19.dtsi b/arch/arm/dts/fsl-lx2160a-qds-sd1-19.dtsi
new file mode 100644 (file)
index 0000000..a31ff8a
--- /dev/null
@@ -0,0 +1,75 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * NXP LX2160AQDS device tree source for the SERDES block #1 - protocol 19
+ *
+ * Some assumptions are made:
+ *    * mezzanine card M11 is connected to IO SLOT1 (usxgmii for DPMAC 3,4)
+ *    * mezzanine card M13 is connected to IO SLOT6 (25g-aui for DPMAC 5,6)
+ *    * mezzanine card M7 is connected to IO SLOT2 (xlaui4 for DPMAC 2)
+ *
+ * Copyright 2020 NXP
+ *
+ */
+
+#include "fsl-lx2160a-qds.dtsi"
+
+&dpmac2 {
+       status = "okay";
+       phy-handle = <&cortina_phy0>;
+       phy-connection-type = "xlaui4";
+};
+
+&dpmac3 {
+       status = "okay";
+       phy-handle = <&aquantia_phy1>;
+       phy-connection-type = "usxgmii";
+};
+
+&dpmac4 {
+       status = "okay";
+       phy-handle = <&aquantia_phy2>;
+       phy-connection-type = "usxgmii";
+};
+
+&dpmac5 {
+       status = "okay";
+       phy-handle = <&inphi_phy0>;
+       phy-connection-type = "25g-aui";
+};
+
+&dpmac6 {
+       status = "okay";
+       phy-handle = <&inphi_phy1>;
+       phy-connection-type = "25g-aui";
+};
+
+&emdio1_slot1 {
+       aquantia_phy1: ethernet-phy@4 {
+               compatible = "ethernet-phy-ieee802.3-c45";
+               reg = <0x0>;
+       };
+
+       aquantia_phy2: ethernet-phy@5 {
+               compatible = "ethernet-phy-ieee802.3-c45";
+               reg = <0x1>;
+       };
+};
+
+&emdio1_slot2 {
+       cortina_phy0: ethernet-phy@0 {
+               compatible = "ethernet-phy-ieee802.3-c45";
+               reg = <0x0>;
+       };
+};
+
+&emdio1_slot6 {
+       inphi_phy0: ethernet-phy@0 {
+               compatible = "ethernet-phy-id0210.7440";
+               reg = <0x0>;
+       };
+
+       inphi_phy1: ethernet-phy@1 {
+               compatible = "ethernet-phy-id0210.7440";
+               reg = <0x1>;
+       };
+};
diff --git a/arch/arm/dts/fsl-lx2160a-qds-sd1-20.dtsi b/arch/arm/dts/fsl-lx2160a-qds-sd1-20.dtsi
new file mode 100644 (file)
index 0000000..42e1496
--- /dev/null
@@ -0,0 +1,39 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * NXP LX2160AQDS device tree source for the SERDES block #1 - protocol 20
+ *
+ * Some assumptions are made:
+ *    * 2 mezzanine cards M13 are connected to IO SLOT1 and IO SLOT2
+ *        (xlaui4 for DPMAC 1,2)
+ *
+ * Copyright 2020 NXP
+ *
+ */
+
+#include "fsl-lx2160a-qds.dtsi"
+
+&dpmac1 {
+       status = "okay";
+       phy-handle = <&cortina_phy1_0>;
+       phy-connection-type = "xlaui4";
+};
+
+&dpmac2 {
+       status = "okay";
+       phy-handle = <&cortina_phy2_0>;
+       phy-connection-type = "xlaui4";
+};
+
+&emdio1_slot1 {
+       cortina_phy1_0: ethernet-phy@0 {
+               compatible = "ethernet-phy-ieee802.3-c45";
+               reg = <0x0>;
+       };
+};
+
+&emdio1_slot2 {
+       cortina_phy2_0: ethernet-phy@0 {
+               compatible = "ethernet-phy-ieee802.3-c45";
+               reg = <0x0>;
+       };
+};
diff --git a/arch/arm/dts/fsl-lx2160a-qds-sd1-3.dtsi b/arch/arm/dts/fsl-lx2160a-qds-sd1-3.dtsi
new file mode 100644 (file)
index 0000000..256d784
--- /dev/null
@@ -0,0 +1,55 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * NXP LX2160AQDS device tree source for the SERDES block #1 - protocol 3
+ *
+ * Some assumptions are made:
+ *    * mezzanine card M11 is connected to IO SLOT1 (usxgmii for DPMAC 3,4,5,6)
+ *
+ * Copyright 2020 NXP
+ *
+ */
+
+#include "fsl-lx2160a-qds.dtsi"
+
+&dpmac3 {
+       status = "okay";
+       phy-handle = <&aquantia_phy1>;
+       phy-connection-type = "usxgmii";
+};
+
+&dpmac4 {
+       status = "okay";
+       phy-handle = <&aquantia_phy2>;
+       phy-connection-type = "usxgmii";
+};
+
+&dpmac5 {
+       status = "okay";
+       phy-handle = <&aquantia_phy3>;
+       phy-connection-type = "usxgmii";
+};
+
+&dpmac6 {
+       status = "okay";
+       phy-handle = <&aquantia_phy4>;
+       phy-connection-type = "usxgmii";
+};
+
+&emdio1_slot1 {
+       aquantia_phy1: ethernet-phy@4 {
+               compatible = "ethernet-phy-ieee802.3-c45";
+               reg = <0x0>;
+       };
+       aquantia_phy2: ethernet-phy@5 {
+               compatible = "ethernet-phy-ieee802.3-c45";
+               reg = <0x1>;
+       };
+       aquantia_phy3: ethernet-phy@6 {
+               compatible = "ethernet-phy-ieee802.3-c45";
+               reg = <0x2>;
+       };
+       aquantia_phy4: ethernet-phy@7 {
+               compatible = "ethernet-phy-ieee802.3-c45";
+               reg = <0x3>;
+       };
+};
diff --git a/arch/arm/dts/fsl-lx2160a-qds-sd1-7.dtsi b/arch/arm/dts/fsl-lx2160a-qds-sd1-7.dtsi
new file mode 100644 (file)
index 0000000..5fcf846
--- /dev/null
@@ -0,0 +1,100 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * NXP LX2160AQDS device tree source for the SERDES block #1 - protocol 7
+ *
+ * Some assumptions are made:
+ *    * mezzanine card M11 is connected to IO SLOT1 (usxgmii for DPMAC 3,4,5,6)
+ *    * mezzanine card M1/M4 is connected to IO SLOT2 (sgmii for DPMAC 7,8,9,10)
+ *
+ * Copyright 2020 NXP
+ *
+ */
+#include "fsl-lx2160a-qds.dtsi"
+
+&dpmac3 {
+       status = "okay";
+       phy-handle = <&aquantia_phy1>;
+       phy-connection-type = "usxgmii";
+};
+
+&dpmac4 {
+       status = "okay";
+       phy-handle = <&aquantia_phy2>;
+       phy-connection-type = "usxgmii";
+};
+
+&dpmac5 {
+       status = "okay";
+       phy-handle = <&aquantia_phy3>;
+       phy-connection-type = "usxgmii";
+};
+
+&dpmac6 {
+       status = "okay";
+       phy-handle = <&aquantia_phy4>;
+       phy-connection-type = "usxgmii";
+};
+
+&dpmac7 {
+       status = "okay";
+       phy-handle = <&sgmii_phy1>;
+       phy-connection-type = "sgmii";
+};
+
+&dpmac8 {
+       status = "okay";
+       phy-handle = <&sgmii_phy2>;
+       phy-connection-type = "sgmii";
+};
+
+&dpmac9 {
+       status = "okay";
+       phy-handle = <&sgmii_phy3>;
+       phy-connection-type = "sgmii";
+};
+
+&dpmac10 {
+       status = "okay";
+       phy-handle = <&sgmii_phy4>;
+       phy-connection-type = "sgmii";
+};
+
+&emdio1_slot1 {
+       aquantia_phy1: ethernet-phy@4 {
+               compatible = "ethernet-phy-ieee802.3-c45";
+               reg = <0x0>;
+       };
+
+       aquantia_phy2: ethernet-phy@5 {
+               compatible = "ethernet-phy-ieee802.3-c45";
+               reg = <0x1>;
+       };
+
+       aquantia_phy3: ethernet-phy@6 {
+               compatible = "ethernet-phy-ieee802.3-c45";
+               reg = <0x2>;
+       };
+
+       aquantia_phy4: ethernet-phy@7 {
+               compatible = "ethernet-phy-ieee802.3-c45";
+               reg = <0x3>;
+       };
+};
+
+&emdio1_slot2 {
+       sgmii_phy1: ethernet-phy@1c {
+               reg = <0x1c>;
+       };
+
+       sgmii_phy2: ethernet-phy@1d {
+               reg = <0x1d>;
+       };
+
+       sgmii_phy3: ethernet-phy@1e {
+               reg = <0x1e>;
+       };
+
+       sgmii_phy4: ethernet-phy@1f {
+               reg = <0x1f>;
+       };
+};
diff --git a/arch/arm/dts/fsl-lx2160a-qds-sd2-11.dtsi b/arch/arm/dts/fsl-lx2160a-qds-sd2-11.dtsi
new file mode 100644 (file)
index 0000000..cf09f98
--- /dev/null
@@ -0,0 +1,76 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * NXP LX2160AQDS device tree source for the SERDES block #2 - protocol 11
+ *
+ * Some assumptions are made:
+ *    * 2 mezzanine cards M1/M4 are connected to IO SLOT 7 and IO SLOT 8
+ *       (sgmii for DPMAC 12, 13, 14, 16, 17, 18)
+ *
+ * Copyright 2020 NXP
+ *
+ */
+#include "fsl-lx2160a-qds.dtsi"
+
+&dpmac12 {
+       status = "okay";
+       phy-handle = <&sgmii_phy7_2>;
+       phy-connection-type = "sgmii";
+};
+
+&dpmac17 {
+       status = "okay";
+       phy-handle = <&sgmii_phy7_3>;
+       phy-connection-type = "sgmii";
+};
+
+&dpmac18 {
+       status = "okay";
+       phy-handle = <&sgmii_phy7_4>;
+       phy-connection-type = "sgmii";
+};
+
+&dpmac16 {
+       status = "okay";
+       phy-handle = <&sgmii_phy8_2>;
+       phy-connection-type = "sgmii";
+};
+
+&dpmac13 {
+       status = "okay";
+       phy-handle = <&sgmii_phy8_3>;
+       phy-connection-type = "sgmii";
+};
+
+&dpmac14 {
+       status = "okay";
+       phy-handle = <&sgmii_phy8_4>;
+       phy-connection-type = "sgmii";
+};
+
+&emdio1_slot7 {
+       sgmii_phy7_2: ethernet-phy@1d {
+               reg = <0x1d>;
+       };
+
+       sgmii_phy7_3: ethernet-phy@1e {
+               reg = <0x1e>;
+       };
+
+       sgmii_phy7_4: ethernet-phy@1f {
+               reg = <0x1f>;
+       };
+};
+
+&emdio1_slot8 {
+       sgmii_phy8_2: ethernet-phy@1d {
+               reg = <0x1d>;
+       };
+
+       sgmii_phy8_3: ethernet-phy@1e {
+               reg = <0x1e>;
+       };
+
+       sgmii_phy8_4: ethernet-phy@1f {
+               reg = <0x1f>;
+       };
+};
index 592fd5977e27f389cddc787f72a88dfc7e8ff550..e0f5d5e2d38f20b3e263f422202af9027c84c0c2 100644 (file)
@@ -1,14 +1,14 @@
 // SPDX-License-Identifier: GPL-2.0+ OR X11
 /*
- * NXP LX2160AQDS device tree source
+ * NXP LX2160AQDS default device tree source
  *
- * Copyright 2018-2019 NXP
+ * Copyright 2020 NXP
  *
  */
 
 /dts-v1/;
 
-#include "fsl-lx2160a.dtsi"
+#include "fsl-lx2160a-qds.dtsi"
 
 / {
        model = "NXP Layerscape LX2160AQDS Board";
                spi0 = &fspi;
        };
 };
-
-&esdhc0 {
-       status = "okay";
-};
-
-&esdhc1 {
-       status = "okay";
-};
-
-&i2c0 {
-       status = "okay";
-       u-boot,dm-pre-reloc;
-
-       i2c-mux@77 {
-               compatible = "nxp,pca9547";
-               reg = <0x77>;
-               #address-cells = <1>;
-               #size-cells = <0>;
-
-               i2c@3 {
-                       #address-cells = <1>;
-                       #size-cells = <0>;
-                       reg = <0x3>;
-
-                       rtc@51 {
-                               compatible = "pcf2127-rtc";
-                               reg = <0x51>;
-                       };
-               };
-       };
-};
-
-&fspi {
-       status = "okay";
-
-       mt35xu512aba0: flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
-               compatible = "jedec,spi-nor";
-               spi-max-frequency = <50000000>;
-               reg = <0>;
-               spi-rx-bus-width = <8>;
-               spi-tx-bus-width = <1>;
-       };
-};
-
-&sata0 {
-       status = "okay";
-};
-
-&sata1 {
-       status = "okay";
-};
-
-&sata2 {
-       status = "okay";
-};
-
-&sata3 {
-       status = "okay";
-};
diff --git a/arch/arm/dts/fsl-lx2160a-qds.dtsi b/arch/arm/dts/fsl-lx2160a-qds.dtsi
new file mode 100644 (file)
index 0000000..129cf82
--- /dev/null
@@ -0,0 +1,169 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * NXP LX2160AQDS common device tree source
+ *
+ * Copyright 2018-2019 NXP
+ *
+ */
+
+#include "fsl-lx2160a.dtsi"
+
+&dpmac17 {
+       status = "okay";
+       phy-handle = <&rgmii_phy1>;
+       phy-connection-type = "rgmii-id";
+};
+
+&dpmac18 {
+       status = "okay";
+       phy-handle = <&rgmii_phy2>;
+       phy-connection-type = "rgmii-id";
+};
+
+&emdio1 {
+       status = "okay";
+};
+
+&emdio2 {
+       status = "okay";
+};
+
+&esdhc0 {
+       status = "okay";
+};
+
+&esdhc1 {
+       status = "okay";
+};
+
+&i2c0 {
+       status = "okay";
+       u-boot,dm-pre-reloc;
+
+       fpga@66 {
+               #address-cells = <1>;
+               #size-cells = <0>;
+               compatible = "simple-mfd";
+               reg = <0x66>;
+
+               mux-mdio@54 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       compatible = "mdio-mux-i2creg";
+                       reg = <0x54>;
+                       #mux-control-cells = <1>;
+                       mux-reg-masks = <0x54 0xf8>; // reg 0x54, bits 7:3
+                       mdio-parent-bus = <&emdio1>;
+
+                       mdio@00 {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               reg = <0x00>;
+
+                               rgmii_phy1: ethernet-phy@1 {
+                                       reg = <0x1>;
+                               };
+                       };
+                       mdio@08 {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               reg = <0x40>;
+
+                               rgmii_phy2: ethernet-phy@2 {
+                                       reg = <0x2>;
+                               };
+                       };
+
+                       emdio1_slot1: mdio@c0 { /* I/O Slot #1 */
+                               reg = <0xC0>;
+                               device-name = "emdio1_slot1";
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                       };
+
+                       emdio1_slot2: mdio@c8 { /* I/O Slot #2 */
+                               reg = <0xC8>;
+                               device-name = "emdio1_slot2";
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                       };
+
+                       emdio1_slot3: mdio@d0 { /* I/O Slot #3 */
+                               reg = <0xD0>;
+                               device-name = "emdio1_slot3";
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                       };
+
+                       emdio1_slot4: mdio@d8 { /* I/O Slot #4 */
+                               reg = <0xD8>;
+                               device-name = "emdio1_slot4";
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                       };
+
+                       emdio1_slot5: mdio@e0 { /* I/O Slot #5 */
+                               reg = <0xE0>;
+                               device-name = "emdio1_slot5";
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                       };
+
+                       emdio1_slot6: mdio@e8 { /* I/O Slot #6 */
+                               reg = <0xE8>;
+                               device-name = "emdio1_slot6";
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                       };
+
+                       emdio1_slot7: mdio@f0 { /* I/O Slot #7 */
+                               reg = <0xF0>;
+                               device-name = "emdio1_slot7";
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                       };
+
+                       emdio1_slot8: mdio@f8 { /* I/O Slot #8 */
+                               reg = <0xF8>;
+                               device-name = "emdio1_slot8";
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                       };
+               };
+
+       };
+
+       i2c-mux@77 {
+               compatible = "nxp,pca9547";
+               reg = <0x77>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               i2c@3 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0x3>;
+
+                       rtc@51 {
+                               compatible = "pcf2127-rtc";
+                               reg = <0x51>;
+                       };
+               };
+       };
+};
+
+&sata0 {
+       status = "okay";
+};
+
+&sata1 {
+       status = "okay";
+};
+
+&sata2 {
+       status = "okay";
+};
+
+&sata3 {
+       status = "okay";
+};
index 73d04db7e4022b36b65437316f5d162d60715da9..1789da8638e438b71b771b52a3227b32bcb97171 100644 (file)
@@ -2,7 +2,7 @@
 /*
  * NXP lx2160a SOC common device tree source
  *
- * Copyright 2018 NXP
+ * Copyright 2018-2020 NXP
  *
  */
 
                        #address-cells = <1>;
                        #size-cells = <0>;
 
+                       dpmac1: dpmac@1 {
+                               compatible = "fsl,qoriq-mc-dpmac";
+                               reg = <0x1>;
+                               status = "disabled";
+                       };
+
+                       dpmac2: dpmac@2 {
+                               compatible = "fsl,qoriq-mc-dpmac";
+                               reg = <0x2>;
+                               status = "disabled";
+                       };
+
                        dpmac3: dpmac@3 {
                                compatible = "fsl,qoriq-mc-dpmac";
                                reg = <0x3>;
                                status = "disabled";
                        };
 
+                       dpmac5: dpmac@5 {
+                               compatible = "fsl,qoriq-mc-dpmac";
+                               reg = <0x5>;
+                               status = "disabled";
+                       };
+
+                       dpmac6: dpmac@6 {
+                               compatible = "fsl,qoriq-mc-dpmac";
+                               reg = <0x6>;
+                               status = "disabled";
+                       };
+
+                       dpmac7: dpmac@7 {
+                               compatible = "fsl,qoriq-mc-dpmac";
+                               reg = <0x7>;
+                               status = "disabled";
+                       };
+
+                       dpmac8: dpmac@8 {
+                               compatible = "fsl,qoriq-mc-dpmac";
+                               reg = <0x8>;
+                               status = "disabled";
+                       };
+
+                       dpmac9: dpmac@9 {
+                               compatible = "fsl,qoriq-mc-dpmac";
+                               reg = <0x9>;
+                               status = "disabled";
+                       };
+
+                       dpmac10: dpmac@a {
+                               compatible = "fsl,qoriq-mc-dpmac";
+                               reg = <0xa>;
+                               status = "disabled";
+                       };
+
+                       dpmac11: dpmac@b {
+                               compatible = "fsl,qoriq-mc-dpmac";
+                               reg = <0xb>;
+                               status = "disabled";
+                       };
+
+                       dpmac12: dpmac@c {
+                               compatible = "fsl,qoriq-mc-dpmac";
+                               reg = <0xc>;
+                               status = "disabled";
+                       };
+
+                       dpmac13: dpmac@d {
+                               compatible = "fsl,qoriq-mc-dpmac";
+                               reg = <0xd>;
+                               status = "disabled";
+                       };
+
+                       dpmac14: dpmac@e {
+                               compatible = "fsl,qoriq-mc-dpmac";
+                               reg = <0xe>;
+                               status = "disabled";
+                       };
+
+                       dpmac15: dpmac@f {
+                               compatible = "fsl,qoriq-mc-dpmac";
+                               reg = <0xf>;
+                               status = "disabled";
+                       };
+
+                       dpmac16: dpmac@10 {
+                               compatible = "fsl,qoriq-mc-dpmac";
+                               reg = <0x10>;
+                               status = "disabled";
+                       };
+
                        dpmac17: dpmac@11 {
                                compatible = "fsl,qoriq-mc-dpmac";
                                reg = <0x11>;
index 27c96f95400ae4c586ffabc977c7ad9626093d0d..bf96af7e360f0b1179beb616f744b0db9c9c2f51 100644 (file)
 };
 
 &qspi {
-       bus-num = <0>;
        status = "okay";
 
-       qflash0: n25q128a13@0 {
+       n25q128a130: flash@0 {
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
-               spi-max-frequency = <20000000>;
+               spi-max-frequency = <50000000>;
                reg = <0>;
        };
 };
index e419d9c44fcb008fd39541857179a2d99dca5870..0eeec43cccca75075547ec6a8e9895a687a1b9f9 100644 (file)
                };
 
                qspi: quadspi@1550000 {
-                       compatible = "fsl,vf610-qspi";
+                       compatible = "fsl,ls1021a-qspi";
                        #address-cells = <1>;
                        #size-cells = <0>;
                        reg = <0x1550000 0x10000>,
-                               <0x40000000 0x4000000>;
+                               <0x40000000 0x1000000>;
                        reg-names = "QuadSPI", "QuadSPI-memory";
-                       num-cs = <2>;
-                       big-endian;
                        status = "disabled";
                };
 
index 6e5c271d3cda2da5dad11eb667a17f0ce06fc828..e039e33d5944d90cd65aec4b83eaf93be4ac538e 100644 (file)
@@ -16,6 +16,8 @@
 };
 
 &sdhi2 {
+       mmc-ddr-1_8v;
+       mmc-hs200-1_8v;
        mmc-hs400-1_8v;
        max-frequency = <200000000>;
 };
index fb9bbe1439521b54798c83247742aa7c52ec5165..b7f26c11b1574299b50fccf5b7a72c22c44cd469 100644 (file)
@@ -27,6 +27,8 @@
 };
 
 &sdhi2 {
+       mmc-ddr-1_8v;
+       mmc-hs200-1_8v;
        mmc-hs400-1_8v;
        max-frequency = <200000000>;
 };
index a3f2d74150ecc0b10694dcab123728b4b26d6f32..d3b09246f597dbd19b024b2ee0f3c5a133c51899 100644 (file)
@@ -16,6 +16,8 @@
 };
 
 &sdhi2 {
+       mmc-ddr-1_8v;
+       mmc-hs200-1_8v;
        mmc-hs400-1_8v;
        max-frequency = <200000000>;
 };
index 04023d959719f577ed29fde8cd52028a0f333aea..bd1d634574884a32c199c4c400df3853983ae814 100644 (file)
@@ -27,6 +27,8 @@
 };
 
 &sdhi2 {
+       mmc-ddr-1_8v;
+       mmc-hs200-1_8v;
        mmc-hs400-1_8v;
        max-frequency = <200000000>;
 };
index e4bd2d3e4f74071c9c6c66fec3f5161ac9239027..d6f0708555419a8e53781bc81c949480a8030bf4 100644 (file)
@@ -17,6 +17,8 @@
 };
 
 &sdhi2 {
+       mmc-ddr-1_8v;
+       mmc-hs200-1_8v;
        mmc-hs400-1_8v;
        max-frequency = <200000000>;
        status = "okay";
index 28fb30e9a90fb8a57dac8d2661bdc23609763973..954d8b685c36b6c8e80ec48111bc38940267ee20 100644 (file)
@@ -28,6 +28,8 @@
 };
 
 &sdhi2 {
+       mmc-ddr-1_8v;
+       mmc-hs200-1_8v;
        mmc-hs400-1_8v;
        max-frequency = <200000000>;
        status = "okay";
index 4fd2b14fbb8b5a13ba1387474c202248673db705..07a4c9bbae49179363d90c36088909010e147b09 100644 (file)
 
        vmmc-supply = <&reg_3p3v>;
        vqmmc-supply = <&reg_1p8v>;
+       mmc-ddr-1_8v;
        mmc-hs200-1_8v;
        mmc-hs400-1_8v;
        bus-width = <8>;
index 8318bf4e6030182e7d2c2f8ae39f62ee428d745f..f0760750766061bf386608e031e962614037dcae 100644 (file)
        };
 };
 
+&gpio0 {
+       u-boot,dm-spl;
+};
+
+&pinctrl {
+       u-boot,dm-spl;
+};
+
+&sdmmc0m1_gpio {
+       u-boot,dm-spl;
+};
+
+&pcfg_pull_up_4ma {
+       u-boot,dm-spl;
+};
+
 &usb_host0_xhci {
        vbus-supply = <&vcc_host_5v>;
        status = "okay";
@@ -25,3 +41,8 @@
        /delete-property/ regulator-always-on;
        /delete-property/ regulator-boot-on;
 };
+
+/* Need this and all the pinctrl/gpio stuff above to set pinmux */
+&vcc_sd {
+       u-boot,dm-spl;
+};
index 9bb130a92a962689bd993d40f4377e3910c05726..8237782408528d6008844d2747484250f340866b 100644 (file)
@@ -8,6 +8,7 @@
        aliases {
                mmc0 = &sdhci;
                mmc1 = &sdmmc;
+               pci0 = &pcie0;
        };
 
        cic: syscon@ff620000 {
@@ -91,6 +92,9 @@
 
 &sdmmc {
        u-boot,dm-pre-reloc;
+
+       /* mmc to sram can't do dma, prevent aborts transferring TF-A parts */
+       u-boot,spl-fifo-mode;
 };
 
 &spi1 {
index 6579cc0c5d91455ecd4b22740c02bd8f16310d57..7bcafba6f0b56013f8e792c35315f08b1286b0cb 100644 (file)
@@ -10,8 +10,6 @@
 #ifndef __CLK_SYNTHESIZER_H
 #define __CLK_SYNTHESIZER_H
 
-#include <common.h>
-
 #define CLK_SYNTHESIZER_ID_REG         0x0
 #define CLK_SYNTHESIZER_XCSEL          0x05
 #define CLK_SYNTHESIZER_MUX_REG                0x14
index 9b819b0a1cd6061c8d37213d29355ea15f1696ea..79081de700b486f43f172d85b536fd3200b6f854 100644 (file)
@@ -12,6 +12,7 @@
 
 #if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__))
 #include <asm/types.h>
+#include <linux/bitops.h>
 #endif /* !(__KERNEL_STRICT_NAMES || __ASSEMBLY__) */
 
 #include <asm/arch/hardware.h>
index 64809d5deb5b4025c0bc0b42a410296ab18ace3c..0b73ebdbb4da032ac6debedc9dec768bf6ec0760 100644 (file)
 #ifndef __AM43XX_HARDWARE_AM43XX_H
 #define __AM43XX_HARDWARE_AM43XX_H
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 /* Module base addresses */
 
 /* L3 Fast Configuration Bandwidth Limiter Base Address */
index d8bf87258b5d2ec07227ddd1b815dfced2ccad5f..b16b18473361eff476d0c7285b71586a1060c70d 100644 (file)
@@ -16,7 +16,6 @@
 #ifndef _MUX_H_
 #define _MUX_H_
 
-#include <common.h>
 #include <asm/io.h>
 
 #ifdef CONFIG_AM33XX
index d5cab3e0834a479df4498ba3f77d4a187feda0ed..26bd4b46ffbe2e45d488df11c2f045622df0744a 100644 (file)
@@ -16,7 +16,6 @@
 #ifndef _MUX_AM33XX_H_
 #define _MUX_AM33XX_H_
 
-#include <common.h>
 #include <asm/io.h>
 
 #define MUX_CFG(value, offset) \
index 256c5e243f8be2f1cbec28ed957eead57fa0df8a..f74ae74ff163cb23fbd8c83765f8efcd2433d65e 100644 (file)
@@ -8,7 +8,6 @@
 #ifndef _MUX_AM43XX_H_
 #define _MUX_AM43XX_H_
 
-#include <common.h>
 #include <asm/io.h>
 
 #define MUX_CFG(value, offset) \
index e4e5a48ad67f7fdfbc10fa5f3b6d96159ef97a73..a6a8a988a0c4676071f4ef54d6231df113ce6895 100644 (file)
@@ -17,7 +17,6 @@
 #ifndef _MUX_TI816X_H_
 #define _MUX_TI816X_H_
 
-#include <common.h>
 #include <asm/io.h>
 
 #define MUX_CFG(value, offset)  \
index 95d6156476f4494affea3897b665ab6c77a83700..d5616914374a7d53a753027406629b7b12934a01 100644 (file)
@@ -8,8 +8,6 @@
 #ifndef __ASM_ARCH_FSL_LAYERSCAPE_CLOCK_H_
 #define __ASM_ARCH_FSL_LAYERSCAPE_CLOCK_H_
 
-#include <common.h>
-
 enum mxc_clock {
        MXC_ARM_CLK = 0,
        MXC_BUS_CLK,
index ddd9390df4c3d414d4e2415af63c0cef254e5131..e13f4d83e69c2c67e1eb04d50755362d6e90734c 100644 (file)
 #include <linux/kconfig.h>
 #include <fsl_ddrc_version.h>
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 #define CONFIG_STANDALONE_LOAD_ADDR    0x80300000
 
 /*
 #define CONFIG_SYS_FSL_ESDHC_BE
 #define CONFIG_SYS_FSL_WDOG_BE
 #define CONFIG_SYS_FSL_DSPI_BE
-#define CONFIG_SYS_FSL_QSPI_BE
 #define CONFIG_SYS_FSL_CCSR_GUR_BE
 #define CONFIG_SYS_FSL_PEX_LUT_BE
 
index 862ec2e2f1f6880e843d55e574195a9a396dcc3a..c9be0768e34fb1b154ac2ba530518fef20e3320e 100644 (file)
@@ -7,6 +7,9 @@
 #define __ARCH_FSL_LSCH2_IMMAP_H__
 
 #include <fsl_immap.h>
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
 
 #define CONFIG_SYS_IMMR                                0x01000000
 #define CONFIG_SYS_DCSRBAR                     0x20000000
index c2fbc23b112ae8b78107e74ee68aa0bfad938354..baa9fa8529cdb915696103bb4d75649f3d792529 100644 (file)
@@ -589,5 +589,5 @@ struct ccsr_serdes {
        u8 res5[0x19fc - 0xa00];
 };
 
-#endif /*__ASSEMBLY__*/
+#endif /*__ASSEMBLY__ */
 #endif /* __ARCH_FSL_LSCH3_IMMAP_H_ */
index 3ca0951543b632e7b8a7313290ef085a78fe36ff..882262d13cf4500e62669281ce34f04af7993140 100644 (file)
@@ -7,6 +7,10 @@
 #ifndef __HI3660_H__
 #define __HI3660_H__
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 #define HI3660_UART6_BASE                      0xfff32000
 
 #define PMU_REG_BASE                            0xfff34000
index bedd01bfd8581a815b94e012a1705f392cce3224..3acef1ea6bad006e5ee468c0b94db90d06111a42 100644 (file)
@@ -6,6 +6,10 @@
 #ifndef __ASM_ARCH_IMX8_IOMUX_H__
 #define __ASM_ARCH_IMX8_IOMUX_H__
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 /*
  * We use 64bits value for iomux settings.
  * High 32bits are used for padring register value,
index 05f736f14f0f1babae863482302736fc609cb5d2..f91f7cc58760b9c76111df14e3e411104f31a91c 100644 (file)
@@ -6,6 +6,7 @@
 #ifndef _SC_SCI_H
 #define _SC_SCI_H
 
+#include <log.h>
 #include <asm/arch/sci/types.h>
 #include <asm/arch/sci/svc/misc/api.h>
 #include <asm/arch/sci/svc/pad/api.h>
index 140e8bbabd7b7252cd00884f75c381e6aad5bea7..63b14b9ca58f44808e0da602a39b66c983c4aa34 100644 (file)
@@ -8,6 +8,10 @@
 #ifndef _ASM_ARCH_IMX8MM_CLOCK_H
 #define _ASM_ARCH_IMX8MM_CLOCK_H
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 #define PLL_1443X_RATE(_rate, _m, _p, _s, _k)                  \
        {                                                       \
                .rate   =       (_rate),                        \
index 9dda6ddc8cdf877852de15e78e3952aceccece05..742cbf3bf80d1ce9f4c1c227f2ef624f79c02b16 100644 (file)
@@ -8,6 +8,10 @@
 #ifndef _ASM_ARCH_IMX8M_CLOCK_H
 #define _ASM_ARCH_IMX8M_CLOCK_H
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 enum pll_clocks {
        ANATOP_ARM_PLL,
        ANATOP_GPU_PLL,
index 877549124598ebcb5a8961cb86d9de1eb32519ea..d69e3c4664de4a57ebafc7f476fd387a95763d5f 100644 (file)
@@ -11,8 +11,6 @@
 #ifndef _LPC32XX_DMA_H
 #define _LPC32XX_DMA_H
 
-#include <common.h>
-
 /*
  * DMA linked list structure used with a channel's LLI register;
  * refer to UM10326, "LPC32x0 and LPC32x0/01 User manual" - Rev. 3
index 5301d4c1b0f6969d0079a07990983d33e7b0a3c6..f39b14001b67b83aa008fe14fd9ac8d8f7712a4f 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef _LPC32XX_I2C_H
 #define _LPC32XX_I2C_H
 
-#include <common.h>
 #include <asm/types.h>
 
 /* i2c register set */
index e66e57f7598cec1df4f1d23882595c60bbb2ac8e..01978c08f5e34bd820caff3ebff5367425389a05 100644 (file)
@@ -7,8 +7,6 @@
 #ifndef __ASM_ARCH_LS102XA_CLOCK_H_
 #define __ASM_ARCH_LS102XA_CLOCK_H_
 
-#include <common.h>
-
 enum mxc_clock {
        MXC_ARM_CLK = 0,
        MXC_UART_CLK,
index 970537870dd193303055483b097692244c1d5dd4..3884948a2c550a0a69f25091384489be1645f645 100644 (file)
@@ -94,7 +94,6 @@
 #define CONFIG_SYS_FSL_ESDHC_BE
 #define CONFIG_SYS_FSL_WDOG_BE
 #define CONFIG_SYS_FSL_DSPI_BE
-#define CONFIG_SYS_FSL_QSPI_BE
 #define CONFIG_SYS_FSL_DCU_BE
 #define CONFIG_SYS_FSL_SEC_MON_LE
 #define CONFIG_SYS_FSL_SFP_VER_3_2
index d293f2a8391e57d0da24f4856cc7d7e1bff9f7c9..91c87696e0375087f3e7fa3aa9c24f63b297b2c6 100644 (file)
@@ -7,6 +7,10 @@
 #ifndef __AXG_H__
 #define __AXG_H__
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 #define AXG_AOBUS_BASE         0xff800000
 #define AXG_PERIPHS_BASE       0xff634400
 #define AXG_HIU_BASE           0xff63c000
index b80666786018ae70b6b7bb8bfbde565a2b393ff4..db29cc3a00f2244c0d5481042198ab784d548736 100644 (file)
@@ -7,6 +7,10 @@
 #ifndef __G12A_H__
 #define __G12A_H__
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 #define G12A_AOBUS_BASE                        0xff800000
 #define G12A_PERIPHS_BASE              0xff634400
 #define G12A_HIU_BASE                  0xff63c000
index b781ba9475ba9b40486b29b420e6a99aabf2233b..743d2e8bb97b807ba7015d139e4bf202dfc80e57 100644 (file)
@@ -6,6 +6,10 @@
 #ifndef __GX_H__
 #define __GX_H__
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 #define GX_FIRMWARE_MEM_SIZE   0x1000000
 
 #define GX_AOBUS_BASE          0xc8100000
index e3a72c8b66d4883a7b5729ab821f8a29a394f112..1e9f8cf498b46a9e9fbf165dce41423a988b7a2b 100644 (file)
@@ -7,6 +7,10 @@
 #define __SD_EMMC_H__
 
 #include <mmc.h>
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 
 #define SDIO_PORT_A                    0
 #define SDIO_PORT_B                    1
index 7eec73163b3952ad7bee512c74ce929dba868e4b..3045b78d08f41e26431ada62b7bc683618658c6f 100644 (file)
@@ -9,8 +9,6 @@
 #ifndef __ASM_ARCH_CLOCK_H
 #define __ASM_ARCH_CLOCK_H
 
-#include <common.h>
-
 #ifdef CONFIG_MX25_HCLK_FREQ
 #define MXC_HCLK       CONFIG_MX25_HCLK_FREQ
 #else
index d373ab158393af3e10089bd8961a9555f0811397..8434f4c1cb1a214bc2191f081e5419fb28c6a69e 100644 (file)
@@ -21,6 +21,6 @@ struct rtc_regs {
        u32 dayr;
        u32 dayalarm;
 };
-#endif /* __ASSEMBLY__*/
+#endif /* __ASSEMBLY__ */
 
 #endif /* __MX28_REGS_RTC_H__ */
index aafc2d690efa96c73a09423b93865c785bf6228d..e99e115f79e789d7bd8c5c6451392dc661c4f072 100644 (file)
@@ -7,8 +7,6 @@
 #ifndef __ASM_ARCH_CLOCK_H
 #define __ASM_ARCH_CLOCK_H
 
-#include <common.h>
-
 #define MXC_HCLK       CONFIG_MX31_HCLK_FREQ
 
 #define MXC_CLK32      CONFIG_MX31_CLK32
index 788534083c8e31a41578d3337607b5c827f52487..cb0b53a69f4df6b9ba7aa372f85752126da31025 100644 (file)
@@ -7,8 +7,6 @@
 #ifndef __ASM_ARCH_CLOCK_H
 #define __ASM_ARCH_CLOCK_H
 
-#include <common.h>
-
 #ifdef CONFIG_MX35_HCLK_FREQ
 #define MXC_HCLK       CONFIG_MX35_HCLK_FREQ
 #else
index 6f5ca5888aeaaa6d78230abfadf5dea024d50127..63a51042e1ebfa06c5f0ad6861b882253730935f 100644 (file)
@@ -7,8 +7,6 @@
 #ifndef __ASM_ARCH_CLOCK_H
 #define __ASM_ARCH_CLOCK_H
 
-#include <common.h>
-
 #ifdef CONFIG_SYS_MX5_HCLK
 #define MXC_HCLK       CONFIG_SYS_MX5_HCLK
 #else
index fbb6e599b6d29c490cc506832b5f8c9c86a79695..3d1cc6832288f34f4a4e1d2b06f67b83fd3df8ff 100644 (file)
@@ -557,6 +557,6 @@ struct pwm_regs {
        u32     cnr;
 };
 
-#endif /* __ASSEMBLER__*/
+#endif /* __ASSEMBLY__ */
 
 #endif                         /* __ASM_ARCH_MX5_IMX_REGS_H__ */
index f7760541a4c1123108957b8e353348812e5a12ad..8ae49715789c3c532f29327957968280af23f9bd 100644 (file)
@@ -7,7 +7,7 @@
 #ifndef __ASM_ARCH_CLOCK_H
 #define __ASM_ARCH_CLOCK_H
 
-#include <common.h>
+#include <linux/types.h>
 
 #ifdef CONFIG_SYS_MX6_HCLK
 #define MXC_HCLK       CONFIG_SYS_MX6_HCLK
@@ -21,6 +21,8 @@
 #define MXC_CLK32      32768
 #endif
 
+struct cmd_tbl;
+
 enum mxc_clock {
        MXC_ARM_CLK = 0,
        MXC_PER_CLK,
@@ -80,5 +82,6 @@ void enable_thermal_clk(void);
 void mxs_set_lcdclk(u32 base_addr, u32 freq);
 void select_ldb_di_clock_source(enum ldb_di_clock clk);
 void enable_eim_clk(unsigned char enable);
-int do_mx6_showclocks(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
+int do_mx6_showclocks(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[]);
 #endif /* __ASM_ARCH_CLOCK_H */
index 4f01b20aedf8565d1b38ad2552b951617ecbe8d0..ccd48e83055cf39730cf39ef375e50fb1c31d419 100644 (file)
 #include <asm/mach-imx/regs-lcdif.h>
 #if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__))
 #include <asm/types.h>
+#include <linux/bitops.h>
 
 /* only for i.MX6SX/UL */
 #define WDOG3_BASE_ADDR (((is_mx6ul() || is_mx6ull()) ?        \
@@ -1003,5 +1004,5 @@ struct pwm_regs {
  */
 #define        is_boot_from_usb(void) (!(readl(USB_PHY0_BASE_ADDR) & (1<<20)))
 
-#endif /* __ASSEMBLER__*/
+#endif /* __ASSEMBLY__ */
 #endif /* __ASM_ARCH_MX6_IMX_REGS_H__ */
index 984bd3f141a3d72e63287bbe038a17457ac69e50..48c7c3367a537fff580f7e23672b194099400158 100644 (file)
@@ -9,7 +9,6 @@
 #ifndef _ASM_ARCH_CLOCK_H
 #define _ASM_ARCH_CLOCK_H
 
-#include <common.h>
 #include <asm/arch/crm_regs.h>
 
 #ifdef CONFIG_SYS_MX7_HCLK
index 63365140072f4ff92c29b17e405b9cc17fb2226a..95238dcaa84c445869a510d96ce971578cc454b4 100644 (file)
 #if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__))
 #include <asm/mach-imx/regs-lcdif.h>
 #include <asm/types.h>
+#include <linux/bitops.h>
 
 extern void imx_get_mac_from_fuse(int dev_id, unsigned char *mac);
 
@@ -1223,5 +1224,5 @@ struct bootrom_sw_info {
        u32 reserved_3[3];
 };
 
-#endif /* __ASSEMBLER__*/
+#endif /* __ASSEMBLY__ */
 #endif /* __ASM_ARCH_MX7_IMX_REGS_H__ */
index 3c0790487e108dadea81fe69b631cc3cf86aec44..37aaee0ad79166fd4d9621222eb5321ab61c87ef 100644 (file)
 #ifndef __ASM_ARCH_MX7_DDR_H__
 #define __ASM_ARCH_MX7_DDR_H__
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 /* DDRC Registers (DDRC_IPS_BASE_ADDR) */
 struct ddrc {
        u32 mstr;               /* 0x0000 */
index eb02a20fdc52b2e32619cc19d5522ec54dd5b4f6..92d4463dff5fa2a7a19e6bea9e9d7ef6381b23fd 100644 (file)
@@ -6,7 +6,6 @@
 #ifndef _ASM_ARCH_CLOCK_H
 #define _ASM_ARCH_CLOCK_H
 
-#include <common.h>
 #include <asm/arch/pcc.h>
 #include <asm/arch/scg.h>
 
index dee3cfcdc00439d92f216cfd6056f33050500ae8..8f0d7006286d480c50bcaf4998afbe2e573ff9fe 100644 (file)
@@ -6,7 +6,6 @@
 #ifndef _ASM_ARCH_PCC_H
 #define _ASM_ARCH_PCC_H
 
-#include <common.h>
 #include <asm/arch/scg.h>
 
 /* PCC2 */
index b79bde338f4a119ed258cff97c6d96135fdc2a3d..3b5b7f6803ce10f2e419e5612469a6ad785d59a8 100644 (file)
@@ -6,8 +6,6 @@
 #ifndef _ASM_ARCH_SCG_H
 #define _ASM_ARCH_SCG_H
 
-#include <common.h>
-
 #ifdef CONFIG_CLK_DEBUG
 #define clk_debug(fmt, args...)        printf(fmt, ##args)
 #else
index 037045ca31424dc3fb76013961ac1a7ad308a0db..0a626fe647a293584dcb909d42fc0829511c96d9 100644 (file)
@@ -7,7 +7,6 @@
  */
 #ifndef _CLOCKS_OMAP4_H_
 #define _CLOCKS_OMAP4_H_
-#include <common.h>
 #include <asm/omap_common.h>
 
 /*
index e261bd43f26ddd1fc1676d8a872c75f72d71af85..87eb3f335ab061e6d9945c77bbc027bd7767409e 100644 (file)
@@ -8,7 +8,6 @@
  */
 #ifndef _CLOCKS_OMAP5_H_
 #define _CLOCKS_OMAP5_H_
-#include <common.h>
 #include <asm/omap_common.h>
 
 /*
index 09edfadc321bdebfcbf64f7c32c5e16a0d4f4873..ea2f113f98debb8b1a0d1342f8eb4f750e2620aa 100644 (file)
@@ -9,7 +9,6 @@
 #ifndef _DRA7_IODELAY_H_
 #define _DRA7_IODELAY_H_
 
-#include <common.h>
 #include <asm/arch/sys_proto.h>
 
 /* CONFIG_REG_0 */
index a14b64cdb3e077386cee6516efeb8c7d5dbe262f..86c906bb0edd933f9bcf76a526ff95b03ceed649 100644 (file)
@@ -5,8 +5,6 @@
 #ifndef _ASM_ARCH_CRU_RK3308_H
 #define _ASM_ARCH_CRU_RK3308_H
 
-#include <common.h>
-
 #define MHz            1000000
 #define OSC_HZ         (24 * MHz)
 
index 3e68626d3e9adbf5645f71f07c61d1f44304ba9a..a995bb950d975711f2a6776d75242fb5ac9620cb 100644 (file)
@@ -5,8 +5,6 @@
 #ifndef _ASM_ARCH_GRF_rk3308_H
 #define _ASM_ARCH_GRF_rk3308_H
 
-#include <common.h>
-
 struct rk3308_grf {
        unsigned int gpio0a_iomux;
        unsigned int reserved0;
index 5cf2aec11a7cbe45f26f21b59198428f39feffc0..5eb17f9d55467fd784e43e4fbfed8ec4a69bdbd8 100644 (file)
@@ -7,6 +7,10 @@
 #ifndef _ROCKCHIP_CLOCK_H
 #define _ROCKCHIP_CLOCK_H
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 #if defined(CONFIG_ROCKCHIP_RK3288)
 # include <asm/arch-rockchip/cru_rk3288.h>
 #elif defined(CONFIG_ROCKCHIP_RK3399)
index 798444ae49f5d2d7aefc9d8bb12388f9a0badc8f..732ca3704034728ec1c5abc3b146e0d6436655b8 100644 (file)
@@ -5,8 +5,6 @@
 #ifndef _ASM_ARCH_CRU_PX30_H
 #define _ASM_ARCH_CRU_PX30_H
 
-#include <common.h>
-
 #define MHz            1000000
 #define KHz            1000
 #define OSC_HZ         (24 * MHz)
index 4722522954072c5d8ad7c6f578ded70f2013d3c7..5db0407baa7571bf0bb8446b57cfc78de08aac49 100644 (file)
@@ -5,8 +5,6 @@
 #ifndef _ASM_ARCH_CRU_RK3036_H
 #define _ASM_ARCH_CRU_RK3036_H
 
-#include <common.h>
-
 #define OSC_HZ         (24 * 1000 * 1000)
 
 #define APLL_HZ                (600 * 1000000)
index b8565605cd8a6a7e67279c129fe253df463393b7..cca812d29e40728dfa8e29b841f4272b95f9e66b 100644 (file)
@@ -6,7 +6,9 @@
 #ifndef _ASM_ARCH_CRU_RK3128_H
 #define _ASM_ARCH_CRU_RK3128_H
 
-#include <common.h>
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
 
 #define MHz            1000000
 #define OSC_HZ         (24 * MHz)
index c87c830716dec2f334f834d5c2c597d0e65d94c6..ee12fa831f28fb4899c2606822400194e53c56fd 100644 (file)
@@ -5,8 +5,6 @@
 #ifndef _ASM_ARCH_CRU_RK322X_H
 #define _ASM_ARCH_CRU_RK322X_H
 
-#include <common.h>
-
 #define MHz            1000000
 #define OSC_HZ         (24 * MHz)
 
index 4bf69dbe08868c88c8ccbb7b4ea3d0e72dfa7a49..226744d67d9fdb16893a603a75676a8c36f23a08 100644 (file)
@@ -6,8 +6,6 @@
 #ifndef __ASM_ARCH_CRU_RK3328_H_
 #define __ASM_ARCH_CRU_RK3328_H_
 
-#include <common.h>
-
 struct rk3328_clk_priv {
        struct rk3328_cru *cru;
        ulong rate;
index 1fe1f01b9e5b99d4bfa8034e9ad15849e2811527..316c67c62f9d29efe7afe7695130951bea75abc8 100644 (file)
@@ -6,8 +6,9 @@
 #ifndef _ASM_ARCH_CRU_RK3368_H
 #define _ASM_ARCH_CRU_RK3368_H
 
-#include <common.h>
-
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
 
 /* RK3368 clock numbers */
 enum rk3368_pll_id {
index 789ca6aa28f2b971b3c7b5d66b44ae2c423228b2..d941a129f3e5fd88806e34b97c881a63887f0edc 100644 (file)
@@ -6,8 +6,6 @@
 #ifndef __ASM_ARCH_CRU_RK3399_H_
 #define __ASM_ARCH_CRU_RK3399_H_
 
-#include <common.h>
-
 /* Private data for the clock driver - used by rockchip_get_cru() */
 struct rk3399_clk_priv {
        struct rockchip_cru *cru;
index 7697e96a91ee72047d009878efbc87adc9e22c72..0ba5ff6a04f265da9ab46d9aaf6fa865b05aee26 100644 (file)
@@ -6,7 +6,9 @@
 #ifndef _ASM_ARCH_CRU_RV1108_H
 #define _ASM_ARCH_CRU_RV1108_H
 
-#include <common.h>
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
 
 #define OSC_HZ         (24 * 1000 * 1000)
 
index 82234cf8ad6b4706625c350daadb716932d51d1f..40cdcf4a45a0c1f5b5974aa0471e80275ab1478b 100644 (file)
@@ -6,6 +6,10 @@
 #ifndef __ASM_ARCH_DDR_RK3368_H__
 #define __ASM_ARCH_DDR_RK3368_H__
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 /*
  * The RK3368 DDR PCTL differs from the incarnation in the RK3288 only
  * in a few details. Most notably, it has an additional field to track
index 3d2a8770322ee71d3ce9d50b7893495fcea3480f..d51e29b19eeaf27b34c7208b8858eba6a004b14e 100644 (file)
@@ -5,8 +5,6 @@
 #ifndef _ASM_ARCH_GRF_px30_H
 #define _ASM_ARCH_GRF_px30_H
 
-#include <common.h>
-
 struct px30_grf {
        unsigned int gpio1al_iomux;
        unsigned int gpio1ah_iomux;
index 5f12ebf262fa17e74b437d0b630d78266e329b0b..08348d8228a1dd9c82f8ca0d749cc551e697a5c0 100644 (file)
@@ -5,8 +5,6 @@
 #ifndef _ASM_ARCH_GRF_RK3036_H
 #define _ASM_ARCH_GRF_RK3036_H
 
-#include <common.h>
-
 struct rk3036_grf {
        unsigned int reserved[0x2a];
        unsigned int gpio0a_iomux;
index 519b36ad2ad009fca7bc3189f635b59f1dee388e..fe07d69b4280bae5bd04007271a51f4ad5154c3d 100644 (file)
@@ -5,8 +5,6 @@
 #ifndef _ASM_ARCH_GRF_RK3128_H
 #define _ASM_ARCH_GRF_RK3128_H
 
-#include <common.h>
-
 struct rk3128_grf {
        unsigned int reserved[0x2a];
        unsigned int gpio0a_iomux;
index a99d13732d01364cf4e82b1333d3c7d3cefc1849..5f4d9d822495340ca3bd391c4bb16c0a03ee5943 100644 (file)
@@ -5,8 +5,6 @@
 #ifndef _ASM_ARCH_GRF_RK322X_H
 #define _ASM_ARCH_GRF_RK322X_H
 
-#include <common.h>
-
 struct rk322x_grf {
        unsigned int gpio0a_iomux;
        unsigned int gpio0b_iomux;
index b70b08fccecd7ade8db0f2b028ecf5762855665b..0079d20078049816c8e9addee49598da885b29dc 100644 (file)
@@ -6,7 +6,9 @@
 #ifndef _ASM_ARCH_GRF_RK3368_H
 #define _ASM_ARCH_GRF_RK3368_H
 
-#include <common.h>
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
 
 struct rk3368_grf {
        u32 gpio1a_iomux;
index 9f42fbde8dc1413198119426528151b1502c8d7e..92bbe34af68c3029d2e2c46224830323e6ebde5f 100644 (file)
@@ -5,8 +5,6 @@
 #ifndef _ASM_ARCH_GRF_RV1108_H
 #define _ASM_ARCH_GRF_RV1108_H
 
-#include <common.h>
-
 struct rv1108_grf {
        u32 reserved[4];
        u32 gpio1a_iomux;
index 0f00df6bf5279f042af9d491f6c9ae0a312879d4..fb25504b12bf88d4e29c2d6cbb9e353e3abe7bde 100644 (file)
@@ -6,6 +6,10 @@
 #ifndef _ASM_ARCH_LVDS_RK3288_H
 #define _ASM_ARCH_LVDS_RK3288_H
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 #define RK3288_LVDS_CH0_REG0                   0x00
 #define RK3288_LVDS_CH0_REG0_LVDS_EN           BIT(7)
 #define RK3288_LVDS_CH0_REG0_TTL_EN            BIT(6)
index 97818817389e3448e29c30ac8c472d6f728900dd..3a3657789f6b76c8ecb0edad243bf9fe6baa88ba 100644 (file)
@@ -7,6 +7,10 @@
 #define _ASM_ARCH_SDRAM_PCTL_PX30_H
 #include <asm/arch-rockchip/sdram_common.h>
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 struct ddr_pctl_regs {
        u32 pctl[30][2];
 };
index c75a633c919ebb3147ea78925a4b65c4d1f18653..a033a1853882427df310171037d4dc79391a4a01 100644 (file)
@@ -8,6 +8,10 @@
 #include <asm/arch-rockchip/sdram_common.h>
 #include <asm/arch-rockchip/sdram_phy_ron_rtt_px30.h>
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 struct ddr_phy_regs {
        u32 phy[5][2];
 };
index 5de3220d6f19a8d80be61063cd6fddca61c908ac..46298165fbcc2736c1e8bc8c27e3f5bc2753beef 100644 (file)
@@ -5,8 +5,6 @@
 #ifndef _ASM_ARCH_SDRAM_RK3036_H
 #define _ASM_ARCH_SDRAM_RK3036_H
 
-#include <common.h>
-
 struct rk3036_ddr_pctl {
        u32 scfg;
        u32 sctl;
index 336c5d7e8c406bb5fb256bd34afd78a9ad06bafe..6f6c5c9954fb6a6e0ac4f96d08cd0d3098a8d930 100644 (file)
@@ -5,7 +5,9 @@
 #ifndef _ASM_ARCH_SDRAM_RK322X_H
 #define _ASM_ARCH_SDRAM_RK322X_H
 
-#include <common.h>
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
 
 struct rk322x_sdram_channel {
        /*
index 267649fda4cb6fc82b280c024319edc9f8cb568d..c76372ee826a9b29cd017d3053ec11a15a76bf95 100644 (file)
@@ -7,6 +7,9 @@
 #define _ASM_ARCH_SDRAM_RK3399_H
 #include <asm/arch-rockchip/sdram_common.h>
 #include <asm/arch-rockchip/sdram_msch.h>
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
 
 struct rk3399_ddr_pctl_regs {
        u32 denali_ctl[332];
index c60065444cc10648f358ef968ea8b057792975b1..70846094e89807a5f81e144ff0baf79a177760eb 100644 (file)
@@ -6,8 +6,6 @@
 #ifndef __ASM_ARCH_CLOCK_H
 #define __ASM_ARCH_CLOCK_H
 
-#include <common.h>
-
 enum mxc_clock {
        MXC_ARM_CLK = 0,
        MXC_BUS_CLK,
index 9a779cce965075cd848fca74bf22df45a6a85fa1..1472a43f1bc20a8f01bd125ae702e8c53b672ae0 100644 (file)
@@ -323,6 +323,6 @@ struct mscm_ir {
        u32 ipcie[4];           /* Interconnect Parity Checking Injection Enable Register       */
 };
 
-#endif /* __ASSEMBLER__ */
+#endif /* __ASSEMBLY__ */
 
 #endif /* __ASM_ARCH_IMX_REGS_H__ */
index 105d3580ef19aeee88904b72b902ec85e7e38855..d5557b89fcbc483fb202f209310ac991faad720c 100644 (file)
@@ -7,6 +7,10 @@
 #ifndef __STI_SDHCI_H__
 #define __STI_SDHCI_H__
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 #define FLASHSS_MMC_CORE_CONFIG_1                      0x400
 #define FLASHSS_MMC_CORECFG_TIMEOUT_CLK_UNIT_MHZ       BIT(24)
 #define FLASHSS_MMC_CORECFG_TIMEOUT_CLK_FREQ_MIN       BIT(12)
index de42996037d4728a229eaea5a825de41ec4513be..8af6de220d8b0aac634ed7e6ede643fb096d2e76 100644 (file)
@@ -5,6 +5,11 @@
  */
 
 #ifndef __STM32_PWR_H_
+#define __STM32_PWR_H_
+
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
 
 /*
  * Offsets of some PWR registers
index c93fc5a7e30456af04aa2173359332ee6e399f74..02faaeb663cdb260ab143024dfdc982844a67964 100644 (file)
@@ -5,6 +5,11 @@
  */
 
 #ifndef __STM32_PWR_H_
+#define __STM32_PWR_H_
+
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
 
 /*
  * Offsets of some PWR registers
index ce2a952f787b652624f9e32b2adc73df2b121b23..985ae2544deb188d58dac3f8113c925c128dddb5 100644 (file)
@@ -7,6 +7,10 @@
 #ifndef _STM32_SYSCFG_H
 #define _STM32_SYSCFG_H
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 struct stm32_syscfg_regs {
        u32 memrmp;
        u32 pmc;
index 5dd97ab227303d6b340196f9c8681f70616e7507..cac5c5faf05641f775c72288d6dffa1803ec632c 100644 (file)
@@ -7,6 +7,10 @@
 #ifndef _ASM_ARCH_CCU_H
 #define _ASM_ARCH_CCU_H
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 /**
  * enum ccu_flags - ccu clock/reset flags
  *
index e36937059b6e1d57f21ffb9c69659d1dcf142a67..426069fc69a4f89496c0c5b630443a8d3fa499fe 100644 (file)
@@ -9,6 +9,10 @@
 #ifndef _SUNXI_CLOCK_SUN50I_H6_H
 #define _SUNXI_CLOCK_SUN50I_H6_H
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 struct sunxi_ccm_reg {
        u32 pll1_cfg;           /* 0x000 pll1 (cpux) control */
        u8 reserved_0x004[12];
index 530e0dd73b54aca3e3f6647a5c69e1b6a0ddc6fc..fe6b8ba273280ef62fcbfc9dabf2230ba57dccd3 100644 (file)
@@ -8,6 +8,10 @@
 #ifndef _SUNXI_CLOCK_SUN9I_H
 #define _SUNXI_CLOCK_SUN9I_H
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 struct sunxi_ccm_reg {
        u32 pll1_c0_cfg;        /* 0x00 c0cpu# pll configuration */
        u32 pll2_c1_cfg;        /* 0x04 c1cpu# pll configuration */
index 49a8a66f7b119e20a6fe1aa10b9976c2cbd1c674..be02655cdd52074f7a29818b6f83da38d1889393 100644 (file)
@@ -10,6 +10,9 @@
 #define _SUNXI_DRAM_SUN50I_H6_H
 
 #include <stdbool.h>
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
 
 enum sunxi_dram_type {
        SUNXI_DRAM_TYPE_DDR3 = 3,
index 929450fc6747f34a078f63607fdbe692bf93a0d6..b66d58cd73b6718275b44af68e631ae2ea5ea367 100644 (file)
 #ifndef _SUNXI_DRAM_SUN6I_H
 #define _SUNXI_DRAM_SUN6I_H
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 struct sunxi_mctl_com_reg {
        u32 cr;                 /* 0x00 */
        u32 ccr;                /* 0x04 controller configuration register */
index 49a6108c19ed36e87f27288eda3edc312ee58ca3..3f65306cc68aee495d2b41253cabefddb5bdc5f4 100644 (file)
 #ifndef _SUNXI_DRAM_SUN8I_A33_H
 #define _SUNXI_DRAM_SUN8I_A33_H
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 struct sunxi_mctl_com_reg {
        u32 cr;                 /* 0x00 */
        u32 ccr;                /* 0x04 controller configuration register */
index d4634e55e45f8203f1e24ec275e05a51d06d12bf..2a8799635473aa77d2d30c56ec851b7b5fc9ce7e 100644 (file)
 #ifndef _SUNXI_DRAM_SUN8I_A83T_H
 #define _SUNXI_DRAM_SUN8I_A83T_H
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 struct sunxi_mctl_com_reg {
        u32 cr;                 /* 0x00 */
        u32 ccr;                /* 0x04 controller configuration register */
index 603850b9ffd32ed3dbcf88cbee1246be0ac313e3..41df5fe5b6f904d3d35446f14c01049b23377ea6 100644 (file)
 #ifndef _SUNXI_DRAM_SUN9I_H
 #define _SUNXI_DRAM_SUN9I_H
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 struct sunxi_mctl_com_reg {
        u32 cr;                 /* 0x00 */
        u32 ccr;                /* 0x04 controller configuration register */
index dca283c7a93aacb9b4f33ed558f487312c4b78d4..b89bddd2e898d5f5ac83d72583751b2775f0946d 100644 (file)
@@ -6,6 +6,10 @@
 #ifndef _SUNXI_PWM_H
 #define _SUNXI_PWM_H
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 #define SUNXI_PWM_CTRL_REG             (SUNXI_PWM_BASE + 0)
 #define SUNXI_PWM_CH0_PERIOD           (SUNXI_PWM_BASE + 4)
 
index 616b6e2a6495fe3be02caa8e9cfe7f1f3db2dc78..8c64a995f255fcc2acf7b014f899297597755e45 100644 (file)
@@ -11,7 +11,6 @@
 #ifndef __SUNXI_RSB_H
 #define __SUNXI_RSB_H
 
-#include <common.h>
 #include <asm/io.h>
 
 struct sunxi_rsb_reg {
index 021c24617575ec5d97ed3dc5825e258712b980aa..4e1da98d1f2105bc61ce8849b482e14efe1c31b6 100644 (file)
@@ -6,7 +6,10 @@
 #ifndef _TEGRA_CBOOT_H_
 #define _TEGRA_CBOOT_H_
 
+#include <net.h>
+
 #ifdef CONFIG_ARM64
+
 extern unsigned long cboot_boot_x0;
 
 void cboot_save_boot_params(unsigned long x0, unsigned long x1,
index 59347dd3d8153e96a38b67ff26afcf2d07c8a876..6444af2993a033de27285102bc66be9b3b551a39 100644 (file)
@@ -7,6 +7,10 @@
 #ifndef __ASM_ARCH_TEGRA_DC_H
 #define __ASM_ARCH_TEGRA_DC_H
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 /* Register definitions for the Tegra display controller */
 
 /* CMD register 0x000 ~ 0x43 */
index 53cb56d2713ee1f72b463ef5f913eb346d8ec77b..52c10b8fab3e74b1ec5686b22a6b7b7cd847b048 100644 (file)
@@ -6,8 +6,6 @@
 #ifndef _ASM_ARCH_TEGRA_IVC_H
 #define _ASM_ARCH_TEGRA_IVC_H
 
-#include <common.h>
-
 /*
  * Tegra IVC is a communication protocol that transfers fixed-size frames
  * bi-directionally and in-order between the local CPU and some remote entity.
index 1524bf29116433f3ff8e126d338f51acddacc897..e1f5a7381357035264fcc7cf35adbd8507e0ec28 100644 (file)
@@ -7,6 +7,10 @@
 #ifndef _PMC_H_
 #define _PMC_H_
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 /* Power Management Controller (APBDEV_PMC_) registers */
 struct pmc_ctlr {
        uint pmc_cntrl;                 /* _CNTRL_0, offset 00 */
index 70dcf4aa663b771edd760493cf8395c4fef74e74..d6a55764ba3774de0079eb6b8b971437de2c564b 100644 (file)
@@ -8,7 +8,6 @@
 #ifndef __TEGRA_MMC_H_
 #define __TEGRA_MMC_H_
 
-#include <common.h>
 #include <clk.h>
 #include <reset.h>
 #include <fdtdec.h>
index 62947bf99c84dd38ccd7269fc2ba9e582fc24b17..ebcb22f1cb901862b64a540da0050d4919a131c0 100644 (file)
@@ -7,6 +7,10 @@
 #ifndef _TEGRA124_FLOW_H_
 #define _TEGRA124_FLOW_H_
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 struct flow_ctlr {
        u32 halt_cpu_events;    /* offset 0x00 */
        u32 halt_cop_events;    /* offset 0x04 */
index 72184fd60834db22d0d7b6489f6fc2340951abca..ec9786ce4fef08a128091fcdf081a63f688ba884 100644 (file)
@@ -6,8 +6,6 @@
 #ifndef __ASM_ARCH_CLOCK_H
 #define __ASM_ARCH_CLOCK_H
 
-#include <common.h>
-
 enum mxc_clock {
        MXC_ARM_CLK = 0,
        MXC_BUS_CLK,
index ae0a187c4db85e7132df9e0219bc1e1a9c985982..97211f4b12af4f082ebc667eb11a2812ef6635a5 100644 (file)
 
 #if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__))
 #include <asm/types.h>
+#include <linux/bitops.h>
 
 /* System Reset Controller (SRC) */
 struct src {
@@ -474,6 +475,6 @@ struct mscm {
        u32 cpxcfg3;
 };
 
-#endif /* __ASSEMBLER__*/
+#endif /* __ASSEMBLY__ */
 
 #endif /* __ASM_ARCH_IMX_REGS_H__ */
index 8f77ec42a6a752a50aa8be26b57ac767a9e64e4e..16b9d0d1aeb3ad8f8146038910ec72e45e9ba820 100644 (file)
@@ -7,6 +7,10 @@
 #ifndef _ASM_ARMV7_MPU_H
 #define _ASM_ARMV7_MPU_H
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 #ifdef CONFIG_CPU_V7M
 #define AP_SHIFT                       24
 #define XN_SHIFT                       28
index b02c454d04c14ae755b38016ad067040be557c0a..fa8548624a049979f4d8895375cfb1a3d090f488 100644 (file)
 #define __ASM_ARM_BITOPS_H
 
 #include <asm-generic/bitops/__ffs.h>
+#include <asm-generic/bitops/__fls.h>
+#include <asm-generic/bitops/fls.h>
+#include <asm-generic/bitops/fls64.h>
 
 #ifdef __KERNEL__
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
 #include <asm/proc-armv/system.h>
 
 #define smp_mb__before_clear_bit()     do { } while (0)
@@ -176,8 +182,4 @@ found_middle:
 
 #endif /* __KERNEL__ */
 
-#include <asm-generic/bitops/__fls.h>
-#include <asm-generic/bitops/fls.h>
-#include <asm-generic/bitops/fls64.h>
-
 #endif /* _ARM_BITOPS_H */
index 8bb3fa2e0ee7a8508aabed7abbfbe0c7284481e5..8af1ea0aa4df83b9d8c61b0b031dae9e9659e666 100644 (file)
@@ -7,10 +7,10 @@
 #ifndef __ASM_ARM_DMA_MAPPING_H
 #define __ASM_ARM_DMA_MAPPING_H
 
-#include <common.h>
 #include <asm/cache.h>
 #include <cpu_func.h>
 #include <linux/dma-direction.h>
+#include <linux/kernel.h>
 #include <linux/types.h>
 #include <malloc.h>
 
index 1549f7bf214fb6fdf567b9d7273c6a6fc72022bc..f970bba937588b48e3504bf7f56dd9d0be5c12cc 100644 (file)
@@ -123,6 +123,7 @@ struct omap_ehci {
        u32 insreg08;           /* 0xb0 */
 };
 
+#if !CONFIG_IS_ENABLED(DM_USB) || !CONFIG_IS_ENABLED(OF_CONTROL)
 /*
  * FIXME: forward declaration of this structs needed because omap got the
  * ehci implementation backwards. move out ehci_hcd_x from board files
@@ -133,5 +134,6 @@ struct ehci_hcor;
 int omap_ehci_hcd_init(int index, struct omap_usbhs_board_data *usbhs_pdata,
                       struct ehci_hccr **hccr, struct ehci_hcor **hcor);
 int omap_ehci_hcd_stop(void);
+#endif
 
 #endif /* _OMAP_COMMON_EHCI_H_ */
index dc398efd32cf236d5eeac72ffcad3f26bf685fe5..35424345bf02b0953dce03c6b55bed3d3931d081 100644 (file)
@@ -13,7 +13,6 @@
 #ifndef _EMIF_H_
 #define _EMIF_H_
 #include <asm/types.h>
-#include <common.h>
 #include <asm/io.h>
 
 /* Base address */
index ac6c9e7013404b29eaf0f3477faa0da02c488c87..5131fabec4510daf46f6ceb680ef109b8583d33b 100644 (file)
@@ -6,6 +6,10 @@
 #ifndef __GIC_V3_H__
 #define __GIC_V3_H__
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 #define GICR_CTLR_ENABLE_LPIS          BIT(0)
 #define GICR_CTLR_RWP                  BIT(3)
 
index 247a91afb06aba09a7eb6d71be3255081e219dd8..55eb84cb8e7e2ecea121e2b1c6c6ed3d927388a8 100644 (file)
@@ -13,6 +13,7 @@
 #ifndef __DMA_H__
 #define __DMA_H__
 
+#include <asm/cache.h>
 #include <linux/list.h>
 #include <linux/compiler.h>
 
index 06dbd8d943a41d4bf3d2fa8dcd7af6d4b1a7fcde..1de70933550fc561681577c22c392836c3d9b508 100644 (file)
@@ -10,7 +10,7 @@
 #ifndef __MACH_IOMUX_V3_H__
 #define __MACH_IOMUX_V3_H__
 
-#include <common.h>
+#include <linux/types.h>
 
 /*
  *     build IOMUX_PAD structure
index 927195f87ac1520cef62d057bcb164e8fac235c4..0bc705df17237054349e08575d156d475af316d4 100644 (file)
 #include <asm/io.h>
 #include <asm/mach-imx/regs-common.h>
 #include <asm/mach-imx/module_fuse.h>
-#include <common.h>
+#include <linux/bitops.h>
 #include "../arch-imx/cpu.h"
 
+struct bd_info;
+
 #define soc_rev() (get_cpu_rev() & 0xFF)
 #define is_soc_rev(rev) (soc_rev() == rev)
 
@@ -182,7 +184,7 @@ char nxp_board_rev_string(void);
  * Initializes on-chip ethernet controllers.
  * to override, implement board_eth_init()
  */
-int fecmxc_initialize(bd_t *bis);
+int fecmxc_initialize(struct bd_info *bis);
 u32 get_ahb_clk(void);
 u32 get_periph_clk(void);
 
index 54b7cd19bbf7c2bc0483ebfc68fdae0dc075438a..de8fc99d0478aa813b5037aa2969a92f2580ec15 100644 (file)
 
 #ifndef __ASSEMBLY__
 
-#include <common.h>
+#include <linux/types.h>
 
 #define NUM_SYS_CLKS   7
 
+struct bd_info;
+
 struct prcm_regs {
        /* cm1.ckgen */
        u32 cm_clksel_core;
@@ -683,9 +685,9 @@ void omap_die_id(unsigned int *die_id);
 void gpi2c_init(void);
 
 /* Common FDT Fixups */
-int ft_hs_disable_rng(void *fdt, bd_t *bd);
-int ft_hs_fixup_dram(void *fdt, bd_t *bd);
-int ft_hs_add_tee(void *fdt, bd_t *bd);
+int ft_hs_disable_rng(void *fdt, struct bd_info *bd);
+int ft_hs_fixup_dram(void *fdt, struct bd_info *bd);
+int ft_hs_add_tee(void *fdt, struct bd_info *bd);
 
 /* ABB */
 #define OMAP_ABB_NOMINAL_OPP           0
index 6d31cc4422602b6cde942c8490eae434df64d509..7933ad5a867a9048305ad5a9f31ee318f48d8dc8 100644 (file)
@@ -26,6 +26,9 @@
 #define OMAP_MMC_H_
 
 #include <mmc.h>
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
 
 struct hsmmc {
 #ifndef CONFIG_OMAP34XX
index f10a41f3048b63bc1f411359c73ef2ae29343a26..30f0a9f5cbc87cbfe6a48b5f02ade0958cc703a1 100644 (file)
@@ -8,8 +8,6 @@
 #ifndef        _OMAP_SEC_COMMON_H_
 #define        _OMAP_SEC_COMMON_H_
 
-#include <common.h>
-
 /*
  * Invoke secure ROM API on high-security (HS) device variants. It formats
  * the variable argument list into the format expected by the ROM code before
index 3ddcd95a26d0ff65d5dc19836bdec138c0acf3e2..67e9234066b03151ecdf41eea0392fbedc4b4eaa 100644 (file)
 #ifndef __ARM_PSCI_H__
 #define __ARM_PSCI_H__
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 #define ARM_PSCI_VER_1_0               (0x00010000)
 #define ARM_PSCI_VER_0_2               (0x00000002)
 
 
 #ifndef __ASSEMBLY__
 #include <asm/types.h>
+#include <linux/bitops.h>
 
 /* These 3 helper functions assume cpu < CONFIG_ARMV7_PSCI_NR_CPUS */
 u32 psci_get_target_pc(int cpu);
index a3147fde146d9197b372b36ecfb9eab5931bb64d..1e3f574403a05ceb81cbdfd1ec88e8a811480566 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef __ASM_ARM_SYSTEM_H
 #define __ASM_ARM_SYSTEM_H
 
-#include <common.h>
 #include <linux/compiler.h>
 #include <asm/barriers.h>
 
 
 #ifndef __ASSEMBLY__
 
+struct pt_regs;
+
 u64 get_page_table_size(void);
 #define PGTABLE_SIZE   get_page_table_size()
 
index bba1048499ba3887e00896c3519f2c7aabca49c9..0852ce80a64198102de277fb23fb024af2f63627 100644 (file)
@@ -11,6 +11,9 @@
 
 #include <asm/io.h>
 #include <phy.h>
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
 
 /* EMAC */
 #ifdef CONFIG_KSNET_NETCP_V1_0
index fbc421b6305e1167d67ae889592119d029f20d38..42d7e4c989e281ab280e3f21978d226fb208882a 100644 (file)
 #ifndef __OMAP_WDT_H__
 #define __OMAP_WDT_H__
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 /*
  * Watchdog:
  * Using the prescaler, the OMAP watchdog could go for many
index 96c8a31fb831f90c2d3789600101e3c590ffbf62..9abdbc88e40b857b54ecdd19bd7b245fc7cce131 100644 (file)
@@ -9,6 +9,9 @@
 #ifndef _EDMA3_H_
 #define _EDMA3_H_
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
 #include <linux/stddef.h>
 
 #define EDMA3_PARSET_NULL_LINK                 0xffff
index f4b5ca6de004dec95d8b2924984bac040e33da6a..2df98d3e01bd8ce175160069452d2429d034fa00 100644 (file)
  */
 
 #include <common.h>
+#include <bootstage.h>
 #include <command.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <hang.h>
+#include <lmb.h>
+#include <log.h>
 #include <dm/root.h>
 #include <env.h>
 #include <image.h>
@@ -29,6 +32,7 @@
 #include <linux/compiler.h>
 #include <bootm.h>
 #include <vxworks.h>
+#include <asm/cache.h>
 
 #ifdef CONFIG_ARMV7_NONSEC
 #include <asm/armv7.h>
@@ -419,7 +423,7 @@ static void boot_jump_linux(bootm_headers_t *images, int flag)
  * DIFFERENCE: Instead of calling prep and go at the end
  * they are called if subcommand is equal 0.
  */
-int do_bootm_linux(int flag, int argc, char * const argv[],
+int do_bootm_linux(int flag, int argc, char *const argv[],
                   bootm_headers_t *images)
 {
        /* No need for those on ARM */
index f803d6fb8ce97b29909015f039daa5d50d86e7dd..1da2e92fe24110a00c0c1038ffea17d6a8e9ec0f 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <log.h>
 #include <asm/system.h>
 #include <asm/cache.h>
 #include <linux/compiler.h>
index 224f2aef14db6146471345fbd9fd801379fad405..ee7d14b2d31dfd426809073a1a6f0ea9c0cd6681 100644 (file)
@@ -8,7 +8,9 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <log.h>
 #include <malloc.h>
+#include <asm/cache.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 03dde842528b32523812edc4dee31b4657aa8648..c905ecc4bd943f0cc164009eba09ab9c4332d444 100644 (file)
@@ -32,7 +32,7 @@
  *    instructions, otherwise a fault occurs."
  */
 unsigned long do_go_exec(ulong (*entry)(int, char * const []),
-                        int argc, char * const argv[])
+                        int argc, char *const argv[])
 {
        ulong addr = (ulong)entry | 1;
        entry = (void *)addr;
index 6ee22d2944b5acfd9ed782979ad00775567bd58f..90f37a123cd82beb429142370adff16c2eee21f0 100644 (file)
@@ -6,6 +6,7 @@
 #include <asm/gic.h>
 #include <asm/gic-v3.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 #include <linux/sizes.h>
 
 static u32 lpi_id_bits;
index 699bf44e702f7a7084997406203fd7d2aaaf87fa..94590d3049ad197a3fc8193d4ddaa4d3920e3927 100644 (file)
@@ -5,7 +5,9 @@
  */
 
 #include <common.h>
+#include <image.h>
 #include <mapmem.h>
+#include <linux/bitops.h>
 #include <linux/sizes.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index 36299d6e54315d196db182e8110a02b3febf1ae1..703be5a3209c10a8d9840ced83aa1cb1aa2c06b8 100644 (file)
@@ -23,6 +23,7 @@
 #include <efi_loader.h>
 #include <irq_func.h>
 #include <asm/proc-armv/ptrace.h>
+#include <asm/ptrace.h>
 #include <asm/u-boot-arm.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index a2df7cf193c57966b8db2e634de58e6e1d1f3567..5299489013760b72d2a2664d02a74783aed1e2c3 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <asm/ptrace.h>
 #include <irq_func.h>
 #include <linux/compiler.h>
 #include <efi_loader.h>
index 246f3c7cb84a1a0ef57ec0e956099c45f223b0f5..0ed29a43f10fa6e3a6d18f745dfaa419f7b66471 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <asm/cache.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <linux/sizes.h>
index 835a40e59d93b466c87298e684ec5aee763b4c2b..4f1a768bfe1382e0b0e695e784b2e227dd1bd632 100644 (file)
  */
 
 #include <common.h>
+#include <command.h>
 #include <cpu_func.h>
 #include <irq_func.h>
+#include <linux/delay.h>
 
 __weak void reset_misc(void)
 {
 }
 
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        puts ("resetting ...\n");
 
-       udelay (50000);                         /* wait 50 ms */
+       mdelay(50);                             /* wait 50 ms */
 
        disable_interrupts();
 
index 2658026cf49ee5619304d36a566f6c60030c8709..904fddd6c04e0dcc279b588e3c3b642a2a215bb2 100644 (file)
@@ -13,6 +13,8 @@
  */
 #include <common.h>
 #include <command.h>
+#include <env.h>
+#include <log.h>
 
 #define SYSOPEN                0x01
 #define SYSCLOSE       0x02
@@ -180,7 +182,8 @@ static int smh_load_file(const char * const name, ulong load_addr,
        return 0;
 }
 
-static int do_smhload(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_smhload(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        if (argc == 3 || argc == 4) {
                ulong load_addr;
index 33cc76ba3de3cb2d94dff85fce1cbbe9ff600814..af0c9ad6bd6c676e590a783438e084fccb2ccc39 100644 (file)
@@ -9,8 +9,11 @@
 
 #include <common.h>
 #include <config.h>
+#include <init.h>
+#include <log.h>
 #include <spl.h>
 #include <image.h>
+#include <asm/cache.h>
 #include <linux/compiler.h>
 #include <asm/mach-types.h>
 
index c89a219dd26d00daf014aa4d9a55359ee0583aab..96a248c0a907a361ce13950071054e0b65f7917f 100644 (file)
@@ -11,6 +11,7 @@
  * Marius Groeger <mgroeger@sysgo.de>
  */
 #include <common.h>
+#include <init.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 49305299b39a9f473b8578c4b5957cf285711703..477ea94997de090e952bb08679d18de7df03da8e 100644 (file)
@@ -7,6 +7,7 @@
  * Copyright (C) 2012 Marek Vasut <marek.vasut@gmail.com>
  */
 #include <common.h>
+#include <image.h>
 
 #define        LINUX_ARM_ZIMAGE_MAGIC  0x016f2818
 #define        BAREBOX_IMAGE_MAGIC     0x00786f62
index e7edd544e2e1eda12261d11d7b1a0e54e4dddbf2..f74dcbbb624000bf6a75ce1f74c72d908f2571e6 100644 (file)
@@ -4,6 +4,8 @@
  */
 #include <common.h>
 #include <dm.h>
+#include <init.h>
+#include <log.h>
 #include <ram.h>
 #include <timer.h>
 #include <asm/io.h>
index 9498cbc92d7d5b75d18bd52000864f61b83f84b9..a3adaa8a999cc372d731f214026571485635501f 100644 (file)
@@ -9,6 +9,7 @@
 #include <clk.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <ram.h>
 #include <regmap.h>
 #include <reset.h>
index 42d0d2269f5cba7b318354d21929f56e4d74af0a..44c079c0fdd9baea90f9ada849aff5f02762504c 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/clk.h>
index 3aef9538b4a06ec6d78c09aff4d885f4079d6e48..dca2d2c70c77dba0ba5f92d57e7174b04ab6e2a0 100644 (file)
@@ -14,7 +14,9 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <time.h>
+#include <linux/delay.h>
 
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
index e9b4e06595e87cf24868d26eeb2462763b80636c..761edb6df58959a6dbeb3eff56a8e0913aceb81f 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <vsprintf.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
index 7b61fa722603432c7005e81ffce781bf127cba1f..23c24936edf0246d5078959985544c66157edf32 100644 (file)
@@ -43,6 +43,8 @@
  * do a read-modify-write for partially programmed pages
  */
 #include <common.h>
+#include <flash.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/at91_common.h>
@@ -58,7 +60,7 @@
 flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 static u32 pagesize;
 
-unsigned long flash_init (void)
+unsigned long flash_init(void)
 {
        at91_eefc_t *eefc = (at91_eefc_t *) ATMEL_BASE_EEFC;
        at91_dbu_t *dbu = (at91_dbu_t *) ATMEL_BASE_DBGU;
@@ -127,7 +129,7 @@ unsigned long flash_init (void)
        return size;
 }
 
-void flash_print_info (flash_info_t *info)
+void flash_print_info(flash_info_t *info)
 {
        int i;
 
@@ -202,7 +204,7 @@ static u32 erase_write_page (u32 pagenum)
                & (AT91_EEFC_FSR_FCMDE | AT91_EEFC_FSR_FLOCKE);
 }
 
-int flash_erase (flash_info_t *info, int s_first, int s_last)
+int flash_erase(flash_info_t *info, int s_first, int s_last)
 {
        debug("erase first=%d last=%d\n", s_first, s_last);
        puts("this flash does not need and support erasing!\n");
@@ -215,7 +217,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
  * 1 - write timeout
  */
 
-int write_buff (flash_info_t *info, uchar *src, ulong addr, ulong cnt)
+int write_buff(flash_info_t *info, uchar *src, ulong addr, ulong cnt)
 {
        u32 pagenum;
        u32 *src32, *dst32;
index 31ad0bf7026f99354a203c4bad821d21ed3b34fb..42ef349966b02068797478a1049c7591428331aa 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <time.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
index 3640fce8821d57df336e3470145f5f4d54dcc4cc..39268969580b0e00fd21125a28288be442a50e27 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include <common.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
index 4474a9674372868eb7567e6cfbd023f33ab543f3..a8f4356ce94fdd247e0c01be33711778599f448d 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
 #include <vsprintf.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
index 15c036cc27edf0787d5de6cc565e2c814dbd84d1..a6346c01b285170ae3c991b8b472404d22c8f025 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <time.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
index f423afd0ad3ecf289883c25a2d26582b34415e93..2ce99d956c50b39c8f9dfc945fefca6fbab2dc2c 100644 (file)
@@ -24,6 +24,7 @@
 #else
 
 #include <asm/types.h>
+#include <linux/bitops.h>
 
 typedef struct at91_pmc {
        u32     scer;           /* 0x00 System Clock Enable Register */
index 0300c336dd81c6f90a0a360e91cbebbbaf5ac143..4517df41bce0200c467fa5b8f9344849c800ad87 100644 (file)
@@ -9,6 +9,7 @@
 #ifndef __AT91_SFR_H
 #define __AT91_SFR_H
 
+#include <linux/bitops.h>
 struct atmel_sfr {
        u32 reserved1;  /* 0x00 */
        union {
index 7a03d6d3c73e85370e820f923a3936f93555fbdf..f348b05bc8529f6f1c619fcb2a6e0e02e2a20238 100644 (file)
@@ -9,6 +9,7 @@
 
 #ifndef __ASSEMBLY__
 
+#include <linux/bitops.h>
 struct atmel_pio4_port {
        u32 mskr;               /* 0x00 PIO Mask Register */
        u32 cfgr;               /* 0x04 PIO Configuration Register */
index 3df0ea7c7924f5ce0c298a7a14ed96b0f261c9c4..5422c05456e03c5aaa3837f045087e5728cb93be 100644 (file)
@@ -11,6 +11,7 @@
 #include <asm/io.h>
 #include <asm/arch/atmel_mpddrc.h>
 #include <asm/arch/at91_common.h>
+#include <linux/delay.h>
 
 #define SAMA5D3_MPDDRC_VERSION         0x140
 
index a10c0cae74a3075551f8c1a9c13d0b9f93d1c49a..6101eee3589cba6b37bd05dbe1d7587ebe830101 100644 (file)
@@ -14,6 +14,7 @@
 #include <common.h>
 #include <asm/hardware.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include <linux/sizes.h>
 #include <asm/arch/at91_rstc.h>
 #include <watchdog.h>
index 822f877de717a00633d8afb945561080452243b0..35a3d5185d3fbaa5446896ed1507b331ca515613 100644 (file)
@@ -10,6 +10,8 @@
 
 #include <common.h>
 #include <hang.h>
+#include <init.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/at91_common.h>
 #include <asm/arch/at91sam9_matrix.h>
index 6ee0e1c24cfbc6fa4715ae2ffcf9753a9a9800f6..23588e79f949976459c390b1b3a64edff679fe69 100644 (file)
@@ -6,6 +6,8 @@
 
 #include <common.h>
 #include <hang.h>
+#include <init.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/at91_common.h>
 #include <asm/arch/at91_pit.h>
index 01c0ebad64b4e1b9d8dc69ed241363375feced84..5567dbd7f3d2dcd6dfcfb06584f78bae1b1a5f12 100644 (file)
@@ -8,6 +8,7 @@
 
 #ifndef __ASSEMBLY__
 #include <asm/arch/base.h>
+#include <linux/bug.h>
 #endif
 
 #define BCM2835_TIMER_PHYSADDR ({ BUG_ON(!rpi_bcm283x_base); \
index 9966d6c8336bd850129a0d0809d5d674cfbba151..f4d00d892dc7aca725e9131b29a2d2f71bae68ae 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
 #include <dm/device.h>
 #include <fdt_support.h>
 
index 17855506427159715d02b815d3136ffbf62a2a1d..da9faafe1ddc64d21bf6354f4684d7a7b89e023a 100644 (file)
@@ -5,6 +5,8 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <log.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/arch/base.h>
 #include <asm/arch/mbox.h>
index 9fd6564d04494cacdf76f7865bb3417895a670bd..40dd44af67ebd33f116e41cbf43ce18871d763a5 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/arch/hardware.h>
 #include <asm/io.h>
 
index 822e0dc4a1b24817b8431cb9272094e646aa071d..07bf19b5e42e60376fce688c74b02c6984fd454f 100644 (file)
@@ -6,6 +6,7 @@
  * Heiko Schocher, DENX Software Engineering, hs@denx.de.
  */
 #include <common.h>
+#include <init.h>
 #include <nand.h>
 #include <ns16550.h>
 #include <post.h>
index 3e5185261c7611e753024d1203ef1afe4786c824..5bfc47dae4579cdf36a8f2ca0297c3808d263768 100644 (file)
@@ -12,6 +12,7 @@
 #include <env.h>
 #include <i2c.h>
 #include <init.h>
+#include <log.h>
 #include <net.h>
 #include <asm/arch/hardware.h>
 #include <asm/io.h>
index d44e840aa0edbacb829bfffbb21d13fe0f67d446..5fea935d6e4e7c6ed5a6c3feae2e120c3cf11e30 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <config.h>
 #include <hang.h>
+#include <init.h>
 #include <spl.h>
 #include <asm/u-boot.h>
 #include <asm/utils.h>
index 9846463c606dce08d87f2537a8bb1bbc70110619..a6681821f6dd78401c22f91e1ba4a280701379d0 100644 (file)
  */
 
 #include <common.h>
+#include <init.h>
 #include <time.h>
 #include <asm/io.h>
 #include <asm/arch/timer_defs.h>
 #include <div64.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 73aa4cdad323fa2834577d6d2385ade548cdacd0..ef48d35aa4c216be628188c5b2cb1071422a5ae9 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/clk.h>
index e4c706adeac9992dce023f16a4ad67ebb40e8490..9d23c476f923378d5016efe6f68f8e7e0219a1f7 100644 (file)
@@ -8,6 +8,7 @@
 #define __ASM_ARM_ARCH_CLOCK_H_
 
 #ifndef __ASSEMBLY__
+#include <linux/bitops.h>
 struct exynos4_clock {
        unsigned char   res1[0x4200];
        unsigned int    src_leftbus;
index d3a516fbc637a6577a33fcb84311353aff59acad..3226eb95f0151874ecfbe855ddfd3527829f71df 100644 (file)
@@ -197,4 +197,5 @@ unsigned int exynos_init_dp(void)
 }
 #endif
 
+#include <linux/delay.h>
 #endif /* _DP_INFO_H */
index 1e090fd63ca1ab90087b97c13f9582d25a0db343..97d6ca8fc2a09b94418dd05d62e05ba4886639b5 100644 (file)
@@ -26,6 +26,8 @@
 #include <common.h>
 #include <config.h>
 #include <debug_uart.h>
+#include <asm/system.h>
+#include <init.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/dmc.h>
 #include <asm/arch/power.h>
index b24f1bb8f4fc1bd1cd499a681a28c0b6e3122bda..ad3fbf2da7a86d1089bfddb67994c36d7f05fdc7 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <asm/gpio.h>
 #include <asm/arch/pinmux.h>
 #include <asm/arch/sromc.h>
index c4cf59dabbd44d8361745d5e5a0be5ade085e040..810fa348eeaf72843286cc352f723b36ecfad0ae 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/system.h>
 
index 103bb38d4501ce95e96621e06ffb328f07b78132..9c7ca49519b94f8e8745bc9614906dfa8079af17 100644 (file)
@@ -5,7 +5,10 @@
 
 #include <common.h>
 #include <config.h>
+#include <init.h>
+#include <log.h>
 
+#include <asm/cache.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/clk.h>
 #include <asm/arch/dmc.h>
index cd08ff444d23faf503e142bf0837fb389ddb6832..2423a0e378555efbc0982f1cefc41588a6f0cbb5 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch-armv7/systimer.h>
 
index 4fd2e434488e10360f3e2d8969a16dde6a56ac6d..4e3b49a3fdfc928f5e56d3babb08ca2040b9e003 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <asm/armv7.h>
+#include <asm/cache.h>
 #include <asm/pl310.h>
 #include <asm/io.h>
 #include <asm/mach-imx/sys_proto.h>
index 2d4d6efe5ab6e57fb65fabf71fefa6fb9c6727c5..19bfd9f9a0390ffaca0bb259ef3eeaea53bd8d0f 100644 (file)
@@ -54,8 +54,8 @@ static int create_usage(char *dest)
        return size;
 }
 
-static int do_boot_mode(cmd_tbl_t *cmdtp, int flag, int argc,
-               char * const argv[])
+static int do_boot_mode(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        const struct boot_mode *p;
        int reset_requested = 1;
@@ -87,7 +87,7 @@ void add_board_boot_modes(const struct boot_mode *p)
        int size;
        char *dest;
 
-       cmd_tbl_t *entry = ll_entry_get(cmd_tbl_t, bmode, cmd);
+       struct cmd_tbl *entry = ll_entry_get(struct cmd_tbl, bmode, cmd);
 
        if (entry->usage) {
                free(entry->usage);
index 1b111ba26b1397d881f7583f1deeef044f75afa1..49dd473af72e577a6792ad56645af6ad650cdd0d 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/byteorder.h>
 #include <linux/compiler.h>
@@ -54,7 +55,8 @@ static int blob_encap_dek(const u8 *src, u8 *dst, u32 len)
  * Returns zero on success, CMD_RET_USAGE in case of misuse and negative
  * on error.
  */
-static int do_dek_blob(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+static int do_dek_blob(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        uint32_t src_addr, dst_addr, len;
        uint8_t *src_ptr, *dst_ptr;
index 6aa7d82577d7cda654c0804a8aaae76814d73f14..e2571adfb0062326549bd76fed46ca58673724c9 100644 (file)
@@ -3,11 +3,13 @@
  * Copyright (C) 2012 Boundary Devices Inc.
  */
 #include <common.h>
+#include <command.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/mxc_hdmi.h>
 #include <asm/io.h>
 
-static int do_hdmidet(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_hdmidet(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        struct hdmi_regs *hdmi  = (struct hdmi_regs *)HDMI_ARB_BASE_ADDR;
        return (readb(&hdmi->phy_stat0) & HDMI_DVI_STAT) ? 0 : 1;
index 94cae146ced0cd186f39cbd988f45ff66479c01e..44fc37695db45f6270e30ae03f4ab86c311f7058 100644 (file)
  */
 
 #include <common.h>
+#include <command.h>
+#include <log.h>
 #include <malloc.h>
 #include <nand.h>
 #include <dm/devres.h>
+#include <linux/bug.h>
 
 #include <asm/io.h>
 #include <jffs2/jffs2.h>
@@ -1048,7 +1051,7 @@ err:
        return ret;
 }
 
-static int do_nandbcb_bcbonly(int argc, char * const argv[])
+static int do_nandbcb_bcbonly(int argc, char *const argv[])
 {
        struct fcb_block *fcb;
        struct dbbt_block *dbbt;
@@ -1458,8 +1461,8 @@ static int do_nandbcb_init(int argc, char * const argv[])
        return ret == 0 ? CMD_RET_SUCCESS : CMD_RET_FAILURE;
 }
 
-static int do_nandbcb(cmd_tbl_t *cmdtp, int flag, int argc,
-                     char * const argv[])
+static int do_nandbcb(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        const char *cmd;
        int ret = 0;
index 515c1fea405c53fbc21b79f03b5974d6e70396bc..f2070c97143261541ea8e3382467b48e66d8c949 100644 (file)
@@ -8,6 +8,9 @@
 
 #include <bootm.h>
 #include <common.h>
+#include <init.h>
+#include <log.h>
+#include <net.h>
 #include <netdev.h>
 #include <linux/errno.h>
 #include <asm/io.h>
index f29de74c399975ff2f1b6472a23b9c04606c85df..cd7e95e61d002139e358e68ee57b8217a5759881 100644 (file)
@@ -8,6 +8,7 @@
  */
 /* #define DEBUG */
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 #include <linux/bitmap.h>
index 461fba4d3f6ae380d7721849792b6bef500c4ff8..7895ee66f8a8b7121485e9e6e540da09767586ed 100644 (file)
@@ -6,10 +6,12 @@
  * Copyright 2013 Freescale Semiconductor, Inc.
  */
 
+#include <common.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux-vf610.h>
 #include <asm/arch/ddrmc-vf610.h>
+#include <linux/delay.h>
 #include "ddrmc-vf610-calibration.h"
 
 void ddrmc_setup_iomux(const iomux_v3_cfg_t *pads, int pads_count)
index 30db820b565f50770e72cae43922816d021dcbb4..d0757d8b66af4502f752b338219834488e0e2e7c 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <config.h>
 #include <fuse.h>
 #include <mapmem.h>
@@ -291,8 +292,8 @@ static int get_hab_status(void)
        return 0;
 }
 
-static int do_hab_status(cmd_tbl_t *cmdtp, int flag, int argc,
-                        char * const argv[])
+static int do_hab_status(struct cmd_tbl *cmdtp, int flag, int argc,
+                        char *const argv[])
 {
        if ((argc != 1)) {
                cmd_usage(cmdtp);
@@ -324,8 +325,8 @@ static ulong get_image_ivt_offset(ulong img_addr)
        }
 }
 
-static int do_authenticate_image(cmd_tbl_t *cmdtp, int flag, int argc,
-                                char * const argv[])
+static int do_authenticate_image(struct cmd_tbl *cmdtp, int flag, int argc,
+                                char *const argv[])
 {
        ulong   addr, length, ivt_offset;
        int     rcode = 0;
@@ -349,8 +350,8 @@ static int do_authenticate_image(cmd_tbl_t *cmdtp, int flag, int argc,
        return rcode;
 }
 
-static int do_hab_failsafe(cmd_tbl_t *cmdtp, int flag, int argc,
-                          char * const argv[])
+static int do_hab_failsafe(struct cmd_tbl *cmdtp, int flag, int argc,
+                          char *const argv[])
 {
        hab_rvt_failsafe_t *hab_rvt_failsafe;
 
@@ -365,8 +366,8 @@ static int do_hab_failsafe(cmd_tbl_t *cmdtp, int flag, int argc,
        return 0;
 }
 
-static int do_hab_version(cmd_tbl_t *cmdtp, int flag, int argc,
-                         char * const argv[])
+static int do_hab_version(struct cmd_tbl *cmdtp, int flag, int argc,
+                         char *const argv[])
 {
        struct hab_hdr *hdr = (struct hab_hdr *)HAB_RVT_BASE;
 
@@ -380,8 +381,8 @@ static int do_hab_version(cmd_tbl_t *cmdtp, int flag, int argc,
        return 0;
 }
 
-static int do_authenticate_image_or_failover(cmd_tbl_t *cmdtp, int flag,
-                                            int argc, char * const argv[])
+static int do_authenticate_image_or_failover(struct cmd_tbl *cmdtp, int flag,
+                                            int argc, char *const argv[])
 {
        int ret = CMD_RET_FAILURE;
 
index 814d834b164822cb954bd775253e6af4dca28fe3..e6c74bf77e9ab62696e9840c024eb1a5b3deb3c1 100644 (file)
@@ -6,6 +6,7 @@
 #include <malloc.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/gpio.h>
 #include <asm/mach-imx/mxc_i2c.h>
index 6d25abe5cec88b49ac269624d11580afe7f5a85b..22e76d535f3182b1c600cbafa8fb28f714f0f120 100644 (file)
@@ -4,7 +4,9 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <errno.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/sci/sci.h>
 #include <asm/mach-imx/sys_proto.h>
@@ -149,8 +151,8 @@ exit:
        return ret;
 }
 
-static int do_authenticate(cmd_tbl_t *cmdtp, int flag, int argc,
-                          char * const argv[])
+static int do_authenticate(struct cmd_tbl *cmdtp, int flag, int argc,
+                          char *const argv[])
 {
        ulong addr;
 
@@ -250,8 +252,8 @@ static void display_ahab_auth_event(u32 event)
        }
 }
 
-static int do_ahab_status(cmd_tbl_t *cmdtp, int flag, int argc,
-                         char * const argv[])
+static int do_ahab_status(struct cmd_tbl *cmdtp, int flag, int argc,
+                         char *const argv[])
 {
        int err;
        u8 idx = 0U;
@@ -297,8 +299,8 @@ static int confirm_close(void)
        return 0;
 }
 
-static int do_ahab_close(cmd_tbl_t *cmdtp, int flag, int argc,
-                        char * const argv[])
+static int do_ahab_close(struct cmd_tbl *cmdtp, int flag, int argc,
+                        char *const argv[])
 {
        int err;
        u16 lc;
index 6d7b17b4647542119437707a37d338233127bc4c..38b2c0926f58a3258341129a46884a484fd25433 100644 (file)
@@ -9,6 +9,8 @@
 #include <cpu_func.h>
 #include <dm.h>
 #include <init.h>
+#include <log.h>
+#include <asm/cache.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
 #include <dm/uclass.h>
index 9a6822a929184c693f09e552bab55dc26dc5bf0b..7d70498fc884a90c3d9431c516296c4defce048b 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/arch/sci/sci.h>
 #include <asm/arch/sys_proto.h>
 #include <dm/ofnode.h>
index e6b299691de26d9ca5b0ac70e8a0ca3ab0940fcb..5abc0d3a39f0c59a4d9ed843b97edee82b1ef667 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/io.h>
 #include <mmc.h>
index 0ade85fb8fbb3bff493743ff9183643eaf6caa36..b8e6f48a5f779dde5f1c7c34ef9766445a7e62d7 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/sci/sci.h>
index 76d6571d8bfa760811939d05e0f85f94171411d7..2cd794d54a30b0d81cf24ca713e0c702765930f0 100644 (file)
@@ -1,5 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0+
 #include <common.h>
+#include <log.h>
 #include <asm/arch/sci/sci.h>
 #include <asm/mach-imx/sys_proto.h>
 #include <imx_sip.h>
index cc8a51ad5545b0e3463fb02a4419080beb146ebf..375098902f8b6eeaec511f9a83c29e332602182a 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <errno.h>
+#include <log.h>
 #include <spl.h>
 #include <asm/arch/image.h>
 #include <asm/arch/sci/sci.h>
index 73f5651161cbebecd5fe31c58bbe9df6f0933648..564d1bfdfb2029b33029fc5c9b2f52f79bfc51d8 100644 (file)
@@ -626,7 +626,8 @@ static char snvs_cfg_help_text[] =
        "ALL values should be in hexadecimal format";
 
 #define NB_REGISTERS 18
-static int do_snvs_cfg(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+static int do_snvs_cfg(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        int err = 0;
        u32 idx = 0;
@@ -677,7 +678,7 @@ static char snvs_dgo_cfg_help_text[] =
        "\n"
        "ALL values should be in hexadecimal format";
 
-static int do_snvs_dgo_cfg(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_snvs_dgo_cfg(struct cmd_tbl *cmdtp, int flag, int argc,
                           char *const argv[])
 {
        int err = 0;
@@ -713,7 +714,7 @@ static char tamper_pin_cfg_help_text[] =
        "\n"
        "ALL values should be in hexadecimal format";
 
-static int do_tamper_pin_cfg(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_tamper_pin_cfg(struct cmd_tbl *cmdtp, int flag, int argc,
                             char *const argv[])
 {
        int err = 0;
@@ -748,8 +749,8 @@ static char snvs_clear_status_help_text[] =
        "Write the status registers with the value provided,"
        " clearing the status";
 
-static int do_snvs_clear_status(cmd_tbl_t *cmdtp, int flag, int argc,
-                                 char *const argv[])
+static int do_snvs_clear_status(struct cmd_tbl *cmdtp, int flag, int argc,
+                               char *const argv[])
 {
        int scierr = 0;
        u32 idx = 0;
@@ -788,7 +789,7 @@ static char snvs_sec_status_help_text[] =
        "snvs_sec_status\n"
        "Display information about the security related to tamper and secvio";
 
-static int do_snvs_sec_status(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_snvs_sec_status(struct cmd_tbl *cmdtp, int flag, int argc,
                              char *const argv[])
 {
        int scierr;
index 91c827f6c01fdcd255b057ffbede5f11be98f9c7..aafe2ed084e18cee5205907e0c9d6db82995a123 100644 (file)
@@ -12,6 +12,8 @@
 #include <asm/io.h>
 #include <div64.h>
 #include <errno.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index ee18cdee507d223c8e1080ba3b26371fd97c5739..759ec6d114ebdfb58678fa2589d2a7f0ce8ae889 100644 (file)
@@ -6,11 +6,13 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/io.h>
 #include <asm/arch/sys_proto.h>
 #include <errno.h>
+#include <linux/delay.h>
 #include <linux/iopoll.h>
 
 static struct anamix_pll *ana_pll = (struct anamix_pll *)ANATOP_BASE_ADDR;
@@ -755,8 +757,8 @@ int clock_init(void)
  * Dump some clockes.
  */
 #ifndef CONFIG_SPL_BUILD
-static int do_imx8m_showclocks(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+static int do_imx8m_showclocks(struct cmd_tbl *cmdtp, int flag, int argc,
+                              char *const argv[])
 {
        u32 freq;
 
index 347fd6d0ade45409a3ba9d6fd7ebd8f9aa41bc31..1d2c8e6db281a5c19bed552c4a9f545c5d034f68 100644 (file)
@@ -7,6 +7,8 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
+#include <log.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
@@ -20,6 +22,7 @@
 #include <fdt_support.h>
 #include <fsl_wdog.h>
 #include <imx_sip.h>
+#include <linux/bitops.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index ec0da1164f3cb888f32a9c711683f4d8b6804a57..868633cf8a47d51ee9e8855e8f9d98a5b7833862 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/mach-imx/sys_proto.h>
 #include <command.h>
@@ -92,7 +93,8 @@ int arch_auxiliary_core_check_up(u32 core_id)
  * The TCMUL is mapped to (M4_BOOTROM_BASE_ADDR) at A core side for
  * accessing the M4 TCMUL.
  */
-static int do_bootaux(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_bootaux(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        ulong addr;
        int ret, up;
index e1eea230352dded19c26b064058b631f3e127e21..8e7d15160dace60101b09223eb8fdec018f3a99a 100644 (file)
@@ -5,8 +5,10 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/armv7_mpu.h>
+#include <linux/bitops.h>
 
 int arch_cpu_init(void)
 {
index 31e95a9a28899a3e7ff7e7df733940cf9fc8ee6b..818f38e17ddbf18751bc6097e3505d37f1d12f4a 100644 (file)
@@ -4,7 +4,10 @@
  */
 
 #include <common.h>
+#include <lmb.h>
+#include <log.h>
 #include <asm/arch/sys_proto.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <asm/mach-imx/regs-common.h>
index 2fabdd2eae8ed8c93ed1d60bb4832eeac7cc35a3..bbaddd5a33faf3bb9ca21086d0ac9a45b196700a 100644 (file)
@@ -7,6 +7,8 @@
  */
 
 #include <common.h>
+#include <command.h>
+#include <log.h>
 #include <asm/io.h>
 #include <linux/errno.h>
 #include <asm/arch/imx-regs.h>
@@ -943,7 +945,8 @@ void mxc_set_sata_internal_clock(void)
 /*
  * Dump some core clockes.
  */
-static int do_mx5_showclocks(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_mx5_showclocks(struct cmd_tbl *cmdtp, int flag, int argc,
+                            char *const argv[])
 {
        u32 freq;
 
index b3a57bcf4bce63825790f3be9dd11caf987fc869..c61fcce3eb42533d4eb9c9abb675e4c31998a3db 100644 (file)
@@ -11,6 +11,7 @@
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/sys_proto.h>
+#include <asm/cache.h>
 
 #include <linux/errno.h>
 #include <asm/io.h>
index 6a9e673ca2781be3019c1a1fba2a3bda0b9f38f0..fb5e5b6f05c40b27f364309f181a1c0cbfcc05e5 100644 (file)
@@ -4,7 +4,9 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <div64.h>
+#include <log.h>
 #include <asm/io.h>
 #include <linux/errno.h>
 #include <asm/arch/imx-regs.h>
@@ -1305,7 +1307,8 @@ void disable_ipu_clock(void)
 /*
  * Dump some core clockes.
  */
-int do_mx6_showclocks(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_mx6_showclocks(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        u32 freq;
        freq = decode_pll(PLL_SYS, MXC_HCLK);
index 69fe756b0b9f1f745cbf62cdce007db6b66ce286..16df71083db025c1ea3365d4efbe639025a66b76 100644 (file)
@@ -6,6 +6,8 @@
 
 #include <common.h>
 #include <hang.h>
+#include <log.h>
+#include <linux/delay.h>
 #include <linux/types.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/mx6-ddr.h>
index b0a6bd589c0929b1455cf293157efb7340a46774..596773f054ae754e9f4cacdeda0f3a8639bd088d 100644 (file)
@@ -18,6 +18,7 @@
 #include <asm/io.h>
 #include <common.h>
 #include <fsl_esdhc_imx.h>
+#include <linux/delay.h>
 #include <linux/sizes.h>
 #include <mmc.h>
 
index b8aaf3ef0159006c73b01759b2342923890d0c19..19ca3826495de4d57424e5075bce624b8b1225b0 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
index 75be4f8ad7937ee1f48b632ab2bd7b697f891a47..aba9461d9204395640d0f82d47ac10db4cf16f86 100644 (file)
@@ -8,7 +8,9 @@
 
 #include <common.h>
 #include <clock_legacy.h>
+#include <command.h>
 #include <div64.h>
+#include <log.h>
 #include <asm/io.h>
 #include <linux/errno.h>
 #include <asm/arch/imx-regs.h>
@@ -1100,7 +1102,8 @@ void epdc_clock_disable(void)
 /*
  * Dump some core clockes.
  */
-int do_mx7_showclocks(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_mx7_showclocks(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        u32 freq;
        freq = decode_pll(PLL_CORE, MXC_HCLK);
index c8f6ca235b9503928af7a3a67710b76e36caa69a..f32945ea371212335b664978ef06ae808806ed7e 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <cpu_func.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/psci.h>
 #include <asm/secure.h>
index 4aafeed188101a6d6f90bc5450a985fba3ff6d8f..798fe74a3d6127a3bad0e9c02d8f45673486440e 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/clock.h>
@@ -18,6 +19,7 @@
 #include <imx_thermal.h>
 #include <fsl_sec.h>
 #include <asm/setup.h>
+#include <linux/delay.h>
 
 #define IOMUXC_GPR1            0x4
 #define BM_IOMUXC_GPR1_IRQ     0x1000
index 3c0bcccd0dc7bc205ce1c1539982d71219b5d230..a987ff22dfd535b1172fa4acff97fc701aba09e6 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <clock_legacy.h>
+#include <command.h>
 #include <div64.h>
 #include <asm/io.h>
 #include <errno.h>
@@ -329,7 +330,8 @@ void hab_caam_clock_enable(unsigned char enable)
 /*
  * Dump some core clockes.
  */
-int do_mx7_showclocks(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_mx7_showclocks(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        u32 addr = 0;
        u32 freq;
index 8c68655399f811459cb5bcaa10bbb14005c53abc..05ddeed2a64b4b196c29aa76e0c5bdae16703f5f 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright (C) 2016 Freescale Semiconductor, Inc.
  */
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
index 234974ba0dd43f1e91ca71c355cbcd3dd67a444d..aa7ea86a443e89a4cc4bec328d820552c6a4a1e5 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <div64.h>
+#include <log.h>
 #include <asm/io.h>
 #include <errno.h>
 #include <asm/arch/imx-regs.h>
index c7bb7a1c6675b1785c129d27eb30abf4dfc68129..4c066557c1cafbebfd1520278d49cee5fe3752c5 100644 (file)
@@ -5,11 +5,13 @@
 
 #include <common.h>
 #include <div64.h>
+#include <log.h>
 #include <asm/io.h>
 #include <errno.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/pcc.h>
 #include <asm/arch/sys_proto.h>
+#include <linux/delay.h>
 
 scg_p scg1_regs = (scg_p)SCG1_RBASE;
 
index 0d39dab7eaa7bc23b34b4a0fccc1bce18e171983..8dd6b4d40e778015fe94f11ac2f62417c9b0f93f 100644 (file)
@@ -2,14 +2,18 @@
 /*
  * Copyright (C) 2016 Freescale Semiconductor, Inc.
  */
+
+#include <common.h>
 #include <cpu_func.h>
 #include <init.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/mach-imx/boot_mode.h>
 #include <asm/mach-imx/hab.h>
+#include <linux/bitops.h>
 
 #define PMC0_BASE_ADDR         0x410a1000
 #define PMC0_CTRL              0x28
index b9f630952dfdeac939a3a644f9e068d3df8ce1a0..c4599aaf68f1dfffbe01c5b5278a35015290c376 100644 (file)
@@ -7,6 +7,7 @@
 #include <asm/arch/iomux.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
+#include <asm/arch/imx-regs.h>
 #include <asm/arch/sys_proto.h>
 
 int setup_sata(void)
index fca520c671ba581964e011da057b8a0711427a6d..6cb8179ee8cb6684f85baf33ddaba06cf41753da 100644 (file)
@@ -5,6 +5,8 @@
 
 #include <common.h>
 #include <asm/arch/sys_proto.h>
+#include <asm/cache.h>
+#include <asm/ptrace.h>
 
 unsigned long call_imx_sip(unsigned long id, unsigned long reg0,
                           unsigned long reg1, unsigned long reg2,
index fd3fa046002a279e059138ae51337919fde73035..1a231c67f5accb032a6a691d9b2ad2c07229f33d 100644 (file)
@@ -8,6 +8,8 @@
 
 #include <common.h>
 #include <hang.h>
+#include <init.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/sys_proto.h>
index 5dc0f7174e5d2eebf6d5953f438e01aa9fa6854f..f588a5f52160b12ec7fd5c61820cdbc41c5df86b 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <errno.h>
 #include <image.h>
+#include <log.h>
 #include <linux/libfdt.h>
 #include <spl.h>
 
index 5a292c396433308ffc98155429afd2ffa50eb633..7da43c32e0db14543f9ffc50e8309efc149b7fa0 100644 (file)
@@ -6,12 +6,14 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <time.h>
 #include <asm/io.h>
 #include <div64.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/mach-imx/syscounter.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 5fe5c51f6a6761535d51ff63cce5c9d178e0c724..fa1941aec42e04978c857044e19e5bbbe883b1bd 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <time.h>
 #include <asm/io.h>
 #include <div64.h>
index 586f5c022eb3ca9703af7e46b2cedeb40e918f4f..516a02e8a899e87ba1ee8b9d6c4c182c6ea8a09a 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
 #include <spl.h>
 #include <asm/arch/hardware.h>
index a94e054491ae907e8cdccf129badcf9333cb30c2..9695b2236ecd0a6d34b5292e039ac1746e40779c 100644 (file)
@@ -8,10 +8,14 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <image.h>
+#include <init.h>
+#include <log.h>
 #include <spl.h>
 #include "common.h"
 #include <dm.h>
 #include <remoteproc.h>
+#include <asm/cache.h>
 #include <linux/soc/ti/ti_sci_protocol.h>
 #include <fdt_support.h>
 #include <asm/arch/sys_proto.h>
index 6df76315456f923142f7b3f19e9800eaedea1c53..a91ef5f735d5b693bbc05a30abf7446ae94b2046 100644 (file)
@@ -8,6 +8,9 @@
 #define __ASM_ARCH_AM6_HARDWARE_H
 
 #include <config.h>
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
 
 #define CTRL_MMR0_BASE                                 0x00100000
 #define CTRLMMR_MAIN_DEVSTAT                           (CTRL_MMR0_BASE + 0x30)
index 2efa911a9a9d025de75779acd4504512d1e4059e..19873d6e28c496b4839076f1fb4bda6ed79b1016 100644 (file)
@@ -8,6 +8,9 @@
 #define __ASM_ARCH_J721E_HARDWARE_H
 
 #include <config.h>
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
 
 #define CTRL_MMR0_BASE                                 0x00100000
 #define CTRLMMR_MAIN_DEVSTAT                           (CTRL_MMR0_BASE + 0x30)
index 1cabc01dc49c8146081b66809be91a0c5e00fbc0..3fa85ca3b676472407b2810ce28b6dd080684c0a 100644 (file)
@@ -7,6 +7,7 @@
 #define _ASM_ARCH_J721E_SPL_H_
 
 /* With BootMode B = 0 */
+#include <linux/bitops.h>
 #define BOOT_DEVICE_HYPERFLASH         0x00
 #define BOOT_DEVICE_OSPI               0x01
 #define BOOT_DEVICE_QSPI               0x02
index 031279bc5b3a69757406f39cdff4107c3c6397b6..f9454e3273e55dfff06500695d9227249adad318 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <spl.h>
 #include <asm/io.h>
 #include <asm/armv7_mpu.h>
index 0d77d9835964dece8a909bb76104dc3b4aaaec13..66f90a5a34dfdffc94b5948e1b5e3a6dff019724 100644 (file)
@@ -10,6 +10,9 @@
 #include <cpu_func.h>
 #include <dm.h>
 #include <hang.h>
+#include <image.h>
+#include <log.h>
+#include <asm/cache.h>
 #include <linux/soc/ti/ti_sci_protocol.h>
 #include <mach/spl.h>
 #include <spl.h>
index 4f5c84824563171523c473b5793bc4c4d45ddd3d..513be09c6878eec6fcf3915c9bd08b6fb0eb7eaf 100644 (file)
@@ -7,9 +7,12 @@
  */
 
 #include <common.h>
+#include <image.h>
+#include <log.h>
 #include <spl.h>
 #include <malloc.h>
 #include <remoteproc.h>
+#include <asm/cache.h>
 #include <linux/soc/ti/ti_sci_protocol.h>
 #include <g_dnl.h>
 #include <usb.h>
index 3c46824d0b94943231b2685a6ea59d357fb2ee2e..0c59515d2eb7637796099fe6a7aa3a3268dd220a 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/clock_defs.h>
+#include <linux/bitops.h>
 
 /* DEV and ARM speed definitions as specified in DEVSPEED register */
 int __weak speeds[DEVSPEED_NUMSPDS] = {
index 667826b9f67ef4d99d14cacfdadaebed95ca58fe..7165d666e5ed13c222e6ab708f672c6308908d53 100644 (file)
@@ -19,7 +19,7 @@ struct pll_init_data cmd_pll_data = {
        .pll_od = 2,
 };
 
-int do_pll_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_pll_cmd(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        if (argc != 5)
                goto pll_cmd_usage;
@@ -63,7 +63,8 @@ U_BOOT_CMD(
        PLLSET_CMD_LIST " <mult> <div> <OD>\n"
 );
 
-int do_getclk_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_getclk_cmd(struct cmd_tbl *cmdtp, int flag, int argc,
+                 char *const argv[])
 {
        unsigned int clk;
        unsigned long freq;
@@ -92,7 +93,7 @@ U_BOOT_CMD(
        CLOCK_INDEXES_LIST
 );
 
-int do_psc_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_psc_cmd(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int     psc_module;
        int     res;
index 8142039040a78b72b570fb40bbe15553c9ea63a1..049d573473498647022f2135421f2dbe2bb6d14b 100644 (file)
@@ -12,8 +12,8 @@
 #include <mach/mon.h>
 asm(".arch_extension sec\n\t");
 
-static int do_mon_install(cmd_tbl_t *cmdtp, int flag, int argc,
-                         char * const argv[])
+static int do_mon_install(struct cmd_tbl *cmdtp, int flag, int argc,
+                         char *const argv[])
 {
        u32 addr, dpsc_base = 0x1E80000, freq, load_addr, size;
        int     rcode = 0;
@@ -65,8 +65,8 @@ static void core_spin(void)
        }
 }
 
-int do_mon_power(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+int do_mon_power(struct cmd_tbl *cmdtp, int flag, int argc,
+                char *const argv[])
 {
        int     rcode = 0, core_id, on;
        void (*fn)(void);
index 89b18516cdf797ae5f1e2ff3bdd307015f3a87e9..f0ad9173b961a115ee5d2931aca61bf091d557f5 100644 (file)
@@ -12,7 +12,7 @@
 #include <asm/arch/psc_defs.h>
 #include <asm/arch/hardware.h>
 
-int do_poweroff(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_poweroff(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        mon_power_off(0);
 
index 23ff06466dd1aeb58dc3701b4798dd400f1cbd96..7dea600d509b9cc712f9be510659da166df3c443 100644 (file)
@@ -7,11 +7,13 @@
  */
 
 #include <cpu_func.h>
+#include <env.h>
 #include <asm/io.h>
 #include <common.h>
 #include <asm/arch/msmc.h>
 #include <asm/arch/ddr3.h>
 #include <asm/arch/psc_defs.h>
+#include <linux/delay.h>
 
 #include <asm/ti-common/ti-edma3.h>
 
index 6eee9ad13a0b30cad794674c017e753ea92bcae9..3803449c2b07cedea29862e499b237c1cd623fd6 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 
 #include <i2c.h>
 #include <ddr_spd.h>
index 42bd0ac1cd454502481a19b18397e242e8cd5281..336b103dc8c94ba2445c08f5d65f7427347d9868 100644 (file)
@@ -9,6 +9,9 @@
 #define _CLOCK_DEFS_H_
 
 #include <asm/arch/hardware.h>
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
 
 /* PLL Control Registers */
 struct pllctl_regs {
index 7793cf126657cf5e262286c8ad7e8ce423a23639..3d078be9919e7d78eeb225f8ea8dbf082e42364a 100644 (file)
@@ -9,6 +9,10 @@
 #ifndef __ASM_ARCH_HARDWARE_K2HK_H
 #define __ASM_ARCH_HARDWARE_K2HK_H
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 #define KS2_ARM_PLL_EN                 BIT(13)
 
 /* PA SS Registers */
index f46a98cfd1c0d0b2e496bd5afe07d32a06859995..0e710a37955ba9c1c3f8412dde4f38aea9677e7a 100644 (file)
@@ -9,6 +9,10 @@
 #ifndef __ASM_ARCH_HARDWARE_K2L_H
 #define __ASM_ARCH_HARDWARE_K2L_H
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 #define KS2_ARM_PLL_EN                 BIT(13)
 
 /* PA SS Registers */
index d2234dc88cc9198841567e935ceeda0208ba9967..0c5dc6a7395196d910eec9e99b4e96bf848bfdaa 100644 (file)
@@ -11,6 +11,7 @@
 #include <config.h>
 
 #ifndef __ASSEMBLY__
+#include <linux/bitops.h>
 
 #include <linux/sizes.h>
 #include <asm/io.h>
index a05351292c4475fa51a2532455c96f9ee3d362eb..989b0c315809b88f0b3306ace2b1bbec552515a5 100644 (file)
@@ -6,6 +6,10 @@
  *     Texas Instruments Incorporated, <www.ti.com>
  */
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 #define USB3_PHY_REF_SSP_EN            BIT(29)
 #define USB3_PHY_OTG_VBUSVLDECTSEL     BIT(16)
 
index 375588894da2fb8ff81d5450e9ec66c37954696e..88e8912959fa83f14cd09144498624dc6ce3f910 100644 (file)
@@ -8,12 +8,15 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
 #include <ns16550.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/arch/msmc.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/psc_defs.h>
+#include <linux/bitops.h>
 
 #define MAX_PCI_PORTS          2
 enum pci_mode  {
index 7441052a5539a10d612a195b45077f0e2cf06323..efaabca5a7e77eb02888399dcc182e49f2217bc4 100644 (file)
@@ -7,6 +7,8 @@
  */
 
 #include <common.h>
+#include <env.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/psc_defs.h>
 #include <asm/arch/hardware.h>
index b7de9ba099de3922919b9dce12370e64e100e99b..58995d73ac86d06801728fc4ee7ca9141955d82d 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <hang.h>
+#include <image.h>
 #include <asm/unaligned.h>
 #include <common.h>
 #include <command.h>
index f87bcb3beaa25440836a690dfd5c1bd8d786b921..145aff8ac66f0c54a579420c7810a9fb5e69b01b 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <asm/processor.h>
index 6b12ea5e91439b7edfc4cb61a57c8edc3acbaf1e..009b7deeca64bd007bfd3c29c04bfae87e0bcb57 100644 (file)
@@ -5,6 +5,7 @@
  */
 #include <common.h>
 #include <asm/arch/cpu.h>
+#include <asm/cache.h>
 
 #define FEROCEON_EXTRA_FEATURE_L2C_EN (1<<22)
 
index 5e964af8eab0a0190549aef02f063ca7bac9ca18..fa269035935a832a779a98f044087920979d8a3d 100644 (file)
@@ -9,6 +9,9 @@
 #include <command.h>
 #include <cpu_func.h>
 #include <env.h>
+#include <init.h>
+#include <log.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/cache.h>
 #include <asm/io.h>
index 7222504ed3a43033d93959af3c9857f310642865..4fdad99cadef54c0acc63b761b1a44176e5f1dff 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
index 4c59a44f7e6c31d261fade7cae4a42d73b6e2692..ee15a9453d92ac3c578b204b5c3ee5ff1a875670 100644 (file)
@@ -5,6 +5,8 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/clk.h>
index 4f975694fd69127dfdf4de5822b39a06d69b5fd2..160223792353ef244c8e27ff1cc3b3eea5244f34 100644 (file)
@@ -17,6 +17,7 @@
 #include <asm/arch/wdt.h>
 #include <asm/arch/emc.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 static struct clk_pm_regs *clk = (struct clk_pm_regs *)CLK_PM_BASE;
 static struct emc_regs *emc = (struct emc_regs *)EMC_BASE;
index 3a896d10ca58c1813d9028074b4652d436acc0db..90183e3014ebbb737c3d9d42e6c5cbe07d05749f 100644 (file)
@@ -4,11 +4,13 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <time.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/clk.h>
 #include <asm/arch/timer.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 static struct timer_regs  *timer0 = (struct timer_regs *)TIMER0_BASE;
 static struct timer_regs  *timer1 = (struct timer_regs *)TIMER1_BASE;
index 5e5f3f084258cc1ad53cd401fe0d2fba3a2b0a22..c329e7cc98a87c8932c95bdfd73ede7c23227be5 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
+#include <init.h>
 #include <wdt.h>
 #include <dm/uclass-internal.h>
 
index 1e527c0485e2e7d35f8b8468684802bffc75f8e4..7f6ce80f37b28bb45e5865beb5c72f375ac4f295 100644 (file)
@@ -6,7 +6,9 @@
 
 #include <common.h>
 #include <fdtdec.h>
+#include <init.h>
 #include <asm/armv8/mmu.h>
+#include <asm/cache.h>
 
 int print_cpuinfo(void)
 {
index ba91a6eaa68a344acfbaea589d95fc6069052a3e..c260413a57a16af5ce5bdff78fedc1ee81ea4fb7 100644 (file)
@@ -8,10 +8,13 @@
 #include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <init.h>
+#include <log.h>
 #include <ram.h>
 #include <asm/arch/misc.h>
 #include <asm/sections.h>
 #include <dm/uclass.h>
+#include <linux/bitops.h>
 #include <linux/io.h>
 
 #include <dt-bindings/clock/mt7629-clk.h>
index a38b5d12d9342b65b1366285fb332033879588e4..aa779f4376636f85383456e660d0bac2f00e0fcc 100644 (file)
 #include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <init.h>
+#include <log.h>
 #include <ram.h>
 #include <wdt.h>
 #include <asm/arch/misc.h>
 #include <asm/armv8/mmu.h>
+#include <asm/cache.h>
 #include <asm/sections.h>
 #include <dm/uclass.h>
 #include <dt-bindings/clock/mt8512-clk.h>
index 360d94abb00e658880590fa905e8634e603b5a77..13be39122115c73952e8fa3e48d797138fed83e3 100644 (file)
 #include <cpu_func.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <init.h>
 #include <ram.h>
 #include <asm/arch/misc.h>
 #include <asm/armv8/mmu.h>
+#include <asm/cache.h>
 #include <asm/sections.h>
 #include <dm/uclass.h>
 #include <dt-bindings/clock/mt8516-clk.h>
index c2b1b7698249b251f573189c9e04aac2f5d45fdf..531a403da1b00e26c373f03cc96dcfc11864c5e6 100644 (file)
 #include <cpu_func.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <init.h>
 #include <ram.h>
 #include <asm/arch/misc.h>
 #include <asm/armv8/mmu.h>
+#include <asm/cache.h>
 #include <asm/sections.h>
 #include <dm/uclass.h>
 #include <dt-bindings/clock/mt8518-clk.h>
index 37f1f219b2d55d2844205c872c19a13744ff5fd5..927175c5a319822834ee26c80dc2ec79364f73e0 100644 (file)
@@ -7,6 +7,7 @@
 #include <clk.h>
 #include <common.h>
 #include <hang.h>
+#include <init.h>
 #include <spl.h>
 
 #include "init.h"
index 6874458e36ac7d02fc0861fde2d49c21a1abc5ab..5e0b3f6cb5e161d132916b7883de4112996fc0df 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <net.h>
 #include <asm/arch/boot.h>
 #include <asm/arch/eth.h>
 #include <asm/arch/axg.h>
index 747791b10e381dcc1255207f5c9ad071842e28bb..19e5bfd3660cec36a5cfcad5dfaffc2247c9d0c0 100644 (file)
@@ -6,8 +6,11 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <init.h>
+#include <net.h>
 #include <asm/arch/boot.h>
 #include <env.h>
+#include <asm/cache.h>
+#include <asm/ptrace.h>
 #include <linux/libfdt.h>
 #include <linux/err.h>
 #include <asm/arch/mem.h>
index 26d6b907906eb0ded7e2df6b61fb6edca3bf9d5f..14127ca737c1c29d7b379eee78acc2e94c45d1f5 100644 (file)
@@ -6,6 +6,8 @@
 
 #include <common.h>
 #include <init.h>
+#include <log.h>
+#include <net.h>
 #include <asm/arch/boot.h>
 #include <asm/arch/eth.h>
 #include <asm/arch/g12a.h>
index b591c924eadaf6a8095467e6188c95890af694fa..c4cc11f1de31c66d7f0fa0078134ae369635f227 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <net.h>
 #include <asm/arch/boot.h>
 #include <asm/arch/eth.h>
 #include <asm/arch/gx.h>
index 4b88afa9b7b77a49d393eadffafec82fdf9cac51..3abb27e03b45ca704b70c57e341eba9dbb2b50a9 100644 (file)
@@ -5,11 +5,13 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
 #include <dm.h>
 #include <linux/bitfield.h>
 #include <regmap.h>
 #include <syscon.h>
+#include <linux/bitops.h>
 #include <linux/err.h>
 
 #define AO_SEC_SD_CFG8         0xe0
index fac286b9c851703cac77a5a61961d2067bb73e01..ebbb880b71ea8f490b0eaa7ac5474bb843034f8c 100644 (file)
@@ -6,7 +6,13 @@
  */
 
 #include <common.h>
+#include <command.h>
+#include <env.h>
+#include <log.h>
 #include <asm/arch/sm.h>
+#include <asm/cache.h>
+#include <asm/ptrace.h>
+#include <linux/bitops.h>
 #include <linux/err.h>
 #include <linux/kernel.h>
 #include <dm.h>
@@ -116,7 +122,7 @@ int meson_sm_get_reboot_reason(void)
        return FIELD_GET(REBOOT_REASON_MASK, reason);
 }
 
-static int do_sm_serial(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_sm_serial(struct cmd_tbl *cmdtp, int flag, int argc,
                        char *const argv[])
 {
        ulong address;
@@ -152,8 +158,8 @@ static const char *reboot_reasons[MAX_REBOOT_REASONS] = {
        [REBOOT_REASON_WATCHDOG_REBOOT] = "watchdog_reboot",
 };
 
-static int do_sm_reboot_reason(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char *const argv[])
+static int do_sm_reboot_reason(struct cmd_tbl *cmdtp, int flag, int argc,
+                              char *const argv[])
 {
        const char *reason_str;
        char *destarg = NULL;
@@ -180,15 +186,15 @@ static int do_sm_reboot_reason(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_SUCCESS;
 }
 
-static cmd_tbl_t cmd_sm_sub[] = {
+static struct cmd_tbl cmd_sm_sub[] = {
        U_BOOT_CMD_MKENT(serial, 2, 1, do_sm_serial, "", ""),
        U_BOOT_CMD_MKENT(reboot_reason, 1, 1, do_sm_reboot_reason, "", ""),
 };
 
-static int do_sm(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_sm(struct cmd_tbl *cmdtp, int flag, int argc,
                 char *const argv[])
 {
-       cmd_tbl_t *c;
+       struct cmd_tbl *c;
 
        if (argc < 2)
                return CMD_RET_USAGE;
index 34cc0479a8b8047502d373e90598d544c57b61ba..c8c065e93c3b4e09aba8d1ceedab3b693a5a167e 100644 (file)
@@ -7,6 +7,8 @@
 #include <dm.h>
 #include <fdtdec.h>
 #include <init.h>
+#include <asm/cache.h>
+#include <asm/ptrace.h>
 #include <linux/libfdt.h>
 #include <linux/sizes.h>
 #include <pci.h>
index 17d2d43babb60f615b6f865c295c69ae46876c82..e438b4922e148259aeba0f2f2e8e252ded37de58 100644 (file)
@@ -8,6 +8,8 @@
 #include <cpu_func.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <init.h>
+#include <linux/bitops.h>
 #include <linux/libfdt.h>
 #include <asm/io.h>
 #include <asm/system.h>
index 265a8b0ae8a0b882ed590ac203c9e633f8bd7122..3da9fa589d27b09668f30438ae1c2365afe770d8 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
+#include <asm/ptrace.h>
 #include <asm/system.h>
 #include <linux/sizes.h>
 
index fb241c7e4ddd39c03a1eca460df5f33a1880c576..3a63dafde4a922a79cb87fa63197861cc3968e55 100644 (file)
@@ -6,6 +6,9 @@
 #include <common.h>
 #include <ahci.h>
 #include <cpu_func.h>
+#include <init.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/mbus.h>
 #include <asm/io.h>
 #include <asm/pl310.h>
index 16ccfec933feb8b3922c3b49e15db642374f7f94..c79eee98fe9842551ad972e245f409cf1fdf346e 100644 (file)
@@ -10,6 +10,8 @@
 #include <asm/arch/cpu.h>
 #include <asm/arch/efuse.h>
 #include <asm/arch/soc.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/mbus.h>
 
 #if defined(CONFIG_MVEBU_EFUSE_FAKE)
index acb9257c90fe35f140c60dcda386da57a37f63e1..3f3b15aa8ab6a00bb83da88d50b73ae3d57a0605 100644 (file)
 #ifndef _MVEBU_SOC_H
 #define _MVEBU_SOC_H
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 #define SOC_MV78230_ID         0x7823
 #define SOC_MV78260_ID         0x7826
 #define SOC_MV78460_ID         0x7846
index 39bd200c830ce8188837894712fc8ae117038b55..f29abe591109c95f985d2e97a7004c88da3cee34 100644 (file)
@@ -48,6 +48,7 @@
 
 #include <common.h>
 #include <malloc.h>
+#include <linux/bitops.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
index a1cef9fdd6cd59c9d5272812e8982110a9ad351a..adef3331a7c5477be958f2ad4f6da15265b832a2 100644 (file)
@@ -8,6 +8,8 @@
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 #include "ctrl_pex.h"
 #include "sys_env_lib.h"
index 66409a50c0fdad7c681361c5c6780080c0f34d19..67a00cf1cf7b1ade056d64b42aa141c479e42ed1 100644 (file)
@@ -8,6 +8,7 @@
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
+#include <linux/delay.h>
 
 #include "high_speed_env_spec.h"
 #include "sys_env_lib.h"
index d9edfaa1dfc00219f3fd9a10c393f1f088a6156d..2a51b7113ce4e2aa347c9394352b761cb375ed32 100644 (file)
@@ -8,6 +8,7 @@
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
+#include <linux/delay.h>
 
 #include "seq_exec.h"
 #include "high_speed_env_spec.h"
index c8c92988645f27e4f6c02f8f3cd9c72408b28983..ea3b4c7d5b72d9deade83025637b4f23384793e4 100644 (file)
@@ -9,6 +9,7 @@
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
+#include <linux/delay.h>
 
 #include "high_speed_env_spec.h"
 #include "board_env_spec.h"
index 70fef3b573d9e46c4027bbacccf587d6a71c8071..f645befb2c044c5ace02263d087c3b51166252ea 100644 (file)
@@ -8,6 +8,8 @@
 #include <debug_uart.h>
 #include <fdtdec.h>
 #include <hang.h>
+#include <init.h>
+#include <log.h>
 #include <spl.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
index 2f6b4d1702f1a3a311f9bfe348195c452f6126da..43b3ed15d07448b9460b0b264deeac7b5f0a86db 100644 (file)
@@ -7,8 +7,10 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/soc.h>
+#include <linux/bitops.h>
 
 #define TIMER_LOAD_VAL                 0xffffffff
 
index 108c93542de3ac001d75acb8c673e21691ea017b..722e6db0566d3f023bc8ad41850d41d820ac2c01 100644 (file)
@@ -13,6 +13,7 @@
 #include <asm/arch/clock.h>
 #include <asm/io.h>
 #include <asm/arch/sys_proto.h>
+#include <linux/bitops.h>
 
 __weak s8 abb_setup_ldovbb(u32 fuse, u32 ldovbb)
 {
index 283f73522d6dbee85a31d40c094af2999614c143..ce58bf811f29b99b1f679698aedae4de07dd9b89 100644 (file)
@@ -12,6 +12,7 @@
 #include <debug_uart.h>
 #include <errno.h>
 #include <init.h>
+#include <net.h>
 #include <ns16550.h>
 #include <spl.h>
 #include <asm/arch/cpu.h>
@@ -31,6 +32,7 @@
 #include <i2c.h>
 #include <miiphy.h>
 #include <cpsw.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/compiler.h>
 #include <linux/usb/ch9.h>
index 39423051088daaa1154c501dae35ca707724a346..15b6b35ae7c1795fbb65b7b95b9d9000e167e1d4 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/clk_synthesizer.h>
 #include <asm/arch/cpu.h>
index 8c61547ee9c5f8d7d2c1e6480806dea5fb9d65b0..8819062aaadd8830366348e375fa77a895076c3e 100644 (file)
@@ -9,6 +9,8 @@
  */
 #include <common.h>
 #include <hang.h>
+#include <init.h>
+#include <log.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/hardware.h>
index aef090b4f8e2222b2e4e4d05ad7345133e7b1ca3..27abaff48fced5ff0cf80d1306b014956b09db93 100644 (file)
@@ -12,6 +12,7 @@
 #include <asm/arch/clock.h>
 #include <asm/arch/hardware.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 /* PRCM */
 #define PRCM_MOD_EN            0x2
index e9c7b2d99690576653288af028582f1a59df6628..ec4cc753812d8ac48f90271563ae1568533f5176 100644 (file)
@@ -27,6 +27,7 @@
 #include <asm/arch/clock.h>
 #include <asm/arch/hardware.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 #include <asm/emif.h>
 
index 3fd1d086ff142473fce73dd46952dc25a42dad40..f8434ecf57587d5e0020e19a527335e469468590 100644 (file)
@@ -5,11 +5,14 @@
  * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
  */
 
+#include <common.h>
+#include <log.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/ddr_defs.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/io.h>
 #include <asm/emif.h>
+#include <linux/delay.h>
 
 /**
  * Base address for EMIF instances
index 17b46619b570bbc4ad3796ff543bbdc60094fd61..338f6afcae38e58ff1d1b65198a1ff2e5b0c952e 100644 (file)
@@ -12,6 +12,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/cpu.h>
index 9f5948995848a7b58a3c8601b917feaf777e54cd..707ea807ac28f32731755e3faea6c72667041a3d 100644 (file)
@@ -15,6 +15,7 @@
 #include <asm/arch/sys_proto.h>
 #include <asm/io.h>
 #include <asm/emif.h>
+#include <linux/delay.h>
 
 /*********************************************************************
  * Init DDR3 on TI816X EVM
index d57382aabec75e53df4752b13457293eb487c5a1..cb9d7fdb156358ac3f644b7c816ca4c95f2c005f 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #include <ahci.h>
+#include <log.h>
 #include <spl.h>
 #include <asm/omap_common.h>
 #include <asm/arch/omap.h>
index 9aff83e9dfdb86b2ee1ee1e64a322e3fad9aff59..757fa3801a14cd2a2d99a3196daeaa777e2bc9c4 100644 (file)
@@ -15,6 +15,8 @@
 #include <common.h>
 #include <hang.h>
 #include <i2c.h>
+#include <init.h>
+#include <log.h>
 #include <asm/omap_common.h>
 #include <asm/gpio.h>
 #include <asm/arch/clock.h>
index 4658f67e84d321ea474a637b66144f9dd3605b6a..312f868fbc71efd1ec098dda9160c4a40e380071 100644 (file)
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <hang.h>
 #include <init.h>
+#include <log.h>
 #include <net.h>
 #include <asm/emif.h>
 #include <asm/arch/clock.h>
@@ -20,6 +21,7 @@
 #include <asm/utils.h>
 #include <linux/compiler.h>
 #include <asm/ti-common/ti-edma3.h>
+#include <linux/delay.h>
 
 static int emif1_enabled = -1, emif2_enabled = -1;
 
index 3f420186ad30f7d9f0a1ca111495efe5ffedb7a5..5f344f82838ac8c473a5eb00dbf91f7c771d07de 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 
index 772b4c4db5dc495f5f30f43657eb9742a21a9f37..7a7086776ee09cf65772f09bec314c08d8fed7d7 100644 (file)
@@ -13,6 +13,7 @@
 #include <common.h>
 #include <debug_uart.h>
 #include <fdtdec.h>
+#include <init.h>
 #include <spl.h>
 #include <asm/arch/sys_proto.h>
 #include <linux/sizes.h>
index 1eff9be2705ddfbc9d67fce7fea47cc5ed049285..2c9ada060cff08139d1cca0a49203108cc525589 100644 (file)
@@ -13,6 +13,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <log.h>
 #include <asm/cache.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index 5af6d28e74b67927e6bb9dffb0534886fb924ad0..026e5d2d130bba1b74032dba746ab5bb075ebd40 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/am35x_def.h>
 
index 60de0d6052135ae699e886506ab6ac9b8da317dc..f08c8ab43a06b80de88f467719a84e3eeac0c243 100644 (file)
@@ -16,7 +16,9 @@
  *
  */
 #include <common.h>
+#include <command.h>
 #include <dm.h>
+#include <init.h>
 #include <spl.h>
 #include <asm/io.h>
 #include <asm/arch/sys_proto.h>
@@ -279,7 +281,8 @@ void abort(void)
 /******************************************************************************
  * OMAP3 specific command to switch between NAND HW and SW ecc
  *****************************************************************************/
-static int do_switch_ecc(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+static int do_switch_ecc(struct cmd_tbl *cmdtp, int flag, int argc,
+                        char *const argv[])
 {
        int hw, strength = 1;
 
index fb0c9188f57e0e6839a135c4c266e1bf57eb01d5..eecc5d334e1a99f63799867eaf81dca2228b6297 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <net.h>
 #include <asm/io.h>
 #include <asm/arch/am35x_def.h>
 
index a8bd428e0c45a660520d4559a9af4af99d635be1..4cfa13238810abfa1a035e627e6cc402b233872b 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/mem.h>
 #include <asm/arch/sys_proto.h>
index 861d01d6dfe677b60992d56e2901cf7f65a68bc3..1d65ed622704438b3a3a23c1cf79d5bb8ab1e5f7 100644 (file)
@@ -22,6 +22,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/mem.h>
 #include <asm/arch/sys_proto.h>
index a29a264016ed2eeb77507e03739a2e20a608db3a..2a18cf0215d9f76a5320081a1652121021e52760 100644 (file)
@@ -9,6 +9,7 @@
  * Aneesh V <aneesh@ti.com>
  */
 
+#include <common.h>
 #include <asm/emif.h>
 #include <asm/arch/sys_proto.h>
 
index 446f99f634914d7224a9a769a2166384c0232abc..2f9f8e65d03e6f11b503f855fc303a0e5cca3ff1 100644 (file)
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <asm/omap_common.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 /*
  * Setup LDOVBB for OMAP5.
index 598074ba21a770fad43958bb28551c62b1c1690a..8569eff31ab5c3c45f2575c3c17efadb2f0fe013 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <hang.h>
+#include <log.h>
 #include <asm/utils.h>
 #include <asm/arch/dra7xx_iodelay.h>
 #include <asm/arch/omap.h>
index f3661a0e74ebd3876564b36155a3bc876a398a68..2de36b6feca6e1138e7566438771fb7a2ef72f3d 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/emif.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/utils.h>
index c4adba31e6849658d73531b797783d6a1d355bf6..3f8474b8d0af9910a63ff12c620ac9dfdab6c0a5 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <hang.h>
+#include <log.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <malloc.h>
index 3b1733099fdcd8163e0c48db3c7a1bf2ee146f9a..47ac8656bfe1e0a5cac382d3f0dcb14d941c2b62 100644 (file)
@@ -18,6 +18,7 @@
 #include <asm/arch/cpu.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/clock.h>
+#include <linux/delay.h>
 #include <linux/sizes.h>
 #include <asm/utils.h>
 #include <asm/arch/gpio.h>
index 6bf4cf4a75825867cff2eeac7b6ff35efd779184..786da45fac8321a8749581095b4390e8e6dd889a 100644 (file)
@@ -10,6 +10,7 @@
  * Sricharan R <r.sricharan@ti.com>
  */
 
+#include <common.h>
 #include <asm/emif.h>
 #include <asm/arch/sys_proto.h>
 
index 8808e353a92fba990837517e3836b3d77a826c0b..35ec81d31468ac6b4eb053c58ba7299ed67d23dd 100644 (file)
@@ -11,6 +11,8 @@
 #include <asm/arch/clock.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include "pipe3-phy.h"
 
index 28b929f84f3854acc053495c9fbea94c5332442e..0551bc125e8fc2ba2604c3e0a311b8a23ad26f10 100644 (file)
  */
 
 #include <common.h>
+#include <command.h>
 #include <cpu_func.h>
 #include <hang.h>
 #include <init.h>
+#include <log.h>
 #include <stdarg.h>
 
 #include <asm/arch/sys_proto.h>
index dbb68f718d6482d1b1dd8386b8e301c1aaa9efb1..bcfba16a08e54e1215fa728206e0995a75f2b3fd 100644 (file)
  */
 
 #include <common.h>
+#include <init.h>
 #include <time.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/clock.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 0d5ca20e8e87818fd9549d42b9007acf4b76a051..6e6791fc6595320c56ea745573c1e88c433d9aac 100644 (file)
@@ -5,6 +5,7 @@
  */
 #include <common.h>
 #include <env.h>
+#include <part.h>
 #include <asm/setup.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/omap_common.h>
@@ -90,7 +91,7 @@ static u32 omap_mmc_get_part_size(const char *part)
 {
        int res;
        struct blk_desc *dev_desc;
-       disk_partition_t info;
+       struct disk_partition info;
        u64 sz = 0;
 
        dev_desc = blk_get_dev("mmc", CONFIG_FASTBOOT_FLASH_MMC_DEV);
index 5a693e20bb5ae675cfa4c8fff1e624ebdcc632b9..d9abcacbb4a9dd133406d3c7b40281e0af7e298b 100644 (file)
@@ -10,6 +10,8 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/cache.h>
 #include <asm/io.h>
index 077eb63e74e974313db97fa6525f0a4a330d0ff3..4926bb7779606e48b90a8c939b59b5a5f35d2ba4 100644 (file)
@@ -8,8 +8,10 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <time.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 #define UBOOT_CNTR     0       /* counter to use for uboot timer */
 
index 409cbd319f2002eba52f6992c74b0a3b5bb3b692..7d3f6f6285501498a57d580a5c88cdffb22bd28e 100644 (file)
@@ -6,6 +6,8 @@
  */
 
 #include <cpu_func.h>
+#include <init.h>
+#include <asm/cache.h>
 #include <linux/arm-smccc.h>
 #include <linux/psci.h>
 #include <common.h>
index 8a2d3ce621dd10321d51ddf8eb4bc7f4dd539af8..a10371f74e0ccee31861d53638a2eb4302a9b710 100644 (file)
@@ -4,6 +4,7 @@
  * (C) Copyright 2012 Renesas Solutions Corp.
  */
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
 
 #ifdef CONFIG_ARCH_RMOBILE_BOARD_STRING
index 2cc701c4f5f601aaebda81d3dfbb9e48baab8d79..fdbbd72e2857acbc54092499c4de7b670f04536f 100644 (file)
@@ -5,6 +5,8 @@
  */
 #include <common.h>
 #include <cpu_func.h>
+#include <asm/cache.h>
+#include <init.h>
 #include <asm/io.h>
 #include <env.h>
 #include <linux/ctype.h>
index f9cd89a1314a5e49e883896a47a5bba80e1015e3..3211dfee027fd73705e05ac9fbe8be67c8b873f0 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <net.h>
 #include <linux/errno.h>
 #include <netdev.h>
 
index ecd02b9be0476815a14f3e5f7259e395de1745ba..5cd8a8c787faf1e963e9bcb189c8664192e8d485 100644 (file)
@@ -79,6 +79,7 @@
 
 #ifndef __ASSEMBLY__
 #include <asm/types.h>
+#include <linux/bitops.h>
 
 /* RWDT */
 struct rcar_rwdt {
index be9b23374717b672321a11aeb1fd3d3347cfad6e..7741718be14e3f4dc9c0d3bc50842f61e406f233 100644 (file)
@@ -11,6 +11,7 @@
 #ifndef _SH_SDHI_H
 #define _SH_SDHI_H
 
+#include <linux/bitops.h>
 #define SDHI_CMD                       (0x0000 >> 1)
 #define SDHI_PORTSEL                   (0x0004 >> 1)
 #define SDHI_ARG0                      (0x0008 >> 1)
index 9fcab446a5d8050fcc03233cbed48cb138c4d849..ba06535e4c2a696bb3e1e5a7281d0f2e3f8157c9 100644 (file)
@@ -6,10 +6,12 @@
 
 #include <common.h>
 #include <div64.h>
+#include <init.h>
 #include <time.h>
 #include <asm/io.h>
 #include <asm/arch-armv7/globaltimer.h>
 #include <asm/arch/rmobile.h>
+#include <linux/delay.h>
 
 static struct globaltimer *global_timer = \
                (struct globaltimer *)GLOBAL_TIMER_BASE_ADDR;
index 14b9e89ea352fb79f61af2c3b62a6e6997dc3fb8..430c0cbf41e49a695e2a21a2094f9f7319ed1642 100644 (file)
@@ -7,8 +7,10 @@
 #include <cpu_func.h>
 #include <dm.h>
 #include <init.h>
+#include <log.h>
 #include <ram.h>
 #include <syscon.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/boot_mode.h>
 #include <asm/arch-rockchip/clock.h>
index 7598fe4c43d40d8d5f70e5b0ffba58df28df0cea..2158934159a5b997a102d2b3649352b635927a98 100644 (file)
@@ -5,6 +5,9 @@
 
 #include <common.h>
 #include <adc.h>
+#include <command.h>
+#include <env.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/boot_mode.h>
 #include <dm/device.h>
index 1524eca27299c9c2964c59469edd3696a6a05ec8..b36e559e8719eba9dcfcf94609cf0e7f1cf179d0 100644 (file)
@@ -7,6 +7,7 @@
 #include <hang.h>
 #include <asm/arch-rockchip/bootrom.h>
 #include <asm/arch-rockchip/boot_mode.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/setjmp.h>
 #include <asm/system.h>
index 4b0e99299a06e10153ed008a1d47aa51cc239fe6..21ca9dedce7279cd747f621d00101df845d2f6e2 100644 (file)
@@ -5,6 +5,8 @@
  */
 
 #include <common.h>
+#include <env.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/clock.h>
 #include <asm/arch-rockchip/cru.h>
index 6dbb9bde483a0ede9a276fa1743680833569409e..28c7c7214cbc8d161049edfc732a893ebf15be40 100644 (file)
@@ -12,6 +12,8 @@
 #include <common.h>
 #include <env.h>
 #include <dm.h>
+#include <hash.h>
+#include <log.h>
 #include <dm/uclass-internal.h>
 #include <misc.h>
 #include <u-boot/crc.h>
index 8c8976f61cd90fcf1d7763339009c8cb2f2c3626..085e65062011c8a0646698a4b76b42ec3cabb4e0 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <debug_uart.h>
 #include <dm.h>
+#include <init.h>
 #include <ram.h>
 #include <spl.h>
 #include <version.h>
index 5014ee83d748af3904d16f9199211c3c8563d7c3..6fcef63c1b09777c9276a091d93071addaa0a225 100644 (file)
@@ -5,6 +5,7 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <init.h>
 #include <asm/armv8/mmu.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/grf_px30.h>
index 0331491b408e9a022c89eb63f6eb8233e1dd0abe..4672bdbf0092b2f375287220b5497ca25a1a22d5 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <syscon.h>
 #include <asm/arch-rockchip/clock.h>
 
index fbc89b66c47487b05c8d35a1e93086c1d6bf9f49..6eb89e15b818f1c99d4926c7e98ec4e32b1ab23c 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <debug_uart.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/bootrom.h>
 #include <asm/arch-rockchip/sdram_rk3036.h>
index e9ada6dea3c07e10785fb56756e6c56cbd0a9138..e9e020ff3f5862c0ceb621b9cfd6b90c0ee7fd68 100644 (file)
@@ -2,6 +2,9 @@
 /*
  * (C) Copyright 2019 Rockchip Electronics Co., Ltd
  */
+
+#include <common.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/grf_rk3036.h>
 #include <asm/arch-rockchip/hardware.h>
index c39cbb8111a14f35b864d3b1db0354102771513a..6ae254e99af5273f3a22f476c1a1221e5cda2384 100644 (file)
@@ -3,6 +3,7 @@
  * (C) Copyright 2015 Rockchip Electronics Co., Ltd
  */
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/types.h>
 #include <asm/arch-rockchip/cru_rk3036.h>
@@ -10,6 +11,7 @@
 #include <asm/arch-rockchip/hardware.h>
 #include <asm/arch-rockchip/sdram_rk3036.h>
 #include <asm/arch-rockchip/uart.h>
+#include <linux/delay.h>
 
 /*
  * we can not fit the code to access the device tree in SPL
index ee176de80b06f810099bbad601e73a22b783930f..740bd2ba0770377ef184701fdece082ac90ccd30 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright (c) 2017 Rockchip Electronics Co., Ltd
  */
 #include <common.h>
+#include <init.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index e52466fb6fbd777da6dfbab88b574a8d594ef599..ef57dfd7619f691aa621c72fc8c3599b69eaccbb 100644 (file)
@@ -5,6 +5,8 @@
 #include <common.h>
 #include <dm.h>
 #include <hang.h>
+#include <init.h>
+#include <log.h>
 #include <syscon.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/bootrom.h>
index 94f4ec7227dc58f1b8df6e78640eceff3ee1e206..ea7d7b5b1acc72c744bc80130ec7050da4defead 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <syscon.h>
 #include <asm/arch-rockchip/clock.h>
 
index 562117e6c13aebdb411bd26a5dadd249e5a2acaf..ad4ac62e514247b768bc2d8b25d8a8f75a3dfb2f 100644 (file)
@@ -2,6 +2,7 @@
 /*
  * (C) Copyright 2019 Rockchip Electronics Co., Ltd
  */
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/bootrom.h>
 #include <asm/arch-rockchip/grf_rk322x.h>
index 812f3bd5f316873b15fca27ff61d7b1c2e975901..804abe8a1b7cffe8e09c19d16016ec18343f4a61 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright (c) 2016 Rockchip Electronics Co., Ltd
  */
 #include <common.h>
+#include <command.h>
 #include <dm.h>
 #include <env.h>
 #include <clk.h>
@@ -114,8 +115,8 @@ int rk_board_late_init(void)
        return rk3288_board_late_init();
 }
 
-static int do_clock(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+static int do_clock(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[])
 {
        static const struct {
                char *name;
index dff2caa5981b058024fe259b898a8cc69b16a20c..e3da0a01947684a3d9701910314b44021d4515f6 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <syscon.h>
 #include <asm/arch-rockchip/clock.h>
 
index edf59947094f0bb0fe0ba5ee6c547529b099e669..8e8214cf7ecb12a50cac9d9aef80e23ce38648fc 100644 (file)
@@ -3,12 +3,14 @@
  *Copyright (c) 2018 Rockchip Electronics Co., Ltd
  */
 #include <common.h>
+#include <init.h>
 #include <malloc.h>
 #include <asm/io.h>
 #include <asm/arch/grf_rk3308.h>
 #include <asm/arch-rockchip/hardware.h>
 #include <asm/gpio.h>
 #include <debug_uart.h>
+#include <linux/bitops.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 8c81242e5d4b711733eb3534a3dbc1fe80f107f7..7c85b2663c887684b1aa7bfa00b76923a5960e99 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/arch-rockchip/bootrom.h>
 #include <asm/arch-rockchip/hardware.h>
 #include <asm/arch-rockchip/grf_rk3328.h>
index 20ae797794732bf884f770e4b19623af2c13b1c1..1c6d65a588700986e2b705c0468caa2a5245fdd1 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <syscon.h>
 #include <asm/armv8/mmu.h>
 #include <asm/io.h>
@@ -13,6 +14,8 @@
 #include <asm/arch-rockchip/cru_rk3368.h>
 #include <asm/arch-rockchip/grf_rk3368.h>
 #include <asm/arch-rockchip/hardware.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 4ba94f2e805091c3d6bd5c12b87ff08bb966231e..cba0dda3e80aab3a21d2f9a7d697ae3369d464e5 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <syscon.h>
 #include <asm/arch-rockchip/clock.h>
 
index dafa142824c32b159f4f7178a7f26304ab871a5b..09b0d6ebe81a1eae99f360632a00daf5777d1701 100644 (file)
@@ -4,6 +4,9 @@
  */
 
 #include <common.h>
+#include <fdt_support.h>
+#include <init.h>
+#include <log.h>
 #include <spl.h>
 #include <spl_gpio.h>
 #include <syscon.h>
@@ -14,6 +17,7 @@
 #include <asm/arch-rockchip/gpio.h>
 #include <asm/arch-rockchip/grf_rk3399.h>
 #include <asm/arch-rockchip/hardware.h>
+#include <linux/bitops.h>
 #include <power/regulator.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index 259ca44d68fb99a3ad8781fedfe0c49fec7bdd12..6b02dc8beb20a4024161d257bec4f8b68519c6d7 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <syscon.h>
 #include <asm/arch-rockchip/clock.h>
 
index 530644c0434ccd36cbc546a65a280590f18cbfba..24fe6cc8f0cacb3c4d8fe79430417a70f1d93a00 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <init.h>
+#include <log.h>
 #include <ram.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/sdram.h>
index c147d5821eae2f0c7e4c28a3a224fe9e146e8cb4..94673f34c9b8e72fe79abd67e7ca71c3628dedf3 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <mmc.h>
 #include <spl.h>
 
@@ -98,6 +99,12 @@ __weak const char *board_spl_was_booted_from(void)
 
 void board_boot_order(u32 *spl_boot_list)
 {
+       /* In case of no fdt (or only platdata), use spl_boot_device() */
+       if (!CONFIG_IS_ENABLED(OF_CONTROL) || CONFIG_IS_ENABLED(OF_PLATDATA)) {
+               spl_boot_list[0] = spl_boot_device();
+               return;
+       }
+
        const void *blob = gd->fdt_blob;
        int chosen_node = fdt_path_offset(blob, "/chosen");
        int idx = 0;
index 0b76af6080c921f932e9b94cc2658b01be14c02a..46b32eb345845d2eae6889bcdb798b82cf7c4c86 100644 (file)
@@ -7,10 +7,14 @@
 #include <debug_uart.h>
 #include <dm.h>
 #include <hang.h>
+#include <image.h>
+#include <init.h>
+#include <log.h>
 #include <ram.h>
 #include <spl.h>
 #include <asm/arch-rockchip/bootrom.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -49,7 +53,8 @@ u32 spl_boot_device(void)
 
 #if defined(CONFIG_TARGET_CHROMEBOOK_JERRY) || \
                defined(CONFIG_TARGET_CHROMEBIT_MICKEY) || \
-               defined(CONFIG_TARGET_CHROMEBOOK_MINNIE)
+               defined(CONFIG_TARGET_CHROMEBOOK_MINNIE) || \
+               defined(CONFIG_TARGET_CHROMEBOOK_SPEEDY)
        return BOOT_DEVICE_SPI;
 #endif
        if (CONFIG_IS_ENABLED(ROCKCHIP_BACK_TO_BROM))
index a2b8d31cbd79151ad0db40f6127a1e1f18860e66..88f80b05a90268e232beb33a43028c848962a24c 100644 (file)
@@ -7,11 +7,14 @@
 #include <debug_uart.h>
 #include <dm.h>
 #include <hang.h>
+#include <init.h>
+#include <log.h>
 #include <ram.h>
 #include <spl.h>
 #include <version.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/bootrom.h>
+#include <linux/bitops.h>
 
 #define TIMER_LOAD_COUNT_L     0x00
 #define TIMER_LOAD_COUNT_H     0x04
index 7816ba117782c8728794a73dc057d27341af6235..b390bdf8278408e5ed7b40fd43ca702bbc1d2f70 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <asm/cache.h>
 
 #if !CONFIG_IS_ENABLED(SYS_DCACHE_OFF)
 void enable_caches(void)
index 79eb19992d058b53c04404c259485974c2144c1d..2a161be137cc3c157cc69bb7f2d344bcdfa2360f 100644 (file)
@@ -8,6 +8,8 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
+#include <part.h>
 #include <smem.h>
 #include <fdt_support.h>
 #include <asm/arch/dram.h>
index 9ba8fdd7293a1b6a31f04b3d28e3d270d3d5f949..442d236255011f8d88d6b641990012221730fe8e 100644 (file)
@@ -11,6 +11,7 @@
 #include <errno.h>
 #include <asm/io.h>
 #include <dm/pinctrl.h>
+#include <linux/bitops.h>
 #include "pinctrl-snapdragon.h"
 
 struct msm_pinctrl_priv {
index 7c8c05cc3194a61f2fbf1efe07f7459eb446d39b..340abf9305c456335338fee31e85ab3e0b997a9b 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <init.h>
 #include <asm/arch/reset_manager.h>
 #include <asm/arch/clock_manager.h>
 #include <asm/arch/misc.h>
index dbb10ecb681cec7795a88d15a32f9f9f35488e3c..a4a97b6a0fcf48cfb11a51d196c89e1fa408201c 100644 (file)
@@ -4,6 +4,8 @@
  */
 
 #include <common.h>
+#include <command.h>
+#include <init.h>
 #include <wait_bit.h>
 #include <asm/io.h>
 #include <asm/arch/clock_manager.h>
@@ -61,7 +63,8 @@ int set_cpu_clk_info(void)
 }
 
 #ifndef CONFIG_SPL_BUILD
-static int do_showclocks(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_showclocks(struct cmd_tbl *cmdtp, int flag, int argc,
+                        char *const argv[])
 {
        cm_print_clock_quick_summary();
        return 0;
index 4ee2b7b4bbe33a4379810995ae04cdc7f3bb6d89..6188a8c3d2db2c56c87c908fee203eed173bda42 100644 (file)
@@ -7,6 +7,7 @@
 #include <clk.h>
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/arch/clock_manager.h>
 #include <asm/arch/system_manager.h>
index d7c8eaf47dc89da1fe6046270d8d033858a281f2..58d5d3fd8a57538ea2a71b3f1a6dc2fa0fca2320 100644 (file)
@@ -11,6 +11,7 @@
 #include <clk.h>
 #include <dm/device-internal.h>
 #include <asm/arch/clock_manager.h>
+#include <linux/delay.h>
 
 #ifdef CONFIG_SPL_BUILD
 
index d48aeec3742614490beaa7ca5b1cdf784840bed1..561d3408cd8fdb3827cad12c78084c5f3b657c13 100644 (file)
@@ -8,6 +8,7 @@
 #include <asm/io.h>
 #include <asm/arch/clock_manager.h>
 #include <asm/arch/freeze_controller.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 
 static const struct socfpga_freeze_controller *freeze_controller_base =
index c6830582a5ac99b849aa1db740ed9e1d6ce8ef02..1f734bcd65ef5df979e65602cc0ec5244b02b01d 100644 (file)
@@ -8,7 +8,7 @@
 
 phys_addr_t socfpga_get_clkmgr_addr(void);
 
-#ifndef __ASSEMBLER__
+#ifndef __ASSEMBLY__
 void cm_wait_for_lock(u32 mask);
 int cm_wait_for_fsm(void);
 void cm_print_clock_quick_summary(void);
index 23f280df1b915149fe5dca9fb961655560b7966a..11ddee5cb643f1e0468300fd48ed36d88b6f88f7 100644 (file)
@@ -6,7 +6,9 @@
 #ifndef CLOCK_MANAGER_ARRIA10
 #define CLOCK_MANAGER_ARRIA10
 
-#ifndef __ASSEMBLER__
+#ifndef __ASSEMBLY__
+
+#include <linux/bitops.h>
 
 /* Clock manager group */
 #define CLKMGR_A10_CTRL                                0x00
 int cm_basic_init(const void *blob);
 #endif
 
+#include <linux/bitops.h>
 unsigned int cm_get_l4_sp_clk_hz(void);
 unsigned long cm_get_mpu_clk_hz(void);
 
 unsigned int cm_get_qspi_controller_clk_hz(void);
 
-#endif /* __ASSEMBLER__ */
+#endif /* __ASSEMBLY__ */
 
 #define LOCKED_MASK    (CLKMGR_CLKMGR_STAT_MAINPLLLOCKED_SET_MSK | \
                         CLKMGR_CLKMGR_STAT_PERPLLLOCKED_SET_MSK)
index 08655094ca3ac6141834609b4f538d566fb2bd4d..5c9abe619b90fd295491d1988864389b720e01e2 100644 (file)
@@ -6,7 +6,9 @@
 #ifndef _CLOCK_MANAGER_GEN5_H_
 #define _CLOCK_MANAGER_GEN5_H_
 
-#ifndef __ASSEMBLER__
+#ifndef __ASSEMBLY__
+
+#include <linux/bitops.h>
 
 struct cm_config {
        /* main group */
@@ -107,8 +109,9 @@ const unsigned int cm_get_f2s_sdr_ref_clk_hz(void);
 /* Clock configuration accessors */
 int cm_basic_init(const struct cm_config * const cfg);
 const struct cm_config * const cm_get_default_config(void);
-#endif /* __ASSEMBLER__ */
+#endif /* __ASSEMBLY__ */
 
+#include <linux/bitops.h>
 #define LOCKED_MASK \
        (CLKMGR_INTER_SDRPLLLOCKED_MASK  | \
        CLKMGR_INTER_PERPLLLOCKED_MASK  | \
index 9d2b3bababe232b867d3e34dbdcb2309150add11..cb7923baef8c25d21cca49b8ff652d40eadd81d8 100644 (file)
@@ -8,6 +8,7 @@
 #define        _CLOCK_MANAGER_S10_
 
 #include <asm/arch/clock_manager_soc64.h>
+#include <linux/bitops.h>
 
 /* Clock speed accessors */
 unsigned long cm_get_mpu_clk_hz(void);
index 430341bea14c8fcdd6f865147706fb06ffae9c3d..adab65bc968157191c61b980d54dfa461ba79c5f 100644 (file)
@@ -7,6 +7,8 @@
 #ifndef        _FIREWALL_H_
 #define        _FIREWALL_H_
 
+#include <linux/bitops.h>
+
 struct socfpga_firwall_l4_per {
        u32     nand;           /* 0x00 */
        u32     nand_data;
index 62249b3695e1d6db617ca76d8984c8ea26023600..048708202cc718799333f86d1d0385210a686a5c 100644 (file)
@@ -7,6 +7,7 @@
 #include <asm/cache.h>
 #include <altera.h>
 #include <image.h>
+#include <linux/bitops.h>
 
 #ifndef _FPGA_MANAGER_ARRIA10_H_
 #define _FPGA_MANAGER_ARRIA10_H_
index c8ec5d4c3c747b84c207833ba08a86412072c31a..e08c0056286f70d9b740aacbb0a1823a3dfb06e5 100644 (file)
@@ -7,6 +7,7 @@
 #ifndef _FPGA_MANAGER_GEN5_H_
 #define _FPGA_MANAGER_GEN5_H_
 
+#include <linux/bitops.h>
 #define FPGAMGRREGS_STAT_MODE_MASK             0x7
 #define FPGAMGRREGS_STAT_MSEL_MASK             0xf8
 #define FPGAMGRREGS_STAT_MSEL_LSB              3
index ae728a5df5f8fa7a4b4885e91c4c4ec7bd9f7625..55707ab9c5875213e603efceaba5bbad273bedf7 100644 (file)
@@ -8,6 +8,7 @@
 #define _MAILBOX_S10_H_
 
 /* user define Uboot ID */
+#include <linux/bitops.h>
 #define MBOX_CLIENT_ID_UBOOT   0xB
 #define MBOX_ID_UBOOT          0x1
 
index 22e4eb33de88a99f23ae95f5cb505299eaf6cce9..19507c292dd059e243b8f5313d25d50d61b1224c 100644 (file)
@@ -7,6 +7,7 @@
 #define _RESET_MANAGER_ARRIA10_H_
 
 #include <dt-bindings/reset/altr,rst-mgr-a10.h>
+#include <linux/bitops.h>
 
 void socfpga_watchdog_disable(void);
 void socfpga_reset_deassert_noc_ddr_scheduler(void);
index 25b82fb285838b0dd79e37639826ce3559c90b04..ff05994ccc33c0780266d3d16a6f22a24d2efd31 100644 (file)
@@ -7,6 +7,7 @@
 #define _SOCFPGA_SDRAM_ARRIA10_H_
 
 #ifndef __ASSEMBLY__
+#include <linux/bitops.h>
 int ddr_calibration_sequence(void);
 
 struct socfpga_ecc_hmc {
@@ -205,7 +206,7 @@ struct socfpga_io48_mmr {
        u32 niosreserve2;
 };
 
-#endif /*__ASSEMBLY__*/
+#endif /*__ASSEMBLY__ */
 
 #define IO48_MMR_CTRLCFG0_DB2_BURST_LENGTH_MASK                0x1F000000
 #define IO48_MMR_CTRLCFG0_DB2_BURST_LENGTH_SHIFT       24
index 6de0a08131778f33517f72bf0d1e6bbd8f8265d6..f8169547172749af9639d8a156d9928698680ed1 100644 (file)
@@ -94,5 +94,6 @@ phys_addr_t socfpga_get_sysmgr_addr(void);
 
 #define SYSMGR_GET_BOOTINFO_BSEL(bsel)         \
                (((bsel) >> SYSMGR_BOOTINFO_BSEL_SHIFT) & 7)
+#include <linux/bitops.h>
 #endif
 #endif /* _SYSTEM_MANAGER_H_ */
index 3a6c9515c64b20fcb804e24a3079d935f4f15f2a..c90f63a754c0532ec3986011e7c51e866d1836b1 100644 (file)
@@ -6,6 +6,7 @@
 #ifndef _SYSTEM_MANAGER_SOC64_H_
 #define _SYSTEM_MANAGER_SOC64_H_
 
+#include <linux/bitops.h>
 void sysmgr_pinmux_init(void);
 void populate_sysmgr_fpgaintf_module(void);
 void populate_sysmgr_pinmux(void);
index 2901b7db680f6a709a2d0f66e5534e9a97894b87..ac2b891fadea8da855dc19ef24441b00ae2d4372 100644 (file)
@@ -4,8 +4,11 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <cpu_func.h>
 #include <hang.h>
+#include <asm/cache.h>
+#include <init.h>
 #include <asm/io.h>
 #include <errno.h>
 #include <fdtdec.h>
@@ -176,7 +179,8 @@ int arch_cpu_init(void)
 }
 
 #ifndef CONFIG_SPL_BUILD
-static int do_bridge(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_bridge(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        unsigned int mask = ~0;
 
index d56349b7f3ead1ab92667ffcf654bafad600dee2..bf978053ca6443da898558cbf020e0a91120e514 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <init.h>
 #include <miiphy.h>
 #include <netdev.h>
 #include <ns16550.h>
index 21eb934e5653c51785f7bc9eaccd86c2b11a3e14..7209e8d6db78d919e357fe3d3136865627849251 100644 (file)
@@ -5,10 +5,12 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
 #include <asm/io.h>
 #include <env.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <linux/bitops.h>
 #include <linux/libfdt.h>
 #include <altera.h>
 #include <miiphy.h>
index a3f5b4364e5c02ae1431bc4fdfd7ae63bd51c8c7..ccff78a2307f833996d2eb0777ed1f141d12f38e 100644 (file)
@@ -9,6 +9,8 @@
 #include <env.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <init.h>
+#include <log.h>
 #include <miiphy.h>
 #include <netdev.h>
 #include <asm/io.h>
index 163bf278b14eac31176adb36836871f909577e8b..f378fce7f02df2032c044489e64795f9e260d081 100644 (file)
@@ -3,6 +3,7 @@
  *  Copyright (C) 2016-2017 Intel Corporation <www.intel.com>
  */
 
+#include <log.h>
 #include <asm/arch/pinmux.h>
 #include <asm/io.h>
 #include <common.h>
index 1008a78dc8367dbae022fa779ea2ebccd727cbae..a65860ef021a8b14f8d32a70234b5875bcc554de 100644 (file)
@@ -9,6 +9,7 @@
 #include <asm/arch/fpga_manager.h>
 #include <asm/arch/reset_manager.h>
 #include <asm/arch/system_manager.h>
+#include <linux/bitops.h>
 
 /* Assert or de-assert SoCFPGA reset manager reset. */
 void socfpga_per_reset(u32 reset, int set)
index f7ee28915ecd0e97e1351d158b98002c70f42701..36d6880141eac34aa038c864da9bfd283662af1c 100644 (file)
@@ -9,6 +9,7 @@
 #include <asm/arch/freeze_controller.h>
 #include <asm/arch/scan_manager.h>
 #include <asm/arch/system_manager.h>
+#include <linux/delay.h>
 
 /*
  * Maximum polling loop to wait for IO scan chain engine becomes idle
index d2f52f2f2cae136563d8b9272894ab6409ac0027..45aea4ab6cc3b90e9f2fe0170001def4593b0b2c 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <hang.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/pl310.h>
 #include <asm/u-boot.h>
index aa9f3e646c3d7a1031036b6502a547b8a7f461ee..bd971ecbd1dc1ab45ec32740698772c593cc0947 100644 (file)
@@ -4,6 +4,8 @@
  *
  */
 
+#include <init.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/u-boot.h>
 #include <asm/utils.h>
index e9967ac450c6bdad47ef6d83a95d455869d6e95b..5a7c5ef76d5d097873fa1bc8c7e16e86c099febe 100644 (file)
@@ -5,6 +5,8 @@
 
 #include <common.h>
 #include <hang.h>
+#include <init.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/u-boot.h>
 #include <asm/utils.h>
@@ -22,6 +24,7 @@
 #include <fdtdec.h>
 #include <watchdog.h>
 #include <dm/uclass.h>
+#include <linux/bitops.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 08427dd83e221e3a85778345b2fb3395032fefca..b3c6f6afc4428535726d3ff9c865772f791ab8ed 100644 (file)
@@ -5,6 +5,8 @@
  */
 
 #include <hang.h>
+#include <init.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/u-boot.h>
 #include <asm/utils.h>
index f1c0262ae5730adcb1c289d16e686f55690440f5..a58f1cf9d3a1a3a4edd02fede3376723536016b0 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/timer.h>
 
index 57237892c34740f79aaba3756767cc48d6a2ddbc..3ad98bdb251d0c1f88498ae65f247711b3825c9c 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/timer.h>
 
index 41338a1a339c377e47a518940e48632dc675df6a..1f12da401c109f81491e59fe81083cb1736d5bff 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/armv7_mpu.h>
 
index e4351de939a20692167bc1f6f3c6c99ad52749c5..37ee9e1612c23f75d5b9eadd0cdcdfcc5762f053 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/sections.h>
 #include <asm/system.h>
 
index 0d5850b4a9b5022d2e8b83c060ed25e179de10c4..fc39230113cc3a11cf84fabe45ddfb1b64cc5fe3 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <misc.h>
 #include <asm/io.h>
 #include <asm/arch/stm32mp1_smc.h>
index f1f26e7c943fe8e8048ca0bc92c38426a81ebced..f191085a12d074d345edc432ab5a76649ab919a9 100644 (file)
@@ -66,8 +66,8 @@ static int confirm_prog(void)
        return 0;
 }
 
-static int do_stm32key(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+static int do_stm32key(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        u32 addr;
        const char *op = argc >= 2 ? argv[1] : NULL;
index 6bebea7ad5e22c048d303823f30f57533eef1e8b..0722e4a891d43350b2988e0b0a6a62515d79149e 100644 (file)
@@ -38,7 +38,7 @@ static void enable_vidconsole(void)
 #endif
 }
 
-static int do_stm32prog(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_stm32prog(struct cmd_tbl *cmdtp, int flag, int argc,
                        char * const argv[])
 {
        ulong   addr, size;
index cc303214cf6d5470ce7c567bfe7bdb31f5487080..c5b8841b23c0944719c23eb93c0be3d199ab73b2 100644 (file)
@@ -3,7 +3,7 @@
  * Copyright (C) 2020, STMicroelectronics - All Rights Reserved
  */
 
-#include <common.h>
+#include <command.h>
 #include <console.h>
 #include <dfu.h>
 #include <malloc.h>
@@ -727,7 +727,7 @@ static int init_device(struct stm32prog_data *data,
                                pr_debug("\n");
                                continue;
                        }
-                       disk_partition_t partinfo;
+                       struct disk_partition partinfo;
 
                        ret = part_get_info(block_dev, part->part_id,
                                            &partinfo);
index 5a16979adce7658132b9777d498f852fc8d4dfd1..70940f01f3216a6718054206477c003eef4e5218 100644 (file)
@@ -11,6 +11,7 @@
 #include <watchdog.h>
 #include <dm/lists.h>
 #include <dm/device-internal.h>
+#include <linux/delay.h>
 #include "stm32prog.h"
 
 /* - configuration part -----------------------------*/
index 5a10808a44bc699fe14acedc001c70fd9bcfae50..472b140321fc125ecf5d1b6e86d05c0ab08f5b26 100644 (file)
@@ -7,12 +7,16 @@
 #include <cpu_func.h>
 #include <debug_uart.h>
 #include <env.h>
+#include <init.h>
+#include <log.h>
 #include <misc.h>
+#include <net.h>
 #include <asm/io.h>
 #include <asm/arch/stm32.h>
 #include <asm/arch/sys_proto.h>
 #include <dm/device.h>
 #include <dm/uclass.h>
+#include <linux/bitops.h>
 
 /* RCC register */
 #define RCC_TZCR               (STM32_RCC_BASE + 0x00)
index 3233415eff7c1298f7561ca8d324cd5298167260..0e8ce63f4a29d8e82cd9c70a54afb39f93152aba 100644 (file)
@@ -5,7 +5,10 @@
 
 #include <common.h>
 #include <dm.h>
+#include <image.h>
+#include <init.h>
 #include <lmb.h>
+#include <log.h>
 #include <ram.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index 21b5f09728c26ce39904a18a8e200e44076020ea..c723b223e08258ff46112ef933f55d032bbae7cf 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <fdt_support.h>
+#include <log.h>
 #include <tee.h>
 #include <asm/arch/sys_proto.h>
 #include <dt-bindings/pinctrl/stm32-pinfunc.h>
index 242bacc50b0a96ee09bf1e940c4a6f6d09e5aba4..5fdb893b0edccb6fd579c6343723d209aba7b0ad 100644 (file)
@@ -6,6 +6,10 @@
 #ifndef _MACH_STM32_H_
 #define _MACH_STM32_H_
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 /*
  * Peripheral memory map
  * only address used before device tree parsing
@@ -133,5 +137,5 @@ enum forced_boot_mode {
 #define BSEC_OTP_MAC   57
 #define BSEC_OTP_BOARD 59
 
-#endif /* __ASSEMBLY__*/
+#endif /* __ASSEMBLY__ */
 #endif /* _MACH_STM32_H_ */
index 3fb038d3e77b6e15d41d3a844351ea4fed494810..155aa79cd5ed8bc44b83a7bef4e49d68dbfdf0bb 100644 (file)
@@ -6,10 +6,12 @@
 #include <config.h>
 #include <common.h>
 #include <asm/armv7.h>
+#include <asm/cache.h>
 #include <asm/gic.h>
 #include <asm/io.h>
 #include <asm/psci.h>
 #include <asm/secure.h>
+#include <linux/bitops.h>
 
 #define BOOT_API_A7_CORE0_MAGIC_NUMBER 0xCA7FACE0
 #define BOOT_API_A7_CORE1_MAGIC_NUMBER 0xCA7FACE1
index b52e1e85d5c3af625f0dac1d99c2b59bc2fbfa33..900dee4c38a6cd81e47377480b02fd92edb43cf2 100644 (file)
@@ -9,6 +9,7 @@
 #include <syscon.h>
 #include <asm/io.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
 #include <linux/err.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
index b7e7e92ef678d758018e4441ef9c15d033081ec9..39413e9a0e160ff9bcbc84abc21fe50fc1a13475 100644 (file)
@@ -7,7 +7,10 @@
 #include <cpu_func.h>
 #include <dm.h>
 #include <hang.h>
+#include <init.h>
+#include <log.h>
 #include <spl.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/arch/sys_proto.h>
 #include <linux/libfdt.h>
index b487b265af28b6a88825dc7deade1188008a6cfb..f40fccd8f8b9ed05bad0eb7b09114d2e235e9201 100644 (file)
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
+#include <log.h>
 #include <mmc.h>
 #include <i2c.h>
 #include <serial.h>
 #include <spl.h>
+#include <asm/cache.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
index 6ca38f73d93cdd897f90c40ad5fc741a47e659d5..8e84062bd7c6a26973bfdec078e4a14f247c24e4 100644 (file)
@@ -14,6 +14,8 @@
 #include <asm/arch/clock.h>
 #include <asm/arch/prcm.h>
 #include <asm/arch/sys_proto.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 #ifdef CONFIG_SPL_BUILD
 void clock_init_safe(void)
index a55a6162d44b0499e8957a2da53c31f5bd3d44b9..31e4281529ad77e2df8579da0bed43b5dcb812c5 100644 (file)
@@ -14,6 +14,7 @@
 #include <asm/arch/clock.h>
 #include <asm/arch/prcm.h>
 #include <asm/arch/sys_proto.h>
+#include <linux/delay.h>
 
 #ifdef CONFIG_SPL_BUILD
 void clock_init_safe(void)
index ae4745bfeccaab0815bd4fc05b60d4526e616bb0..875e5a1a8a8e307cbeadaddb9a514cc68caddeee 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/clock.h>
index 72de807a4726ad2524bf8f581065374cd16fbb52..76d698214da4ba198084c1ed0d4a29f83c05f6c9 100644 (file)
@@ -27,6 +27,7 @@
 #include <asm/arch/dram.h>
 #include <asm/arch/timer.h>
 #include <asm/arch/sys_proto.h>
+#include <linux/delay.h>
 
 #define CPU_CFG_CHIP_VER(n) ((n) << 6)
 #define CPU_CFG_CHIP_VER_MASK CPU_CFG_CHIP_VER(0x3)
index 9375db76a1e1bf0912a75357dd00ba9d455a4a75..9e34da47479842e0d3f83f29e2089c94be1d3b69 100644 (file)
@@ -1,16 +1,19 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * sun50i H6 platform dram controller init
  *
  * (C) Copyright 2017      Icenowy Zheng <icenowy@aosc.io>
  *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 #include <common.h>
+#include <init.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/dram.h>
 #include <asm/arch/cpu.h>
 #include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/kconfig.h>
 
 /*
index f473230bb5a8ff3cd7448bf52cb72898f3bb7c17..0590110d4acb163a8f9be15ffca584f07585f956 100644 (file)
  */
 #include <common.h>
 #include <errno.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/dram.h>
 #include <asm/arch/prcm.h>
+#include <linux/delay.h>
 
 #define DRAM_CLK (CONFIG_DRAM_CLK * 1000000)
 
index 9f00fefb77c463252d051a4bc15b5ac62cede88b..3ed97b59a32c682bf03acbc48f37c9222556f4bb 100644 (file)
 
 #include <common.h>
 #include <errno.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/dram.h>
 #include <asm/arch/prcm.h>
+#include <linux/delay.h>
 
 static const struct dram_para dram_para = {
        .clock = CONFIG_DRAM_CLK,
index 5da01922bfaf69034ae4a8ebc24c18a1f9bde127..d99a38b10aa634cfe60c10cc195dfb4413c21409 100644 (file)
@@ -9,10 +9,12 @@
  */
 #include <common.h>
 #include <errno.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/dram.h>
 #include <asm/arch/prcm.h>
+#include <linux/delay.h>
 
 /* PLL runs at 2x dram-clk, controller runs at PLL / 4 (dram-clk / 2) */
 #define DRAM_CLK_MUL 2
index 2c43b3ceba0b5ca6c89d40dcb560d08e3431ba27..a3f833dd341b7d761edfc5c04a8d2c595cbc8a46 100644 (file)
@@ -9,10 +9,12 @@
  */
 #include <common.h>
 #include <errno.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/dram.h>
 #include <asm/arch/prcm.h>
+#include <linux/delay.h>
 
 #define DRAM_CLK_MUL 2
 #define DRAM_CLK_DIV 1
index 77cc60623ea920565ff93d9fe36417cbaa866d8e..14be212e891d29467a06e7c338c6cffc2405b5ab 100644 (file)
@@ -13,6 +13,8 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <init.h>
+#include <log.h>
 #include <ram.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
index 85e7a1874e1bea206d5b39d676101547e21e8837..5d84798ca4389d90ac8c1124e707fa2183cea626 100644 (file)
@@ -9,10 +9,13 @@
  * (C) Copyright 2015      Jens Kuske <jenskuske@gmail.com>
  */
 #include <common.h>
+#include <init.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/dram.h>
 #include <asm/arch/cpu.h>
+#include <linux/delay.h>
 #include <linux/kconfig.h>
 
 static void mctl_phy_init(u32 val)
index a3997b25901d906813c1f58bea7b46a8a428cdd6..15e86cbac8f4ab88f71fca6c89feacdbe5b3451d 100644 (file)
@@ -4,9 +4,13 @@
  */
 
 #include <common.h>
+#include <image.h>
+#include <log.h>
 #include <spl.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 
 #ifdef CONFIG_SPL_OS_BOOT
index 84c20a48ad4d9d7c3d2004e2412e3a57f7ab8dfd..532730fe7270aba943f92cce32adf4137cee9e98 100644 (file)
@@ -7,6 +7,7 @@
 /* Tegra AP (Application Processor) code */
 
 #include <common.h>
+#include <log.h>
 #include <linux/bug.h>
 #include <asm/io.h>
 #include <asm/arch/gp_padctrl.h>
index 31c49a7c84981928b30fdd5c3e0450c61d128ef1..03faacbd577227a147368889b8878601c25efbd6 100644 (file)
@@ -8,8 +8,10 @@
 #include <cpu_func.h>
 #include <dm.h>
 #include <init.h>
+#include <log.h>
 #include <ns16550.h>
 #include <spl.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #if IS_ENABLED(CONFIG_TEGRA_CLKRST)
 #include <asm/arch/clock.h>
index 224efc97c53ecef3d125b31e417e5d71bcb33531..48c4f32d6f982ecd769b3d36850fd0696352baa5 100644 (file)
@@ -9,6 +9,7 @@
 #include <env.h>
 #include <errno.h>
 #include <init.h>
+#include <log.h>
 #include <ns16550.h>
 #include <usb.h>
 #include <asm/io.h>
index 390229436ecfeb56cda515c2d8291dfb9b11439a..16c4cf306ec87431dac7356a13687edfb8dfd555 100644 (file)
@@ -8,7 +8,10 @@
 #include <fdt_support.h>
 #include <fdtdec.h>
 #include <hang.h>
+#include <init.h>
+#include <log.h>
 #include <malloc.h>
+#include <net.h>
 #include <stdlib.h>
 #include <string.h>
 
index 31b6aa2cfc88edfa271869d2d19ed1346f67fb10..18c19dbf6061957efb2cb7414f0f73012a19c6ba 100644 (file)
@@ -9,6 +9,7 @@
 #include <div64.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <time.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
@@ -17,6 +18,7 @@
 #include <asm/arch-tegra/clk_rst.h>
 #include <asm/arch-tegra/pmc.h>
 #include <asm/arch-tegra/timer.h>
+#include <linux/delay.h>
 
 /*
  * This is our record of the current clock rate of each clock. We don't
index b2252f3621918a57e965992189c4e8f280678cd9..25df31a3b858aa5a90a6e4a861a02f001faedd13 100644 (file)
  */
 
 #include <common.h>
+#include <command.h>
 #include <cpu_func.h>
 #include <irq_func.h>
 #include <asm/arch/tegra.h>
 #include <asm/arch-tegra/pmc.h>
+#include <linux/delay.h>
 
-static int do_enterrcm(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+static int do_enterrcm(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        puts("Entering RCM...\n");
        udelay(50000);
index 3d140760e68fed6b52a9a45f7e76b6d601c936c5..65b15b79fe9bca6499f360116e2414aa2eb61cf3 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/gp_padctrl.h>
@@ -12,6 +13,7 @@
 #include <asm/arch-tegra/clk_rst.h>
 #include <asm/arch-tegra/pmc.h>
 #include <asm/arch-tegra/scu.h>
+#include <linux/delay.h>
 #include "cpu.h"
 
 int get_num_cpus(void)
index e047f678211d43555bd2d3fa9b9f823b54ccaba4..13ffade0408e041568c965d3c735c6fb60e69965 100644 (file)
@@ -6,6 +6,7 @@
 /* Tegra vpr routines */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/tegra.h>
 #include <asm/arch/mc.h>
index a448f2df30289b1d400dd20cc4067b0591b096f0..e7c6d787446a82cc23b523534c5e7d4ebce9dd01 100644 (file)
@@ -7,6 +7,7 @@
 #include <cpu_func.h>
 #include <asm/io.h>
 #include <asm/arch-tegra/ivc.h>
+#include <linux/bug.h>
 
 #define TEGRA_IVC_ALIGN 64
 
index 1771991fbb11e144f0162fe393c0561aae8b8698..16b03bfe7b068a4d044fd0cf305d5e2a80118699 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/pinmux.h>
 
index 68a211286f996f15d93153df9d3a825792168c0f..cdc8493efd8ec14fd7bdd10da2ed62c710a66f5f 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <log.h>
 
 #include <linux/arm-smccc.h>
 
index 761c9ef19e3b3abc6481bc42a5f114912bf9758e..631bc04e95061d20b5075df7ab657092dfabaf43 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <errno.h>
+#include <linux/delay.h>
 
 #include <asm/io.h>
 #include <asm/types.h>
index 13ddbc3b8168a037d7df205c61f8f1b106351793..ed897efc5f07510683104786212ec4a4b040a8d2 100644 (file)
@@ -7,6 +7,7 @@
  */
 #include <common.h>
 #include <debug_uart.h>
+#include <log.h>
 #include <spl.h>
 
 #include <asm/io.h>
index 5dc998a52b24412628337cd7c16d2e4dcf027894..5ad586ac17fb079974c682a3e0a5dcda0c6a27a0 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <linux/ctype.h>
 #if defined(CONFIG_TEGRA124) || defined(CONFIG_TEGRA30)
 #include <asm/arch-tegra/pmc.h>
index ad09cc52eb774dbb6f8a77cf32300fc5c3d2243e..167589d1bb762345387f4b859bbd04a714df6f01 100644 (file)
@@ -7,6 +7,8 @@
 /* Tegra114 Clock control functions */
 
 #include <common.h>
+#include <init.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/sysctr.h>
@@ -15,6 +17,7 @@
 #include <asm/arch-tegra/timer.h>
 #include <div64.h>
 #include <fdtdec.h>
+#include <linux/delay.h>
 
 /*
  * Clock types that we can use as a source. The Tegra114 has muxes for the
index 09b52f559f098a5cbfd8291bc88894ea618f9b93..62c10536306be8d12c4758e5a78278e922540f3a 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/flow.h>
@@ -12,6 +13,7 @@
 #include <asm/arch/tegra.h>
 #include <asm/arch-tegra/clk_rst.h>
 #include <asm/arch-tegra/pmc.h>
+#include <linux/delay.h>
 #include "../cpu.h"
 
 /* Tegra114-specific CPU init code */
index 8fe5e9e3572bb964a7c5549a018f528145223271..23a27c86888117b0140a837cb40a2f06f6455d9b 100644 (file)
@@ -6,6 +6,7 @@
 /* Tegra114 high-level function multiplexing */
 
 #include <common.h>
+#include <log.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/funcmux.h>
 #include <asm/arch/pinmux.h>
index 70916ea3c1872a207c8a2125491b70e446eff679..79e67f5194ea4a3a0c559235942c07bd3d7bb1f2 100644 (file)
@@ -7,6 +7,8 @@
 /* Tegra124 Clock control functions */
 
 #include <common.h>
+#include <init.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/sysctr.h>
@@ -15,6 +17,7 @@
 #include <asm/arch-tegra/timer.h>
 #include <div64.h>
 #include <fdtdec.h>
+#include <linux/delay.h>
 
 /*
  * Clock types that we can use as a source. The Tegra124 has muxes for the
index abc050c27b0e9edc392008a6a069ae1a3770a164..d5f2683b266cb202667ea7e969822e5d3f4ff0cf 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/ahb.h>
 #include <asm/arch/clock.h>
@@ -14,6 +15,7 @@
 #include <asm/arch-tegra/clk_rst.h>
 #include <asm/arch-tegra/pmc.h>
 #include <asm/arch-tegra/ap.h>
+#include <linux/delay.h>
 #include "../cpu.h"
 
 /* Tegra124-specific CPU init code */
index a8fcac6038bbf67e492d52ceb62e45cd9d8bf753..e7ad85fde2d01f251eccf12b2d32558d070a7236 100644 (file)
@@ -7,6 +7,7 @@
 /* Tegra124 high-level function multiplexing */
 
 #include <common.h>
+#include <log.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/funcmux.h>
 #include <asm/arch/pinmux.h>
index 09ab8c78cf0da96c8bf18cbbeb20117a794f4f00..38afc3cbe6decb5ab90a3dfe8a218826e10d9d6b 100644 (file)
@@ -7,8 +7,10 @@
 
 #include <common.h>
 #include <errno.h>
+#include <log.h>
 #include <dm/of_access.h>
 #include <dm/ofnode.h>
+#include <linux/delay.h>
 
 #include "../xusb-padctl-common.h"
 
index 8f1bb4f069ddb056e119a96d8c7ae30a164ea71b..24e8a13b1f9b589dd1706248dd4055cfef3072b0 100644 (file)
@@ -9,6 +9,8 @@
 
 #include <common.h>
 #include <errno.h>
+#include <init.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/tegra.h>
@@ -16,6 +18,7 @@
 #include <asm/arch-tegra/timer.h>
 #include <div64.h>
 #include <fdtdec.h>
+#include <linux/delay.h>
 
 /*
  * Clock types that we can use as a source. The Tegra20 has muxes for the
index 2d14ac9d95e72cbff9307956865eff3f7b8d5578..e5b60598f7f7a383c67bc9e3884dc37387191259 100644 (file)
@@ -7,6 +7,7 @@
 #include <asm/io.h>
 #include <asm/arch/tegra.h>
 #include <asm/arch-tegra/pmc.h>
+#include <linux/delay.h>
 #include "../cpu.h"
 
 static void enable_cpu_power_rail(void)
index b91191eba37729c6620b345d2474b748f4dffccc..1efaa5c3ecd7a644b674aed37fc0b4b52c24e1b7 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <linux/errno.h>
 #include "crypto.h"
 #include "uboot_aes.h"
index dff9ac0a4d6f4dfbd58c3837fbddcbcb0bc29bd6..d55b09b4ac8c22af3999910368d051bae22d04cb 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch-tegra/ap.h>
 #include <asm/arch-tegra/apb_misc.h>
index 2ee0f6ea76f109590d9b02e412e1187af808b0c9..90fe0cba8ea44cd752cd4719470ff62e79e0465f 100644 (file)
@@ -5,6 +5,7 @@
 
 /* Tegra20 high-level function multiplexing */
 #include <common.h>
+#include <log.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/funcmux.h>
 #include <asm/arch/pinmux.h>
index d63db8afa057b0ada4ec66b8e4fa6f909b05786c..05d0668cdbaacc69ec72f8d809f6c8a62e3724ff 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <log.h>
 #include <tps6586x.h>
 #include <asm/io.h>
 #include <asm/arch/tegra.h>
index 00c65c281fc113de3b6511418770a68140717eda..ccc64eb77b4d4740898530fcf307cc52835fdefe 100644 (file)
@@ -8,6 +8,9 @@
 
 #include <common.h>
 #include <errno.h>
+#include <init.h>
+#include <log.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/sysctr.h>
@@ -16,6 +19,8 @@
 #include <asm/arch-tegra/timer.h>
 #include <div64.h>
 #include <fdtdec.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 /*
  * Clock types that we can use as a source. The Tegra210 has muxes for the
index 7f00d7b604c7e80612d50e5bded9db4224d51773..30d994a17ffada40d817097aea86f25d812ccfac 100644 (file)
@@ -7,6 +7,7 @@
 /* Tegra210 high-level function multiplexing */
 
 #include <common.h>
+#include <log.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/funcmux.h>
 #include <asm/arch/pinmux.h>
index 64dc297ae27b31dbb75fe7c943a7b6dd1e0e0dd2..d160ce4c999e0ed2ec9bc573c554824e4d61868c 100644 (file)
@@ -7,8 +7,10 @@
 
 #include <common.h>
 #include <errno.h>
+#include <log.h>
 #include <dm/of_access.h>
 #include <dm/ofnode.h>
+#include <linux/delay.h>
 
 #include "../xusb-padctl-common.h"
 
index dd1193be14ef0be73a466e13f509b64e33b63d64..b0641c6a41a41c4951a5bfd4a885a8bdd8a092bd 100644 (file)
@@ -8,6 +8,8 @@
 
 #include <common.h>
 #include <errno.h>
+#include <init.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/tegra.h>
@@ -15,6 +17,7 @@
 #include <asm/arch-tegra/timer.h>
 #include <div64.h>
 #include <fdtdec.h>
+#include <linux/delay.h>
 
 /*
  * Clock types that we can use as a source. The Tegra30 has muxes for the
index 45a5c091ecfdc9db9706af50424be7141b22b2af..651edd27ee87f9ba132eeb64b67d11a4567a974d 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/flow.h>
@@ -11,6 +12,7 @@
 #include <asm/arch-tegra/clk_rst.h>
 #include <asm/arch-tegra/pmc.h>
 #include <asm/arch-tegra/tegra_i2c.h>
+#include <linux/delay.h>
 #include "../cpu.h"
 
 /* Tegra30-specific CPU init code */
index b3de980ad35f9522a4ff5157b374ec1a00ae7171..c3ee787f33b158674d764e1c8daa467f21da3905 100644 (file)
@@ -6,6 +6,7 @@
 /* Tegra30 high-level function multiplexing */
 
 #include <common.h>
+#include <log.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/funcmux.h>
 #include <asm/arch/pinmux.h>
index c3fb30e24d1d4f6062af208cc4da2cd98457416a..e56e27c8b6ef13ec581b6e997f2c4a83ed6e0760 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <errno.h>
+#include <log.h>
 
 #include "xusb-padctl-common.h"
 
index 3d96d09f31e52ca6cac4d7e0ccf752bb169a495b..f9fd4fe7d33718b65333360b7f3656a04c8a0020 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <asm/armv7.h>
+#include <asm/cache.h>
 #include <asm/pl310.h>
 
 #define PL310_WAY_MASK 0xff
index 20f5ff339826e19edf27e7bb2ec4b85924722c11..ab05b8a51b239d26915d43d376986299731ae2fd 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
 
 #define U8500_BOOTROM_BASE     0x90000000
index b6e4abbad0f62bfb030b882f0453478cbf23ea9d..cde2a8124fe221687b4acd080fdeba9f5f096952 100644 (file)
@@ -5,7 +5,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <linux/io.h>
 #include <linux/kernel.h>
index 9a3793316ab6e8375d4f3e44b4ea1329fad9a647..a4d260aecedcee55b1a12c824e90e2cc5043a6d1 100644 (file)
@@ -4,7 +4,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
@@ -16,6 +15,7 @@
 #include <asm/processor.h>
 #include <asm/psci.h>
 #include <asm/secure.h>
+#include <asm/system.h>
 
 #include "../debug.h"
 #include "../soc-info.h"
index 899b5391046dd92053e27ad8165bd5c5a616d71d..a40bdf17055e841b2f64512cf6b8160face671c7 100644 (file)
@@ -3,7 +3,8 @@
  * Copyright (C) 2012-2015 Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
+#include <config.h>
+#include <init.h>
 #include <linux/io.h>
 
 #include "arm-mpcore.h"
index 7653bd2d3c65874208376dfb127b65f839b69dec..a8bd4eee898a859b2cde99e91e4566ccc6b70265 100644 (file)
@@ -3,7 +3,6 @@
  * Copyright (C) 2016 Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <linux/types.h>
 #include <asm/armv8/mmu.h>
 
index 5ee742e363ffd5548977b19805fe0e58aa43997e..d7456f8df6f21bdfbd1c3157a71eadaacbec850e 100644 (file)
@@ -3,9 +3,9 @@
 // Copyright (C) 2019 Socionext Inc.
 //   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
 
-#include <common.h>
 #include <dm/of.h>
 #include <fdt_support.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/libfdt.h>
 #include <linux/sizes.h>
index 378aad0c9c4566819c91595d62ccafa72b757b05..b800e8b8c6be11b31e89bc5c57fb2f8428ce0812 100644 (file)
@@ -5,7 +5,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <env.h>
 #include <init.h>
 #include <spl.h>
index d9a8d2f28aef92f1fd4399318a29c1f35d285a3f..3e2ec9b26a41abebd38f98ec81a3e3ebc42b7e9f 100644 (file)
@@ -4,9 +4,9 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <linux/libfdt.h>
 #include <linux/kernel.h>
+#include <asm/global_data.h>
 
 #include "init.h"
 
index 11e70a926fc84eb4f4cd152b8c6e8b8e6f5de2f4..4689ed79fdc8cf434ac4c674b3aeb3b9b40436da 100644 (file)
@@ -4,7 +4,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <spl.h>
 #include <linux/io.h>
 #include <linux/kernel.h>
index 02b239475f1308c18ce1f502b8ccead4d9d887f5..c6aef18c198dd3138b8f11b10105e7db5d4122a1 100644 (file)
@@ -5,7 +5,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <spl.h>
 #include <linux/io.h>
 #include <linux/kernel.h>
index 55452484d908a75438beea170a3add21182d52f0..efd07a3296562db06ca2229d68bf99e7ddea7683 100644 (file)
@@ -4,7 +4,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <spl.h>
 #include <linux/io.h>
 #include <linux/kernel.h>
index 49c5da1469c7169f31d90610e118e02e07edd624..677470cdc6497fd3eb35f961544c8a1075d1561f 100644 (file)
@@ -4,7 +4,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <spl.h>
 #include <linux/io.h>
 #include <linux/kernel.h>
index 2edf66d5c103d1b12545ef791d2df21fcf20205b..688809931279cd1b27cba8719992473026478609 100644 (file)
@@ -4,8 +4,8 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <spl.h>
+#include <linux/bitops.h>
 #include <linux/io.h>
 #include <linux/kernel.h>
 
index 83f8c6a428cf9d0d62b051f2546ee17c480bdf7c..69a35f5fb8e2698ef2ee0a0f06fe731fe720fb13 100644 (file)
@@ -4,9 +4,12 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
+#include <command.h>
 #include <spl.h>
 #include <stdio.h>
+#include <linux/bitops.h>
+#include <linux/bug.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/log2.h>
 
@@ -205,7 +208,8 @@ int uniphier_boot_from_backend(void)
 
 #ifndef CONFIG_SPL_BUILD
 
-static int do_pinmon(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_pinmon(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        const struct uniphier_boot_device_info *info;
        u32 pinmon;
index c796d364bb160af1daa02208d30be74185d66fbd..3b721eaf2340b69c22f8a8ba389da06eda1fa2c6 100644 (file)
@@ -4,7 +4,6 @@
  * Copyright (C) 2015-2017 Socionext Inc.
  */
 
-#include <common.h>
 #include <spl.h>
 #include <linux/io.h>
 
index b78bd016721844ae9de7fa776fa3289a67f08206..75d3e70d6aad5a5b6bfeac336dbd34e1b04f701f 100644 (file)
@@ -3,7 +3,6 @@
  * Copyright (C) 2016-2017 Socionext Inc.
  */
 
-#include <common.h>
 #include <spl.h>
 #include <linux/io.h>
 
index 0f9ce650976899a65a342e1ef46b62241af186f5..25b72d8926c89789e5e0fe66f8243f8f9db95c7f 100644 (file)
@@ -4,7 +4,6 @@
  * Copyright (C) 2015-2017 Socionext Inc.
  */
 
-#include <common.h>
 #include <spl.h>
 #include <linux/io.h>
 
index 0917b33c25466fa2222db60ae4e2fa3e687060d2..d241a65382f67a486c7d4602e771cc81ababbe84 100644 (file)
@@ -3,9 +3,9 @@
  * Copyright (C) 2016 Socionext Inc.
  */
 
-#include <common.h>
 #include <spl.h>
 #include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/io.h>
 
 #include "../init.h"
index 72fe8db8dd1d6bf228210a41eaf8abee63a25874..3ccaf02242c667657b7cec8e21dd9d8cb666f6e4 100644 (file)
@@ -4,7 +4,7 @@
  * Copyright (C) 2015-2016 Socionext Inc.
  */
 
-#include <common.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/io.h>
 
index 62594954848cdde3c8b29ad36dc8451d08e0c3e1..44006ae6dc44ff2ea4c2a8b33d760889d114a33f 100644 (file)
@@ -4,7 +4,7 @@
  * Copyright (C) 2015-2016 Socionext Inc.
  */
 
-#include <common.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/io.h>
 
index 6a7b203a44da68bffedc2ff937f7a98a529f7839..1ede50771e82f77f2d202c8d4752c14acee3b4cd 100644 (file)
@@ -5,6 +5,7 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
+#include <init.h>
 #include <stdio.h>
 #include <linux/errno.h>
 #include <linux/io.h>
index a70ce59accdc63e49edc1e15947e5baa450ad335..d116d46812d56630e29d2a81991dfee8d04dfa42 100644 (file)
@@ -3,7 +3,6 @@
  * Copyright (C) 2016 Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <debug_uart.h>
 #include <linux/io.h>
 #include <linux/serial_reg.h>
index 9a25bba5997c618b87321bc3e6f4542318676b2c..629f8b90c9d869b5b2a082f15499d63f74524e1b 100644 (file)
@@ -4,7 +4,7 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
+#include <command.h>
 #include <stdio.h>
 #include <linux/io.h>
 #include <linux/printk.h>
@@ -291,7 +291,8 @@ static void reg_dump(const struct uniphier_ddrmphy_param *param)
        }
 }
 
-static int do_ddrm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_ddrm(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        const struct uniphier_ddrmphy_param *param;
        char *cmd;
index a616a2aafb715364f351b1e887e7a543d9260e1b..ca519d1c7e0c6be37d0ef00cbbc30b72a763fcc4 100644 (file)
@@ -5,7 +5,7 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
+#include <command.h>
 #include <stdio.h>
 #include <linux/io.h>
 #include <linux/printk.h>
@@ -261,7 +261,8 @@ static void reg_dump(const struct uniphier_ddrphy_param *param)
        }
 }
 
-static int do_ddr(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_ddr(struct cmd_tbl *cmdtp, int flag, int argc,
+                 char *const argv[])
 {
        const struct uniphier_ddrphy_param *param;
        char *cmd;
index 6a041c500b0b5573c917f457c81ff8d0f6360ef4..8b342921bf8de4d0a3b69d52ef889e7a5b461ac2 100644 (file)
@@ -9,6 +9,7 @@
 #ifndef ARCH_DDRPHY_REGS_H
 #define ARCH_DDRPHY_REGS_H
 
+#include <linux/bitops.h>
 #define PHY_REG_SHIFT          2
 
 #define PHY_RIDR               (0x000 << PHY_REG_SHIFT)
index 2d1f3e3dc0f799044cd49750247933e6ecf972f1..96acca2562fac2ebc5c6c80fa9f4e2c248283b22 100644 (file)
@@ -5,7 +5,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/sizes.h>
index 012e5f869b79ec2e085a65252cc598ac781e7149..cde39b499bf6974bf4e1bf4684d9023b44b88d63 100644 (file)
@@ -5,7 +5,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/sizes.h>
index 5392ffa603531df00d908bc05fc648a50d5dc6b4..73574201e31b32216110ac119962a3a6f7b9943b 100644 (file)
@@ -7,6 +7,7 @@
  * Copyright (C) 2015 Socionext Inc.
  */
 
+#include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/io.h>
index b55b04415c72add6fd72e7ef0b8025d2fceb5c4f..a11586952d84b535c6ce97d359cb4e8bc6c5dc64 100644 (file)
@@ -5,7 +5,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/sizes.h>
index 5f9d90fe6dc06c7bdb38c1ead97550f7eebe5023..7f2753190c233372e21c9f9da81ee9fc1b6a6453 100644 (file)
@@ -5,13 +5,14 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
+#include <init.h>
 #include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/kernel.h>
 #include <linux/printk.h>
 #include <linux/sizes.h>
 #include <asm/global_data.h>
+#include <asm/u-boot.h>
 
 #include "init.h"
 #include "sg-regs.h"
index 6f3c29d8c0215e7f96ee965ed86c6b9a2ff51f7f..980c260f4c9440ee78172b21bbbf773c1772156b 100644 (file)
@@ -4,11 +4,11 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <fdt_support.h>
 #include <fdtdec.h>
 #include <jffs2/load_kernel.h>
 #include <mtd_node.h>
+#include <linux/errno.h>
 #include <linux/kernel.h>
 #include <linux/printk.h>
 
index 3c77f48853483ff5fc92d935e8a28fa8ce05482d..622303786c54958fe874c88a9dffec94d70b1717 100644 (file)
@@ -7,6 +7,7 @@
 #ifndef __MACH_INIT_H
 #define __MACH_INIT_H
 
+#include <linux/bitops.h>
 #include <linux/types.h>
 
 #define UNIPHIER_MAX_NR_DRAM_CH                3
index f69b489b76e506d60c0f2ecc28681ec6fb83a7f9..57192f0154aa21081e1482aadc4ce3a689e2386d 100644 (file)
@@ -5,7 +5,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/sizes.h>
index c71470a20429378cd67f9505211abcf20b89ee82..b09ec54e1f1834301e7ea47270e3327158d3a3d4 100644 (file)
@@ -5,11 +5,13 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <dm/of.h>
 #include <fdt_support.h>
 #include <linux/ctype.h>
+#include <linux/delay.h>
 #include <linux/io.h>
+#include <asm/global_data.h>
 
 #include "micro-support-card.h"
 
@@ -105,18 +107,6 @@ void support_card_init(void)
        support_card_show_revision();
 }
 
-#if defined(CONFIG_SMC911X)
-#include <netdev.h>
-
-int board_eth_init(bd_t *bis)
-{
-       if (!support_card_found)
-               return 0;
-
-       return smc911x_initialize(0, (unsigned long)support_card_base + SMC911X_OFFSET);
-}
-#endif
-
 #if defined(CONFIG_MTD_NOR_FLASH)
 
 #include <mtd/cfi_flash.h>
index b48495365c051fdf6c11703ff59ffd7727c6e607..e47e5df6480aa56ab8d0f711bcec9ea28c09466a 100644 (file)
@@ -4,7 +4,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <mmc.h>
 #include <spl.h>
 
index e2f4f4eb5c7af5760fbfa0b5ac2bf79b74ae1069..45bb10f8eb1f9c85a28fe40bd70d08960a1fbe01 100644 (file)
@@ -4,7 +4,7 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
+#include <command.h>
 #include <env.h>
 #include <mmc.h>
 #include <linux/errno.h>
@@ -28,7 +28,8 @@ int mmc_get_env_dev(void)
        return find_first_mmc_device(false);
 }
 
-static int do_mmcsetn(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_mmcsetn(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        int dev;
 
@@ -46,7 +47,8 @@ U_BOOT_CMD(
        ""
 );
 
-static int do_sdsetn(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_sdsetn(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        int dev;
 
index b45f72f59a77862b8256f4bd19d6d2db77694d5a..2e07264695956de7c685f33b0fc73b42c92274ce 100644 (file)
@@ -4,7 +4,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <linux/errno.h>
 #include <dm.h>
 #include <dm/pinctrl.h>
index 92a8b925474f098274d93eaa97f995691fd20a57..5fffd23e9a5a31bf3d7991bf92c50e33bfe1faa5 100644 (file)
@@ -5,7 +5,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <linux/io.h>
 #include <asm/secure.h>
index 21972ac9494bc462780a34955935b8919e7f06c8..a0162e1cc852fc08738be94e1afe275ff1c1ea11 100644 (file)
@@ -3,7 +3,6 @@
  * Copyright (C) 2016-2017 Socionext Inc.
  */
 
-#include <common.h>
 #include <spl.h>
 #include <linux/io.h>
 
index af8d6f4f9dc5bb90ca71d5e70fc5ee7c5c2ea9a5..2100f49a0888a2cf48701ac109228c46335e7e03 100644 (file)
@@ -5,7 +5,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <linux/io.h>
 #include <asm/global_data.h>
 
index 48764a18702f67f7ed21e6fe36c27db415e2ab4b..a93b8cdc04d21dc67b6033acb31b3d0330310a9a 100644 (file)
@@ -4,7 +4,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <debug_uart.h>
 #include <hang.h>
 #include <spl.h>
index 9184714e4756d0705f3477676d7a7a00b675d3d9..b1e34796d0d1a7d59cb6d2d81200431ddf3fb835 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <time.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index 1b760ba5de3169972cf48610952ab3b1b5e857bf..61c0b663fcfe10dc7f50d00bbcc00e1eb4286faf 100644 (file)
@@ -5,7 +5,9 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/armv8/mmu.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/sys_proto.h>
index e26beab2e9cde409b1e0ddfab043593a7f45cead..9af5afd3f3f43818f9d7e540a733dc2099acd84f 100644 (file)
@@ -3,6 +3,10 @@
  * Copyright 2016 - 2018 Xilinx, Inc.
  */
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 #define VERSAL_CRL_APB_BASEADDR        0xFF5E0000
 
 #define CRL_APB_TIMESTAMP_REF_CTRL_CLKACT_BIT  BIT(25)
index b578f6538ab02fb3328a98457b69a3a2f3dec696..1ace117fc8e59ea897b057345a05bd32323a793b 100644 (file)
@@ -6,6 +6,7 @@
 #include <clk.h>
 #include <common.h>
 #include <dm.h>
+#include <init.h>
 #include <malloc.h>
 #include <asm/arch/clk.h>
 
index aca44dfe67c9961f0d1140e1c9c34a62adcf4d4a..77b7cb1307128fefefaefe243fce2199e740425c 100644 (file)
@@ -5,7 +5,9 @@
  */
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
 #include <zynqpl.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/arch/clk.h>
 #include <asm/arch/hardware.h>
index 02a7dc9854753dfad2f277c0ad23a87b5b561eb5..239ce3436a6274c07ff0d7510653513d89ded0ee 100644 (file)
@@ -5,6 +5,9 @@
 #include <common.h>
 #include <debug_uart.h>
 #include <hang.h>
+#include <image.h>
+#include <init.h>
+#include <log.h>
 #include <spl.h>
 #include <generated/dt.h>
 
index d822e20d2b230f2b2af2915d6dfc4fd2bbd6a954..cc0e24cbfede723373718ebe6177db15374cffe8 100644 (file)
@@ -31,6 +31,7 @@
 #include <common.h>
 #include <div64.h>
 #include <dm.h>
+#include <init.h>
 #include <time.h>
 #include <malloc.h>
 #include <asm/io.h>
index aa5de863eb623c39478efcfee99203293370cf01..b3402d718950f604152ffa61f09479d24edd2afa 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
 #include <asm/armv7_mpu.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index db2b4a8be2e3734a736c5481c420cf4a2341d5bb..5067b339c2185ce84a69ca8d2917ba10d5e55036 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <time.h>
 #include <asm/arch/clk.h>
 #include <asm/arch/hardware.h>
index 811684a9f882bd62bc3b37ee8a39d9f0697c23d5..3eb8e8f44875176ab7ce43f3dcf9a5f7560909f1 100644 (file)
@@ -5,10 +5,12 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <time.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/armv8/mmu.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <zynqmp_firmware.h>
 #include <asm/cache.h>
index a0acfa2ff1ed96ea85f7fa11bfecf4e9e36a8778..c5ba42124b04da2faf5878d142d0f55e02c75895 100644 (file)
@@ -7,6 +7,10 @@
 #ifndef _ASM_ARCH_HARDWARE_H
 #define _ASM_ARCH_HARDWARE_H
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 #define ZYNQMP_TCM_BASE_ADDR   0xFFE00000
 #define ZYNQMP_TCM_SIZE                0x40000
 
index fbb551151abbe7f71e82b8302fb2d972aeebf2eb..656678a1551f89172349f80a503ac6182f5fe499 100644 (file)
@@ -6,9 +6,11 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <log.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 #define LOCK           0
 #define SPLIT          1
@@ -221,7 +223,7 @@ void initialize_tcm(bool mode)
        }
 }
 
-int cpu_release(u32 nr, int argc, char * const argv[])
+int cpu_release(u32 nr, int argc, char *const argv[])
 {
        if (nr >= ZYNQMP_CORE_APU0 && nr <= ZYNQMP_CORE_APU3) {
                u64 boot_addr = simple_strtoull(argv[0], NULL, 16);
index b6abdfd608ee7358484ae07b81fb125b39b0504d..5c5c7d136e77c1cf628d359c848015e5e055736b 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <asm/io.h>
 #include <asm/arch/psu_init_gpl.h>
+#include <linux/delay.h>
 
 #define PSU_MASK_POLL_TIME 1100000
 
index 68df0a79c4e5e3a5ada00ae686bb1403f0a2453c..9dd61e25f6f5bbbb2fc00a1f2084945e6af2dc51 100644 (file)
@@ -6,8 +6,11 @@
  */
 
 #include <common.h>
+#include <image.h>
 #include <init.h>
+#include <log.h>
 #include <spl.h>
+#include <linux/delay.h>
 
 #include <asm/io.h>
 #include <asm/spl.h>
index 34534d876bc7b7880884bdaca62e10c31003057d..5ea6158c80944342b9dc3bd2d175e8515b12ecfe 100644 (file)
@@ -9,16 +9,18 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <vsprintf.h>
 #include <watchdog.h>
 #include <command.h>
+#include <linux/delay.h>
 
 #include <asm/immap.h>
 #include <asm/io.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        rcm_t *rcm = (rcm_t *) (MMAP_RCM);
        udelay(1000);
index 7cde4c6105ee0a375b6ed58eb2bc82a9ec18d9a8..4ab13b4d8eabcbaca3f6edbdf7f385cf0b79c617 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
 #include <watchdog.h>
 
 #include <asm/immap.h>
index 429781945bfc038eb3bfa965f28bd9eea6827337..d521a8a2e41d77074d79758e04eb5c780ce7d64a 100644 (file)
@@ -9,6 +9,8 @@
  */
 
 #include <common.h>
+#include <init.h>
+#include <net.h>
 #include <vsprintf.h>
 #include <watchdog.h>
 #include <command.h>
@@ -19,7 +21,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        ccm_t *ccm = (ccm_t *) MMAP_CCM;
 
index 8c6e12d54824ab4c2c41a5f2fe4c28934d8717e0..87effa71dc37a6c8d90f4577fcbe0f3108a9753a 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
 #include <watchdog.h>
 #include <asm/immap.h>
 #include <asm/io.h>
index b48a753f9b79ef3468eaca3e33c89b553ad17636..d3d4e30ad552508be6634531ce34480846b97f8c 100644 (file)
  */
 
 #include <common.h>
+#include <init.h>
+#include <net.h>
 #include <vsprintf.h>
 #include <watchdog.h>
 #include <command.h>
 #include <asm/immap.h>
 #include <asm/io.h>
 #include <netdev.h>
+#include <linux/delay.h>
 #include "cpu.h"
 
 DECLARE_GLOBAL_DATA_PTR;
 
 #ifdef CONFIG_M5208
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        rcm_t *rcm = (rcm_t *)(MMAP_RCM);
 
@@ -138,7 +141,7 @@ int print_cpuinfo(void)
 }
 #endif /* CONFIG_DISPLAY_CPUINFO */
 
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        /* Call the board specific reset actions first. */
        if(board_reset) {
@@ -173,7 +176,7 @@ int watchdog_init(void)
 #endif
 
 #ifdef CONFIG_M5272
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        wdog_t *wdp = (wdog_t *) (MMAP_WDOG);
 
@@ -262,7 +265,7 @@ int watchdog_init(void)
 #endif                         /* #ifdef CONFIG_M5272 */
 
 #ifdef CONFIG_M5275
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        rcm_t *rcm = (rcm_t *)(MMAP_RCM);
 
@@ -352,7 +355,7 @@ int print_cpuinfo(void)
 }
 #endif /* CONFIG_DISPLAY_CPUINFO */
 
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        MCFRESET_RCR = MCFRESET_RCR_SOFTRST;
        return 0;
@@ -371,7 +374,7 @@ int print_cpuinfo(void)
 }
 #endif /* CONFIG_DISPLAY_CPUINFO */
 
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        /* enable watchdog, set timeout to 0 and wait */
        mbar_writeByte(MCFSIM_SYPCR, 0xc0);
@@ -403,7 +406,7 @@ int print_cpuinfo(void)
 }
 #endif /* CONFIG_DISPLAY_CPUINFO */
 
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        /* enable watchdog, set timeout to 0 and wait */
        mbar_writeByte(SIM_SYPCR, 0xc0);
index f39fe19baf272009a97031193d4566e7c9bab6af..9d4a10f028d1765ba310e24920f45e08d61a3c07 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
 #include <watchdog.h>
 #include <asm/immap.h>
 #include <asm/io.h>
index 02ef5d87aa7f2213818c5b5be57f5c4aa4736377..751c83a4fc0873342378410b4f64590e39564f8b 100644 (file)
@@ -12,6 +12,7 @@
 #include <asm/processor.h>
 #include <asm/immap.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index a76deebc68ac366920ad84b59d418db07605777e..0659bf6558119f22059df20b9d996880e5d08e0e 100644 (file)
@@ -5,12 +5,14 @@
  */
 
 #include <common.h>
+#include <command.h>
+#include <init.h>
 #include <vsprintf.h>
 #include <asm/immap.h>
 #include <asm/io.h>
 
 #ifdef CONFIG_M5307
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        sim_t *sim = (sim_t *)(MMAP_SIM);
 
index 166720aef57a3aae03fce042aaafb99d886cf9d6..83529408eb3e5aabd91a459cdad4245f8a40863a 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
 #include <watchdog.h>
 #include <asm/immap.h>
 #include <asm/io.h>
index 6807992de538817bd82b3756e29cd019ddda5920..72bfdf056bfa96015fdaf85168304996fcb4dc9f 100644 (file)
@@ -9,17 +9,20 @@
  */
 
 #include <common.h>
+#include <init.h>
+#include <net.h>
 #include <vsprintf.h>
 #include <watchdog.h>
 #include <command.h>
 #include <netdev.h>
+#include <linux/delay.h>
 
 #include <asm/immap.h>
 #include <asm/io.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        rcm_t *rcm = (rcm_t *) (MMAP_RCM);
 
index bd130c1b0c040a96502164361b715b40dc00f5a1..1311f3967c9a579ea6642309ded97561bede4422 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
 #include <watchdog.h>
 #include <asm/immap.h>
 #include <asm/io.h>
index 2f79380c8be4760ec7bd8b922cc56e4d7e7ab4e4..886f29d1b6afef255a18de229524a79ea602da9e 100644 (file)
@@ -9,17 +9,20 @@
  */
 
 #include <common.h>
+#include <init.h>
+#include <net.h>
 #include <vsprintf.h>
 #include <watchdog.h>
 #include <command.h>
 #include <netdev.h>
+#include <linux/delay.h>
 
 #include <asm/immap.h>
 #include <asm/io.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        rcm_t *rcm = (rcm_t *) (MMAP_RCM);
        udelay(1000);
index 6ee23f0db28cd85e21cbb343efef798bc4936e30..9deab51d07e8d09370a153312ae7b805a061d2e5 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
 #include <watchdog.h>
 #include <asm/immap.h>
 #include <asm/processor.h>
index 09bd74556920ca4528beac0102aaada23ff774af..af02c4934c97980b7e7bbca4db4418785dd08f04 100644 (file)
@@ -11,6 +11,7 @@
 #include <pci.h>
 #include <asm/io.h>
 #include <asm/immap.h>
+#include <linux/delay.h>
 
 #if defined(CONFIG_PCI)
 /* System RAM mapped over PCI */
index dc5ed1aa79fda2badc33fbc3c8f96bb65e875c58..59cdfe70e484a38f70e223e77c2b547e512d3774 100644 (file)
@@ -9,6 +9,8 @@
  */
 
 #include <common.h>
+#include <init.h>
+#include <net.h>
 #include <vsprintf.h>
 #include <watchdog.h>
 #include <command.h>
@@ -19,7 +21,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        gptmr_t *gptmr = (gptmr_t *) (MMAP_GPTMR);
 
index 8779384c0ab7e2fa3aaf6bd0e34a1296b2e2cb27..8e42b6314123cc608f5a95e7de11ed16a5b22cd6 100644 (file)
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <MCD_dma.h>
 #include <cpu_func.h>
+#include <init.h>
 #include <asm/immap.h>
 #include <asm/io.h>
 
index ac42cca2efa746b1a5f5052bb3787d0c09f1a58c..74ba68124f1a6d33ffe9934c358761c3d3b2b773 100644 (file)
@@ -11,6 +11,7 @@
 #include <pci.h>
 #include <asm/io.h>
 #include <asm/immap.h>
+#include <linux/delay.h>
 
 #if defined(CONFIG_PCI)
 /* System RAM mapped over PCI */
index 885659e342ec0979adaa9304f27477709e8c4832..33b4cff4ec7213a6760542937668e3c820eb93d9 100644 (file)
@@ -5,7 +5,9 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <irq_func.h>
+#include <linux/delay.h>
 
 #include <asm/timer.h>
 #include <asm/immap.h>
index 19445b3fc7a56c4ac78d57af4d721ff2b7688c6c..aa17929b9eabcc9f08947c72367d510afc76a162 100644 (file)
@@ -5,9 +5,12 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
 #include <command.h>
 #include <env.h>
 #include <image.h>
+#include <lmb.h>
+#include <log.h>
 #include <u-boot/zlib.h>
 #include <bzlib.h>
 #include <watchdog.h>
@@ -47,7 +50,8 @@ void arch_lmb_reserve(struct lmb *lmb)
        lmb_reserve(lmb, sp, (CONFIG_SYS_SDRAM_BASE + gd->ram_size - sp));
 }
 
-int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *images)
+int do_bootm_linux(int flag, int argc, char *const argv[],
+                  bootm_headers_t *images)
 {
        int ret;
        bd_t  *kbd;
index ddc91993a14f88bd8adaf672ddf1945838035b05..1caef61d20e966eea1ea9d24bcedfc998424aca6 100644 (file)
@@ -12,6 +12,7 @@
 #include <watchdog.h>
 #include <asm/processor.h>
 #include <asm/immap.h>
+#include <asm/ptrace.h>
 
 #define        NR_IRQS         (CONFIG_SYS_NUM_IRQS)
 
index bde1f4c22893cf1625d891e8a53680ffec29085b..a3eb6db54be7e8bde962729788e165f3b234aa37 100644 (file)
@@ -7,8 +7,10 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <irq_func.h>
 #include <time.h>
+#include <linux/delay.h>
 
 #include <asm/timer.h>
 #include <asm/immap.h>
index 2ccd55add0c2a529c2a7cc4e45668c411be40f0e..c49141f376d3b46ce155e77fef5deabdc1b117da 100644 (file)
@@ -12,6 +12,7 @@
 #include <watchdog.h>
 #include <command.h>
 #include <asm/processor.h>
+#include <asm/ptrace.h>
 
 
 extern void _exc_handler(void);
index 02f66f9087d176a97d4855a023b096e57e6ba371..aa832d6be6d40e000b43e1f45b069ec8bb8c8e88 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <asm/asm.h>
+#include <asm/cache.h>
 
 int dcache_status(void)
 {
index 910c596884852bec995aad36bc45247a6b3b0df2..829ae26ad274b5767e14b916b7ba0454c35990cd 100644 (file)
@@ -11,6 +11,7 @@
 #include <command.h>
 #include <fdtdec.h>
 #include <irq_func.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/microblaze_intc.h>
 #include <asm/asm.h>
@@ -187,7 +188,7 @@ void interrupt_handler(void)
 }
 
 #if defined(CONFIG_CMD_IRQ)
-int do_irqinfo(cmd_tbl_t *cmdtp, int flag, int argc, const char *argv[])
+int do_irqinfo(struct cmd_tbl *cmdtp, int flag, int argc, const char *argv[])
 {
        int i;
        struct irq_action *act = vecs;
index 070c12cce9ecc1c9e9a60503ff6530f337b1f3b6..86522f84479460102e739db78d4c23c06229f635 100644 (file)
@@ -6,7 +6,9 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <image.h>
+#include <log.h>
 #include <spl.h>
 #include <asm/io.h>
 #include <asm/u-boot.h>
@@ -48,7 +50,7 @@ int spl_start_uboot(void)
        return 1;
 }
 
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        __asm__ __volatile__ ("mts rmsr, r0;" \
                              "bra r0");
index 805eac7fa3f233f49b33f16925395786eaf2e279..1b4617311c577f581d0c3eeadfd232959b812950 100644 (file)
@@ -7,9 +7,12 @@
 
 #include <common.h>
 #include <fdtdec.h>
+#include <init.h>
+#include <log.h>
 #include <time.h>
 #include <asm/microblaze_timer.h>
 #include <asm/microblaze_intc.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 2d6a41be2fd57d9b046b6ffe08288bc518fce358..d2ea1453be04783de3dda5397b588e47ceb222b5 100644 (file)
@@ -8,12 +8,16 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
 #include <command.h>
 #include <cpu_func.h>
 #include <env.h>
 #include <fdt_support.h>
 #include <hang.h>
 #include <image.h>
+#include <lmb.h>
+#include <log.h>
+#include <asm/cache.h>
 #include <u-boot/zlib.h>
 #include <asm/byteorder.h>
 
@@ -105,7 +109,7 @@ static void boot_prep_linux(bootm_headers_t *images)
        }
 }
 
-int do_bootm_linux(int flag, int argc, char * const argv[],
+int do_bootm_linux(int flag, int argc, char *const argv[],
                   bootm_headers_t *images)
 {
        images->cmdline_start = (ulong)env_get("bootargs");
index a403ff729b182cd676016ce6590a9d1adbd95e64..7d5c9fd83aee5b2794e24d2100c5dbbb72e2d6e9 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <init.h>
 #include <linux/compiler.h>
 #include <asm/cache.h>
 #include <asm/mipsregs.h>
@@ -20,7 +21,7 @@ void __weak _machine_restart(void)
                /* NOP */;
 }
 
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        _machine_restart();
 
index 98b67ccc8ec701a2dd8b1ea9d31036a540325c5d..641e2ad58decb5d2d3474993c2d648bd91774611 100644 (file)
@@ -8,6 +8,8 @@
 #ifndef        __ASM_CACHEOPS_H
 #define        __ASM_CACHEOPS_H
 
+#include <asm/cache.h>
+
 #ifndef __ASSEMBLY__
 
 static inline void mips_cache(int op, const volatile void *addr)
index 8f37471f81abc7fe7488e1e91fa29e554e5acbbe..3878171607dc6a1e28687b4704a5086820eaff9c 100644 (file)
@@ -39,6 +39,7 @@
 #ifndef __ASSEMBLY__
 
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 static inline void *mips_cm_base(void)
 {
index f80311e64e8c58d25e316b66149cec991d5499de..7538e6b2e0bf62c608cdb1a3a74141cbfc42dee2 100644 (file)
@@ -27,6 +27,7 @@
 #ifdef __ASSEMBLY__
 #define _ULCAST_
 #else
+#include <linux/bitops.h>
 #define _ULCAST_ (unsigned long)
 #endif
 
index f1db6d23b84e091fa098baada15e5f12ac3228a6..82f986cb81b840535a6755583793c01c7c84bffe 100644 (file)
@@ -5,9 +5,12 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
 #include <env.h>
 #include <image.h>
 #include <fdt_support.h>
+#include <lmb.h>
+#include <log.h>
 #include <asm/addrspace.h>
 #include <asm/io.h>
 
@@ -304,8 +307,8 @@ static void boot_jump_linux(bootm_headers_t *images)
                        linux_extra);
 }
 
-int do_bootm_linux(int flag, int argc, char * const argv[],
-                       bootm_headers_t *images)
+int do_bootm_linux(int flag, int argc, char *const argv[],
+                  bootm_headers_t *images)
 {
        /* No need for those on MIPS */
        if (flag & BOOTM_STATE_OS_BD_T)
index 1a8c87d09437258f7f2ce649646cdfe8be213694..24f115ebc97bf2a6a2de707f68e9b2b41676d365 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <asm/cache.h>
 #include <asm/cacheops.h>
 #ifdef CONFIG_MIPS_L2_CACHE
 #include <asm/cm.h>
@@ -13,6 +14,7 @@
 #include <asm/io.h>
 #include <asm/mipsregs.h>
 #include <asm/system.h>
+#include <linux/bug.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 1e3cfadd2d7e8588c0314782e37df7b168dec4df..ffc8c7a1b724aeafb7c45da008760bf02a54f6a3 100644 (file)
@@ -31,6 +31,7 @@
 #include <init.h>
 #include <asm/relocs.h>
 #include <asm/sections.h>
+#include <linux/bitops.h>
 
 /**
  * read_uint() - Read an unsigned integer from the buffer
index 7ba3e53f6de99850f3ef684ef907bceea3846a58..f96fda5b2de91691b8e6127a92739b4e4ab8852d 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <log.h>
 #include <spl.h>
 
 void __noreturn jump_to_image_no_args(struct spl_image_info *spl_image)
index 99fd0569051e01ca88a2a2249c74b6a182a2180c..8f523fd6fb75223cef220a005aa3b79edceb4e26 100644 (file)
@@ -1,6 +1,8 @@
 // SPDX-License-Identifier: GPL-2.0+
 
 #include <common.h>
+#include <init.h>
+#include <log.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 8fff7541e3c1e59d8cc8f709db01a713149cc923..b1ae02fcab8abd064b6a0000c017c6cc0a58f438 100644 (file)
  */
 
 #include <common.h>
+#include <asm/ptrace.h>
 #include <cpu_func.h>
 #include <hang.h>
 #include <init.h>
+#include <log.h>
 #include <asm/mipsregs.h>
 #include <asm/addrspace.h>
 #include <asm/system.h>
index 2cf0b2cb1f9f8a433fdc7ae1e7925488872687b4..09166ecf8f0757e78bfdf535bf79f869a5205dd6 100644 (file)
@@ -8,6 +8,7 @@
 #include <asm/io.h>
 #include <asm/addrspace.h>
 #include <asm/types.h>
+#include <linux/bitops.h>
 #include <mach/ar71xx_regs.h>
 #include <mach/ath79.h>
 
index 09bdc253ae23a3225f94bf61394f3800aa74568b..9fa2225ed2beb651db53eae771268465e9b6d507 100644 (file)
@@ -5,10 +5,13 @@
 
 #include <common.h>
 #include <clock_legacy.h>
+#include <command.h>
 #include <hang.h>
 #include <asm/io.h>
 #include <asm/addrspace.h>
 #include <asm/types.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <mach/ar71xx_regs.h>
 #include <mach/ath79.h>
 #include <wait_bit.h>
@@ -319,7 +322,8 @@ ulong get_ddr_freq(ulong dummy)
        return gd->mem_clk;
 }
 
-int do_ar934x_showclk(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_ar934x_showclk(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        ar934x_update_clock();
        printf("CPU:       %8ld MHz\n", gd->cpu_clk / 1000000);
index 289973ec953987c310a1206da5aa654e589a967e..218f60a96cce2affb697de0474c1dfca69b65c12 100644 (file)
@@ -9,6 +9,8 @@
 #include <asm/io.h>
 #include <asm/addrspace.h>
 #include <asm/types.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <mach/ar71xx_regs.h>
 #include <mach/ath79.h>
 
index 9afc6726023f89c4a3b62b55a1e3ada1c0ca6784..31e87d620603686e6896b1287cfc70ab5bcc1f1a 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/addrspace.h>
 #include <asm/types.h>
index 268da7336b3936d1e1d392d3249008c114521b1b..78f2370e09cec4454ad63f1728fb614968ddb682 100644 (file)
@@ -8,6 +8,8 @@
 #include <asm/io.h>
 #include <asm/addrspace.h>
 #include <asm/types.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <mach/ar71xx_regs.h>
 #include <mach/ath79.h>
 
index d71c94e1718a5f30c3c912ea5c6cae4c1a948a3a..5adf6cd8159b259f78b91ce2db32a7e5571005ac 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <clock_legacy.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/addrspace.h>
 #include <asm/types.h>
index fb2230430c6247f8c3bd85befde1485053e557e2..e61a368141ba19a3a2e3bb992f64030dc4a0e8fd 100644 (file)
@@ -9,6 +9,7 @@
 #include <asm/io.h>
 #include <asm/addrspace.h>
 #include <asm/types.h>
+#include <linux/delay.h>
 #include <mach/ar71xx_regs.h>
 #include <mach/ath79.h>
 
index 0ab3ab6383c8cb33b8f5eecb24d30e4fd2de9b77..6cd5e77fd15ae783c7d42fe4564dd28da9e8524c 100644 (file)
@@ -5,6 +5,8 @@
  */
 
 #include <common.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <asm/addrspace.h>
index 87ced7c5d5062079ddf79736796fe49b705df03c..a772a655d92178d0849a9f3cf3eb4a108a64a021 100644 (file)
@@ -5,6 +5,8 @@
  */
 
 #include <common.h>
+#include <init.h>
+#include <log.h>
 #include <ram.h>
 #include <dm.h>
 
index 92d431bd041e7ac910b39956e204913b8c7e0fef..61cc1489889ab716c37686b55f3188056df954e2 100644 (file)
@@ -12,6 +12,7 @@
 /*
  * DDR
  */
+#include <linux/bitops.h>
 #define DDRC_ST                                0x0
 #define DDRC_CFG                       0x4
 #define DDRC_CTRL                      0x8
index cee2328ab1eadf81896feaa9f89f816710c2b704..d4884e7fa9f11657ac190e68925cf5f9aa1267d0 100644 (file)
@@ -3,6 +3,7 @@
 #include <config.h>
 #include <common.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 #include <mach/jz4780.h>
 
 int jz47xx_gpio_get_value(unsigned int gpio)
index 015840de256725ddb60de744a395758ce3f9a99b..26fcfc842c28a16a1ec2b20074e6ea3a6c6594a5 100644 (file)
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <hang.h>
+#include <image.h>
 #include <init.h>
 #include <asm/io.h>
 #include <asm/sections.h>
index 9a46198f36423cfeb4a1ace7c67eef49b756f9a1..323c634fb32250327ff703c32d0ec3f01305bb37 100644 (file)
@@ -9,6 +9,8 @@
 #include <config.h>
 #include <common.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <mach/jz4780.h>
 
 #define CPM_CPCCR              0x00
index 73af34721f27faafaf0d70ce2d04e52fcf998091..bf6addccb5dea44b5fd4db71de1fb164b9b1a455 100644 (file)
@@ -9,6 +9,7 @@
 #include <config.h>
 #include <common.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 #include <mach/jz4780.h>
 
 /* WDT */
index 65afefe53e18a584873c84fae02e8ed7722465ba..690f3c5601daf3957e5a3c31a4afc557702fd29f 100644 (file)
 
 #include <common.h>
 #include <hang.h>
+#include <init.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <mach/jz4780.h>
 #include <mach/jz4780_dram.h>
 
index b32a2f5643807a81fff03d10a2bc83efb6468917..82bb9e8c3bfafc72ced6d19428e7530fa0bb327f 100644 (file)
@@ -9,10 +9,13 @@
 #include <config.h>
 #include <common.h>
 #include <div64.h>
+#include <init.h>
 #include <irq_func.h>
 #include <time.h>
 #include <asm/io.h>
 #include <asm/mipsregs.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <mach/jz4780.h>
 
 #define TCU_TSR                0x1C    /* Timer Stop Register */
index 3ee589891b1af035f2f7a63791af55757448991c..b4ffd44ea441ecad57ceb8e6dc325033c048a3ac 100644 (file)
@@ -4,6 +4,8 @@
  */
 
 #include <common.h>
+#include <init.h>
+#include <linux/bitops.h>
 
 #include <asm/io.h>
 #include <asm/types.h>
index 72c70c9e8432f36c6d23a5cc5ce88d29f9faaed5..b12bac63c27da4c2bd27696ffd05b7a359ca19b6 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 
 #include <asm/io.h>
 #include <asm/types.h>
index 5e3a53372d971713347a40338e9ffd82c6586988..d6b4c5d7684bfb9427c90f148df1ef9dc21665a6 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 void mscc_gpio_set_alternate(int gpio, int mode)
 {
index bf75e52ec3c652a45b9f6d685a703904f9bba579..d52eabbd2b1fe84294d90895bf7b7b4670ee2734 100644 (file)
@@ -9,6 +9,7 @@
 #include <asm/cacheops.h>
 #include <asm/io.h>
 #include <asm/reboot.h>
+#include <linux/bitops.h>
 #include <mach/common.h>
 
 #define MIPS_VCOREIII_MEMORY_DDR3
index 4a1228d29f3c2c1f74dcd4b0cec6808f55c99014..8d1d21b9b10fa6bda957f3576b1157eeec442983 100644 (file)
@@ -6,6 +6,8 @@
 #ifndef _MSCC_JR2_DEVCPU_GCB_H_
 #define _MSCC_JR2_DEVCPU_GCB_H_
 
+#include <linux/bitops.h>
+
 #define PERF_GPR                                          0x4
 
 #define PERF_SOFT_RST                                     0x8
index 3c84edc18abeb7446b39e8842c33fa68dfacb4bd..e11ad8788fb22d44b048d0cbf36017c22a0310a1 100644 (file)
@@ -6,6 +6,8 @@
 #ifndef _MSCC_JR2_DEVCPU_GCB_MIIM_REGS_H_
 #define _MSCC_JR2_DEVCPU_GCB_MIIM_REGS_H_
 
+#include <linux/bitops.h>
+
 #define MIIM_MII_STATUS(gi)  (0xc8 + (gi * 36))
 #define MIIM_MII_CMD(gi)     (0xd0 + (gi * 36))
 #define MIIM_MII_DATA(gi)    (0xd4 + (gi * 36))
index 6e0bbe2746a620520cabc5a5feb9f11134d0c186..151bb3e6d486464d175fee5f44b67b2c620cb657 100644 (file)
@@ -6,6 +6,8 @@
 #ifndef _MSCC_JR2_ICPU_CFG_H_
 #define _MSCC_JR2_ICPU_CFG_H_
 
+#include <linux/bitops.h>
+
 #define ICPU_GPR(x)                                       (0x4 * (x))
 #define ICPU_GPR_RSZ                                      0x4
 
index a74a68593d27e7fca68938257bedebe14b5855d7..750a8013d1623c82d2951f67058a416811a1db8c 100644 (file)
@@ -6,6 +6,7 @@
 #ifndef _MSCC_OCELOT_DEVCPU_GCB_H_
 #define _MSCC_OCELOT_DEVCPU_GCB_H_
 
+#include <linux/bitops.h>
 #define PERF_SOFT_RST                                     0x90
 
 #define PERF_SOFT_RST_SOFT_SWC_RST                        BIT(1)
index 2303734894cd3c2fd9171a878e3d3b78bef04daa..07c4f9aeb613dceae0496e2823e915c52b7e8c9a 100644 (file)
@@ -8,6 +8,7 @@
 #ifndef _MSCC_LUTON_MIIM_REGS_H_
 #define _MSCC_LUTON_MIIM_REGS_H_
 
+#include <linux/bitops.h>
 #define MIIM_MII_STATUS(gi) (0xa0 + (gi * 36))
 #define MIIM_MII_CMD(gi)    (0xa8 + (gi * 36))
 #define MIIM_MII_DATA(gi)   (0xac + (gi * 36))
index 9233f037bb89ce7887fe142b5aadbdd5838f5807..ded7c5fa77af5b8c093ae92b0a6349424df4343e 100644 (file)
@@ -6,6 +6,7 @@
 #ifndef _MSCC_OCELOT_ICPU_CFG_H_
 #define _MSCC_OCELOT_ICPU_CFG_H_
 
+#include <linux/bitops.h>
 #define ICPU_GPR(x) (0x4 * (x))
 #define ICPU_GPR_RSZ                                      0x4
 
index b2a4203644aa7c8c88ee44f4ef6c388750c3686b..5715ec164c85aca079ea7bab0ea56d1704743e6c 100644 (file)
@@ -6,6 +6,7 @@
 #ifndef _MSCC_OCELOT_DEVCPU_GCB_H_
 #define _MSCC_OCELOT_DEVCPU_GCB_H_
 
+#include <linux/bitops.h>
 #define PERF_SOFT_RST                                     0x8
 
 #define PERF_SOFT_RST_SOFT_NON_CFG_RST                    BIT(2)
index 4ad92214a3b3513ffc6df26f0070bc1c54bf5b8e..50cf073eab6b947ff8785db3999c7f132458d286 100644 (file)
@@ -6,6 +6,7 @@
 #ifndef _MSCC_OCELOT_DEVCPU_GCB_MIIM_REGS_H_
 #define _MSCC_OCELOT_DEVCPU_GCB_MIIM_REGS_H_
 
+#include <linux/bitops.h>
 #define MIIM_MII_STATUS(gi) (0x9c + (gi * 36))
 #define MIIM_MII_CMD(gi)    (0xa4 + (gi * 36))
 #define MIIM_MII_DATA(gi)   (0xa8 + (gi * 36))
index 04cf70bec3419cbf0ad5628598857d501bed60a2..fb10bf2c26e87cf1e45c5858c037d5ab369a5e0f 100644 (file)
@@ -6,6 +6,7 @@
 #ifndef _MSCC_OCELOT_ICPU_CFG_H_
 #define _MSCC_OCELOT_ICPU_CFG_H_
 
+#include <linux/bitops.h>
 #define ICPU_GPR(x) (0x4 * (x))
 #define ICPU_GPR_RSZ                                      0x4
 
index 9b80fdb574b72c5ab1007709686b7fd8f5033820..43d40be716552d18796ecbc8c0a92e9a885a1dca 100644 (file)
@@ -6,6 +6,7 @@
 #ifndef _MSCC_SERVAL_DEVCPU_GCB_H_
 #define _MSCC_SERVAL_DEVCPU_GCB_H_
 
+#include <linux/bitops.h>
 #define CHIP_ID                                           0x0
 
 #define PERF_GPR                                          0x4
index a3abbc40156fe4810fa24b0bebcdd9213b995f68..e8cb1dcf9a06d9735a207ccc4733f4c90f8229b3 100644 (file)
@@ -6,6 +6,7 @@
 #ifndef _MSCC_SERVAL_DEVCPU_GCB_MIIM_REGS_H_
 #define _MSCC_SERVAL_DEVCPU_GCB_MIIM_REGS_H_
 
+#include <linux/bitops.h>
 #define MIIM_MII_STATUS(gi)  (0x5c + (gi * 36))
 #define MIIM_MII_CMD(gi)     (0x64 + (gi * 36))
 #define MIIM_MII_DATA(gi)    (0x68 + (gi * 36))
index b8c9d5ca49e5095d61f3e088771ccb58f7bb85f0..4d4151b3d558d92940fdaafea29c8c11836e5864 100644 (file)
@@ -6,6 +6,7 @@
 #ifndef _MSCC_SERVAL_ICPU_CFG_H_
 #define _MSCC_SERVAL_ICPU_CFG_H_
 
+#include <linux/bitops.h>
 #define ICPU_GPR(x)                                       (0x4 * (x))
 #define ICPU_GPR_RSZ                                      0x8
 
index 493eaad1df7fdc4e93b4e6ebd12032944070850b..7d6c64f316b6a3d622a4a526e011d04d493b7d6b 100644 (file)
@@ -6,6 +6,7 @@
 #ifndef _MSCC_SERVALT_DEVCPU_GCB_H_
 #define _MSCC_SERVALT_DEVCPU_GCB_H_
 
+#include <linux/bitops.h>
 #define PERF_GPR                                          0x4
 
 #define PERF_SOFT_RST                                     0x8
index 8c67190ecb4a9d1fc7972ec22ade5c658f6977cb..72d7c4d08de38e7cacc0c6710f11924530e6022f 100644 (file)
@@ -6,6 +6,7 @@
 #ifndef _MSCC_SERVALT_DEVCPU_GCB_MIIM_REGS_H_
 #define _MSCC_SERVALT_DEVCPU_GCB_MIIM_REGS_H_
 
+#include <linux/bitops.h>
 #define MIIM_MII_STATUS(gi)  (0xc4 + (gi * 36))
 #define MIIM_MII_CMD(gi)     (0xcc + (gi * 36))
 #define MIIM_MII_DATA(gi)    (0xd0 + (gi * 36))
index 491ead169fe0fddf07fd7e9876172892b0c1a69d..13967f66b0644065c52b656d5b194c55aaa5ceab 100644 (file)
@@ -6,6 +6,7 @@
 #ifndef _MSCC_SERVALT_ICPU_CFG_H_
 #define _MSCC_SERVALT_ICPU_CFG_H_
 
+#include <linux/bitops.h>
 #define ICPU_GPR(x)                                       (0x4 * (x))
 #define ICPU_GPR_RSZ                                      0x8
 
index fdb554f5518bd059fb4e545c68155406eb5f3446..ebd8ad0dc1a580c3c9dcef9af59c57fa4efc3e37 100644 (file)
@@ -7,6 +7,7 @@
 #define __ASM_MACH_TLB_H
 
 #include <asm/mipsregs.h>
+#include <linux/bitops.h>
 #include <mach/common.h>
 #include <linux/sizes.h>
 
index add6280e389d67bfc195ac292e88dcd478113754..83d3e5bdd28f63e7ba9d9cb530f7d947f3f5790d 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 
 int mscc_phy_rd_wr(u8 read,
index 459a9673ebe8054b419032f9948b6c8aec1cf3d6..2ddf8cb0967e402d4cf3d4462f6d5fb64a6d6255 100644 (file)
@@ -4,7 +4,9 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <malloc.h>
+#include <linux/bitops.h>
 #include <linux/io.h>
 #include <linux/sizes.h>
 
index cd355cc8409ba04b526f0100ca514c9953f44a42..6c6d0933f2eaea74a953745497cc5a9d583300f2 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/io.h>
 #include <linux/sizes.h>
 #include <mach/ddr.h>
index 06c0ca68541c2123195fa51633fdb5d09615bf69..3df85cd144a3cc04e44e1f7d98efd624a7408410 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <asm/addrspace.h>
 #include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/sizes.h>
 #include <linux/io.h>
 #include <mach/ddr.h>
index 2a24af70c3a3e4c42a8497d6ab030a691f94abe7..38d9e9160d2e51e12cd2675fb51d22abcc06eb60 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <fdt.h>
+#include <init.h>
 #include <spl.h>
 #include <asm/sections.h>
 #include <linux/sizes.h>
index 8075d93d411deba1cfdede5e3a1c8dc0265fcc76..1d8c39714411e34462bddc4c49fcdc035ad6e22d 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <init.h>
 #include <malloc.h>
 #include <mach/pic32.h>
 #include <mach/ddr.h>
index 0660fffa45f4d75f3102968daf551a2352f55b80..c3efa31f594df4609e17345f45fcf226935acbb1 100644 (file)
@@ -39,7 +39,7 @@ int cleanup_before_linux(void)
        return 0;
 }
 
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        disable_interrupts();
        panic("AE3XX wdt not support yet.\n");
index 3ae87a21bb94b99d25aa5b362ad3aa6c83f0dc44..9d99c83bf3afa7166e5989493ab5a6f451d585c2 100644 (file)
@@ -39,7 +39,7 @@ int cleanup_before_linux(void)
        return 0;
 }
 
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        disable_interrupts();
 
index f2e362102e6653d6a50c1313a2141a49c6855d9c..394fc10ec3ad6b13f9cab9f5bac10b576eef4f80 100644 (file)
@@ -9,10 +9,13 @@
  */
 #ifndef CONFIG_TIMER
 #include <common.h>
+#include <init.h>
 #include <irq_func.h>
+#include <log.h>
 #include <time.h>
 #include <asm/io.h>
 #include <faraday/fttmr010.h>
+#include <linux/delay.h>
 
 static ulong timestamp;
 static ulong lastdec;
index 7d39320c15082ba894858d3037a96b23cde53660..f086f34729f60dda67d1eec59d32031f15b34aab 100644 (file)
@@ -12,6 +12,8 @@
 #ifndef _U_BOOT_NDS32_H_
 #define _U_BOOT_NDS32_H_       1
 
+#include <linux/types.h>
+
 /* for the following variables, see start.S */
 extern ulong IRQ_STACK_START;  /* top of IRQ stack */
 extern ulong FIQ_STACK_START;  /* top of FIQ stack */
index c50e8e516870f18b2949615c6ee7a7dbd967a135..da2fd36a16c4b50b059a32c2474681b8df91ebed 100644 (file)
@@ -9,7 +9,7 @@
 #include <command.h>
 
 unsigned long do_go_exec(ulong (*entry)(int, char * const []),
-                        int argc, char * const argv[])
+                        int argc, char *const argv[])
 {
        cleanup_before_linux();
 
index 1003bc87b9db8b0f360ca2e5d9ce747ca865627c..ab539f4036fe69b01f1003d15efbc7fb6e33fd4b 100644 (file)
@@ -6,10 +6,12 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
 #include <command.h>
 #include <env.h>
 #include <hang.h>
 #include <image.h>
+#include <log.h>
 #include <u-boot/zlib.h>
 #include <asm/byteorder.h>
 #include <asm/bootm.h>
index e11d300b6db3c717b07a7a7a04ada26c4d33df70..21917e5da5e6618deadc4a9599148bb8ca575843 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #if !(CONFIG_IS_ENABLED(SYS_ICACHE_OFF) && CONFIG_IS_ENABLED(SYS_DCACHE_OFF))
+#include <asm/cache.h>
 static inline unsigned long CACHE_SET(unsigned char cache)
 {
        if (cache == ICACHE)
index 37ffa8f4a43223af329c1170b85c1506162ff339..7f5e731a0f54c6207138f192918281d6f07b6428 100644 (file)
@@ -5,12 +5,15 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <cpu.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
+#include <init.h>
 #include <irq_func.h>
 #include <asm/cache.h>
+#include <asm/system.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -30,7 +33,7 @@ int checkboard(void)
 }
 #endif
 
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        disable_interrupts();
        /* indirect call to go beyond 256MB limitation of toolchain */
index e9d1ff911be70ddddb3e045948ac589a1937e22d..90cabb67571b813d852af596f90fac4386427d66 100644 (file)
@@ -118,7 +118,7 @@ int interrupt_init(void)
 
 /*************************************************************************/
 #if defined(CONFIG_CMD_IRQ)
-int do_irqinfo (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_irqinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int i;
        struct irq_action *act = vecs;
index e1891617c761d75cf10e2e21101a83ec2a6d6738..2c8f9731c747f9a2a2ff6ff7c2da9a724f52dea3 100644 (file)
@@ -6,11 +6,15 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <env.h>
+#include <image.h>
 #include <irq_func.h>
+#include <log.h>
 
 #define NIOS_MAGIC 0x534f494e /* enable command line and initrd passing */
 
-int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *images)
+int do_bootm_linux(int flag, int argc, char *const argv[],
+                  bootm_headers_t *images)
 {
        void (*kernel)(int, int, int, char *) = (void *)images->ep;
        char *commandline = env_get("bootargs");
index 5d7650294dda00a587fc164b1e0f2e3b3fe3a77b..18808da37dd57535e99bdd03c243f64f0bfebc4f 100644 (file)
@@ -106,10 +106,6 @@ config TARGET_KMCOGE5NE
        bool "Support kmcoge5ne"
        select VENDOR_KM
 
-config TARGET_SUVD3
-       bool "Support suvd3"
-       select VENDOR_KM
-
 config TARGET_KMTEGR1
        bool "Support kmtegr1"
        select VENDOR_KM
index f4e25f1f59c39472d0bd853776515617748f501f..49c75a0e5004a2d0a220a57fe10bd1919bd416c6 100644 (file)
 #include <common.h>
 #include <cpu_func.h>
 #include <irq_func.h>
+#include <net.h>
 #include <time.h>
 #include <vsprintf.h>
 #include <watchdog.h>
 #include <command.h>
 #include <mpc83xx.h>
 #include <asm/processor.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <tsec.h>
 #include <netdev.h>
@@ -122,20 +124,13 @@ int checkcpu(void)
 #endif
 
 #ifndef CONFIG_SYSRESET
-int
-do_reset (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        ulong msr;
-#ifndef MPC83xx_RESET
-       ulong addr;
-#endif
-
        volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
        puts("Resetting the board.\n");
 
-#ifdef MPC83xx_RESET
-
        /* Interrupts and MMU off */
        msr = mfmsr();
        msr &= ~(MSR_EE | MSR_IR | MSR_DR);
@@ -155,24 +150,6 @@ do_reset (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
        /* perform reset, only one bit */
        immap->reset.rcr = RCR_SWHR;
 
-#else  /* ! MPC83xx_RESET */
-
-       immap->reset.rmr = RMR_CSRE;    /* Checkstop Reset enable */
-
-       /* Interrupts and MMU off */
-       msr = mfmsr();
-       msr &= ~(MSR_ME | MSR_EE | MSR_IR | MSR_DR);
-       mtmsr(msr);
-
-       /*
-        * Trying to execute the next instruction at a non-existing address
-        * should cause a machine check, resulting in reset
-        */
-       addr = CONFIG_SYS_RESET_ADDRESS;
-
-       ((void (*)(void)) addr) ();
-#endif /* MPC83xx_RESET */
-
        return 1;
 }
 #endif
index af8facad534d17099f81c0c561009f89e58ca336..438b14b162eb76317e192990c69a28c24e2dd2ec 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <asm-offsets.h>
 #include <mpc83xx.h>
 #include <ioports.h>
 #include <asm/io.h>
@@ -11,6 +12,7 @@
 #ifdef CONFIG_USB_EHCI_FSL
 #include <usb/ehci-ci.h>
 #endif
+#include <linux/delay.h>
 
 #include "lblaw/lblaw.h"
 #include "elbc/elbc.h"
index a6eb7cb97cb8c4f02c366a19b542a733a7fc7f91..1343dd3d3a3694bea6cd333255ac6d3e75c04fc1 100644 (file)
@@ -96,7 +96,7 @@ void ecc_print_status(void)
               ddr->capture_attributes & ECC_CAPT_ATTR_VLD);
 }
 
-int do_ecc(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+int do_ecc(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 #ifdef CONFIG_SYS_FSL_DDR2
index e83895deabbf23d2a1d9c851da3aed7b1a085ba8..d04f31df502116c4e6b9f8eae846df986439a99c 100644 (file)
@@ -11,6 +11,7 @@
 #include <irq_func.h>
 #include <mpc83xx.h>
 #include <asm/processor.h>
+#include <asm/ptrace.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -71,8 +72,8 @@ void timer_interrupt_cpu (struct pt_regs *regs)
  * irqinfo - print information about PCI devices
  */
 
-void
-do_irqinfo(cmd_tbl_t *cmdtp, bd_t *bd, int flag, int argc, char * const argv[])
+void do_irqinfo(struct cmd_tbl *cmdtp, bd_t *bd, int flag, int argc,
+               char *const argv[])
 {
 }
 
index c49b4f784b6f748cec8784cdd2e885c254b5ad37..5e02f4094bb11733e885f74a2e7b9b84f87d99b2 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 #include <linux/log2.h>
index 665ac378c89ae9fd7a25a0cf07337239c7713464..f017985ae9241cede77076f617c8a3aa349d3770 100644 (file)
@@ -7,7 +7,10 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <pci.h>
+#include <asm/bitops.h>
+#include <linux/delay.h>
 
 #if defined(CONFIG_OF_LIBFDT)
 #include <linux/libfdt.h>
index b500ddd3f3a5dd9f9392c65c16150634f556ec25..785d4805a4694d483583efed24ded9bc321dd118 100644 (file)
@@ -11,6 +11,7 @@
 #include <pci.h>
 #include <mpc83xx.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 8242f952653be83eb4a698fd0aa66bb7480695ff..bb963ee5e2f4826580b063103f13ea833e435327 100644 (file)
@@ -14,6 +14,7 @@
 #include <common.h>
 #include <asm/io.h>
 #include <asm/fsl_mpc83xx_serdes.h>
+#include <linux/delay.h>
 
 /* SerDes registers */
 #define FSL_SRDSCR0_OFFS               0x0
index 22506a5be5048ecb51ad47d53ec779d06dcde0bf..aeff007fb0639eff57b93a77bd1552ca75c32e3d 100644 (file)
@@ -14,6 +14,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <log.h>
 #include <time.h>
 #include <vsprintf.h>
 #include <asm/processor.h>
@@ -22,6 +23,8 @@
 #include <spd.h>
 #include <asm/mmu.h>
 #include <spd_sdram.h>
+#include <asm/bitops.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index e2fc0b1e8a2090365a5f5dd71fb6d092b10370c5..5c14aa1f32e71fb982f9955f50157e992620eefd 100644 (file)
@@ -523,7 +523,8 @@ int get_serial_clock(void)
        return get_bus_freq(0);
 }
 
-static int do_clocks(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_clocks(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        char buf[32];
 
index 34c81872591f20915d508cc0cbcebb7dd119101d..2c61f2b81dbfacb97b4d13ae309c90df9e93b467 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <asm-offsets.h>
 #include <clock_legacy.h>
 #include <mpc83xx.h>
 #include <time.h>
index 1c6c38b15f11ea26aa4bf66143c746dd8d693569..c3cc119d6542cbe712de611e4eb17cebc2d3f2cd 100644 (file)
@@ -12,6 +12,7 @@
  */
 
 #include <common.h>
+#include <asm/ptrace.h>
 #include <command.h>
 #include <kgdb.h>
 #include <asm/processor.h>
index 8604f4a8e8fe04ec4cc3379a2c7fcd5b3ad58d35..b972cf3b5e45a613282ee2ec82f1c76773ea8741 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
index 97eeb489cbecf4aaa60f6e33fdf9ce2924bba5ea..34b58bb7f9e406beb320fccca8cb305b2ec3828f 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
index e455d8baf584a769b376adacf47a7537257b70e3..ff73596ba9035cca3027c732c26f2d8261e01174 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <init.h>
 #include <linux/compiler.h>
 #include <fsl_errata.h>
 #include <asm/processor.h>
@@ -128,7 +129,8 @@ static void check_erratum_a007212(void)
 }
 #endif
 
-static int do_errata(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_errata(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
 #ifdef CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
        extern int enable_cpu_a011_workaround;
index 37e706238b6fc92607c7729699afccdb4edef1e6..95215a0b82924b5e8590cae66c702eb04f257931 100644 (file)
@@ -22,6 +22,7 @@
  * currently no deallocator for this memory.
  */
 #include <common.h>
+#include <asm-offsets.h>
 #include <asm/cpm_85xx.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index 9f9eed165bc184d45204cd9460dbead9bdc9c690..9bd573dbd6f298fdc103c682bef05accf514b659 100644 (file)
@@ -11,7 +11,9 @@
 #include <config.h>
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
 #include <irq_func.h>
+#include <log.h>
 #include <time.h>
 #include <vsprintf.h>
 #include <watchdog.h>
@@ -27,6 +29,7 @@
 #include <asm/processor.h>
 #include <fsl_ddr_sdram.h>
 #include <asm/ppc.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -294,7 +297,7 @@ int checkcpu (void)
 
 /* ------------------------------------------------------------------------- */
 
-int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
 /* Everything after the first generation of PQ3 parts has RSTCR */
 #if defined(CONFIG_ARCH_MPC8540) || defined(CONFIG_ARCH_MPC8541) || \
index a9f39dc5838e7bde3f124c9a71714a337476276f..4bca2671d5238c2cc8c50a68f957b47a23819f27 100644 (file)
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <env.h>
 #include <init.h>
+#include <net.h>
 #include <watchdog.h>
 #include <asm/processor.h>
 #include <ioports.h>
@@ -32,6 +33,7 @@
 #include <fsl_usb.h>
 #include <hwconfig.h>
 #include <linux/compiler.h>
+#include <linux/delay.h>
 #include "mp.h"
 #ifdef CONFIG_CHAIN_OF_TRUST
 #include <fsl_validate.h>
index 40cb24dd54a04ac393284bb03b88edc3b9e565eb..c519e8bd4b0380fd3ff069570801677aa957443a 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <asm-offsets.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>
 #include <asm/fsl_law.h>
index 65f909fd1e559b37f795b28c6f6361664d0e8220..55f191f202f9a87f413e82618d95844485006a7d 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <clock_legacy.h>
 #include <env.h>
+#include <log.h>
 #include <time.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
index d7a633ddf259b447ace620aa84169679ce5e8b7a..ee5015ec8f3ebb687dfea9b9edce269e1b2ff596 100644 (file)
@@ -4,11 +4,13 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/fsl_serdes.h>
 #include <asm/immap_85xx.h>
 #include <asm/io.h>
 #include <asm/processor.h>
 #include <asm/fsl_law.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <fsl_errata.h>
 #include "fsl_corenet2_serdes.h"
index ebdcd29c13d973b41f9afc2cb0d95971fe7d1482..f5126e2c8acfb5c2b215d8182de1d1070fab09e7 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <env.h>
+#include <log.h>
 #include <time.h>
 #ifdef CONFIG_SYS_P4080_ERRATUM_SERDES8
 #include <hwconfig.h>
@@ -14,6 +15,7 @@
 #include <asm/io.h>
 #include <asm/processor.h>
 #include <asm/fsl_law.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include "fsl_corenet_serdes.h"
 
index 6f539d26776860383d7e1450a8e67edca0866d3b..4ad762683fb9d5f8331691a63f7cb3837e767b38 100644 (file)
@@ -12,6 +12,7 @@
 
 #include <common.h>
 #include <irq_func.h>
+#include <log.h>
 #include <time.h>
 #include <watchdog.h>
 #include <command.h>
@@ -20,6 +21,7 @@
 #ifdef CONFIG_POST
 #include <post.h>
 #endif
+#include <asm/ptrace.h>
 
 void interrupt_init_cpu(unsigned *decrementer_count)
 {
@@ -102,7 +104,7 @@ void timer_interrupt_cpu(struct pt_regs *regs)
 
 #if defined(CONFIG_CMD_IRQ)
 /* irqinfo - print information about PCI devices,not implemented. */
-int do_irqinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_irqinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        return 0;
 }
index e7703b8a49d4ad0d52cfc1e98d6d97bc2a83e831..e552378e78be0923c45a0c79fd7b10b6b6d3c2b8 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 
index 9757bffe025d5f6a4f06bcbbed6efb608a284b2d..8822cf29fefd081aa07fa4837a14bcf05086285c 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <env.h>
+#include <log.h>
 #include <asm/processor.h>
 #include <env.h>
 #include <ioports.h>
@@ -14,6 +15,7 @@
 #include <asm/mmu.h>
 #include <asm/fsl_law.h>
 #include <fsl_ddr_sdram.h>
+#include <linux/delay.h>
 #include "mp.h"
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -140,7 +142,7 @@ static u8 boot_entry_map[4] = {
        BOOT_ENTRY_R3_LOWER,
 };
 
-int cpu_release(u32 nr, int argc, char * const argv[])
+int cpu_release(u32 nr, int argc, char *const argv[])
 {
        u32 i, val, *table = (u32 *)&__spin_table + nr * NUM_BOOT_ENTRY;
        u64 boot_addr;
index c4c4154ac37049776247934d7e2cffca4e8b346c..111692f15d1830134e28be8f4f56d472020032ef 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
index bdcf46ed114a4568ae0734e38c7f5c9d0343d890..f3b5450ad55cb3988c52456073e88f31698bf665 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
index 99bab9e8ef36da190efed8e65c83f10c9ab603f6..2a5c3e32002ac5b6cf7f5ae62bdf1b0e0819f336 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
index 414c05868f496b4bd94ef6c8162a432356b1db84..81b66c3fa6a2fb9551303209030b59fbc87eb56b 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
index 637522861ebef3f39ffe513917fc153c866fa96a..eb54b8252b201345ce7ef3f5ef96e4d53710bcbe 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
index 0e0c63a14f325621d16bd92be08c913f4d011505..1b4e6149184ddbc2cb6c362d96dcc5cfb865dbb9 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
index cc907c5894d381b98e08040fa2287ae472866c89..8cba4222c4fca8ec14e7b7015c20a2b5e895e6c5 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
index 509051047b0cafd6e44105b240459cb33ea4b2b0..6b8e447e94a4281daedd53d50967de73ac5327f1 100644 (file)
@@ -5,9 +5,11 @@
 
 #include <config.h>
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
+#include <linux/delay.h>
 
 typedef struct serdes_85xx {
        u32     srdscr0;        /* 0x00 - SRDS Control Register 0 */
index 4c51a72630dc22ea33c7989e5c92b99551d13549..719cb4f3d4e40a8b1383edbf24ef0c5d7d7d3edc 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
index 482172d4e02002eddb0a6bd6b6a963240f9fa910..bf5cac619920f905945d02cf053975cc681bc01e 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
index 1e7ed4395774c130037a492e7ec8740235a6427e..f36b1b64ede7265e488ced0bd7cf2eb900257e12 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
index 1d0213a513cdb5797cb4679d6b1f055f755a9b8f..9a6fc13b73f13f369a54cd9cacc0e72104e3d048 100644 (file)
@@ -9,6 +9,7 @@
  * PCI Configuration space access support for MPC85xx PCI Bridge
  */
 #include <common.h>
+#include <asm/bitops.h>
 #include <asm/cpm_85xx.h>
 #include <pci.h>
 
index 972049b8e95a0b84708e6511945a609a817072a0..21b35db08df12be6112abfd98a55c955651bbbc6 100644 (file)
@@ -8,6 +8,7 @@
 #include <asm/global_data.h>
 #include <fsl_ifc.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 808d953c525907beecdbb9f18fd05029c4ffaab2..4465ae7565a45be93f4f0d55a0fbf00d5e455311 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <asm/bitops.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>
 #ifdef CONFIG_ADDR_MAP
index bc2fc93e1109caa6cfcf798e74c7061297f57877..f37a45e2694ed4ec6720cdccedee2cf74e02f3df 100644 (file)
@@ -20,6 +20,7 @@
  */
 
 #include <common.h>
+#include <asm/ptrace.h>
 #include <command.h>
 #include <init.h>
 #include <irq_func.h>
index 97b93f02131289c323e8120aeb6231b458de1469..9f5bce3992b8c22c5dfd3bda58a942d97187a01a 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <log.h>
 #include <time.h>
 #include <vsprintf.h>
 #include <watchdog.h>
@@ -107,7 +108,7 @@ checkcpu(void)
 }
 
 
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        volatile ccsr_gur_t *gur = &immap->im_gur;
index 89add62dc1b4a5419561b5938d52ddac149833a0..a17091d2ff8ccf47488bc1617e727d1ba0bafa8f 100644 (file)
@@ -9,8 +9,10 @@
  * cpu_init.c - low level cpu init
  */
 
+#include <asm-offsets.h>
 #include <config.h>
 #include <common.h>
+#include <init.h>
 #include <mpc86xx.h>
 #include <asm/mmu.h>
 #include <asm/fsl_law.h>
index eb8e73e41c6737d3adafcad2d3cf66304d0cd699..5a916600ed62f41504af078a40b0a9deb761d9d1 100644 (file)
@@ -16,6 +16,7 @@
 
 #include <common.h>
 #include <irq_func.h>
+#include <log.h>
 #include <mpc86xx.h>
 #include <command.h>
 #include <time.h>
@@ -23,6 +24,7 @@
 #ifdef CONFIG_POST
 #include <post.h>
 #endif
+#include <asm/ptrace.h>
 
 void interrupt_init_cpu(unsigned *decrementer_count)
 {
@@ -100,7 +102,7 @@ void irq_free_handler(int vec)
 /*
  * irqinfo - print information about PCI devices,not implemented.
  */
-int do_irqinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_irqinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        return 0;
 }
index 07c4c079df3dd0fe38ea11f628fe3f7e65eb2323..08d11ad4f2e5857cbcf6878eb789da6ba94b91d4 100644 (file)
@@ -67,7 +67,7 @@ int is_core_disabled(int nr) {
        return 0;
 }
 
-int cpu_release(u32 nr, int argc, char * const argv[])
+int cpu_release(u32 nr, int argc, char *const argv[])
 {
        /* dummy function so common/cmd_mp.c will build
         * should be implemented in the future */
index 0e0a90eb7b58dbb5ca531a55f87fee07581970b8..ecc88ba43746f52f8f8bae78cca0a98c5fa0d924 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/immap_86xx.h>
 #include <asm/fsl_serdes.h>
index d272d4ba297da46dd90821da3a7b5c453ec7c69b..4df446618c09594d2c26281f461ef6d8e7c590bd 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/immap_86xx.h>
 #include <asm/fsl_serdes.h>
index 79bab913676a99ed9ed17c06850d41eccd663e82..c0161e3379ccc71dad60d38e8fb6df114593acb1 100644 (file)
@@ -14,6 +14,7 @@
  */
 
 #include <common.h>
+#include <asm/ptrace.h>
 #include <command.h>
 #include <init.h>
 #include <kgdb.h>
index 4a1698d3bca326c0d7473edaa61b3371ece1d63c..1b7c7fa01b8e682df705c9e70c4077fbdedab4db 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <net.h>
 #include <time.h>
 #include <vsprintf.h>
 #include <watchdog.h>
@@ -194,7 +195,7 @@ void upmconfig(uint upm, uint *table, uint size)
 
 /* ------------------------------------------------------------------------- */
 
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        ulong msr, addr;
 
index 8bd6d0fbcfd620b4a7f101116321d3e79d49696a..c8d06b0508d732170923d5bd91700cba15ef4109 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <watchdog.h>
 
 #include <mpc8xx.h>
index 442c01ac6f4b23403d6c70223dfa465794bc8976..e5b62e9f4acff75c65a192877c207b5f728d9cb7 100644 (file)
@@ -18,7 +18,8 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-static int do_siuinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_siuinfo(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        immap_t __iomem *immap = (immap_t __iomem *)CONFIG_SYS_IMMR;
        sysconf8xx_t __iomem *sc = &immap->im_siu_conf;
@@ -35,8 +36,8 @@ static int do_siuinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return 0;
 }
 
-static int do_memcinfo(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+static int do_memcinfo(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        immap_t __iomem *immap = (immap_t __iomem *)CONFIG_SYS_IMMR;
        memctl8xx_t __iomem *memctl = &immap->im_memctl;
@@ -58,7 +59,8 @@ static int do_memcinfo(cmd_tbl_t *cmdtp, int flag, int argc,
        return 0;
 }
 
-static int do_carinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_carinfo(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        immap_t __iomem *immap = (immap_t __iomem *)CONFIG_SYS_IMMR;
        car8xx_t __iomem *car = &immap->im_clkrst;
@@ -119,7 +121,8 @@ static void binary(char *label, uint value, int nbits)
 #define PC_NBITS       12
 #define PD_NBITS       13
 
-static int do_iopinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_iopinfo(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        immap_t __iomem *immap = (immap_t __iomem *)CONFIG_SYS_IMMR;
        iop8xx_t __iomem *iop = &immap->im_ioport;
@@ -172,7 +175,8 @@ static int do_iopinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
  * this needs a clean up for smaller tighter code
  * use *uint and set the address based on cmd + port
  */
-static int do_iopset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_iopset(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        uint rcode = 0;
        iopin_t iopin;
@@ -328,7 +332,8 @@ static void prbrg(int n, uint val)
        putc('\n');
 }
 
-static int do_brginfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_brginfo(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        immap_t __iomem *immap = (immap_t __iomem *)CONFIG_SYS_IMMR;
        cpm8xx_t __iomem *cp = &immap->im_cpm;
index 3efe8956ec57883823eb316925e59b685e309088..eef1951f2fd9b3e995d15759c8632a68081b6bbf 100644 (file)
@@ -12,6 +12,7 @@
 #include <asm/cpm_8xx.h>
 #include <asm/processor.h>
 #include <asm/io.h>
+#include <asm/ptrace.h>
 
 /************************************************************************/
 
index 899bcd86188a2779aacdf16f2a2a766632617101..56794b08a15558ede0429c3b44df557809e1e6dd 100644 (file)
@@ -16,6 +16,7 @@
  */
 
 #include <common.h>
+#include <asm/ptrace.h>
 #include <command.h>
 #include <asm/processor.h>
 
index ed482a9c0984af6d66620db6bf4de9775464bb1d..da0a80e6fc1bc4c05ac3426974300e7ca331f524 100644 (file)
@@ -11,6 +11,8 @@
 #include <common.h>
 #include <command.h>
 #include <cpu_func.h>
+#include <init.h>
+#include <net.h>
 #include <tsec.h>
 #include <fm_eth.h>
 #include <netdev.h>
index afcb75ba17a0aafb265d6f67d869d6de85109b23..29489b46e6cd084f0c6ed6130f6c4bfdfa38d145 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <hang.h>
+#include <init.h>
 #include <asm/fsl_lbc.h>
 
 #ifdef CONFIG_MPC83xx
index d81af70f4406c81cf8dbda1120a6adcba1c2991f..2c378b761588aaa284c5be84577051401b6cdf60 100644 (file)
@@ -6,6 +6,8 @@
  */
 
 #include <common.h>
+#include <log.h>
+#include <linux/bitops.h>
 #include <linux/log2.h>
 #include <malloc.h>
 #include <asm/fsl_pamu.h>
index ca9e6aa8eb102cafeb7c44c4bd40c25c6d445e85..e388386ad42e0dc32cb814145bb8e622efbc8276 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <asm/bitops.h>
 #include <linux/compiler.h>
 #include <asm/fsl_law.h>
 #include <asm/io.h>
index 7b4690abc9f222d018ec595a6a26d0ba1763f750..7dd71d2e0c4a53157eb5331b8c34af882a061e4f 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/fsl_pamu.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index a1f9403559611f614156436b335e827f614e59e0..c73cf9319c87d35048c62d0c7e3eeb672e5ae884 100644 (file)
@@ -5,10 +5,12 @@
 
 #include <common.h>
 #include <config.h>
+#include <log.h>
 #include <time.h>
 #include <asm/fsl_law.h>
 #include <asm/fsl_serdes.h>
 #include <asm/fsl_srio.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 
 #ifdef CONFIG_SRIO_PCIE_BOOT_MASTER
index fbf32b9a07a57e7d9968a1bee7fd4de6d4fd9ece..73105fa8e48468a640d2281552134068101422a0 100644 (file)
@@ -14,6 +14,7 @@
 #define _ASM_FSL_I2C_H_
 
 #include <asm/types.h>
+#include <linux/compiler.h>
 
 typedef struct fsl_i2c_base {
 
index 82e5f9ffc7c39bcc0d5a85a2a8807834c618eb77..353dc4e8748d38f50c36ded916a11a1adefade60 100644 (file)
@@ -7,6 +7,7 @@
 
 #ifndef __ASSEMBLY__
 /* Hardware Page Table Entry */
+#include <linux/bitops.h>
 typedef struct _PTE {
 #ifdef CONFIG_PPC64BRIDGE
        unsigned long long vsid:52;
index 1841565d0a854e5ede1a1b3e4ed54f2af2e796f5..19b3c0db5fae5df0a16fceb5226b985d3941dcc2 100644 (file)
@@ -13,6 +13,8 @@
 #ifndef __U_BOOT_H__
 #define __U_BOOT_H__
 
+#include <config.h>
+
 /* For image.h:image_check_target_arch() */
 #define IH_ARCH_DEFAULT IH_ARCH_PPC
 
index 390e8c0673c555bfb592461a8ab7bbb9ed0d2fdf..cd92db0a92f02bd5a8aa5a5ec4e8557b42d1d3c3 100644 (file)
@@ -8,9 +8,12 @@
 
 
 #include <common.h>
+#include <bootstage.h>
 #include <cpu_func.h>
 #include <env.h>
 #include <init.h>
+#include <lmb.h>
+#include <log.h>
 #include <watchdog.h>
 #include <command.h>
 #include <image.h>
@@ -51,8 +54,8 @@ static void boot_jump_linux(bootm_headers_t *images)
 
        kernel = (void (*)(bd_t *, ulong, ulong, ulong,
                           ulong, ulong, ulong))images->ep;
-       debug ("## Transferring control to Linux (at address %08lx) ...\n",
-               (ulong)kernel);
+       debug("## Transferring control to Linux (at address %08lx) ...\n",
+             (ulong)kernel);
 
        bootstage_mark(BOOTSTAGE_ID_RUN_OS);
 
@@ -79,7 +82,7 @@ static void boot_jump_linux(bootm_headers_t *images)
                 *   r8: 0
                 *   r9: 0
                 */
-               debug ("   Booting using OF flat tree...\n");
+               debug("   Booting using OF flat tree...\n");
                WATCHDOG_RESET ();
                (*kernel) ((bd_t *)of_flat_tree, 0, 0, EPAPR_MAGIC,
                           env_get_bootm_mapsize(), 0, 0);
@@ -103,7 +106,7 @@ static void boot_jump_linux(bootm_headers_t *images)
                ulong initrd_end = images->initrd_end;
                bd_t *kbd = images->kbd;
 
-               debug ("   Booting using board info...\n");
+               debug("   Booting using board info...\n");
                WATCHDOG_RESET ();
                (*kernel) (kbd, initrd_start, initrd_end,
                           cmd_start, cmd_end, 0, 0);
@@ -147,7 +150,7 @@ void arch_lmb_reserve(struct lmb *lmb)
         * pointer.
         */
        sp = get_sp();
-       debug ("## Current stack ends at 0x%08lx\n", sp);
+       debug("## Current stack ends at 0x%08lx\n", sp);
 
        /* adjust sp by 4K to be safe */
        sp -= 4096;
@@ -230,8 +233,8 @@ static int boot_body_linux(bootm_headers_t *images)
        return 0;
 }
 
-noinline
-int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *images)
+noinline int do_bootm_linux(int flag, int argc, char *const argv[],
+                           bootm_headers_t *images)
 {
        int     ret;
 
index 683fd53b6af859ebdbae84322b3879dd53926f8c..7e9d4f22f39048ba15bd3049317bf39ac90302fd 100644 (file)
@@ -6,6 +6,7 @@
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  */
 #include <common.h>
+#include <log.h>
 
 /*
  * The exception table consists of pairs of addresses: the first is the
index 64ee0cc21024f84b7a176cded82d8fdcf1a94fdb..73f270002cfcd015ed64cdd7feeee13579c3b504 100644 (file)
@@ -14,6 +14,7 @@
 #ifdef CONFIG_LED_STATUS
 #include <status_led.h>
 #endif
+#include <asm/ptrace.h>
 
 #ifndef CONFIG_MPC83XX_TIMER
 #ifndef CONFIG_SYS_WATCHDOG_FREQ
index f580c023e5823dd69e858fb39c9177dcbb3cd09d..8727d18884c427d4df25751cdf4e09aaa559e5bd 100644 (file)
@@ -1,6 +1,7 @@
 #include <common.h>
 #include <command.h>
 #include <kgdb.h>
+#include <asm/ptrace.h>
 #include <asm/signal.h>
 #include <asm/processor.h>
 
@@ -252,7 +253,7 @@ kgdb_putregs(struct pt_regs *regs, char *buf, int length)
    the debugger. */
 
 void
-kgdb_breakpoint(int argc, char * const argv[])
+kgdb_breakpoint(int argc, char *const argv[])
 {
        asm("   .globl breakinst\n\
             breakinst: .long 0x7d821008\n\
index d90a6e27b9073f43ad65963bd1f1a59240a6d778..d4a6057527c2e0e848d7912e21af0a42c2f24caa 100644 (file)
@@ -4,6 +4,7 @@
  */
 #include <common.h>
 #include <config.h>
+#include <log.h>
 #include <spl.h>
 #include <image.h>
 #include <linux/compiler.h>
index 9a956c221dd5d4e2ef1243bb7515c7025cbeb37e..5840fe63490f1341063a39b3c807319997c9f7f4 100644 (file)
@@ -11,6 +11,7 @@
  * Marius Groeger <mgroeger@sysgo.de>
  */
 #include <common.h>
+#include <init.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index e1494fa1292772945b059d94db53d93596800f46..8d6babfb83d6edd71785651325fbd2d44836b511 100644 (file)
@@ -5,8 +5,10 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <time.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 /* ------------------------------------------------------------------------- */
 
index 9df629d23ceeb55e552ea48c033572f07d149410..35f23c748d1b9c939519c8518db7d8eb5851fd87 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
+#include <asm/cache.h>
 #include <dm/uclass-internal.h>
 #include <cache.h>
 #include <asm/csr.h>
index e457f6acbf166d1dbe112a02bd073411d72c391b..5804aa8e737727dc1cada61a6b23f23106518058 100644 (file)
@@ -6,9 +6,11 @@
 #include <common.h>
 #include <cpu.h>
 #include <dm.h>
+#include <init.h>
 #include <log.h>
 #include <asm/encoding.h>
 #include <dm/uclass-internal.h>
+#include <linux/bitops.h>
 
 /*
  * The variables here must be stored in the data section since they are used
index 13a69ef0cc48f51a3bb19c4e68c3ead8f983da83..d78e1a3453af9c517a8eb6ae3966465ed1726e4a 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <irq_func.h>
+#include <asm/cache.h>
 
 /*
  * cleanup_before_linux() is called just before we call linux
index a0695da93643b8c07d8e4b20c3b2d2702f799900..edafad36b38ddb0f4f2a9ffbc66ad17260858f0f 100644 (file)
@@ -8,6 +8,9 @@
 #define RISCV_CSR_ENCODING_H
 
 #include <asm/csr.h>
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
 
 #if CONFIG_IS_ENABLED(RISCV_SMODE)
 #define MODE_PREFIX(__suffix)  s##__suffix
index 42b15a13a234748682c54bf1d7276c0c674dc4d6..778d011f7ceadd164c98e8a3334ae633de7ac49a 100644 (file)
@@ -8,7 +8,7 @@
 #include <command.h>
 
 unsigned long do_go_exec(ulong (*entry)(int, char * const []),
-                        int argc, char * const argv[])
+                        int argc, char *const argv[])
 {
        cleanup_before_linux();
 
index 0d06095da11aab3b6cb74a75b060fadd5d897d1e..c4137ded834bf7e6d5c3c2a350227e8f00a9bc8b 100644 (file)
@@ -7,10 +7,12 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
 #include <command.h>
 #include <dm.h>
 #include <fdt_support.h>
 #include <hang.h>
+#include <log.h>
 #include <dm/root.h>
 #include <image.h>
 #include <asm/byteorder.h>
@@ -105,7 +107,7 @@ static void boot_jump_linux(bootm_headers_t *images, int flag)
        }
 }
 
-int do_bootm_linux(int flag, int argc, char * const argv[],
+int do_bootm_linux(int flag, int argc, char *const argv[],
                   bootm_headers_t *images)
 {
        /* No need for those on RISC-V */
@@ -127,7 +129,7 @@ int do_bootm_linux(int flag, int argc, char * const argv[],
        return 0;
 }
 
-int do_bootm_vxworks(int flag, int argc, char * const argv[],
+int do_bootm_vxworks(int flag, int argc, char *const argv[],
                     bootm_headers_t *images)
 {
        return do_bootm_linux(flag, argc, argv, images);
index 20e0759f135b3e81458c44223074256027482316..6db48ad04a56f61deb01c91fb5d40fb83df16e10 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <fdt_support.h>
+#include <log.h>
 #include <mapmem.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index 7357d3b07d6cd02c920d43660e87408d91b29482..91b7f1624e9fc4a92bc865b9e8422e5cd78eb232 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <image.h>
 #include <mapmem.h>
 #include <errno.h>
 #include <linux/sizes.h>
index ce3c1cf872b24de5c8f61d18ab05bce857bb04b4..8779c619cc5abd1ab4f388bac9054b6786281ecc 100644 (file)
@@ -7,7 +7,7 @@
 #include <command.h>
 #include <hang.h>
 
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        printf("resetting ...\n");
 
index 4ca038b148ea27fec4598b9ad9d12a8708750af1..c47dcd46ceaed6e1b8dd27484ab761ce9ed0c557 100644 (file)
@@ -6,6 +6,8 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <hang.h>
+#include <init.h>
+#include <log.h>
 #include <spl.h>
 #include <asm/smp.h>
 
index 56ee3f5826030160d04068c5f71fe9183a8d5783..fb857e53d59265974bd749431daad2dd02e31289 100644 (file)
@@ -4,9 +4,12 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <os.h>
 #include <asm/io.h>
index d5f683bbaae1fe2f539b0bd0a5c19f606c5f3014..7ab8919eb9091e2ffdf1a1d8c2e0afd87065bf23 100644 (file)
@@ -6,6 +6,8 @@
 #include <common.h>
 #include <dm.h>
 #include <hang.h>
+#include <init.h>
+#include <log.h>
 #include <os.h>
 #include <spl.h>
 #include <asm/spl.h>
index b6ff5c3d647262f97337e91d07071cb8b825ad46..c6a2bbe4689960b15bfca3e68a4d20a5c31197c8 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <command.h>
 #include <errno.h>
+#include <init.h>
 #include <os.h>
 #include <cli.h>
 #include <sort.h>
index a347cec5284e99652ffe98c4bd99f015d05a0eb2..1f794123b36e56785007e12f27cc6e3354a14be7 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <os.h>
 #include <asm/malloc.h>
 #include <asm/state.h>
index 477fa00fad86886170a803b747a05fe6d929891b..b313bf57c63df233d5cb8531f70689b7309b128f 100644 (file)
@@ -9,6 +9,8 @@
 #ifndef __ETH_H
 #define __ETH_H
 
+#include <net.h>
+
 void sandbox_eth_disable_response(int index, bool disable);
 
 void sandbox_eth_skip_timeout(void);
index 2de03fb8e02e616f6a435d115e0ddbc068986a33..d1d460b84a4426cdccd0a4d6f1a0b4f42acb4f2f 100644 (file)
@@ -5,6 +5,8 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
+#include <image.h>
 #include <asm/io.h>
 
 #define        LINUX_ARM_ZIMAGE_MAGIC  0x016f2818
index f22e47c7f6da1f65dabd13c9aec4d18d3b0d7407..2038141947ab7b7adbb7ac0cc898b3f1b6521c4a 100644 (file)
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <command.h>
 #include <dm.h>
+#include <log.h>
 #include <asm/io.h>
 
 int pci_map_physmem(phys_addr_t paddr, unsigned long *lenp,
index 6ef44638abd0855644c024a6feecfad02279d683..85dab383e745cc129b343c3beb2b44ac363f0ae3 100644 (file)
@@ -13,6 +13,6 @@ LDFLAGS_STANDALONE += -EB
 endif
 
 PLATFORM_CPPFLAGS += -DCONFIG_SH -D__SH__
-PLATFORM_RELFLAGS += -fpic
+PLATFORM_RELFLAGS += -fpic -ffunction-sections -fdata-sections
 LDFLAGS_FINAL = --gc-sections
 PLATFORM_RELFLAGS += -ffixed-r13
index 2f49ce86816fb78ddb00be08ace8c5d6affc01b9..0f7dfdd3cf7909e187b02a62be090af70d21fb1e 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <command.h>
 #include <cpu_func.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/processor.h>
 #include <asm/system.h>
index a8d0590d51e31e1da20f1c959693d40aa412cc7d..f032d88159d73805892eb9b9ee41c123c1846b5f 100644 (file)
@@ -8,6 +8,7 @@
 #include <command.h>
 #include <irq_func.h>
 #include <cpu_func.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/processor.h>
 
@@ -28,7 +29,7 @@ int cleanup_before_linux (void)
        return 0;
 }
 
-int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        disable_interrupts();
        reset_cpu(0);
index 2896e45f0df8bf05949ef4c0af03fb2b13c58374..dc94f8378566e957db8e412887b06fe9c98641f4 100644 (file)
@@ -9,6 +9,8 @@
 
 #include <common.h>
 #include <command.h>
+#include <env.h>
+#include <image.h>
 #include <asm/byteorder.h>
 #include <asm/zimage.h>
 
@@ -49,7 +51,8 @@ static unsigned long sh_check_cmd_arg(char *cmdline, char *key, int base)
        return val;
 }
 
-int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *images)
+int do_bootm_linux(int flag, int argc, char *const argv[],
+                  bootm_headers_t *images)
 {
        /* Linux kernel load address */
        void (*kernel) (void) = (void (*)(void))images->ep;
index 51e1cc1181c06be7edda98f52801f2a9a0c6bf41..f951544728547d18bad8d204bd984c99e5779aa9 100644 (file)
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/processor.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 #if defined(CONFIG_CPU_SH4) || defined(CONFIG_ARCH_RMOBILE)
 #define TSTR   0x4
index d82c1d2feb371f825e98dc764481b8e836e06f0e..5484c543c6c8284a67716e3dcff824dd1ff16c1b 100644 (file)
@@ -8,9 +8,11 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <time.h>
 #include <asm/io.h>
 #include <asm/processor.h>
+#include <linux/delay.h>
 
 #define CMT_CMCSR_INIT 0x0001  /* PCLK/32 */
 #define CMT_CMCSR_CALIB 0x0000
index 602776a4742e08b738838fe4ff0e162b1627a131..c38f0933f894d56b47b9f69d69804380e1b4e755 100644 (file)
  */
 
 #include <common.h>
+#include <command.h>
+#include <env.h>
 #include <irq_func.h>
 #include <asm/io.h>
 #include <asm/zimage.h>
 
-int do_sh_zimageboot (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_sh_zimageboot(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        ulong (*zboot_entry)(int, char * const []) = NULL;
        char *s0, *s1;
index 55005455c09144ea572e23b417124185b88924b2..8aa2009bd6a054a5390550158a276950c4e28e19 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <dm.h>
 #include <irq.h>
+#include <log.h>
 #include <asm/io.h>
 
 /**
index e2509e391faef9e41afa1c583eee07539275766d..707ceb3e643cfabb2416de6b50b6098d9e6bfe75 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <dm.h>
 #include <ec_commands.h>
+#include <init.h>
 #include <log.h>
 #include <spi_flash.h>
 #include <spl.h>
index 5308af8ed4543476784f6ce9939c1669ed6e35e6..56ce59dc7029030519b785fa92933b5f2e5580e7 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <asm/arch/iomap.h>
 #include <asm/arch/fsp/fsp_configs.h>
 #include <asm/arch/fsp/fsp_m_upd.h>
index 7ef169b147f97970518d108a260b9c988c96ca44..3e303f8f32806a456da318bd37b8f424b7167151 100644 (file)
@@ -6,8 +6,11 @@
 
 #include <common.h>
 #include <binman.h>
+#include <bootstage.h>
 #include <dm.h>
+#include <init.h>
 #include <irq.h>
+#include <log.h>
 #include <malloc.h>
 #include <acpi/acpi_s3.h>
 #include <asm/intel_pinctrl.h>
@@ -20,6 +23,7 @@
 #include <asm/arch/systemagent.h>
 #include <asm/arch/fsp/fsp_configs.h>
 #include <asm/arch/fsp/fsp_s_upd.h>
+#include <linux/bitops.h>
 
 #define PCH_P2SB_E0            0xe0
 #define HIDE_BIT               BIT(0)
index 793853d5b5c7d5377faf7fff1ca73ebe2d8c62ad..cb46ec6c0bb89aea862b206ee6024259d26e4579 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <dt-structs.h>
+#include <log.h>
 #include <spl.h>
 #include <asm/intel_pinctrl.h>
 #include <asm/intel_regs.h>
index 45b2144fc68e91f8a87e9a211f3b9f50b2c7de56..b81a458f2ebf5ee7153ba0076441ef8baf7d255f 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <spl.h>
 #include <asm/lpc_common.h>
 #include <asm/pci.h>
index 4ea7c7447bc95425eeb7695dca06d518935776fd..192dec7109aa3ece3cf26e9a6b825d9611927db0 100644 (file)
 #include <common.h>
 #include <dt-structs.h>
 #include <dm.h>
+#include <log.h>
 #include <spl.h>
 #include <acpi/acpi_s3.h>
 #include <asm/io.h>
 #include <asm/pci.h>
+#include <linux/bitops.h>
 #include <power/acpi_pmc.h>
 
 #define GPIO_GPE_CFG           0x1050
index 1a131fb0b14f43386c5943ee183744f573ae6307..e76f2805d7f92f6896abbb6933989108aaa98f39 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <spl.h>
 #include <asm/cpu.h>
 #include <asm/cpu_common.h>
@@ -12,6 +13,7 @@
 #include <asm/io.h>
 #include <asm/pci.h>
 #include <asm/arch/systemagent.h>
+#include <linux/delay.h>
 
 /*
  * Punit Initialisation code. This all isn't documented, but
index d32f2a989876b3f38284869f5c79a7721bb381f8..5a53831dc6a47f2b15f5d846f00836bd92dc03e1 100644 (file)
@@ -5,7 +5,10 @@
 
 #include <common.h>
 #include <binman_sym.h>
+#include <bootstage.h>
 #include <dm.h>
+#include <image.h>
+#include <log.h>
 #include <malloc.h>
 #include <spi.h>
 #include <spl.h>
index 577231097967c2a946cae94670d836e8eb4d60d2..65f2006a0af32352ad269fb4939afee6605fd746 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <cpu.h>
 #include <dm.h>
+#include <log.h>
 #include <acpi/acpi_s3.h>
 #include <acpi/acpi_table.h>
 #include <asm/io.h>
index a9cfcedd81c88e83ab02406e469556890f7fd391..18e48ffa532dd3a73a14787a9254faafd58de13a 100644 (file)
@@ -9,6 +9,7 @@
 #include <cpu.h>
 #include <dm.h>
 #include <init.h>
+#include <log.h>
 #include <pci.h>
 #include <asm/cpu.h>
 #include <asm/cpu_x86.h>
index 1d1948c91a8d1808b9e1d9cfabbdcd5e3face682..21816ce5b8836495d6773a54e2bb58863c59cbb8 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <asm/fsp1/fsp_support.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index f2e48f401feec6d34e444f4183482fd6bdd2dacf..f73738ce5c01bbe07ec0cc599beea8374d2843fe 100644 (file)
@@ -11,6 +11,7 @@
 #include <asm/mrccache.h>
 #include <asm/post.h>
 #include <asm/arch/iomap.h>
+#include <linux/bitops.h>
 
 /* GPIO SUS */
 #define GPIO_SUS_PAD_BASE      (IO_BASE_ADDRESS + IO_BASE_OFFSET_GPSSUS)
index 7a83b0600580be66b6a6f2f2ce862bfbf808cd1f..3345049993d6f301465ccb9bc360909c7068db03 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/mrccache.h>
 #include <asm/post.h>
 
index 60101d742d15e34a29d02a76d9a9b1af6360b63d..9e710a940cad871fb3af5a9e24195c3d07a687d6 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <asm/fsp1/fsp_support.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index 2ac8cea7c3367515588ae767b0ded5c66e8a763f..41f7d5d4d1a95967eb76e0d7e4652c8c8b99c9a7 100644 (file)
@@ -11,6 +11,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <pci.h>
 #include <asm/io.h>
 #include <asm/cpu.h>
index 55a7439f1c103b0dacda17b27437c65c5ffd62cf..b77301118cdf2b1fe5d42be62986bf3aef8e4d4f 100644 (file)
@@ -8,6 +8,8 @@
 #include <common.h>
 #include <dm.h>
 #include <cpu.h>
+#include <init.h>
+#include <log.h>
 #include <asm/cpu.h>
 #include <asm/cpu_x86.h>
 #include <asm/cpu_common.h>
index 2aa6f245e7d3a55c02cbbf23f89d27d281682513..6567d506533fb7accc5ff20890af218a59473e0f 100644 (file)
@@ -9,6 +9,8 @@
 #include <cpu_func.h>
 #include <debug_uart.h>
 #include <handoff.h>
+#include <init.h>
+#include <log.h>
 #include <asm/mtrr.h>
 
 int misc_init_r(void)
index 895edeb4bc423edd8cf17759240365d8d4c7938c..64a1cd414fc49fcfd616f7359b902a50131ca444 100644 (file)
@@ -8,6 +8,8 @@
 #include <common.h>
 #include <dm.h>
 #include <cpu.h>
+#include <init.h>
+#include <log.h>
 #include <asm/cpu.h>
 #include <asm/cpu_x86.h>
 #include <asm/cpu_common.h>
@@ -18,6 +20,7 @@
 #include <asm/arch/cpu.h>
 #include <asm/arch/pch.h>
 #include <asm/arch/rcb.h>
+#include <linux/delay.h>
 
 struct cpu_broadwell_priv {
        bool ht_disabled;
index 8a3ca6cde7e54d8fd22ecca1be0ab96dba965b5c..cb5595c930e143dc9c6954a513df9b82b5ebd67f 100644 (file)
@@ -10,6 +10,7 @@
 #include <asm/intel_regs.h>
 #include <asm/io.h>
 #include <asm/arch/pch.h>
+#include <linux/delay.h>
 
 #define IOBP_RETRY 1000
 
index 9dc9b63db614e27bd30f5d20b3c05501dbaf431e..5669a028cf34560f62b1fc4b727f299e870ac97b 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <pch.h>
 #include <asm/intel_regs.h>
 #include <asm/io.h>
index adc656c07ad565d04680e6f014fa4f03ed4e1eee..ae16ce2649922137070943e48cbc0d43912ffa39 100644 (file)
@@ -7,7 +7,9 @@
 
 #include <common.h>
 #include <errno.h>
+#include <log.h>
 #include <asm/arch/me.h>
+#include <linux/delay.h>
 
 static inline void me_read_dword_ptr(struct udevice *dev, void *ptr, int offset)
 {
index a48945adf11820e2e6da9210ecdcb6474df8172e..9bcf211af99c2e764a925b7550a2bf6f2b4b9e23 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <pch.h>
 #include <asm/cpu.h>
 #include <asm/gpio.h>
@@ -23,6 +24,7 @@
 #include <asm/arch/serialio.h>
 #include <asm/arch/spi.h>
 #include <dm/uclass-internal.h>
+#include <linux/delay.h>
 
 #define BIOS_CTRL      0xdc
 
index aa83abbf855edee56363fc75f97446cf06c94892..0ead13af62aaa950f86d67dd19a036eec5221c38 100644 (file)
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <pch.h>
 #include <pci.h>
 #include <asm/cpu.h>
index 09fda487d04980a5178c9d0efc5ce96bb9e0ec3e..99d6f72cf6e4b13a5b66dc01a8ec7126d0e0f31b 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <pci.h>
 #include <asm/io.h>
 #include <asm/intel_regs.h>
index f016489185a5608da285a28ee94ee894b804f9a8..6c04dde992d81a33d94d6f44737a164b545d623c 100644 (file)
@@ -8,6 +8,8 @@
 
 #include <common.h>
 #include <errno.h>
+#include <init.h>
+#include <log.h>
 #include <asm/arch/pei_data.h>
 
 #define RMODULE_MAGIC          0xf8fe
index d89e0a1c9b0aa830421c8804fd0770fc0440e04c..641da515c8f3ed63436fd59249da1d5adfee8907 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <asm/intel_regs.h>
@@ -14,6 +15,7 @@
 #include <asm/pch_common.h>
 #include <asm/pch_common.h>
 #include <asm/arch/pch.h>
+#include <linux/delay.h>
 
 struct sata_platdata {
        int port_map;
index 15bfc5811cb4dc397ec129ff3745982c3ce7df7a..72f59a0a5734402b68ada7c78ef94baf0577571b 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <dm.h>
 #include <init.h>
+#include <log.h>
 #include <pci.h>
 #include <syscon.h>
 #include <asm/cpu.h>
index 624caf67a6aaae6f418e39cb1d4c98691be492a8..d44db1347bdf001409f83789d363695d37474bb3 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <fdtdec.h>
+#include <init.h>
 #include <usb.h>
 #include <asm/io.h>
 #include <asm/msr.h>
index e8ccaf2212963c8f48c890db1514f37551f7c6b0..016259780950ea0cffe7531b459171c7750675e8 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
 #include <asm/arch/timestamp.h>
 #include <asm/arch/sysinfo.h>
 #include <linux/compiler.h>
index 2e5d0ddd9f63d212eec35a85effcc68eb305d92a..a814e7d7a649896c0c13e945dc9392bd54e543f5 100644 (file)
  */
 
 #include <common.h>
+#include <bootstage.h>
 #include <command.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
 #include <init.h>
+#include <log.h>
 #include <malloc.h>
 #include <syscon.h>
 #include <acpi/acpi_s3.h>
index 13077411dc06d14b14d7c10b94934c4fd9c1822e..10677ecbc2c6866a3fe3a736cb3eb828e0551296 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <fdtdec.h>
+#include <init.h>
 #include <netdev.h>
 
 int arch_cpu_init(void)
index 66df1287871796fcd84ff3c36e939d2ab58d02fa..71619f6f01b52b11ee2a87c617b0097cf689d1ea 100644 (file)
@@ -9,6 +9,7 @@
 #include <efi.h>
 #include <errno.h>
 #include <init.h>
+#include <log.h>
 #include <usb.h>
 #include <asm/bootparam.h>
 #include <asm/e820.h>
index e67a116ac1acf3111111b84216edf2baaa5b58fc..c0c4bc95fd9a0aaa7514cd555a9004bd5b62da9c 100644 (file)
@@ -23,6 +23,7 @@
 #include <asm/io.h>
 #include <asm/lapic.h>
 #include <asm/processor-flags.h>
+#include <asm/ptrace.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 4d093a539129ed35cccf69f9111f66f515565593..509730aea96534a08d3aedc2ac3971e12bd578b0 100644 (file)
@@ -11,6 +11,7 @@
 #include <cpu.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <asm/cpu.h>
 #include <asm/cpu_common.h>
 #include <asm/intel_regs.h>
index b7bb524162f6f0e48cf2a38005cdd8c5d56a41c4..e4157c5734c5d3242e09d3518ffb6ea5d0ffbfe8 100644 (file)
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <handoff.h>
+#include <init.h>
 #include <asm/cpu_common.h>
 #include <asm/intel_regs.h>
 #include <asm/lapic.h>
index e4f785ce895dcb46f741708a99314478a09cd759..963afa8f5beba1c5eee5b7799819f1634da81d36 100644 (file)
@@ -13,6 +13,7 @@
 #include <dm.h>
 #include <dt-structs.h>
 #include <irq.h>
+#include <log.h>
 #include <malloc.h>
 #include <p2sb.h>
 #include <spl.h>
index 2a538cf12e32ee2fa6c017ab578bd0326fa3ef8a..3420f03ccaa241f28feb880a2d4e60bfc1770a4b 100644 (file)
@@ -12,6 +12,7 @@
 #include <asm/intel_regs.h>
 #include <asm/io.h>
 #include <asm/lpc_common.h>
+#include <linux/bitops.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index fc9efbf3a9ce499b3d058a7f43bba5537a97cb44..abc5f6fbc77bc307848f1b66225ea772fd1b9aba 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/arch/me.h>
 
 /* HFS1[3:0] Current Working State Values */
index c7a539d281942d63ec2b19e3b38d15450c46ead3..0355d3c1da69cfce5f6c2ceb199f5591c4c8c8de 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <linux/libfdt.h>
 #include <asm/cpu.h>
 #include <asm/microcode.h>
index 755670a847e14f9bc52715c37d31b3f0eaf6797b..73bfd123321fa2c6b4667349b0537b9b66f38dbe 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <init.h>
+#include <log.h>
 #include <syscon.h>
 #include <asm/cpu.h>
 #include <asm/gpio.h>
index 6f3c4416186cf169a7e3640feb909c61cb00c294..ec35d04ae552e1cdabae9f0c21dd024287a7b7fb 100644 (file)
 #include <common.h>
 #include <dm.h>
 #include <dt-structs.h>
+#include <log.h>
 #include <p2sb.h>
 #include <spl.h>
 #include <asm/pci.h>
+#include <linux/bitops.h>
 
 struct p2sb_platdata {
 #if CONFIG_IS_ENABLED(OF_PLATDATA)
index 0f217c14973e09a9c029f397be51ac190bfaebf2..a3612817c45bb2558fc95f88b3eac7803b119691 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/cpu.h>
 #include <asm/pci.h>
 #include <asm/report_platform.h>
index 01ade76a5868bc4dce7752c9a68a5a9de63a7702..4f99de6ece2bc50c642d9f7afc291ee29d930f2f 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/ioapic.h>
 #include <asm/lapic.h>
index bafa0310822d5b133f81dbad160fac9b56081b57..836a0e8b86e5e8b17bc9b0ef71db2d99ab2b6ded 100644 (file)
@@ -8,6 +8,7 @@
 #include <errno.h>
 #include <fdtdec.h>
 #include <irq.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/io.h>
 #include <asm/irq.h>
index 1cb6cecda9ea0fb1d066b0fe9a2df5421d853bdb..5448f064fcbf0761da5ba445b396c6d7baaf68bb 100644 (file)
@@ -6,6 +6,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <malloc.h>
 #include <pch.h>
 #include <asm/cpu.h>
@@ -17,6 +18,8 @@
 #include <asm/arch/model_206ax.h>
 #include <asm/arch/pch.h>
 #include <asm/arch/sandybridge.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 8f30cdbe2475420630a6609f33bde8dc8660cc0b..cb6eded9c98d81e12d552abb8a6e3e55edacab85 100644 (file)
@@ -15,6 +15,8 @@
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <init.h>
+#include <log.h>
 #include <pch.h>
 #include <asm/cpu.h>
 #include <asm/cpu_common.h>
index 219d5be39957a3d11802264a44f34c30f3ddb049..bee1671baf8b673b2a08b9210695142433fc6599 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <sysreset.h>
 #include <asm/pci.h>
 #include <asm/cpu.h>
@@ -15,6 +16,7 @@
 #include <asm/arch/me.h>
 #include <asm/arch/pch.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 static const char *const me_ack_values[] = {
        [ME_HFS_ACK_NO_DID]     = "No DID Ack received",
index 0e6453c84778f9227219d6bfda62dc4f36d56f1b..41d7d2a2b420bb3aa8192a24e422c1e74958e08b 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <asm/fsp1/fsp_support.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index 8d10fd6c549cc623145c07efbcc1b35df4d945ae..eb3f362e4e99a25b84cb57ae7cab804ed6f9da1d 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/post.h>
 #include <asm/processor.h>
 
index d9ddcdc840b8b305fc8f9bd2e35d144ae08e5157..85fd2a965abdde8196b98dd6ec86f1628c47e4dc 100644 (file)
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <rtc.h>
 #include <pci.h>
 #include <asm/intel_regs.h>
index 56ab6bf4acf5c7db82c94cb03d69aacd4aabd509..5954a24873d00c83a4327086480da6c3f962f339 100644 (file)
@@ -10,6 +10,7 @@
 #include <cpu.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/cpu.h>
 #include <asm/cpu_common.h>
index 0f427afcb826b8be6e04c10929899df7ccb1b98d..b713fcb1cfe7d1a6f0a738b9ebc57b6645cd1727 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <asm/msr.h>
 #include <asm/cpu.h>
 #include <asm/intel_regs.h>
@@ -17,6 +18,7 @@
 #include <asm/arch/pch.h>
 #include <asm/arch/model_206ax.h>
 #include <asm/arch/sandybridge.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index fc6c4274300396d4582b3f564e6f5080dd57f0de..025b20be31bd1137854c2565e3a25650b15081e9 100644 (file)
@@ -8,6 +8,7 @@
 #include <ahci.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/pch_common.h>
 #include <asm/pci.h>
index cf34f94a91d5472db494b8c2907f34768bca1a90..99bc48021e6900fdb439fc2b1e8e04de99dfa93e 100644 (file)
@@ -13,6 +13,7 @@
 #include <errno.h>
 #include <fdtdec.h>
 #include <init.h>
+#include <log.h>
 #include <malloc.h>
 #include <net.h>
 #include <rtc.h>
index c55213ca2d2ef7371b16df10d67a15f396773084..54e6acf2621137c5c37f3ff4ac4854f38f301221 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 44ed4467849380b96e8fe746e66b89db4f4eacf8..c0691454f1293aecc49f7d36f69548012efc5f67 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/lapic.h>
 #include <asm/msr.h>
index 7b09f90cd518e449cd59635bdc996429cf1b0700..7fde4ff7e16283e181af42197c6ba01b832edb45 100644 (file)
@@ -9,6 +9,7 @@
 #include <cpu.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <qfw.h>
 #include <asm/atomic.h>
@@ -25,6 +26,7 @@
 #include <dm/uclass-internal.h>
 #include <dm/lists.h>
 #include <dm/root.h>
+#include <linux/delay.h>
 #include <linux/linkage.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index a43cb7fc15429e9cdc11f48fb886f5e5f7f55728..7ec0733337d80aafa127eba467aca7cfeaf5c6f1 100644 (file)
@@ -18,6 +18,8 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <log.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/msr.h>
 #include <asm/mtrr.h>
index e1aae158ce577318a559a5332a8b4fe9de0ad0d3..d4f9290ca73be17a44f84da70dea4a3ffc5bbda1 100644 (file)
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <pci.h>
 #include <asm/io.h>
index 716351ad7ff6afd46cf7df1426acadcc571e5402..044a429c13fb529c395de0929fc25e97529e2df6 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
 #include <pci.h>
 #include <qfw.h>
 #include <asm/irq.h>
index 2bf90dcfc62e140a7d90a1ce838ff50ed68f74d9..72937139ed73f2362e18fcc25ce979f03cc8fc7f 100644 (file)
@@ -8,7 +8,9 @@
 #include <errno.h>
 #include <fdtdec.h>
 #include <init.h>
+#include <log.h>
 #include <malloc.h>
+#include <asm/cache.h>
 #include <asm/mrccache.h>
 #include <asm/mtrr.h>
 #include <asm/post.h>
index 4a760a9f5903da48d32aa8f69b1d7dbdb9b498da..e6e69c49d094e5a4ea162651908a54114d885522 100644 (file)
@@ -10,6 +10,8 @@
 #ifndef _MRC_UTIL_H_
 #define _MRC_UTIL_H_
 
+#include <log.h>
+
 /* Turn on this macro to enable MRC debugging output */
 #undef  MRC_DEBUG
 
index d6611eea5dc9e08b03cf405fef69efcd1401b50e..ddad02e375a237f44e422f5d87cb56d495777c2e 100644 (file)
@@ -5,7 +5,9 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
 #include <mmc.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/ioapic.h>
 #include <asm/irq.h>
@@ -16,6 +18,7 @@
 #include <asm/arch/device.h>
 #include <asm/arch/msg_port.h>
 #include <asm/arch/quark.h>
+#include <linux/delay.h>
 
 static void quark_setup_mtrr(void)
 {
index 66737e655bbe26df3e4ce69a3fbcf24fd911103c..782ed863fe7c7038fc70bf9377f2ee6fe27abd68 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <init.h>
 #include <dm/device-internal.h>
 #include <pci.h>
 #include <asm/io.h>
index bab54b18df67d3c62a5ee900b4857dc021c3f07b..9813f7977b531839aaba3d5cb1d163f7ee85cbe2 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <ns16550.h>
 #include <serial.h>
 #include <asm/arch/slimbootloader.h>
index 21dcfb2142e4aaf2114cd9768812353b1825ab28..f61fe814e94aa474c513b17ae843a6544685879a 100644 (file)
@@ -5,6 +5,8 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
+#include <log.h>
 #include <asm/arch/slimbootloader.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index fdd653026b8d587dc304ca37b6bf698a01b63cff..5b0e106011ab5a3ea2ca76191af8c0e4c5257ada 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/pinctrl.h>
 #include <dm/read.h>
 #include <regmap.h>
index 8c7e1c10c2bcea146a78a5b8f92e62162d7a747b..df3b9e4ec975ffdce9c8781c7b0b8be277e5527b 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <log.h>
 #include <asm/e820.h>
 #include <asm/global_data.h>
 #include <asm/sfi.h>
index 43bee1fb704ddcc4976d6c298a13c89468b98a59..1e2f6cc8b700fdb9dd1396535f1999615c46041a 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
 #include <asm/u-boot-x86.h>
 
 /*
index be468d2b2cac5f5b28ce83effb6eacce0e0a46a1..f8d85d5a339b2db5f1b032335736e060b9ed39bb 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/cpu.h>
 #include <asm/msr.h>
 #include <asm/processor.h>
index 4b64339f25954c87da8dae46583761bf62d8fb3a..1b4d3971b04311df036b4cfbb4fc7480aa859a60 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <debug_uart.h>
+#include <init.h>
 
 /*
  * Global declaration of gd.
index 5d2adad3197ef6f20b0a164b7eb9aae215888072..977b7eccd8849f147785ab39963bf262b4e32a4d 100644 (file)
@@ -7,6 +7,7 @@
 #ifndef _ASM_ARCH_LPC_H
 #define _ASM_ARCH_LPC_H
 
+#include <linux/bitops.h>
 #define LPC_SERIRQ_CTL                 0x64
 #define  LPC_SCNT_EN                   BIT(7)
 #define  LPC_SCNT_MODE                 BIT(6)
index 206d8903fa55cde6999eea31af26db2955693a92..9e7bd62751a727eed5c2ccc4f929502a57082ced 100644 (file)
@@ -8,6 +8,7 @@
 #define _ASM_ARCH_SYSTEMAGENT_H
 
 /* Device 0:0.0 PCI configuration space */
+#include <linux/bitops.h>
 #define MCHBAR         0x48
 
 /* RAPL Package Power Limit register under MCHBAR */
index a3bde3d8e75a929abec34ccd0834396155a39e01..f2260ae90e88ea0c890e1f1872a813ac225859fb 100644 (file)
@@ -7,6 +7,8 @@
 #ifndef __FSP_VPD_H__
 #define __FSP_VPD_H__
 
+#include <stddef.h>
+
 struct __packed memory_upd {
        u64 signature;                          /* Offset 0x0020 */
        u8 revision;                            /* Offset 0x0028 */
index eb825ce1c06796f15e2efecfb953ef25026eea16..a5a1f73bf4835d91d637afd9c7e7b89edd6e5b00 100644 (file)
@@ -10,6 +10,7 @@
 #ifndef __ASM_ARCH_BROADWELL_ADSP_H
 #define __ASM_ARCH_BROADWELL_ADSP_H
 
+#include <linux/bitops.h>
 #define ADSP_PCI_IRQ                   23
 #define ADSP_ACPI_IRQ                  3
 #define  ADSP_ACPI_IRQEN               BIT(3)
index 5e98eaf53fd6239cc8053d8311f583a50bdf84f7..ff09278b9626682258959055e9c89714f1d9884d 100644 (file)
@@ -9,6 +9,7 @@
 #define __ARCH_BROADWELL_SERIALIO_H_
 
 /* Serial IO IOBP Registers */
+#include <linux/bitops.h>
 #define SIO_IOBP_PORTCTRL0     0xcb000000      /* SDIO D23:F0 */
 #define  SIO_IOBP_PORTCTRL0_ACPI_IRQ_EN                BIT(5)
 #define  SIO_IOBP_PORTCTRL0_PCI_CONF_DIS       BIT(4)
index 806f7873819ed5d1593dfc0fa65a2392ba079467..4ca0f79bffbf751ea9c7dfef40fc1988d9138b04 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef _ASM_X86_ATOMIC_H
 #define _ASM_X86_ATOMIC_H
 
+#include <linux/bitops.h>
 #include <linux/compiler.h>
 #include <linux/types.h>
 #include <asm/processor.h>
index 6894298526efc58b6e1d91f806769cca52ccd906..47c1da80d770a2668592cb28d93e46f0f942a93e 100644 (file)
@@ -7,6 +7,7 @@
 #define ASM_FAST_SPI_H
 
 /* Register offsets from the MMIO region base (PCI_BASE_ADDRESS_0) */
+#include <linux/bitops.h>
 struct fast_spi_regs {
        u32 bfp;
        u32 hsfsts_ctl;
index e9ac86b2da69dbe66798de5c4592d9ffbd38a1f3..4941e2d74f09343cfa6106b79a993ed83c2e1af0 100644 (file)
@@ -6,6 +6,8 @@
 #ifndef __ASM_FSP_API_H
 #define __ASM_FSP_API_H
 
+#include <linux/linkage.h>
+
 enum fsp_phase {
        /* Notification code for post PCI enuermation */
        INIT_PHASE_PCI  = 0x20,
index 511dfb78b81dae33a009938529df9b3ce5f46f7d..7492c87c34ab011febfaa4133178a1fd3f84597f 100644 (file)
@@ -7,6 +7,8 @@
 #ifndef __FSP_FV___
 #define __FSP_FV___
 
+#include <efi.h>
+
 /* Value of EFI_FV_FILE_ATTRIBUTES */
 #define EFI_FV_FILE_ATTR_ALIGNMENT     0x0000001F
 #define EFI_FV_FILE_ATTR_FIXED         0x00000100
index 72fd9246cbd1da85b372db9a0d016082c862e819..e2524b089d4c67e4302f6dd60af9a1399e6b4c42 100644 (file)
@@ -10,6 +10,7 @@
 #define __ASM_INTEL_PINCTRL_H
 
 #include <dm/pinctrl.h>
+#include <linux/bitops.h>
 
 /**
  * struct pad_config - config for a pad
index fb59e2f67d605e62dde99f80d050eadfaa058128..9dddf88b5a1cf03b5951be413416a8dba12f3c6c 100644 (file)
@@ -9,6 +9,7 @@
 #define _X86_MP_H_
 
 #include <asm/atomic.h>
+#include <asm/cache.h>
 
 typedef int (*mp_callback_t)(struct udevice *cpu, void *arg);
 
index 246c14f815b7fb3f193fd984436aeba8f5006814..94e6b18e21cd9c8f65b6a1555566cc01a79d10de 100644 (file)
@@ -9,6 +9,10 @@
 #ifndef _ASM_X86_MSR_INDEX_H
 #define _ASM_X86_MSR_INDEX_H
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 /* CPU model specific register (MSR) numbers */
 
 /* x86-64 specific MSRs */
index 672617256e9bdea94ed1a5be0aed755f6fdb77f9..212a699c1b2cca89d4712a6d9d192aacde811b9f 100644 (file)
@@ -57,7 +57,7 @@
 
 #define MTRR_FIX_TYPE(t)       ((t << 24) | (t << 16) | (t << 8) | t)
 
-#if !defined(__ASSEMBLER__)
+#if !defined(__ASSEMBLY__)
 
 /**
  * Information about the previous MTRR state, set up by mtrr_open()
index 1ab6c2874a0357591bcf603c74fe32c03ea6bff2..24834225287edee878545612c9048b033b2de7a9 100644 (file)
@@ -10,7 +10,7 @@
 #define AP_DEFAULT_BASE 0x30000
 #define AP_DEFAULT_SIZE 0x10000
 
-#ifndef __ASSEMBLER__
+#ifndef __ASSEMBLY__
 
 /**
  * struct sipi_params_16bit - 16-bit SIPI entry-point parameters
@@ -81,6 +81,6 @@ void ap_start(void);
 extern char sipi_params_16bit[];
 extern char sipi_params[];
 
-#endif /* __ASSEMBLER__ */
+#endif /* __ASSEMBLY__ */
 
 #endif
index 7431458dcf230ab7806e10ddfc0ba71a2e4382ae..155fffabf080639faa75c4704a3cc88bae31f52c 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <acpi/acpi_table.h>
 #include <asm/io.h>
 #include <asm/tables.h>
index 13f1409de815dd7a220ea45a34e1e1f447a16a89..6985ef4ba530ee42f09338d974a3280749e565fb 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <cpu.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/uclass-internal.h>
 #include <mapmem.h>
 #include <serial.h>
index 30c0997fd01aed705e817cc909f55abba89236e2..3ab432e2623c437488a8516ba06f546e134e903e 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <bios_emul.h>
 #include <irq_func.h>
+#include <log.h>
 #include <vbe.h>
 #include <linux/linkage.h>
 #include <asm/cache.h>
index fdd966b2c846f0e05aa5cd021464873c03e13180..d6b4da7e25022203b8339fa49a99f662fd6423e4 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/pci.h>
 #include "bios_emul.h"
 
index 07d8f1f279ce28ed8161f5339489731314959784..acc15cf2e0c80188f6f9a758c27c83e593aea746 100644 (file)
@@ -8,8 +8,10 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
 #include <command.h>
 #include <hang.h>
+#include <log.h>
 #include <dm/device.h>
 #include <dm/root.h>
 #include <errno.h>
@@ -205,8 +207,8 @@ static int boot_jump_linux(bootm_headers_t *images)
                                 images->os.arch == IH_ARCH_X86_64);
 }
 
-int do_bootm_linux(int flag, int argc, char * const argv[],
-               bootm_headers_t *images)
+int do_bootm_linux(int flag, int argc, char *const argv[],
+                  bootm_headers_t *images)
 {
        /* No need for those on x86 */
        if (flag & BOOTM_STATE_OS_BD_T || flag & BOOTM_STATE_OS_CMDLINE)
index 9fce021c79666c3282d53a16bd5e419c11672840..baaf3d13ad4bf473749ae28e7f4d051c0e09a1bc 100644 (file)
@@ -22,7 +22,7 @@
 DECLARE_GLOBAL_DATA_PTR;
 
 unsigned long do_go_exec(ulong (*entry)(int, char * const []),
-                        int argc, char * const argv[])
+                        int argc, char *const argv[])
 {
        unsigned long ret = 0;
        char **argv_tmp;
index c996fc588df702d71dd5e2a31ef1686cda0a9c8b..331c1b7e5a98b2ee8585bd8aae7a8ab73f236c91 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <malloc.h>
+#include <net.h>
 #include <vbe.h>
 #include <acpi/acpi_s3.h>
 #include <asm/coreboot_tables.h>
index 267527eb3448b28eeaba549de4c719150ab4a865..cf32b3e512f238ef30fbadafe5fb2ab18c7bcdfb 100644 (file)
@@ -7,6 +7,8 @@
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
+#include <init.h>
+#include <log.h>
 #include <rtc.h>
 #include <acpi/acpi_s3.h>
 #include <asm/cmos_layout.h>
index 15e82de2fe184d79684fbc329f1a3b1216527739..ad5a0f79adf76bc90969862572dd059dfcb6c49a 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <handoff.h>
 #include <init.h>
+#include <log.h>
 #include <asm/fsp/fsp_support.h>
 #include <asm/e820.h>
 #include <asm/mrccache.h>
index 98b762209f9f98d75e09615b67de5122b42c508e..70224c1a48f70c49586579f1f599d4eabd923af2 100644 (file)
@@ -5,6 +5,8 @@
 
 #include <common.h>
 #include <dm.h>
+#include <init.h>
+#include <log.h>
 #include <vbe.h>
 #include <video.h>
 #include <asm/fsp/fsp_support.h>
index ee228117d13ce348862d5cfdb15bfa8ddb7fb870..fd4d98ef627468e2f16fabefc9c88de4d822774a 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/fsp/fsp_support.h>
 #include <asm/post.h>
 
index 0a726807c2b31eb7d21e4dac34864a9ed72b95e0..43d32b7abefc3e261fe2c6781769ca4063327f2a 100644 (file)
@@ -6,6 +6,8 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <init.h>
+#include <log.h>
 #include <malloc.h>
 #include <rtc.h>
 #include <acpi/acpi_s3.h>
index 5ef89744b944469d89e9527ca1cea9d3adbce200..e3f9e30f6a63b0134dd78710bd83e5c4fe1cb4ef 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/fsp/fsp_support.h>
 
 int dram_init(void)
index c7a2c73846b4bea4036b68a3bb323b7fc1462d7c..d84c632f140742f8cc3ab4b6563d5ba3fb4adc46 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/fsp1/fsp_support.h>
 #include <asm/post.h>
 
index 3869c53c5f9484f19ab9e6b6a25ab297bca103d3..1c82b818313431c3f3b91e3b5768e183d601aad7 100644 (file)
@@ -6,6 +6,8 @@
 
 #include <common.h>
 #include <handoff.h>
+#include <init.h>
+#include <log.h>
 #include <spl.h>
 #include <acpi/acpi_s3.h>
 #include <asm/arch/cpu.h>
index c7dc2ea257835f561a4beea177e2d1974029be96..8c577902b27dddee0ebef81ebeeabea684e22913 100644 (file)
@@ -6,9 +6,11 @@
 #include <common.h>
 #include <binman.h>
 #include <binman_sym.h>
+#include <bootstage.h>
 #include <cbfs.h>
 #include <dm.h>
 #include <init.h>
+#include <log.h>
 #include <spi.h>
 #include <spl.h>
 #include <spi_flash.h>
index bf30c47989994035c4d1a934ac70501c4c73ab61..1a758147b08623b5ed2109c978fd588437a72080 100644 (file)
@@ -8,6 +8,8 @@
 
 #include <common.h>
 #include <binman.h>
+#include <bootstage.h>
+#include <log.h>
 #include <asm/mrccache.h>
 #include <asm/fsp/fsp_infoheader.h>
 #include <asm/fsp2/fsp_api.h>
@@ -79,10 +81,10 @@ int fsp_memory_init(bool s3wake, bool use_spi_flash)
                return log_msg_ret("Could not setup config", ret);
 
        debug("SDRAM init...");
-       bootstage_start(BOOTSTATE_ID_ACCUM_FSP_M, "fsp-m");
+       bootstage_start(BOOTSTAGE_ID_ACCUM_FSP_M, "fsp-m");
        func = (fsp_memory_init_func)(hdr->img_base + hdr->fsp_mem_init);
        ret = func(&upd, &hob);
-       bootstage_accum(BOOTSTATE_ID_ACCUM_FSP_M);
+       bootstage_accum(BOOTSTAGE_ID_ACCUM_FSP_M);
        if (ret)
                return log_msg_ret("SDRAM init fail\n", ret);
 
index d7ce43e1eb2fabd2fb46baf966136af4f8b9afeb..45c0c7d90b9a53f7e012944f7623e19542b41425 100644 (file)
@@ -10,7 +10,9 @@
 
 #include <common.h>
 #include <binman.h>
+#include <bootstage.h>
 #include <dm.h>
+#include <log.h>
 #include <asm/arch/fsp/fsp_configs.h>
 #include <asm/arch/fsp/fsp_s_upd.h>
 #include <asm/fsp/fsp_infoheader.h>
@@ -42,10 +44,10 @@ int fsp_silicon_init(bool s3wake, bool use_spi_flash)
        if (ret)
                return log_msg_ret("Could not setup config", ret);
        log_debug("Silicon init...");
-       bootstage_start(BOOTSTATE_ID_ACCUM_FSP_S, "fsp-s");
+       bootstage_start(BOOTSTAGE_ID_ACCUM_FSP_S, "fsp-s");
        func = (fsp_silicon_init_func)(hdr->img_base + hdr->fsp_silicon_init);
        ret = func(&upd);
-       bootstage_accum(BOOTSTATE_ID_ACCUM_FSP_S);
+       bootstage_accum(BOOTSTAGE_ID_ACCUM_FSP_S);
        if (ret)
                return log_msg_ret("Silicon init fail\n", ret);
        log_debug("done\n");
index 0a04b443f7e4389d26c59ee69e0caeeca14978a6..3f2ca840dc9506983b31bf78285a845eabfdaae9 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <spi_flash.h>
 #include <asm/fsp/fsp_support.h>
 #include <asm/fsp2/fsp_internal.h>
index 358cd1e70dd488b0fb4d4b16fd47143441b1478a..a0e3c09257386c93bd6864c7ad51153a04063d8e 100644 (file)
@@ -14,6 +14,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/i8259.h>
 #include <asm/ibmpc.h>
index b23b8fd40216a97eaa23baf863cc4503301237e2..a81e4291105ec583279bb5908e97395ca685fbf0 100644 (file)
@@ -30,6 +30,7 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <irq_func.h>
 #include <asm/interrupt.h>
 
@@ -127,7 +128,7 @@ void do_irq(int hw_irq)
 #endif
 
 #if defined(CONFIG_CMD_IRQ)
-int do_irqinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_irqinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
 #if !CONFIG_IS_ENABLED(X86_64)
        int irq;
index b5ad1135a6ac5de29cb483eee83f9efc17cc613c..1c49c41b310e79fef7da23d884d18b0dd27ef23b 100644 (file)
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <asm/cpu.h>
 #include <asm/irq.h>
 #include <asm/ioapic.h>
index d1c44f290c467e21ca1adb6f5469ba799f67668f..21c71e036edc90864ed44322437e27d0923c3d8c 100644 (file)
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <malloc.h>
 #include <net.h>
 #include <spi.h>
index c3c709ec072aa2fe2e9963040fb3dd8fefd948be..4578046169a706166d04779c501d8d1f44983ed6 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <physmem.h>
 #include <asm/cpu.h>
 #include <linux/compiler.h>
index 5868d5b60a0c8249f984fc5d485db563603f17c7..482599478b80038a22b6dbbc9845fdbfd4408a98 100644 (file)
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <pch.h>
 #include <pci.h>
 #include <asm/cpu.h>
index 17bd2fcb9b4e1bef8fab197b46c8c90487f7b53a..eb6a7d96de1069e64fa514d1032fce97ac5e09ab 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <pci.h>
 #include <asm/pci.h>
 #include <asm/pirq_routing.h>
index 08fbe990398de7d239d2989c5ecc217417d40f25..3cd7b1f536e548e662e441d77a90d3d9bcc3703e 100644 (file)
@@ -8,6 +8,7 @@
 #include <syscon.h>
 #include <asm/cpu.h>
 #include <asm/pmu.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/io.h>
 
index 4d09e4de4201f1d12ae6235e66cbb03cfcc8699a..ecbd0927e07cf6d55f8b30449cfb910230f9e0bd 100644 (file)
@@ -15,6 +15,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <relocate.h>
 #include <asm/u-boot-x86.h>
 #include <asm/sections.h>
index a6f8297e72ed9bbee9b7da6eae073e97da404f9a..d29d701631d27095f437e49d15ec1c8b88514dfa 100644 (file)
@@ -15,6 +15,8 @@
 #include <syscon.h>
 #include <asm/cpu.h>
 #include <asm/scu.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/kernel.h>
index 212b4d596d20d86c5d4dfa3cb05800ada3d68a34..b6f9a70ba7588d7df8f8366a8250ea1c3f376638 100644 (file)
@@ -8,7 +8,10 @@
 #include <debug_uart.h>
 #include <dm.h>
 #include <hang.h>
+#include <image.h>
+#include <init.h>
 #include <irq_func.h>
+#include <log.h>
 #include <malloc.h>
 #include <spl.h>
 #include <syscon.h>
index 34804b53ccaef2365969f49ca58dddbf3102e297..6f7eb43a1724d256585b7658257491ebfa003c3b 100644 (file)
@@ -7,6 +7,9 @@
 #include <debug_uart.h>
 #include <dm.h>
 #include <hang.h>
+#include <image.h>
+#include <init.h>
+#include <log.h>
 #include <spl.h>
 #include <asm/cpu.h>
 #include <asm/mtrr.h>
index ffc09630b7d0d8037279f30fba61da0e7dab7403..64d14e8911845fb9675f5f182b297a9e823ff5de 100644 (file)
@@ -13,6 +13,7 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <env.h>
 #include <irq_func.h>
 #include <malloc.h>
@@ -310,7 +311,7 @@ void __setup_pcat_compatibility(void)
 {
 }
 
-int do_zboot(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_zboot(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        struct boot_params *base_ptr;
        void *bzImage_addr = NULL;
index 6f4b88f88e1243daea31431a0ba59686fa244726..85d3464607df67fb7043163a96853bbeba673ea5 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <init.h>
 #include <vsprintf.h>
 #include <linux/stringify.h>
 #include <asm/global_data.h>
index 3b8f4a36d3ec5fac47b7fb4581be54d4fbcfa45d..cf9af4326a2952d82e218b02665d9747aa520e18 100644 (file)
@@ -13,6 +13,7 @@
 #include <common.h>
 #include <command.h>
 #include <irq_func.h>
+#include <asm/ptrace.h>
 #include <asm/string.h>
 #include <asm/regs.h>
 
index 057b229433e950b99caf6e3c9373c26ac88c183a..458eaf95c0443546d97ca2a76adad197f8745314 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
 #include <command.h>
 #include <cpu_func.h>
 #include <env.h>
index 62bbe37b806272fe90616339a03f3e1628801c2e..3a02c384934cf58c37eff989cc796f83f044254d 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <time.h>
 #include <asm/global_data.h>
+#include <linux/delay.h>
 #include <linux/stringify.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index a04415decaf198174ddd29cba2b4a3564b8ebcfa..54f7178b36082595d45e4c580b10535d3e51e45a 100644 (file)
@@ -6,8 +6,10 @@
  */
 
 #include <init.h>
+#include <net.h>
 #include <asm/mach-types.h>
 #include <common.h>
+#include <flash.h>
 #if defined(CONFIG_FTMAC100) && !defined(CONFIG_DM_ETH)
 #include <netdev.h>
 #endif
index faf39b4ba6aa8412fbddc7b415d90db6c619d1e1..23cdf4f578a82b500d974cc83315927fa2b6e36c 100644 (file)
@@ -6,7 +6,9 @@
  */
 
 #include <common.h>
+#include <flash.h>
 #include <init.h>
+#include <net.h>
 #if defined(CONFIG_FTMAC100) && !defined(CONFIG_DM_ETH)
 #include <netdev.h>
 #endif
index f164073000cd164edea022d913d9be747406651d..da5bc5b1f12a53adef5c0a330fd201cd6b7e0416 100644 (file)
@@ -5,7 +5,10 @@
  */
 
 #include <common.h>
+#include <flash.h>
+#include <image.h>
 #include <init.h>
+#include <net.h>
 #if defined(CONFIG_FTMAC100) && !defined(CONFIG_DM_ETH)
 #include <netdev.h>
 #endif
index b50de63c5e0154a498fbd9b0444606ac4ae9d2cd..4b30b66e208f178fd596032c563338b3d6781f79 100644 (file)
@@ -9,14 +9,17 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <cpu_func.h>
 #include <div64.h>
 #include <env.h>
+#include <flash.h>
 #include <malloc.h>
 #include <spi_flash.h>
 #include <mmc.h>
 #include <version.h>
 #include <asm/io.h>
+#include <linux/stringify.h>
 
 static ulong fwenv_addr[MAX_FWENV_ADDR];
 const char mystrerr[] = "ERROR: Failed to save factory info";
@@ -375,7 +378,8 @@ void get_arc_info(void)
                do_get_arc_info();
 }
 
-static int do_arc_cmd(cmd_tbl_t * cmdtp, int flag, int argc, char *const argv[])
+static int do_arc_cmd(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        const char *cmd;
        int ret = -1;
index b641b72aaa76a58b4949bfaa2451d0bf8c0e2950..240e80413792b4f08e1b6b971ea00bb517ff1b85 100644 (file)
@@ -12,7 +12,9 @@
 #include <command.h>
 #include <env.h>
 #include <hwconfig.h>
+#include <image.h>
 #include <init.h>
+#include <net.h>
 #include <pci.h>
 #include <i2c.h>
 #include <miiphy.h>
index c91d2f9494d5183f57ea5016657ffdd76c8f4398..f156b552a7612134c546c7798eb770e4d941a4b3 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <hang.h>
+#include <init.h>
 #include <spl.h>
 #include <dm.h>
 #include <miiphy.h>
index 70ad8322ef4ae7fb881cb727b189b28788297af7..5006687fbf0d7800442b4df3aaa12aa85bf2b6ce 100644 (file)
@@ -10,6 +10,7 @@
 #include <errno.h>
 #include <i2c.h>
 #include <dm/uclass.h>
+#include <linux/delay.h>
 #include "br_resetc.h"
 
 /* I2C Address of controller */
index de8d455c27d9803dac6cf328a52348c7acefbe3c..3bc1d064ca61ec7fc82891fe3797529440d36275 100644 (file)
@@ -8,12 +8,14 @@
  * Bernecker & Rainer Industrieelektronik GmbH - http://www.br-automation.com
  *
  */
+#include <log.h>
 #include <version.h>
 #include <common.h>
 #include <env.h>
 #include <fdtdec.h>
 #include <i2c.h>
 #include <lcd.h>
+#include <linux/delay.h>
 #include "bur_common.h"
 
 DECLARE_GLOBAL_DATA_PTR;
index a667413bfc87501240a4acf0e331cae38f72a393..1d05e40c209b66985e5f8e725ecf31fd98b0013c 100644 (file)
@@ -226,7 +226,7 @@ int drv_video_init(void)
 /*---------------------------------------------------------------------------*/
 
 #ifdef CONFIG_VIDEO
-int do_brightness(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_brightness(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int rcode = 0;
        ulong side;
index 3c23471e6562e25ab0b3b0dba9261b75c552e765..cc57b9f095f705b2f106639137caff79f1aab5fe 100644 (file)
@@ -6,6 +6,8 @@
 #include <common.h>
 #include <asm/arch/soc.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 #define RWTM_BASE              (MVEBU_REGISTER(0xb0000))
 #define RWTM_CMD_PARAM(i)      (size_t)(RWTM_BASE + (i) * 4)
index 470ea32f9c3ccaf43b6597a2016103dff6e44f7e..f3c3996e324c5e70c6b34dd2184ffa297f2f3caa 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
+#include <net.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
 #include <clk.h>
@@ -13,6 +14,7 @@
 #include <env.h>
 #include <fdt_support.h>
 #include <init.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <linux/string.h>
 #include <miiphy.h>
index e1775d30047af390ccd5b6fae71e2b2b20e74782..2da878d3648b6cc89016d067a846f2cad4b9b71d 100644 (file)
@@ -11,7 +11,9 @@
 #include <env.h>
 #include <i2c.h>
 #include <init.h>
+#include <log.h>
 #include <miiphy.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
@@ -19,6 +21,7 @@
 #include <dm/uclass.h>
 #include <fdt_support.h>
 #include <time.h>
+#include <linux/bitops.h>
 #include <u-boot/crc.h>
 # include <atsha204a-i2c.h>
 
index fb66c9ecc74159bfd3de6875e45145efb91028bc..61d965f5f65ac6963f379c3a7be8956a28106658 100644 (file)
@@ -11,6 +11,7 @@
 #include <init.h>
 #include <asm/io.h>
 #include <env.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/crm_regs.h>
index 50305656e8e5bc106d98e140572db31d64f9a8fb..dbd8b5755da33911aead80584a3fafbaf6b81cdb 100644 (file)
@@ -12,6 +12,7 @@
 #include <command.h>
 #include <env.h>
 #include <i2c.h>
+#include <init.h>
 #include <net.h>
 #include <asm/mach-types.h>
 #include <asm/arch/cpu.h>
@@ -245,7 +246,8 @@ void reset_phy(void)
 #if defined(CONFIG_KIRKWOOD_GPIO)
 /* Return GPIO push button status */
 static int
-do_read_push_button(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+do_read_push_button(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[])
 {
        return !kw_gpio_get_value(NET2BIG_V2_GPIO_PUSH_BUTTON);
 }
index b7ae58c6454ea8402f83e784190d08d8f2657378..011cc563d19d6496e84d07f14060510eaab43197 100644 (file)
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
+#include <init.h>
 #include <net.h>
 #include <asm/mach-types.h>
 #include <asm/arch/cpu.h>
@@ -109,7 +110,7 @@ void reset_phy(void)
 #if defined(CONFIG_KIRKWOOD_GPIO)
 /* Return GPIO button status */
 static int
-do_read_button(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+do_read_button(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        return kw_gpio_get_value(NETSPACE_V2_GPIO_BUTTON);
 }
index c4e506ff3b7c01355fb03b9cb1a56700a3fd0c98..c1406d7489cf42e8bb20aabe30afb1400dfdca17 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <mvmfp.h>
 #include <asm/mach-types.h>
 #include <asm/arch/cpu.h>
index 729516d9e1de80b579bc655b223e6f545aad0725..62027bd6385e957a6d07a1ec6221febd5b342a1d 100644 (file)
@@ -1,7 +1,9 @@
 // SPDX-License-Identifier: GPL-2.0+
 
 #include <common.h>
+#include <init.h>
 #include <net.h>
+#include <linux/bitops.h>
 #include <linux/io.h>
 #include <miiphy.h>
 #include <netdev.h>
index 94306b3d8ec881dcd907a30eb28b9557d56613c6..e9897b3976ff94635c84e636d1a835acabee9d7d 100644 (file)
@@ -4,11 +4,14 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <miiphy.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
+#include <linux/bitops.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 922576e9d59988fda15cd3ec63ca3527b45f77ae..60ce940e1dd6415635c5fb78b89170e70a9ee839 100644 (file)
@@ -5,11 +5,14 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <init.h>
 #include <miiphy.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
+#include <linux/bitops.h>
 
 #include "../drivers/ddr/marvell/a38x/ddr3_init.h"
 #include <../serdes/a38x/high_speed_env_spec.h>
index 1a0746b9d3d5b00e4e6b6a929edfb79d9cca4120..08a3c1cc80e00c6784000dc88ea1f4a0ff841b83 100644 (file)
@@ -5,11 +5,14 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <init.h>
 #include <miiphy.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
+#include <linux/bitops.h>
 
 #include "../drivers/ddr/marvell/a38x/ddr3_init.h"
 #include <../serdes/a38x/high_speed_env_spec.h>
index 604e8c1670bde1c2e044f83a2237cca54982b98f..63bb771ab3c978fa3036d2136aa2c31c63a8ec5c 100644 (file)
@@ -4,11 +4,14 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <miiphy.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
+#include <linux/bitops.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index cae428ffd06cea621d51074e8fcc4d0e821ba658..5f12a27002f0027af6e750d6ecc6aef35e2e5515 100644 (file)
@@ -5,7 +5,9 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <init.h>
 #include <asm/gpio.h>
+#include <linux/bitops.h>
 #include <linux/mbus.h>
 #include <linux/io.h>
 #include <asm/arch/cpu.h>
index 887dd1ed74d4da827f0901e25967a0a51fab0994..7d188c3279556577ea7eec613663ec6b70cdfa71 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <miiphy.h>
 #include <net.h>
 #include <asm/arch/cpu.h>
index fc2bc85f00660d472cd1357eca7cc6135c205145..1e2f22735ea6c4f3a547de9934054cd4b02c333c 100644 (file)
@@ -12,6 +12,8 @@
  */
 
 #include <common.h>
+#include <init.h>
+#include <log.h>
 #include <mvmfp.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/mfp.h>
@@ -19,6 +21,7 @@
 #include <asm/gpio.h>
 #include <miiphy.h>
 #include <asm/mach-types.h>
+#include <linux/delay.h>
 
 #ifdef CONFIG_ARMADA100_FEC
 #include <net.h>
index 71bee76bdce7b3f6eadd5e71cd95b6c1b52706fe..f3981c66d20bc4897ca08ff87aa615f2d00bb2e1 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <miiphy.h>
 #include <net.h>
 #include <asm/mach-types.h>
index bef4e1767c8ea8c4c925e6e0db5b2b2386ce0601..9bea1986d4d1e7c31e9a23d48a3f4a548e3263ec 100644 (file)
@@ -6,10 +6,12 @@
 #include <common.h>
 #include <dm.h>
 #include <i2c.h>
+#include <init.h>
 #include <phy.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 499e89367f8d59e61fa5daab11dc1cc6cc2ad6cb..60b00246307888d3e64440a1ee9510614470a52b 100644 (file)
@@ -10,6 +10,7 @@
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index ae9202895d5a698200427918a63e0d8c98b8ad02..d9b5b213feabb187dfcc220fe8111bcc371527a7 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <miiphy.h>
 #include <net.h>
 #include <asm/mach-types.h>
index 6c6106c23c55762c5c814a032535671919bcbb19..6311ed3b2e5933eadc712f4c5800299afa707d35 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <miiphy.h>
 #include <net.h>
 #include <asm/mach-types.h>
index 5a8c6e282bf903138ca758b351837cd20c58fd43..85dd10e55a2c7e3e24e1221f7657573fa047e7ae 100644 (file)
@@ -9,6 +9,8 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
+#include <init.h>
 #include <miiphy.h>
 #include <net.h>
 #include <asm/arch/soc.h>
index 1e4477aa5ff10b65dae7f10301c56f507bb4d606..de1ec544667c6ea08bb58647947a215c0ee4a78e 100644 (file)
@@ -12,6 +12,8 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
+#include <init.h>
 #include <miiphy.h>
 #include <net.h>
 #include <asm/mach-types.h>
index 99462052f0426d82229e7b9715163fb9750b8912..3a027d083a7bfb0bb058cb3b80f845b2b3bc55e0 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <miiphy.h>
 #include <net.h>
 #include <asm/mach-types.h>
index f2031ef3bbb2f9225751a7bce1183487d12e957c..aa2987d924f200cc8cf1ddb8c205a642c3d5f801 100644 (file)
@@ -6,12 +6,14 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <miiphy.h>
 #include <net.h>
 #include <asm/setup.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
 #include <asm/arch/mpp.h>
+#include <linux/delay.h>
 #include "ds109.h"
 
 DECLARE_GLOBAL_DATA_PTR;
index 777948f90f58cbaace41714443b7f62432fecabf..a120c3123ffb3089b41b1c4e181841737b14beaf 100644 (file)
@@ -6,8 +6,10 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <div64.h>
 #include <env.h>
+#include <net.h>
 #include <spi.h>
 #include <spi_flash.h>
 #include <linux/mtd/mtd.h>
@@ -20,7 +22,7 @@
 #define SYNO_CHKSUM_TAG                "CHK="
 
 
-static int do_syno_populate(int argc, char * const argv[])
+static int do_syno_populate(int argc, char *const argv[])
 {
        unsigned int bus = CONFIG_SF_DEFAULT_BUS;
        unsigned int cs = CONFIG_SF_DEFAULT_CS;
@@ -151,7 +153,7 @@ static const char * const pwr_mng_bit_func[] = {
        NULL,
 };
 
-static int do_syno_clk_gate(int argc, char * const argv[])
+static int do_syno_clk_gate(int argc, char *const argv[])
 {
        u32 pwr_mng_ctrl_reg = reg_read(POWER_MNG_CTRL_REG);
        const char *func, *state;
@@ -194,8 +196,8 @@ static int do_syno_clk_gate(int argc, char * const argv[])
        return 0;
 }
 
-static int do_syno(cmd_tbl_t *cmdtp, int flag,
-                   int argc, char * const argv[])
+static int do_syno(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        const char *cmd;
        int ret = 0;
index d23e97c9b9165b3aafe2f8983538a4d1a7d73275..632205164ebfe66688353ffebab6f30e3e04cd1d 100644 (file)
@@ -5,10 +5,12 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <miiphy.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
+#include <linux/bitops.h>
 #include <linux/mbus.h>
 
 #include "../drivers/ddr/marvell/axp/ddr3_hw_training.h"
index e3fbbbaa8aab1d26c427e432f4806b22bf569527..47eb64dd1f80223d65b9cdceb51ec637a65f262e 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/io.h>
 
index 299f2f102d1905024769c036741fde862ee11969..28e505e6c59b18653967153ece84e0338f0c2329 100644 (file)
@@ -6,10 +6,12 @@
  */
 
 #include <init.h>
+#include <net.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/mx6-pins.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/gpio.h>
 #include <asm/mach-imx/mxc_i2c.h>
index bb7913025d77e945637ece6d71fa975479281d80..ea057d27cf357b587d665a20189f1d0d3e2ec0a6 100644 (file)
@@ -6,7 +6,10 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <env.h>
 #include <errno.h>
+#include <init.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
index 3f31a8f9c3d28c86b55297ab49dcc4b6fbd34521..54f48b9ba8f9af55279217649ef221ea4cdcc8e2 100644 (file)
@@ -4,6 +4,9 @@
  */
 #include <common.h>
 #include <dm.h>
+#include <image.h>
+#include <init.h>
+#include <log.h>
 #include <spl.h>
 #include <fsl_esdhc.h>
 
index 8f4c587371d920af5c9d18d28fe745ce4535258c..8499fc541fa70e37fb69639107f7b2be95d24773 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/fsp1/fsp_support.h>
 
 /* ALC262 Verb Table - 10EC0262 */
index 1f3f293bd914d2f6742a55f7903cf3c780da2a48..668484b71b6a2c13ffceece4495682756de9a451 100644 (file)
@@ -5,7 +5,10 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <net.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/io.h>
 #include <miiphy.h>
 #include <netdev.h>
index 889ce70d758ce7fa49d138f9d8ff45621c2623f2..e4bf507cc3f096871c2b93fb53c1b712285e166d 100644 (file)
@@ -5,10 +5,12 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <miiphy.h>
 #include <net.h>
 #include <netdev.h>
 #include <led.h>
+#include <linux/bitops.h>
 #include <linux/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
index 04b053dc20e4d7f7d105cd62d3646805f5be995c..c7438aeaf1488bc2a46b6796c6244b848921a41b 100644 (file)
@@ -8,8 +8,10 @@
 #include <dm.h>
 #include <env.h>
 #include <i2c.h>
+#include <init.h>
 #include <wdt.h>
 #include <asm/gpio.h>
+#include <linux/bitops.h>
 #include <linux/mbus.h>
 #include <linux/io.h>
 #include <asm/arch/cpu.h>
index 9034c4fbfff04900bbf63e284cf7368518dcd2ae..fb1828ff44dac3e168c2121065f8f6f7cb1db944 100644 (file)
@@ -8,6 +8,7 @@
 #include <config.h>
 #include <common.h>
 #include <env.h>
+#include <init.h>
 #include <linux/ctype.h>
 #include <linux/usb/musb.h>
 #include <asm/omap_musb.h>
index 41d331dda2d4acc5fa51714b87efce4b5d8d0f59..8f1bf8bfda47509878a026f92c3ea25387ed0b92 100644 (file)
@@ -6,6 +6,8 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
+#include <init.h>
+#include <net.h>
 #include <asm/io.h>
 #include <asm/arch/gx.h>
 #include <asm/arch/sm.h>
index e46fcaea6dcda73a22bade2a87645f5ae48fcea2..597bb71cbf7f4dd9c9d95f692e5b33a61a891f69 100644 (file)
@@ -6,6 +6,8 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
+#include <init.h>
+#include <net.h>
 #include <asm/io.h>
 #include <asm/arch/gx.h>
 #include <asm/arch/sm.h>
index 094ab5478d0034a2fb5a8fbba0eff9e697855820..fbc49e95651f20c99027d7c8e5b1a91d564ed94a 100644 (file)
@@ -7,6 +7,8 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
+#include <init.h>
+#include <net.h>
 #include <asm/io.h>
 #include <asm/arch/gx.h>
 #include <asm/arch/sm.h>
index f1faa7418e07004fbd77ed2bd6acfb9f454cd801..62e6fa3d199261bff7d3e82b1d96a2e6d849d9e7 100644 (file)
@@ -7,6 +7,8 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
+#include <init.h>
+#include <net.h>
 #include <asm/io.h>
 #include <asm/arch/gx.h>
 #include <asm/arch/mem.h>
index bdb4eca8839e8bffa38bb34ec7209ea3c32cfcf3..7e2f0cdae32d8f5cb577c6c4513be104a9ef5042 100644 (file)
@@ -6,6 +6,8 @@
 
 #include <common.h>
 #include <dm.h>
+#include <init.h>
+#include <net.h>
 #include <asm/io.h>
 #include <asm/arch/axg.h>
 #include <asm/arch/sm.h>
index 5de610d85fc8d20899cf926be00e66949100b235..5a5148ea68eef12e3f8ef501622359df93b1e221 100644 (file)
@@ -6,7 +6,10 @@
 
 #include <common.h>
 #include <dm.h>
+#include <env.h>
 #include <env_internal.h>
+#include <init.h>
+#include <net.h>
 #include <asm/io.h>
 #include <asm/arch/axg.h>
 #include <asm/arch/sm.h>
index b17eb9ef55b7891b5d94df6a6e403650a1725175..27dba93582496502aa09f4a46eb60791df6d604f 100644 (file)
@@ -6,7 +6,10 @@
 
 #include <common.h>
 #include <dm.h>
+#include <env.h>
 #include <env_internal.h>
+#include <init.h>
+#include <net.h>
 #include <asm/io.h>
 #include <asm/arch/axg.h>
 #include <asm/arch/sm.h>
index 69fd29d4fecc6cee6f4c27134eb5a41def7af783..373235d77a974ad7568566bf239f2784434f864c 100644 (file)
@@ -6,6 +6,8 @@
 
 #include <common.h>
 #include <dm.h>
+#include <init.h>
+#include <net.h>
 #include <asm/io.h>
 #include <asm/arch/axg.h>
 #include <asm/arch/sm.h>
index e60dc3a622e361ff68c14a73b821bf31e557a554..47a51710dc9b5e52c8e20656e5231f4ea3d2166d 100644 (file)
@@ -7,6 +7,8 @@
 #include <common.h>
 #include <dm.h>
 #include <env_internal.h>
+#include <init.h>
+#include <net.h>
 #include <asm/io.h>
 #include <asm/arch/eth.h>
 
index 70671039c288278074b055f730fee5b03c284740..14931120f6f6becdb1eae07c76a2f4fda14b85fb 100644 (file)
@@ -9,6 +9,9 @@
  * Author: Fabio Estevam <fabio.estevam@freescale.com>
  */
 
+#include <command.h>
+#include <image.h>
+#include <init.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
index e9af8ddd01354ee41554e15a5b29b8f9b2351f92..9e2f39f9814f556a5738f0df17bfb6633b5b8847 100644 (file)
@@ -9,6 +9,8 @@
  * Keith Outwater, keith_outwater@mvis.com
  */
 #include <common.h>
+#include <log.h>
+#include <linux/delay.h>
 
 #include <asm/arch/imx-regs.h>
 #include <asm/gpio.h>
index 1a472f50d3f11c74e8ea67d29ccb51471f623ac9..ac6462d7ff5753f2bd9259eb72fa5b9046d8a7f3 100644 (file)
  */
 
 #include <common.h>
+#include <bootstage.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <env.h>
 #include <init.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/io.h>
 #include <dm/platform_data/serial_pl01x.h>
index c189d23eecd8e72a2a9459aeada726e5d49d6dd9..28efc33f1f426bd3d28d3d9f53943a099960e6d8 100644 (file)
  */
 #include <common.h>
 #include <init.h>
+#include <log.h>
 #include <pci.h>
 #include <asm/io.h>
+#include <linux/bug.h>
+#include <linux/delay.h>
 #include "integrator-sc.h"
 #include "pci_v3.h"
 
index d701669be0ccbd639ffcc3f9cf2551f6bcd632a4..d220b877d66181812a601a09937de4cb109e862e 100644 (file)
@@ -19,6 +19,7 @@
 #include <common.h>
 #include <div64.h>
 #include <time.h>
+#include <linux/delay.h>
 
 #ifdef CONFIG_ARCH_CINTEGRATOR
 #define DIV_CLOCK_INIT 1
@@ -124,7 +125,7 @@ ulong get_timer (ulong base_ticks)
 }
 
 /* delay usec useconds */
-void __udelay (unsigned long usec)
+void __udelay(unsigned long usec)
 {
        ulong tmo, tmp;
 
index 14626c1f553eeee9365053fecf73e0509c9ecb49..9dc26b949eb2637906b37ea55c5fdf818b091528 100644 (file)
  * Philippe Robin, <philippe.robin@arm.com>
  */
 #include <common.h>
+#include <bootstage.h>
 #include <cpu_func.h>
 #include <init.h>
 #include <malloc.h>
 #include <errno.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/io.h>
 #include <asm/mach-types.h>
index 21156a4ca94f7d1520a171bf10cfaf0e22fa36f4..02de58b3601624ffe9100c742aeef4fdf1eed95a 100644 (file)
@@ -6,9 +6,12 @@
  */
 
 #include <common.h>
+#include <init.h>
+#include <log.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
 #include <pci_ids.h>
+#include <linux/delay.h>
 #include "pcie.h"
 
 /* XpressRICH3 support */
index 5c7a8f55f03598dd4a84b875b038fb28afbd0edd..fbfa7a18f1165c3656880331aa6e45d169549b8f 100644 (file)
@@ -7,8 +7,10 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
+#include <init.h>
 #include <malloc.h>
 #include <errno.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/io.h>
 #include <linux/compiler.h>
index 9adf58eb8a32816838203c244391fb62ed13a8d3..e7c2b909300d81ed5d86510e3720426cf19d2dd8 100644 (file)
@@ -13,6 +13,7 @@
 #include <asm/m5329.h>
 #include <asm/immap_5329.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 /* needed for astro bus: */
 #include <asm/uart.h>
index e75d5b182f6969e5e827397f5e725c1d3fe5f750..e4a6776f9638ea67297f1f5c9902e4e7a2bf098d 100644 (file)
@@ -11,6 +11,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/mach-types.h>
 #include <asm/arch/hardware.h>
index 2ea66b9b15502992b1619b12086668223af4e19a..cc6d5d7a05eb0ce9499e5c8e57184c3ef17d60ef 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/gpio.h>
 #include <status_led.h>
index b811d931c44fa8ee18a71544c0c5b082ccc0640a..be132bc185fbd3c53b59bd0776a8bd67f71d5364 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <debug_uart.h>
+#include <flash.h>
 #include <init.h>
 #include <net.h>
 #include <vsprintf.h>
index 90d32353e9ba62be686878002eecf6082772a12f..f16c137565c7d2d904077ff689508fd212ac97a3 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <net.h>
 #include <vsprintf.h>
 #include <asm/io.h>
 #include <asm/arch/at91sam9x5_matrix.h>
index 96343678e0b6884149cde82eb5739607d4c54bff..ced27b65e63b8feb68b2537692503311bada5ab1 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
+#include <net.h>
 #include <linux/mtd/spi-nor.h>
 #include <netdev.h>
 
index 050aa51ee1f1308cd8c0f994edf569c50c4d800e..2205dd30f8fef9c774c501d35e7a308e5774ad2f 100644 (file)
@@ -9,6 +9,7 @@
 #include <eeprom.h>
 #include <env.h>
 #include <i2c_eeprom.h>
+#include <net.h>
 #include <netdev.h>
 
 int at91_set_ethaddr(int offset)
index 5cc52139a7796beff032d05875b16b4a9bbb4c8a..2666b0b3cd5d64ae7e18440e9611ca314d1ad4cd 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <atmel_lcd.h>
 #include <dm.h>
+#include <init.h>
 #include <nand.h>
 #include <version.h>
 #include <video.h>
index 10278de3c7d05f5fe6dbb1d6a252f950fb8ba900..29bde60228f914d61270dd1f1dd78cef06edff76 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <asm/arch/pinmux.h>
 #include <asm/arch/gp_padctrl.h>
 #include <asm/arch/gpio.h>
index 36f37084b36c0c4b7929f3c88b046a3ec9ca388b..db0da0ca2f7b1f0bfc79f64be935c11d1efc9c8b 100644 (file)
@@ -5,6 +5,8 @@
  */
 
 #include <common.h>
+#include <init.h>
+#include <net.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
index a3a822f65a1898929e932cefe7a3bca9f536fd1d..7fbd6f2c5d3e1f93f1fd8a5de941a36b2a4cf2a3 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <spl.h>
 #include <asm/arch/mx6-ddr.h>
 
index c2c7c095536b621a1b3a3c663c0ff1711e6a342f..7984647e3a3e139e22acc69912874d8e79e1aa0b 100644 (file)
@@ -9,6 +9,7 @@
 #include <mmc.h>
 #include <fsl_esdhc_imx.h>
 #include <miiphy.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
index 7d99b1694daadaba4a192a8a22d1d241c962b53b..3fc29f9e08c455b2ab0fef2f86d7afb983703d67 100644 (file)
@@ -14,6 +14,7 @@
 #include <asm/mach-imx/mxc_i2c.h>
 #include <i2c.h>
 #include <miiphy.h>
+#include <linux/delay.h>
 
 #include "platinum.h"
 
index 5758c147edab716483879d8bf8889caaa674ac69..9f7c93b4d5400bdf7d804a58aa836c3bed9c24d5 100644 (file)
@@ -12,6 +12,7 @@
 #include <asm/mach-imx/mxc_i2c.h>
 #include <miiphy.h>
 #include <micrel.h>
+#include <linux/delay.h>
 
 #include "platinum.h"
 
index ec6de460c12b481944f8b6d2585a7606bbe33044..253a64d28ebaf04fb1430a19cdc4956c970c2f75 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/mx6-ddr.h>
index 263371a2b27a7ee0e80346dfb6faeb36cd51faf7..8c91b752ffe033ab4ddeffa73b287ee4066b777b 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/mx6-ddr.h>
index 6348f123ad45ed347dcf7caf1dfb5637e9660fbc..91c70a84732682e1588b550f63639c188e8159f0 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <net.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
@@ -21,6 +22,7 @@
 #include <micrel.h>
 #include <miiphy.h>
 #include <netdev.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 35be2e89a9de98a4ecd9ee989b675987168d66fc..4ee10cf8555e2c0cb40286e52716e87ce5585846 100644 (file)
@@ -3,6 +3,8 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <hang.h>
+#include <init.h>
+#include <log.h>
 #include <spl.h>
 #include <asm/io.h>
 #include <asm/mach-imx/iomux-v3.h>
index 398e4ed72028319de2eedfa20eec78646399170b..617b545232a2fac5930c8ef7a6d918ddfdec7fe4 100644 (file)
@@ -16,6 +16,7 @@
 #include <asm/mach-imx/mx5_video.h>
 #include <ACEX1K.h>
 #include <asm/gpio.h>
+#include <linux/delay.h>
 
 enum LED_GPIOS {
        GPIO_SD1_CD = IMX_GPIO_NR(1, 1),
index 9eb851c39763d60155e0733d70bc84713c6f8c29..5900e6546621918f7003d9b1ac38c0d1602ab8f9 100644 (file)
@@ -11,6 +11,7 @@
 #include <env.h>
 #include <errno.h>
 #include <init.h>
+#include <net.h>
 #include <serial.h>
 #include <spl.h>
 #include <asm/arch/cpu.h>
index 9268aa0daafc10f614b5efc1a316e9618fcd8e74..be8eefb365779856c20ea40270d5757edd6cdc0f 100644 (file)
@@ -14,6 +14,8 @@
  */
 
 #include <common.h>
+#include <init.h>
+#include <net.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <asm/setup.h>
index 4ae70e1aa54f5a422a310e99b4a83f439faf8955..2bbb20354888ec82b87db6348aced7e4636ac27b 100644 (file)
@@ -33,6 +33,7 @@
 #include <asm/arch/clk.h>
 #include <asm/arch/gpio.h>
 #include <dm/uclass-internal.h>
+#include <linux/delay.h>
 
 #ifdef CONFIG_GURNARD_SPLASH
 #include "splash_logo.h"
index 47ce3078808f8135f06e291c34c28132c1220819..8e2b7e000f358d9f47ebe3e590e8d882d1ef0252 100644 (file)
@@ -23,6 +23,7 @@
 #include <netdev.h>
 #include <i2c.h>
 #include <pca953x.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 03ba9e8c5ece6465536f432d37c8bc832b8b27f0..1d8fa781545d1a617a4f84e9522a9ea1925514e1 100644 (file)
 #include <common.h>
 #include <cpsw.h>
 #include <dm.h>
+#include <env.h>
 #include <env_internal.h>
 #include <errno.h>
 #include <i2c.h>
+#include <init.h>
 #include <led.h>
 #include <miiphy.h>
 #include <panel.h>
index d34f3ba0077f960e1881998fb064b02cf382febe..6a102d385311ea876ae5228f3d3b12ad51ae80a3 100644 (file)
  */
 
 #include <common.h>
+#include <bootstage.h>
 #include <cpu_func.h>
 #include <env.h>
 #include <errno.h>
 #include <init.h>
 #include <irq_func.h>
+#include <net.h>
 #include <spl.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/hardware.h>
@@ -33,6 +35,7 @@
 #include <i2c.h>
 #include <miiphy.h>
 #include <cpsw.h>
+#include <linux/delay.h>
 #include <power/tps65217.h>
 #include <env_internal.h>
 #include <watchdog.h>
index 5018167fcf12e96ff561547ac2cb8e492990b866..d49725daa8cc80455e2f11f2ccd9f00e9dfdbedf 100644 (file)
@@ -5,7 +5,10 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <env.h>
+#include <init.h>
+#include <net.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
@@ -13,6 +16,7 @@
 #include <asm/arch/sys_proto.h>
 #include <malloc.h>
 #include <asm/arch/mx6-pins.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/gpio.h>
 #include <asm/mach-imx/iomux-v3.h>
@@ -986,7 +990,7 @@ static int read_keys(char *buf)
        return numpressed;
 }
 
-static int do_kbd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_kbd(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        char envvalue[ARRAY_SIZE(buttons)+1];
        int numpressed = read_keys(envvalue);
index d83eb9bd5240b46aa6f7cbf0370abc00c98c27c3..cff9a6840c46c1f1bf050f19e841c3ca61cb54b7 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/mach-types.h>
 #include <env.h>
index 40ced1a87ce4aa3f1cb4b00cc10a9404ad386a1d..e3bf808d7e24f0eb61445dce634a161b439101fa 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/mach-types.h>
 #include <env.h>
index db82cd570d65083a86163360145b5cbb2687cd70..9feaee3c0fc4d9e59d77653ddd1f9b9494f190d7 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <fdtdec.h>
+#include <init.h>
 #include <linux/io.h>
 
 #ifdef CONFIG_ARM64
index a5fbc1d297cde2a073831e415029d752530264c4..90af6b88bd47d34799b96adb487d9990c248591f 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <fdtdec.h>
+#include <init.h>
 #include <linux/io.h>
 
 #ifdef CONFIG_ARM64
index 2e547f5170889584cb198226de5d471061968b4b..1bd723d49edd341455fe21650def99b07aaf7d13 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <fdtdec.h>
+#include <init.h>
 #include <linux/io.h>
 
 #ifdef CONFIG_ARM64
index e4dbe42649057789e7db42f115b9b13cf798bc49..31cae47028880199f8f157d138cb5d23fc1cee33 100644 (file)
@@ -6,6 +6,8 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <init.h>
+#include <net.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <config.h>
 #include <netdev.h>
index 6cbad9c1f0abd13c9ffb6d965f32316bcf57abc7..91f489aad3f2ff869777c50044127635fb2194a7 100644 (file)
@@ -5,6 +5,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <init.h>
+#include <asm/cache.h>
 #include <asm/system.h>
 #include <asm/armv8/mmu.h>
 
index ee0cf8f9e29311d7b9ae3aa339e06f46a6236388..add4285db31d31008b96eedf11dbc11e4623350e 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <cpu_func.h>
 #include <init.h>
+#include <log.h>
 #include <time.h>
 #include <linux/types.h>
 #include <common.h>
index 6ad7e31092b351bdabb6ad1aee029efb4ffcc0cf..b7d37b700447afc6acd9dd7f9041250978b41bd7 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/arch/sys_proto.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index 620e4d1de0c16f1f5a61839d6bd6f3defa570a1c..a9bb2a55e5de3d847e616b75575cfc03c4f1b480 100644 (file)
@@ -6,8 +6,10 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <serial.h>
 #include <spl.h>
+#include <linux/delay.h>
 
 #include <asm/io.h>
 #include <linux/sizes.h>
index 95d3a5e1f579dded27c9c59f400eca7e3724d61b..64daa456b3c7d862124cf8dc341cc965b5e73a05 100644 (file)
@@ -8,8 +8,12 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
+#include <command.h>
 #include <env.h>
 #include <env_internal.h>
+#include <flash.h>
+#include <init.h>
 #include <net.h>
 #include <malloc.h>
 #include <netdev.h>
@@ -20,6 +24,7 @@
 #include <asm/arch/cpu.h>
 #include <asm/arch/mpp.h>
 #include <asm/arch/gpio.h>
+#include <linux/delay.h>
 
 #include "lsxl.h"
 
index 2e7ba69d76462761a08b826b51637ab9939c4a77..64aa198765fecd0eb7faa20a9d4086996d27a3de 100644 (file)
@@ -4,7 +4,10 @@
 **/
 
 #include <common.h>
+#include <command.h>
+#include <asm/cache.h>
 #include <asm/io.h>
+#include <asm/ptrace.h>
 
 #include <asm/system.h>
 #include <cavium/thunderx_svc.h>
@@ -223,7 +226,7 @@ static void atf_print_part_table(void)
        }
 }
 
-int do_atf(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_atf(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        ssize_t ret;
        size_t size, offset;
index 687ade544acbf5dc0c36a26b83184b9fa326e56e..1b1b9d513c3f258abbb637abb9480d35652d4ca4 100644 (file)
@@ -9,6 +9,7 @@
 #include <init.h>
 #include <malloc.h>
 #include <errno.h>
+#include <net.h>
 #include <linux/compiler.h>
 
 #include <cavium/atf.h>
index 90f655ab2e77ffbf5673bc0dc2e747bd918257e7..38bda8d1847c1b1a8bcae1cc4fb674d4c14ba894 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <spl.h>
 #include <asm/io.h>
 #include <asm/arch/mx6-ddr.h>
index 0caeea58853a62edd6336c38f283587906178b9f..e41f0639ea8fe75c04c804e672ddd6c7d9fe8cf5 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <init.h>
+#include <net.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/imx-regs.h>
@@ -24,6 +25,7 @@
 #include <mmc.h>
 #include <netdev.h>
 #include <usb.h>
+#include <linux/delay.h>
 #include <usb/ehci-ci.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index dfebb7c1c133ebbdf3b1c823fb52b5a871f95693..0318bf18cfc215a2f4004688247ed17ec34655a5 100644 (file)
@@ -16,7 +16,9 @@
 #include <config.h>
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
 #include <irq_func.h>
+#include <net.h>
 #include <netdev.h>
 #include <status_led.h>
 #include <asm/io.h>
index 835c3279be282124e35c4fd2125443cf6aca1bb6..8df039168c99947f90ebd76414570c960c3c2e4e 100644 (file)
@@ -10,6 +10,8 @@
  */
 
 #include <common.h>
+#include <init.h>
+#include <log.h>
 #include <miiphy.h>
 #include <net.h>
 #include <asm/arch/cpu.h>
index 1d3c5acddf8db1494b3fcffa7c947f29997919e9..4337f4879de77306c6d5da4076791d7b93d72d09 100644 (file)
@@ -7,14 +7,17 @@
 #include <common.h>
 #include <console.h>
 #include <cpu_func.h>
+#include <flash.h>
 #include <irq_func.h>
+#include <uuid.h>
+#include <linux/delay.h>
 
 #define PHYS_FLASH_1 CONFIG_SYS_FLASH_BASE
 #define FLASH_BANK_SIZE 0x200000
 
 flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
-void flash_print_info (flash_info_t * info)
+void flash_print_info(flash_info_t *info)
 {
        int i;
 
@@ -55,7 +58,7 @@ Done:
 }
 
 
-unsigned long flash_init (void)
+unsigned long flash_init(void)
 {
        int i, j;
        ulong size = 0;
@@ -98,9 +101,9 @@ unsigned long flash_init (void)
                size += flash_info[i].size;
        }
 
-       flash_protect (FLAG_PROTECT_SET,
-                      CONFIG_SYS_FLASH_BASE,
-                      CONFIG_SYS_FLASH_BASE + 0x3ffff, &flash_info[0]);
+       flash_protect(FLAG_PROTECT_SET,
+                     CONFIG_SYS_FLASH_BASE,
+                     CONFIG_SYS_FLASH_BASE + 0x3ffff, &flash_info[0]);
 
        return size;
 }
@@ -127,7 +130,7 @@ unsigned long flash_init (void)
 #define TMO   4
 
 
-int flash_erase (flash_info_t * info, int s_first, int s_last)
+int flash_erase(flash_info_t *info, int s_first, int s_last)
 {
        ulong result;
        int iflag, cflag, prot, sect;
@@ -233,7 +236,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
 
       outahere:
        /* allow flash to settle - wait 10 ms */
-       udelay (10000);
+       mdelay(10);
 
        if (iflag)
                enable_interrupts();
@@ -244,7 +247,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
        return rc;
 }
 
-static int write_word (flash_info_t * info, ulong dest, ulong data)
+static int write_word(flash_info_t *info, ulong dest, ulong data)
 {
        volatile u16 *addr = (volatile u16 *) dest;
        ulong result;
@@ -311,7 +314,7 @@ static int write_word (flash_info_t * info, ulong dest, ulong data)
 }
 
 
-int write_buff (flash_info_t * info, uchar * src, ulong addr, ulong cnt)
+int write_buff(flash_info_t *info, uchar *src, ulong addr, ulong cnt)
 {
        ulong wp, data;
        int rc;
index a7a1be3c057204a489e126cb257ff7e5b1523c88..64d0860d213944d198220c9ae9c70655d6d8a570 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/tegra.h>
 #include <asm/arch/pinmux.h>
index 9277094e441160da72c007cd2e17d30948060ede..8b3bd5e5f636a99e8d86a7bf01740e6103c5a0e1 100644 (file)
 #include <env.h>
 #include <init.h>
 #include <mmc.h>
+#include <net.h>
 #include <phy.h>
 #include <netdev.h>
 #include <fsl_esdhc_imx.h>
+#include <linux/delay.h>
 #include <power/pmic.h>
 #include <power/pfuze3000_pmic.h>
 #include <asm/mach-imx/mxc_i2c.h>
index 3e185ad82a29e31ebb895f91accecf8ccfe43c08..4d71bedfb92e60616db4ce92397bfc493be431cc 100644 (file)
@@ -16,6 +16,7 @@
 #include <init.h>
 #include <miiphy.h>
 #include <mtd_node.h>
+#include <net.h>
 #include <netdev.h>
 #include <errno.h>
 #include <usb.h>
@@ -34,6 +35,7 @@
 #include <dm/platform_data/serial_mxc.h>
 #include <dm/device-internal.h>
 #include <jffs2/load_kernel.h>
+#include <linux/delay.h>
 #include "common.h"
 #include "../common/eeprom.h"
 #include "../common/common.h"
index 592d74109510082d494173c18b76bd5bdfc9dbfb..7d8243563ae3c7ed07abf6376e23efc1fac6b541 100644 (file)
@@ -20,6 +20,7 @@
 #include <asm/arch/crm_regs.h>
 #include <asm/mach-imx/iomux-v3.h>
 #include <fsl_esdhc_imx.h>
+#include <linux/delay.h>
 #include "common.h"
 
 enum ddr_config {
index 561f2f30bb2639f75fce51382f4927c55ac7e881..75b56f7eee00d4dc7f6a25beee6a8096d0016221 100644 (file)
 #include <env.h>
 #include <errno.h>
 #include <miiphy.h>
+#include <net.h>
 #include <status_led.h>
 #include <cpsw.h>
+#include <linux/delay.h>
 
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/hardware_am33xx.h>
index 39ca535d11dfe39d66a2fdb2101918f815e6ce80..8662632a7e394319880acf3029c39ac88f4f5aec 100644 (file)
@@ -13,6 +13,7 @@
 #include <cpu_func.h>
 #include <errno.h>
 #include <init.h>
+#include <log.h>
 
 #include <asm/arch/ddr_defs.h>
 #include <asm/arch/clock.h>
index b52358baacd860ac674a979947b44e8eaf3e9087..4b67df4f1ac7c65dce6fdc15259fbab2f8929eee 100644 (file)
@@ -13,6 +13,7 @@
 
 #include <common.h>
 #include <env.h>
+#include <init.h>
 #include <status_led.h>
 #include <netdev.h>
 #include <net.h>
@@ -22,6 +23,7 @@
 #include <splash.h>
 #include <twl4030.h>
 #include <linux/compiler.h>
+#include <linux/delay.h>
 
 #include <asm/io.h>
 #include <linux/errno.h>
index 2aa453471d94b49b512454662dcf7454f794ae5a..f26e42b263dcc8e767b4e8a3b50fbc3b4f5fb74b 100644 (file)
@@ -7,9 +7,11 @@
 #include <i2c.h>
 #include <miiphy.h>
 #include <cpsw.h>
+#include <net.h>
 #include <asm/gpio.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/emif.h>
+#include <linux/delay.h>
 #include <power/pmic.h>
 #include <power/tps65218.h>
 #include "board.h"
index 811bbb528a82d1abc9ebc0439ea0796f4375035f..413f3c9c8f28e2ec4e9f3114f3e7e19776cfc4ab 100644 (file)
 #include <common.h>
 #include <env.h>
 #include <fdt_support.h>
+#include <net.h>
 #include <usb.h>
 #include <mmc.h>
 #include <palmas.h>
 #include <spl.h>
+#include <linux/delay.h>
 
 #include <asm/gpio.h>
 #include <asm/arch/sys_proto.h>
index 50d58217e47d8f0bf8539a9a397debdb7ce3a99f..ea90bc6e3420d2e3dedc98873aaf8f52814d83b3 100644 (file)
@@ -10,6 +10,7 @@
 #ifndef _CM_T54_MUX_DATA_H
 #define _CM_T54_MUX_DATA_H
 
+#include <common.h>
 #include <asm/arch/mux_omap5.h>
 #include <asm/arch/sys_proto.h>
 
index 2f92c6564d7867255dc720f7c7e79db8341fe992..528c97df19a4cdf1c82adef340cf7394fdd5ad04 100644 (file)
@@ -10,6 +10,7 @@
 #include <asm/bootm.h>
 #include <asm/gpio.h>
 #include <asm/setup.h>
+#include <linux/delay.h>
 
 #include "common.h"
 #include "eeprom.h"
index 4b869ec3af45c8371fde1dfa5ea20b520f3feccc..f0d365272c1bed56bae660a608528f12f908c4ca 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <netdev.h>
+#include <linux/delay.h>
 
 #include <asm/io.h>
 #include <linux/errno.h>
index 49c731f89119972143c2ac638543cc9f9d1241ad..044cefd9794759604eb6d4db467ab53b4ce96fbf 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <net.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
@@ -26,6 +27,7 @@
 #include <fsl_esdhc_imx.h>
 #include <i2c.h>
 #include <input.h>
+#include <linux/delay.h>
 #include <power/pmic.h>
 #include <power/pfuze100_pmic.h>
 #include <linux/fb.h>
index 23c2ea91862bc638ee5bf0e863e9b00d5db5779c..192af304d9fbad57577f2b016a18a337645d7815 100644 (file)
@@ -5,6 +5,7 @@
  * Andreas Bießmann <andreas.biessmann@corscience.de>
  */
 #include <common.h>
+#include <command.h>
 #include <eeprom.h>
 #include <i2c.h>
 #include <u-boot/crc.h>
@@ -186,7 +187,7 @@ int tricorder_eeprom_write(unsigned devaddr, const char *name,
        return ret;
 }
 
-int do_tricorder_eeprom(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+int do_tricorder_eeprom(struct cmd_tbl *cmdtp, int flag, int argc, char *argv[])
 {
        if (argc == 3) {
                ulong dev_addr = simple_strtoul(argv[2], NULL, 16);
index cec819b36fbed11ff58576a5b79fe0f00925e36b..30974e8d920d6639bfde766ab29aad4d0fd63d7d 100644 (file)
@@ -10,6 +10,7 @@
  * Frederik Kriewitz <frederik@kriewitz.eu>
  */
 #include <common.h>
+#include <init.h>
 #include <malloc.h>
 #include <twl4030.h>
 #include <status_led.h>
index b4fa01f3688bb517916575f4b77ad09e08a1a43c..3c132f127179cd0bb765951f25b9d2b108cc597b 100644 (file)
@@ -4,10 +4,12 @@
  *
  */
 #include <common.h>
+#include <init.h>
 #include <malloc.h>
 #include <errno.h>
 #include <netdev.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 #include <linux/compiler.h>
 #include <configs/presidio_asic.h>
 #include <linux/psci.h>
index 228a3943c09216a5d5886300f12bb1e52a8559a9..adc908143db43d2f02686f710abf12d6af94d84c 100644 (file)
 
 #include <common.h>
 #include <errno.h>
+#include <init.h>
+#include <net.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <asm/arch/iomux-mx23.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/sys_proto.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 138d0c61f1510c70508989714d91ba64ed836d02..570e846a21b74b67b4dcd848e1ec0b5a79d81b84 100644 (file)
@@ -17,6 +17,7 @@
 #include <asm/io.h>
 #include <dm/uclass.h>
 #include <wdt.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index dfdc683683d8a4fa65ce886556a2c1ef2790449b..0ae2e7d88c106ddd41e710f9c314b8215240f6e7 100644 (file)
@@ -10,6 +10,8 @@
  */
 
 #include <common.h>
+#include <init.h>
+#include <log.h>
 #include <miiphy.h>
 #include <net.h>
 #include <netdev.h>
index d9019de6e0066353672ed7d08fc679793a2717f9..a3b0f8bf0924944f2281f3b77be4fa0b589a6433 100644 (file)
@@ -12,6 +12,7 @@
 #include <dm.h>
 #include <env.h>
 #include <i2c.h>
+#include <init.h>
 #include <net.h>
 #include <spi.h>
 #include <spi_flash.h>
index 608a7f28eb09b719285b0319354cced0722dd9b1..adb56c6c8719dce87019a1bef7d0efb1ca968c24 100644 (file)
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <env.h>
 #include <i2c.h>
+#include <init.h>
 #include <net.h>
 #include <asm/arch/hardware.h>
 #include <asm/ti-common/davinci_nand.h>
index f4c4b1d663663f95846000640f5cb3c826aebca2..87506a77a17e5b274ae18c13c01dbc0eb36dc81f 100644 (file)
@@ -5,10 +5,12 @@
 
 #include <common.h>
 #include <init.h>
+#include <log.h>
 #include <nuvoton_nct6102d.h>
 #include <asm/gpio.h>
 #include <asm/ibmpc.h>
 #include <asm/pnp_def.h>
+#include <linux/delay.h>
 
 int board_early_init_f(void)
 {
index b6f8b11a10cc3850b3c7f3750d7455b3eeb360d1..8f50433f17cef120cac5ed0efcdbcea0cae0047b 100644 (file)
@@ -8,7 +8,9 @@
 #include <common.h>
 #include <dm.h>
 #include <eeprom.h>
+#include <image.h>
 #include <init.h>
+#include <net.h>
 #include <dm/device-internal.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
@@ -30,6 +32,7 @@
 #include <i2c_eeprom.h>
 #include <mmc.h>
 #include <usb.h>
+#include <linux/delay.h>
 #include <usb/ehci-ci.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index f2c3ac3e281c5243cd202709c54890050dd4cab4..ed4dea45ea8b7a0303715ebc9b3a222bbf5279a2 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/imx-regs.h>
@@ -24,6 +25,7 @@
 #include <i2c.h>
 #include <mmc.h>
 #include <spl.h>
+#include <linux/delay.h>
 
 #define ENET_PAD_CTRL                                                  \
        (PAD_CTL_PUS_100K_UP | PAD_CTL_SPEED_MED | PAD_CTL_DSE_40ohm |  \
index 85d56f6082bc4221c4359ca6cf7aee68051a221e..26e827bc3849acbf9b0cf3af56865d699a48c9a2 100644 (file)
@@ -5,6 +5,8 @@
 
 #include <common.h>
 #include <adc.h>
+#include <log.h>
+#include <net.h>
 #include <asm/arch/stm32.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/gpio.h>
@@ -30,6 +32,8 @@
 #include <mtd_node.h>
 #include <netdev.h>
 #include <phy.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <power/regulator.h>
 #include <remoteproc.h>
 #include <reset.h>
index 6fc1631bf723872b8cf04827c18f308fe929ca33..a9b8a32108282a8741199261d58b59fda5981441 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/mx7ulp-pins.h>
index fc4587ed0d5af94b6e65e24870dce62aa91250ca..a602b623adb01978a4851f0eb0ce50050cd6b531 100644 (file)
@@ -13,6 +13,7 @@
 #include <env.h>
 #include <errno.h>
 #include <init.h>
+#include <log.h>
 #include <spl.h>
 #include <i2c.h>
 #include <watchdog.h>
index aa99d29c21a57bd510b3fc3636de61470808e5e3..81f1abf2fad9ffd7d782a82e609709b2b5b4a8af 100644 (file)
  * http://www.ethernut.de/
  */
 #include <common.h>
+#include <command.h>
 #include <asm/arch/at91sam9260.h>
 #include <asm/arch/at91_common.h>
 #include <asm/arch/gpio.h>
 #include <asm/io.h>
 #include <i2c.h>
+#include <linux/delay.h>
 
 #include "ethernut5_pwrman.h"
 
@@ -215,7 +217,7 @@ void ethernut5_print_voltage(void)
 /*
  * Process the board specific 'pwrman' command.
  */
-int do_pwrman(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_pwrman(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        u8 val;
        int i;
index 9aa71b99419d83385cbaff9dd63d9111b6a95523..d3e2981fa8feb518b554689fb95328d3de5a9e26 100644 (file)
@@ -5,12 +5,15 @@
  * Based on other i.MX6 boards
  */
 
+#include <common.h>
 #include <init.h>
+#include <net.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/mx6-pins.h>
 #include <env.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/gpio.h>
 #include <asm/mach-imx/mxc_i2c.h>
index c5a1cc95e4a602b39cd1daaeade2949b3b2f7098..5d8f62244b0384711ab4f52ff938011aa7f290c3 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <syscon.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/clock.h>
index bf5c020af13bf226e6d3ba48c2d57032d9e68982..e0834f03c70b16a1c1b8a81e91b84c29536f86d2 100644 (file)
  * Copyright (C) 2013 Jon Nettleton <jon.nettleton@gmail.com>.
  */
 
+#include <common.h>
 #include <init.h>
+#include <net.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/mx6-pins.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/gpio.h>
 #include <asm/mach-imx/iomux-v3.h>
index 4e1873300142204e6ba61808cc0a33177f6bb497..69e8ef46f1f5fba3e003abb833346e29a53daf87 100644 (file)
@@ -6,6 +6,8 @@
 #include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <init.h>
+#include <log.h>
 #include <virtio_types.h>
 #include <virtio.h>
 
index c3f96988b1d49c63ec012da5c09772db2304dfd7..dcfd3f20bee66176f43716361ab5f4f372cf7371 100644 (file)
@@ -7,6 +7,8 @@
 #include <dm.h>
 #include <env.h>
 #include <fdtdec.h>
+#include <image.h>
+#include <log.h>
 #include <spl.h>
 #include <init.h>
 #include <virtio_types.h>
index 9483516ca0dbaedfa51a7642426b8964fe4b93f3..5a2003d50988162cefde4d9336cd6e74f6a38793 100644 (file)
@@ -10,6 +10,7 @@
 #include <env.h>
 #include <hang.h>
 #include <init.h>
+#include <log.h>
 #include <mmc.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
index a9820a9028e23a89450dab3c3c78d7ad8b2a136a..6a0612481a8adebd7e21af19f0db748cd232ed82 100644 (file)
@@ -6,8 +6,11 @@
  */
 
 #include <common.h>
+#include <image.h>
+#include <init.h>
 #include <serial.h>
 #include <spl.h>
+#include <linux/delay.h>
 
 #include <asm/io.h>
 #include <asm/gpio.h>
index 6c5992733cc679259853d61bf55b55bb4c1b6919..fd7d6db9bc2da10fa2162e6a52ddf9cc9172dc01 100644 (file)
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <env.h>
 #include <init.h>
+#include <net.h>
 #include <serial.h>
 #include <vsprintf.h>
 #include <asm/io.h>
index db8d7bfe9b310c9cc130a66b28c6325043c8ebb3..ba91f4b3c843e7ffb38d1ff3796466e3f9a700cc 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <console.h>
 #include <ioports.h>
 #include <mpc83xx.h>
@@ -36,7 +37,7 @@ void generate_answer(struct caddy_cmd *cmd, uint32_t status, uint32_t *result)
                caddy_interface->answer_in = ptr;
 }
 
-int do_caddy(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_caddy(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        unsigned long base_addr;
        uint32_t ptr;
index 349e7b567c4012ab61103c8e733010c3446392e8..bf51d39b67c8869e6eb378e0f8a79b9d0b573f71 100644 (file)
@@ -18,6 +18,7 @@
 #include <pci.h>
 #include <i2c.h>
 #include <asm/fsl_i2c.h>
+#include <linux/delay.h>
 #include "vme8349pin.h"
 
 static struct pci_region pci1_regions[] = {
index ff811643a67e6f05a308149e2fafcf38d02fc791..f54c89d154b41ce23b5de21d925b9a10e8d3bd9b 100644 (file)
@@ -16,6 +16,7 @@
 #include <init.h>
 #include <ioports.h>
 #include <mpc83xx.h>
+#include <net.h>
 #include <asm/mpc8349_pci.h>
 #if defined(CONFIG_OF_LIBFDT)
 #include <linux/libfdt.h>
index a2b0eb5a996c09b687cffc0fc413ac86085549b4..1965985a0f4eb96a9347146cdecf80ea05bb8e86 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <hang.h>
+#include <log.h>
 
 #ifdef CONFIG_SPL_BUILD
 static int setup_led(void)
index 5f0a6594b679ae6a6673f674f415dd064057d56d..28dcc2a6903af649938ce2db4ace2adc28e6f483 100644 (file)
@@ -8,6 +8,7 @@
 #include <asm/io.h>
 #include <asm/arch/grf_rk3308.h>
 #include <asm/arch-rockchip/hardware.h>
+#include <linux/bitops.h>
 
 #if defined(CONFIG_DEBUG_UART)
 #define GRF_BASE       0xff000000
index 0fe1914c0fc857d9b8844e4036e54da6d37d7164..7c3a8036549ecbe267083b47a9eb684ed8c879d7 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <asm/arch-rockchip/periph.h>
 #include <power/regulator.h>
 #include <spl_gpio.h>
index e7f684bfb3a4da03887a386689ce68d60c892f0a..e10f948ae5e8aab5f4cbb9db088c632ccdbaed8a 100644 (file)
@@ -8,12 +8,15 @@
 #include <env.h>
 #include <fdt_support.h>
 #include <i2c.h>
+#include <image.h>
 #include <init.h>
 #include <irq_func.h>
+#include <log.h>
 #include <netdev.h>
 #include <linux/compiler.h>
 #include <asm/mmu.h>
 #include <asm/processor.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/cache.h>
 #include <asm/immap_85xx.h>
index de9f5f5f8bcb82071fa11534a09bb40be867e9f3..d3aa349ddf860b7d373c3fd3ffb7ec9f73c4b0b1 100644 (file)
@@ -7,6 +7,8 @@
 #include <i2c.h>
 #include <hwconfig.h>
 #include <fsl_ddr.h>
+#include <init.h>
+#include <log.h>
 #include <asm/mmu.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
index 67fb1b9b2bcc14a55be06b50b0a5128d5f403eb1..6d5f3d1fda05dc02bb6f6a2353b31047de48d242 100644 (file)
@@ -19,6 +19,8 @@
  */
 
 #include <common.h>
+#include <log.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/fsl_serdes.h>
 #include <fm_eth.h>
index 30e7a1f7ed90a578260b0cb7e67e4cf6f8704783..75c2aec75d31595ca31499bec0fce5b57523bde3 100644 (file)
@@ -4,6 +4,8 @@
  */
 
 #include <common.h>
+#include <image.h>
+#include <init.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>
 #include <asm/cache.h>
index 79df0f3cbd5516db8005a8bee0f5e233a06fd742..4ae9ba06c818664a75a04d7107ded1c095aae725 100644 (file)
@@ -12,6 +12,7 @@
 #include <asm/fsl_law.h>
 #include <fsl_ddr_sdram.h>
 #include <asm/global_data.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index ab05d84190fb225a50d587ba4dc91fbfc6d382a0..6870674f7a4144a6fd29eada5274519a69018ca5 100644 (file)
@@ -4,7 +4,9 @@
  */
 
 #include <common.h>
+#include <image.h>
 #include <init.h>
+#include <net.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>
 #include <asm/cache.h>
index dc72b2e2f2e98cfb69c222bb7a4dc7e9abdc442c..dd56ad6b2b3454ade4da5c91af413d5766fa8c46 100644 (file)
@@ -12,6 +12,7 @@
 #include <asm/fsl_law.h>
 #include <fsl_ddr_sdram.h>
 #include <asm/global_data.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index a9ea986579aee3fcdcdc91c7a062ae53de96b0fc..74502c6d18e9da807c246f6e9c3afd27f6a4276b 100644 (file)
@@ -4,7 +4,9 @@
  */
 
 #include <common.h>
+#include <image.h>
 #include <init.h>
+#include <net.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>
 #include <asm/cache.h>
index f57047d1d3980dd03ffde0906fb7bd01e31d50a3..826af428ce14a4230a6f4693f9988c56adea5568 100644 (file)
@@ -17,6 +17,7 @@
 #include <common.h>
 #include <command.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 #include "cpld.h"
 /**
@@ -89,7 +90,7 @@ static void cpld_dump_regs(void)
 #endif
 
 #ifndef CONFIG_SPL_BUILD
-int cpld_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int cpld_cmd(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int rc = 0;
        unsigned char value;
index d18b4fc24b2431c3ada5952c9fe973e69fcbcdab..bb1ef9979279ad9d5f42dc8125dcd4fec12a8dde 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #ifndef CONFIG_ARMV7_NONSEC
 #error " Deep sleep needs non-secure mode support. "
index 36b620ca23a04be6ced9f837a9f1c8ab5b148b64..638aa3c19a4d3a0ece85068fbfa62635cb5ff57f 100644 (file)
@@ -8,8 +8,8 @@
 #include <env.h>
 #include <fsl_validate.h>
 
-int do_esbc_halt(cmd_tbl_t *cmdtp, int flag, int argc,
-                               char * const argv[])
+int do_esbc_halt(struct cmd_tbl *cmdtp, int flag, int argc,
+                char *const argv[])
 {
        if (fsl_check_boot_mode_secure() == 0) {
                printf("Boot Mode is Non-Secure. Not entering spin loop.\n");
@@ -24,8 +24,8 @@ loop:
 }
 
 #ifndef CONFIG_SPL_BUILD
-static int do_esbc_validate(cmd_tbl_t *cmdtp, int flag, int argc,
-                               char * const argv[])
+static int do_esbc_validate(struct cmd_tbl *cmdtp, int flag, int argc,
+                           char *const argv[])
 {
        char *hash_str = NULL;
        uintptr_t haddr;
index 7f11123e6f3ecdad5c34f80e8f45d48fdde281b0..02a271895bdc546ad6e4212e6637d3df98c9ff84 100644 (file)
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <stdio_dev.h>
 #include <i2c.h>
+#include <linux/delay.h>
 
 #define I2C_DVI_INPUT_DATA_FORMAT_REG          0x1F
 #define I2C_DVI_PLL_CHARGE_CNTL_REG            0x33
index a024e7239e6e81b834e87c55bc1183fc2e1f730c..cafb24971b217f470fbd8cf0a07a8420d4aafc21 100644 (file)
@@ -9,6 +9,7 @@
 #include <fsl_validate.h>
 #include <fsl_secboot_err.h>
 #include <fsl_sfp.h>
+#include <log.h>
 #include <dm/root.h>
 
 #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_FRAMEWORK)
index 2bf9d587460eea63c25c0de3ed38cf3603a928fb..564a8b3b54ff4b7c258986295f3ac10a1139a7f7 100644 (file)
@@ -5,11 +5,13 @@
 
 #include <common.h>
 #include <dm.h>
+#include <flash.h>
 #include <fsl_validate.h>
 #include <fsl_secboot_err.h>
 #include <fsl_sfp.h>
 #include <fsl_sec.h>
 #include <command.h>
+#include <log.h>
 #include <malloc.h>
 #include <u-boot/rsa-mod-exp.h>
 #include <hash.h>
index f1e60cf2771c68eee70b99e19e084fa59d6d54f2..2143395781a19b5fd778b1d5f76ed2d9677877f3 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 
 #include "ics307_clk.h"
index 4f8e8b7d42cf88a3b4eb7e046c481f117970a286..bb3cdac8418f5aed9d6934d5a09b3f711014683c 100644 (file)
@@ -5,6 +5,8 @@
  */
 
 #include "idt8t49n222a_serdes_clk.h"
+#include <log.h>
+#include <linux/delay.h>
 
 #define DEVICE_ID_REG          0x00
 
index d4f0f0c652e841430aff116d60415c0cee61ddb9..d6b4c65a3c0856e50f360e64b365e40023c1ae44 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <errno.h>
 #include <i2c.h>
+#include <log.h>
 #include <power/pmic.h>
 #include <power/mc34vr500_pmic.h>
 
index 739a416730d74ee77dec96a8c1f8425f95562903..6f6f4d40fcb8c23e103eb648a30cda402f798ae7 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/immap_85xx.h>
 #include "sleep.h"
 #ifdef CONFIG_U_QE
index d7254010bff7513a409685f0a5601cf5c780e13c..37a6f775a057bfe0c7ac7993691693e22fb55ae7 100644 (file)
@@ -171,7 +171,8 @@ void pixis_sysclk_set(unsigned long sysclk)
        PIXIS_WRITE(sclk[2], sclk2);
 }
 
-int pixis_reset_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int pixis_reset_cmd(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[])
 {
        unsigned int i;
        unsigned long sysclk;
index 0e6f2135b4a3e41f5538b282346e3578385636f0..ee8ed616cb51ba82a17dcbc85508b9a47d26f8d0 100644 (file)
@@ -4,6 +4,8 @@
  */
 
 #include <common.h>
+#include <log.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <fsl_csu.h>
 #include <asm/arch/ns_access.h>
index e9b71278333be8df61d2ffda606cdb8f840723c1..4127fbc1396c979cc55847472a3c8ddff0ce0d22 100644 (file)
@@ -266,8 +266,8 @@ static void set_px_go_with_watchdog(void)
 /* Disable the watchdog
  *
  */
-static int pixis_disable_watchdog_cmd(cmd_tbl_t *cmdtp, int flag, int argc,
-                                     char * const argv[])
+static int pixis_disable_watchdog_cmd(struct cmd_tbl *cmdtp, int flag, int argc,
+                                     char *const argv[])
 {
        /* Disable the VELA sequencer and the watchdog */
        clrbits_8(pixis_base + PIXIS_VCTL, 9);
@@ -285,7 +285,8 @@ U_BOOT_CMD(
 
 /* Enable or disable SGMII mode for a TSEC
  */
-static int pixis_set_sgmii(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int pixis_set_sgmii(struct cmd_tbl *cmdtp, int flag, int argc,
+                          char *const argv[])
 {
        int which_tsec = -1;
        unsigned char mask;
@@ -411,7 +412,8 @@ static unsigned long strfractoint(char *strptr)
        return intval + decval;
 }
 
-static int pixis_reset_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int pixis_reset_cmd(struct cmd_tbl *cmdtp, int flag, int argc,
+                          char *const argv[])
 {
        unsigned int i;
        char *p_cf = NULL;
index dd1ee90b3c764eb532a6e3e8376a9c4badeb0a2a..591203132f920bea6105d3819a7c44ae5899a892 100644 (file)
@@ -233,7 +233,8 @@ void __weak qixis_dump_switch(void)
        puts("Reverse engineering switch is not implemented for this board\n");
 }
 
-static int qixis_reset_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int qixis_reset_cmd(struct cmd_tbl *cmdtp, int flag, int argc,
+                          char *const argv[])
 {
        int i;
 
index f3e0fb2cd5e4e06f68684236e75e63d68a03f756..23157930101f401f332b3a9e94948a34899de62b 100644 (file)
@@ -14,6 +14,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <log.h>
 #include <net.h>
 #include <linux/libfdt.h>
 #include <tsec.h>
index c487e3a515f36f23c414ffe6d5003f6972e09238..728245d81cda182d79a50c8594c8b4af27b36c9c 100644 (file)
@@ -10,7 +10,9 @@
 #include <command.h>
 #include <env.h>
 #include <i2c.h>
+#include <init.h>
 #include <linux/ctype.h>
+#include <linux/delay.h>
 #include <u-boot/crc.h>
 
 #ifdef CONFIG_SYS_I2C_EEPROM_CCID
@@ -382,7 +384,7 @@ static void set_mac_address(unsigned int index, const char *string)
        update_crc();
 }
 
-int do_mac(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_mac(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        char cmd;
 
index 20852476dd5d93604c2ae6823fc6f10bf99009a3..ed0d9b471cad02140bff6a14c6233e41bb08c1d5 100644 (file)
@@ -8,6 +8,7 @@
 #include <env.h>
 #include <i2c.h>
 #include <irq_func.h>
+#include <log.h>
 #include <asm/io.h>
 #ifdef CONFIG_FSL_LSCH2
 #include <asm/arch/immap_lsch2.h>
@@ -16,6 +17,7 @@
 #else
 #include <asm/immap_85xx.h>
 #endif
+#include <linux/delay.h>
 #include "vid.h"
 
 int __weak i2c_multiplexer_select_vid_channel(u8 channel)
@@ -925,9 +927,9 @@ exit:
 
 }
 
-static int do_vdd_override(cmd_tbl_t *cmdtp,
+static int do_vdd_override(struct cmd_tbl *cmdtp,
                           int flag, int argc,
-                          char * const argv[])
+                          char *const argv[])
 {
        ulong override;
 
@@ -941,9 +943,8 @@ static int do_vdd_override(cmd_tbl_t *cmdtp,
        return 0;
 }
 
-static int do_vdd_read(cmd_tbl_t *cmdtp,
-                        int flag, int argc,
-                        char * const argv[])
+static int do_vdd_read(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        if (argc < 1)
                return CMD_RET_USAGE;
index f0d273ca201bb9859d1872b86ded3fc7bf46152a..8aceb8ef178726f715e01c9b7767ceabdfdba5c0 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include "vsc3316_3308.h"
+#include <log.h>
 
 #define REVISION_ID_REG                0x7E
 #define INTERFACE_MODE_REG             0x79
index acd5343b21c088bd86c9276539cadea8ce0700a3..03679e723f2c29f05c5663c7777fcd19d9f98b02 100644 (file)
@@ -5,6 +5,7 @@
 
 /* Power-One ZM7300 DPM */
 #include "zm7300.h"
+#include <log.h>
 
 #define DPM_WP 0x96
 #define WRP_OPCODE 0x01
index 66eea32e0779c78bf72527bc908e1a8eb6c0fd71..f0c7bed68f0c7550b54805963cf7de04faf7de68 100644 (file)
@@ -7,6 +7,7 @@
 #include <command.h>
 #include <env.h>
 #include <fdt_support.h>
+#include <image.h>
 #include <init.h>
 #include <netdev.h>
 #include <linux/compiler.h>
index 9c8731ce78064b401275f9e3a75c9a624b201b58..19f6e8700d5f6cba45aa9b620f42d750a5cdba22 100644 (file)
@@ -6,6 +6,8 @@
 #include <common.h>
 #include <i2c.h>
 #include <hwconfig.h>
+#include <init.h>
+#include <log.h>
 #include <vsprintf.h>
 #include <asm/mmu.h>
 #include <fsl_ddr_sdram.h>
index 45c23df27efb1caf2f506d7790729d1e7d966f20..a17ca7ac60a9d35412a459967742b2a27abf09f7 100644 (file)
@@ -48,6 +48,7 @@
  */
 
 #include <common.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/fsl_serdes.h>
 #include <fm_eth.h>
index 0979c5f48909958b8d7a5794bd98fed277abac01..801a6f44f0f1a0a12747d47a2cce41ef210ca4cf 100644 (file)
@@ -5,6 +5,8 @@
 
 #include <common.h>
 #include <command.h>
+#include <fdt_support.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/mmu.h>
 #include <asm/processor.h>
@@ -20,6 +22,7 @@
 #include <fsl_mdio.h>
 #include <miiphy.h>
 #include <phy.h>
+#include <linux/delay.h>
 
 #include "../common/ngpixis.h"
 #include "../common/fman.h"
index 1962b7e3c73b897b4353ddac0d405d746cd285a6..8ca220b84051f26c6701161471412f168f6f1a64 100644 (file)
@@ -48,6 +48,8 @@
  */
 
 #include <common.h>
+#include <log.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/fsl_serdes.h>
 #include <fm_eth.h>
index 53ebb949df4e5a297c55944110472bb48e45710e..c43af9bc484e3a0b9101a7344db17c89402ff095 100644 (file)
@@ -4,6 +4,8 @@
  */
 
 #include <common.h>
+#include <env.h>
+#include <init.h>
 #include <miiphy.h>
 #include <netdev.h>
 
index 4d34622465b39f2ad37f502348e9577a7a920477..19c8a5aa235419d1cdef886bbcf9a225b60f132a 100644 (file)
@@ -4,8 +4,12 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <cpu_func.h>
 #include <hang.h>
+#include <image.h>
+#include <init.h>
+#include <log.h>
 #include <spl.h>
 #include <asm/io.h>
 #include <asm/mach-imx/iomux-v3.h>
index 4f33c0e7c9e032b81dacc9a5fa49db5d9c61aebf..ea02bb75f411c0f5ea0b71ed2d8a90bbe654600e 100644 (file)
@@ -4,6 +4,8 @@
  */
 
 #include <common.h>
+#include <env.h>
+#include <init.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 45417b24464d026fb78ed8072a406c6cd5876ee1..dd38c1015cf4eaf03cce84fc0d5f317467cddc47 100644 (file)
@@ -5,8 +5,12 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <cpu_func.h>
 #include <hang.h>
+#include <image.h>
+#include <init.h>
+#include <log.h>
 #include <spl.h>
 #include <asm/io.h>
 #include <asm/mach-imx/iomux-v3.h>
index f004af681b941d1e6fb740718a5cd725b261824e..97ba15645a2b500f6818f7e9cdfe1de9c3410c77 100644 (file)
@@ -4,7 +4,9 @@
  */
 
 #include <common.h>
+#include <env.h>
 #include <errno.h>
+#include <init.h>
 #include <asm/mach-imx/iomux-v3.h>
 #include <asm-generic/gpio.h>
 #include <asm/arch/imx8mp_pins.h>
index c5f640dc7b76253813a3a849c2a6611ecce90331..cd5b32c3f8c4e1fd0d4d55aa22d4bb16afc2e3ed 100644 (file)
@@ -5,8 +5,12 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <cpu_func.h>
 #include <hang.h>
+#include <image.h>
+#include <init.h>
+#include <log.h>
 #include <spl.h>
 #include <asm/io.h>
 #include <errno.h>
index b2f464abb1a1a1598e790182219f5405e357e2e9..ae3be5785c9fcc6db969a78044c931c3f501706e 100644 (file)
@@ -21,6 +21,7 @@
 #include <asm/mach-imx/mxc_i2c.h>
 #include <asm/arch/clock.h>
 #include <spl.h>
+#include <linux/bitops.h>
 #include <power/pmic.h>
 #include <power/pfuze100_pmic.h>
 #include "../common/pfuze.h"
index 6ba6a52ebb60e9695f170d1e21ec2191ffd21304..2c6ae48da7853074c0da217beed71353770d8f81 100644 (file)
@@ -7,6 +7,9 @@
 
 #include <common.h>
 #include <hang.h>
+#include <image.h>
+#include <init.h>
+#include <log.h>
 #include <asm/io.h>
 #include <errno.h>
 #include <asm/io.h>
@@ -19,6 +22,7 @@
 #include <asm/mach-imx/mxc_i2c.h>
 #include <fsl_esdhc_imx.h>
 #include <mmc.h>
+#include <linux/delay.h>
 #include <power/pmic.h>
 #include <power/pfuze100_pmic.h>
 #include <spl.h>
index ba99002cf29cfd608f0d1e865e960f6bf29c759c..9dee12a2c6a2aa93d25358f6cca6412d9b084650 100644 (file)
@@ -6,6 +6,9 @@
 
 #include <common.h>
 #include <dm.h>
+#include <image.h>
+#include <init.h>
+#include <log.h>
 #include <spl.h>
 #include <dm/uclass.h>
 #include <dm/device.h>
index dc9ffaabf205aacb7f41a0b9ba6a89a0899d850e..8b8a3c6300ebc07258e2c735538b2d4d7c1e4089 100644 (file)
@@ -8,6 +8,7 @@
 #include <env.h>
 #include <errno.h>
 #include <init.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <fsl_esdhc_imx.h>
 #include <fdt_support.h>
index eefee64ab18f77fd61a31ac749dd2f449ed75be3..881d297cf17fe46a0c37fa2925f2fdf9ce08abc1 100644 (file)
@@ -6,6 +6,9 @@
 
 #include <common.h>
 #include <dm.h>
+#include <image.h>
+#include <init.h>
+#include <log.h>
 #include <spl.h>
 #include <dm/uclass.h>
 #include <dm/device.h>
index 06ad524d5d215e59c035ea143251dd6ab0c1ef99..0cef6071febacc1e6c6617a227b3043ddc174724 100644 (file)
@@ -6,6 +6,8 @@
 
 #include <common.h>
 #include <dm.h>
+#include <init.h>
+#include <log.h>
 #include <ram.h>
 #include <spl.h>
 #include <asm/io.h>
index bda03b5ea50d6290a5818b494db664ac42580abe..edc7fb176bbc1d11b80954356fa3d1204e4104a5 100644 (file)
@@ -6,6 +6,8 @@
 
 #include <common.h>
 #include <dm.h>
+#include <init.h>
+#include <log.h>
 #include <ram.h>
 #include <spl.h>
 #include <asm/io.h>
index bd1df092f9bbd2442275a2bedf68ca35c2d11021..eaea1c46e48e250a4ec6c19328ccaf067cfa748f 100644 (file)
@@ -18,6 +18,7 @@
 #include <asm/arch-fsl-layerscape/config.h>
 #include <asm/arch-fsl-layerscape/immap_lsch2.h>
 #include <asm/arch/fsl_serdes.h>
+#include <linux/delay.h>
 #include <net/pfe_eth/pfe_eth.h>
 #include <dm/platform_data/pfe_dm_eth.h>
 
index d138c9384eb0b156e8bf6d7f10a1132875ddb1ab..f63377fdd684180911909583db80f695a534c799 100644 (file)
@@ -6,6 +6,8 @@
 #include <common.h>
 #include <fdt_support.h>
 #include <i2c.h>
+#include <asm/cache.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/fsl_serdes.h>
index b9018444aa515aaa5dcd51a401abdd61c8bae705..b4ef60738ebf379941badb446e50196dea2ee7a7 100644 (file)
@@ -17,6 +17,7 @@
 #include <asm/arch-fsl-layerscape/config.h>
 #include <asm/arch-fsl-layerscape/immap_lsch2.h>
 #include <asm/arch/fsl_serdes.h>
+#include <linux/delay.h>
 #include "../common/qixis.h"
 #include <net/pfe_eth/pfe_eth.h>
 #include <dm/platform_data/pfe_dm_eth.h>
index 30bf1047d53470b5d2715ffa711d1bdfd8a358dd..24978314a172120879361fef410886cab70b08ca 100644 (file)
@@ -6,6 +6,8 @@
 #include <common.h>
 #include <i2c.h>
 #include <fdt_support.h>
+#include <asm/cache.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/fsl_serdes.h>
index 5edcfcf1ceafb136ce383a9708b5c607879d06ab..63d40de2a3ec936e3aa10fdea370f0540d40a45d 100644 (file)
@@ -18,6 +18,7 @@
 #include <asm/arch-fsl-layerscape/config.h>
 #include <asm/arch-fsl-layerscape/immap_lsch2.h>
 #include <asm/arch/fsl_serdes.h>
+#include <linux/delay.h>
 #include <net/pfe_eth/pfe_eth.h>
 #include <dm/platform_data/pfe_dm_eth.h>
 #include <i2c.h>
index ab83ef11a098b1b0437366ccc498d8c831ce28f0..5b814f7abf53f0cc42414611c7c8fca4365f1cdd 100644 (file)
@@ -4,9 +4,12 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <fdt_support.h>
 #include <hang.h>
 #include <i2c.h>
+#include <asm/cache.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/fsl_serdes.h>
@@ -392,8 +395,8 @@ static int convert_flash_bank(int bank)
        return ret;
 }
 
-static int flash_bank_cmd(cmd_tbl_t *cmdtp, int flag, int argc,
-                         char * const argv[])
+static int flash_bank_cmd(struct cmd_tbl *cmdtp, int flag, int argc,
+                         char *const argv[])
 {
        if (argc != 2)
                return CMD_RET_USAGE;
index b4201e76d1c7bf896de9ac1d820dcaa769c9aa5c..fe97b829833a8c4bcc67615a4bbeed1b7d4fd4e2 100644 (file)
@@ -7,10 +7,12 @@
 #include <clock_legacy.h>
 #include <fdt_support.h>
 #include <init.h>
+#include <net.h>
 #include <asm/arch/immap_ls102xa.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/fsl_serdes.h>
 #include <asm/arch/ls102xa_stream_id.h>
+#include <linux/delay.h>
 
 #include <asm/arch/ls102xa_devdis.h>
 #include <asm/arch/ls102xa_soc.h>
index d3e2e53321764113bfad92969263c692fc7edde5..f84bce95a84541cda5260f37292a294517762923 100644 (file)
@@ -6,8 +6,11 @@
 #include <common.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
+#include <init.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
+#include <linux/delay.h>
 #include "ddr.h"
 
 DECLARE_GLOBAL_DATA_PTR;
index d0a98836e2b8155be41eb6664d75ef52191575a2..2de62cf0952e0650a0b0ce4a9cbaee5b03c04a1a 100644 (file)
@@ -14,6 +14,7 @@
  */
 
 #include <common.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/arch/fsl_serdes.h>
 #include <fsl_mdio.h>
index 1ae822e5107b55675386b3fa164526914fbd7ea7..c03e96b4932f3456536959b437f08e7c1685925c 100644 (file)
@@ -9,6 +9,7 @@
 #include <fdt_support.h>
 #include <i2c.h>
 #include <init.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/immap_ls102xa.h>
 #include <asm/arch/clock.h>
index 3876910cbbeb5ccac97e4fdb4f4fb324bc979a60..b05037d023c9dbfbc29f6e4ace65d46409a6dda9 100644 (file)
@@ -5,11 +5,13 @@
 #include <clock_legacy.h>
 #include <fdt_support.h>
 #include <init.h>
+#include <net.h>
 #include <asm/arch-ls102xa/ls102xa_soc.h>
 #include <asm/arch/ls102xa_devdis.h>
 #include <asm/arch/immap_ls102xa.h>
 #include <asm/arch/ls102xa_soc.h>
 #include <asm/arch/fsl_serdes.h>
+#include <linux/delay.h>
 #include "../common/sleep.h"
 #include <fsl_validate.h>
 #include <fsl_immap.h>
index d1ff7b8ba6f2691dc0098b6d4bbc7d5e577add02..6208a38f161f13889908722ea6acf23335c874de 100644 (file)
@@ -6,9 +6,11 @@
 
 #include <common.h>
 #include <clock_legacy.h>
+#include <command.h>
 #include <fdt_support.h>
 #include <i2c.h>
 #include <init.h>
+#include <net.h>
 #include <asm/io.h>
 #include <asm/arch/immap_ls102xa.h>
 #include <asm/arch/clock.h>
@@ -26,6 +28,7 @@
 #include <fsl_sec.h>
 #include <fsl_devdis.h>
 #include <spl.h>
+#include <linux/delay.h>
 #include "../common/sleep.h"
 #ifdef CONFIG_U_QE
 #include <fsl_qe.h>
@@ -611,8 +614,8 @@ static void convert_flash_bank(char bank)
        cpld_data->system_rst = CONFIG_RESET;
 }
 
-static int flash_bank_cmd(cmd_tbl_t *cmdtp, int flag, int argc,
-                         char * const argv[])
+static int flash_bank_cmd(struct cmd_tbl *cmdtp, int flag, int argc,
+                         char *const argv[])
 {
        if (argc != 2)
                return CMD_RET_USAGE;
@@ -632,8 +635,8 @@ U_BOOT_CMD(
        "bank[0-upper bank/1-lower bank] (e.g. boot_bank 0)"
 );
 
-static int cpld_reset_cmd(cmd_tbl_t *cmdtp, int flag, int argc,
-                         char * const argv[])
+static int cpld_reset_cmd(struct cmd_tbl *cmdtp, int flag, int argc,
+                         char *const argv[])
 {
        struct cpld_data *cpld_data = (void *)(CONFIG_SYS_CPLD_BASE);
 
@@ -691,8 +694,8 @@ static void print_serdes_mux(void)
                printf("B.\n");
 }
 
-static int serdes_mux_cmd(cmd_tbl_t *cmdtp, int flag, int argc,
-                         char * const argv[])
+static int serdes_mux_cmd(struct cmd_tbl *cmdtp, int flag, int argc,
+                         char *const argv[])
 {
        if (argc != 2)
                return CMD_RET_USAGE;
index 1e2973f0c8f351529f01e47cdd0d6aea3efb7a2b..fd7815e128f36a9035d21775caa579c805ee66a7 100644 (file)
@@ -4,9 +4,11 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <malloc.h>
 #include <errno.h>
 #include <fsl_ddr.h>
+#include <net.h>
 #include <asm/io.h>
 #include <hwconfig.h>
 #include <fdt_support.h>
index d29a3ad797bd0cf185713a77c13e4d310b434acd..c0fc9aadf041507655ee6ce1c776d8c26875a795 100644 (file)
@@ -9,6 +9,7 @@
 #ifdef CONFIG_FSL_DEEP_SLEEP
 #include <fsl_sleep.h>
 #endif
+#include <log.h>
 #include <asm/arch/clock.h>
 #include "ddr.h"
 
index e1919d298855cc64485a971d376e212d8cfe53e7..00125728626c9c38adf43cf1c3cbee6abe239697 100644 (file)
@@ -5,6 +5,8 @@
  */
 
 #include <common.h>
+#include <log.h>
+#include <net.h>
 #include <asm/io.h>
 #include <netdev.h>
 #include <fdt_support.h>
index 2d4b18cdbcb56a9e8f35bcaa50bc13b5c578e422..6d923cc6e8c6537af27fa63d5d446efecfc7c798 100644 (file)
@@ -8,6 +8,8 @@
 #include <i2c.h>
 #include <fdt_support.h>
 #include <fsl_ddr_sdram.h>
+#include <init.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/fsl_serdes.h>
index 00c70b1e49d89a25aa91e275366551d3c74f3614..5d2e8015a05ec6934f50baee68e055937bd9bcc0 100644 (file)
@@ -133,7 +133,7 @@ void cpld_rev_bit(unsigned char *value)
        *value = rev_val;
 }
 
-int do_cpld(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_cpld(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int rc = 0;
 
index 2677b7928f5584d39c18cc24feadba36b97373a5..f16e036d0e8c1edabffb20ec59d693b64971a3b1 100644 (file)
@@ -7,6 +7,7 @@
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
 #include "ddr.h"
+#include <log.h>
 #include <vsprintf.h>
 #ifdef CONFIG_FSL_DEEP_SLEEP
 #include <fsl_sleep.h>
index a8d0c1109b43191baa563ea8c5d4be281f23836b..4b9f94a0a560e3e48417b5e9d51a8b0b0dfb49dd 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright 2015 Freescale Semiconductor, Inc.
  */
 #include <common.h>
+#include <net.h>
 #include <asm/io.h>
 #include <netdev.h>
 #include <fm_eth.h>
index 26a192957bea2727cd782cb39eff542c954274c4..0b5f26515a27aaacf001b2972158e4938ddf37a7 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/fsl_serdes.h>
index d38e4d7ac7cda72f5d91b0f522d09969dcdbc135..09a692be1dcb9f4f505137af7fbde15dcb52b389 100644 (file)
@@ -3,6 +3,8 @@
  * Copyright 2019 NXP
  */
 #include <common.h>
+#include <fdt_support.h>
+#include <net.h>
 #include <asm/io.h>
 #include <netdev.h>
 #include <fm_eth.h>
index 71ace192e2bc087d084b022796235a947cddaa6c..e815bf84fb64ea7013807fac992eec94595a3b29 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <i2c.h>
 #include <fdt_support.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/fsl_serdes.h>
index 45b1f373a749f90a71cfbea28740652976d92fb5..f3cfbc4c39bea77c38442580bbd1dc631354309e 100644 (file)
@@ -9,6 +9,7 @@
 #ifdef CONFIG_FSL_DEEP_SLEEP
 #include <fsl_sleep.h>
 #endif
+#include <log.h>
 #include <asm/arch/clock.h>
 #include "ddr.h"
 
index 1d40e8bd17025a4cafa2903e4094674847061de3..579e2da6d8f9f156662b6b1f451b670d37f7026c 100644 (file)
@@ -5,6 +5,8 @@
  */
 
 #include <common.h>
+#include <log.h>
+#include <net.h>
 #include <asm/io.h>
 #include <netdev.h>
 #include <fdt_support.h>
index e6648e9d7027e663c1ed594993864a88c6fcae5e..b77b2ed40e6d53dd4af3d6d4feb8f2a00f4c6530 100644 (file)
@@ -8,6 +8,7 @@
 #include <i2c.h>
 #include <fdt_support.h>
 #include <fsl_ddr_sdram.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/fsl_serdes.h>
index a65751986a16ad68f5287b90e9918166faf68923..548601a5ae16b84d57d8504726e60df4bc78b307 100644 (file)
@@ -129,7 +129,7 @@ void cpld_rev_bit(unsigned char *value)
        *value = rev_val;
 }
 
-int do_cpld(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_cpld(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int rc = 0;
 
index 321222d68d71621b3a702aac8e1fb36b2adeb1d5..0e07df521190b142581e5b817a51f5a436204e65 100644 (file)
@@ -10,6 +10,7 @@
 #ifdef CONFIG_FSL_DEEP_SLEEP
 #include <fsl_sleep.h>
 #endif
+#include <log.h>
 #include <asm/arch/clock.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index 7dbfcac307bc45a4c3f00491fce15d84fad8159a..f3b1dcd306d64f4f5583375ee9514a92d6625c99 100644 (file)
@@ -3,6 +3,8 @@
  * Copyright 2016 Freescale Semiconductor, Inc.
  */
 #include <common.h>
+#include <fdt_support.h>
+#include <net.h>
 #include <asm/io.h>
 #include <netdev.h>
 #include <fm_eth.h>
index 5308cb2e1c7d3db47e6cd3d2e6a48b9ed4165981..27e213f79669f207a0eff3786ddaaaf819afea68 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <i2c.h>
 #include <fdt_support.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/fsl_serdes.h>
index c21a2ce059dfde1d7f3e722c6627abb204057035..fd9549bfbc8c8f71d44d5c1049001890faae0b99 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
+#include <log.h>
 #include <asm/arch/soc.h>
 #include <asm/arch/clock.h>
 #include "ddr.h"
index 54ef75347f604ffbd443d62aba368074329549cb..e5d9d946cb510a18f81721f70a2a9f4c0ce802f2 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
+#include <log.h>
 #include <net.h>
 #include <netdev.h>
 #include <asm/io.h>
 #include <miiphy.h>
 #include <fsl-mc/fsl_mc.h>
 #include <fsl-mc/ldpaa_wriop.h>
+#include <linux/delay.h>
 
 #include "../common/qixis.h"
 
 #include "ls1088a_qixis.h"
 
+#ifndef CONFIG_DM_ETH
 #ifdef CONFIG_FSL_MC_ENET
 
 #define SFP_TX         0
@@ -735,6 +738,7 @@ int board_eth_init(bd_t *bis)
        error = pci_eth_init(bis);
        return error;
 }
+#endif // !CONFIG_DM_ETH
 
 #if defined(CONFIG_RESET_PHY_R)
 void reset_phy(void)
@@ -742,3 +746,90 @@ void reset_phy(void)
        mc_env_boot();
 }
 #endif /* CONFIG_RESET_PHY_R */
+
+#if defined(CONFIG_DM_ETH) && defined(CONFIG_MULTI_DTB_FIT)
+
+/* Structure to hold SERDES protocols supported in case of
+ * CONFIG_DM_ETH enabled (network interfaces are described in the DTS).
+ *
+ * @serdes_block: the index of the SERDES block
+ * @serdes_protocol: the decimal value of the protocol supported
+ * @dts_needed: DTS notes describing the current configuration are needed
+ *
+ * When dts_needed is true, the board_fit_config_name_match() function
+ * will try to exactly match the current configuration of the block with a DTS
+ * name provided.
+ */
+static struct serdes_configuration {
+       u8 serdes_block;
+       u32 serdes_protocol;
+       bool dts_needed;
+} supported_protocols[] = {
+       /* Serdes block #1 */
+       {1, 21, true},
+       {1, 29, true},
+};
+
+#define SUPPORTED_SERDES_PROTOCOLS ARRAY_SIZE(supported_protocols)
+
+static bool protocol_supported(u8 serdes_block, u32 protocol)
+{
+       struct serdes_configuration serdes_conf;
+       int i;
+
+       for (i = 0; i < SUPPORTED_SERDES_PROTOCOLS; i++) {
+               serdes_conf = supported_protocols[i];
+               if (serdes_conf.serdes_block == serdes_block &&
+                   serdes_conf.serdes_protocol == protocol)
+                       return true;
+       }
+
+       return false;
+}
+
+static void get_str_protocol(u8 serdes_block, u32 protocol, char *str)
+{
+       struct serdes_configuration serdes_conf;
+       int i;
+
+       for (i = 0; i < SUPPORTED_SERDES_PROTOCOLS; i++) {
+               serdes_conf = supported_protocols[i];
+               if (serdes_conf.serdes_block == serdes_block &&
+                   serdes_conf.serdes_protocol == protocol) {
+                       if (serdes_conf.dts_needed == true)
+                               sprintf(str, "%u", protocol);
+                       else
+                               sprintf(str, "x");
+                       return;
+               }
+       }
+}
+
+int board_fit_config_name_match(const char *name)
+{
+       struct ccsr_gur *gur = (void *)(CONFIG_SYS_FSL_GUTS_ADDR);
+       char expected_dts[100];
+       char srds_s1_str[2];
+       u32 srds_s1, cfg;
+
+       cfg = in_le32(&gur->rcwsr[FSL_CHASSIS3_SRDS1_REGSR - 1]) &
+                     FSL_CHASSIS3_SRDS1_PRTCL_MASK;
+       cfg >>= FSL_CHASSIS3_SRDS1_PRTCL_SHIFT;
+       srds_s1 = serdes_get_number(FSL_SRDS_1, cfg);
+
+       /* Check for supported protocols. The default DTS will be used
+        * in this case
+        */
+       if (!protocol_supported(1, srds_s1))
+               return -1;
+
+       get_str_protocol(1, srds_s1, srds_s1_str);
+
+       sprintf(expected_dts, "fsl-ls1088a-qds-%s-x", srds_s1_str);
+
+       if (!strcmp(name, expected_dts))
+               return 0;
+
+       return -1;
+}
+#endif
index 225e787c757798ed89c994471264a361189f5ae2..3f758cef2f0e4eead4eac76849d93befc7c3c207 100644 (file)
@@ -5,6 +5,8 @@
 #include <common.h>
 #include <env.h>
 #include <i2c.h>
+#include <init.h>
+#include <log.h>
 #include <malloc.h>
 #include <errno.h>
 #include <netdev.h>
@@ -13,6 +15,7 @@
 #include <fsl_sec.h>
 #include <asm/io.h>
 #include <fdt_support.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <fsl-mc/fsl_mc.h>
 #include <env_internal.h>
index 26eada9b4989137f489e418c0f3b27e623d0547e..229fc9cc30ea89aa5ca810dcf762cc0d3f61aa54 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
+#include <log.h>
 #include <asm/arch/soc.h>
 #include <asm/arch/clock.h>
 #include "ddr.h"
index f144bf6b37bf9ab5765b2cf4fc39c8444ee97cea..95e99eabd718ece927125c0ac78c1b7dab20189c 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright 2014 Freescale Semiconductor
  */
 #include <common.h>
+#include <init.h>
 #include <malloc.h>
 #include <errno.h>
 #include <net.h>
index fffe78c301c4b7ea7277cba44883574a28afa81d..3fb2c4448c24cd2751d664e70aef7e8efdff2849 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
+#include <log.h>
 #include <asm/arch/soc.h>
 #include <asm/arch/clock.h>
 #include "ddr.h"
index bbb70a859a1e13529e375b5c3f88cdfa5f0e3728..9171cb2b6c80a973388cb9ca2b2c102ead390843 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <env.h>
+#include <log.h>
 #include <net.h>
 #include <netdev.h>
 #include <asm/io.h>
@@ -17,6 +18,7 @@
 #include <miiphy.h>
 #include <fsl-mc/fsl_mc.h>
 #include <fsl-mc/ldpaa_wriop.h>
+#include <linux/delay.h>
 
 #include "../common/qixis.h"
 
@@ -24,6 +26,8 @@
 
 #define MC_BOOT_ENV_VAR "mcinitcmd"
 
+#ifndef CONFIG_DM_ETH
+
 #if defined(CONFIG_FSL_MC_ENET) && !defined(CONFIG_SPL_BUILD)
  /* - In LS2080A there are only 16 SERDES lanes, spread across 2 SERDES banks.
  *   Bank 1 -> Lanes A, B, C, D, E, F, G, H
@@ -889,10 +893,11 @@ void ls2080a_handle_phy_interface_xsgmii(int i)
        }
 }
 #endif
+#endif // !CONFIG_DM_ETH
 
 int board_eth_init(bd_t *bis)
 {
-       int error;
+#ifndef CONFIG_DM_ETH
 #if defined(CONFIG_FSL_MC_ENET) && !defined(CONFIG_SPL_BUILD)
        struct ccsr_gur __iomem *gur = (void *)CONFIG_SYS_FSL_GUTS_ADDR;
        int serdes1_prtcl = (in_le32(&gur->rcwsr[28]) &
@@ -906,6 +911,7 @@ int board_eth_init(bd_t *bis)
        struct memac_mdio_info *memac_mdio1_info;
        unsigned int i;
        char *env_hwconfig;
+       int error;
 
        env_hwconfig = env_get("hwconfig");
 
@@ -970,8 +976,13 @@ int board_eth_init(bd_t *bis)
                        sgmii_configure_repeater(2);
        }
 #endif
-       error = pci_eth_init(bis);
-       return error;
+#endif // !CONFIG_DM_ETH
+
+#ifdef CONFIG_DM_ETH
+       return 0;
+#else
+       return pci_eth_init(bis);
+#endif
 }
 
 #if defined(CONFIG_RESET_PHY_R)
@@ -980,3 +991,100 @@ void reset_phy(void)
        mc_env_boot();
 }
 #endif /* CONFIG_RESET_PHY_R */
+
+#if defined(CONFIG_DM_ETH) && defined(CONFIG_MULTI_DTB_FIT)
+
+/* Structure to hold SERDES protocols supported in case of
+ * CONFIG_DM_ETH enabled (network interfaces are described in the DTS).
+ *
+ * @serdes_block: the index of the SERDES block
+ * @serdes_protocol: the decimal value of the protocol supported
+ * @dts_needed: DTS notes describing the current configuration are needed
+ *
+ * When dts_needed is true, the board_fit_config_name_match() function
+ * will try to exactly match the current configuration of the block with a DTS
+ * name provided.
+ */
+static struct serdes_configuration {
+       u8 serdes_block;
+       u32 serdes_protocol;
+       bool dts_needed;
+} supported_protocols[] = {
+       /* Serdes block #1 */
+       {1, 42, true},
+
+       /* Serdes block #2 */
+       {2, 65, false},
+};
+
+#define SUPPORTED_SERDES_PROTOCOLS ARRAY_SIZE(supported_protocols)
+
+static bool protocol_supported(u8 serdes_block, u32 protocol)
+{
+       struct serdes_configuration serdes_conf;
+       int i;
+
+       for (i = 0; i < SUPPORTED_SERDES_PROTOCOLS; i++) {
+               serdes_conf = supported_protocols[i];
+               if (serdes_conf.serdes_block == serdes_block &&
+                   serdes_conf.serdes_protocol == protocol)
+                       return true;
+       }
+
+       return false;
+}
+
+static void get_str_protocol(u8 serdes_block, u32 protocol, char *str)
+{
+       struct serdes_configuration serdes_conf;
+       int i;
+
+       for (i = 0; i < SUPPORTED_SERDES_PROTOCOLS; i++) {
+               serdes_conf = supported_protocols[i];
+               if (serdes_conf.serdes_block == serdes_block &&
+                   serdes_conf.serdes_protocol == protocol) {
+                       if (serdes_conf.dts_needed == true)
+                               sprintf(str, "%u", protocol);
+                       else
+                               sprintf(str, "x");
+                       return;
+               }
+       }
+}
+
+int board_fit_config_name_match(const char *name)
+{
+       struct ccsr_gur *gur = (void *)(CONFIG_SYS_FSL_GUTS_ADDR);
+       u32 rcw_status = in_le32(&gur->rcwsr[28]);
+       char srds_s1_str[2], srds_s2_str[2];
+       u32 srds_s1, srds_s2;
+       char expected_dts[100];
+
+       srds_s1 = rcw_status & FSL_CHASSIS3_RCWSR28_SRDS1_PRTCL_MASK;
+       srds_s1 >>= FSL_CHASSIS3_RCWSR28_SRDS1_PRTCL_SHIFT;
+
+       srds_s2 = rcw_status & FSL_CHASSIS3_RCWSR28_SRDS2_PRTCL_MASK;
+       srds_s2 >>= FSL_CHASSIS3_RCWSR28_SRDS2_PRTCL_SHIFT;
+
+       /* Check for supported protocols. The default DTS will be used
+        * in this case
+        */
+       if (!protocol_supported(1, srds_s1) ||
+           !protocol_supported(2, srds_s2))
+               return -1;
+
+       get_str_protocol(1, srds_s1, srds_s1_str);
+       get_str_protocol(2, srds_s2, srds_s2_str);
+
+       printf("expected_dts %s\n", expected_dts);
+       sprintf(expected_dts, "fsl-ls2080a-qds-%s-%s",
+               srds_s1_str, srds_s2_str);
+
+       if (!strcmp(name, expected_dts))
+               return 0;
+
+       printf("this is not!\n");
+       return -1;
+}
+
+#endif
index 4034bdee2842400729a0cbfcae0c08b911b8101b..b9754f9e2efdc69f7ebabcf004d1c9a235649f10 100644 (file)
@@ -4,6 +4,7 @@
  */
 #include <common.h>
 #include <env.h>
+#include <init.h>
 #include <malloc.h>
 #include <errno.h>
 #include <netdev.h>
@@ -251,6 +252,10 @@ int board_init(void)
        ppa_init();
 #endif
 
+#if !defined(CONFIG_SYS_EARLY_PCI_INIT) && defined(CONFIG_DM_ETH)
+       pci_init();
+#endif
+
        return 0;
 }
 
index 72ce872c7514092590a6b86b9a5f818eab4e04be..4571a228c59e338855eb95a080c4a41ce5639133 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
+#include <log.h>
 #include <asm/arch/soc.h>
 #include <asm/arch/clock.h>
 #include "ddr.h"
index 5e2fc7cc9833fffad3d068019e3b140d4ad3203b..b1fa3297a38e3d568a18f34fda9f2fe3d7da8b34 100644 (file)
@@ -5,6 +5,7 @@
  */
 #include <common.h>
 #include <env.h>
+#include <init.h>
 #include <malloc.h>
 #include <errno.h>
 #include <netdev.h>
index 0e928ebd8689f092fc8454090732fb20eef236bb..7794495df7da4824420b5dbb10b9a67896bc0cfd 100644 (file)
@@ -6,8 +6,10 @@
 
 #include <common.h>
 #include <env.h>
+#include <fdt_support.h>
 #include <hwconfig.h>
 #include <command.h>
+#include <log.h>
 #include <net.h>
 #include <netdev.h>
 #include <malloc.h>
 #include <asm/arch/fsl_serdes.h>
 #include <fsl-mc/fsl_mc.h>
 #include <fsl-mc/ldpaa_wriop.h>
+#include <linux/libfdt.h>
 
 #include "../common/qixis.h"
 
 DECLARE_GLOBAL_DATA_PTR;
 
+#ifndef CONFIG_DM_ETH
 #define EMI_NONE       0
 #define EMI1           1 /* Mdio Bus 1 */
 #define EMI2           2 /* Mdio Bus 2 */
@@ -439,9 +443,11 @@ static inline void do_dpmac_config(int dpmac, const char *arg_dpmacid,
 }
 
 #endif
+#endif /* !CONFIG_DM_ETH */
 
 int board_eth_init(bd_t *bis)
 {
+#ifndef CONFIG_DM_ETH
 #if defined(CONFIG_FSL_MC_ENET)
        struct memac_mdio_info mdio_info;
        struct memac_mdio_controller *regs;
@@ -564,6 +570,7 @@ int board_eth_init(bd_t *bis)
 
        cpu_eth_init(bis);
 #endif /* CONFIG_FMAN_ENET */
+#endif /* !CONFIG_DM_ETH */
 
 #ifdef CONFIG_PHY_AQUANTIA
        /*
@@ -577,7 +584,12 @@ int board_eth_init(bd_t *bis)
        gd->jt->mdio_phydev_for_ethname = mdio_phydev_for_ethname;
        gd->jt->miiphy_set_current_dev = miiphy_set_current_dev;
 #endif
+
+#ifdef CONFIG_DM_ETH
+       return 0;
+#else
        return pci_eth_init(bis);
+#endif
 }
 
 #if defined(CONFIG_RESET_PHY_R)
@@ -589,6 +601,7 @@ void reset_phy(void)
 }
 #endif /* CONFIG_RESET_PHY_R */
 
+#ifndef CONFIG_DM_ETH
 #if defined(CONFIG_FSL_MC_ENET)
 int fdt_fixup_dpmac_phy_handle(void *fdt, int dpmac_id, int node_phandle)
 {
@@ -837,4 +850,113 @@ int fdt_fixup_board_phy(void *fdt)
        return ret;
 }
 #endif // CONFIG_FSL_MC_ENET
+#endif
+
+#if defined(CONFIG_DM_ETH) && defined(CONFIG_MULTI_DTB_FIT)
+
+/* Structure to hold SERDES protocols supported in case of
+ * CONFIG_DM_ETH enabled (network interfaces are described in the DTS).
+ *
+ * @serdes_block: the index of the SERDES block
+ * @serdes_protocol: the decimal value of the protocol supported
+ * @dts_needed: DTS notes describing the current configuration are needed
+ *
+ * When dts_needed is true, the board_fit_config_name_match() function
+ * will try to exactly match the current configuration of the block with a DTS
+ * name provided.
+ */
+static struct serdes_configuration {
+       u8 serdes_block;
+       u32 serdes_protocol;
+       bool dts_needed;
+} supported_protocols[] = {
+       /* Serdes block #1 */
+       {1, 3, true},
+       {1, 7, true},
+       {1, 19, true},
+       {1, 20, true},
+
+       /* Serdes block #2 */
+       {2, 2, false},
+       {2, 3, false},
+       {2, 5, false},
+       {2, 11, true},
+
+       /* Serdes block #3 */
+       {3, 2, false},
+       {3, 3, false},
+};
+
+#define SUPPORTED_SERDES_PROTOCOLS ARRAY_SIZE(supported_protocols)
+
+static bool protocol_supported(u8 serdes_block, u32 protocol)
+{
+       struct serdes_configuration serdes_conf;
+       int i;
+
+       for (i = 0; i < SUPPORTED_SERDES_PROTOCOLS; i++) {
+               serdes_conf = supported_protocols[i];
+               if (serdes_conf.serdes_block == serdes_block &&
+                   serdes_conf.serdes_protocol == protocol)
+                       return true;
+       }
+
+       return false;
+}
 
+static void get_str_protocol(u8 serdes_block, u32 protocol, char *str)
+{
+       struct serdes_configuration serdes_conf;
+       int i;
+
+       for (i = 0; i < SUPPORTED_SERDES_PROTOCOLS; i++) {
+               serdes_conf = supported_protocols[i];
+               if (serdes_conf.serdes_block == serdes_block &&
+                   serdes_conf.serdes_protocol == protocol) {
+                       if (serdes_conf.dts_needed == true)
+                               sprintf(str, "%u", protocol);
+                       else
+                               sprintf(str, "x");
+                       return;
+               }
+       }
+}
+
+int board_fit_config_name_match(const char *name)
+{
+       struct ccsr_gur *gur = (void *)(CONFIG_SYS_FSL_GUTS_ADDR);
+       u32 rcw_status = in_le32(&gur->rcwsr[28]);
+       char srds_s1_str[2], srds_s2_str[2], srds_s3_str[2];
+       u32 srds_s1, srds_s2, srds_s3;
+       char expected_dts[100];
+
+       srds_s1 = rcw_status & FSL_CHASSIS3_RCWSR28_SRDS1_PRTCL_MASK;
+       srds_s1 >>= FSL_CHASSIS3_RCWSR28_SRDS1_PRTCL_SHIFT;
+
+       srds_s2 = rcw_status & FSL_CHASSIS3_RCWSR28_SRDS2_PRTCL_MASK;
+       srds_s2 >>= FSL_CHASSIS3_RCWSR28_SRDS2_PRTCL_SHIFT;
+
+       srds_s3 = rcw_status & FSL_CHASSIS3_RCWSR28_SRDS3_PRTCL_MASK;
+       srds_s3 >>= FSL_CHASSIS3_RCWSR28_SRDS3_PRTCL_SHIFT;
+
+       /* Check for supported protocols. The default DTS will be used
+        * in this case
+        */
+       if (!protocol_supported(1, srds_s1) ||
+           !protocol_supported(2, srds_s2) ||
+           !protocol_supported(3, srds_s3))
+               return -1;
+
+       get_str_protocol(1, srds_s1, srds_s1_str);
+       get_str_protocol(2, srds_s2, srds_s2_str);
+       get_str_protocol(3, srds_s3, srds_s3_str);
+
+       sprintf(expected_dts, "fsl-lx2160a-qds-%s-%s-%s",
+               srds_s1_str, srds_s2_str, srds_s3_str);
+
+       if (!strcmp(name, expected_dts))
+               return 0;
+
+       return -1;
+}
+#endif
index aeb989a638b7ac5388f16106c7bafa2efea3f10b..21fb559250ce18d0c6495a6e152b85743112f88b 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <fdt_support.h>
 #include <net.h>
 #include <netdev.h>
 #include <malloc.h>
index 0d94107def4e6adfa08089311b86dc75a788599d..73e05ee07eae394f3790ebe11ff48dfbe544f23f 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <clock_legacy.h>
 #include <dm.h>
+#include <init.h>
 #include <dm/platform_data/serial_pl01x.h>
 #include <i2c.h>
 #include <malloc.h>
@@ -15,6 +16,7 @@
 #include <fsl_sec.h>
 #include <asm/io.h>
 #include <fdt_support.h>
+#include <linux/bitops.h>
 #include <linux/libfdt.h>
 #include <fsl-mc/fsl_mc.h>
 #include <env_internal.h>
@@ -584,6 +586,9 @@ int board_init(void)
        sec_init();
 #endif
 
+#if !defined(CONFIG_SYS_EARLY_PCI_INIT) && defined(CONFIG_DM_ETH)
+       pci_init();
+#endif
        return 0;
 }
 
@@ -629,7 +634,9 @@ void fdt_fixup_board_enet(void *fdt)
        if (get_mc_boot_status() == 0 &&
            (is_lazy_dpl_addr_valid() || get_dpl_apply_status() == 0)) {
                fdt_status_okay(fdt, offset);
+#ifndef CONFIG_DM_ETH
                fdt_fixup_board_phy(fdt);
+#endif
        } else {
                fdt_status_fail(fdt, offset);
        }
index e448a64abc6f768a3468ec8373808dd9c4d88a91..a950030eb39798c51b8935d3d3525686c192c21f 100644 (file)
@@ -12,6 +12,7 @@
 #include <init.h>
 #include <asm/immap.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index a4b795fc39b3c4909a0c85375dafb09dd0089ba6..144e490479edc8bae85bbb0d7dc97114fabb5e33 100644 (file)
@@ -11,6 +11,7 @@
 #include <init.h>
 #include <asm/immap.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index da3adc595414c0dd69c0f6851de411fef71df199..a89d5100586fca409da438a0522876adc081d8a9 100644 (file)
@@ -9,6 +9,7 @@
 #include <init.h>
 #include <malloc.h>
 #include <asm/immap.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index a5223ecee6c1645e1f0db25c1dabfe7e0af75394..31974217816845e6da9201312d781543e827af31 100644 (file)
@@ -8,6 +8,8 @@
  */
 
 #include <common.h>
+#include <flash.h>
+#include <init.h>
 #include <irq_func.h>
 
 #include <asm/immap.h>
index 76c18b8504fc0eb0fb22671a8282eba37053d996..50eb18ba94d927d6d7e9dd926add3e58668f2800 100644 (file)
@@ -9,9 +9,11 @@
 
 #include <common.h>
 #include <init.h>
+#include <net.h>
 #include <asm/immap.h>
 #include <netdev.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 065e3e71f5728180cb36c5bdc47e8d37423f619f..251be667d46b8022208129426562ed90af8084ef 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/immap.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index 8bdb4ad1276072add8aaf06cc34a78a82444936f..f13b6931ea2568abd380c030897a2aa2ff765730 100644 (file)
@@ -12,6 +12,7 @@
 #include <init.h>
 #include <asm/immap.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index d93800b364bffb8ae76f294377341040036ff0fb..531894f65161cd338895a86041730405270f912d 100644 (file)
@@ -12,6 +12,7 @@
 #include <init.h>
 #include <asm/immap.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 1d52ce047fb6cfd9fd39248f62f20e7442a20ef5..29ff55f15966a6a368a11b0d7ba37627c9fc3a69 100644 (file)
@@ -12,6 +12,7 @@
 #include <init.h>
 #include <asm/immap.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 8c90cfe537af9ad95fe52b67c0a2935de3094a92..a418fba1401b73f775db11944589bfc2bc44057f 100644 (file)
@@ -11,6 +11,7 @@
 #include <asm/immap.h>
 #include <mmc.h>
 #include <fsl_esdhc_imx.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 82a2b9093b63965eb01d92f106cf736b241c8ce9..1298bd324e9f46202e844af963ae2106c7921c6f 100644 (file)
@@ -12,6 +12,7 @@
 #include <spi.h>
 #include <asm/immap.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 146cd918c4df4a0cc7f17e02e5e44dfb6b0f2161..286300645b4a51fabb81621587e9c3ed15274e8d 100644 (file)
@@ -12,6 +12,7 @@
 #include <pci.h>
 #include <asm/immap.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index e8d86113d649fd788996b0525657b68ab3b4fa3c..908a500f4b9f38438d0022e8a87dd8ca40784ab4 100644 (file)
@@ -13,6 +13,7 @@
 #include <pci.h>
 #include <asm/immap.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 40e01c6f24f7cc46b6963c72a60bdaf0d8a17abe..796b808e6f90ce600bd29b302c318df14a84000d 100644 (file)
@@ -13,6 +13,7 @@
 #include <pci.h>
 #include <asm/immap.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index ae73246e5bf20e7945d4169e40c03fd43b3720c8..259d6aa1c2c9b3a9b305be96bead318d33650fb5 100644 (file)
@@ -8,7 +8,9 @@
 #include <hwconfig.h>
 #include <i2c.h>
 #include <init.h>
+#include <net.h>
 #include <spi.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <pci.h>
index c8e30a094784d8e0cfcdbdd676be99f45859ae1a..99f6bcd5a933b2e78ba0ea6c1531c83a32b32209 100644 (file)
@@ -8,8 +8,10 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <mpc83xx.h>
 #include <spd_sdram.h>
+#include <linux/delay.h>
 
 #include <asm/bitops.h>
 #include <asm/io.h>
index 93e0fca083f3c32134acc191b8ec5a56d795f1d1..aa2e7fe206adcb7c1b139eeb924dcc100fb0d054 100644 (file)
@@ -10,6 +10,8 @@
 #include <hwconfig.h>
 #include <i2c.h>
 #include <init.h>
+#include <net.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <pci.h>
index 2f0f29a0e57476b6c34158e3a1199793739aaf66..8a828207f9356eed3c11f0403e6fd4a813b4031d 100644 (file)
@@ -8,8 +8,10 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <mpc83xx.h>
 #include <spd_sdram.h>
+#include <linux/delay.h>
 
 #include <asm/bitops.h>
 #include <asm/io.h>
index e513d0bfd533dd80e23856bc5ae0c64099ad6489..1dc1c98ad67161186a02d0cee8d56a5a4d25fea2 100644 (file)
@@ -19,6 +19,7 @@
 #include <i2c.h>
 #include <miiphy.h>
 #include <command.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <u-boot/crc.h>
 #if defined(CONFIG_PCI)
index d4922fe1e123f372dd00e9bfc059d9d84258e1cb..afcd45769cfd91e8ada26d61fa1d99b8625f8212 100644 (file)
@@ -23,6 +23,7 @@
 #if defined(CONFIG_PQ_MDS_PIB)
 #include "../common/pq-mds-pib.h"
 #endif
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 45c7294832d4c602245f1ce603ec06dd08550bce..944108f6319dfa41e7fc817230a2d8a46dbd51c1 100644 (file)
@@ -14,6 +14,7 @@
 #include <pci.h>
 #include <i2c.h>
 #include <asm/fsl_i2c.h>
+#include <linux/delay.h>
 #include "../common/pq-mds-pib.h"
 
 static struct pci_region pci1_regions[] = {
index 0996b87c0fc88fbe19cfffc74975b13a079901bd..576f04c1443070208c17f4850426ffeecb1b46e8 100644 (file)
@@ -6,8 +6,10 @@
 
 #include <common.h>
 #include <fdt_support.h>
+#include <init.h>
 #include <ioports.h>
 #include <mpc83xx.h>
+#include <asm/bitops.h>
 #include <asm/mpc8349_pci.h>
 #include <i2c.h>
 #include <spi.h>
@@ -17,6 +19,7 @@
 #else
 #include <spd_sdram.h>
 #endif
+#include <linux/delay.h>
 
 #if defined(CONFIG_OF_LIBFDT)
 #include <linux/libfdt.h>
index 7615a1dfaa23dcf0b785391c16b936eac9c6675a..3ddbe717756e9b11c100905982e7cbb9fedd9b4e 100644 (file)
@@ -11,6 +11,7 @@
 #include <pci.h>
 #include <i2c.h>
 #include <asm/fsl_i2c.h>
+#include <linux/delay.h>
 
 static struct pci_region pci1_regions[] = {
        {
index a2e284f1a229a8696fd25c981af130448bc70d41..3993d5851509ad12b19acf54b0f337da217565f6 100644 (file)
@@ -5,7 +5,9 @@
 
 #include <common.h>
 #include <fdt_support.h>
+#include <init.h>
 #include <ioports.h>
+#include <log.h>
 #include <mpc83xx.h>
 #include <i2c.h>
 #include <miiphy.h>
 #include <pci.h>
 #endif
 #include <spd_sdram.h>
+#include <asm/bitops.h>
 #include <asm/mmu.h>
 #if defined(CONFIG_OF_LIBFDT)
 #include <linux/libfdt.h>
 #endif
+#include <linux/delay.h>
 
 #include "../../../arch/powerpc/cpu/mpc83xx/hrcw/hrcw.h"
 #include "../../../arch/powerpc/cpu/mpc83xx/elbc/elbc.h"
index 550a2afcb733fd1745109f1f775b075bc4f42405..a09b6586882fef96383642d5b082ebc7413c8943 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <linux/delay.h>
 
 #include <asm/mmu.h>
 #include <asm/io.h>
index 1ae2308e9b80b497e83ee0651384a77d512ff9c1..182391ca9cac4414a1c2a04262f28172b1854845 100644 (file)
@@ -8,10 +8,13 @@
 #include <hwconfig.h>
 #include <i2c.h>
 #include <init.h>
+#include <net.h>
+#include <asm/bitops.h>
 #include <asm/io.h>
 #include <asm/fsl_mpc83xx_serdes.h>
 #include <spd_sdram.h>
 #include <tsec.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <fsl_esdhc.h>
index c72e49fbe1afa198742c564eccc0d9f16746932f..30e8b2585e39629598b99804de21277e7263469b 100644 (file)
@@ -14,6 +14,7 @@
 #include <fdt_support.h>
 #include <asm/fsl_i2c.h>
 #include <asm/fsl_mpc83xx_serdes.h>
+#include <linux/delay.h>
 
 static struct pci_region pci_regions[] = {
        {
index 45038acf32473f9bb2a91902599b4165cd563572..94cb93a42d5d203ea73340ff16b7157a5e1fcdb8 100644 (file)
 #include <hwconfig.h>
 #include <i2c.h>
 #include <init.h>
+#include <asm/bitops.h>
 #include <asm/io.h>
 #include <asm/fsl_mpc83xx_serdes.h>
 #include <fdt_support.h>
 #include <spd_sdram.h>
 #include <vsc7385.h>
 #include <fsl_esdhc.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 07471e0ae56bc6a0394c1564cb2ac9d9af010171..dccf8c5551b0c3c70422ba4c4ca20186025deea1 100644 (file)
@@ -8,6 +8,7 @@
 #include <mpc83xx.h>
 #include <pci.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 static struct pci_region pci_regions[] = {
        {
index e55ee400260ca52b2cae84ea60381999fb10c204..5907a7b4289de242f19ca8a0e120c8017c0878fe 100644 (file)
@@ -6,6 +6,8 @@
 #include <common.h>
 #include <command.h>
 #include <init.h>
+#include <log.h>
+#include <net.h>
 #include <pci.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>
@@ -17,6 +19,7 @@
 #include <asm/fsl_serdes.h>
 #include <spd.h>
 #include <miiphy.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <spd_sdram.h>
 #include <fdt_support.h>
index cb130b4a86b508ff88fffe4f58369d6cd47f2017..d470fd1cf6d437996621ab0c7cd57791f72bc682 100644 (file)
@@ -15,6 +15,7 @@
 #include <fsl_ddr_sdram.h>
 #include <ioports.h>
 #include <spd_sdram.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 
index 2d4aace98d0aeff73f6ee46e9b7d3e775f6d79dd..85d370f6280d100e41673f5ab1a8d3142a518ef8 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <command.h>
 #include <init.h>
+#include <net.h>
 #include <pci.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>
index a4455d3f6121dbc1abf91c3632d6aca505eb3f7f..e11ed2e3bea7b1e435baaef99911e011a6744c8c 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <net.h>
 #include <pci.h>
 #include <vsprintf.h>
 #include <asm/processor.h>
@@ -16,6 +17,7 @@
 #include <fsl_ddr_sdram.h>
 #include <asm/fsl_serdes.h>
 #include <miiphy.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <tsec.h>
index 47193dd20e77e9358324bea27c03a6060d052b44..8e27e73c25c986c36c6bce325f16feb7a71d7c48 100644 (file)
@@ -13,6 +13,7 @@
 #include <fsl_ddr_sdram.h>
 #include <ioports.h>
 #include <spd_sdram.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 
index 28e2a9435c68db5d0a54f23a2bd467b861f1ce7d..b1e638af5aec51b3ab39838d8b48600a3723c477 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <flash.h>
 #include <asm/io.h>
 
 #include "bcsr.h"
index 5167f81be71a681b118110f31040263ee91d5698..2871636165ebbeebfb47cfb462c35c018f21f7c4 100644 (file)
@@ -6,7 +6,9 @@
  */
 
 #include <common.h>
+#include <flash.h>
 #include <init.h>
+#include <log.h>
 #include <pci.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>
@@ -17,6 +19,7 @@
 #include <spd_sdram.h>
 #include <i2c.h>
 #include <ioports.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 
@@ -302,7 +305,7 @@ void pci_init_board(void)
        porpllsr = in_be32(&gur->porpllsr);
        io_sel = (pordevsr & MPC85xx_PORDEVSR_IO_SEL) >> 19;
 
-       debug ("   pci_init_board: devdisr=%x, io_sel=%x\n", devdisr, io_sel);
+       debug("   %s: devdisr=%x, io_sel=%x\n", __func__, devdisr, io_sel);
 
        pci_speed = 66666000;
        pci_32 = 1;
index 57cea0af689f4a0a6cde78cc26e005723ca6f2bd..9ed00f6e5b1785667200b66bdbd7a906a6316775 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <flash.h>
 #include <asm/io.h>
 
 #include "bcsr.h"
index cf5d8a5244f18c50826e17268a9d7885cda59993..90b9c72babbe55a6a47ed9cb5ff6ed6a6e8a3d75 100644 (file)
@@ -7,8 +7,10 @@
 
 #include <common.h>
 #include <console.h>
+#include <flash.h>
 #include <hwconfig.h>
 #include <init.h>
+#include <log.h>
 #include <pci.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>
@@ -21,6 +23,7 @@
 #include <spd_sdram.h>
 #include <i2c.h>
 #include <ioports.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <fsl_esdhc.h>
index 4111d69b4b9c19ffecaba9856470142b336d334b..b43032cee8ad2d891960eb224974e9e3755a6187 100644 (file)
@@ -6,7 +6,10 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
+#include <image.h>
 #include <init.h>
+#include <log.h>
+#include <net.h>
 #include <pci.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>
@@ -17,6 +20,7 @@
 #include <asm/io.h>
 #include <asm/fsl_serdes.h>
 #include <miiphy.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <tsec.h>
index 86edd66bca2e8f5ec4512a4c638fe4d66fbf7c03..c060fd9a3f389cf901953d8b10a8fd869eb36034 100644 (file)
@@ -6,6 +6,8 @@
 #include <common.h>
 #include <command.h>
 #include <init.h>
+#include <log.h>
+#include <net.h>
 #include <pci.h>
 #include <asm/processor.h>
 #include <asm/immap_86xx.h>
@@ -14,6 +16,7 @@
 #include <asm/fsl_serdes.h>
 #include <i2c.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <spd_sdram.h>
index 42b8cab3627d4126b24789d7bac6019a6fa9295b..9b96d0d33f29050613f6b57c950a1f7a43a03b79 100644 (file)
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <clock_legacy.h>
 #include <command.h>
+#include <log.h>
 #include <asm/io.h>
 #include <fsl_diu_fb.h>
 #include "../common/pixis.h"
index d9e538b868f8e4ec8f112650ccafeed7bcc88cb0..cd505dfc0a94e0680a5db4bfe5ee33cecbcf31f1 100644 (file)
@@ -5,6 +5,8 @@
 
 #include <common.h>
 #include <init.h>
+#include <log.h>
+#include <net.h>
 #include <pci.h>
 #include <asm/processor.h>
 #include <asm/immap_86xx.h>
@@ -12,6 +14,7 @@
 #include <fsl_ddr_sdram.h>
 #include <asm/fsl_serdes.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <netdev.h>
index 6f4d34b9ed365a7b4b82225c1fcf6efd13ad8a62..6cfff04966312fba0974c36a4064ef59236d7d91 100644 (file)
@@ -12,6 +12,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/gpio.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/clock.h>
index 6898e9c4d64f9ce8a32d698b9ceb49ac330a37f0..ec56acb30718fceebac229c8faa38672c37db8f2 100644 (file)
@@ -15,6 +15,7 @@
 #include <mmc.h>
 #include <fsl_esdhc_imx.h>
 #include <i2c.h>
+#include <linux/delay.h>
 #include <power/pmic.h>
 #include <fsl_pmic.h>
 #include <mc34704.h>
index cfbe89ebfe06eddad28883801e9dfdf4a01a54e4..e50b7db21013be9f3fd098fecd0d2f7833c4d46a 100644 (file)
  */
 
 #include <common.h>
+#include <init.h>
+#include <net.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux-mx28.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/sys_proto.h>
+#include <linux/delay.h>
 #include <linux/mii.h>
 #include <miiphy.h>
 #include <netdev.h>
index fb57f2635730af3e209acea1bcfe40ad78c0e6e0..06fe51db7172aad2b084639fbd27b9803d73cb02 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
index d0f7f045a5baaed17964ea1195ec3b0cbd96a732..63fea37d5d79a64cb586f6d2241075dee96fff55 100644 (file)
@@ -7,7 +7,9 @@
 
 #include <common.h>
 #include <init.h>
+#include <net.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/crm_regs.h>
index 3314badf9e7d8d8dd4a82f0271d781646797e5b1..46037acc0e70540a5a8e5533b3563c5f35156158 100644 (file)
@@ -9,6 +9,7 @@
 #include <asm/gpio.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux-mx51.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/crm_regs.h>
index 33d056b47d41bd9358f9fb3c9d3bb1a0ff10f037..fabcb03ac842bc62a8965b183d0842a74e809a2c 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <net.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/sys_proto.h>
index 381c1ca808f2ad59a035e5da2dd3fcc6fca2dbb8..ba74592e4ead630a45e8eab029d473ab1721f163 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/sys_proto.h>
index d01127eccc170c7f36c1263232d0b8132433f669..ea7a56369d6e2544e721c07c164953daaa306a91 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/arch/sys_proto.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index be551bc3753358f7d4138362d35e849d2ac27a19..c11eee51b612f83c318f9e3a5eb4cc92e1b5cc09 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/clock.h>
index 3957c09ac067d753b53a0c3e12c7dac142859916..5c08ecbb9684fe7c5b07ccb0564a1754cafc8f38 100644 (file)
@@ -4,6 +4,8 @@
  */
 
 #include <common.h>
+#include <init.h>
+#include <net.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/mx6-pins.h>
index de19a562eb40c84592ec4ebb1d76adf59031749a..829e42f6771b9bbf3eecdf2ed3e6814724013dd6 100644 (file)
@@ -6,7 +6,9 @@
  */
 
 #include <common.h>
+#include <image.h>
 #include <init.h>
+#include <net.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
index 07d3b0edb399832eee13adf9739543271c5ac531..8d24af0a99e46b906adbe8b5fb724a6c083eb481 100644 (file)
@@ -5,7 +5,9 @@
  * Author: Fabio Estevam <fabio.estevam@freescale.com>
  */
 
+#include <image.h>
 #include <init.h>
+#include <net.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
index 43029e424539083dfd4b8f3a264733ec766f1767..7dd00bda384b99b4ca767c2adf3be36abaf66d29 100644 (file)
@@ -5,6 +5,8 @@
  * Author: Fabio Estevam <fabio.estevam@freescale.com>
  */
 
+#include <init.h>
+#include <net.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/crm_regs.h>
index 0c7904204f7dc8c61c07c3e99d48009b6f256972..522b840275b3369ad15f7c2557af2743374a17e1 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <init.h>
+#include <net.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/iomux.h>
@@ -16,6 +17,7 @@
 #include <asm/mach-imx/iomux-v3.h>
 #include <asm/mach-imx/boot_mode.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include <linux/sizes.h>
 #include <common.h>
 #include <fsl_esdhc_imx.h>
index 4f1d6602e504b607f55f5069c8225129fefe2a19..b092ea80538977fd37a36186c76abca43cc3ba65 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <init.h>
+#include <net.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/iomux.h>
@@ -17,6 +18,7 @@
 #include <asm/io.h>
 #include <asm/mach-imx/mxc_i2c.h>
 #include <env.h>
+#include <linux/delay.h>
 #include <linux/sizes.h>
 #include <common.h>
 #include <fsl_esdhc_imx.h>
index 07941fb1560aee42767d38a5d1f2be28b23c77df..b03c9c97a73ecbdab4b809932de5f33ad7249b43 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <init.h>
+#include <net.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/imx-regs.h>
@@ -21,6 +22,7 @@
 #include <fsl_esdhc_imx.h>
 #include <i2c.h>
 #include <miiphy.h>
+#include <linux/delay.h>
 #include <linux/sizes.h>
 #include <mmc.h>
 #include <netdev.h>
index 41c620795cb83af2a584d9fe866e3538bfd52227..f12e9d4cfefe94c86ecb3ac3a1f3a3b7721d858b 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <init.h>
+#include <net.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/mx7-pins.h>
@@ -11,6 +12,7 @@
 #include <asm/gpio.h>
 #include <asm/mach-imx/iomux-v3.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include <linux/sizes.h>
 #include <common.h>
 #include <fsl_esdhc_imx.h>
index c939514a5fc22ff11ff9d2e5bd3546c6de49a24c..15942858601e67658bb706b630260c80339d85e1 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <fdt_support.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/mx7ulp-pins.h>
index 314646d4ff4fb85d6cbd680b706e6d5a3690e4ab..66ccc0bd1eb2b32fc2a8e4d86f7015afcca38318 100644 (file)
@@ -5,7 +5,10 @@
  */
 
 #include <common.h>
+#include <command.h>
+#include <image.h>
 #include <init.h>
+#include <net.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>
 #include <asm/cache.h>
@@ -706,8 +709,8 @@ int misc_init_r(void)
 }
 
 #ifndef CONFIG_SPL_BUILD
-static int pin_mux_cmd(cmd_tbl_t *cmdtp, int flag, int argc,
-                               char * const argv[])
+static int pin_mux_cmd(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        if (argc < 2)
                return CMD_RET_USAGE;
index 7f7251009c99bd6123f352aa65e09d539b13f40d..918b4b9f6ac37839f21fcecfeb1def1d787ac80d 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <clock_legacy.h>
 #include <command.h>
+#include <log.h>
 #include <linux/ctype.h>
 #include <asm/io.h>
 #include <stdio_dev.h>
index ebf822acb5fe6e761a54ae9d8e28afe96fe6f3a8..d10160d17ab865db418d857f6663b4e0f5504dbf 100644 (file)
@@ -8,7 +8,10 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
+#include <image.h>
 #include <init.h>
+#include <log.h>
+#include <net.h>
 #include <pci.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>
index eeb13ccc9b96a0a3752ce13b4590f134827a6115..13df3e86379cb3eb60e02ebbe5ee0dc45a13d7ff 100644 (file)
@@ -9,7 +9,9 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
+#include <image.h>
 #include <init.h>
+#include <net.h>
 #include <pci.h>
 #include <asm/io.h>
 #include <asm/cache.h>
index f668d7efb126819750b6a1638e8b94be3464785b..1353debc0e98f071baa9a6eb1a5d8020f7f23211 100644 (file)
@@ -9,7 +9,9 @@
 #include <env.h>
 #include <hang.h>
 #include <hwconfig.h>
+#include <image.h>
 #include <init.h>
+#include <net.h>
 #include <pci.h>
 #include <i2c.h>
 #include <asm/processor.h>
@@ -23,6 +25,7 @@
 #include <asm/fsl_lbc.h>
 #include <asm/mp.h>
 #include <miiphy.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <fsl_mdio.h>
index 72fe1b416602f640ab2c954b878bc92c9c33ea50..8e1522a60455332aa4684773cd79a051d490208f 100644 (file)
@@ -7,7 +7,9 @@
 #include <command.h>
 #include <env.h>
 #include <hwconfig.h>
+#include <image.h>
 #include <init.h>
+#include <net.h>
 #include <pci.h>
 #include <i2c.h>
 #include <asm/processor.h>
index 3037ef89f118d1f81d7627fb0b8513091461bccf..b042fe3bcbc06d11db421dc0f41f31657a70b96e 100644 (file)
@@ -87,7 +87,7 @@ static void cpld_dump_regs(void)
 }
 #endif
 
-int cpld_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int cpld_cmd(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int rc = 0;
 
index 8bcd2fb5a7a97fa32e909ef9ddcd3a0e5dedf2c7..7a06c7af3dce6da7cad4b83f6ea68f686fbe91ac 100644 (file)
@@ -6,6 +6,8 @@
 #include <common.h>
 #include <i2c.h>
 #include <hwconfig.h>
+#include <init.h>
+#include <log.h>
 #include <asm/mmu.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
index 854a839b8ce453ad980e21e8c00de939025405d8..32c68f2a718633a69816360f972836b30c155dac 100644 (file)
@@ -13,6 +13,7 @@
  */
 
 #include <common.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/fsl_serdes.h>
 #include <fm_eth.h>
index 95ed0ef429eb570b60edcc13919c46eacaadcc7e..076e63a35734f7ba7b42950c2c44e9e065ae6c59 100644 (file)
@@ -7,6 +7,7 @@
 #include <command.h>
 #include <env.h>
 #include <fdt_support.h>
+#include <image.h>
 #include <init.h>
 #include <netdev.h>
 #include <linux/compiler.h>
index e804cfe986be419d963ff279ddf42ea75d5d1143..61a9226eb3d26696316132bb7e37a00153b414bf 100644 (file)
@@ -8,6 +8,8 @@
 #include <cpu_func.h>
 #include <env.h>
 #include <init.h>
+#include <log.h>
+#include <net.h>
 #include <pci.h>
 #include <time.h>
 #include <asm/processor.h>
index 998a2a5d3f54401f9ada5949b231e2c70f071db3..c27cecd5aafe2604c546429c445ced62b38260b0 100644 (file)
@@ -6,11 +6,14 @@
 #include <common.h>
 #include <i2c.h>
 #include <hwconfig.h>
+#include <init.h>
+#include <log.h>
 #include <asm/mmu.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
 #include <asm/fsl_law.h>
 #include <asm/mpc85xx_gpio.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 5b65818eede18edb42af89a966604bf976b2ab66..49ea21a83a545fb6029c982afb2f80fd26f32cd3 100644 (file)
@@ -7,6 +7,9 @@
 
 #include <common.h>
 #include <command.h>
+#include <fdt_support.h>
+#include <log.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/mmu.h>
 #include <asm/processor.h>
index 32b4780376a63d1dd21dfcf4c1c5e01e89fc8319..84db2fa9bcdfccbfdb31f99c7b2e890961ea6366 100644 (file)
@@ -9,7 +9,9 @@
 #include <env.h>
 #include <fdt_support.h>
 #include <i2c.h>
+#include <image.h>
 #include <init.h>
+#include <log.h>
 #include <netdev.h>
 #include <linux/compiler.h>
 #include <asm/mmu.h>
index 2b640e0450e31191e3f12f1b51234a3e8bcbc124..47c3b1627e34ba30faba1703df15825e81db05c2 100644 (file)
@@ -72,7 +72,7 @@ static void cpld_dump_regs(void)
        putc('\n');
 }
 
-int do_cpld(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_cpld(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int rc = 0;
 
index 043f0b5b8414d00064fce6612c4f083292cd3a0d..3640a47957400bb805731c88488ed7c3cc80d269 100644 (file)
@@ -6,11 +6,14 @@
 #include <common.h>
 #include <i2c.h>
 #include <hwconfig.h>
+#include <init.h>
+#include <log.h>
 #include <asm/mmu.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
 #include <asm/fsl_law.h>
 #include <asm/mpc85xx_gpio.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 299b859cb64144304383e991286f24c6b7dffaca..dbf25a237d1cc6b3115a143e919faa1d94475d85 100644 (file)
@@ -7,6 +7,8 @@
 
 #include <common.h>
 #include <command.h>
+#include <fdt_support.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/mmu.h>
 #include <asm/processor.h>
index a34490c8bdcf46c3046ccec0c9c27ec6695ff33a..754fcb0ad55cd61493308cea80d18cd5b6e4d4e8 100644 (file)
@@ -9,6 +9,7 @@
 #include <env.h>
 #include <fdt_support.h>
 #include <i2c.h>
+#include <image.h>
 #include <init.h>
 #include <netdev.h>
 #include <linux/compiler.h>
@@ -367,8 +368,8 @@ static u32 t1023rdb_ctrl(u32 ctrl_type)
        return 0;
 }
 
-static int switch_cmd(cmd_tbl_t *cmdtp, int flag, int argc,
-                   char * const argv[])
+static int switch_cmd(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        if (argc < 2)
                return CMD_RET_USAGE;
index 2b1d768f1b5bdc8fa7daa1b324debf7c1d3a2615..0a817d0ee8df0519a454e167518c873d5fbce8a5 100644 (file)
@@ -6,11 +6,14 @@
 #include <common.h>
 #include <i2c.h>
 #include <hwconfig.h>
+#include <init.h>
+#include <log.h>
 #include <asm/mmu.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
 #include <asm/fsl_law.h>
 #include <asm/mpc85xx_gpio.h>
+#include <linux/delay.h>
 #include "ddr.h"
 
 DECLARE_GLOBAL_DATA_PTR;
index 4185cfac12e12ad2a6b75671aeaab210bf0d3871..b349b77951b7094b0b33e2509fa9ac553463bdee 100644 (file)
@@ -10,6 +10,8 @@
  */
 
 #include <common.h>
+#include <fdt_support.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/fsl_serdes.h>
 #include <asm/immap_85xx.h>
index 9e253fdec27d079e08c5c6233065823570c724dc..c166403ba4c71882d9022b94c55dc4720b02a4d5 100644 (file)
@@ -9,6 +9,7 @@
 #include <env.h>
 #include <fdt_support.h>
 #include <i2c.h>
+#include <image.h>
 #include <init.h>
 #include <netdev.h>
 #include <linux/compiler.h>
index f9c8ab3752ecc594d72001381b1ae3a682f661a0..ac34095f3b669215968c7a1dcc1e3e3b225b3a25 100644 (file)
@@ -82,7 +82,7 @@ static void cpld_dump_regs(void)
 }
 #endif
 
-int do_cpld(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_cpld(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int rc = 0;
 
index 2b1b28da8856d3f266a28838468533144b263ab0..e313bf99cf22dc9c3dfceed6d33290e7d930513c 100644 (file)
@@ -6,11 +6,14 @@
 #include <common.h>
 #include <i2c.h>
 #include <hwconfig.h>
+#include <init.h>
+#include <log.h>
 #include <asm/mmu.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
 #include <asm/fsl_law.h>
 #include <asm/mpc85xx_gpio.h>
+#include <linux/delay.h>
 #include "ddr.h"
 
 DECLARE_GLOBAL_DATA_PTR;
index 107d28da33becd3630b6e2a88bef5fb06b80f6e2..9cbc8754dc5b58502dfa002a94d67f2433a7b398 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/fsl_serdes.h>
 #include <asm/immap_85xx.h>
index dc3b59d26f9d10b967dacb92968153d5d8db5818..6a4b35106845a100a6204bf52b4d120bb7ce4ca4 100644 (file)
@@ -8,7 +8,9 @@
 #include <env.h>
 #include <fdt_support.h>
 #include <hwconfig.h>
+#include <image.h>
 #include <init.h>
+#include <log.h>
 #include <netdev.h>
 #include <linux/compiler.h>
 #include <asm/mmu.h>
index a2a56540b5f987f3390dff3553e17a6e5529afe2..3317f99c81fb3571228e1127b289bf81176210f2 100644 (file)
@@ -6,6 +6,8 @@
 #include <common.h>
 #include <i2c.h>
 #include <hwconfig.h>
+#include <init.h>
+#include <log.h>
 #include <asm/mmu.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
index 697c23b03886084b6ab64a31760f351342b28cb9..938e6066414751b572b72cbe120f392af2007aab 100644 (file)
@@ -8,6 +8,9 @@
 
 #include <common.h>
 #include <command.h>
+#include <fdt_support.h>
+#include <log.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/mmu.h>
 #include <asm/processor.h>
@@ -27,6 +30,7 @@
 #include "../common/qixis.h"
 #include "../common/fman.h"
 #include "t208xqds_qixis.h"
+#include <linux/libfdt.h>
 
 #define EMI_NONE       0xFFFFFFFF
 #define EMI1_RGMII1    0
index 91004010223d6fb24277a23ff4f2e48a771ebc9e..4979085e1947e55f81e5948777654113949bb195 100644 (file)
@@ -9,7 +9,9 @@
 #include <env.h>
 #include <fdt_support.h>
 #include <i2c.h>
+#include <image.h>
 #include <init.h>
+#include <log.h>
 #include <netdev.h>
 #include <linux/compiler.h>
 #include <asm/mmu.h>
index 9a9b9d8e7798a837ca8ab5009c94cb0d8a67f0e8..b9ba62adffcddd59517415b3e0256dc3da127a3d 100644 (file)
@@ -43,7 +43,7 @@ void cpld_set_defbank(void)
        CPLD_WRITE(reset_ctl, CPLD_LBMAP_RESET);
 }
 
-int do_cpld(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_cpld(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int rc = 0;
 
index 0b16982f06ab56a664fadd8167efbcc5a6f08d7f..6a09d1cd221b2766a3d188d997ff1060cb721995 100644 (file)
@@ -6,6 +6,8 @@
 #include <common.h>
 #include <i2c.h>
 #include <hwconfig.h>
+#include <init.h>
+#include <log.h>
 #include <asm/mmu.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
index 68949473040a3b6fc1daabb1a8571ac7248d63fe..db4718128dc9585459de3efff760a447342c9330 100644 (file)
@@ -7,6 +7,8 @@
 
 #include <common.h>
 #include <command.h>
+#include <fdt_support.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/mmu.h>
 #include <asm/processor.h>
index b5c20112d0e5b2d40b64ef92ac0222974fec2520..24f0d0764cec3f113ef520d168a449c91715bcf3 100644 (file)
@@ -8,6 +8,7 @@
 #include <env.h>
 #include <fdt_support.h>
 #include <i2c.h>
+#include <image.h>
 #include <init.h>
 #include <netdev.h>
 #include <linux/compiler.h>
index 08656b4e30947dc9c36a8dc946cece6892e6897a..4fdd69d4247e8d9e2f262cf7fa390caebe0d2265 100644 (file)
@@ -6,6 +6,8 @@
 #include <common.h>
 #include <i2c.h>
 #include <hwconfig.h>
+#include <init.h>
+#include <log.h>
 #include <asm/mmu.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
index b341c82e676a5a1c24beaa9a66288dbda2232e23..810868ff39498752ee3e7de9a14d37f82d25177c 100644 (file)
@@ -5,6 +5,9 @@
 
 #include <common.h>
 #include <command.h>
+#include <fdt_support.h>
+#include <log.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/mmu.h>
 #include <asm/processor.h>
@@ -25,6 +28,7 @@
 #include <hwconfig.h>
 #include "../common/qixis.h"
 #include "../common/fman.h"
+#include <linux/libfdt.h>
 
 #include "t4240qds_qixis.h"
 
index 104b40a110969dfc9006ff61ae92e157dce37cb1..8f2032acc7b27433d4145e68c9306b4df860a032 100644 (file)
@@ -8,6 +8,7 @@
 #include <env.h>
 #include <fdt_support.h>
 #include <i2c.h>
+#include <image.h>
 #include <init.h>
 #include <netdev.h>
 #include <linux/compiler.h>
index 869c01de92b91fd2658058f119849d8844e63c10..8d1a66f223a2dc48d6b3df747b0b140c521155ea 100644 (file)
@@ -9,8 +9,10 @@
 #include <env.h>
 #include <fdt_support.h>
 #include <i2c.h>
+#include <image.h>
 #include <init.h>
 #include <irq_func.h>
+#include <log.h>
 #include <netdev.h>
 #include <linux/compiler.h>
 #include <asm/mmu.h>
@@ -21,6 +23,7 @@
 #include <asm/fsl_serdes.h>
 #include <asm/fsl_liodn.h>
 #include <fm_eth.h>
+#include <linux/delay.h>
 
 #include "../common/qixis.h"
 #include "../common/vsc3316_3308.h"
@@ -901,9 +904,9 @@ void qixis_dump_switch(void)
        }
 }
 
-static int do_vdd_adjust(cmd_tbl_t *cmdtp,
+static int do_vdd_adjust(struct cmd_tbl *cmdtp,
                         int flag, int argc,
-                        char * const argv[])
+                        char *const argv[])
 {
        ulong override;
 
index 470b5f9154920c5e166f12c26470e7731f13a852..d484509bc20a0b2f022fda4062ab08ef237e5be5 100644 (file)
@@ -95,7 +95,7 @@ static void cpld_dump_regs(void)
 #endif
 
 #ifndef CONFIG_SPL_BUILD
-int do_cpld(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_cpld(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int rc = 0;
 
index 787de6d7ad007e18b425b9b3ce3e1b80fa7b91ad..5b7d10c9798b54b22b82413c824d907454ade40b 100644 (file)
@@ -6,6 +6,8 @@
 #include <common.h>
 #include <i2c.h>
 #include <hwconfig.h>
+#include <init.h>
+#include <log.h>
 #include <asm/mmu.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
index 2ef192c4522b73438b643271f4e01b0c22e155b7..4c896c8a90d001fdc91e0f331af5b24556cc2d42 100644 (file)
@@ -7,6 +7,8 @@
 
 #include <common.h>
 #include <command.h>
+#include <fdt_support.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/mmu.h>
 #include <asm/processor.h>
index 8015666eccd93a9e3852fa718992e62f0c102d84..d801f2c7a1b550dad5c993a96c07019f43eac097 100644 (file)
@@ -8,6 +8,7 @@
 #include <env.h>
 #include <fdt_support.h>
 #include <i2c.h>
+#include <image.h>
 #include <init.h>
 #include <netdev.h>
 #include <linux/compiler.h>
index 776afa43a66046fdf589d8502652765b022bf045..8a3a6e3482564b7b1722cf5e81f2c54f19283e7b 100644 (file)
@@ -4,14 +4,19 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <env.h>
 #include <env_internal.h>
+#include <flash.h>
 #include <init.h>
 #include <led.h>
+#include <log.h>
 #include <malloc.h>
 #include <net.h>
 #include <spi.h>
 #include <spi_flash.h>
+#include <linux/delay.h>
+#include <linux/stringify.h>
 #include <u-boot/crc.h>
 #include <uuid.h>
 #include <linux/ctype.h>
@@ -205,7 +210,7 @@ static void copy_or_generate_uuid(char *fd_ptr, const char *env_var_name)
  * Helper function to provide some sane factory-data values for testing
  * purpose, when these values are not programmed correctly
  */
-int do_fd_write(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_fd_write(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        struct factory_data_values *fd;
        struct spi_flash *sf;
index 1240a9da174f7c7c1e4a72f638bc598b0ade28f7..1a3524972491d059c40badd6d1ac287b4fe22629 100644 (file)
@@ -5,6 +5,8 @@
  * Author: Tim Harvey <tharvey@gateworks.com>
  */
 
+#include <common.h>
+#include <log.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/mx6-pins.h>
 #include <asm/arch/sys_proto.h>
@@ -13,6 +15,7 @@
 #include <env.h>
 #include <fsl_esdhc_imx.h>
 #include <hwconfig.h>
+#include <linux/delay.h>
 #include <power/pmic.h>
 #include <power/ltc3676_pmic.h>
 #include <power/pfuze100_pmic.h>
index 5e9cf1157528d2926eb0cc21a307b83428ae06c3..a5a151d85b43ca1d62c9db6fdfcc1b3993f0e9fc 100644 (file)
@@ -5,11 +5,14 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <errno.h>
 #include <hexdump.h>
 #include <i2c.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/bitops.h>
+#include <linux/delay.h>
 
 #include "gsc.h"
 #include "ventana_eeprom.h"
@@ -158,7 +161,8 @@ static struct ventana_eeprom_config *get_config(const char *name)
 static u8 econfig_bytes[sizeof(ventana_info.config)];
 static int econfig_init = -1;
 
-static int do_econfig(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_econfig(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        struct ventana_eeprom_config *cfg;
        struct ventana_board_info *info = &ventana_info;
index 068f8cd9e735e338007572b71adfdd22bb49e79f..bcb6bca3462da47950476f8580a3a49c50b606bc 100644 (file)
@@ -5,6 +5,10 @@
  * Author: Tim Harvey <tharvey@gateworks.com>
  */
 
+#include <common.h>
+#include <command.h>
+#include <log.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <common.h>
 #include <i2c.h>
@@ -176,8 +180,8 @@ int gsc_boot_wd_disable(void)
 }
 
 #if defined(CONFIG_CMD_GSC) && !defined(CONFIG_SPL_BUILD)
-static int do_gsc_sleep(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_gsc_sleep(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        unsigned char reg;
        unsigned long secs = 0;
@@ -218,7 +222,8 @@ error:
        return CMD_RET_FAILURE;
 }
 
-static int do_gsc_wd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_gsc_wd(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        unsigned char reg;
 
@@ -257,7 +262,7 @@ static int do_gsc_wd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return CMD_RET_SUCCESS;
 }
 
-static int do_gsc(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_gsc(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        if (argc < 2)
                return gsc_info(1);
index 8a694a71c90bcc10f6c980085f51f73fecb93786..649e6229449a178ef07cde322d0a3536cb523bf2 100644 (file)
@@ -6,6 +6,9 @@
  */
 
 #include <common.h>
+#include <init.h>
+#include <log.h>
+#include <net.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/iomux.h>
@@ -32,6 +35,8 @@
 #include <mtd_node.h>
 #include <netdev.h>
 #include <pci.h>
+#include <linux/delay.h>
+#include <linux/libfdt.h>
 #include <power/pmic.h>
 #include <power/ltc3676_pmic.h>
 #include <power/pfuze100_pmic.h>
index 80fec5f9cf3ef22b9aaf4df85c04b1233a4ac21e..e0e4bac16126da49edc92bb21e0e30500584717e 100644 (file)
@@ -7,6 +7,8 @@
 #include <common.h>
 #include <env.h>
 #include <hang.h>
+#include <init.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/mx6-ddr.h>
index 4eb7d76660e7b77e227a839eef0c88beb3644be3..a2287f9deb13e8b6b02d2f3a8c17af4582e41524 100644 (file)
@@ -5,13 +5,16 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <dm.h>
 #include <init.h>
 #include <miiphy.h>
+#include <net.h>
 #include <tpm-v1.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm-generic/gpio.h>
+#include <linux/delay.h>
 
 #include "../drivers/ddr/marvell/a38x/ddr3_init.h"
 #include "../arch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec.h"
index 027ad1f57e001b0a0b4211f2ca09db73aa88257b..699241b3e62a1e250299d8535c5f16539d624055 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 #include <fs.h>
 #include <i2c.h>
index fa50ad28303cd5f5e876c6d7e3e91184b438a10d..daade6da0af49f59d4cb0fbeb2b33d0774812df3 100644 (file)
@@ -1,4 +1,5 @@
 #include <common.h>
+#include <command.h>
 #include <console.h> /* ctrlc */
 #include <asm/io.h>
 
@@ -89,7 +90,7 @@ void hydra_initialize(void)
 #define REFL_PATTERN (0xdededede)
 #define REFL_PATTERN_INV (~REFL_PATTERN)
 
-int do_hydrate(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_hydrate(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        uint k = 0;
        void __iomem *pcie2_base = (void __iomem *)(MVEBU_REG_PCIE_BASE +
index 494de18f86a1957e5859c2a1ceb68ac2ceb7dd20..c23d15092144921411819c34536fc33f0d46d5eb 100644 (file)
@@ -2,6 +2,8 @@
 #include <dm.h>
 #include <miiphy.h>
 #include <asm-generic/gpio.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 #include "ihs_phys.h"
 #include "dt_helpers.h"
index 05a14ff103866308682e3842b2ce2488534199a7..3ea2bec8ebd5975273462544a6677d579fe8264e 100644 (file)
@@ -7,6 +7,8 @@
 #include <common.h>
 #include <command.h>
 #include <console.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 #include <gdsys_fpga.h>
 
@@ -264,7 +266,7 @@ static void io_reflect(struct udevice *dev)
  * Syntax:
  *     ioreflect {fpga} {reportrate}
  */
-int do_ioreflect(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_ioreflect(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        uint fpga;
        uint rate = 0;
@@ -321,7 +323,7 @@ int do_ioreflect(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
  * Syntax:
  *     ioreflect {reportrate}
  */
-int do_ioreflect(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_ioreflect(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        struct udevice *fpga;
        struct regmap *map;
@@ -374,7 +376,7 @@ int do_ioreflect(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
  * Syntax:
  *     ioloop {fpga} {size} {rate}
  */
-int do_ioloop(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_ioloop(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        uint fpga;
        uint size;
@@ -440,7 +442,7 @@ int do_ioloop(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
  * Syntax:
  *     ioloop {size} {rate}
  */
-int do_ioloop(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_ioloop(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        uint size;
        uint rate = 0;
@@ -501,7 +503,7 @@ int do_ioloop(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 #endif /* CONFIG_GDSYS_LEGACY_DRIVERS */
 
 #ifndef CONFIG_GDSYS_LEGACY_DRIVERS
-int do_iodev(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_iodev(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        struct udevice *ioep = NULL;
        struct udevice *board;
index f160a57cc2d82341ef23daaa0ff15ef2f8323938..5f1215e9e8a65a34e7d9ca6363380a408ce9460e 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <linux/delay.h>
 
 #include <miiphy.h>
 #ifdef CONFIG_GDSYS_LEGACY_DRIVERS
index 066222c563ded8dfd8cab08792beb823776fd3ab..7292d7ab5a41095214a3ebe8c745427f5ae6a58f 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 
 #include <gdsys_fpga.h>
+#include <linux/bitops.h>
 
 enum pcb_video_type {
        PCB_DVI_SL,
@@ -443,6 +444,7 @@ static int get_features(unsigned int fpga, struct fpga_features *features)
        return 0;
 }
 
+#include <linux/bitops.h>
 #endif
 
 bool ioep_fpga_has_osd(unsigned int fpga)
index c43d24b26d4950d48e05cbcb652cd54842df3d95..6147fbfc87fb923c359e751f69f53a5f934aabe9 100644 (file)
@@ -11,6 +11,7 @@
 #include <errno.h>
 
 #include <gdsys_fpga.h>
+#include <linux/delay.h>
 
 enum {
        MCINT_SLAVE_LINK_CHANGED_EV = 1 << 7,
index 10c43291469a58ab93635e062aa1832ccc092b9f..679f8f30191b9fad7c29a31285b700e0b7d4648b 100644 (file)
@@ -7,8 +7,10 @@
 #ifdef CONFIG_GDSYS_LEGACY_DRIVERS
 
 #include <common.h>
+#include <command.h>
 #include <i2c.h>
 #include <malloc.h>
+#include <linux/stringify.h>
 
 #include "ch7301.h"
 #include "dp501.h"
@@ -259,7 +261,8 @@ static int osd_write_videomem(unsigned screen, unsigned offset,
        return charcount;
 }
 
-static int osd_print(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int osd_print(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        unsigned screen;
 
@@ -396,7 +399,7 @@ int osd_probe(unsigned screen)
        return 0;
 }
 
-int osd_write(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int osd_write(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        unsigned screen;
 
@@ -449,7 +452,7 @@ int osd_write(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return 0;
 }
 
-int osd_size(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int osd_size(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        unsigned screen;
        unsigned x;
@@ -500,4 +503,4 @@ U_BOOT_CMD(
        ") size_y(max. " __stringify(MAX_Y_CHARS) ")\n"
 );
 
-#endif /* CONFIG_GDSYS_LEGACY_DRIVERS */
\ No newline at end of file
+#endif /* CONFIG_GDSYS_LEGACY_DRIVERS */
index 53179b9811318fd0882b08e400e0b644cac14be4..fe6249794e760e83151580828eff0955e5b29d1a 100644 (file)
  */
 
 #include <common.h>
+#include <command.h>
 #include <dm.h>
 #include <hexdump.h>
 #include <video_osd.h>
 #include <malloc.h>
 
-static int do_osd_write(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_osd_write(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        struct udevice *dev;
        uint x, y;
@@ -68,8 +69,8 @@ static int do_osd_write(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_SUCCESS;
 }
 
-static int do_osd_print(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_osd_print(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        struct udevice *dev;
        uint x, y;
@@ -99,8 +100,8 @@ static int do_osd_print(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_SUCCESS;
 }
 
-static int do_osd_size(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+static int do_osd_size(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        struct udevice *dev;
        uint x, y;
index d40c08d9e948a7173f360917a3b955a0525ffd80..516f4e8edcac1f6f4c0f1f1de2d8d83c981eff7f 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 
 #include <miiphy.h>
 
index 8c9636d292e40b22f6ac4fa0d80f33c53e0cfc23..b64a6d992d566917520787f75418bcf4f6d7b347 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <board.h>
+#include <command.h>
 #include <dm.h>
 #include <env.h>
 #include <fdt_support.h>
index d1110157a2efbfacc5eb3b8c4d8bb20036404fa4..d206f8f0c56e6033356862c393b257dceb649d72 100644 (file)
@@ -6,10 +6,13 @@
 
 #include <common.h>
 #include <env.h>
+#include <flash.h>
 #include <hwconfig.h>
 #include <i2c.h>
 #include <init.h>
 #include <spi.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <pci.h>
index d4108457d92caf1ecfd2a7e29828e72c82cd6c2b..0f90f8ad327bebbb51526adff0d8b7c4c4a32c50 100644 (file)
@@ -10,6 +10,7 @@
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <asm/global_data.h>
+#include <linux/delay.h>
 
 #include "mpc8308.h"
 #include <gdsys_fpga.h>
index 9ba9e4278a515e79b007d6c6523e9559b362a798..b3af8fec9172bcc2ebd5b11396514366a0f93225 100644 (file)
@@ -6,10 +6,13 @@
 
 #include <common.h>
 #include <env.h>
+#include <flash.h>
 #include <hwconfig.h>
 #include <i2c.h>
 #include <init.h>
 #include <spi.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <pci.h>
index ad56dd7d019d98369adf6ce2eca061b21d78cda3..1b5aa9042f574fd3d64376b81a43c242075b6e64 100644 (file)
 #endif
 
 #include <common.h>
+#include <bootstage.h>
 #include <command.h>
 #include <dm.h>
 #include <env.h>
 #include <hang.h>
+#include <log.h>
 #include <malloc.h>
 #include <fs.h>
 #include <i2c.h>
 #include <mmc.h>
 #include <tpm-v1.h>
+#include <linux/delay.h>
 #include <u-boot/crc.h>
 #include <u-boot/sha1.h>
 #include <asm/byteorder.h>
index 8e868165ed6979b25bd0a7735d98cbfc21834ac2..73ce985d1a9790c094e0d9bc5321d0ff49467d77 100644 (file)
@@ -24,7 +24,9 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
+#include <image.h>
 #include <init.h>
+#include <net.h>
 #include <pci.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>
@@ -34,6 +36,7 @@
 #include <fsl_ddr_sdram.h>
 #include <asm/fsl_serdes.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <fsl_mdio.h>
@@ -221,7 +224,7 @@ void hw_watchdog_reset(void)
 }
 
 #ifdef CONFIG_TRAILBLAZER
-int do_bootd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_bootd(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        return run_command(env_get("bootcmd"), flag);
 }
index 591e08f037b259de8114c169286a7f75cad07489..eb06d22471114dcfb390c20e1dc1f7c040a18a89 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <log.h>
 
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
index 7e1e6ce85c0bb24b3647d40705778c5096b6fddb..9a5d3c11e14c1771d8e1e7ea98d01d85428439ee 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <clock_legacy.h>
 #include <command.h>
+#include <log.h>
 #include <linux/ctype.h>
 #include <asm/io.h>
 #include <stdio_dev.h>
index 69cd0a1bc764a793dcd7b326e0b947ab0b19c650..edccfd03b3c589a3253e5287d39bdb06724b4dae 100644 (file)
@@ -5,12 +5,14 @@
  * Copyright 2012 Freescale Semiconductor, Inc.
  */
 
+#include <image.h>
 #include <init.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/mx6-pins.h>
 #include <env.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <asm/gpio.h>
index 4e34710b97dc147a260454da2b9369953f8761cb..12d4fe63cb0bbe26553425cbbc7ef2291b1b6af0 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <command.h>
 
 int arch_misc_init(void)
 {
index b6b4f19d84d29250a2068d493c6ad9fca40af610..7dfbc3ac8676916442f22b4b8b7f803106ce9edd 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 
 #ifdef CONFIG_SPL_BUILD
 /* provided to defeat compiler optimisation in board_init_f() */
index b6afdfc9139384fd3c5a0d5426e7c61b6daf416b..6f3959931671d6e1e1ac3a877b412e580a0f29ec 100644 (file)
@@ -8,6 +8,8 @@
 #include <hang.h>
 #include <asm/io.h>
 #include <errno.h>
+#include <init.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/ddr.h>
 #include <asm/arch/imx8mq_pins.h>
@@ -17,6 +19,7 @@
 #include <asm/mach-imx/gpio.h>
 #include <asm/mach-imx/mxc_i2c.h>
 #include <asm/sections.h>
+#include <linux/delay.h>
 #include <fsl_esdhc_imx.h>
 #include <mmc.h>
 #include <spl.h>
index 6b9c34818b35bac94dc4535b273c2d810e6a38b9..391d973c0b6d045b4f67625fb1681deddcaf7042 100644 (file)
@@ -6,8 +6,11 @@
 #include <clk.h>
 #include <common.h>
 #include <dm.h>
+#include <init.h>
+#include <log.h>
 #include <asm/arch-rockchip/clock.h>
 #include <dt-bindings/clock/rk3288-cru.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <power/regulator.h>
 
@@ -68,7 +71,7 @@ static int veyron_init(void)
 }
 #endif
 
-int board_early_init_f(void)
+int board_early_init_r(void)
 {
        struct udevice *dev;
        int ret;
index 7f0de5e42b0ad1af20cf39b061d86987e92e4ec7..8cc9278287b4005403a07298e83392d27bbbaa39 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <net.h>
 #include <asm/arch/chilisom.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/hardware.h>
index 5d71b639df08786c1b73139b0b437022442b0d85..df32e12037b527d4c541db25682491f226239912 100644 (file)
@@ -4,6 +4,7 @@
  * Copyright (C) 2016 Grinn
  */
 
+#include <common.h>
 #include <command.h>
 #include <init.h>
 #include <asm/arch/clock.h>
index 78fb98ef645c86ae661321b5d97790ee5685ea08..0df03a5a61f1dfc130ff8f16920cb0a48125446e 100644 (file)
@@ -5,6 +5,8 @@
  * Maintainer: Ash Charles  <ash@gumstix.com>
  */
 #include <common.h>
+#include <init.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/mmc_host_def.h>
@@ -14,6 +16,7 @@
 #include <asm/arch/gpio.h>
 #include <asm/gpio.h>
 #include <asm/mach-types.h>
+#include <linux/delay.h>
 
 #include "duovero_mux_data.h"
 
index 65e5e1e60f294af8f413a212802d0d3e67787a96..ebb5a560c3af6d7f94fb9482ae303a4e86015782 100644 (file)
@@ -9,6 +9,8 @@
 #include <common.h>
 #include <env.h>
 #include <errno.h>
+#include <init.h>
+#include <net.h>
 #include <serial.h>
 #include <spl.h>
 #include <asm/arch/cpu.h>
index 49cd117e3c5604a9b5d7f7a5bb9a31c2e68fac9c..9c057278ace15f50176c950174f8701070b7916d 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <ahci.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 #define CPHY_MAP(dev, addr) ((((dev) & 0x1f) << 7) | (((addr) >> 9) & 0x7f))
 #define CPHY_ADDR(base, dev, addr) ((base) | (((addr) & 0x1ff) << 2))
index 3e0edd48f51d534c407f53ca981b9ac747417eb0..063831dfe873a8b9115969d4cf0ea1d56ec6c090 100644 (file)
@@ -7,6 +7,9 @@
 #include <ahci.h>
 #include <cpu_func.h>
 #include <env.h>
+#include <fdt_support.h>
+#include <init.h>
+#include <net.h>
 #include <netdev.h>
 #include <scsi.h>
 
index 84400090b30a3fe0c9f5ba0a4959b41ea91a438a..6eea939b919985650dfb6f23cb49850c4f9afc7e 100644 (file)
@@ -7,12 +7,15 @@
 #include <cpu_func.h>
 #include <dm.h>
 #include <fdt_support.h>
+#include <init.h>
+#include <log.h>
 #include <dm/platform_data/serial_pl01x.h>
 #include <errno.h>
 #include <malloc.h>
 #include <netdev.h>
 #include <asm/io.h>
 #include <usb.h>
+#include <linux/delay.h>
 #include <power/hi6553_pmic.h>
 #include <asm-generic/gpio.h>
 #include <asm/arch/dwmmc.h>
index 84c26e0c14f2cf68626eb88e59f77d2383b79f93..db485db10a95c95355e8370c5797f89771592b11 100644 (file)
@@ -8,11 +8,14 @@
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
+#include <asm/cache.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/hi3660.h>
 #include <asm/armv8/mmu.h>
 #include <asm/psci.h>
 #include <linux/arm-smccc.h>
+#include <linux/delay.h>
 #include <linux/psci.h>
 
 #define PMIC_REG_TO_BUS_ADDR(x) (x << 2)
index 4937dc374c7877b4ae9d959804aae3a3c0a13539..371c3c33fc88647a9f79a82739356daee592dd05 100644 (file)
@@ -8,10 +8,13 @@
 #include <cpu_func.h>
 #include <dm.h>
 #include <init.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <dm/platform_data/serial_pl01x.h>
 #include <asm/arch/hi3798cv200.h>
 #include <asm/armv8/mmu.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 6e74e939c3cba3216a7d87b3848148493d96b4a6..d0d34012d74fd4b12e4b5dcef008721650a3191e 100644 (file)
@@ -16,6 +16,8 @@
 #include <init.h>
 #include <mpc83xx.h>
 #include <spi.h>
+#include <asm/bitops.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index 46ec1e8d9c295b6128ecb43cd16b5feb377d6d01..1b8a47d2549fde03e5b9aa05dc1907e22ea310b5 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 
 #include <asm/io.h>
 #include <asm/mipsregs.h>
index 170ea12c93778709d0ab823714a0be615a712f70..5339b9e9f94f5ac82a4d6f31d85074729dcd704c 100644 (file)
@@ -8,10 +8,13 @@
 
 #include <common.h>
 #include <env.h>
+#include <init.h>
 #include <net.h>
 #include <netdev.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <mach/jz4780.h>
 #include <mach/jz4780_dram.h>
 #include <mach/jz4780_gpio.h>
index 77ce75ecf2663f94b965bbc9f675928231234b8e..88a1a63bf48866d15a43ee35faf3bf06f7bcf014 100644 (file)
@@ -7,11 +7,13 @@
 #include <common.h>
 #include <ide.h>
 #include <init.h>
+#include <net.h>
 #include <netdev.h>
 #include <pci.h>
 #include <pci_gt64120.h>
 #include <pci_msc01.h>
 #include <rtc.h>
+#include <linux/delay.h>
 
 #include <asm/addrspace.h>
 #include <asm/io.h>
index 86645155e6423412132c0b275586a2d35ecfea5a..0b68bbde50fcb8cdf979aac8c9749220ba608a44 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 7aadd9e47728852b486c3bfe6ceec0ab7922c028..ce11eae59d506fe683628a41488fecd6442147b2 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <init.h>
 #include <pci.h>
 #include <smsc_sio1007.h>
 #include <asm/ibmpc.h>
index 57dce4185d6a4b3c9a616dd4449e094b0b015b6a..55095deeadd7100856977e012f7f9b47a47c52a2 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/ibmpc.h>
 #include <asm/pnp_def.h>
 #include <smsc_lpc47m.h>
index e5fc9397934478482072de71240e1308301a3db7..b02e3f0d4e5c43144255bb412915d879e92b49b1 100644 (file)
@@ -5,6 +5,8 @@
 
 #include <common.h>
 #include <dm.h>
+#include <init.h>
+#include <log.h>
 #include <asm/gpio.h>
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
index 4fa34e1b51cdaf24a24adac47f9effddf2d3f36d..02a514809f7b34a284f46ccde62d81a206ba9043 100644 (file)
@@ -17,6 +17,7 @@
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/iomux-mx53.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <i2c.h>
 #include <mmc.h>
index fc7847bd1d6dc7255d2cd21244d47db6c96adc29..79c794bfc896ba764f1ecd9de9f8221e13859ba4 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <miiphy.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
index b0f8d8a314a5cf8e53f50faaccc8400c49a9a0ae..a28d44782549815b7db84e28b6e7f42ed9165bf7 100644 (file)
@@ -10,6 +10,7 @@
 #include <errno.h>
 #include <init.h>
 #include <malloc.h>
+#include <net.h>
 #include <serial.h>
 #include <spl.h>
 #include <asm/arch/cpu.h>
index f5d62ffc2e59d3fcf7f689084cb3cf48df8fb440..2c269773a85cc30c08b82764f1f08a7f517f7713 100644 (file)
@@ -7,6 +7,7 @@
 #include <asm/arch/mux.h>
 #include <asm/arch/sys_proto.h>
 #include <jffs2/load_kernel.h>
+#include <linux/delay.h>
 #include <linux/mtd/rawnand.h>
 #include "igep00x0.h"
 
index 1b871fdcc5af4190f633d4f3b35bc7fa1a3238a7..af0bce6426e54d5a72dcd9bd1c513b17821363e5 100644 (file)
@@ -5,7 +5,9 @@
  */
 #include <common.h>
 #include <env.h>
+#include <init.h>
 #include <malloc.h>
+#include <net.h>
 #include <status_led.h>
 #include <dm.h>
 #include <ns16550.h>
@@ -18,6 +20,7 @@
 #include <asm/arch/mmc_host_def.h>
 #include <asm/arch/mux.h>
 #include <asm/arch/sys_proto.h>
+#include <linux/delay.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/rawnand.h>
 #include <linux/mtd/onenand.h>
index 9dae54dda5fc6a3d41e20e1ea8dd2fd26f43c5dd..7103a3e0f2b5b1c332f0d6bf38ae5b074dd62c9f 100644 (file)
@@ -13,6 +13,7 @@
 #include <env.h>
 #include <i2c.h>
 #include "kp_id_rev.h"
+#include <net.h>
 
 static int eeprom_has_been_read;
 static struct id_eeprom eeprom;
index 25a5e4b9ba2f49695db52fa8f36a0c4b9fb7d01e..75fb6acfb3c335b005bab861526646c88858eef3 100644 (file)
@@ -6,6 +6,8 @@
  */
 
 #include <common.h>
+#include <init.h>
+#include <log.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/imx-regs.h>
@@ -14,6 +16,7 @@
 #include <asm/io.h>
 #include <errno.h>
 #include <spl.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 08f7f8d88451710513a9734da3ce266b96ea4c4d..9c9e1598f82dc01b4861451cebca9855dd4590d9 100644 (file)
@@ -17,6 +17,7 @@
 #include <netdev.h>
 #include <asm/io.h>
 #include <linux/ctype.h>
+#include <linux/delay.h>
 
 #if defined(CONFIG_POST)
 #include "post.h"
@@ -157,8 +158,8 @@ int board_eth_init(bd_t *bis)
  * read out the board id and the hw key from the intventory EEPROM and set
  * this values as environment variables.
  */
-static int do_setboardid(cmd_tbl_t *cmdtp, int flag, int argc,
-                               char *const argv[])
+static int do_setboardid(struct cmd_tbl *cmdtp, int flag, int argc,
+                        char *const argv[])
 {
        unsigned char buf[32];
        char *p;
@@ -203,8 +204,8 @@ U_BOOT_CMD(km_setboardid, 1, 0, do_setboardid, "setboardid", "read out bid and "
  *                             application and in the init scripts (?)
  *     return 0 in case of match, 1 if not match or error
  */
-static int do_checkboardidhwk(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char *const argv[])
+static int do_checkboardidhwk(struct cmd_tbl *cmdtp, int flag, int argc,
+                             char *const argv[])
 {
        unsigned long ivmbid = 0, ivmhwkey = 0;
        unsigned long envbid = 0, envhwkey = 0;
@@ -344,8 +345,8 @@ U_BOOT_CMD(km_checkbidhwk, 2, 0, do_checkboardidhwk,
  *  if the testpin of the board is asserted, return 1
  *  *  else return 0
  */
-static int do_checktestboot(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char *const argv[])
+static int do_checktestboot(struct cmd_tbl *cmdtp, int flag, int argc,
+                           char *const argv[])
 {
        int testpin = 0;
        char *s = NULL;
index 0cb33663aaa899a7031a16dd4fee6090c062b8d3..06a4e67881f93e0a0629173a0711e11c9883321b 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <linux/bitops.h>
 
 #include "common.h"
 #include "qrio.h"
index 1011cc8b2c15a2af4dbb592673ed645cf3efc7bc..94075ce70f45f1f92838f0ed4dbd6ac1f4d88366 100644 (file)
@@ -57,25 +57,6 @@ config BOARD_SPECIFIC_OPTIONS # dummy
 
 endif
 
-if TARGET_SUVD3
-
-config SYS_BOARD
-       default "km83xx"
-
-config SYS_VENDOR
-       default "keymile"
-
-config SYS_CONFIG_NAME
-       default "suvd3"
-
-config BOARD_SPECIFIC_OPTIONS # dummy
-       def_bool y
-       select ARCH_MPC832X
-       imply CMD_CRAMFS
-       imply FS_CRAMFS
-
-endif
-
 if TARGET_TUXX1
 
 config SYS_BOARD
index d2af983073e638c6426e0af571240db815ddf043..177c2c49707fbb742454690eba1abdd18f1acc40 100644 (file)
@@ -8,9 +8,7 @@ F:      configs/kmeter1_defconfig
 F:     include/configs/tuxx1.h
 F:     configs/kmopti2_defconfig
 F:     configs/kmtepr2_defconfig
-F:     include/configs/suvd3.h
 F:     configs/kmtegr1_defconfig
-F:     configs/suvd3_defconfig
 F:     configs/tuge1_defconfig
 F:     configs/tuxx1_defconfig
 
index 8f7e7f05d82bcdaf5d7d3f6a7d94318a51999ebb..75c558ad3cd2c653f5bf78a0faae959eb55597f8 100644 (file)
@@ -18,6 +18,7 @@
 #include <fdt_support.h>
 #include <init.h>
 #include <ioports.h>
+#include <log.h>
 #include <mpc83xx.h>
 #include <i2c.h>
 #include <miiphy.h>
@@ -25,6 +26,7 @@
 #include <asm/mmu.h>
 #include <asm/processor.h>
 #include <pci.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <post.h>
 
@@ -98,27 +100,6 @@ const qe_iop_conf_t qe_iop_conf_tab[] = {
        {0,  0, 0, 0, QE_IOP_TAB_END},
 };
 
-#if defined(CONFIG_SUVD3)
-const uint upma_table[] = {
-       0x1ffedc00, 0x0ffcdc80, 0x0ffcdc80, 0x0ffcdc04, /* Words 0 to 3 */
-       0x0ffcdc00, 0xffffcc00, 0xffffcc01, 0xfffffc01, /* Words 4 to 7 */
-       0xfffffc01, 0xfffffc01, 0xfffffc01, 0xfffffc01, /* Words 8 to 11 */
-       0xfffffc01, 0xfffffc01, 0xfffffc01, 0xfffffc01, /* Words 12 to 15 */
-       0xfffffc01, 0xfffffc01, 0xfffffc01, 0xfffffc01, /* Words 16 to 19 */
-       0xfffffc01, 0xfffffc01, 0xfffffc01, 0xfffffc01, /* Words 20 to 23 */
-       0x9cfffc00, 0x00fffc80, 0x00fffc80, 0x00fffc00, /* Words 24 to 27 */
-       0xffffec04, 0xffffec01, 0xfffffc01, 0xfffffc01, /* Words 28 to 31 */
-       0xfffffc01, 0xfffffc01, 0xfffffc01, 0xfffffc01, /* Words 32 to 35 */
-       0xfffffc01, 0xfffffc01, 0xfffffc01, 0xfffffc01, /* Words 36 to 39 */
-       0xfffffc01, 0xfffffc01, 0xfffffc01, 0xfffffc01, /* Words 40 to 43 */
-       0xfffffc01, 0xfffffc01, 0xfffffc01, 0xfffffc01, /* Words 44 to 47 */
-       0xfffffc01, 0xfffffc01, 0xfffffc01, 0xfffffc01, /* Words 48 to 51 */
-       0xfffffc01, 0xfffffc01, 0xfffffc01, 0xfffffc01, /* Words 52 to 55 */
-       0xfffffc01, 0xfffffc01, 0xfffffc01, 0xfffffc01, /* Words 56 to 59 */
-       0xfffffc01, 0xfffffc01, 0xfffffc01, 0xfffffc01  /* Words 60 to 63 */
-};
-#endif
-
 static int piggy_present(void)
 {
        struct km_bec_fpga __iomem *base =
@@ -136,11 +117,6 @@ int board_early_init_r(void)
 {
        struct km_bec_fpga *base =
                (struct km_bec_fpga *)CONFIG_SYS_KMBEC_FPGA_BASE;
-#if defined(CONFIG_SUVD3)
-       immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
-       fsl_lbc_t *lbc = &immap->im_lbc;
-       u32 *mxmr = &lbc->mamr;
-#endif
 
 #if defined(CONFIG_ARCH_MPC8360)
        unsigned short  svid;
@@ -176,12 +152,6 @@ int board_early_init_r(void)
        /* enable Application Buffer */
        setbits_8(&base->oprtl, OPRTL_XBUFENA);
 
-#if defined(CONFIG_SUVD3)
-       /* configure UPMA for APP1 */
-       upmconfig(UPMA, (uint *) upma_table,
-               sizeof(upma_table) / sizeof(uint));
-       out_be32(mxmr, CONFIG_SYS_MAMR);
-#endif
        return 0;
 }
 
index 113ca70a1ac81929364cd3de658241a960fbc0e1..62100b19492d017940920aee4c670d7e6886e3d3 100644 (file)
@@ -8,6 +8,7 @@
 #include <i2c.h>
 #include <asm/io.h>
 #include <linux/ctype.h>
+#include <linux/delay.h>
 #include "../common/common.h"
 
 static void i2c_write_start_seq(void)
index 8bb0470bc3073aee35992c1b5fde8c819ae2fa0b..abb5b7d60d0e1d3397a314a287bef687b2a35f00 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 
 /* GPIO Pin from kirkwood connected to PROGRAM_B pin of the xilinx FPGA */
index ee2e3d6b9aac83a4a2cca0b55b56b22bb0146db0..d9c9ddf2bac5ed3a6891e45e33ada709c61163e0 100644 (file)
@@ -9,6 +9,8 @@
 #include <common.h>
 #include <i2c.h>
 #include <hwconfig.h>
+#include <init.h>
+#include <log.h>
 #include <asm/mmu.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
index 7499d2078b718cd4567a07c14cc6e79b1db6ae2c..8635a5448b863c9c514ae8947360d1e2c76518b6 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <net.h>
 #include <netdev.h>
 #include <fm_eth.h>
 #include <fsl_mdio.h>
index 0a6cf1fd29a06e096aba336a9c188d3f0498a575..21afbc7f39aea27c405e2ca5b8d84be7a718396a 100644 (file)
@@ -10,6 +10,7 @@
 #include <command.h>
 #include <env.h>
 #include <fdt_support.h>
+#include <image.h>
 #include <init.h>
 #include <netdev.h>
 #include <linux/compiler.h>
index 15bbc810a1b650cc64ea1576d8652863469033c6..87bf16886ad1d9418c9646d23941e49de7196d6c 100644 (file)
@@ -11,6 +11,7 @@
 #include <init.h>
 #include <pci.h>
 #include <asm/fsl_pci.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <asm/fsl_serdes.h>
index 6ef960b06ba08cde878b1cc9c617ce56c13500a6..7bc66af193414f25cac47a9c3b247cb41edee347 100644 (file)
@@ -6,6 +6,8 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
+#include <net.h>
 #include <asm/io.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/gpio.h>
index 3c3592ecf58b5ea815d26c5c007458bf94d843a6..97b152664a201eb2d2eeebb39c177980871d5c1c 100644 (file)
@@ -6,7 +6,9 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <init.h>
 #include <miiphy.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
index 4bec2be43fb1d94a5d41e3bf14b678c266cafd23..b1939f8a56e259b7a6635d03749f71ca927c1b69 100644 (file)
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <eeprom.h>
 #include <init.h>
+#include <log.h>
 #include <dm/device-internal.h>
 #include <ahci.h>
 #include <env.h>
index bc52b91b2f433fa4a2e8eba819bbfac6ffca500b..9926285675bb361123416c15ccca52f8ed534db0 100644 (file)
@@ -23,6 +23,7 @@
 #include <mmc.h>
 #include <fsl_esdhc_imx.h>
 #include <spl.h>
+#include <linux/delay.h>
 
 #include <asm/arch/mx6-ddr.h>
 
index 7083b6e103f58e8acdd0ed7a22c75fb50059dcb2..a96a877f5f21834d9784104d711d28c61ad84c0e 100644 (file)
@@ -10,6 +10,8 @@
  */
 
 #include <common.h>
+#include <log.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
index fa099e95f5460761b3d37fc73680f2dbb083a715..51b669a891b6e7f28c3693da17d357f22999774b 100644 (file)
@@ -14,6 +14,7 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <init.h>
 #include <spi.h>
 #include <spi_flash.h>
 #include <asm/arch/hardware.h>
index b4205d6ed4c11e18ee2be50ccaa8f7c511eaf3c1..2825eccc035a2ff3d376ba705250709bd6ca3c85 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
+#include <init.h>
 #include <linux/ctype.h>
 #include <linux/usb/musb.h>
 #include <asm/omap_musb.h>
index 85ca777c1d229e6a75b82aa03d6c5ccee9ee9677..ec55fdf0aa5fee76aab099193a5f39ada2a36251 100644 (file)
@@ -6,6 +6,9 @@
 
 #include <common.h>
 #include <dm.h>
+#include <fdt_support.h>
+#include <init.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
@@ -22,6 +25,7 @@
 #include <miiphy.h>
 #include <netdev.h>
 #include <i2c.h>
+#include <linux/delay.h>
 
 #include <dm.h>
 #include <dm/platform_data/serial_mxc.h>
index 765463e37070c6df7b2bf1c5299216b3335a9e77..ac4f23f4d646f2060466b87899cceaf9ac718bad 100644 (file)
@@ -7,8 +7,12 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <env.h>
+#include <image.h>
+#include <init.h>
+#include <log.h>
 #include <serial.h>
 #include <spl.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
index 08d2b56d54b6ab79d2f4a8945f9fe6f0db53b7ea..b234f062205908d84d56db978103d5cabca65a82 100644 (file)
@@ -5,6 +5,8 @@
  *         Richard Hu <hakahu@gmail.com>
  */
 
+#include <image.h>
+#include <init.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
@@ -20,6 +22,7 @@
 #include <asm/arch/sys_proto.h>
 #include <serial.h>
 #include <spl.h>
+#include <linux/delay.h>
 
 #include <asm/arch/mx6-ddr.h>
 /*
index df5d316717fd2b0b9513ad0e8faf34998f3e91ff..8159f3a2d9edee33a3606ccddde8f4efde5384b6 100644 (file)
  */
 
 #include <common.h>
+#include <fdt_support.h>
+#include <init.h>
+#include <log.h>
+#include <net.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux-mx28.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/sys_proto.h>
+#include <linux/delay.h>
 #include <linux/mii.h>
 #include <miiphy.h>
 #include <netdev.h>
index 18f3c3f9d9c7a217545c2c11f4557ff8d218934b..b25b02b6418723af33c674f364c57ada8ffe044f 100644 (file)
@@ -12,6 +12,8 @@
 
 #include <common.h>
 #include <dm.h>
+#include <init.h>
+#include <net.h>
 #include <ns16550.h>
 #include <serial.h>
 #include <asm/io.h>
index 50572c6a71dd0b51e132bb6f2a61cc6209d1b848..496886fea25acf87d559db0731286c7ff19f7807 100644 (file)
@@ -13,6 +13,7 @@
 #include <common.h>
 #include <dm.h>
 #include <init.h>
+#include <net.h>
 #include <ns16550.h>
 #include <flash.h>
 #include <nand.h>
index 6bfa41737f6b7e199a6b20626a102614142c5e09..53dc9762f8768e1a8d664d1be41431959b0d315c 100644 (file)
@@ -16,6 +16,8 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
+#include <init.h>
+#include <net.h>
 #include <ns16550.h>
 #include <netdev.h>
 #include <twl4030.h>
index 395904f8c87861648c214156c785736c6812e0f4..3c6422214f777c7fff863a73677a86465a909ad9 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <miiphy.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
index b9296bede24b38af9d50b61f037812680f960cf2..6a5f936635c1242be8a342e9dd7e83ed9485aa82 100644 (file)
@@ -6,6 +6,8 @@
 
 #include <common.h>
 #include <config.h>
+#include <env.h>
+#include <init.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 726111d7d398b6d8131cec5fe7e5d29a40fceae6..4ad62b73a6c0d60d09248e14c20754689188bfeb 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <wdt.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index 2ac7c6cd18dbbe004147b48858f834f5f6521732..c9acfcb1a56d34f40a58347d21066b80ff177c12 100644 (file)
@@ -5,6 +5,8 @@
 
 #include <common.h>
 #include <dm.h>
+#include <init.h>
+#include <log.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 70a13aa17b3d932944ceffae50a4a886300397f7..58a564ac31464ff8a6658c2f134a7dc3dc3b7d22 100644 (file)
@@ -26,6 +26,7 @@
 #include <gzip.h>
 #include <i2c.h>
 #include <ipu_pixfmt.h>
+#include <linux/bitops.h>
 #include <linux/errno.h>
 #include <linux/fb.h>
 #include <mmc.h>
index 0ef243186d4f7dd546137f3d64c5e4d218d1d2bd..8381361ec3687f331558cdfa9f551b9f645ea3d3 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <init.h>
 #include <asm/io.h>
 
 #define MPFS_SYSREG_SOFT_RESET ((unsigned int *)0x20002088)
index aa8aab39cec2128835ec2ee85947e53528b41bfd..e7337deea7fa886571a94fd547cce06f42db789d 100644 (file)
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <dm.h>
 #include <clk.h>
+#include <init.h>
 #include <malloc.h>
 #include <dt-bindings/clock/microchip,clock.h>
 #include <mach/pic32.h>
index d1d1f40092d1b7f9be38782552abeaaf4b469869..8b419ef6f7ea36bed012f58ee66bc8121183a5f2 100644 (file)
@@ -5,7 +5,9 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <init.h>
 #include <asm/gpio.h>
+#include <linux/bitops.h>
 #include <linux/mbus.h>
 #include <linux/io.h>
 #include <asm/arch/cpu.h>
index 5b2fd9c23f63aa821959ad068dc8d807561c48ea..601442055d9b854c0ec6f16cca6d0624f9a0900c 100644 (file)
@@ -7,6 +7,8 @@
 #include <common.h>
 #include <i2c.h>
 #include <init.h>
+#include <net.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <pci.h>
index 0566fcba5c50c87837493813d21a232276b9dcba..45b9649336dbccc571fe9e5d2b25ddd9d9dea504 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <asm/io.h>
 #include <spi.h>
+#include <linux/bitops.h>
 
 void external_cs_manage(struct udevice *dev, bool enable)
 {
index 067907ba52c272fcff65443b9419b07f5af9d9af..51700f4acffee0967d4a107e389c155e1af8fbcf 100644 (file)
@@ -4,10 +4,13 @@
  */
 
 #include <common.h>
+#include <image.h>
 #include <init.h>
 #include <asm/io.h>
 #include <led.h>
 #include <miiphy.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 enum {
        BOARD_TYPE_PCB110 = 0xAABBCE00,
index e614058d10f9e178142183d3fcaa6e0330bcb5e3..acc26157c77125f80c1d21bb16382339bbcc3b4d 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <image.h>
 #include <init.h>
 #include <asm/io.h>
 #include <led.h>
index ad227a416934877982a6dab0e782190948f33e0c..74e8bfc43147615d5139510833894794e4880846 100644 (file)
@@ -4,7 +4,9 @@
  */
 
 #include <common.h>
+#include <image.h>
 #include <init.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/addrspace.h>
 #include <asm/types.h>
@@ -12,6 +14,7 @@
 #include <led.h>
 #include <wait_bit.h>
 #include <miiphy.h>
+#include <linux/bitops.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 6c6dbf2bfffddd03f7453e6a5632f240e91f8de2..ed1aea55cc2fbeaef8747ae02c3c1e7037e7c902 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <image.h>
 #include <init.h>
 #include <asm/io.h>
 #include <led.h>
index 71891f6fe38dc0e611bb36147d1d63303f9a083f..d0e6016b9affc07b776b878185bfea9223aecc25 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <image.h>
 #include <init.h>
 #include <asm/io.h>
 #include <led.h>
index 6840a21001c6921f783ee61357e7dd463ef41a0a..cfc3529c3488e4254b8cd4500ccd069708e950f2 100644 (file)
@@ -4,7 +4,9 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 #define GPIO_BASE_6362                 0x10000080
 
index a282fe68a610f498ff37937cffa6281ab17081d2..60a2e3619c2cc41f9e80b52db4528a51f3fb3f7b 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <common.h>
 #include <env.h>
+#include <init.h>
 #include <watchdog.h>
 #include <malloc.h>
 #include <twl4030.h>
index 5fb4d43997dded7e4da2ddde118e734c130c991f..b13e7ce3b18d7dd0040b754dad743fe785da9790 100644 (file)
@@ -4,6 +4,7 @@
  * Copyright (C) 2016 NXP Semiconductors
  */
 
+#include <init.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/mx7-pins.h>
index 2ae64b1c33f7a2b66dfa375e9d2be5f7dd9c214a..6848e3400466fb8ca80258ab649ee763a8ccd535 100644 (file)
@@ -6,10 +6,12 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <asm/arch/pinmux.h>
 #include <asm/arch/gp_padctrl.h>
 #include <asm/arch/gpio.h>
 #include <asm/gpio.h>
+#include <linux/delay.h>
 #include "pinmux-config-cardhu.h"
 #include <i2c.h>
 
index fcee21713fa4bfa470b359864de666d1761b98fb..72511e401e3cea6e0c48cf6f079907cc2ba9ce80 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <asm/arch/pinmux.h>
 #include <asm/arch/gp_padctrl.h>
 #include "pinmux-config-dalmore.h"
index 5aac0404bf80c6dc4143685ec6bca3b1661db259..b819b049f4b4fca3ffdfd67c6eff43fe409e5d2b 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <log.h>
 #include <asm/arch/gpio.h>
 #include <asm/arch/pinmux.h>
 #include "../p2571/max77620_init.h"
index aed08b42321e80fd9da9681b0686d79ca8fc7e3a..9eccdc4a832feabbdabe605d068403989c199048 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <power/as3722.h>
 #include <power/pmic.h>
 
index 3c7bfead249ff756fc309abfa199688ca19df12a..71c71ed6ec231e26e6bd5bf597013ca1f0adb98b 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <asm/arch/pinmux.h>
@@ -14,6 +15,7 @@
 #include <asm/arch/mc.h>
 #include <asm/arch-tegra/clk_rst.h>
 #include <asm/arch-tegra/pmc.h>
+#include <linux/delay.h>
 #include <power/as3722.h>
 #include <power/pmic.h>
 #include "pinmux-config-nyan-big.h"
index 5aac0404bf80c6dc4143685ec6bca3b1661db259..b819b049f4b4fca3ffdfd67c6eff43fe409e5d2b 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <log.h>
 #include <asm/arch/gpio.h>
 #include <asm/arch/pinmux.h>
 #include "../p2571/max77620_init.h"
index 1756bbca98580130f25178b274dc7ea9a0bf2fbb..4aeec473b16e9579d49b73e337d017ec4032f29a 100644 (file)
@@ -8,6 +8,9 @@
 #include <env.h>
 #include <fdtdec.h>
 #include <i2c.h>
+#include <log.h>
+#include <net.h>
+#include <linux/bitops.h>
 #include <linux/libfdt.h>
 #include <asm/arch/gpio.h>
 #include <asm/arch/pinmux.h>
index a9e4d21e7b03c6129e74312da5798b2477e9e269..a4c4259eeaee9339cca130415166b0d9d844eb3a 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <log.h>
 #include <asm/arch/gpio.h>
 #include <asm/arch/pinmux.h>
 #include <asm/gpio.h>
index 63cdb3a604b8014281af66dc79eda1f6c27d9582..3f0e594b9c88e83186b70b68fd1465d07d09486b 100644 (file)
@@ -7,6 +7,8 @@
 #include <env.h>
 #include <fdtdec.h>
 #include <i2c.h>
+#include <log.h>
+#include <net.h>
 #include <linux/libfdt.h>
 #include <asm/arch-tegra/cboot.h>
 #include "../p2571/max77620_init.h"
index f4212ab8222f6932691ca396e923962f0b8889a2..45f9bacc712e4552979adfc9708229fd7a2be7ae 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <fdtdec.h>
 #include <i2c.h>
+#include <linux/bitops.h>
 #include <linux/libfdt.h>
 #include <pca953x.h>
 #include <asm/arch-tegra/cboot.h>
index 5ebd6a0c09984fd974b39fa8f724d7452759ab5a..ba676547d3ecee6dcaa78c856869aad7ba9e720f 100644 (file)
@@ -5,8 +5,10 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch-tegra/tegra_i2c.h>
+#include <linux/delay.h>
 #include "as3722_init.h"
 
 /* AS3722-PMIC-specific early init code - get CPU rails up, etc */
index f1d7cb8c93a2440230718311e950ef18704635d6..808d22103637b26a2a48fbfaf0fcbbb45b3b94af 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <asm/arch/iomux-mx23.h>
@@ -15,6 +16,7 @@
 #ifdef CONFIG_LED_STATUS
 #include <status_led.h>
 #endif
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index baa7997477efe9cc4b088a6b7c966ca0b47f6296..5450f5d11cea91ac6b85e6520747b8b361fea25f 100644 (file)
 #include <common.h>
 #include <dm.h>
 #include <env.h>
+#include <init.h>
 #include <malloc.h>
+#include <net.h>
 #include <ns16550.h>
 #include <netdev.h>
 #include <twl4030.h>
+#include <linux/delay.h>
 #include <linux/mtd/rawnand.h>
 #include <asm/io.h>
 #include <asm/arch/mmc_host_def.h>
index d577e00fbca97e295363669fa13fab72e61e216b..91d8091d258998d8bfa5b73a951ac6154f987ca8 100644 (file)
@@ -11,6 +11,8 @@
  * (C) Copyright 2004-2008
  * Texas Instruments, <www.ti.com>
  */
+
+#include <common.h>
 #include <asm/io.h>
 #include <asm/arch/mem.h>
 #include <asm/arch/sys_proto.h>
index a9aae7951d965fba06c0e26339d254078114a867..a93848666fea3380a5b76cb36c8c9fe463bf0aa5 100644 (file)
@@ -14,6 +14,7 @@
  */
 #include <common.h>
 #include <dm.h>
+#include <init.h>
 #include <ns16550.h>
 #include <twl4030.h>
 #include <asm/io.h>
@@ -23,6 +24,7 @@
 #include <asm/arch/gpio.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/mach-types.h>
+#include <linux/delay.h>
 #include "pandora.h"
 
 DECLARE_GLOBAL_DATA_PTR;
index b5e080c0723bedff498aebf965bbeac6a54e75e4..48cb2e267cffdaa12624107abca75e81893a6c96 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <spl.h>
 #include <asm/arch/clock.h>
 #include <asm/io.h>
index 43f6c5afcb8ce872b3ed9bae73b15dd77d401dbc..6f1ada82c46b35697592170ca51061a0e065525c 100644 (file)
@@ -11,6 +11,8 @@
 #include <common.h>
 #include <env.h>
 #include <errno.h>
+#include <init.h>
+#include <net.h>
 #include <spl.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/hardware.h>
index c40dc052b5e8ca3e852839178ed06da15be87df2..b0c56a29f1f85986e21a1f3b2b7256ede2497e3c 100644 (file)
@@ -17,6 +17,7 @@
 #include <env.h>
 #include <led.h>
 #include <miiphy.h>
+#include <linux/bitops.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 820b5fde142744a2937e50aab5809dc617fe1092..096425c5dfed63bee71cf31dea76508d9e8642db 100644 (file)
@@ -11,6 +11,7 @@
  */
 #include <common.h>
 #include <init.h>
+#include <net.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
@@ -22,6 +23,7 @@
 #include <asm/mach-imx/boot_mode.h>
 #include <asm/mach-imx/mxc_i2c.h>
 #include <asm/mach-imx/spi.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/gpio.h>
 #include <mmc.h>
index a3af823ef6b3be422f4da7492dbadf84d3828c71..fed8f52e3e1d469759c3d07104294748cb8737f0 100644 (file)
@@ -6,6 +6,8 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <init.h>
+#include <log.h>
+#include <net.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
@@ -18,6 +20,7 @@
 #include <asm/mach-imx/mxc_i2c.h>
 #include <asm/mach-imx/spi.h>
 #include <env.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/gpio.h>
 #include <mmc.h>
index 039ed0f1bcc54333910f50e9e2c6e112242d3a34..ecc73227a023f15b53a4b6b75c448f4ea6574f4b 100644 (file)
@@ -6,6 +6,8 @@
 
 #include <eeprom.h>
 #include <init.h>
+#include <log.h>
+#include <net.h>
 #include <asm/io.h>
 #include <common.h>
 #include <dm.h>
@@ -14,6 +16,7 @@
 #include <i2c.h>
 #include <i2c_eeprom.h>
 #include <netdev.h>
+#include <linux/bitops.h>
 #include "som.h"
 #include <power/regulator.h>
 #include <power/rk8xx_pmic.h>
index 40dd27a7b0d19ec584637e67ed9c4b99760d4fa4..b80688ae864ce5842774d9080b0e00898d2ff212 100644 (file)
@@ -6,8 +6,12 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <cpu_func.h>
+#include <init.h>
+#include <log.h>
 #include <asm/armv8/mmu.h>
+#include <asm/cache.h>
 #include <asm/system.h>
 #include <asm/io.h>
 #include <linux/arm-smccc.h>
index 3f602357713b378689e57657c8fa563241c334f0..d79084614f1f94b2314d6e0792a1ab969cb8326c 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <init.h>
 #include <syscon.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/clock.h>
index e3e8e74220d5a25b07ef5fe7bd56a2db42b8a4c3..9150748654c107a8ce2f62b4a6ec94d2b4574647 100644 (file)
@@ -6,12 +6,15 @@
  */
 
 #include <common.h>
+#include <init.h>
+#include <net.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux-mx28.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/sys_proto.h>
+#include <linux/delay.h>
 #include <linux/mii.h>
 #include <miiphy.h>
 #include <netdev.h>
index 24acdcb2e6f47c1d54df207c6907095147c322ae..60a2e19143dbbe0e02c4251d085ea38d50d23b2b 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/addrspace.h>
 #include <asm/types.h>
index 8ee26ababaabdfe51ab701f4910f9ef07a867495..ac65054136caca92d39436abc11bea23c9a841e0 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/addrspace.h>
 #include <asm/types.h>
index 30cd56563b900f6f3bdf65565a6fa3288ae6fc97..1064705d2625ce18dc40159f8283fa68bbe40b16 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/addrspace.h>
 #include <asm/types.h>
index 414a9c001dcc08ff9e307f9b666e76e89503d4ab..cf22ed5627f7b5807c49a448760976a4702b0754 100644 (file)
@@ -6,6 +6,8 @@
 
 #include <common.h>
 #include <command.h>
+#include <init.h>
+#include <net.h>
 #include <asm/mipsregs.h>
 #include <asm/io.h>
 #include <netdev.h>
index 81bd8bd95b13a87722e74ce367b7f70318830c58..672bd465a50ba77476ea2e1366a77f24f7319391 100644 (file)
 #include <dm.h>
 #include <env.h>
 #include <init.h>
+#include <net.h>
 #include <usb.h>
+#include <asm/cache.h>
 #include <asm/gpio.h>
 #include <fdt_support.h>
 #include <asm/arch/dram.h>
 #include <asm/arch/misc.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 6c096b49a1f8286c3635a040211d4d64b3e9acf0..c1ade5ce43a680e5ecf83b6ca343e90a27761a74 100644 (file)
@@ -6,8 +6,10 @@
  */
 
 #include <cpu_func.h>
+#include <init.h>
 #include <asm/arch/sysmap-apq8096.h>
 #include <env.h>
+#include <asm/cache.h>
 #include <linux/arm-smccc.h>
 #include <linux/psci.h>
 #include <common.h>
index e8aae4cb81637594b83b9e5674cdae76b9f2b18f..db1b0adc38262616acbfd4506f2eb256e8f68163 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <miiphy.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
index 767c45cc9c8e921cc22fa94e84fc050eb9c6ff76..f8bdb4d48a341cdc5a1a6fab74907b6c1b7b6ea4 100644 (file)
@@ -10,6 +10,8 @@
  */
 
 #include <common.h>
+#include <init.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/io.h>
 #include <asm/processor.h>
index a6d7cb48a249198b0917ed1ae077135b7122b628..279ed48721656b2adc8e5230f6f975043fbedcc8 100644 (file)
@@ -9,6 +9,7 @@
 #include <cpu_func.h>
 #include <env.h>
 #include <hang.h>
+#include <init.h>
 #include <malloc.h>
 #include <dm.h>
 #include <dm/platform_data/serial_sh.h>
@@ -16,6 +17,8 @@
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/gpio.h>
index dbb210584d5a2f53d7a70cb342088614764bd11e..2de236fc2989fac057c17a03b6335fe129962af8 100644 (file)
@@ -7,11 +7,13 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
 #include <malloc.h>
 #include <dm/platform_data/serial_sh.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 #include <linux/errno.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/gpio.h>
index c15387366c756c6489ff9185e9aa3e6e26f030e0..5fa10878d2c4a42f321e528cf526d6907808c7cc 100644 (file)
@@ -8,6 +8,8 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
+#include <net.h>
 #include <asm/arch/mmc.h>
 #include <asm/arch/rcar-mstp.h>
 #include <asm/arch/rmobile.h>
@@ -22,6 +24,7 @@
 #include <env.h>
 #include <hang.h>
 #include <i2c.h>
+#include <linux/bitops.h>
 #include <linux/errno.h>
 #include <malloc.h>
 #include <miiphy.h>
index 6505beda8129c8897893a22652e4f33015b8c2b7..91afcdd85a84dbdd96bda1c5fd47b471ab58aa4e 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <hang.h>
+#include <init.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
index 2f9364c484e9d55e404f47e89a36359c26865855..c8f4b214a2d854414b9251aa890a0f9e68c79e76 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <hang.h>
+#include <init.h>
 #include <malloc.h>
 #include <netdev.h>
 #include <dm.h>
@@ -16,6 +17,7 @@
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 #include <linux/errno.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/gpio.h>
index cf06a173e49da0344dd013f30439ae78fbd0ee4e..6228f22e0103eb67a58bbb4a74888faff584f654 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <hang.h>
+#include <init.h>
 #include <malloc.h>
 #include <netdev.h>
 #include <dm.h>
index 81d7f8eafab49a9fcd00a2649a08eaebe4282213..d164a36361fc92f192cbc2c92de187d8c3da4372 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <hang.h>
+#include <init.h>
 #include <malloc.h>
 #include <netdev.h>
 #include <dm.h>
index eb6ee6f6a4c3f4d427f0087ed4b0edb09dc31fde..c6a93c25e6d2a4af50101e9183d5234d224bda4b 100644 (file)
@@ -9,6 +9,7 @@
 #include <cpu_func.h>
 #include <env.h>
 #include <hang.h>
+#include <init.h>
 #include <malloc.h>
 #include <dm.h>
 #include <dm/platform_data/serial_sh.h>
@@ -16,6 +17,8 @@
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/gpio.h>
index 42a67581488ed27363870ac7d816dc083a941752..624ba5db04e522b298ed4e689df2f35f175989a8 100644 (file)
@@ -7,11 +7,13 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
 #include <malloc.h>
 #include <dm/platform_data/serial_sh.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 #include <linux/errno.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/gpio.h>
index ba904609ae744b3238d6afb4c4b07d3e314c4612..b92e01ca9847e13e0a45bbd7d39bd34de70311b4 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/sys_proto.h>
 
index e09d3d0a634041314a3938f15b9e966b1013a4bd..1b3acc8fd1f146eb439bf3c276f726d5aa7390b6 100644 (file)
@@ -10,6 +10,7 @@
 #include <cpu_func.h>
 #include <env.h>
 #include <hang.h>
+#include <init.h>
 #include <malloc.h>
 #include <dm.h>
 #include <dm/platform_data/serial_sh.h>
@@ -17,6 +18,8 @@
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/gpio.h>
index b3530d7ce74b5f7fe54fbc0d24b0a90e0a4b8899..449bbfa7b81acab8b7bca9f4f34a2de7d29ad11e 100644 (file)
@@ -7,11 +7,13 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
 #include <malloc.h>
 #include <dm/platform_data/serial_sh.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 #include <linux/errno.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/gpio.h>
index 9ac951592584c27d28b65719d6754d336808d963..36a35a9a9cfbd82e105dd014008f13b1472f3314 100644 (file)
@@ -12,6 +12,7 @@
 #include <env.h>
 #include <env_internal.h>
 #include <hang.h>
+#include <init.h>
 #include <malloc.h>
 #include <netdev.h>
 #include <dm.h>
@@ -19,6 +20,8 @@
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/gpio.h>
index d7db361b12f0c852cc5c4ccdff1a6b8f641b17be..1ca857c2c3d8172ac88312ae6bcc165548624d68 100644 (file)
@@ -7,11 +7,13 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
 #include <malloc.h>
 #include <dm/platform_data/serial_sh.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 #include <linux/errno.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/gpio.h>
index 097710b4791c62d98de602dfbc39b9bbe3905879..793e02cb440a0159eb94b029a9172a680bec0e84 100644 (file)
@@ -10,6 +10,7 @@
 #include <cpu_func.h>
 #include <env.h>
 #include <hang.h>
+#include <init.h>
 #include <malloc.h>
 #include <dm.h>
 #include <dm/platform_data/serial_sh.h>
@@ -17,6 +18,8 @@
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/gpio.h>
index 026220d9e243a5c3f8e1314bd4f561d7e3b34a63..f10c6cffc2b874a66b322f8b266b7a3bbd66aa2e 100644 (file)
@@ -7,11 +7,13 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
 #include <malloc.h>
 #include <dm/platform_data/serial_sh.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 #include <linux/errno.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/gpio.h>
index f2da4686c3f6a69e6c5f787085c1e34a3d0627bf..e4d0967c14c2f32b7e5068dd5af17c25380b8a82 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <ide.h>
 #include <init.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/processor.h>
 #include <asm/io.h>
index 8dbeeb6e680c3e31c8cc230115de3ec0f96b1bab..120464ced46893d8123f88e962793a126f6f8d8d 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <ide.h>
 #include <init.h>
+#include <net.h>
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <asm/pci.h>
index 37f8a46d7e5b8b5d936d89e205559d44a67ed872..46dcea1f901cc45dee6ba0d09000896b7b1c30b3 100644 (file)
@@ -9,8 +9,10 @@
 
 #include <common.h>
 #include <dm.h>
+#include <init.h>
 #include <dm/uclass-internal.h>
 #include <asm/arch/rmobile.h>
+#include <linux/libfdt.h>
 
 #ifdef CONFIG_RCAR_GEN3
 
@@ -19,32 +21,24 @@ DECLARE_GLOBAL_DATA_PTR;
 /* If the firmware passed a device tree use it for U-Boot DRAM setup. */
 extern u64 rcar_atf_boot_args[];
 
-int dram_init(void)
+int fdtdec_board_setup(const void *fdt_blob)
 {
-       const void *atf_fdt_blob = (const void *)(rcar_atf_boot_args[1]);
-       const void *blob;
+       void *atf_fdt_blob = (void *)(rcar_atf_boot_args[1]);
 
-       /* Check if ATF passed us DTB. If not, fall back to builtin DTB. */
        if (fdt_magic(atf_fdt_blob) == FDT_MAGIC)
-               blob = atf_fdt_blob;
-       else
-               blob = gd->fdt_blob;
+               fdt_overlay_apply_node((void *)fdt_blob, 0, atf_fdt_blob, 0);
 
-       return fdtdec_setup_mem_size_base_fdt(blob);
+       return 0;
 }
 
-int dram_init_banksize(void)
+int dram_init(void)
 {
-       const void *atf_fdt_blob = (const void *)(rcar_atf_boot_args[1]);
-       const void *blob;
-
-       /* Check if ATF passed us DTB. If not, fall back to builtin DTB. */
-       if (fdt_magic(atf_fdt_blob) == FDT_MAGIC)
-               blob = atf_fdt_blob;
-       else
-               blob = gd->fdt_blob;
+       return fdtdec_setup_mem_size_base_fdt(gd->fdt_blob);
+}
 
-       fdtdec_setup_memory_banksize_fdt(blob);
+int dram_init_banksize(void)
+{
+       fdtdec_setup_memory_banksize_fdt(gd->fdt_blob);
 
        return 0;
 }
index d9741c19398243ddd46f84310a7a67a6ef919c70..fd6e5054a6d1e8b3539fd4da9f4cee5bf4bab216 100644 (file)
@@ -7,8 +7,12 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <image.h>
+#include <init.h>
+#include <log.h>
 #include <asm/io.h>
 #include <spl.h>
+#include <linux/bitops.h>
 
 #define RCAR_CNTC_BASE 0xE6080000
 #define CNTCR_EN       BIT(0)
index 91c3728571e65c55b9c3e3063b150ee8c5e705b8..947bdaefa8075120aa54b65b21439a2f43fb8f30 100644 (file)
@@ -9,6 +9,8 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <image.h>
+#include <init.h>
 #include <malloc.h>
 #include <netdev.h>
 #include <dm.h>
@@ -16,6 +18,7 @@
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 #include <linux/errno.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/gpio.h>
index 203eecf3d6d82c8c9fdbf45ebfaec65df50fcced..a005029b615f990694b870010c50b5d502d89dd5 100644 (file)
@@ -4,14 +4,18 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <env.h>
+#include <flash.h>
 #include <init.h>
 #include <malloc.h>
+#include <net.h>
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <asm/mmc.h>
 #include <spi.h>
 #include <spi_flash.h>
+#include <linux/delay.h>
 
 int checkboard(void)
 {
@@ -243,7 +247,7 @@ int board_late_init(void)
 }
 
 #ifdef CONFIG_DEPRECATED
-int do_write_mac(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_write_mac(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int i, ret;
        char mac_string[256];
index 0b118b2f65df6c26fed066af8b583d3d22879e2c..3b4a3ce26afff42e1c64213b43144395a8511695 100644 (file)
@@ -4,14 +4,18 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <env.h>
+#include <flash.h>
 #include <init.h>
 #include <malloc.h>
+#include <net.h>
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <asm/mmc.h>
 #include <spi.h>
 #include <spi_flash.h>
+#include <linux/delay.h>
 
 int checkboard(void)
 {
@@ -259,7 +263,7 @@ int board_late_init(void)
 }
 
 #ifdef CONFIG_DEPRECATED
-int do_write_mac(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_write_mac(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int i, ret;
        char mac_string[256];
index e8d1fdd03fa206862e67a96d43505835b606c511..5e76b9e7b4c1762652582d1860e6e7d03e7501f1 100644 (file)
@@ -4,9 +4,12 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <env.h>
+#include <flash.h>
 #include <init.h>
 #include <malloc.h>
+#include <net.h>
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <asm/mmc.h>
@@ -342,7 +345,7 @@ int board_late_init(void)
        return 0;
 }
 
-int do_sh_g200(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_sh_g200(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        struct gctrl_regs *gctrl = GCTRL_BASE;
        unsigned long graofst;
@@ -361,7 +364,7 @@ U_BOOT_CMD(
 );
 
 #ifdef CONFIG_DEPRECATED
-int do_write_mac(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_write_mac(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int i, ret;
        char mac_string[256];
index 9bc2c55986cf59b41e9c15adf4c1aa346f26edbb..73a53c1e5acfc24d3f701fa05647f7c615049059 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/processor.h>
 
index e7cbd7577645a54d1af75b9d97b7bef62b93fb73..171d06f3175c66b6c4bd5404e229c965f1bc1c8e 100644 (file)
@@ -10,6 +10,7 @@
 #include <cpu_func.h>
 #include <env.h>
 #include <hang.h>
+#include <init.h>
 #include <malloc.h>
 #include <dm.h>
 #include <dm/platform_data/serial_sh.h>
@@ -17,6 +18,8 @@
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/gpio.h>
index a2c397f935814736f7d9ee90507ee67afb23379d..f10f84a3cce04892e0a7d381fdd9c690f396f855 100644 (file)
@@ -7,11 +7,13 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
 #include <malloc.h>
 #include <dm/platform_data/serial_sh.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 #include <linux/errno.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/gpio.h>
index e6c2051bd4bbfaf18ab49126e76fd54bcc1d355b..b56ed1703f5f11a4799c90073292cc314129c54b 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <cpu_func.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
@@ -124,7 +125,8 @@ void cpld_init(void)
 #endif
 }
 
-static int do_cpld(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_cpld(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        u32 addr, val;
 
index 0a0ff5ff76d29a4af51bb5dc3ca2c9af25fddad1..babcce9aa1c3b51951fe9d4eb362735e55a9ad97 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <env.h>
+#include <init.h>
 #include <malloc.h>
 #include <netdev.h>
 #include <dm.h>
@@ -18,6 +19,8 @@
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/gpio.h>
index 8d01efce56c5279c2ca3870fb0f0593674f754da..57c1fabaf3a8631fdca82baa7be69ed58fef6724 100644 (file)
@@ -7,11 +7,13 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
 #include <malloc.h>
 #include <dm/platform_data/serial_sh.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 #include <linux/errno.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/gpio.h>
index 528675651dbffc062808fef1e8dd44bde8d9dbd4..a20a34a92a8d4933915ff7afb6a5757e86d4aea9 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <dm.h>
@@ -82,7 +83,8 @@ static void cpld_write(struct udevice *dev, u8 addr, u32 data)
        dm_gpio_set_value(&priv->sstbz, 1);
 }
 
-static int do_cpld(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_cpld(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        struct udevice *dev;
        u32 addr, val;
index b91f940b487ecd6b94cc2d62f3419e568fc0a8fb..07bc1ec719989903d7166b15bef2a9016f49818f 100644 (file)
@@ -7,6 +7,8 @@
  */
 
 #include <common.h>
+#include <image.h>
+#include <init.h>
 #include <malloc.h>
 #include <netdev.h>
 #include <dm.h>
@@ -14,6 +16,7 @@
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 #include <linux/errno.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/gpio.h>
index b9049abcc7e05bdf7925e460662b67de9dfbbda4..abb76585cf8eea0679e4d9db7f09f671236cd5c8 100644 (file)
@@ -5,6 +5,8 @@
 
 #include <common.h>
 #include <dm.h>
+#include <init.h>
+#include <log.h>
 #include <asm/arch-rockchip/periph.h>
 #include <power/regulator.h>
 
index 5d622c3737ac71fee7949fba661ceeed98c8b14b..c57913828d72cb9405a38d1a0d609ac10e66d98b 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <syscon.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/clock.h>
index c5e28df258fa8a786fa262a7d780516b244c03db..0ca91cdeb014c77cd17f598da55fb78727dfe42a 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <env.h>
 #include <init.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/uart.h>
index 7af39e10cd5b3b6d1b79c4e8933877f4fac8f5ff..f85209c6498dc54f764897617da5b67c24182133 100644 (file)
@@ -9,6 +9,7 @@
 #include <env.h>
 #include <i2c_eeprom.h>
 #include <init.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/arch-rockchip/bootrom.h>
 #include <asm/io.h>
index 9abad3f82497564bcd3e211e94ade665498504cd..7a8e57b6cc2ed0040223e448c5cd143e6a08c4a4 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <init.h>
+#include <log.h>
 #include <usb.h>
 #include <asm/gpio.h>
 #include <asm/arch/pinmux.h>
index 390060e51f7df17c666e608ee20b54054856b638..029a0cc6cde665b0ab8e81a29fa393c4fac07b58 100644 (file)
@@ -6,10 +6,13 @@
 
 #include <common.h>
 #include <cros_ec.h>
+#include <env.h>
 #include <errno.h>
 #include <fdtdec.h>
 #include <hang.h>
 #include <init.h>
+#include <log.h>
+#include <net.h>
 #include <spi.h>
 #include <tmu.h>
 #include <netdev.h>
@@ -29,6 +32,7 @@
 #include <stdio_dev.h>
 #include <usb.h>
 #include <dwc3-uboot.h>
+#include <linux/delay.h>
 #include <samsung/misc.h>
 #include <dm/pinctrl.h>
 #include <dm.h>
index 1413dc89788204e3de2012f13ed259d421bdf884..f1ecb7d2c3965f0c5872636dcc05055bf4b9ebdd 100644 (file)
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <linux/delay.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 #include <power/s2mps11.h>
index eef46b0dc447597e4fb8be2bcf12b8105d343a86..69aa2120e126f517c84820288f5601a142ede1b4 100644 (file)
@@ -8,6 +8,7 @@
 #include <dwc3-uboot.h>
 #include <env.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <asm/io.h>
 #include <errno.h>
 #include <i2c.h>
index 9117669f715e70871113792dce7d40964e67535a..837463ba78f8f3b526ca9749c4740ea9bae6ddea 100644 (file)
@@ -9,6 +9,7 @@
 #include <env.h>
 #include <lcd.h>
 #include <libtizen.h>
+#include <linux/delay.h>
 #include <samsung/misc.h>
 #include <errno.h>
 #include <version.h>
@@ -262,7 +263,7 @@ static int mode_leave_menu(int mode)
        char *exit_option;
        char *exit_reset = "reset";
        char *exit_back = "back";
-       cmd_tbl_t *cmd;
+       struct cmd_tbl *cmd;
        int cmd_result;
        int leave;
 
index 623e4abc218804ba64edc06e654661ef3f9836d2..40a94d547fa92b5b0a5665c4f08968f4279cf74d 100644 (file)
@@ -6,9 +6,12 @@
  */
 
 #include <common.h>
+#include <init.h>
+#include <log.h>
 #include <asm/gpio.h>
 #include <asm/arch/mmc.h>
 #include <dm.h>
+#include <linux/delay.h>
 #include <power/pmic.h>
 #include <usb/dwc2_udc.h>
 #include <asm/arch/cpu.h>
index 9aa97f0f2cad7782901e03a21459406a56b4ddd4..7d7e722892e737ab73f9789026642e8015a7935a 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/arch/pinmux.h>
 #include <asm/arch/power.h>
 #include <asm/arch/clock.h>
index a80300b0c009989897abdeeb03332598dd38d3b8..fc2c2a94dcea258601fa1f930edda21744863621 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <net.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <asm/arch/sromc.h>
index 05369d22271b581738ba6662fc787fd7f2a5be26..0a5773676d50e54c2a75f31bb554ea5a04888e4f 100644 (file)
@@ -5,6 +5,8 @@
 
 #include <common.h>
 #include <init.h>
+#include <log.h>
+#include <net.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <netdev.h>
index ec85f707c19a685a7fd26e56802131ce87e6d446..2e80dbbc84a781a403f1ca24254e3c1e87bde986 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <env.h>
 #include <lcd.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
 #include <asm/arch/cpu.h>
@@ -17,6 +18,7 @@
 #include <asm/arch/mipi_dsim.h>
 #include <asm/arch/watchdog.h>
 #include <asm/arch/power.h>
+#include <linux/delay.h>
 #include <power/pmic.h>
 #include <usb/dwc2_udc.h>
 #include <power/max8997_pmic.h>
index 84ff936e4bcbefba0e99ab897ac684b691b5f120..69e0ef192d1059ce875a8acfac715787901dfaa0 100644 (file)
@@ -7,10 +7,12 @@
 
 #include <common.h>
 #include <lcd.h>
+#include <log.h>
 #include <asm/gpio.h>
 #include <asm/arch/pinmux.h>
 #include <asm/arch/power.h>
 #include <asm/arch/mipi_dsim.h>
+#include <linux/delay.h>
 #include <power/pmic.h>
 #include <power/max77686_pmic.h>
 #include <power/battery.h>
index ed9c5b50d92778bcee975d36c07d6e0f44aeb540..f50da6be724575b33441a85bd3f17f03f7d46e5c 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <env.h>
+#include <log.h>
 #include <spi.h>
 #include <lcd.h>
 #include <asm/io.h>
@@ -15,6 +16,7 @@
 #include <asm/arch/pinmux.h>
 #include <asm/arch/watchdog.h>
 #include <ld9040.h>
+#include <linux/delay.h>
 #include <power/pmic.h>
 #include <usb.h>
 #include <usb/dwc2_udc.h>
index 663eddac1199bdb7b721f240eec88ce8933f662a..04f8678704757d71f3788955e5ec1044aa781400 100644 (file)
 
 #include <common.h>
 #include <errno.h>
+#include <init.h>
+#include <net.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <asm/arch/iomux-mx23.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/sys_proto.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index b6435f34f22adeec22909a730b3a72b7d6121b02..26c4f24e4f8b00d6cf608fca1bd8163e59891c3b 100644 (file)
@@ -15,6 +15,7 @@
 #include <pci.h>
 #include <i2c.h>
 #include <asm/fsl_i2c.h>
+#include <linux/delay.h>
 
 static struct pci_region pci1_regions[] = {
        {
index 9051392cd09f12c5f483bba4c970d8c060a96c99..1e3529f3348b668e438d30ea9d6daa17c426f98e 100644 (file)
@@ -9,8 +9,10 @@
 
 #include <common.h>
 #include <fdt_support.h>
+#include <init.h>
 #include <ioports.h>
 #include <mpc83xx.h>
+#include <asm/bitops.h>
 #include <asm/mpc8349_pci.h>
 #include <i2c.h>
 #include <spd_sdram.h>
@@ -18,6 +20,7 @@
 #if defined(CONFIG_OF_LIBFDT)
 #include <linux/libfdt.h>
 #endif
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index f7af1e3dedb138032d5eb66e140ad257ed1e3bb9..61bc77c418a9b4447928558dd51622c4ecc4cd59 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <linux/delay.h>
 
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
index d246dce36d02fc8f7731aeb0f5c3aaa0a145f205..24782c7e6d3f6cff0e45e32d3fe2d03d068ee4fb 100644 (file)
@@ -11,6 +11,8 @@
 
 #include <common.h>
 #include <init.h>
+#include <log.h>
+#include <net.h>
 #include <pci.h>
 #include <asm/processor.h>
 #include <asm/immap_85xx.h>
@@ -21,6 +23,7 @@
 #include <netdev.h>
 #include <tsec.h>
 #include <miiphy.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 
index d053eaeec34f4a95844d489e031df53bb2cfbe0f..3375cd621cff817fc3362b52a398af940891c5bf 100644 (file)
 #include <common.h>
 #include <command.h>
 #include <init.h>
+#include <log.h>
 #include <pci.h>
 #include <asm/processor.h>
 #include <asm/immap_86xx.h>
 #include <asm/fsl_pci.h>
 #include <fsl_ddr_sdram.h>
 #include <asm/fsl_serdes.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 
@@ -49,7 +51,7 @@ int dram_init(void)
        dram_size = fixed_sdram ();
 #endif
 
-       debug ("    DDR: ");
+       debug("    DDR: ");
        gd->ram_size = dram_size;
 
        return 0;
@@ -122,12 +124,12 @@ long int fixed_sdram (void)
 
        asm ("sync;isync");
 
-       udelay (500);
+       udelay(500);
 
        ddr->sdram_cfg = CONFIG_SYS_DDR_CFG_1B;
        asm ("sync; isync");
 
-       udelay (500);
+       udelay(500);
        ddr = &immap->im_ddr2;
 
        ddr->cs0_bnds = CONFIG_SYS_DDR2_CS0_BNDS;
@@ -153,12 +155,12 @@ long int fixed_sdram (void)
 
        asm ("sync;isync");
 
-       udelay (500);
+       udelay(500);
 
        ddr->sdram_cfg = CONFIG_SYS_DDR2_CFG_1B;
        asm ("sync; isync");
 
-       udelay (500);
+       udelay(500);
 #endif
        return CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
 }
index 41090dda109313c4cb36cfbc3f81abaa46461d81..d2c5f807ad5a44afd33c1aada6d550c3d864bf9a 100644 (file)
@@ -7,6 +7,8 @@
  */
 
 #include <common.h>
+#include <init.h>
+#include <net.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
index fabc348440d8525468ae9b00824f5b24fbf513bd..4fa0daba469a310a4e909c286adc6172ab57c6d2 100644 (file)
@@ -8,10 +8,12 @@
  */
 
 #include <init.h>
+#include <net.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/mx6-pins.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/gpio.h>
 #include <asm/mach-imx/iomux-v3.h>
index d3d3d50c2c6f7a8e207182e155c9879da989f1b7..bf7c69ea8389311541c8fc5d8c0d2de07b5bd368 100644 (file)
@@ -4,7 +4,9 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 #define MT76XX_GPIO1_MODE      0x10000060
 
index 00fd4b9658130f3dfdb612b09deda10f21d20af9..c46e4ff7363a3ff39641d87d1fab540c440b6c2a 100644 (file)
@@ -6,8 +6,12 @@
  *
  */
 #include <common.h>
+#include <command.h>
 #include <dm.h>
+#include <env.h>
 #include <errno.h>
+#include <init.h>
+#include <log.h>
 #include <netdev.h>
 #include <env_internal.h>
 #include <fsl_esdhc_imx.h>
@@ -23,6 +27,7 @@
 #ifndef CONFIG_SPL
 #include <asm/arch-imx8/clock.h>
 #endif
+#include <linux/delay.h>
 #include "../common/factoryset.h"
 
 #define GPIO_PAD_CTRL \
@@ -410,7 +415,7 @@ unsigned char get_button_state(char * const envname, unsigned char def)
  *             0 if button is not held down
  */
 static int
-do_userbutton(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+do_userbutton(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int button = 0;
 
@@ -431,7 +436,7 @@ U_BOOT_CMD(
 #define ERST   IMX_GPIO_NR(0, 3)
 
 static int
-do_eth_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+do_eth_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        gpio_request(ERST, "ERST");
        gpio_direction_output(ERST, 0);
index 47fe86ccc0330e4d420780c50f1674ddcdd9cdfc..8435bd3863bf7a5d3a98477b106499e75331f9ff 100644 (file)
@@ -6,6 +6,7 @@
  *
  */
 #include <common.h>
+#include <init.h>
 #include <spl.h>
 #include <dm.h>
 #include <dm/uclass.h>
index 24429d2837345b8cd9d722308afa4cab1747410a..e0bd8590bc9d45a16e950ad93b18c8063df17bae 100644 (file)
  */
 
 #include <common.h>
+#include <command.h>
 #include <env.h>
 #include <errno.h>
+#include <init.h>
 #include <malloc.h>
 #include <serial.h>
 #include <spl.h>
@@ -150,7 +152,7 @@ unsigned char get_button_state(char * const envname, unsigned char def)
  *             0 if button is not held down
  */
 static int
-do_userbutton(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+do_userbutton(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int button = 0;
        button = get_button_state("button_dfu0", BOARD_DFU_BUTTON_GPIO);
@@ -166,7 +168,7 @@ U_BOOT_CMD(
 #endif
 
 static int
-do_usertestwdt(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+do_usertestwdt(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        printf("\n\n\n Go into infinite loop\n\n\n");
        while (1)
@@ -250,8 +252,8 @@ void set_env_gpios(unsigned char state)
        } /* loop through defined led in environment */
 }
 
-static int do_board_led(cmd_tbl_t *cmdtp, int flag, int argc,
-                          char *const argv[])
+static int do_board_led(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        if (argc != 2)
                return CMD_RET_USAGE;
index 0d3701c03cc5931068da97ee5948ecb9606d4ef2..2e3ae1a54da66af24430f99ffe841525bdcc7d38 100644 (file)
@@ -12,6 +12,7 @@
 #include <dm.h>
 #include <env_internal.h>
 #include <i2c.h>
+#include <log.h>
 #include <asm/io.h>
 #if !CONFIG_IS_ENABLED(TARGET_GIEDI) && !CONFIG_IS_ENABLED(TARGET_DENEB)
 #include <asm/arch/cpu.h>
index 03768201c3a4631196d2a1e34c6ae04f64667a65..28a974d9789a78b91e631e0f0264a7fca8aa5ee4 100644 (file)
@@ -13,6 +13,7 @@
 #include <common.h>
 #include <dm.h>
 #include <init.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/at91sam9g45_matrix.h>
 #include <asm/arch/at91sam9_smc.h>
index 94bd71ad0976460912e91154d9ea255ec9f1f756..5ac73c0ef402a41f4330222f39fe2b43e8abf60c 100644 (file)
  */
 
 #include <common.h>
+#include <command.h>
 #include <env.h>
 #include <errno.h>
 #include <init.h>
+#include <net.h>
 #include <spl.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/hardware.h>
@@ -33,6 +35,7 @@
 #include <miiphy.h>
 #include <cpsw.h>
 #include <watchdog.h>
+#include <linux/delay.h>
 #include "board.h"
 #include "../common/factoryset.h"
 #include <nand.h>
@@ -342,8 +345,8 @@ int board_eth_init(bd_t *bis)
        return n;
 }
 
-static int do_switch_reset(cmd_tbl_t *cmdtp, int flag, int argc,
-                         char *const argv[])
+static int do_switch_reset(struct cmd_tbl *cmdtp, int flag, int argc,
+                          char *const argv[])
 {
        /* Reset SMSC LAN9303 switch for default configuration */
        gpio_request(GPIO_LAN9303_NRST, "nRST");
index 58bb5bab1a144e3007717f734c7685141f7e4c4b..d86a913e5fe7353c1573cb11c82ea62ca08a9dc8 100644 (file)
@@ -16,7 +16,9 @@
 #include <env.h>
 #include <errno.h>
 #include <init.h>
+#include <log.h>
 #include <malloc.h>
+#include <net.h>
 #include <spl.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/hardware.h>
index bd4eaa4f3a597cc41bd402797cf69ab1b30f81c4..3b109e9818f3fec410e4b2ef5fcb3e25adb108e2 100644 (file)
@@ -15,6 +15,7 @@
 #include <errno.h>
 #include <init.h>
 #include <malloc.h>
+#include <net.h>
 #include <spi.h>
 #include <spl.h>
 #include <asm/arch/cpu.h>
@@ -33,6 +34,7 @@
 #include <cpsw.h>
 #include <video.h>
 #include <watchdog.h>
+#include <linux/delay.h>
 #include "board.h"
 #include "../common/factoryset.h"
 #include "../../../drivers/video/da8xx-fb.h"
index cb7206a5616299803cf245972c74eae623acd857..40c9c7e21daea6f7ee0d4302a8990d9aef3f7d13 100644 (file)
@@ -18,6 +18,7 @@
 #include <common.h>
 #include <dm.h>
 #include <init.h>
+#include <net.h>
 #include <asm/io.h>
 #include <asm/arch/at91sam9_sdramc.h>
 #include <asm/arch/at91sam9260_matrix.h>
index 0979df563ae045485eaa3ee5f5d50ecce585f117..927ef596506f29bcb46b3796aac06085ceef451e 100644 (file)
@@ -15,6 +15,7 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
+#include <flash.h>
 #include <init.h>
 #include <asm/io.h>
 #include <asm/arch/at91sam9260_matrix.h>
@@ -385,8 +386,8 @@ static int upgrade_failure_fallback(void)
        return 0;
 }
 
-static int do_upgrade_available(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_upgrade_available(struct cmd_tbl *cmdtp, int flag, int argc,
+                               char *const argv[])
 {
        unsigned long upgrade_available = 0;
        unsigned long boot_retry = 0;
index 47a20902517c1584a975b428d908c367c9af81b4..df57b6ecc22974b276d11505a2097a3efecf9d2f 100644 (file)
@@ -8,6 +8,9 @@
 
 #include <common.h>
 #include <dm.h>
+#include <env.h>
+#include <init.h>
+#include <linux/bug.h>
 #include <linux/delay.h>
 #include <linux/io.h>
 
index c0496c549ab8a9898df418efdd2dbff725b1cab9..e3c9d9e75529711ef0079f984104386107de9bad 100644 (file)
@@ -7,6 +7,8 @@
 
 #include <common.h>
 #include <env.h>
+#include <init.h>
+#include <net.h>
 #include <serial.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/hardware.h>
index 59a07a9ffdea5a62ccbd4f67a7880fa91cd9cd69..772c17979be8097a5c722ca9038bda282ac5c6e2 100644 (file)
@@ -3,10 +3,15 @@
  * Copyright (C) 2016 Stefano Babic <sbabic@denx.de>
  */
 
+#include <common.h>
+#include <command.h>
+#include <init.h>
+#include <net.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/mx6-pins.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/gpio.h>
 #include <asm/mach-imx/iomux-v3.h>
index 8eb4f8fc950bb080aeb90106ebc1b4d70f445d15..d358a209a4a3572665eb7389eac4cf8255ef65ed 100644 (file)
@@ -12,6 +12,7 @@
 #include <asm/processor.h>
 #include <asm/mmu.h>
 #include <spd_sdram.h>
+#include <linux/delay.h>
 
 
 #if !defined(CONFIG_SPD_EEPROM)
index b0ddee7906a29c40cdf936429c4760644d04fa16..58c5f7527bfbb00c28ee8653d9f5a18efebf4fdc 100644 (file)
 #include <common.h>
 #include <clock_legacy.h>
 #include <env.h>
+#include <init.h>
 #include <pci.h>
+#include <uuid.h>
 #include <asm/processor.h>
 #include <asm/immap_85xx.h>
 #include <ioports.h>
 #include <flash.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <asm/io.h>
@@ -105,25 +108,26 @@ int misc_init_r (void)
                /*
                 * Re-do flash protection upon new addresses
                 */
-               flash_protect (FLAG_PROTECT_CLEAR,
-                              gd->bd->bi_flashstart, 0xffffffff,
-                              &flash_info[CONFIG_SYS_MAX_FLASH_BANKS - 1]);
+               flash_protect(FLAG_PROTECT_CLEAR,
+                             gd->bd->bi_flashstart, 0xffffffff,
+                             &flash_info[CONFIG_SYS_MAX_FLASH_BANKS - 1]);
 
                /* Monitor protection ON by default */
-               flash_protect (FLAG_PROTECT_SET,
-                              CONFIG_SYS_MONITOR_BASE, CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1,
-                              &flash_info[CONFIG_SYS_MAX_FLASH_BANKS - 1]);
+               flash_protect(FLAG_PROTECT_SET,
+                             CONFIG_SYS_MONITOR_BASE, CONFIG_SYS_MONITOR_BASE +
+                             monitor_flash_len - 1,
+                             &flash_info[CONFIG_SYS_MAX_FLASH_BANKS - 1]);
 
                /* Environment protection ON by default */
-               flash_protect (FLAG_PROTECT_SET,
-                              CONFIG_ENV_ADDR,
-                              CONFIG_ENV_ADDR + CONFIG_ENV_SECT_SIZE - 1,
-                              &flash_info[CONFIG_SYS_MAX_FLASH_BANKS - 1]);
+               flash_protect(FLAG_PROTECT_SET,
+                             CONFIG_ENV_ADDR,
+                             CONFIG_ENV_ADDR + CONFIG_ENV_SECT_SIZE - 1,
+                             &flash_info[CONFIG_SYS_MAX_FLASH_BANKS - 1]);
 
                /* Redundant environment protection ON by default */
-               flash_protect (FLAG_PROTECT_SET,
-                              CONFIG_ENV_ADDR_REDUND,
-                              CONFIG_ENV_ADDR_REDUND + CONFIG_ENV_SECT_SIZE - 1,
+               flash_protect(FLAG_PROTECT_SET,
+                             CONFIG_ENV_ADDR_REDUND,
+                             CONFIG_ENV_ADDR_REDUND + CONFIG_ENV_SECT_SIZE - 1,
                               &flash_info[CONFIG_SYS_MAX_FLASH_BANKS - 1]);
        }
 
index c74c06eaeecfb040df6c2095dae36476f3fa3678..e5e33dcf15d6413c617ecb052110dbd83a588e27 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <init.h>
+#include <net.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/iomux.h>
@@ -18,6 +19,8 @@
 #include <asm/io.h>
 #include <asm/mach-imx/mxc_i2c.h>
 #include <env.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/sizes.h>
 #include <common.h>
 #include <fsl_esdhc_imx.h>
index 5a88b6c8adef8b0e37ee2670d99a1d46fdd3337d..7e311b7a1c38ec9cf53b2e28ef36ab76434a7873 100644 (file)
@@ -7,11 +7,13 @@
 #include <eeprom.h>
 #include <env.h>
 #include <init.h>
+#include <net.h>
 #include <status_led.h>
 #include <asm/arch/reset_manager.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
 #include <i2c.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 443751ba8fc08a2017c0b0ea612b38572e1af627..4184754a9a344e552950a8e9152fd6de119ec978 100644 (file)
@@ -4,12 +4,17 @@
  */
 
 #include <common.h>
+#include <env.h>
 #include <i2c.h>
+#include <init.h>
 #include <miiphy.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include "../common/tlv_data.h"
 
 #include "../drivers/ddr/marvell/a38x/ddr3_init.h"
index 6a96f9ecdb5315a45577e5b966c4b1f0a9ecffdf..94707bccb26afe7f48916949ccd5b01f47f69975 100644 (file)
  * Ported to SolidRun microSOM by Rabeeh Khoury <rabeeh@solid-run.com>
  */
 
+#include <common.h>
+#include <image.h>
 #include <init.h>
+#include <log.h>
+#include <net.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/mx6-pins.h>
 #include <asm/arch/mxc_hdmi.h>
 #include <env.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/gpio.h>
 #include <asm/mach-imx/iomux-v3.h>
index 83fdf027e9e19d68dbd5e6bc8c938926d55d1fbc..c531eb3fc625238f6c3396b0d1ae99429f3e6285 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <miiphy.h>
+#include <net.h>
 #include <netdev.h>
 #include <nand.h>
 #include <asm/io.h>
index 1b3478a9fb1bd902d5219caad4c28a8aa381014a..6e88547e1c31e67e11ae5ac9ebfd69207e023f37 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <miiphy.h>
+#include <net.h>
 #include <netdev.h>
 #include <nand.h>
 #include <asm/io.h>
index 640242e718ac9e337fee6a760146ac7ed07b201d..d8b1e7de4ed0400c5c3c1e47bd97bd817e5aa966 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <miiphy.h>
+#include <net.h>
 #include <netdev.h>
 #include <nand.h>
 #include <asm/io.h>
index 91c2691b860ce5b26190f15d12c700c0ccd78c07..241f123ae118dd3bff932ca854390a61738cc4c7 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <miiphy.h>
+#include <net.h>
 #include <netdev.h>
 #include <nand.h>
 #include <asm/io.h>
index d124d96b14c1efadc624a9d737c4d80b23e73a25..5140694b9e855c6e2764e2c2353674112396257f 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <spartan3.h>
 #include <command.h>
 #include <asm/gpio.h>
@@ -11,6 +12,7 @@
 #include <asm/arch/hardware.h>
 #include <asm/arch/spr_misc.h>
 #include <asm/arch/spr_ssp.h>
+#include <linux/delay.h>
 
 /*
  * FPGA program pin configuration on X600:
index e1232edd143e8676c89d00155d5237e41970e458..e6f8dc908398db83079a6ba4cd4e81f9398eeebc 100644 (file)
@@ -7,9 +7,11 @@
  */
 
 #include <common.h>
+#include <flash.h>
 #include <init.h>
 #include <micrel.h>
 #include <nand.h>
+#include <net.h>
 #include <netdev.h>
 #include <phy.h>
 #include <rtc.h>
index c9e32e396031ae0bbebf21ea55c982ff6b3d24ea..d9125a76bf7fe473b4323b0dca6a66d55ffe2e29 100644 (file)
@@ -4,9 +4,11 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/arch/reset_manager.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 int board_early_init_f(void)
 {
index 915164aa0b4a0e469406abdf5d809218decae7b7..e1038619f0c957210c39941f6c36800fe495cdd9 100644 (file)
@@ -31,6 +31,7 @@
 
 #ifndef CONFIG_SPL_BUILD
 #include <common.h>
+#include <command.h>
 #include <console.h>
 #include <misc.h>
 #include <dm/device.h>
@@ -67,8 +68,8 @@ static void display_stboard(u32 otp)
               otp & 0xF);
 }
 
-static int do_stboard(cmd_tbl_t *cmdtp, int flag, int argc,
-                     char * const argv[])
+static int do_stboard(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        int ret;
        u32 otp, lock;
index 3bd005bb04adec3448931301f7236f1028d104c9..0cda9196f938d058d267162681393a3ba71a07c1 100644 (file)
@@ -17,7 +17,7 @@
 
 static void board_get_alt_info_mmc(struct udevice *dev, char *buf)
 {
-       disk_partition_t info;
+       struct disk_partition info;
        int p, len, devnum;
        bool first = true;
        const char *name;
index 5d9fdf27b2567ae8760c0761e1ce6a5197f1ae3a..b1147f2e1a7006cfefbd19026b9d6511c5be743b 100644 (file)
@@ -6,6 +6,8 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
+#include <asm/cache.h>
 #include <linux/usb/otg.h>
 #include <dwc3-sti-glue.h>
 #include <dwc3-uboot.h>
index 500dc5fe3a6bede3915c68186a85edb90fa2e110..ee6a90c9fdd0932d3cb6d204407463599e3a7014 100644 (file)
@@ -12,6 +12,9 @@
 
 #include <common.h>
 #include <dm.h>
+#include <env.h>
+#include <init.h>
+#include <log.h>
 
 #include <asm/io.h>
 #include <asm/arch/stm32.h>
index 8ab2fa5d59abc763839b5212f9605b362e7a20dc..92e3d40a1b621056631559b4a09ca18f2691acb2 100644 (file)
@@ -6,6 +6,9 @@
 
 #include <common.h>
 #include <dm.h>
+#include <env.h>
+#include <init.h>
+#include <log.h>
 
 #include <asm/io.h>
 #include <asm/arch/stm32.h>
index 70d23d90f4ca7d181ecb2ea7971a8091a1f80aa6..85988acb241476066bcfd2163f79eab518a964e6 100644 (file)
@@ -6,6 +6,9 @@
 
 #include <common.h>
 #include <dm.h>
+#include <env.h>
+#include <init.h>
+#include <log.h>
 
 #include <asm/io.h>
 #include <asm/arch/stm32.h>
index df907426d2efe74fc1a25d41543ffc942b288ec0..0f728fd9f9e2f382fbb7272fa0dcf814739efe16 100644 (file)
@@ -8,6 +8,7 @@
 #include <dm.h>
 #include <init.h>
 #include <lcd.h>
+#include <log.h>
 #include <miiphy.h>
 #include <phy_interface.h>
 #include <ram.h>
@@ -22,6 +23,7 @@
 #include <asm/arch/gpio.h>
 #include <asm/arch/syscfg.h>
 #include <asm/gpio.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 6aab2e243ed23d07a11656d856aae880be9cff17..0484c3c25049fd9de98c790837c86251d47702f8 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <dm.h>
 #include <init.h>
+#include <log.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 6aab2e243ed23d07a11656d856aae880be9cff17..0484c3c25049fd9de98c790837c86251d47702f8 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <dm.h>
 #include <init.h>
+#include <log.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 4e35d36c76ddaf3778466765a5293d439c179cc3..c218d37ecce64ab7bb79de0992e071db7ad6004a 100644 (file)
@@ -7,6 +7,8 @@
 #include <dm.h>
 #include <asm/io.h>
 #include <asm/arch/ddr.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <power/pmic.h>
 #include <power/stpmic1.h>
 
index 33cb7f6c4d0e3706f845de0a0287e77ae8e95f74..4553329b250577bd89f1b22942061526f5d18e18 100644 (file)
 #include <dm.h>
 #include <env.h>
 #include <env_internal.h>
+#include <fdt_support.h>
 #include <g_dnl.h>
 #include <generic-phy.h>
 #include <hang.h>
 #include <i2c.h>
 #include <init.h>
 #include <led.h>
+#include <log.h>
 #include <malloc.h>
 #include <misc.h>
 #include <mtd_node.h>
+#include <net.h>
 #include <netdev.h>
 #include <phy.h>
 #include <remoteproc.h>
@@ -31,6 +34,8 @@
 #include <asm/arch/stm32.h>
 #include <asm/arch/sys_proto.h>
 #include <jffs2/load_kernel.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/iopoll.h>
 #include <power/regulator.h>
index 33b29e647e9501dcc1757ab904b1387c73862dbd..d5a9f1386ebefebd8de7ac5f4c55629036e98b99 100644 (file)
@@ -5,8 +5,11 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
 #include <dm.h>
+#include <init.h>
 #include <miiphy.h>
+#include <net.h>
 #include <asm/arch/stv0991_periph.h>
 #include <asm/arch/stv0991_defs.h>
 #include <asm/arch/hardware.h>
index 8cf6f187551d5ff0c479e99938da72464384f750..f7834c08fc2c71ed1a9498ee273d58a7b976a4c0 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright (C) 2019 Stephan Gerhold <stephan@gerhold.net>
  */
 #include <common.h>
+#include <init.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 6afea6ef42e42d6137ffc22319659512f1071ee6..f32e8f582fa52e0661b83a71ebdf277384d3d2d1 100644 (file)
@@ -14,7 +14,9 @@
 #include <dm.h>
 #include <env.h>
 #include <hang.h>
+#include <image.h>
 #include <init.h>
+#include <log.h>
 #include <mmc.h>
 #include <axp_pmic.h>
 #include <generic-phy.h>
@@ -26,6 +28,7 @@
 #include <asm/arch/gpio.h>
 #include <asm/arch/mmc.h>
 #include <asm/arch/spl.h>
+#include <linux/delay.h>
 #include <u-boot/crc.h>
 #ifndef CONFIG_ARM64
 #include <asm/armv7.h>
index 7d4409b51e9882ca3707154f4c8f4939f43880af..e8bbee4ee5e010f7b79ccc597bed224e79b441cf 100644 (file)
@@ -1,4 +1,5 @@
 #include <common.h>
+#include <init.h>
 #include <asm/arch/dram.h>
 
 static struct dram_para dram_para = {
index e3fa243267b09fd0e2b5e4d636451c33bd1da520..a5f4f8b7434f302563c47d822b2323920f92f87e 100644 (file)
@@ -1,6 +1,7 @@
 /* DRAM parameters for auto dram configuration on sun5i and sun7i */
 
 #include <common.h>
+#include <init.h>
 #include <asm/arch/dram.h>
 
 static struct dram_para dram_para = {
index fa982bda5cc9c4c29772657a9a45a97ab0ed19f6..b4a1d4c5dff68cbf1de49a629a9e4321031c3bf5 100644 (file)
@@ -6,9 +6,11 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <dwmmc.h>
+#include <init.h>
 #include <malloc.h>
 #include <asm/arcregs.h>
 #include "axs10x.h"
+#include <asm/cache.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index c09ed8cff826d616febb252bc2cde7b6fd06c81d..91fa94a638eff3470b938d6cd03501414c246394 100644 (file)
@@ -4,9 +4,12 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <cpu_func.h>
 #include <dwmmc.h>
+#include <init.h>
 #include <malloc.h>
+#include <linux/bitops.h>
 
 #include <asm/arcregs.h>
 
@@ -101,7 +104,8 @@ void reset_cpu(ulong addr)
                ; /* loop forever till reset */
 }
 
-static int do_emsdp_rom(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+static int do_emsdp_rom(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        u32 creg_boot = readl(CREG_BOOT);
 
@@ -117,13 +121,14 @@ static int do_emsdp_rom(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]
        return CMD_RET_SUCCESS;
 }
 
-cmd_tbl_t cmd_emsdp[] = {
+struct cmd_tbl cmd_emsdp[] = {
        U_BOOT_CMD_MKENT(rom, 2, 0, do_emsdp_rom, "", ""),
 };
 
-static int do_emsdp(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+static int do_emsdp(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[])
 {
-       cmd_tbl_t *c;
+       struct cmd_tbl *c;
 
        c = find_cmd_tbl(argv[1], cmd_emsdp, ARRAY_SIZE(cmd_emsdp));
 
index 6b6bb70e3cb6071e53c8a03e98a51b59dc013447..1c74bfb93a3b6762fcd88e3b7833f797dd244fa4 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <clk.h>
+#include <log.h>
 #include <malloc.h>
 #include <dm/device.h>
 
index c1c105a8fd9f3a44aa97c2761b9888a9b5ca83e8..970bcd4a17e7791e6fb52d2ad3c8ca130ec374ea 100644 (file)
@@ -8,6 +8,7 @@
 #define __BOARD_CLK_LIB_H
 
 #include <common.h>
+#include <linux/bitops.h>
 
 enum clk_ctl_ops {
        CLK_SET         = BIT(0), /* set frequency */
index f443c21e6d99f498e495c7fa9a76663516504c7c..235f29565f9e1d3354ebb9c9b67aa8097fc58f8b 100644 (file)
@@ -6,6 +6,7 @@
 
 #include "env-lib.h"
 #include <env.h>
+#include <log.h>
 
 #define MAX_CMD_LEN    25
 
index 8ccd84ca600d875559665ed2067464d57dd5756e..cd11f9dac06b7c9ff7c3f5db202311323a3f3ca1 100644 (file)
@@ -5,11 +5,17 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <config.h>
 #include <cpu_func.h>
 #include <env.h>
+#include <image.h>
 #include <init.h>
 #include <irq_func.h>
+#include <log.h>
+#include <asm/cache.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/printk.h>
 #include <linux/kernel.h>
 #include <linux/io.h>
@@ -929,7 +935,8 @@ static int hsdk_go_prepare_and_run(void)
        return hsdk_go_run(reg);
 }
 
-static int do_hsdk_go(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+static int do_hsdk_go(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        int ret;
 
@@ -994,7 +1001,8 @@ static void init_mark_done(void)
        writel(~INIT_MARKER_PENDING, INIT_MARKER_REGISTER);
 }
 
-static int do_hsdk_init(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+static int do_hsdk_init(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        int ret;
 
@@ -1022,7 +1030,7 @@ U_BOOT_CMD(
        "- Init HSDK HW\n"
 );
 
-static int do_hsdk_clock_set(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_hsdk_clock_set(struct cmd_tbl *cmdtp, int flag, int argc,
                             char *const argv[])
 {
        int ret = 0;
@@ -1054,7 +1062,7 @@ static int do_hsdk_clock_set(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_SUCCESS;
 }
 
-static int do_hsdk_clock_get(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_hsdk_clock_get(struct cmd_tbl *cmdtp, int flag, int argc,
                             char *const argv[])
 {
        ulong rate;
@@ -1082,7 +1090,7 @@ static int do_hsdk_clock_get(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_SUCCESS;
 }
 
-static int do_hsdk_clock_print(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_hsdk_clock_print(struct cmd_tbl *cmdtp, int flag, int argc,
                               char *const argv[])
 {
        /* Main clocks */
@@ -1094,7 +1102,7 @@ static int do_hsdk_clock_print(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_SUCCESS;
 }
 
-static int do_hsdk_clock_print_all(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_hsdk_clock_print_all(struct cmd_tbl *cmdtp, int flag, int argc,
                                   char *const argv[])
 {
        /*
@@ -1155,16 +1163,17 @@ static int do_hsdk_clock_print_all(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_SUCCESS;
 }
 
-cmd_tbl_t cmd_hsdk_clock[] = {
+struct cmd_tbl cmd_hsdk_clock[] = {
        U_BOOT_CMD_MKENT(set, 3, 0, do_hsdk_clock_set, "", ""),
        U_BOOT_CMD_MKENT(get, 3, 0, do_hsdk_clock_get, "", ""),
        U_BOOT_CMD_MKENT(print, 4, 0, do_hsdk_clock_print, "", ""),
        U_BOOT_CMD_MKENT(print_all, 4, 0, do_hsdk_clock_print_all, "", ""),
 };
 
-static int do_hsdk_clock(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+static int do_hsdk_clock(struct cmd_tbl *cmdtp, int flag, int argc,
+                        char *const argv[])
 {
-       cmd_tbl_t *c;
+       struct cmd_tbl *c;
 
        if (argc < 2)
                return CMD_RET_USAGE;
index 36aa8f6ae55466103a6b2c007a7d127d5a3dfade..497ea186d3a808730b0f97efb079c4da1538fcf3 100644 (file)
@@ -5,8 +5,10 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <init.h>
 #include <malloc.h>
 #include <dwmmc.h>
+#include <linux/bitops.h>
 #include <linux/libfdt.h>
 #include <fdtdec.h>
 
index f384f707f670cd1b997e981ad7cee719b4527ce5..00e5cc36414b15b341745c404f3e8f96ea95a31f 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <dm/device.h>
 #include <virtio_types.h>
 #include <virtio.h>
index 715e20dbd0578ccab3f69d98d9f373ab66111edd..d5393d705976c73d45871e6476212511694be7ed 100644 (file)
  */
 #include <common.h>
 #include <cpu_func.h>
+#include <env.h>
 #include <init.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux-mx25.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index b4fd1833949c1545db9e972a8e9346b19fb2bd66..d32517f998a86eb9b4ace7cabb0fee21f0e06b99 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright (C) 2014 Soeren Moch <smoch@web.de>
  */
 
+#include <init.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
index 7537fa213aa72d9422beb16c0dd2619dd0f9891f..afa6290a2a5e839129924460a6a39a7640f5557f 100644 (file)
@@ -11,6 +11,7 @@
 #include <env.h>
 #include <errno.h>
 #include <init.h>
+#include <net.h>
 #include <serial.h>
 #include <spl.h>
 #include <asm/arch/cpu.h>
index f8eeb40555bc71d8c426bcce759a34c85f47cd5f..b5a02eb83274416b7315de9b8663355220d6af2a 100644 (file)
@@ -6,6 +6,9 @@
  * Author: Fabio Estevam <festevam@gmail.com>
  */
 
+#include <env.h>
+#include <init.h>
+#include <net.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/iomux.h>
@@ -17,6 +20,7 @@
 #include <asm/mach-imx/video.h>
 #include <asm/mach-imx/iomux-v3.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include <linux/sizes.h>
 #include <common.h>
 #include <miiphy.h>
index 06ad0a8c32209e87c178ab0ebce74db38e4d0d60..f9ae09607fbdbcda08da918aae7539d20ae5c968 100644 (file)
@@ -6,10 +6,14 @@
  *        Fabio Estevam <festevam@gmail.com>
  */
 
+#include <common.h>
+#include <image.h>
+#include <init.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/mx6-pins.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/gpio.h>
 #include <asm/mach-imx/iomux-v3.h>
index e27a03c2125a2d93b47863abfe8c5ba5c45c942a..1d24096df5a85ed727dfc694bc47f0fa94c735cd 100644 (file)
@@ -5,6 +5,8 @@
  * Author: Richard Hu <richard.hu@technexion.com>
  */
 
+#include <init.h>
+#include <net.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/imx-regs.h>
@@ -17,6 +19,7 @@
 #include <common.h>
 #include <miiphy.h>
 #include <netdev.h>
+#include <linux/delay.h>
 #include <linux/sizes.h>
 #include <usb.h>
 #include <power/pmic.h>
index b7ca2e1315e5f11ac30103c81564a4e7d3f8c90d..a6fd49d729c43e49bb5e3e62d9e39d07e5a9a172 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <init.h>
+#include <net.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/imx-regs.h>
index 6c432ca5a62c1f471d133c685a132d8e8ac6cffb..a651a00c1a5277063c727d41828d81001429ccf1 100644 (file)
@@ -5,7 +5,9 @@
  * Author: Richard Hu <richard.hu@technexion.com>
  */
 
+#include <common.h>
 #include <cpu_func.h>
+#include <init.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/crm_regs.h>
index 822357bb12c0f16a830377cfc8242d69d0537fac..2a3e6e7e2657babf7fec145d2896c82fbd4ef41b 100644 (file)
@@ -20,6 +20,7 @@
 #include <asm/mach-imx/gpio.h>
 #include <asm/mach-imx/mxc_i2c.h>
 #include <asm/arch/clock.h>
+#include <linux/delay.h>
 #include <spl.h>
 #include <power/pmic.h>
 
index 1588f17821b7afc3360d9ef135a915acdee1c4e4..1677e033c7c2a2400526f230d07322fff74bacc2 100644 (file)
@@ -5,6 +5,8 @@
 
 #include <common.h>
 #include <hang.h>
+#include <init.h>
+#include <log.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/ddr.h>
 #include <asm/arch/imx8mq_pins.h>
@@ -13,6 +15,7 @@
 #include <asm/mach-imx/gpio.h>
 #include <asm/mach-imx/iomux-v3.h>
 #include <asm/mach-imx/mxc_i2c.h>
+#include <linux/delay.h>
 #include <errno.h>
 #include <fsl_esdhc_imx.h>
 #include <mmc.h>
index 7d7c427392f1355dfc068ac2aa406a3ca6185d6b..8ce363773174e11a7c04260e7b181c398bd79752 100644 (file)
@@ -4,6 +4,8 @@
  *      Tapani Utriainen <linuxfae@technexion.com>
  */
 #include <common.h>
+#include <bootstage.h>
+#include <init.h>
 #include <malloc.h>
 #include <netdev.h>
 #include <twl4030.h>
index f9cc2e8f102b16a3df3b6513c3b7f19de36b58fe..54508cd86481a84bf64b76c8e0bf7d9c5738e094 100644 (file)
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux-mx28.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/sys_proto.h>
+#include <linux/delay.h>
 #include <linux/mii.h>
 #include <miiphy.h>
 #include <netdev.h>
index ff1a189c7e92c077b18f71c808dda5b35cdac943..28918de547d89a50098663d933fa5d37e32e5dc1 100644 (file)
@@ -8,11 +8,14 @@
 
 #include <common.h>
 #include <init.h>
+#include <log.h>
+#include <net.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux-mx51.h>
 #include <env.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/crm_regs.h>
index 4f8bf5e778fbce6484616eb667e1ead2d6b97a44..bc8379cccf6d85d7891719611932bd2d1e236fff 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <altera.h>
 #include <errno.h>
+#include <log.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
index 621e26905ba72d1859894abf6fbb505757d29573..53ef9916a252f97b207bf69841fe483056b82b2b 100644 (file)
@@ -4,9 +4,11 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <console.h>
 #include <i2c.h>
 #include <init.h>
+#include <net.h>
 #include <pci.h>
 #if !defined(CONFIG_SPL_BUILD)
 #include <bootcount.h>
@@ -15,6 +17,7 @@
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
+#include <linux/delay.h>
 #include <linux/mbus.h>
 #ifdef CONFIG_NET
 #include <netdev.h>
@@ -308,7 +311,7 @@ int board_late_init(void)
 #endif
 
 #if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_PCI)
-int do_pcie_test(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_pcie_test(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        pci_dev_t bdf;
        u16 ven_id, dev_id;
index 420e7daf4cebad89ff0de1837f39efd5b9cab246..c9396577a92963e6d51426e9e312ee1b1f17fb60 100755 (executable)
@@ -69,7 +69,7 @@ cat << __HEADER_EOF
                 };
                fdt {
                        description = "RK3399-Q7 (Puma) flat device-tree";
-                       data = /incbin/("u-boot.dtb");
+                       data = /incbin/("$1");
                        type = "flat_dt";
                        compression = "none";
                };
index 7ff47669471a516c57d9f5cdfcac7108653ed3dc..561579d056e1dfbf717d3987895fd0699757c237 100644 (file)
@@ -6,6 +6,8 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
+#include <init.h>
+#include <log.h>
 #include <misc.h>
 #include <spl.h>
 #include <syscon.h>
index 01b28e8da46b31fffce2cfe8ab821dd835a88ace..4199bee2e64a539af7e5e9943f501614d6d8822e 100644 (file)
 #include <dm.h>
 #include <env.h>
 #include <errno.h>
+#include <image.h>
 #include <init.h>
 #include <malloc.h>
+#include <net.h>
 #include <spl.h>
 #include <serial.h>
 #include <asm/arch/cpu.h>
@@ -34,6 +36,8 @@
 #include <i2c.h>
 #include <miiphy.h>
 #include <cpsw.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <power/tps65217.h>
 #include <power/tps65910.h>
 #include <env_internal.h>
index 5d4e57ffc5c2015f21d07abccc3d7473c6e2c959..888aa5b9caf0e184f2621656b19a33022c84d6b9 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/mmc_host_def.h>
 #include <asm/arch/mem.h>
index 21fc5ed1d3dd989afde49764c5544b81fecfcc76..923b224e4c19ea762c013dcad7c9d24e637df8bd 100644 (file)
@@ -9,11 +9,13 @@
 
 #include <common.h>
 #include <eeprom.h>
+#include <image.h>
 #include <dm/uclass.h>
 #include <env.h>
 #include <fdt_support.h>
 #include <i2c.h>
 #include <init.h>
+#include <net.h>
 #include <linux/errno.h>
 #include <spl.h>
 #include <usb.h>
index 34ca3ec9b02782fdd968fea90b69ed7d76fc936e..8720eb87a55d5e5a4f71287560922ff23cee7b73 100644 (file)
 #include <common.h>
 #include <env.h>
 #include <fdt_support.h>
+#include <image.h>
 #include <init.h>
 #include <malloc.h>
+#include <net.h>
 #include <palmas.h>
 #include <sata.h>
 #include <serial.h>
index 2da7db9f096132734f162f209cf80f2b2e122110..a22900dcf97245ae724a20088768cb3b436ea5d7 100644 (file)
@@ -9,7 +9,10 @@
 
 #include <common.h>
 #include <dm.h>
+#include <fdt_support.h>
+#include <image.h>
 #include <init.h>
+#include <net.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/hardware.h>
 #include <asm/gpio.h>
index 12e657c9c610e2ccea4401e389ec85aadf043b73..9139ad87d400b0de8b59e30531421c48271fa165 100644 (file)
  *
  */
 #include <common.h>
+#include <bootstage.h>
 #include <dm.h>
 #include <env.h>
+#include <init.h>
+#include <net.h>
 #include <ns16550.h>
 #include <serial.h>
 #ifdef CONFIG_LED_STATUS
index cbd35f24342c68d43c7a901ccf46877cc56c6b63..429668404a3b6456689441cff3745716081cb7e0 100644 (file)
@@ -9,6 +9,8 @@
 
 #include <common.h>
 #include <eeprom.h>
+#include <log.h>
+#include <net.h>
 #include <asm/arch/hardware.h>
 #include <asm/omap_common.h>
 #include <dm/uclass.h>
index 5835af5344b0a94489feac0a4c1532a3a06d226a..9f75b5c00446ad50ec55ff3c504e601a904cb84b 100644 (file)
@@ -9,6 +9,7 @@
 #define __BOARD_DETECT_H
 
 /* TI EEPROM MAGIC Header identifier */
+#include <linux/bitops.h>
 #define TI_EEPROM_HEADER_MAGIC 0xEE3355AA
 #define TI_DEAD_EEPROM_MAGIC   0xADEAD12C
 
index 8132cdfbf2f83e6ed6aba70de80fd6be44df6091..acf7ff1691701a447602c85ab0ac7fdf2f547e6b 100644 (file)
 #include <common.h>
 #include <env.h>
 #include <fdt_support.h>
+#include <image.h>
 #include <init.h>
 #include <spl.h>
+#include <net.h>
 #include <palmas.h>
 #include <sata.h>
 #include <serial.h>
index d26dd5ba84080b66f45670f4f88ef9ec035f2fec..aba74fce775acf2bd900190688acf137a69f198b 100644 (file)
@@ -13,6 +13,8 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
+#include <init.h>
+#include <net.h>
 #include <ns16550.h>
 #include <netdev.h>
 #include <serial.h>
@@ -26,6 +28,7 @@
 #include <twl4030.h>
 #include <asm/mach-types.h>
 #include <asm/omap_musb.h>
+#include <linux/delay.h>
 #include <linux/mtd/rawnand.h>
 #include <linux/usb/ch9.h>
 #include <linux/usb/gadget.h>
index c068bb86b594577d2c2dee4160c6857d2061638a..ff939c8ca6ee207a9d1739b1475ff1f1a760d3a7 100644 (file)
@@ -8,7 +8,12 @@
  */
 
 #include <common.h>
+#include <env.h>
+#include <fdt_support.h>
+#include <image.h>
 #include <init.h>
+#include <log.h>
+#include <net.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/hardware.h>
 #include <asm/gpio.h>
index 6554c0eb11869d8ebd645ab74b0ea36e18fdaefd..8595b20e87291c98ce67ad78c1999005dba147be 100644 (file)
@@ -10,6 +10,7 @@
 #include "board.h"
 #include <env.h>
 #include <hang.h>
+#include <image.h>
 #include <init.h>
 #include <spl.h>
 #include <exports.h>
index ecd4a42df40e8fc24a8333056ceefafd4c0bf291..39abb24e15604e5aa3b8403c96a3df864c8c4f23 100644 (file)
@@ -7,6 +7,8 @@
  */
 
 #include <common.h>
+#include <image.h>
+#include <init.h>
 #include <asm/arch/ddr3.h>
 #include <asm/arch/hardware.h>
 #include <asm/ti-common/keystone_net.h>
index c6a14a05546959a7ae5a04abfef18e0053dde61b..ece75326a557abb0ecd1971a19481da0987d3850 100644 (file)
@@ -9,6 +9,7 @@
 #include <eeprom.h>
 #include <env.h>
 #include <hang.h>
+#include <image.h>
 #include <init.h>
 #include <asm/arch/clock.h>
 #include <asm/ti-common/keystone_net.h>
@@ -17,6 +18,8 @@
 #include <fdtdec.h>
 #include <i2c.h>
 #include <remoteproc.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include "mux-k2g.h"
 #include "../common/board_detect.h"
 
index 4c0acd627f2c3ce58d1b41bab3be9f667a9b7909..12c4649c3c4c14641153c33f2fbe206c70ae9c78 100644 (file)
@@ -7,6 +7,8 @@
  */
 
 #include <common.h>
+#include <image.h>
+#include <init.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/hardware.h>
 #include <asm/ti-common/keystone_net.h>
index e49d8b348236e3542a5aadb8fd84672c786e6f3b..f759ee364666ebaf9eeda7d4ea108eae555b5d16 100644 (file)
@@ -7,6 +7,8 @@
  */
 
 #include <common.h>
+#include <image.h>
+#include <init.h>
 #include <asm/arch/ddr3.h>
 #include <asm/arch/hardware.h>
 #include <asm/ti-common/keystone_net.h>
index ee7efcbfa7c4958d4207686132275d4e14168c58..e35f319b46f975018d0c7f3e198feffa18c57ad2 100644 (file)
@@ -6,12 +6,15 @@
  * Steve Sakoman  <steve@sakoman.com>
  */
 #include <common.h>
+#include <init.h>
+#include <net.h>
 #include <palmas.h>
 #include <asm/arch/omap.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/mmc_host_def.h>
 #include <tca642x.h>
 #include <usb.h>
+#include <linux/delay.h>
 #include <linux/usb/gadget.h>
 #include <dwc3-uboot.h>
 #include <dwc3-omap-uboot.h>
index 20199da390ecdf35f5137eeafd2e01ff43691637..9ebecfdbf581a6b259b01d52bc586099039e1287 100644 (file)
@@ -5,6 +5,9 @@
  * Steve Sakoman  <steve@sakoman.com>
  */
 #include <common.h>
+#include <init.h>
+#include <log.h>
+#include <net.h>
 #include <asm/mach-types.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/mmc_host_def.h>
index c820435386d4e46c32c1e5b11aab2bedb02630f6..6c1e6ca393c66b3183b76ddc1272897a2f58c342 100644 (file)
@@ -9,7 +9,7 @@
 #ifdef CONFIG_CMD_BAT
 #include <twl6030.h>
 
-int do_vbat(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_vbat(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        if (argc == 2) {
                if (strncmp(argv[1], "startcharge", 12) == 0)
index e71c53e5ee41121e1bbb6b454a468281536e7f77..a5b35040453060bd22a0295a269c5121c7b6241f 100644 (file)
@@ -6,6 +6,8 @@
  * Steve Sakoman  <steve@sakoman.com>
  */
 #include <common.h>
+#include <init.h>
+#include <net.h>
 #include <twl6030.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/mmc_host_def.h>
index 2b9385d14b43ca36945ed003e34e9f0a0b6f61c2..8ed80d2f4627eca42358fbc985054354a798b7ba 100644 (file)
@@ -11,6 +11,8 @@
 #include <cpsw.h>
 #include <env.h>
 #include <errno.h>
+#include <init.h>
+#include <net.h>
 #include <spl.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/hardware.h>
index 3896ebbfda2dcd40045f53dd0aa00e494a6f2b2d..590c15676a96129e6755ef966df918622b050c18 100644 (file)
@@ -8,6 +8,8 @@
 
 #include <common.h>
 #include <env.h>
+#include <init.h>
+#include <net.h>
 #include <spl.h>
 #include <asm/cache.h>
 #include <asm/io.h>
index b455844c89ddd05edc0a9c30eca45f438fb29cf5..f4eaf15970bb84bd26ff61f6bc9cb67f59f3cf4d 100644 (file)
@@ -13,6 +13,7 @@
 #include <asm/arch/emc.h>
 #include <asm/arch/wdt.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index b037d725c3af0ed3b8bd4533d6cd36e1cc84517e..cbb219931d1b890ed81b3ae62ee7346569820806 100644 (file)
@@ -18,6 +18,7 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
+#include <init.h>
 #include <malloc.h>
 #include <ns16550.h>
 #include <twl4030.h>
index bc98858ae023caeb738d422cd2d3cbe6b05f20cc..d77b4c4ab9c88780a5963abfd76061c09328caed 100644 (file)
@@ -5,6 +5,9 @@
 
 #include <common.h>
 #include <dm.h>
+#include <env.h>
+#include <init.h>
+#include <log.h>
 #include <asm/arch-tegra/ap.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
@@ -12,6 +15,7 @@
 #include <asm/arch/pinmux.h>
 #include <env_internal.h>
 #include <pci_tegra.h>
+#include <linux/delay.h>
 #include <power/as3722.h>
 #include <power/pmic.h>
 
index 15f8dce2f162374e9b14c5c6cd648c9f05ab4356..68169f55480860b63cd9cb943897cf8ab09c0f9a 100644 (file)
@@ -4,8 +4,10 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch-tegra/tegra_i2c.h>
+#include <linux/delay.h>
 #include "as3722_init.h"
 
 /* AS3722-PMIC-specific early init code - get CPU rails up, etc */
index 8c4a359c75029cfdd7cd3e11796d29c97421753e..40c71adf51bd52f889642b3e10859b5c7938ad41 100644 (file)
@@ -9,7 +9,11 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
+#include <image.h>
 #include <init.h>
+#include <net.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 #include <ahci.h>
 #include <asm/arch/clock.h>
index 22d191f52ae0db3b72995420647aec6d450405ee..6991b1bc136ef49153a4fabaf5a650d81856f0c8 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #ifndef CONFIG_SPL_BUILD
+#include <command.h>
 #include <console.h>
 #include <fuse.h>
 
@@ -35,8 +36,8 @@ static int mfgr_fuse(void)
        return CMD_RET_SUCCESS;
 }
 
-int do_mfgr_fuse(cmd_tbl_t *cmdtp, int flag, int argc,
-               char * const argv[])
+int do_mfgr_fuse(struct cmd_tbl *cmdtp, int flag, int argc,
+                char *const argv[])
 {
        int ret;
        puts("Fusing...\n");
@@ -48,8 +49,8 @@ int do_mfgr_fuse(cmd_tbl_t *cmdtp, int flag, int argc,
        return ret;
 }
 
-int do_updt_fuse(cmd_tbl_t *cmdtp, int flag, int argc,
-               char * const argv[])
+int do_updt_fuse(struct cmd_tbl *cmdtp, int flag, int argc,
+                char *const argv[])
 {
        unsigned val;
        int ret;
index ebd6418fd472c2cc1ebefb2d90e0f3552225cb80..c89052ff5daa669770f4c872f151214285fcd723 100644 (file)
@@ -8,12 +8,14 @@
 */
 
 #include <common.h>
+#include <command.h>
 #include <i2c.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/mx6-pins.h>
 #include <asm/gpio.h>
 #include <asm/mach-imx/iomux-v3.h>
+#include <linux/delay.h>
 
 #include "pf0100_otp.inc"
 #include "pf0100.h"
@@ -261,8 +263,8 @@ static int pf0100_prog(void)
        return CMD_RET_SUCCESS;
 }
 
-static int do_pf0100_prog(cmd_tbl_t *cmdtp, int flag, int argc,
-               char * const argv[])
+static int do_pf0100_prog(struct cmd_tbl *cmdtp, int flag, int argc,
+                         char *const argv[])
 {
        int ret;
        puts("Programming PMIC OTP...");
index df9bc8e7075cfac3ab25d00c8725961451d26d18..3e8b8b1fe39b23ccdfa24f4d04a0959858f9bc7e 100644 (file)
@@ -5,6 +5,8 @@
  */
 
 #include <common.h>
+#include <init.h>
+#include <log.h>
 #include <asm/arch/gp_padctrl.h>
 #include <asm/arch/pinmux.h>
 #include <asm/arch-tegra/ap.h>
@@ -14,6 +16,7 @@
 #include <dm.h>
 #include <i2c.h>
 #include <pci_tegra.h>
+#include <linux/delay.h>
 #include "../common/tdx-common.h"
 
 #include "pinmux-config-apalis_t30.h"
index 7dfe8aec88d77bf3e614385b72258c6213513753..c67d02f7c29c0aed645a8ec23bad813d49d0b670 100644 (file)
@@ -4,6 +4,7 @@
  */
 #include <common.h>
 #include <init.h>
+#include <linux/delay.h>
 
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
index d11401ecab8abffc548b5428e7ec081a00aca3e1..6522af416a8642189edce1f17eb6db1af4303228 100644 (file)
@@ -11,6 +11,9 @@
 #include <dm.h>
 #include <env.h>
 #include <init.h>
+#include <net.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
index 22d191f52ae0db3b72995420647aec6d450405ee..6991b1bc136ef49153a4fabaf5a650d81856f0c8 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #ifndef CONFIG_SPL_BUILD
+#include <command.h>
 #include <console.h>
 #include <fuse.h>
 
@@ -35,8 +36,8 @@ static int mfgr_fuse(void)
        return CMD_RET_SUCCESS;
 }
 
-int do_mfgr_fuse(cmd_tbl_t *cmdtp, int flag, int argc,
-               char * const argv[])
+int do_mfgr_fuse(struct cmd_tbl *cmdtp, int flag, int argc,
+                char *const argv[])
 {
        int ret;
        puts("Fusing...\n");
@@ -48,8 +49,8 @@ int do_mfgr_fuse(cmd_tbl_t *cmdtp, int flag, int argc,
        return ret;
 }
 
-int do_updt_fuse(cmd_tbl_t *cmdtp, int flag, int argc,
-               char * const argv[])
+int do_updt_fuse(struct cmd_tbl *cmdtp, int flag, int argc,
+                char *const argv[])
 {
        unsigned val;
        int ret;
index e744243297b0af03f45d2233d7674ea40f2eea0d..8f08d8c7337c1b9e7ac7ae2afb66bec48db383dd 100644 (file)
@@ -8,12 +8,14 @@
 */
 
 #include <common.h>
+#include <command.h>
 #include <i2c.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/mx6-pins.h>
 #include <asm/gpio.h>
 #include <asm/mach-imx/iomux-v3.h>
+#include <linux/delay.h>
 
 #include "pf0100_otp.inc"
 #include "pf0100.h"
@@ -246,8 +248,8 @@ static int pf0100_prog(void)
        return CMD_RET_SUCCESS;
 }
 
-static int do_pf0100_prog(cmd_tbl_t *cmdtp, int flag, int argc,
-               char * const argv[])
+static int do_pf0100_prog(struct cmd_tbl *cmdtp, int flag, int argc,
+                         char *const argv[])
 {
        int ret;
        puts("Programming PMIC OTP...");
index 8727101aa38af1abf34bf698466fd9afc712337d..8df925dacfb99401d7a1109ff6e5cef7b02341ca 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <init.h>
+#include <net.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/imx-regs.h>
@@ -20,6 +21,7 @@
 #include <fdt_support.h>
 #include <fsl_esdhc_imx.h>
 #include <jffs2/load_kernel.h>
+#include <linux/delay.h>
 #include <linux/sizes.h>
 #include <mmc.h>
 #include <miiphy.h>
index c4db516b074bec79effa6b10f89d848c95f44809..18b3d3f5423bd59ad59979f0e772d30a5dc817bc 100644 (file)
@@ -9,6 +9,8 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
+#include <init.h>
+#include <net.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/pxa.h>
 #include <asm/arch/regs-mmc.h>
@@ -20,6 +22,7 @@
 #include <serial.h>
 #include <usb.h>
 #include <asm/mach-types.h>
+#include <linux/delay.h>
 #include "../common/tdx-common.h"
 
 DECLARE_GLOBAL_DATA_PTR;
index e0b27e92f8e339e7ab99d29337fb1d6b20cfbca8..cb0aed872fcdcf57f769199471c4a180949813ad 100644 (file)
@@ -4,6 +4,8 @@
  */
 
 #include <common.h>
+#include <init.h>
+#include <log.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/funcmux.h>
 #include <asm/arch/pinmux.h>
@@ -14,6 +16,7 @@
 #include <asm/io.h>
 #include <i2c.h>
 #include <nand.h>
+#include <linux/delay.h>
 #include "../common/tdx-common.h"
 
 DECLARE_GLOBAL_DATA_PTR;
index b6b00e3860d8df18e7d105a6b627f9503f2c2252..0bbe81e44df4d79a462020deaf669249812ec143 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/arch/gp_padctrl.h>
 #include <asm/arch/pinmux.h>
 #include <asm/arch-tegra/ap.h>
@@ -12,6 +13,7 @@
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <i2c.h>
+#include <linux/delay.h>
 #include "pinmux-config-colibri_t30.h"
 #include "../common/tdx-common.h"
 
index 1b6c91141865c50a29245b601b13cee4bc3036cb..75216ecf6d3979acf14ad5e67e54e32872f77d92 100644 (file)
@@ -5,6 +5,8 @@
 
 #include <common.h>
 #include "tdx-cfg-block.h"
+#include <command.h>
+#include <asm/cache.h>
 
 #if defined(CONFIG_TARGET_APALIS_IMX6) || \
        defined(CONFIG_TARGET_APALIS_IMX8) || \
@@ -513,8 +515,8 @@ static int get_cfgblock_barcode(char *barcode)
        return 0;
 }
 
-static int do_cfgblock_create(cmd_tbl_t *cmdtp, int flag, int argc,
-                             char * const argv[])
+static int do_cfgblock_create(struct cmd_tbl *cmdtp, int flag, int argc,
+                             char *const argv[])
 {
        u8 *config_block;
        struct toradex_tag *tag;
@@ -642,8 +644,8 @@ out:
        return ret;
 }
 
-static int do_cfgblock(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+static int do_cfgblock(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        int ret;
 
index e9441a7979d2195b8ed9053af9a09b7689b4014f..e8de923f3e1193cbac8681be541ab3e466bb0db3 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <env.h>
 #include <g_dnl.h>
+#include <init.h>
 #include <linux/libfdt.h>
 
 #include "tdx-cfg-block.h"
index dc5bd84f332e40eb542cb47abc1b4650ead764f5..cc78c5666bba76f50ba673fc5bb681fa07cf1734 100644 (file)
@@ -4,6 +4,10 @@
  */
 
 #include <common.h>
+#include <command.h>
+#include <image.h>
+#include <init.h>
+#include <log.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/ddr.h>
 #include <asm/arch/imx8mm_pins.h>
index 35866e096a3294ada1e285687d01062dd00daf50..ff05c7d55237f6a5cc5a2a767c5e2848095eb4cc 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/io.h>
index 4dacaa4285cbefa0774e7e64419c42b16e97bd8d..9134d6bf6d435e6fc7ec3699b4d276880e316493 100644 (file)
@@ -4,9 +4,12 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/addrspace.h>
 #include <asm/types.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <mach/ath79.h>
 #include <mach/ar71xx_regs.h>
 #include <mach/ddr.h>
index 08342077665220b8b686648b89d15ef1d0c0ad1a..92bda60765243991ce52d0ff703e70c8f3d716b3 100644 (file)
@@ -13,6 +13,7 @@
 #include <pci.h>
 #include <i2c.h>
 #include <asm/fsl_i2c.h>
+#include <linux/delay.h>
 
 static struct pci_region pci1_regions[] = {
        {
index 02b3d2dea11e2a52679bf30791e86135ce0aa10d..165a5433e728a449acc4cded824415769b3c76bb 100644 (file)
@@ -8,6 +8,7 @@
 #include <fdt_support.h>
 #include <init.h>
 #include <ioports.h>
+#include <log.h>
 #include <mpc83xx.h>
 #include <asm/mpc8349_pci.h>
 #include <i2c.h>
@@ -15,6 +16,7 @@
 #include <asm/mmu.h>
 #include <pci.h>
 #include <flash.h>
+#include <linux/delay.h>
 #include <mtd/cfi_flash.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index 675341abdde37bc4c9249c5aa1442245c651f2a4..d7df4f976a2e347a258ede7b40379adc933fae73 100644 (file)
@@ -14,6 +14,7 @@
 #include <asm/arch/iomux.h>
 #include <asm/arch/sys_proto.h>
 #include <env.h>
+#include <fdt_support.h>
 #include <linux/errno.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
index a5b7587737fb0405b1aef75cd56d81d306dc47e3..84d0e386a3e6902156a8baa12041e472f0e121f0 100644 (file)
@@ -8,12 +8,14 @@
  */
 
 #include <init.h>
+#include <net.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/mx6-pins.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/sys_proto.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/gpio.h>
 #include <asm/mach-imx/mxc_i2c.h>
index 1320f8ad78cef4e4facdf144a019a6527b85823a..0488cbaaa8b5055a75a2fab92524e4f164666dcd 100644 (file)
  */
 
 #include <init.h>
+#include <net.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/mx6-pins.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/sys_proto.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/gpio.h>
 #include <asm/mach-imx/boot_mode.h>
index 2ba98c7b52e37cddc8e4fb1b39258fe0758d4f16..5e49180c764ab1c2996d2b96cc4602e93843aafa 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include <init.h>
+#include <net.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/imx-regs.h>
@@ -24,6 +25,7 @@
 #include <asm/mach-imx/mxc_i2c.h>
 #include <asm/arch/sys_proto.h>
 #include <spl.h>
+#include <linux/delay.h>
 #include <linux/sizes.h>
 #include <common.h>
 #include <i2c.h>
index 2a4e790d88a22a64a66b7efff606179019d353ec..4c85d99c13dccc0e10bbe3eee32b4456acf2c6f1 100644 (file)
@@ -6,12 +6,14 @@
  */
 
 #include <init.h>
+#include <net.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
 #include <env.h>
 #include <malloc.h>
 #include <asm/arch/mx6-pins.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/gpio.h>
 #include <asm/mach-imx/iomux-v3.h>
index b287fbf41066ed6ea1bd02708487a503900686be..d9afbbb741981208899a12292126a285217ec01b 100644 (file)
@@ -6,10 +6,13 @@
  * Based on board/wandboard/spl.c
  */
 
+#include <common.h>
+#include <init.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/mx6-pins.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/gpio.h>
 #include <asm/mach-imx/iomux-v3.h>
index 68a127b9ac1a2b67d220b1acb8b671e03c9dd46e..a7fc38d42f8f2af7c1095ab6e3ceeb170c634ca8 100644 (file)
@@ -2,3 +2,27 @@
 /*
  * Copyright (C) 2018 Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
  */
+
+#include <common.h>
+#include <syscon.h>
+#include <asm/io.h>
+#include <asm/arch-rockchip/clock.h>
+#include <asm/arch-rockchip/grf_rk3399.h>
+#include <asm/arch-rockchip/hardware.h>
+#include <linux/bitops.h>
+
+#ifdef CONFIG_MISC_INIT_R
+int misc_init_r(void)
+{
+       struct rk3399_grf_regs *grf =
+           syscon_get_first_range(ROCKCHIP_SYSCON_GRF);
+
+       /**
+        * Some SSD's to work on rock960 would require explicit
+        * domain voltage change, so BT565 is in 1.8v domain
+        */
+       rk_setreg(&grf->io_vsel, BIT(0));
+
+       return 0;
+}
+#endif
index 2d0b760c39fb68b28bfec5843dddf764a7a698e3..a4f449d2e25e34f5c6c933a0cc458f009ed5ea7e 100644 (file)
@@ -4,6 +4,8 @@
  * Copyright (C) 2019 Parthiban Nallathambi <parthitce@gmail.com>
  */
 
+#include <init.h>
+#include <net.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/mx6-pins.h>
index 798523d0d0924b5ad274c5353bff986ce6cacd2b..1b06a66060012910cc3750a72d333e38380305bc 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <spl.h>
 #include <asm/arch/clock.h>
 #include <asm/io.h>
index 4c025087db0fb9aa0dcf54c28c9a70bd2dbbfb3e..251d9fd73e56b679b21350efb20beb8b76897c48 100644 (file)
@@ -15,6 +15,7 @@
 #include <env.h>
 #include <i2c.h>
 #include <linux/ctype.h>
+#include <linux/delay.h>
 #include <u-boot/crc.h>
 
 #include "eeprom.h"
@@ -306,7 +307,7 @@ static void set_mac_address(unsigned int index, const char *string)
        update_crc();
 }
 
-int do_mac(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_mac(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        char cmd;
 
index 13429072c79b0ff53148c41e3028cd9296bcc2be..a42910f60001281dcea0ac371a067097054dc89e 100644 (file)
@@ -7,6 +7,7 @@
 #include <command.h>
 #include <env.h>
 #include <fdt_support.h>
+#include <image.h>
 #include <init.h>
 #include <netdev.h>
 #include <linux/compiler.h>
index cac00e0467c53e47bbcf1fb3d7de694a79f9f67c..7949eb88c07beb725772faaae4baf6817262a252 100644 (file)
@@ -6,6 +6,8 @@
 #include <common.h>
 #include <i2c.h>
 #include <hwconfig.h>
+#include <init.h>
+#include <log.h>
 #include <asm/mmu.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
index 9783abd65955d814054dcf356036a8d1de1984b5..45b21fba32ba5f12b7ea007db3ec3e30fd2034db 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/fsl_serdes.h>
 #include <fm_eth.h>
index d1c9535f46ead79e4f79139376cbb0a74391d199..ceb3d755522deea02f9cdb3c50bcba81509e3346 100644 (file)
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <fdt_support.h>
 #include <init.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <pci.h>
 #include <mpc83xx.h>
index c76502c964862515e4e31b02924a08c026f90707..197405e55552d51d2afb26b27330fc9d3b6fdc5e 100644 (file)
@@ -11,6 +11,7 @@
 #include <env.h>
 #include <errno.h>
 #include <init.h>
+#include <net.h>
 #include <serial.h>
 #include <linux/libfdt.h>
 #include <spl.h>
index dbd9d0286fd0da1528ce90f86e838441728cdf7b..04c351fff985ef605571db8f91d0ec58266737c0 100644 (file)
@@ -5,10 +5,13 @@
  *         Richard Hu <hakahu@gmail.com>
  */
 
+#include <common.h>
+#include <init.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/mx6-pins.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/gpio.h>
 #include <asm/mach-imx/iomux-v3.h>
index fb2f3c1fd25270ebbd4aa5d4a57416022287f78e..e0e01b1a4a43beaad93d48802c3b753495cc1d4c 100644 (file)
@@ -6,7 +6,10 @@
  * Author: Fabio Estevam <fabio.estevam@freescale.com>
  */
 
+#include <common.h>
+#include <image.h>
 #include <init.h>
+#include <log.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/iomux.h>
@@ -22,6 +25,7 @@
 #include <asm/mach-imx/sata.h>
 #include <asm/io.h>
 #include <env.h>
+#include <linux/delay.h>
 #include <linux/sizes.h>
 #include <common.h>
 #include <miiphy.h>
index 1ebec939169fdef8f6ef08c7b35567aac9c73f6e..50630574fd10d846daea8f7511bd35d2a7b96e6e 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <init.h>
+#include <net.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/mx7-pins.h>
index 5cc2566e2a14af80d51fbf6eea700726efc4a307..2e0def5b64f0f4d7b8075e4517d3ce4878d178e8 100644 (file)
@@ -16,6 +16,7 @@
 #include <asm/arch/wdt.h>
 #include <asm/gpio.h>
 #include <spl.h>
+#include <linux/delay.h>
 #include "work_92105_display.h"
 
 DECLARE_GLOBAL_DATA_PTR;
index db04dcabc7bc354874b9e143881b1408b77eba3c..fecbbbdb584a165efc99afa741210769095d46a2 100644 (file)
@@ -11,6 +11,8 @@
  */
 
 #include <common.h>
+#include <command.h>
+#include <log.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/emc.h>
@@ -20,6 +22,7 @@
 #include <i2c.h>
 #include <version.h>
 #include <vsprintf.h>
+#include <linux/delay.h>
 
 /*
  * GPO 15 in port 3 is gpio 3*32+15 = 111
@@ -266,7 +269,7 @@ void work_92105_display_init(void)
 
 #ifdef CONFIG_CMD_MAX6957
 
-static int do_max6957aax(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_max6957aax(struct cmd_tbl *cmdtp, int flag, int argc,
                         char *const argv[])
 {
        int reg, val;
@@ -315,7 +318,8 @@ U_BOOT_CMD(
 #error CONFIG_CMD_HD44760 requires CONFIG_HUSH_PARSER
 #endif
 
-static int do_hd44780(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+static int do_hd44780(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        char *cmd;
 
index 43575bc302d6b58692657c49274d1a32c12ffed6..053b07a0b70fa70f4ead2533826edd800f1ffa13 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <env.h>
 #include "fsl_8xxx_misc.h"
+#include <init.h>
 
 int checkboard(void)
 {
index 604faf2131dca50a6ad12c57d505e870b0b711a3..a3fd2fc8ca89a67677305a6fe1dc0c08b6e007a5 100644 (file)
@@ -8,6 +8,7 @@
 #include <i2c.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
+#include <log.h>
 
 void get_spd(ddr2_spd_eeprom_t *spd, u8 i2c_address)
 {
index 65e69c80130b0c540669431862e59a28914c2f79..f55102a072e9c21c732c7cbe30fdbd91b040ff09 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <log.h>
 
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
index 294a59df77dac3187dcbc06f1fd065bd03446717..0469e2e7ac9b5b90576f5f67bdf1ab16da1abd17 100644 (file)
@@ -5,6 +5,8 @@
  */
 
 #include <common.h>
+#include <env.h>
+#include <log.h>
 #include <asm/sections.h>
 #include <dm/uclass.h>
 #include <i2c.h>
index 0e33f6af0b7645040fde7e888745b846464623cf..4e569e910d905bac7a0031eb0121114440f97ac2 100644 (file)
@@ -12,7 +12,9 @@
 
 #include <common.h>
 #include <config.h>
+#include <env.h>
 #include <init.h>
+#include <log.h>
 #include <dm/lists.h>
 #include <fdtdec.h>
 #include <linux/sizes.h>
index 483e3ce2f79a29dee74d9eabcda08be27863b854..45cf1d2d0cadec8f9144e0db17442ad0d5312527 100644 (file)
@@ -6,10 +6,13 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <env.h>
 #include <fdtdec.h>
 #include <init.h>
+#include <log.h>
 #include <malloc.h>
 #include <time.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/sys_proto.h>
index 56d69cddacf2aac7163282fa083788f1fadb9c8f..481f012c282db62672bd4f58e94990349a5c6e9a 100644 (file)
@@ -4,6 +4,8 @@
  */
 
 #include <common.h>
+#include <log.h>
+#include <part.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/sys_proto.h>
index 27d44b760daf36c81fa0a96868ffbb711b24b1b0..0c46de7599c3898c26b78ef788cd65d0e2dff0d2 100644 (file)
@@ -4,10 +4,13 @@
  */
 
 #include <common.h>
+#include <command.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/sys_proto.h>
 #include <malloc.h>
+#include <linux/bitops.h>
 #include <u-boot/md5.h>
 #include <u-boot/rsa.h>
 #include <u-boot/rsa-mod-exp.h>
@@ -408,8 +411,8 @@ static int zynq_verify_image(u32 src_ptr)
        return 0;
 }
 
-static int do_zynq_rsa(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+static int do_zynq_rsa(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        u32 src_ptr;
        char *endp;
@@ -429,8 +432,8 @@ static int do_zynq_rsa(cmd_tbl_t *cmdtp, int flag, int argc,
 #endif
 
 #ifdef CONFIG_CMD_ZYNQ_AES
-static int zynq_decrypt_image(cmd_tbl_t *cmdtp, int flag, int argc,
-                             char * const argv[])
+static int zynq_decrypt_image(struct cmd_tbl *cmdtp, int flag, int argc,
+                             char *const argv[])
 {
        char *endp;
        u32 srcaddr, srclen, dstaddr, dstlen;
@@ -469,7 +472,7 @@ static int zynq_decrypt_image(cmd_tbl_t *cmdtp, int flag, int argc,
 }
 #endif
 
-static cmd_tbl_t zynq_commands[] = {
+static struct cmd_tbl zynq_commands[] = {
 #ifdef CONFIG_CMD_ZYNQ_RSA
        U_BOOT_CMD_MKENT(rsa, 3, 1, do_zynq_rsa, "", ""),
 #endif
@@ -478,9 +481,10 @@ static cmd_tbl_t zynq_commands[] = {
 #endif
 };
 
-static int do_zynq(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_zynq(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
-       cmd_tbl_t *zynq_cmd;
+       struct cmd_tbl *zynq_cmd;
        int ret;
 
        if (!ARRAY_SIZE(zynq_commands)) {
index 893616b6a1984f21f810d8e91486f0d3f492707a..0f1f26986f21309d2611d99f4841dd962ccaa1bc 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <cpu_func.h>
 #include <env.h>
 #include <malloc.h>
@@ -13,8 +14,8 @@
 #include <asm/arch/sys_proto.h>
 #include <asm/io.h>
 
-static int do_zynqmp_verify_secure(cmd_tbl_t *cmdtp, int flag, int argc,
-                                  char * const argv[])
+static int do_zynqmp_verify_secure(struct cmd_tbl *cmdtp, int flag, int argc,
+                                  char *const argv[])
 {
        u64 src_addr, addr;
        u32 len, src_lo, src_hi;
@@ -65,8 +66,8 @@ static int do_zynqmp_verify_secure(cmd_tbl_t *cmdtp, int flag, int argc,
        return ret;
 }
 
-static int do_zynqmp_mmio_read(cmd_tbl_t *cmdtp, int flag, int argc,
-                              char * const argv[])
+static int do_zynqmp_mmio_read(struct cmd_tbl *cmdtp, int flag, int argc,
+                              char *const argv[])
 {
        u32 read_val, addr;
        int ret;
@@ -86,8 +87,8 @@ static int do_zynqmp_mmio_read(cmd_tbl_t *cmdtp, int flag, int argc,
        return ret;
 }
 
-static int do_zynqmp_mmio_write(cmd_tbl_t *cmdtp, int flag, int argc,
-                               char * const argv[])
+static int do_zynqmp_mmio_write(struct cmd_tbl *cmdtp, int flag, int argc,
+                               char *const argv[])
 {
        u32 addr, mask, val;
        int ret;
@@ -107,8 +108,8 @@ static int do_zynqmp_mmio_write(cmd_tbl_t *cmdtp, int flag, int argc,
 }
 
 #ifdef CONFIG_DEFINE_TCM_OCM_MMAP
-static int do_zynqmp_tcm_init(cmd_tbl_t *cmdtp, int flag, int argc,
-                             char * const argv[])
+static int do_zynqmp_tcm_init(struct cmd_tbl *cmdtp, int flag, int argc,
+                             char *const argv[])
 {
        u8 mode;
 
@@ -129,7 +130,7 @@ static int do_zynqmp_tcm_init(cmd_tbl_t *cmdtp, int flag, int argc,
 }
 #endif
 
-static cmd_tbl_t cmd_zynqmp_sub[] = {
+static struct cmd_tbl cmd_zynqmp_sub[] = {
        U_BOOT_CMD_MKENT(secure, 5, 0, do_zynqmp_verify_secure, "", ""),
        U_BOOT_CMD_MKENT(mmio_read, 3, 0, do_zynqmp_mmio_read, "", ""),
        U_BOOT_CMD_MKENT(mmio_write, 5, 0, do_zynqmp_mmio_write, "", ""),
@@ -149,10 +150,10 @@ static cmd_tbl_t cmd_zynqmp_sub[] = {
  *
  * Return: return 0 on success and CMD_RET_USAGE incase of misuse and error
  */
-static int do_zynqmp(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_zynqmp(struct cmd_tbl *cmdtp, int flag, int argc,
                     char *const argv[])
 {
-       cmd_tbl_t *c;
+       struct cmd_tbl *c;
 
        if (argc < 2)
                return CMD_RET_USAGE;
index c3ae357bbdb1c7d4edf37acf56f1ca3d69d53577..5fde0aed7dbe7a12748f3ee24c048e232b8fb0e0 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <asm/arch/sys_proto.h>
+#include <linux/delay.h>
 
 #define SD_DLL_CTRL                    0xFF180358
 #define SD_ITAP_DLY                    0xFF180314
index 1c1bf32adaae14127d6628e7338f7a1a1080da67..e6caa7c850330dcf5dd335f7861403ae2c43479c 100644 (file)
@@ -6,6 +6,7 @@
 /* FIXME remove this when vivado is fixed */
 #include <asm/io.h>
 #include <common.h>
+#include <linux/delay.h>
 
 #define xil_printf(...)
 
index a2a0d563318ee7bbf783c737b56f353bcada657c..cb72914adb3c112238faf8a5c8b9a2677cbe53d6 100644 (file)
@@ -5,10 +5,13 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <cpu_func.h>
 #include <debug_uart.h>
 #include <env.h>
 #include <init.h>
+#include <log.h>
+#include <net.h>
 #include <sata.h>
 #include <ahci.h>
 #include <scsi.h>
@@ -18,7 +21,9 @@
 #include <asm/arch/hardware.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/psu_init_gpl.h>
+#include <asm/cache.h>
 #include <asm/io.h>
+#include <asm/ptrace.h>
 #include <dm/device.h>
 #include <dm/uclass.h>
 #include <usb.h>
@@ -26,6 +31,9 @@
 #include <zynqmppl.h>
 #include <zynqmp_firmware.h>
 #include <g_dnl.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
+#include <linux/sizes.h>
 #include "../common/board.h"
 
 #include "pm_cfg_obj.h"
@@ -413,7 +421,7 @@ int board_early_init_r(void)
 }
 
 unsigned long do_go_exec(ulong (*entry)(int, char * const []), int argc,
-                        char * const argv[])
+                        char *const argv[])
 {
        int ret = 0;
 
index 1c45ee7196f78b886d6444ef21a117d84eb535e5..5c5a2e93863f2c687ab895de764fd08c4e19f78a 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <fdtdec.h>
+#include <init.h>
 
 int board_init(void)
 {
index 82a3feee69ff6fc14abd17dc52610d7d86555b95..3f71e3da446131c8e499b2d5d4becd9f2b43da9a 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <miiphy.h>
 #include <net.h>
 #include <asm/arch/cpu.h>
index f9be1988f655c22f14bc2ffccdc7eec54a256ea9..153864c58768246dcf17a20db0698587cf7db1b1 100644 (file)
@@ -810,11 +810,13 @@ config CMD_UNLZ4
 config CMD_UNZIP
        bool "unzip"
        default y if CMD_BOOTI
+       select GZIP
        help
          Uncompress a zip-compressed memory region.
 
 config CMD_ZIP
        bool "zip"
+       select GZIP_COMPRESSED
        help
          Compress a memory region with zlib deflate method.
 
index 7c8f2ee8eb3acd29f0f9eeba85a5fe7117b8aaba..6298fcfb6044a9f45a31936fc7034f582f1432d7 100644 (file)
@@ -3,15 +3,18 @@
  * Copyright (C) 2017 The Android Open Source Project
  */
 
+#include <common.h>
 #include <android_ab.h>
 #include <command.h>
+#include <env.h>
+#include <part.h>
 
-static int do_ab_select(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_ab_select(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        int ret;
        struct blk_desc *dev_desc;
-       disk_partition_t part_info;
+       struct disk_partition part_info;
        char slot[2];
 
        if (argc != 4)
index 670bcb3aaa8ccddf2f07bbfaca0f17a41750e5fd..40e8978f152ea8c6962a5e09c4be4d9a4d06447c 100644 (file)
@@ -6,6 +6,8 @@
 
 #include <android_image.h>
 #include <common.h>
+#include <command.h>
+#include <image.h>
 #include <mapmem.h>
 
 #define abootimg_addr() \
@@ -14,7 +16,7 @@
 /* Please use abootimg_addr() macro to obtain the boot image address */
 static ulong _abootimg_addr = -1;
 
-static int abootimg_get_ver(int argc, char * const argv[])
+static int abootimg_get_ver(int argc, char *const argv[])
 {
        const struct andr_img_hdr *hdr;
        int res = CMD_RET_SUCCESS;
@@ -39,7 +41,7 @@ exit:
        return res;
 }
 
-static int abootimg_get_recovery_dtbo(int argc, char * const argv[])
+static int abootimg_get_recovery_dtbo(int argc, char *const argv[])
 {
        ulong addr;
        u32 size;
@@ -61,7 +63,7 @@ static int abootimg_get_recovery_dtbo(int argc, char * const argv[])
        return CMD_RET_SUCCESS;
 }
 
-static int abootimg_get_dtb_load_addr(int argc, char * const argv[])
+static int abootimg_get_dtb_load_addr(int argc, char *const argv[])
 {
        const struct andr_img_hdr *hdr;
        int res = CMD_RET_SUCCESS;
@@ -92,7 +94,7 @@ exit:
        return res;
 }
 
-static int abootimg_get_dtb_by_index(int argc, char * const argv[])
+static int abootimg_get_dtb_by_index(int argc, char *const argv[])
 {
        const char *index_str;
        u32 num;
@@ -139,7 +141,7 @@ static int abootimg_get_dtb_by_index(int argc, char * const argv[])
        return CMD_RET_SUCCESS;
 }
 
-static int abootimg_get_dtb(int argc, char * const argv[])
+static int abootimg_get_dtb(int argc, char *const argv[])
 {
        if (argc < 1)
                return CMD_RET_USAGE;
@@ -150,8 +152,8 @@ static int abootimg_get_dtb(int argc, char * const argv[])
        return CMD_RET_USAGE;
 }
 
-static int do_abootimg_addr(cmd_tbl_t *cmdtp, int flag, int argc,
-                           char * const argv[])
+static int do_abootimg_addr(struct cmd_tbl *cmdtp, int flag, int argc,
+                           char *const argv[])
 {
        char *endp;
        ulong img_addr;
@@ -169,8 +171,8 @@ static int do_abootimg_addr(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_SUCCESS;
 }
 
-static int do_abootimg_get(cmd_tbl_t *cmdtp, int flag, int argc,
-                          char * const argv[])
+static int do_abootimg_get(struct cmd_tbl *cmdtp, int flag, int argc,
+                          char *const argv[])
 {
        const char *param;
 
@@ -192,8 +194,8 @@ static int do_abootimg_get(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_USAGE;
 }
 
-static int do_abootimg_dump(cmd_tbl_t *cmdtp, int flag, int argc,
-                           char * const argv[])
+static int do_abootimg_dump(struct cmd_tbl *cmdtp, int flag, int argc,
+                           char *const argv[])
 {
        if (argc != 2)
                return CMD_RET_USAGE;
@@ -208,16 +210,16 @@ static int do_abootimg_dump(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_SUCCESS;
 }
 
-static cmd_tbl_t cmd_abootimg_sub[] = {
+static struct cmd_tbl cmd_abootimg_sub[] = {
        U_BOOT_CMD_MKENT(addr, 2, 1, do_abootimg_addr, "", ""),
        U_BOOT_CMD_MKENT(dump, 2, 1, do_abootimg_dump, "", ""),
        U_BOOT_CMD_MKENT(get, 5, 1, do_abootimg_get, "", ""),
 };
 
-static int do_abootimg(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+static int do_abootimg(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
-       cmd_tbl_t *cp;
+       struct cmd_tbl *cp;
 
        cp = find_cmd_tbl(argv[1], cmd_abootimg_sub,
                          ARRAY_SIZE(cmd_abootimg_sub));
index 203bd93bd5db2fac1ca526188a97e6986ac39c5c..e9a9161a9131928406586b6b83b30bb131258492 100644 (file)
@@ -137,7 +137,7 @@ static int list_rsdp(struct acpi_rsdp *rsdp)
        return 0;
 }
 
-static int do_acpi_list(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_acpi_list(struct cmd_tbl *cmdtp, int flag, int argc,
                        char *const argv[])
 {
        struct acpi_rsdp *rsdp;
@@ -153,7 +153,7 @@ static int do_acpi_list(cmd_tbl_t *cmdtp, int flag, int argc,
        return 0;
 }
 
-static int do_acpi_dump(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_acpi_dump(struct cmd_tbl *cmdtp, int flag, int argc,
                        char *const argv[])
 {
        const char *name;
index 381961cf51a41f2959c8148a1fb21bb169b50f04..16f914a030e17674469cbf624f01d2f816b181c2 100644 (file)
--- a/cmd/adc.c
+++ b/cmd/adc.c
@@ -8,7 +8,7 @@
 #include <dm.h>
 #include <adc.h>
 
-static int do_adc_list(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_adc_list(struct cmd_tbl *cmdtp, int flag, int argc,
                       char *const argv[])
 {
        struct udevice *dev;
@@ -31,7 +31,7 @@ static int do_adc_list(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_SUCCESS;
 }
 
-static int do_adc_info(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_adc_info(struct cmd_tbl *cmdtp, int flag, int argc,
                       char *const argv[])
 {
        struct udevice *dev;
@@ -68,7 +68,7 @@ static int do_adc_info(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_SUCCESS;
 }
 
-static int do_adc_single(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_adc_single(struct cmd_tbl *cmdtp, int flag, int argc,
                         char *const argv[])
 {
        struct udevice *dev;
@@ -95,7 +95,7 @@ static int do_adc_single(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_SUCCESS;
 }
 
-static int do_adc_scan(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_adc_scan(struct cmd_tbl *cmdtp, int flag, int argc,
                       char *const argv[])
 {
        struct adc_channel ch[ADC_MAX_CHANNEL];
index 60bb01c3498a807092007fe7807a92261d511dff..aa943007f350f7eb3c4dc4bb261ba7355943a851 100644 (file)
@@ -5,6 +5,7 @@
  * Eugeniu Rosca <rosca.eugeniu@gmail.com>
  */
 
+#include <command.h>
 #include <env.h>
 #include <image-android-dt.h>
 #include <common.h>
@@ -17,8 +18,8 @@
  */
 static ulong working_img;
 
-static int do_adtimg_addr(cmd_tbl_t *cmdtp, int flag, int argc,
-                         char * const argv[])
+static int do_adtimg_addr(struct cmd_tbl *cmdtp, int flag, int argc,
+                         char *const argv[])
 {
        char *endp;
        ulong hdr_addr;
@@ -56,8 +57,8 @@ static int adtimg_check_working_img(void)
        return CMD_RET_SUCCESS;
 }
 
-static int do_adtimg_dump(cmd_tbl_t *cmdtp, int flag, int argc,
-                         char * const argv[])
+static int do_adtimg_dump(struct cmd_tbl *cmdtp, int flag, int argc,
+                         char *const argv[])
 {
        if (argc != 1)
                return CMD_RET_USAGE;
@@ -99,7 +100,7 @@ static int adtimg_getopt_u32(char * const opt, char * const name, u32 *optval)
        return CMD_RET_SUCCESS;
 }
 
-static int adtimg_getopt_index(int argc, char * const argv[], u32 *index,
+static int adtimg_getopt_index(int argc, char *const argv[], u32 *index,
                               char **avar, char **svar)
 {
        int ret;
@@ -124,7 +125,7 @@ static int adtimg_getopt_index(int argc, char * const argv[], u32 *index,
        return CMD_RET_SUCCESS;
 }
 
-static int adtimg_get_dt_by_index(int argc, char * const argv[])
+static int adtimg_get_dt_by_index(int argc, char *const argv[])
 {
        ulong addr;
        u32 index, size;
@@ -163,7 +164,7 @@ static int adtimg_get_dt_by_index(int argc, char * const argv[])
        return CMD_RET_SUCCESS;
 }
 
-static int adtimg_get_dt(int argc, char * const argv[])
+static int adtimg_get_dt(int argc, char *const argv[])
 {
        if (argc < 2) {
                printf("Error: No options passed to '%s'\n", argv[0]);
@@ -181,8 +182,8 @@ static int adtimg_get_dt(int argc, char * const argv[])
        return CMD_RET_FAILURE;
 }
 
-static int do_adtimg_get(cmd_tbl_t *cmdtp, int flag, int argc,
-                        char * const argv[])
+static int do_adtimg_get(struct cmd_tbl *cmdtp, int flag, int argc,
+                        char *const argv[])
 {
        if (argc < 2) {
                printf("Error: No arguments passed to '%s'\n", argv[0]);
@@ -203,15 +204,16 @@ static int do_adtimg_get(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_FAILURE;
 }
 
-static cmd_tbl_t cmd_adtimg_sub[] = {
+static struct cmd_tbl cmd_adtimg_sub[] = {
        U_BOOT_CMD_MKENT(addr, CONFIG_SYS_MAXARGS, 1, do_adtimg_addr, "", ""),
        U_BOOT_CMD_MKENT(dump, CONFIG_SYS_MAXARGS, 1, do_adtimg_dump, "", ""),
        U_BOOT_CMD_MKENT(get, CONFIG_SYS_MAXARGS, 1, do_adtimg_get, "", ""),
 };
 
-static int do_adtimg(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_adtimg(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
-       cmd_tbl_t *cp;
+       struct cmd_tbl *cp;
 
        cp = find_cmd_tbl(argv[1], cmd_adtimg_sub, ARRAY_SIZE(cmd_adtimg_sub));
 
index 8c5b42fd2c4a261e92d461087b677e73eb490713..4c0dad99326abd9160360e22d8c79d1d7f240456 100644 (file)
--- a/cmd/aes.c
+++ b/cmd/aes.c
@@ -35,7 +35,7 @@ u32 aes_get_key_len(char *command)
  * Returns zero on success, CMD_RET_USAGE in case of misuse and negative
  * on error.
  */
-static int do_aes(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+static int do_aes(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        uint32_t key_addr, iv_addr, src_addr, dst_addr, len;
        uint8_t *key_ptr, *iv_ptr, *src_ptr, *dst_ptr;
index 33bc75976fad000e923f9e24fd9e65877b7dd94a..522f6dff53f266d31ee267b3af1b0dc042718b5a 100644 (file)
@@ -8,8 +8,8 @@
 #include <common.h>
 #include <command.h>
 
-static int do_unaligned(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_unaligned(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        /*
         * The LDRD instruction requires the data source to be four byte aligned
@@ -23,15 +23,15 @@ static int do_unaligned(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_FAILURE;
 }
 
-static int do_breakpoint(cmd_tbl_t *cmdtp, int flag, int argc,
-                        char * const argv[])
+static int do_breakpoint(struct cmd_tbl *cmdtp, int flag, int argc,
+                        char *const argv[])
 {
        asm volatile ("BKPT #123\n");
        return CMD_RET_FAILURE;
 }
 
-static int do_undefined(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_undefined(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        /*
         * 0xe7f...f.   is undefined in ARM mode
@@ -41,7 +41,7 @@ static int do_undefined(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_FAILURE;
 }
 
-static cmd_tbl_t cmd_sub[] = {
+static struct cmd_tbl cmd_sub[] = {
        U_BOOT_CMD_MKENT(breakpoint, CONFIG_SYS_MAXARGS, 1, do_breakpoint,
                         "", ""),
        U_BOOT_CMD_MKENT(unaligned, CONFIG_SYS_MAXARGS, 1, do_unaligned,
index a363818532cf25dc327aa9e46c86a41bd1945f22..d5de50a08030dd14e2a70f0bd4d0607c87304187 100644 (file)
@@ -8,8 +8,8 @@
 #include <common.h>
 #include <command.h>
 
-static int do_undefined(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_undefined(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        /*
         * 0xe7f...f.   is undefined in ARM mode
@@ -19,7 +19,7 @@ static int do_undefined(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_FAILURE;
 }
 
-static cmd_tbl_t cmd_sub[] = {
+static struct cmd_tbl cmd_sub[] = {
        U_BOOT_CMD_MKENT(undefined, CONFIG_SYS_MAXARGS, 1, do_undefined,
                         "", ""),
 };
index 6872b0dde3dc0a79a43bc3249116d8906a9de41c..5e7315eb7cde7644eaa9086bea977898956e8aa5 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <command.h>
 #include <console.h>
+#include <flash.h>
 #include <asm/io.h>
 
 #define MAX_REGIONS 4
@@ -266,7 +267,7 @@ static int exists(const char * const name)
        return CMD_RET_FAILURE;
 }
 
-static int do_afs(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_afs(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int ret = CMD_RET_SUCCESS;
 
index a4de5c40a2dc9f006acaa7aa96e6b70623c56daa..88172a9ee67502bca36afd3bf355818909d47eac 100644 (file)
--- a/cmd/avb.c
+++ b/cmd/avb.c
@@ -15,7 +15,7 @@
 #define AVB_BOOTARGS   "avb_bootargs"
 static struct AvbOps *avb_ops;
 
-int do_avb_init(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_avb_init(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        unsigned long mmc_dev;
 
@@ -36,7 +36,8 @@ int do_avb_init(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return CMD_RET_FAILURE;
 }
 
-int do_avb_read_part(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_avb_read_part(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        const char *part;
        s64 offset;
@@ -68,7 +69,7 @@ int do_avb_read_part(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return CMD_RET_FAILURE;
 }
 
-int do_avb_read_part_hex(cmd_tbl_t *cmdtp, int flag, int argc,
+int do_avb_read_part_hex(struct cmd_tbl *cmdtp, int flag, int argc,
                         char *const argv[])
 {
        const char *part;
@@ -114,7 +115,8 @@ int do_avb_read_part_hex(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_FAILURE;
 }
 
-int do_avb_write_part(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_avb_write_part(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        const char *part;
        s64 offset;
@@ -145,7 +147,8 @@ int do_avb_write_part(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return CMD_RET_FAILURE;
 }
 
-int do_avb_read_rb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_avb_read_rb(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        size_t index;
        u64 rb_idx;
@@ -171,7 +174,8 @@ int do_avb_read_rb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return CMD_RET_FAILURE;
 }
 
-int do_avb_write_rb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_avb_write_rb(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[])
 {
        size_t index;
        u64 rb_idx;
@@ -196,8 +200,8 @@ int do_avb_write_rb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return CMD_RET_FAILURE;
 }
 
-int do_avb_get_uuid(cmd_tbl_t *cmdtp, int flag,
-                   int argc, char * const argv[])
+int do_avb_get_uuid(struct cmd_tbl *cmdtp, int flag,
+                   int argc, char *const argv[])
 {
        const char *part;
        char buffer[UUID_STR_LEN + 1];
@@ -224,7 +228,7 @@ int do_avb_get_uuid(cmd_tbl_t *cmdtp, int flag,
        return CMD_RET_FAILURE;
 }
 
-int do_avb_verify_part(cmd_tbl_t *cmdtp, int flag,
+int do_avb_verify_part(struct cmd_tbl *cmdtp, int flag,
                       int argc, char *const argv[])
 {
        const char * const requested_partitions[] = {"boot", NULL};
@@ -312,11 +316,14 @@ int do_avb_verify_part(cmd_tbl_t *cmdtp, int flag,
                printf("Unknown error occurred\n");
        }
 
+       if (out_data)
+               avb_slot_verify_data_free(out_data);
+
        return res;
 }
 
-int do_avb_is_unlocked(cmd_tbl_t *cmdtp, int flag,
-                      int argc, char * const argv[])
+int do_avb_is_unlocked(struct cmd_tbl *cmdtp, int flag,
+                      int argc, char *const argv[])
 {
        bool unlock;
 
@@ -341,8 +348,8 @@ int do_avb_is_unlocked(cmd_tbl_t *cmdtp, int flag,
        return CMD_RET_FAILURE;
 }
 
-int do_avb_read_pvalue(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+int do_avb_read_pvalue(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        const char *name;
        size_t bytes;
@@ -382,8 +389,8 @@ int do_avb_read_pvalue(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_FAILURE;
 }
 
-int do_avb_write_pvalue(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+int do_avb_write_pvalue(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        const char *name;
        const char *value;
@@ -411,7 +418,7 @@ int do_avb_write_pvalue(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_FAILURE;
 }
 
-static cmd_tbl_t cmd_avb[] = {
+static struct cmd_tbl cmd_avb[] = {
        U_BOOT_CMD_MKENT(init, 2, 0, do_avb_init, "", ""),
        U_BOOT_CMD_MKENT(read_rb, 2, 0, do_avb_read_rb, "", ""),
        U_BOOT_CMD_MKENT(write_rb, 3, 0, do_avb_write_rb, "", ""),
@@ -427,9 +434,9 @@ static cmd_tbl_t cmd_avb[] = {
 #endif
 };
 
-static int do_avb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_avb(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
-       cmd_tbl_t *cp;
+       struct cmd_tbl *cp;
 
        cp = find_cmd_tbl(argv[1], cmd_avb, ARRAY_SIZE(cmd_avb));
 
index 588098fddd4ae71a7e3c257a4bb3119e2e17ca74..c9d53c049e821284d5b35456ed6741cc7e724cb3 100644 (file)
--- a/cmd/axi.c
+++ b/cmd/axi.c
@@ -14,6 +14,7 @@
 #include <command.h>
 #include <console.h>
 #include <dm.h>
+#include <log.h>
 
 /* Currently selected AXI bus device */
 static struct udevice *axi_cur_bus;
@@ -96,8 +97,8 @@ static int axi_get_cur_bus(struct udevice **busp)
  * Command handlers
  */
 
-static int do_axi_show_bus(cmd_tbl_t *cmdtp, int flag, int argc,
-                          char * const argv[])
+static int do_axi_show_bus(struct cmd_tbl *cmdtp, int flag, int argc,
+                          char *const argv[])
 {
        struct udevice *dummy;
 
@@ -135,8 +136,8 @@ static int do_axi_show_bus(cmd_tbl_t *cmdtp, int flag, int argc,
        return 0;
 }
 
-static int do_axi_bus_num(cmd_tbl_t *cmdtp, int flag, int argc,
-                         char * const argv[])
+static int do_axi_bus_num(struct cmd_tbl *cmdtp, int flag, int argc,
+                         char *const argv[])
 {
        int ret = 0;
        int bus_no;
@@ -163,7 +164,8 @@ static int do_axi_bus_num(cmd_tbl_t *cmdtp, int flag, int argc,
        return ret ? CMD_RET_FAILURE : 0;
 }
 
-static int do_axi_md(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_axi_md(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        /* Print that many bytes per line */
        const uint DISP_LINE_LEN = 16;
@@ -261,7 +263,8 @@ static int do_axi_md(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return 0;
 }
 
-static int do_axi_mw(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_axi_mw(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        u32 writeval;
        ulong addr, count, size;
@@ -312,17 +315,17 @@ static int do_axi_mw(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return 0;
 }
 
-static cmd_tbl_t cmd_axi_sub[] = {
+static struct cmd_tbl cmd_axi_sub[] = {
        U_BOOT_CMD_MKENT(bus, 1, 1, do_axi_show_bus, "", ""),
        U_BOOT_CMD_MKENT(dev, 1, 1, do_axi_bus_num, "", ""),
        U_BOOT_CMD_MKENT(md, 4, 1, do_axi_md, "", ""),
        U_BOOT_CMD_MKENT(mw, 5, 1, do_axi_mw, "", ""),
 };
 
-static int do_ihs_axi(cmd_tbl_t *cmdtp, int flag, int argc,
-                     char * const argv[])
+static int do_ihs_axi(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
-       cmd_tbl_t *c;
+       struct cmd_tbl *c;
 
        if (argc < 2)
                return CMD_RET_USAGE;
index 9626f2c69e345c984c83a730fdae1ba3bd11024d..e03218066bf22794342a1daa827b5fd80623beb3 100644 (file)
--- a/cmd/bcb.c
+++ b/cmd/bcb.c
@@ -8,6 +8,8 @@
 #include <android_bootloader_message.h>
 #include <command.h>
 #include <common.h>
+#include <log.h>
+#include <part.h>
 
 enum bcb_cmd {
        BCB_CMD_LOAD,
@@ -108,11 +110,11 @@ static int bcb_field_get(char *name, char **fieldp, int *sizep)
        return 0;
 }
 
-static int do_bcb_load(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+static int do_bcb_load(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        struct blk_desc *desc;
-       disk_partition_t info;
+       struct disk_partition info;
        u64 cnt;
        char *endp;
        int part, ret;
@@ -161,8 +163,8 @@ err:
        return CMD_RET_FAILURE;
 }
 
-static int do_bcb_set(cmd_tbl_t *cmdtp, int flag, int argc,
-                     char * const argv[])
+static int do_bcb_set(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        int size, len;
        char *field, *str, *found;
@@ -188,8 +190,8 @@ static int do_bcb_set(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_SUCCESS;
 }
 
-static int do_bcb_clear(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_bcb_clear(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        int size;
        char *field;
@@ -207,8 +209,8 @@ static int do_bcb_clear(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_SUCCESS;
 }
 
-static int do_bcb_test(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+static int do_bcb_test(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        int size;
        char *field;
@@ -234,8 +236,8 @@ static int do_bcb_test(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_FAILURE;
 }
 
-static int do_bcb_dump(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+static int do_bcb_dump(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        int size;
        char *field;
@@ -248,11 +250,11 @@ static int do_bcb_dump(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_SUCCESS;
 }
 
-static int do_bcb_store(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_bcb_store(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        struct blk_desc *desc;
-       disk_partition_t info;
+       struct disk_partition info;
        u64 cnt;
        int ret;
 
@@ -280,7 +282,7 @@ err:
        return CMD_RET_FAILURE;
 }
 
-static cmd_tbl_t cmd_bcb_sub[] = {
+static struct cmd_tbl cmd_bcb_sub[] = {
        U_BOOT_CMD_MKENT(load, CONFIG_SYS_MAXARGS, 1, do_bcb_load, "", ""),
        U_BOOT_CMD_MKENT(set, CONFIG_SYS_MAXARGS, 1, do_bcb_set, "", ""),
        U_BOOT_CMD_MKENT(clear, CONFIG_SYS_MAXARGS, 1, do_bcb_clear, "", ""),
@@ -289,9 +291,9 @@ static cmd_tbl_t cmd_bcb_sub[] = {
        U_BOOT_CMD_MKENT(store, CONFIG_SYS_MAXARGS, 1, do_bcb_store, "", ""),
 };
 
-static int do_bcb(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+static int do_bcb(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
-       cmd_tbl_t *c;
+       struct cmd_tbl *c;
 
        if (argc < 2)
                return CMD_RET_USAGE;
index 9edcf8d74ebb583b9a3ba7c8bf74c443bb550fa0..dba552b03fbd765ba766830985b246c3a1a19222 100644 (file)
@@ -10,7 +10,9 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
+#include <net.h>
 #include <vsprintf.h>
+#include <asm/cache.h>
 #include <linux/compiler.h>
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -175,7 +177,7 @@ void __weak board_detail(void)
        /* Please define board_detail() for your platform */
 }
 
-int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        bd_t *bd = gd->bd;
 
@@ -220,7 +222,7 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
 #elif defined(CONFIG_NIOS2)
 
-int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        bd_t *bd = gd->bd;
 
@@ -241,7 +243,7 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
 #elif defined(CONFIG_MICROBLAZE)
 
-int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        bd_t *bd = gd->bd;
 
@@ -267,7 +269,7 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
 #elif defined(CONFIG_M68K)
 
-int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        bd_t *bd = gd->bd;
 
@@ -299,7 +301,7 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
 #elif defined(CONFIG_MIPS)
 
-int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        print_std_bdinfo(gd->bd);
        print_num("relocaddr", gd->relocaddr);
@@ -311,8 +313,8 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
 #elif defined(CONFIG_ARM)
 
-static int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        bd_t *bd = gd->bd;
 
@@ -372,7 +374,7 @@ static int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc,
 
 #elif defined(CONFIG_SH)
 
-int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        bd_t *bd = gd->bd;
 
@@ -387,7 +389,7 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
 #elif defined(CONFIG_X86)
 
-int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        bd_t *bd = gd->bd;
 
@@ -409,7 +411,7 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
 #elif defined(CONFIG_SANDBOX)
 
-int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        bd_t *bd = gd->bd;
 
@@ -427,7 +429,7 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
 #elif defined(CONFIG_NDS32)
 
-int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        bd_t *bd = gd->bd;
 
@@ -443,7 +445,7 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
 #elif defined(CONFIG_RISCV)
 
-int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        bd_t *bd = gd->bd;
 
@@ -460,7 +462,7 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
 #elif defined(CONFIG_ARC)
 
-int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        bd_t *bd = gd->bd;
 
@@ -474,7 +476,7 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
 #elif defined(CONFIG_XTENSA)
 
-int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        print_std_bdinfo(gd->bd);
        return 0;
index d3e31212eab0acaa9537b085e8fb108ada788d2a..81ce2564805d1c59a8da51dff3b3578b9352de49 100644 (file)
@@ -6,6 +6,7 @@
 #include <cli.h>
 #include <command.h>
 #include <console.h>
+#include <asm/ptrace.h>
 #include <linux/ctype.h>
 #include <net.h>
 #include <bedbug/type.h>
@@ -56,7 +57,8 @@ int bedbug_init(void)
  * Entry point from the interpreter to the disassembler.  Repeated calls
  * will resume from the last disassembled address.
  * ====================================================================== */
-int do_bedbug_dis (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+int do_bedbug_dis(struct cmd_tbl *cmdtp, int flag, int argc,
+                 char *const argv[])
 {
        ulong addr;             /* Address to start disassembly from    */
        ulong len;              /* # of instructions to disassemble     */
@@ -96,7 +98,8 @@ U_BOOT_CMD (ds, 3, 1, do_bedbug_dis,
  * instructions in consecutive memory locations until a '.' (period) is
  * entered on a line by itself.
  * ====================================================================== */
-int do_bedbug_asm (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+int do_bedbug_asm(struct cmd_tbl *cmdtp, int flag, int argc,
+                 char *const argv[])
 {
        long mem_addr;          /* Address to assemble into     */
        unsigned long instr;    /* Machine code for text        */
@@ -146,7 +149,8 @@ U_BOOT_CMD (as, 2, 0, do_bedbug_asm,
  * CPU-specific break point set routine.
  * ====================================================================== */
 
-int do_bedbug_break (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+int do_bedbug_break(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[])
 {
        /* -------------------------------------------------- */
        if (bug_ctx.do_break)
@@ -242,7 +246,8 @@ void bedbug_main_loop (unsigned long addr, struct pt_regs *regs)
  * stopped flag in the context so that the breakpoint routine will
  * return.
  * ====================================================================== */
-int do_bedbug_continue (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+int do_bedbug_continue(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        /* -------------------------------------------------- */
 
@@ -265,7 +270,8 @@ U_BOOT_CMD (continue, 1, 0, do_bedbug_continue,
  * the address passes control to the CPU-specific set breakpoint routine
  * for the current breakpoint number.
  * ====================================================================== */
-int do_bedbug_step (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+int do_bedbug_step(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        unsigned long addr;     /* Address to stop at */
 
@@ -296,7 +302,8 @@ U_BOOT_CMD (step, 1, 1, do_bedbug_step,
  * the address passes control to the CPU-specific set breakpoint routine
  * for the current breakpoint number.
  * ====================================================================== */
-int do_bedbug_next (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+int do_bedbug_next(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        unsigned long addr;     /* Address to stop at */
 
@@ -325,7 +332,8 @@ U_BOOT_CMD (next, 1, 1, do_bedbug_next,
  * Interpreter command to print the current stack.  This assumes an EABI
  * architecture, so it starts with GPR R1 and works back up the stack.
  * ====================================================================== */
-int do_bedbug_stack (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+int do_bedbug_stack(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[])
 {
        unsigned long sp;       /* Stack pointer                */
        unsigned long func;     /* LR from stack                */
@@ -370,7 +378,8 @@ U_BOOT_CMD (where, 1, 1, do_bedbug_stack,
  * Interpreter command to dump the registers.  Calls the CPU-specific
  * show registers routine.
  * ====================================================================== */
-int do_bedbug_rdump (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+int do_bedbug_rdump(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[])
 {
        /* -------------------------------------------------- */
 
index 44a5f17f0da0aece2f52109b5289bfe4fc2a3236..068b1399ab1dc70b9417e085b3f1e23a339a446b 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <dm.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
@@ -194,8 +195,8 @@ static int unbind_by_node_path(const char *path)
        return 0;
 }
 
-static int do_bind_unbind(cmd_tbl_t *cmdtp, int flag, int argc,
-                         char * const argv[])
+static int do_bind_unbind(struct cmd_tbl *cmdtp, int flag, int argc,
+                         char *const argv[])
 {
        int ret = 0;
        bool bind;
index 6d2df5f3dd4fafc9a865f504038e38a36b9b9545..c85cb51568da803f04ccfd4923b55873242c5ebd 100644 (file)
@@ -64,7 +64,8 @@ void write_to_mem(char *varname, u8 *result, ulong len)
        unmap_sysmem(buf);
 }
 
-static int do_binop(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_binop(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[])
 {
        ulong len;
        u8 *result, *src1, *src2;
index cc6e161ba0aebeef3675a0a1cf9f67629695db78..87f94b5abbfce8c032f8f21b2053738d91be9155 100644 (file)
@@ -10,8 +10,9 @@
 
 #include <common.h>
 #include <blk.h>
+#include <command.h>
 
-int blk_common_cmd(int argc, char * const argv[], enum if_type if_type,
+int blk_common_cmd(int argc, char *const argv[], enum if_type if_type,
                   int *cur_devnump)
 {
        const char *if_name = blk_get_if_type_name(if_type);
index 2cc65a9ee73afd7803b246b69e9a736713eebedd..25f252e455ed95a761418c452b9f9cde53e95d9a 100644 (file)
@@ -4,13 +4,14 @@
  * Author: Eric Nelson<eric@nelint.com>
  *
  */
+#include <command.h>
 #include <config.h>
 #include <common.h>
 #include <malloc.h>
 #include <part.h>
 
-static int blkc_show(cmd_tbl_t *cmdtp, int flag,
-                    int argc, char * const argv[])
+static int blkc_show(struct cmd_tbl *cmdtp, int flag,
+                    int argc, char *const argv[])
 {
        struct block_cache_stats stats;
        blkcache_stats(&stats);
@@ -25,8 +26,8 @@ static int blkc_show(cmd_tbl_t *cmdtp, int flag,
        return 0;
 }
 
-static int blkc_configure(cmd_tbl_t *cmdtp, int flag,
-                         int argc, char * const argv[])
+static int blkc_configure(struct cmd_tbl *cmdtp, int flag,
+                         int argc, char *const argv[])
 {
        unsigned blocks_per_entry, max_entries;
        if (argc != 3)
@@ -40,7 +41,7 @@ static int blkc_configure(cmd_tbl_t *cmdtp, int flag,
        return 0;
 }
 
-static cmd_tbl_t cmd_blkc_sub[] = {
+static struct cmd_tbl cmd_blkc_sub[] = {
        U_BOOT_CMD_MKENT(show, 0, 0, blkc_show, "", ""),
        U_BOOT_CMD_MKENT(configure, 3, 0, blkc_configure, "", ""),
 };
@@ -55,10 +56,10 @@ static __maybe_unused void blkc_reloc(void)
        };
 }
 
-static int do_blkcache(cmd_tbl_t *cmdtp, int flag,
-                      int argc, char * const argv[])
+static int do_blkcache(struct cmd_tbl *cmdtp, int flag,
+                      int argc, char *const argv[])
 {
-       cmd_tbl_t *c;
+       struct cmd_tbl *c;
 
 #ifdef CONFIG_NEEDS_MANUAL_RELOC
        blkc_reloc();
index 80478b8802daa24d56c7f81793fa1d082207c8b1..c80e6977b4bffebb014821f24c129763e83f1daf 100644 (file)
@@ -48,7 +48,8 @@ __weak int blob_encap(u8 *key_mod, u8 *src, u8 *dst, u32 len)
  * Returns zero on success, CMD_RET_USAGE in case of misuse and negative
  * on error.
  */
-static int do_blob(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+static int do_blob(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        ulong key_addr, src_addr, dst_addr, len;
        uint8_t *km_ptr, *src_ptr, *dst_ptr;
index edf4f564266bf9eddbe068c6765ad12ede49fb22..6040fa5d95d62f0dcb0f32a66eadb07328ad84f2 100644 (file)
--- a/cmd/bmp.c
+++ b/cmd/bmp.c
@@ -15,6 +15,7 @@
 #include <gzip.h>
 #include <image.h>
 #include <lcd.h>
+#include <log.h>
 #include <malloc.h>
 #include <mapmem.h>
 #include <splash.h>
@@ -91,7 +92,8 @@ struct bmp_image *gunzip_bmp(unsigned long addr, unsigned long *lenp,
 }
 #endif
 
-static int do_bmp_info(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+static int do_bmp_info(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        ulong addr;
 
@@ -109,7 +111,8 @@ static int do_bmp_info(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[
        return (bmp_info(addr));
 }
 
-static int do_bmp_display(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+static int do_bmp_display(struct cmd_tbl *cmdtp, int flag, int argc,
+                         char *const argv[])
 {
        ulong addr;
        int x = 0, y = 0;
@@ -141,7 +144,7 @@ static int do_bmp_display(cmd_tbl_t * cmdtp, int flag, int argc, char * const ar
         return (bmp_display(addr, x, y));
 }
 
-static cmd_tbl_t cmd_bmp_sub[] = {
+static struct cmd_tbl cmd_bmp_sub[] = {
        U_BOOT_CMD_MKENT(info, 3, 0, do_bmp_info, "", ""),
        U_BOOT_CMD_MKENT(display, 5, 0, do_bmp_display, "", ""),
 };
@@ -162,9 +165,9 @@ void bmp_reloc(void) {
  * Return:      None
  *
  */
-static int do_bmp(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_bmp(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
-       cmd_tbl_t *c;
+       struct cmd_tbl *c;
 
        /* Strip off leading 'bmp' command argument */
        argc--;
index 9150fce80b412d6faa6301e41a0b4f23e2bd263d..36aba22b301b57fcdc60b896c4144595cd39fd66 100644 (file)
 /* Allow ports to override the default behavior */
 __attribute__((weak))
 unsigned long do_go_exec(ulong (*entry)(int, char * const []), int argc,
-                                char * const argv[])
+                                char *const argv[])
 {
        return entry (argc, argv);
 }
 
-static int do_go(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_go(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        ulong   addr, rc;
        int     rcode = 0;
index c358418ebe5fcabbd2bdc6cdffbea8958b500184..654bbb805c1cd35ab00668336865287fc3d1d2ed 100644 (file)
@@ -4,15 +4,15 @@
 #include <command.h>
 #include <bootcount.h>
 
-static int do_bootcount_print(cmd_tbl_t *cmdtp, int flag, int argc,
-                             char * const argv[])
+static int do_bootcount_print(struct cmd_tbl *cmdtp, int flag, int argc,
+                             char *const argv[])
 {
        printf("%lu\n", bootcount_load());
        return CMD_RET_SUCCESS;
 }
 
-static int do_bootcount_reset(cmd_tbl_t *cmdtp, int flag, int argc,
-                             char * const argv[])
+static int do_bootcount_reset(struct cmd_tbl *cmdtp, int flag, int argc,
+                             char *const argv[])
 {
        /*
         * note that we're explicitly not resetting the environment
@@ -22,15 +22,15 @@ static int do_bootcount_reset(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_SUCCESS;
 }
 
-static cmd_tbl_t bootcount_sub[] = {
+static struct cmd_tbl bootcount_sub[] = {
        U_BOOT_CMD_MKENT(print, 1, 1, do_bootcount_print, "", ""),
        U_BOOT_CMD_MKENT(reset, 1, 1, do_bootcount_reset, "", ""),
 };
 
-static int do_bootcount(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_bootcount(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
-       cmd_tbl_t *cp;
+       struct cmd_tbl *cp;
 
        if (argc < 2)
                return CMD_RET_USAGE;
index 9849eb4f9950da0d0c008d3ec1b14760cfcc71bf..0f6d0f77507ca2b0e577814a830dc4a5b813bce0 100644 (file)
@@ -13,6 +13,7 @@
 #include <efi_selftest.h>
 #include <env.h>
 #include <errno.h>
+#include <image.h>
 #include <malloc.h>
 #include <linux/libfdt.h>
 #include <linux/libfdt_env.h>
@@ -594,7 +595,8 @@ static int do_efi_selftest(void)
  * @argv:      command line arguments
  * Return:     status code
  */
-static int do_bootefi(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_bootefi(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        efi_status_t ret;
        void *fdt;
index 4fff8cfcf69f95440a6ba9bec28f18491bf2bbc0..ae379754943b936821c20612fc1f1c3279abb7ad 100644 (file)
@@ -10,6 +10,7 @@
 #include <image.h>
 #include <irq_func.h>
 #include <lmb.h>
+#include <log.h>
 #include <mapmem.h>
 #include <linux/kernel.h>
 #include <linux/sizes.h>
@@ -18,8 +19,8 @@ DECLARE_GLOBAL_DATA_PTR;
 /*
  * Image booting support
  */
-static int booti_start(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[], bootm_headers_t *images)
+static int booti_start(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[], bootm_headers_t *images)
 {
        int ret;
        ulong ld;
@@ -98,7 +99,7 @@ static int booti_start(cmd_tbl_t *cmdtp, int flag, int argc,
        return 0;
 }
 
-int do_booti(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_booti(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int ret;
 
index 931d53f0c7209c77f4d35ac16c03f86dc75fe72b..d5f877cb545c5651d6e982d7d62a440801cb9079 100644 (file)
@@ -34,12 +34,13 @@ extern flash_info_t flash_info[]; /* info for FLASH chips */
 #endif
 
 #if defined(CONFIG_CMD_IMLS) || defined(CONFIG_CMD_IMLS_NAND)
-static int do_imls(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
+static int do_imls(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[]);
 #endif
 
 /* we overload the cmd field with our state machine info instead of a
  * function pointer */
-static cmd_tbl_t cmd_bootm_sub[] = {
+static struct cmd_tbl cmd_bootm_sub[] = {
        U_BOOT_CMD_MKENT(start, 0, 1, (void *)BOOTM_STATE_START, "", ""),
        U_BOOT_CMD_MKENT(loados, 0, 1, (void *)BOOTM_STATE_LOADOS, "", ""),
 #ifdef CONFIG_SYS_BOOT_RAMDISK_HIGH
@@ -55,12 +56,12 @@ static cmd_tbl_t cmd_bootm_sub[] = {
        U_BOOT_CMD_MKENT(go, 0, 1, (void *)BOOTM_STATE_OS_GO, "", ""),
 };
 
-static int do_bootm_subcommand(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_bootm_subcommand(struct cmd_tbl *cmdtp, int flag, int argc,
+                              char *const argv[])
 {
        int ret = 0;
        long state;
-       cmd_tbl_t *c;
+       struct cmd_tbl *c;
 
        c = find_cmd_tbl(argv[0], &cmd_bootm_sub[0], ARRAY_SIZE(cmd_bootm_sub));
        argc--; argv++;
@@ -89,7 +90,7 @@ static int do_bootm_subcommand(cmd_tbl_t *cmdtp, int flag, int argc,
 /* bootm - boot application image from image in memory */
 /*******************************************************************/
 
-int do_bootm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_bootm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
 #ifdef CONFIG_NEEDS_MANUAL_RELOC
        static int relocated = 0;
@@ -136,7 +137,7 @@ int do_bootm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
                BOOTM_STATE_OS_GO, &images, 1);
 }
 
-int bootm_maybe_autostart(cmd_tbl_t *cmdtp, const char *cmd)
+int bootm_maybe_autostart(struct cmd_tbl *cmdtp, const char *cmd)
 {
        const char *ep = env_get("autostart");
 
@@ -201,7 +202,7 @@ U_BOOT_CMD(
 /* bootd - boot default image */
 /*******************************************************************/
 #if defined(CONFIG_CMD_BOOTD)
-int do_bootd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_bootd(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        return run_command(env_get("bootcmd"), flag);
 }
@@ -226,7 +227,8 @@ U_BOOT_CMD(
 /* iminfo - print header info for a requested image */
 /*******************************************************************/
 #if defined(CONFIG_CMD_IMI)
-static int do_iminfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_iminfo(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        int     arg;
        ulong   addr;
@@ -519,7 +521,8 @@ static int do_imls_nand(void)
 #endif
 
 #if defined(CONFIG_CMD_IMLS) || defined(CONFIG_CMD_IMLS_NAND)
-static int do_imls(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_imls(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        int ret_nor = 0, ret_nand = 0;
 
index 6af0617e653e830bd9b8fd441e29d899f8966725..18efe25751f77fa1490aca63c4346c3201e5aa87 100644 (file)
@@ -7,9 +7,11 @@
 #include <command.h>
 #include <ansi.h>
 #include <env.h>
+#include <log.h>
 #include <menu.h>
 #include <watchdog.h>
 #include <malloc.h>
+#include <linux/delay.h>
 #include <linux/string.h>
 
 /* maximum bootmenu entries */
@@ -482,7 +484,7 @@ int menu_show(int bootdelay)
 }
 #endif
 
-int do_bootmenu(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_bootmenu(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        char *delay_str = NULL;
        int delay = 10;
index ed0b0ff1fc835a03fe46ded5c40fe9c8d7c3fbc4..0e623f216b198fec273155a2ce9ef4aeb64d22dd 100644 (file)
@@ -4,16 +4,18 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
+#include <command.h>
 
-static int do_bootstage_report(cmd_tbl_t *cmdtp, int flag, int argc,
-                              char * const argv[])
+static int do_bootstage_report(struct cmd_tbl *cmdtp, int flag, int argc,
+                              char *const argv[])
 {
        bootstage_report();
 
        return 0;
 }
 
-static int get_base_size(int argc, char * const argv[], ulong *basep,
+static int get_base_size(int argc, char *const argv[], ulong *basep,
                         ulong *sizep)
 {
        char *endp;
@@ -34,8 +36,8 @@ static int get_base_size(int argc, char * const argv[], ulong *basep,
        return 0;
 }
 
-static int do_bootstage_stash(cmd_tbl_t *cmdtp, int flag, int argc,
-                             char * const argv[])
+static int do_bootstage_stash(struct cmd_tbl *cmdtp, int flag, int argc,
+                             char *const argv[])
 {
        ulong base, size;
        int ret;
@@ -57,7 +59,7 @@ static int do_bootstage_stash(cmd_tbl_t *cmdtp, int flag, int argc,
        return 0;
 }
 
-static cmd_tbl_t cmd_bootstage_sub[] = {
+static struct cmd_tbl cmd_bootstage_sub[] = {
        U_BOOT_CMD_MKENT(report, 2, 1, do_bootstage_report, "", ""),
        U_BOOT_CMD_MKENT(stash, 4, 0, do_bootstage_stash, "", ""),
        U_BOOT_CMD_MKENT(unstash, 4, 0, do_bootstage_stash, "", ""),
@@ -66,10 +68,10 @@ static cmd_tbl_t cmd_bootstage_sub[] = {
 /*
  * Process a bootstage sub-command
  */
-static int do_boostage(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+static int do_boostage(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
-       cmd_tbl_t *c;
+       struct cmd_tbl *c;
 
        /* Strip off leading 'bootstage' command argument */
        argc--;
index f14a5fefbfc68725160d8f468debdbe9ff67328c..bc15fd8ec47f1ba72a459fb69530a121e9eb4592 100644 (file)
@@ -10,6 +10,7 @@
 #include <image.h>
 #include <irq_func.h>
 #include <lmb.h>
+#include <log.h>
 #include <linux/compiler.h>
 
 int __weak bootz_setup(ulong image, ulong *start, ulong *end)
@@ -23,8 +24,8 @@ int __weak bootz_setup(ulong image, ulong *start, ulong *end)
 /*
  * zImage booting support
  */
-static int bootz_start(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[], bootm_headers_t *images)
+static int bootz_start(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[], bootm_headers_t *images)
 {
        int ret;
        ulong zi_start, zi_end;
@@ -59,7 +60,7 @@ static int bootz_start(cmd_tbl_t *cmdtp, int flag, int argc,
        return 0;
 }
 
-int do_bootz(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_bootz(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int ret;
 
index faa1239cc887ed7780690be99450248897bc5de3..7e3cbe12cea95c5322ae5e8d6fe58e1093fed2ec 100644 (file)
@@ -8,7 +8,7 @@
 #include <btrfs.h>
 #include <fs.h>
 
-int do_btrsubvol(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_btrsubvol(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        if (argc != 3)
                return CMD_RET_USAGE;
index 7678615dd83164f968e2af95d0f223226e6bc580..b68d45b98bf2dab35f2c2904a8c4d1df6074417a 100644 (file)
@@ -24,7 +24,8 @@ __weak void noncached_set_region(void)
 {
 }
 
-static int do_icache(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_icache(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        switch (argc) {
        case 2:                 /* on / off / flush */
@@ -58,7 +59,8 @@ void __weak flush_dcache_all(void)
        /* please define arch specific flush_dcache_all */
 }
 
-static int do_dcache(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_dcache(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        switch (argc) {
        case 2:                 /* on / off / flush */
index 98e652a4e7bf26b4c58934683a3b142ed5c30af2..8e91d4bb8c2e9db805f535ed10381563b19072c4 100644 (file)
@@ -11,7 +11,7 @@
 #include <env.h>
 #include <cbfs.h>
 
-static int do_cbfs_init(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_cbfs_init(struct cmd_tbl *cmdtp, int flag, int argc,
                        char *const argv[])
 {
        uintptr_t end_of_rom = 0xffffffff;
@@ -45,7 +45,7 @@ U_BOOT_CMD(
        "      CBFS is in. It defaults to 0xFFFFFFFF\n"
 );
 
-static int do_cbfs_fsload(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_cbfs_fsload(struct cmd_tbl *cmdtp, int flag, int argc,
                          char *const argv[])
 {
        const struct cbfs_cachenode *file;
@@ -92,7 +92,7 @@ U_BOOT_CMD(
        "    - load binary file 'filename' from the cbfs to address 'addr'\n"
 );
 
-static int do_cbfs_ls(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_cbfs_ls(struct cmd_tbl *cmdtp, int flag, int argc,
                      char *const argv[])
 {
        const struct cbfs_cachenode *file = file_cbfs_get_first();
@@ -201,7 +201,7 @@ U_BOOT_CMD(
        "    - list the files in the cbfs\n"
 );
 
-static int do_cbfs_fsinfo(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_cbfs_fsinfo(struct cmd_tbl *cmdtp, int flag, int argc,
                          char *const argv[])
 {
        const struct cbfs_header *header = file_cbfs_get_header();
index 74ad8685002461bb431c13dc32e41ef61c976b77..439736d0724e6fc31c47d2f78e0fc898759cef9b 100644 (file)
--- a/cmd/clk.c
+++ b/cmd/clk.c
@@ -72,7 +72,7 @@ int __weak soc_clk_dump(void)
 }
 #endif
 
-static int do_clk_dump(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_clk_dump(struct cmd_tbl *cmdtp, int flag, int argc,
                       char *const argv[])
 {
        int ret;
@@ -86,14 +86,14 @@ static int do_clk_dump(cmd_tbl_t *cmdtp, int flag, int argc,
        return ret;
 }
 
-static cmd_tbl_t cmd_clk_sub[] = {
+static struct cmd_tbl cmd_clk_sub[] = {
        U_BOOT_CMD_MKENT(dump, 1, 1, do_clk_dump, "", ""),
 };
 
-static int do_clk(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_clk(struct cmd_tbl *cmdtp, int flag, int argc,
                  char *const argv[])
 {
-       cmd_tbl_t *c;
+       struct cmd_tbl *c;
 
        if (argc < 2)
                return CMD_RET_USAGE;
index f1ce6e8df1ea61410939ad362966369c48b18f51..eab4e6993bbc9f0a2427e692a4428db976c01d4c 100644 (file)
--- a/cmd/cls.c
+++ b/cmd/cls.c
@@ -11,7 +11,7 @@
 #include <lcd.h>
 #include <video.h>
 
-static int do_video_clear(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_video_clear(struct cmd_tbl *cmdtp, int flag, int argc,
                          char *const argv[])
 {
 #if defined(CONFIG_DM_VIDEO)
index d2810d573b091b827c326248601af942ce071f9f..cf30841a35947e141aa2741a0f6f778cdc82979e 100644 (file)
@@ -11,7 +11,8 @@
 #include "config_data_gz.h"
 #include "config_data_size.h"
 
-static int do_config(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_config(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        char *dst;
        unsigned long len = data_size;
index 85c5422b7eb3e205a0f8332ee452af8952ae21fb..88850db541f08adc41ba18995f69fab74b6e39fc 100644 (file)
@@ -7,9 +7,10 @@
  */
 #include <common.h>
 #include <command.h>
+#include <linux/delay.h>
 
-static int do_conitrace(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_conitrace(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        bool first = true;
 
index 3f1d98b17b0cebac24005e541ffd15e55ec03521..9a1db83c7c3854a968988c0bf5f250689434b7e1 100644 (file)
@@ -12,7 +12,8 @@
 #include <stdio_dev.h>
 
 extern void _do_coninfo (void);
-static int do_coninfo(cmd_tbl_t *cmd, int flag, int argc, char * const argv[])
+static int do_coninfo(struct cmd_tbl *cmd, int flag, int argc,
+                     char *const argv[])
 {
        int l;
        struct list_head *list = stdio_get_list();
index 8c0abc1756244337a0459c21bbe4d76d33368dcf..ff553c16c4e4107125bde4785b8ca906dda59891 100644 (file)
--- a/cmd/cpu.c
+++ b/cmd/cpu.c
@@ -64,7 +64,7 @@ static int print_cpu_list(bool detail)
        return 0;
 }
 
-static int do_cpu_list(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_cpu_list(struct cmd_tbl *cmdtp, int flag, int argc,
                       char *const argv[])
 {
        if (print_cpu_list(false))
@@ -73,7 +73,7 @@ static int do_cpu_list(cmd_tbl_t *cmdtp, int flag, int argc,
        return 0;
 }
 
-static int do_cpu_detail(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_cpu_detail(struct cmd_tbl *cmdtp, int flag, int argc,
                         char *const argv[])
 {
        if (print_cpu_list(true))
@@ -82,7 +82,7 @@ static int do_cpu_detail(cmd_tbl_t *cmdtp, int flag, int argc,
        return 0;
 }
 
-static cmd_tbl_t cmd_cpu_sub[] = {
+static struct cmd_tbl cmd_cpu_sub[] = {
        U_BOOT_CMD_MKENT(list, 2, 1, do_cpu_list, "", ""),
        U_BOOT_CMD_MKENT(detail, 4, 0, do_cpu_detail, "", ""),
 };
@@ -90,10 +90,10 @@ static cmd_tbl_t cmd_cpu_sub[] = {
 /*
  * Process a cpu sub-command
  */
-static int do_cpu(cmd_tbl_t *cmdtp, int flag, int argc,
-                 char * const argv[])
+static int do_cpu(struct cmd_tbl *cmdtp, int flag, int argc,
+                 char *const argv[])
 {
-       cmd_tbl_t *c = NULL;
+       struct cmd_tbl *c = NULL;
 
        /* Strip off leading 'cpu' command argument */
        argc--;
index ad232deae009c2b323b85f5a185a393da5316adf..1aeb56702cad3c9ad9b7f64a693cffab62df8a5c 100644 (file)
@@ -94,7 +94,8 @@ extern int cramfs_info (struct part_info *info);
  * @param argv arguments list
  * @return 0 on success, 1 otherwise
  */
-int do_cramfs_load(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_cramfs_load(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        char *filename;
        int size;
@@ -162,7 +163,7 @@ int do_cramfs_load(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
  * @param argv arguments list
  * @return 0 on success, 1 otherwise
  */
-int do_cramfs_ls(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_cramfs_ls(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        char *filename = "/";
        int ret;
index 9e2f1b06f3ca0e4f91019b1d7d9468f4caf71d62..ce1f59a740c19cd46ec0d76fa0bc02d5f88f894e 100644 (file)
@@ -10,6 +10,8 @@
 #include <command.h>
 #include <cros_ec.h>
 #include <dm.h>
+#include <flash.h>
+#include <log.h>
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
 
@@ -23,7 +25,7 @@ static const char * const ec_current_image_name[] = {"unknown", "RO", "RW"};
  * @param argv List of remaining parameters
  * @return flash region (EC_FLASH_REGION_...) or -1 on error
  */
-static int cros_ec_decode_region(int argc, char * const argv[])
+static int cros_ec_decode_region(int argc, char *const argv[])
 {
        if (argc > 0) {
                if (0 == strcmp(*argv, "rw"))
@@ -50,7 +52,7 @@ static int cros_ec_decode_region(int argc, char * const argv[])
  *     (negative EC_RES_...)
  */
 static int do_read_write(struct udevice *dev, int is_write, int argc,
-                        char * const argv[])
+                        char *const argv[])
 {
        uint32_t offset, size = -1U, region_size;
        unsigned long addr;
@@ -92,7 +94,8 @@ static int do_read_write(struct udevice *dev, int is_write, int argc,
        return 0;
 }
 
-static int do_cros_ec(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_cros_ec(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        struct udevice *dev;
        const char *cmd;
index 9f271b6f611cbd7b18de5fc1e58d077a99fd91b8..73876e9464a341c14bc70fd153f37dc8717f5209 100644 (file)
@@ -9,7 +9,8 @@
 
 static int mmc_nspi (const char *);
 
-int do_dataflash_mmc_mux (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_dataflash_mmc_mux(struct cmd_tbl *cmdtp, int flag, int argc,
+                        char *const argv[])
 {
        switch (argc) {
        case 2:                 /* on / off     */
index 7fa950a902682093bf8d694840c1d740b1c03e11..75a032cd2777d609b4cff5df243ec62c20f7dd2a 100644 (file)
@@ -29,7 +29,8 @@ int mk_date (const char *, struct rtc_time *);
 
 static struct rtc_time default_tm = { 0, 0, 0, 1, 1, 2000, 6, 0, 0 };
 
-static int do_date(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_date(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        struct rtc_time tm;
        int rcode = 0;
index 52c6e7ec15be701bdc21e74cb0f3f3643eeaa55d..9da06f5e4d34c353e5982e105b9e2ead676b2e99 100644 (file)
@@ -7,14 +7,15 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <dm-demo.h>
 #include <mapmem.h>
 #include <asm/io.h>
 
 struct udevice *demo_dev;
 
-static int do_demo_hello(cmd_tbl_t *cmdtp, int flag, int argc,
-                        char * const argv[])
+static int do_demo_hello(struct cmd_tbl *cmdtp, int flag, int argc,
+                        char *const argv[])
 {
        int ch = 0;
 
@@ -24,8 +25,8 @@ static int do_demo_hello(cmd_tbl_t *cmdtp, int flag, int argc,
        return demo_hello(demo_dev, ch);
 }
 
-static int do_demo_status(cmd_tbl_t *cmdtp, int flag, int argc,
-                         char * const argv[])
+static int do_demo_status(struct cmd_tbl *cmdtp, int flag, int argc,
+                         char *const argv[])
 {
        int status;
        int ret;
@@ -39,8 +40,8 @@ static int do_demo_status(cmd_tbl_t *cmdtp, int flag, int argc,
        return 0;
 }
 
-static int do_demo_light(cmd_tbl_t *cmdtp, int flag, int argc,
-                        char * const argv[])
+static int do_demo_light(struct cmd_tbl *cmdtp, int flag, int argc,
+                        char *const argv[])
 {
        int light;
        int ret;
@@ -59,7 +60,7 @@ static int do_demo_light(cmd_tbl_t *cmdtp, int flag, int argc,
        return ret;
 }
 
-int do_demo_list(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_demo_list(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        struct udevice *dev;
        int i, ret;
@@ -78,16 +79,17 @@ int do_demo_list(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return cmd_process_error(cmdtp, ret);
 }
 
-static cmd_tbl_t demo_commands[] = {
+static struct cmd_tbl demo_commands[] = {
        U_BOOT_CMD_MKENT(list, 0, 1, do_demo_list, "", ""),
        U_BOOT_CMD_MKENT(hello, 2, 1, do_demo_hello, "", ""),
        U_BOOT_CMD_MKENT(light, 2, 1, do_demo_light, "", ""),
        U_BOOT_CMD_MKENT(status, 1, 1, do_demo_status, "", ""),
 };
 
-static int do_demo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_demo(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
-       cmd_tbl_t *demo_cmd;
+       struct cmd_tbl *demo_cmd;
        int devnum = 0;
        int ret;
 
index b30f8a566733a0a99b659d8417150de0baa9960d..7310595a02786f5dda6987190ee40941fde2a06c 100644 (file)
--- a/cmd/dfu.c
+++ b/cmd/dfu.c
@@ -11,6 +11,7 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <watchdog.h>
 #include <dfu.h>
 #include <console.h>
@@ -18,7 +19,7 @@
 #include <usb.h>
 #include <net.h>
 
-static int do_dfu(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_dfu(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
 
        if (argc < 2)
index 8d21c7dde8092f713aec34dadcc3826a394eeeaf..f51536dbfaaf84bdfe4639dde9bc6ed77fe44469 100644 (file)
@@ -11,7 +11,7 @@
 #include <command.h>
 #include <post.h>
 
-int do_diag (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+int do_diag(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        unsigned int i;
 
index 15973b7d132e19ee1e07621001057b8547156564..8060e753ebda7bec8d58c4c67c00e8578998cb26 100644 (file)
@@ -4,19 +4,21 @@
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  */
 #include <common.h>
+#include <bootstage.h>
 #include <command.h>
 #include <cpu_func.h>
 #include <image.h>
+#include <log.h>
 #include <part.h>
 
-int common_diskboot(cmd_tbl_t *cmdtp, const char *intf, int argc,
+int common_diskboot(struct cmd_tbl *cmdtp, const char *intf, int argc,
                    char *const argv[])
 {
        __maybe_unused int dev;
        int part;
        ulong addr = CONFIG_SYS_LOAD_ADDR;
        ulong cnt;
-       disk_partition_t info;
+       struct disk_partition info;
 #if defined(CONFIG_LEGACY_IMAGE_FORMAT)
        image_header_t *hdr;
 #endif
index 7a90685f8b66f451d837bcbb52b6fcc21ea92805..4e307ac5245bfe0d8e9122c94abe4d71a5dde5f8 100644 (file)
--- a/cmd/dm.c
+++ b/cmd/dm.c
 #include <dm/root.h>
 #include <dm/util.h>
 
-static int do_dm_dump_all(cmd_tbl_t *cmdtp, int flag, int argc,
-                         char * const argv[])
+static int do_dm_dump_all(struct cmd_tbl *cmdtp, int flag, int argc,
+                         char *const argv[])
 {
        dm_dump_all();
 
        return 0;
 }
 
-static int do_dm_dump_uclass(cmd_tbl_t *cmdtp, int flag, int argc,
-                            char * const argv[])
+static int do_dm_dump_uclass(struct cmd_tbl *cmdtp, int flag, int argc,
+                            char *const argv[])
 {
        dm_dump_uclass();
 
        return 0;
 }
 
-static int do_dm_dump_devres(cmd_tbl_t *cmdtp, int flag, int argc,
-                            char * const argv[])
+static int do_dm_dump_devres(struct cmd_tbl *cmdtp, int flag, int argc,
+                            char *const argv[])
 {
        dm_dump_devres();
 
        return 0;
 }
 
-static int do_dm_dump_drivers(cmd_tbl_t *cmdtp, int flag, int argc,
-                             char * const argv[])
+static int do_dm_dump_drivers(struct cmd_tbl *cmdtp, int flag, int argc,
+                             char *const argv[])
 {
        dm_dump_drivers();
 
        return 0;
 }
 
-static cmd_tbl_t test_commands[] = {
+static struct cmd_tbl test_commands[] = {
        U_BOOT_CMD_MKENT(tree, 0, 1, do_dm_dump_all, "", ""),
        U_BOOT_CMD_MKENT(uclass, 1, 1, do_dm_dump_uclass, "", ""),
        U_BOOT_CMD_MKENT(devres, 1, 1, do_dm_dump_devres, "", ""),
@@ -65,9 +65,9 @@ static __maybe_unused void dm_reloc(void)
        }
 }
 
-static int do_dm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_dm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
-       cmd_tbl_t *test_cmd;
+       struct cmd_tbl *test_cmd;
        int ret;
 
 #ifdef CONFIG_NEEDS_MANUAL_RELOC
index 5b018d9349abfad4aece07df1f97ccbe2c39c678..d02a4cfd586a4317696785ae230e9921d79c4007 100644 (file)
@@ -7,7 +7,8 @@
 #include <common.h>
 #include <command.h>
 
-static int do_echo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_echo(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        int i;
        int putnl = 1;
index 792415ef93b6848b7348611de7da436624127e76..7fa62bba8fc9861565e4d8641192ac98fab7d6d8 100644 (file)
@@ -25,6 +25,7 @@
 #include <eeprom.h>
 #include <i2c.h>
 #include <eeprom_layout.h>
+#include <linux/delay.h>
 
 #ifndef        CONFIG_SYS_I2C_SPEED
 #define        CONFIG_SYS_I2C_SPEED    50000
@@ -237,7 +238,7 @@ static int parse_numeric_param(char *str)
  * @returns:   number of arguments parsed or CMD_RET_USAGE if error
  */
 static int parse_i2c_bus_addr(int *i2c_bus, ulong *i2c_addr, int argc,
-                             char * const argv[], int argc_no_bus_addr)
+                             char *const argv[], int argc_no_bus_addr)
 {
        int argc_no_bus = argc_no_bus_addr + 1;
        int argc_bus_addr = argc_no_bus_addr + 2;
@@ -355,7 +356,7 @@ static int eeprom_execute_command(enum eeprom_action action, int i2c_bus,
 }
 
 #define NEXT_PARAM(argc, index)        { (argc)--; (index)++; }
-int do_eeprom(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_eeprom(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int layout_ver = LAYOUT_VERSION_AUTODETECT;
        enum eeprom_action action = EEPROM_ACTION_INVALID;
index ea239a01f0b1c38e187b22d57a6f7695d36881ef..b3a3bf828215e82a9dd0bcb384f4bada6cb3bfd0 100644 (file)
--- a/cmd/efi.c
+++ b/cmd/efi.c
@@ -8,6 +8,7 @@
 #include <command.h>
 #include <efi.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <sort.h>
 
@@ -43,6 +44,7 @@ static struct attr_info {
        { EFI_MEMORY_NV, "non-volatile" },
        { EFI_MEMORY_MORE_RELIABLE, "higher reliability" },
        { EFI_MEMORY_RO, "read-only" },
+       { EFI_MEMORY_SP, "specific purpose" },
        { EFI_MEMORY_RUNTIME, "needs runtime mapping" }
 };
 
@@ -191,7 +193,8 @@ static void efi_print_mem_table(struct efi_entry_memmap *map,
                printf("*Some areas are merged (use 'all' to see)\n");
 }
 
-static int do_efi_mem(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_efi_mem(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        struct efi_mem_desc *desc;
        struct efi_entry_memmap *map;
@@ -231,13 +234,13 @@ done:
        return ret ? CMD_RET_FAILURE : 0;
 }
 
-static cmd_tbl_t efi_commands[] = {
+static struct cmd_tbl efi_commands[] = {
        U_BOOT_CMD_MKENT(mem, 1, 1, do_efi_mem, "", ""),
 };
 
-static int do_efi(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_efi(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
-       cmd_tbl_t *efi_cmd;
+       struct cmd_tbl *efi_cmd;
        int ret;
 
        if (argc < 2)
index f020d95dbb79ca5622f498e7ce1026f52fab2906..32430e62f0ac90a2475cb7903f64d97b019d083a 100644 (file)
@@ -11,6 +11,7 @@
 #include <efi_loader.h>
 #include <exports.h>
 #include <hexdump.h>
+#include <log.h>
 #include <malloc.h>
 #include <mapmem.h>
 #include <search.h>
@@ -60,8 +61,8 @@ static const char sep[] = "================";
  * Implement efidebug "devices" sub-command.
  * Show all UEFI devices and their information.
  */
-static int do_efi_show_devices(cmd_tbl_t *cmdtp, int flag,
-                              int argc, char * const argv[])
+static int do_efi_show_devices(struct cmd_tbl *cmdtp, int flag,
+                              int argc, char *const argv[])
 {
        efi_handle_t *handles;
        efi_uintn_t num, i;
@@ -139,8 +140,8 @@ static int efi_get_driver_handle_info(efi_handle_t handle, u16 **driver_name,
  * Implement efidebug "drivers" sub-command.
  * Show all UEFI drivers and their information.
  */
-static int do_efi_show_drivers(cmd_tbl_t *cmdtp, int flag,
-                              int argc, char * const argv[])
+static int do_efi_show_drivers(struct cmd_tbl *cmdtp, int flag,
+                              int argc, char *const argv[])
 {
        efi_handle_t *handles;
        efi_uintn_t num, i;
@@ -311,8 +312,8 @@ static const char *get_guid_text(const void *guid)
  * Show all UEFI handles and their information, currently all protocols
  * added to handle.
  */
-static int do_efi_show_handles(cmd_tbl_t *cmdtp, int flag,
-                              int argc, char * const argv[])
+static int do_efi_show_handles(struct cmd_tbl *cmdtp, int flag,
+                              int argc, char *const argv[])
 {
        efi_handle_t *handles;
        efi_guid_t **guid;
@@ -371,8 +372,8 @@ static int do_efi_show_handles(cmd_tbl_t *cmdtp, int flag,
  * Implement efidebug "images" sub-command.
  * Show all UEFI loaded images and their information.
  */
-static int do_efi_show_images(cmd_tbl_t *cmdtp, int flag,
-                             int argc, char * const argv[])
+static int do_efi_show_images(struct cmd_tbl *cmdtp, int flag,
+                             int argc, char *const argv[])
 {
        efi_print_image_infos(NULL);
 
@@ -413,6 +414,7 @@ static const struct efi_mem_attrs {
        {EFI_MEMORY_NV, "NV"},
        {EFI_MEMORY_MORE_RELIABLE, "REL"},
        {EFI_MEMORY_RO, "RO"},
+       {EFI_MEMORY_SP, "SP"},
        {EFI_MEMORY_RUNTIME, "RT"},
 };
 
@@ -453,8 +455,8 @@ static void print_memory_attributes(u64 attributes)
  * Implement efidebug "memmap" sub-command.
  * Show UEFI memory map.
  */
-static int do_efi_show_memmap(cmd_tbl_t *cmdtp, int flag,
-                             int argc, char * const argv[])
+static int do_efi_show_memmap(struct cmd_tbl *cmdtp, int flag,
+                             int argc, char *const argv[])
 {
        struct efi_mem_desc *memmap = NULL, *map;
        efi_uintn_t map_size = 0;
@@ -521,8 +523,8 @@ static int do_efi_show_memmap(cmd_tbl_t *cmdtp, int flag,
  * Implement efidebug "tables" sub-command.
  * Show UEFI configuration tables.
  */
-static int do_efi_show_tables(cmd_tbl_t *cmdtp, int flag,
-                             int argc, char * const argv[])
+static int do_efi_show_tables(struct cmd_tbl *cmdtp, int flag,
+                             int argc, char *const argv[])
 {
        efi_uintn_t i;
        const char *guid_str;
@@ -551,8 +553,8 @@ static int do_efi_show_tables(cmd_tbl_t *cmdtp, int flag,
  *
  *     efidebug boot add <id> <label> <interface> <devnum>[:<part>] <file> <options>
  */
-static int do_efi_boot_add(cmd_tbl_t *cmdtp, int flag,
-                          int argc, char * const argv[])
+static int do_efi_boot_add(struct cmd_tbl *cmdtp, int flag,
+                          int argc, char *const argv[])
 {
        int id;
        char *endp;
@@ -650,8 +652,8 @@ out:
  *
  *     efidebug boot rm <id> ...
  */
-static int do_efi_boot_rm(cmd_tbl_t *cmdtp, int flag,
-                         int argc, char * const argv[])
+static int do_efi_boot_rm(struct cmd_tbl *cmdtp, int flag,
+                         int argc, char *const argv[])
 {
        efi_guid_t guid;
        int id, i;
@@ -787,8 +789,8 @@ static int u16_tohex(u16 c)
  *
  *     efidebug boot dump
  */
-static int do_efi_boot_dump(cmd_tbl_t *cmdtp, int flag,
-                           int argc, char * const argv[])
+static int do_efi_boot_dump(struct cmd_tbl *cmdtp, int flag,
+                           int argc, char *const argv[])
 {
        u16 *var_name16, *p;
        efi_uintn_t buf_size, size;
@@ -956,8 +958,8 @@ out:
  *
  *     efidebug boot next <id>
  */
-static int do_efi_boot_next(cmd_tbl_t *cmdtp, int flag,
-                           int argc, char * const argv[])
+static int do_efi_boot_next(struct cmd_tbl *cmdtp, int flag,
+                           int argc, char *const argv[])
 {
        u16 bootnext;
        efi_uintn_t size;
@@ -1005,8 +1007,8 @@ out:
  *
  *     efidebug boot order [<id> ...]
  */
-static int do_efi_boot_order(cmd_tbl_t *cmdtp, int flag,
-                            int argc, char * const argv[])
+static int do_efi_boot_order(struct cmd_tbl *cmdtp, int flag,
+                            int argc, char *const argv[])
 {
        u16 *bootorder = NULL;
        efi_uintn_t size;
@@ -1054,7 +1056,7 @@ out:
        return r;
 }
 
-static cmd_tbl_t cmd_efidebug_boot_sub[] = {
+static struct cmd_tbl cmd_efidebug_boot_sub[] = {
        U_BOOT_CMD_MKENT(add, CONFIG_SYS_MAXARGS, 1, do_efi_boot_add, "", ""),
        U_BOOT_CMD_MKENT(rm, CONFIG_SYS_MAXARGS, 1, do_efi_boot_rm, "", ""),
        U_BOOT_CMD_MKENT(dump, CONFIG_SYS_MAXARGS, 1, do_efi_boot_dump, "", ""),
@@ -1075,10 +1077,10 @@ static cmd_tbl_t cmd_efidebug_boot_sub[] = {
  *
  * Implement efidebug "boot" sub-command.
  */
-static int do_efi_boot_opt(cmd_tbl_t *cmdtp, int flag,
-                          int argc, char * const argv[])
+static int do_efi_boot_opt(struct cmd_tbl *cmdtp, int flag,
+                          int argc, char *const argv[])
 {
-       cmd_tbl_t *cp;
+       struct cmd_tbl *cp;
 
        if (argc < 2)
                return CMD_RET_USAGE;
@@ -1108,7 +1110,7 @@ static int do_efi_boot_opt(cmd_tbl_t *cmdtp, int flag,
  *
  *     efidebug test bootmgr
  */
-static int do_efi_test_bootmgr(cmd_tbl_t *cmdtp, int flag,
+static int do_efi_test_bootmgr(struct cmd_tbl *cmdtp, int flag,
                               int argc, char * const argv[])
 {
        efi_handle_t image;
@@ -1130,7 +1132,7 @@ static int do_efi_test_bootmgr(cmd_tbl_t *cmdtp, int flag,
        return CMD_RET_SUCCESS;
 }
 
-static cmd_tbl_t cmd_efidebug_test_sub[] = {
+static struct cmd_tbl cmd_efidebug_test_sub[] = {
        U_BOOT_CMD_MKENT(bootmgr, CONFIG_SYS_MAXARGS, 1, do_efi_test_bootmgr,
                         "", ""),
 };
@@ -1147,10 +1149,10 @@ static cmd_tbl_t cmd_efidebug_test_sub[] = {
  *
  * Implement efidebug "test" sub-command.
  */
-static int do_efi_test(cmd_tbl_t *cmdtp, int flag,
+static int do_efi_test(struct cmd_tbl *cmdtp, int flag,
                       int argc, char * const argv[])
 {
-       cmd_tbl_t *cp;
+       struct cmd_tbl *cp;
 
        if (argc < 2)
                return CMD_RET_USAGE;
@@ -1178,7 +1180,7 @@ static int do_efi_test(cmd_tbl_t *cmdtp, int flag,
  * Implement efidebug "test" sub-command.
  */
 
-static int do_efi_query_info(cmd_tbl_t *cmdtp, int flag,
+static int do_efi_query_info(struct cmd_tbl *cmdtp, int flag,
                             int argc, char * const argv[])
 {
        efi_status_t ret;
@@ -1217,7 +1219,7 @@ static int do_efi_query_info(cmd_tbl_t *cmdtp, int flag,
        return CMD_RET_SUCCESS;
 }
 
-static cmd_tbl_t cmd_efidebug_sub[] = {
+static struct cmd_tbl cmd_efidebug_sub[] = {
        U_BOOT_CMD_MKENT(boot, CONFIG_SYS_MAXARGS, 1, do_efi_boot_opt, "", ""),
        U_BOOT_CMD_MKENT(devices, CONFIG_SYS_MAXARGS, 1, do_efi_show_devices,
                         "", ""),
@@ -1250,10 +1252,10 @@ static cmd_tbl_t cmd_efidebug_sub[] = {
  * Implement efidebug command which allows us to display and
  * configure UEFI environment.
  */
-static int do_efidebug(cmd_tbl_t *cmdtp, int flag,
-                      int argc, char * const argv[])
+static int do_efidebug(struct cmd_tbl *cmdtp, int flag,
+                      int argc, char *const argv[])
 {
-       cmd_tbl_t *cp;
+       struct cmd_tbl *cp;
        efi_status_t r;
 
        if (argc < 2)
index 10e8264d3c7d14e5e09ed5ed3511848b4e7458ee..d44b95d90339e7d9c6b54a16a557c50db36d2b15 100644 (file)
--- a/cmd/elf.c
+++ b/cmd/elf.c
 #include <elf.h>
 #include <env.h>
 #include <image.h>
+#include <log.h>
 #include <net.h>
 #include <vxworks.h>
 #ifdef CONFIG_X86
 #include <vbe.h>
+#include <asm/cache.h>
 #include <asm/e820.h>
 #include <linux/linkage.h>
 #endif
 
 /* Allow ports to override the default behavior */
 static unsigned long do_bootelf_exec(ulong (*entry)(int, char * const[]),
-                                    int argc, char * const argv[])
+                                    int argc, char *const argv[])
 {
        unsigned long ret;
 
@@ -34,7 +36,7 @@ static unsigned long do_bootelf_exec(ulong (*entry)(int, char * const[]),
 }
 
 /* Interpreter command to boot an arbitrary ELF image from memory */
-int do_bootelf(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_bootelf(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        unsigned long addr; /* Address of the ELF image */
        unsigned long rc; /* Return value from user code */
@@ -90,7 +92,7 @@ int do_bootelf(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
  * be either an ELF image or a raw binary.  Will attempt to setup the
  * bootline and other parameters correctly.
  */
-int do_bootvx(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_bootvx(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        unsigned long addr; /* Address of image */
        unsigned long bootaddr = 0; /* Address to put the bootline */
index 8d271ce1f3cd49efeb0e1d51466b063ea5a66af1..f8b8a798bf6a6f555395fbfed31b41a80ccb5817 100644 (file)
@@ -11,6 +11,7 @@
 #include <errno.h>
 #include <env_flags.h>
 #include <ethsw.h>
+#include <net.h>
 
 static const char *ethsw_name;
 
@@ -999,7 +1000,7 @@ static void cmd_keywords_check(struct ethsw_command_def *parsed_cmd,
 }
 
 /* find all the keywords in the command */
-static int keywords_find(int argc, char * const argv[],
+static int keywords_find(int argc, char *const argv[],
                         struct ethsw_command_def *parsed_cmd)
 {
        int i;
@@ -1064,7 +1065,8 @@ static void command_def_init(struct ethsw_command_def *parsed_cmd)
 }
 
 /* function to interpret commands starting with "ethsw " */
-static int do_ethsw(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_ethsw(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[])
 {
        struct ethsw_command_def parsed_cmd;
        int rc = CMD_RET_SUCCESS;
index f40d0686e1e33d6a0ec784d1f9f560ad8011ad86..7bf241ec732d96b19e678ee1d13a8b9073d37522 100644 (file)
@@ -7,7 +7,8 @@
 #include <common.h>
 #include <command.h>
 
-static int do_exit(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_exit(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        int r;
 
index dc56ab25ffdff54fd6844bdc55cdc931a1875d74..57a99516a6ac15844b69027c01c9d3458f504cef 100644 (file)
 /*
  * Ext2fs support
  */
+#include <common.h>
+#include <command.h>
 #include <fs.h>
 
-static int do_ext2ls(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_ext2ls(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        return do_ls(cmdtp, flag, argc, argv, FS_TYPE_EXT);
 }
@@ -29,7 +32,7 @@ static int do_ext2ls(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 /******************************************************************************
  * Ext2fs boot command intepreter. Derived from diskboot
  */
-int do_ext2load(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_ext2load(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        return do_load(cmdtp, flag, argc, argv, FS_TYPE_EXT);
 }
index d2fa7f1db1d9fecd8adf3d6c4a1076caeac57743..4791b69fd96d0bf526fa5bab83b54ae88668930c 100644 (file)
 #include <usb.h>
 #endif
 
-int do_ext4_size(cmd_tbl_t *cmdtp, int flag, int argc,
-                                               char *const argv[])
+int do_ext4_size(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        return do_size(cmdtp, flag, argc, argv, FS_TYPE_EXT);
 }
 
-int do_ext4_load(cmd_tbl_t *cmdtp, int flag, int argc,
-                                               char *const argv[])
+int do_ext4_load(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        return do_load(cmdtp, flag, argc, argv, FS_TYPE_EXT);
 }
 
-int do_ext4_ls(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_ext4_ls(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        return do_ls(cmdtp, flag, argc, argv, FS_TYPE_EXT);
 }
 
 #if defined(CONFIG_CMD_EXT4_WRITE)
-int do_ext4_write(cmd_tbl_t *cmdtp, int flag, int argc,
+int do_ext4_write(struct cmd_tbl *cmdtp, int flag, int argc,
                  char *const argv[])
 {
        return do_save(cmdtp, flag, argc, argv, FS_TYPE_EXT);
index 1b4215114d7e5d7e7393667f9b3365457fa07459..ad5c06491183a4ac30a5b4bc4a49bca8384651ec 100644 (file)
@@ -14,6 +14,7 @@
 #include <net.h>
 #include <usb.h>
 #include <watchdog.h>
+#include <linux/stringify.h>
 
 static int do_fastboot_udp(int argc, char *const argv[],
                           uintptr_t buf_addr, size_t buf_size)
@@ -93,7 +94,8 @@ exit:
 #endif
 }
 
-static int do_fastboot(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+static int do_fastboot(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        uintptr_t buf_addr = (uintptr_t)NULL;
        size_t buf_size = 0;
index abce2f1e0c0b66be7df5e15c364ad02c8985461a..b438ce16c91136d1c645c5546064b799eab599ee 100644 (file)
--- a/cmd/fat.c
+++ b/cmd/fat.c
@@ -8,11 +8,14 @@
  * Boot support
  */
 #include <common.h>
+#include <command.h>
 #include <mapmem.h>
 #include <fat.h>
 #include <fs.h>
+#include <part.h>
+#include <asm/cache.h>
 
-int do_fat_size(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_fat_size(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        return do_size(cmdtp, flag, argc, argv, FS_TYPE_FAT);
 }
@@ -25,7 +28,7 @@ U_BOOT_CMD(
        "      and determine its size."
 );
 
-int do_fat_fsload(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_fat_fsload(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        return do_load(cmdtp, flag, argc, argv, FS_TYPE_FAT);
 }
@@ -46,7 +49,8 @@ U_BOOT_CMD(
        "      be printed and performance will suffer for the load."
 );
 
-static int do_fat_ls(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_fat_ls(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        return do_ls(cmdtp, flag, argc, argv, FS_TYPE_FAT);
 }
@@ -58,12 +62,12 @@ U_BOOT_CMD(
        "    - list files from 'dev' on 'interface' in a 'directory'"
 );
 
-static int do_fat_fsinfo(cmd_tbl_t *cmdtp, int flag, int argc,
-                        char * const argv[])
+static int do_fat_fsinfo(struct cmd_tbl *cmdtp, int flag, int argc,
+                        char *const argv[])
 {
        int dev, part;
        struct blk_desc *dev_desc;
-       disk_partition_t info;
+       struct disk_partition info;
 
        if (argc < 2) {
                printf("usage: fatinfo <interface> [<dev[:part]>]\n");
@@ -91,8 +95,8 @@ U_BOOT_CMD(
 );
 
 #ifdef CONFIG_FAT_WRITE
-static int do_fat_fswrite(cmd_tbl_t *cmdtp, int flag,
-               int argc, char * const argv[])
+static int do_fat_fswrite(struct cmd_tbl *cmdtp, int flag, int argc,
+                         char *const argv[])
 {
        loff_t size;
        int ret;
@@ -100,7 +104,7 @@ static int do_fat_fswrite(cmd_tbl_t *cmdtp, int flag,
        unsigned long count;
        long offset;
        struct blk_desc *dev_desc = NULL;
-       disk_partition_t info;
+       struct disk_partition info;
        int dev = 0;
        int part = 1;
        void *buf;
@@ -146,7 +150,8 @@ U_BOOT_CMD(
        "      to 'dev' on 'interface'"
 );
 
-static int do_fat_rm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_fat_rm(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        return do_rm(cmdtp, flag, argc, argv, FS_TYPE_FAT);
 }
@@ -158,8 +163,8 @@ U_BOOT_CMD(
        "    - delete a file from 'dev' on 'interface'"
 );
 
-static int do_fat_mkdir(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_fat_mkdir(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        return do_mkdir(cmdtp, flag, argc, argv, FS_TYPE_FAT);
 }
index 36cc7265406425d7317aff40d8c944aff735fd23..99b1b5b3fcb94c44a8517d531c3ee47e019081b9 100644 (file)
--- a/cmd/fdt.c
+++ b/cmd/fdt.c
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
+#include <image.h>
 #include <linux/ctype.h>
 #include <linux/types.h>
 #include <asm/global_data.h>
@@ -87,7 +88,7 @@ static const char * const fdt_member_table[] = {
        "size_dt_struct",
 };
 
-static int fdt_get_header_value(int argc, char * const argv[])
+static int fdt_get_header_value(int argc, char *const argv[])
 {
        fdt32_t *fdtp = (fdt32_t *)working_fdt;
        ulong val;
@@ -111,7 +112,7 @@ static int fdt_get_header_value(int argc, char * const argv[])
 /*
  * Flattened Device Tree command, see the help for parameter definitions.
  */
-static int do_fdt(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_fdt(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        if (argc < 2)
                return CMD_RET_USAGE;
index 1e5edd9f9bb1c4d05ab0ea0de484e65366fbc3eb..f6270d9c15b4b6761e2dd4d93cb29fa58c3a9a01 100644 (file)
@@ -12,7 +12,8 @@
 #error "CONFIG_UPDATE_TFTP required"
 #endif
 
-static int do_fitupd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_fitupd(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        ulong addr = 0UL;
 
index cd1758d7e2ef7f49cdf992e6707eb31db6ab2c45..240871e8089a34e841888a8e05178c514bc70737 100644 (file)
@@ -9,6 +9,8 @@
  */
 #include <common.h>
 #include <command.h>
+#include <log.h>
+#include <uuid.h>
 
 #if defined(CONFIG_CMD_MTDPARTS)
 #include <jffs2/jffs2.h>
@@ -88,7 +90,7 @@ abbrev_spec (char *str, flash_info_t ** pinfo, int *psf, int *psl)
 /*
  * Take *addr in Flash and adjust it to fall on the end of its sector
  */
-int flash_sect_roundb (ulong *addr)
+int flash_sect_roundb(ulong *addr)
 {
        flash_info_t *info;
        ulong bank, sector_end_addr;
@@ -268,7 +270,8 @@ flash_fill_sect_ranges (ulong addr_first, ulong addr_last,
 }
 #endif /* CONFIG_MTD_NOR_FLASH */
 
-static int do_flinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_flinfo(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
 #ifdef CONFIG_MTD_NOR_FLASH
        ulong bank;
@@ -279,7 +282,7 @@ static int do_flinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
                for (bank=0; bank <CONFIG_SYS_MAX_FLASH_BANKS; ++bank) {
                        printf ("\nBank # %ld: ", bank+1);
 
-                       flash_print_info (&flash_info[bank]);
+                       flash_print_info(&flash_info[bank]);
                }
                return 0;
        }
@@ -291,12 +294,13 @@ static int do_flinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
                return 1;
        }
        printf ("\nBank # %ld: ", bank);
-       flash_print_info (&flash_info[bank-1]);
+       flash_print_info(&flash_info[bank - 1]);
 #endif /* CONFIG_MTD_NOR_FLASH */
        return 0;
 }
 
-static int do_flerase(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_flerase(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
 #ifdef CONFIG_MTD_NOR_FLASH
        flash_info_t *info = NULL;
@@ -316,7 +320,7 @@ static int do_flerase(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
                for (bank=1; bank<=CONFIG_SYS_MAX_FLASH_BANKS; ++bank) {
                        printf ("Erase Flash Bank # %ld ", bank);
                        info = &flash_info[bank-1];
-                       rcode = flash_erase (info, 0, info->sector_count-1);
+                       rcode = flash_erase(info, 0, info->sector_count - 1);
                }
                return rcode;
        }
@@ -370,7 +374,7 @@ static int do_flerase(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
                }
                printf ("Erase Flash Bank # %ld ", bank);
                info = &flash_info[bank-1];
-               rcode = flash_erase (info, 0, info->sector_count-1);
+               rcode = flash_erase(info, 0, info->sector_count - 1);
                return rcode;
        }
 
@@ -390,7 +394,7 @@ static int do_flerase(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 }
 
 #ifdef CONFIG_MTD_NOR_FLASH
-int flash_sect_erase (ulong addr_first, ulong addr_last)
+int flash_sect_erase(ulong addr_first, ulong addr_last)
 {
        flash_info_t *info;
        ulong bank;
@@ -408,14 +412,14 @@ int flash_sect_erase (ulong addr_first, ulong addr_last)
                     ++bank, ++info) {
                        if (s_first[bank]>=0) {
                                erased += s_last[bank] - s_first[bank] + 1;
-                               debug ("Erase Flash from 0x%08lx to 0x%08lx "
-                                       "in Bank # %ld ",
-                                       info->start[s_first[bank]],
-                                       (s_last[bank] == info->sector_count) ?
-                                               info->start[0] + info->size - 1:
-                                               info->start[s_last[bank]+1] - 1,
-                                       bank+1);
-                               rcode = flash_erase (info, s_first[bank], s_last[bank]);
+                               debug("Erase Flash from 0x%08lx to 0x%08lx in Bank # %ld ",
+                                     info->start[s_first[bank]],
+                                     (s_last[bank] == info->sector_count) ?
+                                     info->start[0] + info->size - 1 :
+                                     info->start[s_last[bank] + 1] - 1,
+                                     bank + 1);
+                               rcode = flash_erase(info, s_first[bank],
+                                                   s_last[bank]);
                        }
                }
                if (rcode == 0)
@@ -429,7 +433,8 @@ int flash_sect_erase (ulong addr_first, ulong addr_last)
 }
 #endif /* CONFIG_MTD_NOR_FLASH */
 
-static int do_protect(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_protect(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        int rcode = 0;
 #ifdef CONFIG_MTD_NOR_FLASH
@@ -526,7 +531,8 @@ static int do_protect(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
                                                p ? "" : "Un", argv[1],
                                                bank, addr_first, addr_last);
 
-                               rcode = flash_sect_protect (p, addr_first, addr_last);
+                               rcode = flash_sect_protect(p, addr_first,
+                                                          addr_last);
                                return rcode;
                        }
 
@@ -580,13 +586,13 @@ static int do_protect(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        if (addr_first >= addr_last)
                return CMD_RET_USAGE;
 
-       rcode = flash_sect_protect (p, addr_first, addr_last);
+       rcode = flash_sect_protect(p, addr_first, addr_last);
 #endif /* CONFIG_MTD_NOR_FLASH */
        return rcode;
 }
 
 #ifdef CONFIG_MTD_NOR_FLASH
-int flash_sect_protect (int p, ulong addr_first, ulong addr_last)
+int flash_sect_protect(int p, ulong addr_first, ulong addr_last)
 {
        flash_info_t *info;
        ulong bank;
@@ -606,9 +612,9 @@ int flash_sect_protect (int p, ulong addr_first, ulong addr_last)
                        }
 
                        if (s_first[bank]>=0 && s_first[bank]<=s_last[bank]) {
-                               debug ("%sProtecting sectors %d..%d in bank %ld\n",
-                                       p ? "" : "Un-",
-                                       s_first[bank], s_last[bank], bank+1);
+                               debug("%sProtecting sectors %d..%d in bank %ld\n",
+                                     p ? "" : "Un-", s_first[bank],
+                                     s_last[bank], bank + 1);
                                protected += s_last[bank] - s_first[bank] + 1;
                                for (i=s_first[bank]; i<=s_last[bank]; ++i) {
 #if defined(CONFIG_SYS_FLASH_PROTECTION)
index b1c7b5453b3b12b5fb339f819f6244bd190e9a51..8ae1c936fbb5bc7b1161cecbc36e4edc13869c32 100644 (file)
@@ -13,6 +13,8 @@
 #include <fpga.h>
 #include <fs.h>
 #include <gzip.h>
+#include <image.h>
+#include <log.h>
 #include <malloc.h>
 
 static long do_fpga_get_device(char *arg)
@@ -33,7 +35,8 @@ static long do_fpga_get_device(char *arg)
 }
 
 static int do_fpga_check_params(long *dev, long *fpga_data, size_t *data_size,
-                               cmd_tbl_t *cmdtp, int argc, char *const argv[])
+                               struct cmd_tbl *cmdtp, int argc,
+                               char *const argv[])
 {
        size_t local_data_size;
        long local_fpga_data;
@@ -65,7 +68,7 @@ static int do_fpga_check_params(long *dev, long *fpga_data, size_t *data_size,
 }
 
 #if defined(CONFIG_CMD_FPGA_LOAD_SECURE)
-int do_fpga_loads(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_fpga_loads(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        size_t data_size = 0;
        long fpga_data, dev;
@@ -117,7 +120,7 @@ int do_fpga_loads(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
 #endif
 
 #if defined(CONFIG_CMD_FPGA_LOADFS)
-static int do_fpga_loadfs(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_fpga_loadfs(struct cmd_tbl *cmdtp, int flag, int argc,
                          char *const argv[])
 {
        size_t data_size = 0;
@@ -140,16 +143,16 @@ static int do_fpga_loadfs(cmd_tbl_t *cmdtp, int flag, int argc,
 }
 #endif
 
-static int do_fpga_info(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_fpga_info(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        long dev = do_fpga_get_device(argv[0]);
 
        return fpga_info(dev);
 }
 
-static int do_fpga_dump(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_fpga_dump(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        size_t data_size = 0;
        long fpga_data, dev;
@@ -163,8 +166,8 @@ static int do_fpga_dump(cmd_tbl_t *cmdtp, int flag, int argc,
        return fpga_dump(dev, (void *)fpga_data, data_size);
 }
 
-static int do_fpga_load(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_fpga_load(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        size_t data_size = 0;
        long fpga_data, dev;
@@ -178,8 +181,8 @@ static int do_fpga_load(cmd_tbl_t *cmdtp, int flag, int argc,
        return fpga_load(dev, (void *)fpga_data, data_size, BIT_FULL);
 }
 
-static int do_fpga_loadb(cmd_tbl_t *cmdtp, int flag, int argc,
-                        char * const argv[])
+static int do_fpga_loadb(struct cmd_tbl *cmdtp, int flag, int argc,
+                        char *const argv[])
 {
        size_t data_size = 0;
        long fpga_data, dev;
@@ -194,8 +197,8 @@ static int do_fpga_loadb(cmd_tbl_t *cmdtp, int flag, int argc,
 }
 
 #if defined(CONFIG_CMD_FPGA_LOADP)
-static int do_fpga_loadp(cmd_tbl_t *cmdtp, int flag, int argc,
-                        char * const argv[])
+static int do_fpga_loadp(struct cmd_tbl *cmdtp, int flag, int argc,
+                        char *const argv[])
 {
        size_t data_size = 0;
        long fpga_data, dev;
@@ -211,8 +214,8 @@ static int do_fpga_loadp(cmd_tbl_t *cmdtp, int flag, int argc,
 #endif
 
 #if defined(CONFIG_CMD_FPGA_LOADBP)
-static int do_fpga_loadbp(cmd_tbl_t *cmdtp, int flag, int argc,
-                         char * const argv[])
+static int do_fpga_loadbp(struct cmd_tbl *cmdtp, int flag, int argc,
+                         char *const argv[])
 {
        size_t data_size = 0;
        long fpga_data, dev;
@@ -229,8 +232,8 @@ static int do_fpga_loadbp(cmd_tbl_t *cmdtp, int flag, int argc,
 #endif
 
 #if defined(CONFIG_CMD_FPGA_LOADMK)
-static int do_fpga_loadmk(cmd_tbl_t *cmdtp, int flag, int argc,
-                         char * const argv[])
+static int do_fpga_loadmk(struct cmd_tbl *cmdtp, int flag, int argc,
+                         char *const argv[])
 {
        size_t data_size = 0;
        void *fpga_data = NULL;
@@ -362,7 +365,7 @@ static int do_fpga_loadmk(cmd_tbl_t *cmdtp, int flag, int argc,
 }
 #endif
 
-static cmd_tbl_t fpga_commands[] = {
+static struct cmd_tbl fpga_commands[] = {
        U_BOOT_CMD_MKENT(info, 1, 1, do_fpga_info, "", ""),
        U_BOOT_CMD_MKENT(dump, 3, 1, do_fpga_dump, "", ""),
        U_BOOT_CMD_MKENT(load, 3, 1, do_fpga_load, "", ""),
@@ -384,10 +387,10 @@ static cmd_tbl_t fpga_commands[] = {
 #endif
 };
 
-static int do_fpga_wrapper(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_fpga_wrapper(struct cmd_tbl *cmdtp, int flag, int argc,
                           char *const argv[])
 {
-       cmd_tbl_t *fpga_cmd;
+       struct cmd_tbl *fpga_cmd;
        int ret;
 
        if (argc < 2)
index 0d55453eaa6cd675d1540c24434674fb35452732..fb2fe63e78abda7fe7a2da2e953248902a9157d9 100644 (file)
@@ -25,7 +25,7 @@ static uint   dp_last_length = 0x40;
  *     fpgad {fpga} {addr} {len}
  */
 #define DISP_LINE_LEN  16
-int do_fpga_md(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_fpga_md(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        unsigned int k;
        unsigned int fpga;
index db74767b7b176ee6c6a6ae5e52daeb76f64729e3..3a0c465c1576bd7ea452bf8806dd6709a64f67d8 100644 (file)
--- a/cmd/fs.c
+++ b/cmd/fs.c
@@ -9,7 +9,8 @@
 #include <command.h>
 #include <fs.h>
 
-static int do_size_wrapper(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_size_wrapper(struct cmd_tbl *cmdtp, int flag, int argc,
+                          char *const argv[])
 {
        return do_size(cmdtp, flag, argc, argv, FS_TYPE_ANY);
 }
@@ -22,8 +23,8 @@ U_BOOT_CMD(
        "      and determine its size."
 );
 
-static int do_load_wrapper(cmd_tbl_t *cmdtp, int flag, int argc,
-                               char * const argv[])
+static int do_load_wrapper(struct cmd_tbl *cmdtp, int flag, int argc,
+                          char *const argv[])
 {
        return do_load(cmdtp, flag, argc, argv, FS_TYPE_ANY);
 }
@@ -40,8 +41,8 @@ U_BOOT_CMD(
        "      If 'pos' is 0 or omitted, the file is read from the start."
 )
 
-static int do_save_wrapper(cmd_tbl_t *cmdtp, int flag, int argc,
-                               char * const argv[])
+static int do_save_wrapper(struct cmd_tbl *cmdtp, int flag, int argc,
+                          char *const argv[])
 {
        return do_save(cmdtp, flag, argc, argv, FS_TYPE_ANY);
 }
@@ -57,8 +58,8 @@ U_BOOT_CMD(
        "      If 'pos' is 0 or omitted, the file is written from the start."
 )
 
-static int do_ls_wrapper(cmd_tbl_t *cmdtp, int flag, int argc,
-                               char * const argv[])
+static int do_ls_wrapper(struct cmd_tbl *cmdtp, int flag, int argc,
+                        char *const argv[])
 {
        return do_ls(cmdtp, flag, argc, argv, FS_TYPE_ANY);
 }
@@ -71,8 +72,8 @@ U_BOOT_CMD(
        "      device type 'interface' instance 'dev'."
 )
 
-static int do_ln_wrapper(cmd_tbl_t *cmdtp, int flag, int argc,
-                        char * const argv[])
+static int do_ln_wrapper(struct cmd_tbl *cmdtp, int flag, int argc,
+                        char *const argv[])
 {
        return do_ln(cmdtp, flag, argc, argv, FS_TYPE_ANY);
 }
@@ -85,8 +86,8 @@ U_BOOT_CMD(
        "      device type 'interface' instance 'dev'."
 )
 
-static int do_fstype_wrapper(cmd_tbl_t *cmdtp, int flag, int argc,
-                               char * const argv[])
+static int do_fstype_wrapper(struct cmd_tbl *cmdtp, int flag, int argc,
+                            char *const argv[])
 {
        return do_fs_type(cmdtp, flag, argc, argv);
 }
index 02ae9b7f3c36c4032866bf81acb131b15affecba..5dc94aa6408177f07d10d0baf8af2554f0586ec8 100644 (file)
@@ -9,8 +9,8 @@
 #include <command.h>
 #include <fs.h>
 
-static int do_fs_uuid_wrapper(cmd_tbl_t *cmdtp, int flag,
-       int argc, char * const argv[])
+static int do_fs_uuid_wrapper(struct cmd_tbl *cmdtp, int flag, int argc,
+                             char *const argv[])
 {
        return do_fs_uuid(cmdtp, flag, argc, argv, FS_TYPE_ANY);
 }
index 42d74fa8837ab3b8b7be40126d92b071cd1d8b9d..e001619d17200de9884b40575526b7064b15fec7 100644 (file)
@@ -40,7 +40,8 @@ static int confirm_prog(void)
        return 0;
 }
 
-static int do_fuse(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+static int do_fuse(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        const char *op = argc >= 2 ? argv[1] : NULL;
        int confirmed = argc >= 3 && !strcmp(argv[2], "-y");
index 863bd875901e52437b642ef97dfa691235961eba..2e74e02b49980a4e26c6c39f0886c52e1f09c97e 100644 (file)
@@ -14,8 +14,8 @@
 #include <common.h>
 #include <command.h>
 
-static int do_gettime(cmd_tbl_t *cmdtp, int flag, int argc,
-                     char * const argv[])
+static int do_gettime(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        unsigned long int val = get_timer(0);
 
index 408a942455b58627a81107f3145fe08e33fbeb9f..4fdb3135fc1a47fd022c019bd6fada71e32e207d 100644 (file)
@@ -10,6 +10,7 @@
 #include <command.h>
 #include <errno.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/gpio.h>
 #include <linux/err.h>
@@ -117,7 +118,8 @@ static int do_gpio_status(bool all, const char *gpio_name)
 }
 #endif
 
-static int do_gpio(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_gpio(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        unsigned int gpio;
        enum gpio_cmd sub_cmd;
index b8d11c167df776476a39e64137153e953b6538f8..df759416c882853b8d2cbee3be8bf2533a3fb2ae 100644 (file)
--- a/cmd/gpt.c
+++ b/cmd/gpt.c
  */
 
 #include <common.h>
+#include <blk.h>
 #include <env.h>
+#include <log.h>
 #include <malloc.h>
 #include <command.h>
+#include <part.h>
 #include <part_efi.h>
 #include <exports.h>
+#include <uuid.h>
 #include <linux/ctype.h>
 #include <div64.h>
 #include <memalign.h>
@@ -188,7 +192,8 @@ static void del_gpt_info(void)
        }
 }
 
-static struct disk_part *allocate_disk_part(disk_partition_t *info, int partnum)
+static struct disk_part *allocate_disk_part(struct disk_partition *info,
+                                           int partnum)
 {
        struct disk_part *newpart;
        newpart = calloc(1, sizeof(struct disk_part));
@@ -309,7 +314,7 @@ static int get_gpt_info(struct blk_desc *dev_desc)
 {
        /* start partition numbering at 1, as U-Boot does */
        int valid_parts = 0, p, ret;
-       disk_partition_t info;
+       struct disk_partition info;
        struct disk_part *new_disk_part;
 
        /*
@@ -374,14 +379,14 @@ static int do_get_gpt_info(struct blk_desc *dev_desc)
 static int set_gpt_info(struct blk_desc *dev_desc,
                        const char *str_part,
                        char **str_disk_guid,
-                       disk_partition_t **partitions,
+                       struct disk_partition **partitions,
                        u8 *parts_count)
 {
        char *tok, *str, *s;
        int i;
        char *val, *p;
        int p_count;
-       disk_partition_t *parts;
+       struct disk_partition *parts;
        int errno = 0;
        uint64_t size_ll, start_ll;
        lbaint_t offset = 0;
@@ -439,7 +444,7 @@ static int set_gpt_info(struct blk_desc *dev_desc,
        }
 
        /* allocate memory for partitions */
-       parts = calloc(sizeof(disk_partition_t), p_count);
+       parts = calloc(sizeof(struct disk_partition), p_count);
        if (parts == NULL)
                return -ENOMEM;
 
@@ -556,7 +561,7 @@ static int gpt_default(struct blk_desc *blk_dev_desc, const char *str_part)
        int ret;
        char *str_disk_guid;
        u8 part_count = 0;
-       disk_partition_t *partitions = NULL;
+       struct disk_partition *partitions = NULL;
 
        /* fill partitions */
        ret = set_gpt_info(blk_dev_desc, str_part,
@@ -583,7 +588,7 @@ static int gpt_verify(struct blk_desc *blk_dev_desc, const char *str_part)
 {
        ALLOC_CACHE_ALIGN_BUFFER_PAD(gpt_header, gpt_head, 1,
                                     blk_dev_desc->blksz);
-       disk_partition_t *partitions = NULL;
+       struct disk_partition *partitions = NULL;
        gpt_entry *gpt_pte = NULL;
        char *str_disk_guid;
        u8 part_count = 0;
@@ -639,7 +644,7 @@ static int do_rename_gpt_parts(struct blk_desc *dev_desc, char *subcomm,
 {
        struct list_head *pos;
        struct disk_part *curr;
-       disk_partition_t *new_partitions = NULL;
+       struct disk_partition *new_partitions = NULL;
        char disk_guid[UUID_STR_LEN + 1];
        char *partitions_list, *str_disk_guid = NULL;
        u8 part_count = 0;
@@ -790,7 +795,7 @@ static int do_rename_gpt_parts(struct blk_desc *dev_desc, char *subcomm,
  *
  * @return zero on success; otherwise error
  */
-static int do_gpt(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_gpt(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int ret = CMD_RET_SUCCESS;
        int dev = 0;
index dff943ac9fe64c751ec4a2480bf2db1c203f7aab..e163cd6774204f39ae4aac41287f486580550b5c 100644 (file)
@@ -14,7 +14,8 @@
 #include <hash.h>
 #include <linux/ctype.h>
 
-static int do_hash(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_hash(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        char *s;
        int flags = HASH_FLAG_ENV;
index a1a0b99b6ffac7c8e3888837c5d1af97f64f75fc..8d67d977bf1aa5a42716daa1e0326037e56ecf5d 100644 (file)
@@ -7,11 +7,12 @@
 #include <common.h>
 #include <command.h>
 
-static int do_help(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_help(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
 #ifdef CONFIG_CMDLINE
-       cmd_tbl_t *start = ll_entry_start(cmd_tbl_t, cmd);
-       const int len = ll_entry_count(cmd_tbl_t, cmd);
+       struct cmd_tbl *start = ll_entry_start(struct cmd_tbl, cmd);
+       const int len = ll_entry_count(struct cmd_tbl, cmd);
        return _do_help(start, len, cmdtp, flag, argc, argv);
 #else
        return 0;
@@ -29,7 +30,7 @@ U_BOOT_CMD(
 
 #ifdef CONFIG_CMDLINE
 /* This does not use the U_BOOT_CMD macro as ? can't be used in symbol names */
-ll_entry_declare(cmd_tbl_t, question_mark, cmd) = {
+ll_entry_declare(struct cmd_tbl, question_mark, cmd) = {
        "?",    CONFIG_SYS_MAXARGS, cmd_always_repeatable,      do_help,
        "alias for 'help'",
 #ifdef  CONFIG_SYS_LONGHELP
index eefc4f255ef2fcfe3b69f57cc4ce789ca033bd08..cd9c9677f0f0011f459e440ac7b6576341f95b55 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <dm.h>
 #include <fs.h>
 #include <part.h>
 
 static int host_curr_device = -1;
 
-static int do_host_load(cmd_tbl_t *cmdtp, int flag, int argc,
-                          char * const argv[])
+static int do_host_load(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        return do_load(cmdtp, flag, argc, argv, FS_TYPE_SANDBOX);
 }
 
-static int do_host_ls(cmd_tbl_t *cmdtp, int flag, int argc,
-                          char * const argv[])
+static int do_host_ls(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        return do_ls(cmdtp, flag, argc, argv, FS_TYPE_SANDBOX);
 }
 
-static int do_host_size(cmd_tbl_t *cmdtp, int flag, int argc,
-                          char * const argv[])
+static int do_host_size(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        return do_size(cmdtp, flag, argc, argv, FS_TYPE_SANDBOX);
 }
 
-static int do_host_save(cmd_tbl_t *cmdtp, int flag, int argc,
-                          char * const argv[])
+static int do_host_save(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        return do_save(cmdtp, flag, argc, argv, FS_TYPE_SANDBOX);
 }
 
-static int do_host_bind(cmd_tbl_t *cmdtp, int flag, int argc,
-                          char * const argv[])
+static int do_host_bind(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        if (argc < 2 || argc > 3)
                return CMD_RET_USAGE;
@@ -53,8 +54,8 @@ static int do_host_bind(cmd_tbl_t *cmdtp, int flag, int argc,
        return host_dev_bind(dev, file);
 }
 
-static int do_host_info(cmd_tbl_t *cmdtp, int flag, int argc,
-                          char * const argv[])
+static int do_host_info(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        if (argc < 1 || argc > 2)
                return CMD_RET_USAGE;
@@ -100,8 +101,8 @@ static int do_host_info(cmd_tbl_t *cmdtp, int flag, int argc,
        return 0;
 }
 
-static int do_host_dev(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+static int do_host_dev(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        int dev;
        char *ep;
@@ -140,7 +141,7 @@ static int do_host_dev(cmd_tbl_t *cmdtp, int flag, int argc,
        return 0;
 }
 
-static cmd_tbl_t cmd_host_sub[] = {
+static struct cmd_tbl cmd_host_sub[] = {
        U_BOOT_CMD_MKENT(load, 7, 0, do_host_load, "", ""),
        U_BOOT_CMD_MKENT(ls, 3, 0, do_host_ls, "", ""),
        U_BOOT_CMD_MKENT(save, 6, 0, do_host_save, "", ""),
@@ -150,10 +151,10 @@ static cmd_tbl_t cmd_host_sub[] = {
        U_BOOT_CMD_MKENT(dev, 0, 1, do_host_dev, "", ""),
 };
 
-static int do_host(cmd_tbl_t *cmdtp, int flag, int argc,
-                     char * const argv[])
+static int do_host(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
-       cmd_tbl_t *c;
+       struct cmd_tbl *c;
 
        /* Skip past 'host' */
        argc--;
index 43a76299b3c82ad197ea466909f25153fc469ce2..cc01119b2107381d05577a1233c4d3f24e087d33 100644 (file)
--- a/cmd/i2c.c
+++ b/cmd/i2c.c
 #include <edid.h>
 #include <errno.h>
 #include <i2c.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/byteorder.h>
 #include <linux/compiler.h>
+#include <linux/delay.h>
 #include <u-boot/crc.h>
 
 /* Display values from last command.
@@ -288,7 +290,8 @@ static int i2c_report_err(int ret, enum i2c_err_op op)
  * Syntax:
  *     i2c read {i2c_chip} {devaddr}{.0, .1, .2} {len} {memaddr}
  */
-static int do_i2c_read ( cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_i2c_read(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        uint    chip;
        uint    devaddr, length;
@@ -341,7 +344,8 @@ static int do_i2c_read ( cmd_tbl_t *cmdtp, int flag, int argc, char * const argv
        return 0;
 }
 
-static int do_i2c_write(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_i2c_write(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        uint    chip;
        uint    devaddr, length;
@@ -432,7 +436,7 @@ static int do_i2c_write(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[
 }
 
 #ifdef CONFIG_DM_I2C
-static int do_i2c_flags(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_i2c_flags(struct cmd_tbl *cmdtp, int flag, int argc,
                        char *const argv[])
 {
        struct udevice *dev;
@@ -462,7 +466,8 @@ static int do_i2c_flags(cmd_tbl_t *cmdtp, int flag, int argc,
        return 0;
 }
 
-static int do_i2c_olen(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+static int do_i2c_olen(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        struct udevice *dev;
        uint olen;
@@ -507,7 +512,8 @@ static int do_i2c_olen(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
  * Syntax:
  *     i2c md {i2c_chip} {addr}{.0, .1, .2} {len}
  */
-static int do_i2c_md ( cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_i2c_md(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        uint    chip;
        uint    addr, length;
@@ -626,7 +632,8 @@ static int do_i2c_md ( cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]
  * Syntax:
  *     i2c mw {i2c_chip} {addr}{.0, .1, .2} {data} [{count}]
  */
-static int do_i2c_mw ( cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_i2c_mw(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        uint    chip;
        ulong   addr;
@@ -712,7 +719,8 @@ static int do_i2c_mw ( cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]
  * Syntax:
  *     i2c crc32 {i2c_chip} {addr}{.0, .1, .2} {count}
  */
-static int do_i2c_crc (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_i2c_crc(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        uint    chip;
        ulong   addr;
@@ -796,8 +804,8 @@ static int do_i2c_crc (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]
  *     i2c mm{.b, .w, .l} {i2c_chip} {addr}{.0, .1, .2}
  *     i2c nm{.b, .w, .l} {i2c_chip} {addr}{.0, .1, .2}
  */
-static int
-mod_i2c_mem(cmd_tbl_t *cmdtp, int incrflag, int flag, int argc, char * const argv[])
+static int mod_i2c_mem(struct cmd_tbl *cmdtp, int incrflag, int flag, int argc,
+                      char *const argv[])
 {
        uint    chip;
        ulong   addr;
@@ -945,7 +953,8 @@ mod_i2c_mem(cmd_tbl_t *cmdtp, int incrflag, int flag, int argc, char * const arg
  *
  * Returns zero (success) if one or more I2C devices was found
  */
-static int do_i2c_probe (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_i2c_probe(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        int j;
        int addr = -1;
@@ -1020,7 +1029,8 @@ static int do_i2c_probe (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv
  *     {length} - Number of bytes to read
  *     {delay}  - A DECIMAL number and defaults to 1000 uSec
  */
-static int do_i2c_loop(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_i2c_loop(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        uint    chip;
        int alen;
@@ -1146,7 +1156,8 @@ static void decode_bits (u_char const b, char const *str[], int const do_once)
  * Syntax:
  *     i2c sdram {i2c_chip}
  */
-static int do_sdram (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+static int do_sdram(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[])
 {
        enum { unknown, EDO, SDRAM, DDR, DDR2, DDR3, DDR4 } type;
 
@@ -1648,7 +1659,7 @@ static int do_sdram (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
  *     i2c edid {i2c_chip}
  */
 #if defined(CONFIG_I2C_EDID)
-int do_edid(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_edid(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        uint chip;
        struct edid1_info edid;
@@ -1715,8 +1726,8 @@ static void show_bus(struct udevice *bus)
  * Returns zero always.
  */
 #if defined(CONFIG_SYS_I2C) || defined(CONFIG_DM_I2C)
-static int do_i2c_show_bus(cmd_tbl_t *cmdtp, int flag, int argc,
-                               char * const argv[])
+static int do_i2c_show_bus(struct cmd_tbl *cmdtp, int flag, int argc,
+                          char *const argv[])
 {
        if (argc == 1) {
                /* show all busses */
@@ -1802,8 +1813,8 @@ static int do_i2c_show_bus(cmd_tbl_t *cmdtp, int flag, int argc,
  */
 #if defined(CONFIG_SYS_I2C) || defined(CONFIG_I2C_MULTI_BUS) || \
                defined(CONFIG_DM_I2C)
-static int do_i2c_bus_num(cmd_tbl_t *cmdtp, int flag, int argc,
-                               char * const argv[])
+static int do_i2c_bus_num(struct cmd_tbl *cmdtp, int flag, int argc,
+                         char *const argv[])
 {
        int             ret = 0;
        int     bus_no;
@@ -1853,7 +1864,8 @@ static int do_i2c_bus_num(cmd_tbl_t *cmdtp, int flag, int argc,
  * Returns zero on success, CMD_RET_USAGE in case of misuse and negative
  * on error.
  */
-static int do_i2c_bus_speed(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+static int do_i2c_bus_speed(struct cmd_tbl *cmdtp, int flag, int argc,
+                           char *const argv[])
 {
        int speed, ret=0;
 
@@ -1896,7 +1908,8 @@ static int do_i2c_bus_speed(cmd_tbl_t * cmdtp, int flag, int argc, char * const
  * Returns zero on success, CMD_RET_USAGE in case of misuse and negative
  * on error.
  */
-static int do_i2c_mm(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+static int do_i2c_mm(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        return mod_i2c_mem (cmdtp, 1, flag, argc, argv);
 }
@@ -1911,7 +1924,8 @@ static int do_i2c_mm(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
  * Returns zero on success, CMD_RET_USAGE in case of misuse and negative
  * on error.
  */
-static int do_i2c_nm(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+static int do_i2c_nm(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        return mod_i2c_mem (cmdtp, 0, flag, argc, argv);
 }
@@ -1925,7 +1939,8 @@ static int do_i2c_nm(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
  *
  * Returns zero always.
  */
-static int do_i2c_reset(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+static int do_i2c_reset(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
 #if defined(CONFIG_DM_I2C)
        struct udevice *bus;
@@ -1944,7 +1959,7 @@ static int do_i2c_reset(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv
        return 0;
 }
 
-static cmd_tbl_t cmd_i2c_sub[] = {
+static struct cmd_tbl cmd_i2c_sub[] = {
 #if defined(CONFIG_SYS_I2C) || defined(CONFIG_DM_I2C)
        U_BOOT_CMD_MKENT(bus, 1, 1, do_i2c_show_bus, "", ""),
 #endif
@@ -1995,9 +2010,9 @@ static __maybe_unused void i2c_reloc(void)
  * Returns zero on success, CMD_RET_USAGE in case of misuse and negative
  * on error.
  */
-static int do_i2c(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+static int do_i2c(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
-       cmd_tbl_t *c;
+       struct cmd_tbl *c;
 
 #ifdef CONFIG_NEEDS_MANUAL_RELOC
        i2c_reloc();
index 2f93ba7904648837dd7e2b4596e3b5e73a7f1717..b78c38e1590d78702831c506471afa56e33ad482 100644 (file)
--- a/cmd/ide.c
+++ b/cmd/ide.c
@@ -27,7 +27,7 @@
 /* Current I/O Device  */
 static int curr_device;
 
-int do_ide(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_ide(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        if (argc == 2) {
                if (strncmp(argv[1], "res", 3) == 0) {
@@ -40,7 +40,7 @@ int do_ide(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
        return blk_common_cmd(argc, argv, IF_TYPE_IDE, &curr_device);
 }
 
-int do_diskboot(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_diskboot(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        return common_diskboot(cmdtp, "ide", argc, argv);
 }
index 0c425262d0e77df77d912f705d9d93c21c317b7c..c075be623cce04e5938cf7d9e24290f24efb59d2 100644 (file)
--- a/cmd/ini.c
+++ b/cmd/ini.c
@@ -226,7 +226,7 @@ static int ini_handler(void *user, char *section, char *name, char *value)
        return 1;
 }
 
-static int do_ini(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_ini(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        const char *section;
        char *file_address;
index 7fee9674a2862731c1e81f993ef88afd8745c04c..c7e964153b89a3dabca727e9707975418ea4e72a 100644 (file)
--- a/cmd/io.c
+++ b/cmd/io.c
@@ -24,7 +24,7 @@ static ulong base_address;
  * Syntax:
  *     iod{.b, .w, .l} {addr}
  */
-int do_io_iod(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_io_iod(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        ulong addr, length, bytes;
        u8 buf[DISP_LINE_LEN];
@@ -90,7 +90,7 @@ int do_io_iod(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
        return 0;
 }
 
-int do_io_iow(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_io_iow(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        ulong addr, val;
        int size;
index fa6c68b19825a3f7c934712f3b173bae60e04a7c..652ebefb89eed10bb76f1f0189972eb63bb92e79 100644 (file)
@@ -55,7 +55,7 @@ static void do_print_trace(void)
        }
 }
 
-static int do_set_buffer(int argc, char * const argv[])
+static int do_set_buffer(int argc, char *const argv[])
 {
        ulong addr = 0, size = 0;
 
@@ -71,7 +71,7 @@ static int do_set_buffer(int argc, char * const argv[])
        return 0;
 }
 
-static int do_set_region(int argc, char * const argv[])
+static int do_set_region(int argc, char *const argv[])
 {
        ulong addr = 0, size = 0;
 
@@ -87,7 +87,7 @@ static int do_set_region(int argc, char * const argv[])
        return 0;
 }
 
-int do_iotrace(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_iotrace(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        const char *cmd = argc < 2 ? NULL : argv[1];
 
index 52d06b3eedb8b463c8d6908e1dd3855216727261..1d3e28cb3ce02427dc144ba3a0ca940564813d86 100644 (file)
--- a/cmd/irq.c
+++ b/cmd/irq.c
@@ -8,8 +8,8 @@
 #include <command.h>
 #include <irq_func.h>
 
-static int do_interrupts(cmd_tbl_t *cmdtp, int flag, int argc,
-                        char * const argv[])
+static int do_interrupts(struct cmd_tbl *cmdtp, int flag, int argc,
+                        char *const argv[])
 {
 
        if (argc != 2)
@@ -31,7 +31,7 @@ U_BOOT_CMD(
 );
 
 /* Implemented in $(CPU)/interrupts.c */
-int do_irqinfo (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
+int do_irqinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
 
 U_BOOT_CMD(
        irqinfo,    1,    1,     do_irqinfo,
index e21e1f1b1bff2abfa3103b1ff3e5c5e2148cfed9..a0cf4bee041fa1a5d4be5bf39b52db0c8e51a265 100644 (file)
@@ -175,7 +175,8 @@ static int binary_test(char *op, char *arg1, char *arg2, int w)
 }
 
 /* command line interface to the shell test */
-static int do_itest(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_itest(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[])
 {
        int     value, w;
 
index da2580d85d729dd9cfb579e05bf84e1dc2c938d5..9540988e33e5f06ca242b2f51bf9d572e160a921 100644 (file)
 #include <common.h>
 #include <command.h>
 #include <env.h>
+#include <flash.h>
 #include <image.h>
 #include <malloc.h>
 #include <jffs2/jffs2.h>
+#include <linux/bug.h>
 #include <linux/list.h>
 #include <linux/ctype.h>
 #include <cramfs/cramfs_fs.h>
@@ -471,7 +473,8 @@ static struct part_info* jffs2_part_info(struct mtd_device *dev, unsigned int pa
  * @param argv arguments list
  * @return 0 on success, 1 otherwise
  */
-int do_jffs2_fsload(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_jffs2_fsload(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[])
 {
        char *fsname;
        char *filename;
@@ -533,7 +536,7 @@ int do_jffs2_fsload(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
  * @param argv arguments list
  * @return 0 on success, 1 otherwise
  */
-int do_jffs2_ls(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_jffs2_ls(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        char *filename = "/";
        int ret;
@@ -571,7 +574,8 @@ int do_jffs2_ls(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
  * @param argv arguments list
  * @return 0 on success, 1 otherwise
  */
-int do_jffs2_fsinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_jffs2_fsinfo(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[])
 {
        struct part_info *part;
        char *fsname;
index 50ffa509abfeb77423436e52972e51de05fe83fa..9433fa886c25ec87ec6fe64e353468de2c5c3774 100644 (file)
--- a/cmd/led.c
+++ b/cmd/led.c
@@ -71,7 +71,7 @@ static int list_leds(void)
        return 0;
 }
 
-int do_led(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_led(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        enum led_state_t cmd;
        const char *led_label;
index 7d40d8db58e0c4b412f187b66bbf0b093253909f..86cd969e4072caf24e0b34fe8a569583b7a97f37 100644 (file)
@@ -85,7 +85,7 @@ void __weak __led_blink(led_id_t mask, int freq)
 {
 }
 
-int do_legacy_led(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_legacy_led(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int i, match = 0;
        enum led_cmd cmd;
index c5b04c331b11336f5ad8e403cf0169069bbb25d3..15411b5a92d56ed09fd3e878c1d8032b8305c114 100644 (file)
@@ -12,7 +12,8 @@
 #include "license_data_gz.h"
 #include "license_data_size.h"
 
-static int do_license(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_license(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        char *dst;
        unsigned long len = data_size;
index fab30fe894318a9308bc7cb41e948b9b6d229879..63a94145430a8e465cff44b411e565fd8b21ccb0 100644 (file)
@@ -19,6 +19,8 @@
 #include <exports.h>
 #include <serial.h>
 #include <xyzModem.h>
+#include <asm/cache.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -40,8 +42,8 @@ static int do_echo = 1;
 /* -------------------------------------------------------------------- */
 
 #if defined(CONFIG_CMD_LOADS)
-static int do_load_serial(cmd_tbl_t *cmdtp, int flag, int argc,
-                         char * const argv[])
+static int do_load_serial(struct cmd_tbl *cmdtp, int flag, int argc,
+                         char *const argv[])
 {
        long offset = 0;
        ulong addr;
@@ -241,7 +243,8 @@ static int read_record(char *buf, ulong len)
 
 #if defined(CONFIG_CMD_SAVES)
 
-int do_save_serial (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_save_serial(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        ulong offset = 0;
        ulong size   = 0;
@@ -418,8 +421,8 @@ static int  his_pad_count;  /* number of pad chars he needs */
 static char his_pad_char;   /* pad chars he needs */
 static char his_quote;      /* quote chars he'll use */
 
-static int do_load_serial_bin(cmd_tbl_t *cmdtp, int flag, int argc,
-                             char * const argv[])
+static int do_load_serial_bin(struct cmd_tbl *cmdtp, int flag, int argc,
+                             char *const argv[])
 {
        ulong offset = 0;
        ulong addr;
index 1e3936aeeb7121fc24658f81cb5a2a59a10a1dfb..664f7bd7ac4ed7a0e9eadc88ef53fc7552112b70 100644 (file)
--- a/cmd/log.c
+++ b/cmd/log.c
@@ -11,8 +11,8 @@
 
 static char log_fmt_chars[LOGF_COUNT] = "clFLfm";
 
-static int do_log_level(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_log_level(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        if (argc > 1)
                gd->default_log_level = simple_strtol(argv[1], NULL, 10);
@@ -22,8 +22,8 @@ static int do_log_level(cmd_tbl_t *cmdtp, int flag, int argc,
        return 0;
 }
 
-static int do_log_format(cmd_tbl_t *cmdtp, int flag, int argc,
-                        char * const argv[])
+static int do_log_format(struct cmd_tbl *cmdtp, int flag, int argc,
+                        char *const argv[])
 {
        int i;
 
@@ -58,7 +58,8 @@ static int do_log_format(cmd_tbl_t *cmdtp, int flag, int argc,
        return 0;
 }
 
-static int do_log_rec(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_log_rec(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        enum log_category_t cat;
        enum log_level_t level;
@@ -94,7 +95,7 @@ static int do_log_rec(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return 0;
 }
 
-static cmd_tbl_t log_sub[] = {
+static struct cmd_tbl log_sub[] = {
        U_BOOT_CMD_MKENT(level, CONFIG_SYS_MAXARGS, 1, do_log_level, "", ""),
 #ifdef CONFIG_LOG_TEST
        U_BOOT_CMD_MKENT(test, 2, 1, do_log_test, "", ""),
@@ -103,9 +104,9 @@ static cmd_tbl_t log_sub[] = {
        U_BOOT_CMD_MKENT(rec, CONFIG_SYS_MAXARGS, 1, do_log_rec, "", ""),
 };
 
-static int do_log(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_log(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
-       cmd_tbl_t *cp;
+       struct cmd_tbl *cp;
 
        if (argc < 2)
                return CMD_RET_USAGE;
index e3b9cc75ac2b9a90a383baa1e7e3b3b4f87ea2d8..3b8db0a8538584f7520392e600f85d9af8809e97 100644 (file)
@@ -17,7 +17,8 @@
 
 #include <lzma/LzmaTools.h>
 
-static int do_lzmadec(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+static int do_lzmadec(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        unsigned long src, dst;
        SizeT src_len = ~0UL, dst_len = ~0UL;
index 4227d10936b948adc94c3d5959d887606a08ed15..a39e1168a57915227f2931f0ab9bcfd92897a821 100644 (file)
--- a/cmd/mac.c
+++ b/cmd/mac.c
@@ -7,7 +7,8 @@
 #include <common.h>
 #include <command.h>
 
-extern int do_mac(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
+extern int do_mac(struct cmd_tbl *cmdtp, int flag, int argc,
+                 char *const argv[]);
 
 U_BOOT_CMD(
        mac, 3, 1,  do_mac,
index 63cbae0364c1fe2437ea8d6c069aea327b647c6f..5ae3ddf85f82074960b7bdfbef83f9df5242da7a 100644 (file)
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
+#include <image.h>
 #include <mapmem.h>
 #include <u-boot/md5.h>
 #include <asm/io.h>
@@ -72,7 +73,7 @@ static int parse_verify_sum(char *verify_str, u8 *vsum)
        return 0;
 }
 
-int do_md5sum(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_md5sum(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        ulong addr, len;
        unsigned int i;
@@ -135,7 +136,8 @@ int do_md5sum(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return 0;
 }
 #else
-static int do_md5sum(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_md5sum(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        unsigned long addr, len;
        unsigned int i;
index 22c8fbe856f37f482eb87f823f7baa03db22aaff..c48bb51237c5cf4ac6a8750c83305a2e351d85f3 100644 (file)
@@ -190,7 +190,8 @@ static int extract_phy_range(char *const argv[], int argc, struct mii_dev **bus,
 }
 
 /* ---------------------------------------------------------------- */
-static int do_mdio(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_mdio(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        char op[2];
        int addrlo, addrhi, reglo, reghi, devadlo, devadhi;
index 18f0510098be60355b4252815fd3401a87a2cb3c..9b97f7bf694458e39e31ed981504790c6bf6d986 100644 (file)
--- a/cmd/mem.c
+++ b/cmd/mem.c
 #include <console.h>
 #include <flash.h>
 #include <hash.h>
+#include <log.h>
 #include <mapmem.h>
+#include <rand.h>
 #include <watchdog.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 #include <linux/compiler.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
-static int mod_mem(cmd_tbl_t *, int, int, int, char * const []);
+#ifndef CONFIG_SYS_MEMTEST_SCRATCH
+#define CONFIG_SYS_MEMTEST_SCRATCH 0
+#endif
+
+static int mod_mem(struct cmd_tbl *, int, int, int, char * const []);
 
 /* Display values from last command.
  * Memory modify remembered values are different from display memory.
@@ -42,7 +50,8 @@ static        ulong   base_address = 0;
  *     md{.b, .w, .l, .q} {addr} {len}
  */
 #define DISP_LINE_LEN  16
-static int do_mem_md(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_mem_md(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        ulong   addr, length, bytes;
        const void *buf;
@@ -92,16 +101,20 @@ static int do_mem_md(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return (rc);
 }
 
-static int do_mem_mm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_mem_mm(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        return mod_mem (cmdtp, 1, flag, argc, argv);
 }
-static int do_mem_nm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+
+static int do_mem_nm(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        return mod_mem (cmdtp, 0, flag, argc, argv);
 }
 
-static int do_mem_mw(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_mem_mw(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
 #ifdef MEM_SUPPORT_64BIT_DATA
        u64 writeval;
@@ -162,7 +175,8 @@ static int do_mem_mw(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 }
 
 #ifdef CONFIG_CMD_MX_CYCLIC
-static int do_mem_mdc(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_mem_mdc(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        int i;
        ulong count;
@@ -177,7 +191,7 @@ static int do_mem_mdc(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
                /* delay for <count> ms... */
                for (i=0; i<count; i++)
-                       udelay (1000);
+                       udelay(1000);
 
                /* check for ctrl-c to abort... */
                if (ctrlc()) {
@@ -189,7 +203,8 @@ static int do_mem_mdc(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return 0;
 }
 
-static int do_mem_mwc(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_mem_mwc(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        int i;
        ulong count;
@@ -204,7 +219,7 @@ static int do_mem_mwc(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
                /* delay for <count> ms... */
                for (i=0; i<count; i++)
-                       udelay (1000);
+                       udelay(1000);
 
                /* check for ctrl-c to abort... */
                if (ctrlc()) {
@@ -217,7 +232,8 @@ static int do_mem_mwc(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 }
 #endif /* CONFIG_CMD_MX_CYCLIC */
 
-static int do_mem_cmp(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_mem_cmp(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        ulong   addr1, addr2, count, ngood, bytes;
        int     size;
@@ -297,7 +313,8 @@ static int do_mem_cmp(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return rcode;
 }
 
-static int do_mem_cp(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_mem_cp(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        ulong   addr, dest, count;
        void    *src, *dst;
@@ -355,8 +372,8 @@ static int do_mem_cp(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return 0;
 }
 
-static int do_mem_base(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+static int do_mem_base(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        if (argc > 1) {
                /* Set new base address.
@@ -369,8 +386,8 @@ static int do_mem_base(cmd_tbl_t *cmdtp, int flag, int argc,
        return 0;
 }
 
-static int do_mem_loop(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+static int do_mem_loop(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        ulong   addr, length, i, bytes;
        int     size;
@@ -467,8 +484,8 @@ static int do_mem_loop(cmd_tbl_t *cmdtp, int flag, int argc,
 }
 
 #ifdef CONFIG_LOOPW
-static int do_mem_loopw(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_mem_loopw(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        ulong   addr, length, i, bytes;
        int     size;
@@ -914,8 +931,8 @@ static ulong mem_test_quick(vu_long *buf, ulong start_addr, ulong end_addr,
  * configured using CONFIG_SYS_ALT_MEMTEST. The complete test loops until
  * interrupted by ctrl-c or by a failure of one of the sub-tests.
  */
-static int do_mem_mtest(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_mem_mtest(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        ulong start, end;
        vu_long scratch_space;
@@ -1002,7 +1019,8 @@ static int do_mem_mtest(cmd_tbl_t *cmdtp, int flag, int argc,
  *     nm{.b, .w, .l, .q} {addr}
  */
 static int
-mod_mem(cmd_tbl_t *cmdtp, int incrflag, int flag, int argc, char * const argv[])
+mod_mem(struct cmd_tbl *cmdtp, int incrflag, int flag, int argc,
+       char *const argv[])
 {
        ulong   addr;
 #ifdef MEM_SUPPORT_64BIT_DATA
@@ -1106,7 +1124,8 @@ mod_mem(cmd_tbl_t *cmdtp, int incrflag, int flag, int argc, char * const argv[])
 
 #ifdef CONFIG_CMD_CRC32
 
-static int do_mem_crc(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_mem_crc(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        int flags = 0;
        int ac;
@@ -1131,7 +1150,8 @@ static int do_mem_crc(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 #endif
 
 #ifdef CONFIG_CMD_RANDOM
-static int do_random(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_random(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        unsigned long addr, len;
        unsigned long seed; // NOT INITIALIZED ON PURPOSE
@@ -1259,8 +1279,8 @@ U_BOOT_CMD(
 #endif
 
 #ifdef CONFIG_CMD_MEMINFO
-static int do_mem_info(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+static int do_mem_info(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        puts("DRAM:  ");
        print_size(gd->ram_size, "\n");
index 583762a345392ab0589d817edaf49f2d8497f7a4..31f5b36ade0acca5c428b17051c76a8c93ae2119 100644 (file)
@@ -14,7 +14,7 @@
 #include <command.h>
 #include <asm/asm.h>
 
-int do_frd (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+int do_frd(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        unsigned int fslnum;
        unsigned int num;
@@ -169,7 +169,7 @@ int do_frd (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
        return 0;
 }
 
-int do_fwr (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+int do_fwr(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        unsigned int fslnum;
        unsigned int num;
@@ -324,7 +324,7 @@ int do_fwr (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
 
 }
 
-int do_rspr (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+int do_rspr(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        unsigned int reg = 0;
        unsigned int val = 0;
index 23ee1e6cfa2c90b430c9e2cea2c883349245808e..b52a55dc3397244059de7414d4f0f1e689c02f22 100644 (file)
--- a/cmd/mii.c
+++ b/cmd/mii.c
@@ -277,7 +277,7 @@ static void extract_range(
 }
 
 /* ---------------------------------------------------------------- */
-static int do_mii(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_mii(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        char            op[2];
        unsigned char   addrlo, addrhi, reglo, reghi;
index a1eef72a6c2eb7f2ff4603b074d7dd55fe8d143f..20ab943494e94504e729929c7279e4a3bd1b017f 100644 (file)
 #include <common.h>
 #include <command.h>
 #include <console.h>
+#include <linux/delay.h>
 
-static int do_sleep(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_sleep(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[])
 {
        ulong start = get_timer(0);
        ulong mdelay = 0;
@@ -58,7 +60,8 @@ U_BOOT_CMD(
 );
 
 #ifdef CONFIG_CMD_TIMER
-static int do_timer(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_timer(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[])
 {
        static ulong start;
 
index 6142ec8e2058abda9f5eb425e83fd3eb246e2416..97e5d91859c9fc9e2ec200fcc128c4c0d1a4b5a6 100644 (file)
--- a/cmd/mmc.c
+++ b/cmd/mmc.c
@@ -5,9 +5,11 @@
  */
 
 #include <common.h>
+#include <blk.h>
 #include <command.h>
 #include <console.h>
 #include <mmc.h>
+#include <part.h>
 #include <sparse_format.h>
 #include <image-sparse.h>
 
@@ -140,7 +142,9 @@ static struct mmc *init_mmc_device(int dev, bool force_init)
 
        return mmc;
 }
-static int do_mmcinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+
+static int do_mmcinfo(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        struct mmc *mmc;
 
@@ -173,8 +177,9 @@ static int confirm_key_prog(void)
        puts("Authentication key programming aborted\n");
        return 0;
 }
-static int do_mmcrpmb_key(cmd_tbl_t *cmdtp, int flag,
-                         int argc, char * const argv[])
+
+static int do_mmcrpmb_key(struct cmd_tbl *cmdtp, int flag,
+                         int argc, char *const argv[])
 {
        void *key_addr;
        struct mmc *mmc = find_mmc_device(curr_device);
@@ -191,8 +196,9 @@ static int do_mmcrpmb_key(cmd_tbl_t *cmdtp, int flag,
        }
        return CMD_RET_SUCCESS;
 }
-static int do_mmcrpmb_read(cmd_tbl_t *cmdtp, int flag,
-                          int argc, char * const argv[])
+
+static int do_mmcrpmb_read(struct cmd_tbl *cmdtp, int flag,
+                          int argc, char *const argv[])
 {
        u16 blk, cnt;
        void *addr;
@@ -219,8 +225,9 @@ static int do_mmcrpmb_read(cmd_tbl_t *cmdtp, int flag,
                return CMD_RET_FAILURE;
        return CMD_RET_SUCCESS;
 }
-static int do_mmcrpmb_write(cmd_tbl_t *cmdtp, int flag,
-                           int argc, char * const argv[])
+
+static int do_mmcrpmb_write(struct cmd_tbl *cmdtp, int flag,
+                           int argc, char *const argv[])
 {
        u16 blk, cnt;
        void *addr;
@@ -245,8 +252,9 @@ static int do_mmcrpmb_write(cmd_tbl_t *cmdtp, int flag,
                return CMD_RET_FAILURE;
        return CMD_RET_SUCCESS;
 }
-static int do_mmcrpmb_counter(cmd_tbl_t *cmdtp, int flag,
-                             int argc, char * const argv[])
+
+static int do_mmcrpmb_counter(struct cmd_tbl *cmdtp, int flag,
+                             int argc, char *const argv[])
 {
        unsigned long counter;
        struct mmc *mmc = find_mmc_device(curr_device);
@@ -257,17 +265,17 @@ static int do_mmcrpmb_counter(cmd_tbl_t *cmdtp, int flag,
        return CMD_RET_SUCCESS;
 }
 
-static cmd_tbl_t cmd_rpmb[] = {
+static struct cmd_tbl cmd_rpmb[] = {
        U_BOOT_CMD_MKENT(key, 2, 0, do_mmcrpmb_key, "", ""),
        U_BOOT_CMD_MKENT(read, 5, 1, do_mmcrpmb_read, "", ""),
        U_BOOT_CMD_MKENT(write, 5, 0, do_mmcrpmb_write, "", ""),
        U_BOOT_CMD_MKENT(counter, 1, 1, do_mmcrpmb_counter, "", ""),
 };
 
-static int do_mmcrpmb(cmd_tbl_t *cmdtp, int flag,
-                     int argc, char * const argv[])
+static int do_mmcrpmb(struct cmd_tbl *cmdtp, int flag,
+                     int argc, char *const argv[])
 {
-       cmd_tbl_t *cp;
+       struct cmd_tbl *cp;
        struct mmc *mmc;
        char original_part;
        int ret;
@@ -314,8 +322,8 @@ static int do_mmcrpmb(cmd_tbl_t *cmdtp, int flag,
 }
 #endif
 
-static int do_mmc_read(cmd_tbl_t *cmdtp, int flag,
-                      int argc, char * const argv[])
+static int do_mmc_read(struct cmd_tbl *cmdtp, int flag,
+                      int argc, char *const argv[])
 {
        struct mmc *mmc;
        u32 blk, cnt, n;
@@ -356,8 +364,8 @@ static lbaint_t mmc_sparse_reserve(struct sparse_storage *info,
        return blkcnt;
 }
 
-static int do_mmc_sparse_write(cmd_tbl_t *cmdtp, int flag,
-                              int argc, char * const argv[])
+static int do_mmc_sparse_write(struct cmd_tbl *cmdtp, int flag,
+                              int argc, char *const argv[])
 {
        struct sparse_storage sparse;
        struct blk_desc *dev_desc;
@@ -407,8 +415,8 @@ static int do_mmc_sparse_write(cmd_tbl_t *cmdtp, int flag,
 #endif
 
 #if CONFIG_IS_ENABLED(MMC_WRITE)
-static int do_mmc_write(cmd_tbl_t *cmdtp, int flag,
-                       int argc, char * const argv[])
+static int do_mmc_write(struct cmd_tbl *cmdtp, int flag,
+                       int argc, char *const argv[])
 {
        struct mmc *mmc;
        u32 blk, cnt, n;
@@ -437,8 +445,9 @@ static int do_mmc_write(cmd_tbl_t *cmdtp, int flag,
 
        return (n == cnt) ? CMD_RET_SUCCESS : CMD_RET_FAILURE;
 }
-static int do_mmc_erase(cmd_tbl_t *cmdtp, int flag,
-                       int argc, char * const argv[])
+
+static int do_mmc_erase(struct cmd_tbl *cmdtp, int flag,
+                       int argc, char *const argv[])
 {
        struct mmc *mmc;
        u32 blk, cnt, n;
@@ -467,8 +476,8 @@ static int do_mmc_erase(cmd_tbl_t *cmdtp, int flag,
 }
 #endif
 
-static int do_mmc_rescan(cmd_tbl_t *cmdtp, int flag,
-                        int argc, char * const argv[])
+static int do_mmc_rescan(struct cmd_tbl *cmdtp, int flag,
+                        int argc, char *const argv[])
 {
        struct mmc *mmc;
 
@@ -478,8 +487,9 @@ static int do_mmc_rescan(cmd_tbl_t *cmdtp, int flag,
 
        return CMD_RET_SUCCESS;
 }
-static int do_mmc_part(cmd_tbl_t *cmdtp, int flag,
-                      int argc, char * const argv[])
+
+static int do_mmc_part(struct cmd_tbl *cmdtp, int flag,
+                      int argc, char *const argv[])
 {
        struct blk_desc *mmc_dev;
        struct mmc *mmc;
@@ -497,8 +507,9 @@ static int do_mmc_part(cmd_tbl_t *cmdtp, int flag,
        puts("get mmc type error!\n");
        return CMD_RET_FAILURE;
 }
-static int do_mmc_dev(cmd_tbl_t *cmdtp, int flag,
-                     int argc, char * const argv[])
+
+static int do_mmc_dev(struct cmd_tbl *cmdtp, int flag,
+                     int argc, char *const argv[])
 {
        int dev, part = 0, ret;
        struct mmc *mmc;
@@ -538,8 +549,9 @@ static int do_mmc_dev(cmd_tbl_t *cmdtp, int flag,
 
        return CMD_RET_SUCCESS;
 }
-static int do_mmc_list(cmd_tbl_t *cmdtp, int flag,
-                      int argc, char * const argv[])
+
+static int do_mmc_list(struct cmd_tbl *cmdtp, int flag,
+                      int argc, char *const argv[])
 {
        print_mmc_devices('\n');
        return CMD_RET_SUCCESS;
@@ -547,7 +559,7 @@ static int do_mmc_list(cmd_tbl_t *cmdtp, int flag,
 
 #if CONFIG_IS_ENABLED(MMC_HW_PARTITIONING)
 static int parse_hwpart_user(struct mmc_hwpart_conf *pconf,
-                            int argc, char * const argv[])
+                            int argc, char *const argv[])
 {
        int i = 0;
 
@@ -581,7 +593,7 @@ static int parse_hwpart_user(struct mmc_hwpart_conf *pconf,
 }
 
 static int parse_hwpart_gp(struct mmc_hwpart_conf *pconf, int pidx,
-                          int argc, char * const argv[])
+                          int argc, char *const argv[])
 {
        int i;
 
@@ -614,8 +626,8 @@ static int parse_hwpart_gp(struct mmc_hwpart_conf *pconf, int pidx,
        return i;
 }
 
-static int do_mmc_hwpartition(cmd_tbl_t *cmdtp, int flag,
-                             int argc, char * const argv[])
+static int do_mmc_hwpartition(struct cmd_tbl *cmdtp, int flag,
+                             int argc, char *const argv[])
 {
        struct mmc *mmc;
        struct mmc_hwpart_conf pconf = { };
@@ -698,8 +710,8 @@ static int do_mmc_hwpartition(cmd_tbl_t *cmdtp, int flag,
 #endif
 
 #ifdef CONFIG_SUPPORT_EMMC_BOOT
-static int do_mmc_bootbus(cmd_tbl_t *cmdtp, int flag,
-                         int argc, char * const argv[])
+static int do_mmc_bootbus(struct cmd_tbl *cmdtp, int flag,
+                         int argc, char *const argv[])
 {
        int dev;
        struct mmc *mmc;
@@ -724,8 +736,9 @@ static int do_mmc_bootbus(cmd_tbl_t *cmdtp, int flag,
        /* acknowledge to be sent during boot operation */
        return mmc_set_boot_bus_width(mmc, width, reset, mode);
 }
-static int do_mmc_boot_resize(cmd_tbl_t *cmdtp, int flag,
-                             int argc, char * const argv[])
+
+static int do_mmc_boot_resize(struct cmd_tbl *cmdtp, int flag,
+                             int argc, char *const argv[])
 {
        int dev;
        struct mmc *mmc;
@@ -777,8 +790,8 @@ static int mmc_partconf_print(struct mmc *mmc)
        return CMD_RET_SUCCESS;
 }
 
-static int do_mmc_partconf(cmd_tbl_t *cmdtp, int flag,
-                          int argc, char * const argv[])
+static int do_mmc_partconf(struct cmd_tbl *cmdtp, int flag,
+                          int argc, char *const argv[])
 {
        int dev;
        struct mmc *mmc;
@@ -808,8 +821,9 @@ static int do_mmc_partconf(cmd_tbl_t *cmdtp, int flag,
        /* acknowledge to be sent during boot operation */
        return mmc_set_part_conf(mmc, ack, part_num, access);
 }
-static int do_mmc_rst_func(cmd_tbl_t *cmdtp, int flag,
-                          int argc, char * const argv[])
+
+static int do_mmc_rst_func(struct cmd_tbl *cmdtp, int flag,
+                          int argc, char *const argv[])
 {
        int dev;
        struct mmc *mmc;
@@ -843,8 +857,8 @@ static int do_mmc_rst_func(cmd_tbl_t *cmdtp, int flag,
        return mmc_set_rst_n_function(mmc, enable);
 }
 #endif
-static int do_mmc_setdsr(cmd_tbl_t *cmdtp, int flag,
-                        int argc, char * const argv[])
+static int do_mmc_setdsr(struct cmd_tbl *cmdtp, int flag,
+                        int argc, char *const argv[])
 {
        struct mmc *mmc;
        u32 val;
@@ -872,8 +886,8 @@ static int do_mmc_setdsr(cmd_tbl_t *cmdtp, int flag,
 }
 
 #ifdef CONFIG_CMD_BKOPS_ENABLE
-static int do_mmc_bkops_enable(cmd_tbl_t *cmdtp, int flag,
-                                  int argc, char * const argv[])
+static int do_mmc_bkops_enable(struct cmd_tbl *cmdtp, int flag,
+                              int argc, char *const argv[])
 {
        int dev;
        struct mmc *mmc;
@@ -896,7 +910,7 @@ static int do_mmc_bkops_enable(cmd_tbl_t *cmdtp, int flag,
 }
 #endif
 
-static int do_mmc_boot_wp(cmd_tbl_t *cmdtp, int flag,
+static int do_mmc_boot_wp(struct cmd_tbl *cmdtp, int flag,
                          int argc, char * const argv[])
 {
        int err;
@@ -916,7 +930,7 @@ static int do_mmc_boot_wp(cmd_tbl_t *cmdtp, int flag,
        return CMD_RET_SUCCESS;
 }
 
-static cmd_tbl_t cmd_mmc[] = {
+static struct cmd_tbl cmd_mmc[] = {
        U_BOOT_CMD_MKENT(info, 1, 0, do_mmcinfo, "", ""),
        U_BOOT_CMD_MKENT(read, 4, 1, do_mmc_read, "", ""),
        U_BOOT_CMD_MKENT(wp, 1, 0, do_mmc_boot_wp, "", ""),
@@ -949,9 +963,10 @@ static cmd_tbl_t cmd_mmc[] = {
 #endif
 };
 
-static int do_mmcops(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_mmcops(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
-       cmd_tbl_t *cp;
+       struct cmd_tbl *cp;
 
        cp = find_cmd_tbl(argv[1], cmd_mmc, ARRAY_SIZE(cmd_mmc));
 
index 4c8f5fc3fae4545a44df5a04c18e7f4e5b3157ab..c2b5235a373abefd0545ad103fe92e13d67499ab 100644 (file)
--- a/cmd/mp.c
+++ b/cmd/mp.c
@@ -26,7 +26,7 @@ static int cpu_status_all(void)
 }
 
 static int
-cpu_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+cpu_cmd(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        unsigned long cpuid;
 
index f407c5e4450ac438b0b62c685c37adbac99e14a8..485a963bdd0ffdcd7ac9db107994e275db1661e5 100644 (file)
--- a/cmd/mtd.c
+++ b/cmd/mtd.c
@@ -195,8 +195,8 @@ static bool mtd_oob_write_is_empty(struct mtd_oob_ops *op)
        return true;
 }
 
-static int do_mtd_list(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+static int do_mtd_list(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        struct mtd_info *mtd;
        int dev_nb = 0;
@@ -240,7 +240,8 @@ static int mtd_special_write_oob(struct mtd_info *mtd, u64 off,
        return ret;
 }
 
-static int do_mtd_io(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_mtd_io(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        bool dump, read, raw, woob, write_empty_pages, has_pages = false;
        u64 start_off, off, len, remaining, default_len;
@@ -382,8 +383,8 @@ out_put_mtd:
        return ret;
 }
 
-static int do_mtd_erase(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_mtd_erase(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        struct erase_info erase_op = {};
        struct mtd_info *mtd;
@@ -454,8 +455,8 @@ out_put_mtd:
        return ret;
 }
 
-static int do_mtd_bad(cmd_tbl_t *cmdtp, int flag, int argc,
-                     char * const argv[])
+static int do_mtd_bad(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        struct mtd_info *mtd;
        loff_t off;
@@ -485,7 +486,7 @@ out_put_mtd:
 }
 
 #ifdef CONFIG_AUTO_COMPLETE
-static int mtd_name_complete(int argc, char * const argv[], char last_char,
+static int mtd_name_complete(int argc, char *const argv[], char last_char,
                             int maxv, char *cmdv[])
 {
        int len = 0, n_found = 0;
index b40c2afadda2b60c3be134b384b0cc68cab20645..5220142b9ab25d704229832d84fe46e1241ff391 100644 (file)
@@ -73,6 +73,7 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
+#include <log.h>
 #include <malloc.h>
 #include <jffs2/load_kernel.h>
 #include <linux/list.h>
@@ -1915,7 +1916,8 @@ static struct part_info* mtd_part_info(struct mtd_device *dev, unsigned int part
  * @param argv arguments list
  * @return 0 on success, 1 otherwise
  */
-static int do_chpart(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_chpart(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
 /* command line only */
        struct mtd_device *dev;
@@ -1953,8 +1955,8 @@ static int do_chpart(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
  * @param argv arguments list
  * @return 0 on success, 1 otherwise
  */
-static int do_mtdparts(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+static int do_mtdparts(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        if (argc == 2) {
                if (strcmp(argv[1], "default") == 0) {
index ef53153c46b5ee5b3285d7e4294db853312ea43e..a27b0df8ae78ed59d317fab9137d7050be8dd4a6 100644 (file)
@@ -8,7 +8,9 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
+#include <flash.h>
 #include <image.h>
+#include <net.h>
 #include <vsprintf.h>
 #include <errno.h>
 #include <dm.h>
@@ -827,7 +829,7 @@ else
 #endif
 #endif /* DEFAULT_BUBT_DST */
 
-int do_bubt_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_bubt_cmd(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        struct bubt_dev *src, *dst;
        size_t image_size;
index 4de6892a01b845262aefe40cfea0da550b7e8f5c..92d039af8f52c6bf9ceb61bffbc58d713e52c1e8 100644 (file)
@@ -20,7 +20,9 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
 #include <image.h>
+#include <asm/cache.h>
 #include <linux/mtd/mtd.h>
 #include <command.h>
 #include <console.h>
@@ -187,7 +189,7 @@ static void do_nand_status(struct mtd_info *mtd)
 #ifdef CONFIG_ENV_OFFSET_OOB
 unsigned long nand_env_oob_offset;
 
-int do_nand_env_oob(cmd_tbl_t *cmdtp, int argc, char *const argv[])
+int do_nand_env_oob(struct cmd_tbl *cmdtp, int argc, char *const argv[])
 {
        int ret;
        uint32_t oob_buf[ENV_OFFSET_SIZE/sizeof(uint32_t)];
@@ -374,7 +376,8 @@ static void adjust_size_for_badblocks(loff_t *size, loff_t offset, int dev)
        }
 }
 
-static int do_nand(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_nand(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        int i, ret = 0;
        ulong addr;
@@ -843,7 +846,7 @@ U_BOOT_CMD(
        "NAND sub-system", nand_help_text
 );
 
-static int nand_load_image(cmd_tbl_t *cmdtp, struct mtd_info *mtd,
+static int nand_load_image(struct cmd_tbl *cmdtp, struct mtd_info *mtd,
                           ulong offset, ulong addr, char *cmd)
 {
        int r;
@@ -931,8 +934,8 @@ static int nand_load_image(cmd_tbl_t *cmdtp, struct mtd_info *mtd,
        return bootm_maybe_autostart(cmdtp, cmd);
 }
 
-static int do_nandboot(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+static int do_nandboot(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        char *boot_device = NULL;
        int idx;
index 1b724cc57090e7ab81eecf750c48157d1fa57ce8..25390b0474f4c9032cea1c678a1053e9d195a3f5 100644 (file)
--- a/cmd/net.c
+++ b/cmd/net.c
@@ -8,15 +8,17 @@
  * Boot support
  */
 #include <common.h>
+#include <bootstage.h>
 #include <command.h>
 #include <env.h>
 #include <image.h>
 #include <net.h>
 
-static int netboot_common(enum proto_t, cmd_tbl_t *, int, char * const []);
+static int netboot_common(enum proto_t, struct cmd_tbl *, int, char * const []);
 
 #ifdef CONFIG_CMD_BOOTP
-static int do_bootp(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_bootp(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[])
 {
        return netboot_common(BOOTP, cmdtp, argc, argv);
 }
@@ -29,7 +31,7 @@ U_BOOT_CMD(
 #endif
 
 #ifdef CONFIG_CMD_TFTPBOOT
-int do_tftpb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_tftpb(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int ret;
 
@@ -47,7 +49,8 @@ U_BOOT_CMD(
 #endif
 
 #ifdef CONFIG_CMD_TFTPPUT
-static int do_tftpput(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_tftpput(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        return netboot_common(TFTPPUT, cmdtp, argc, argv);
 }
@@ -60,7 +63,8 @@ U_BOOT_CMD(
 #endif
 
 #ifdef CONFIG_CMD_TFTPSRV
-static int do_tftpsrv(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+static int do_tftpsrv(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        return netboot_common(TFTPSRV, cmdtp, argc, argv);
 }
@@ -77,7 +81,7 @@ U_BOOT_CMD(
 
 
 #ifdef CONFIG_CMD_RARP
-int do_rarpb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_rarpb(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        return netboot_common(RARP, cmdtp, argc, argv);
 }
@@ -90,7 +94,8 @@ U_BOOT_CMD(
 #endif
 
 #if defined(CONFIG_CMD_DHCP)
-static int do_dhcp(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_dhcp(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        return netboot_common(DHCP, cmdtp, argc, argv);
 }
@@ -103,7 +108,8 @@ U_BOOT_CMD(
 #endif
 
 #if defined(CONFIG_CMD_NFS)
-static int do_nfs(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_nfs(struct cmd_tbl *cmdtp, int flag, int argc,
+                 char *const argv[])
 {
        return netboot_common(NFS, cmdtp, argc, argv);
 }
@@ -176,8 +182,8 @@ static void netboot_update_env(void)
 #endif
 }
 
-static int netboot_common(enum proto_t proto, cmd_tbl_t *cmdtp, int argc,
-               char * const argv[])
+static int netboot_common(enum proto_t proto, struct cmd_tbl *cmdtp, int argc,
+                         char *const argv[])
 {
        char *s;
        char *end;
@@ -272,7 +278,8 @@ static int netboot_common(enum proto_t proto, cmd_tbl_t *cmdtp, int argc,
 }
 
 #if defined(CONFIG_CMD_PING)
-static int do_ping(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_ping(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        if (argc < 2)
                return CMD_RET_USAGE;
@@ -320,7 +327,7 @@ static void cdp_update_env(void)
        }
 }
 
-int do_cdp(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_cdp(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int r;
 
@@ -343,7 +350,7 @@ U_BOOT_CMD(
 #endif
 
 #if defined(CONFIG_CMD_SNTP)
-int do_sntp(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_sntp(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        char *toff;
 
@@ -384,7 +391,7 @@ U_BOOT_CMD(
 #endif
 
 #if defined(CONFIG_CMD_DNS)
-int do_dns(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_dns(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        if (argc == 1)
                return CMD_RET_USAGE;
@@ -430,8 +437,8 @@ U_BOOT_CMD(
 #endif /* CONFIG_CMD_DNS */
 
 #if defined(CONFIG_CMD_LINK_LOCAL)
-static int do_link_local(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_link_local(struct cmd_tbl *cmdtp, int flag, int argc,
+                        char *const argv[])
 {
        char tmp[22];
 
index 966c134059562b90056465ff44802ae672e85691..08d49df220a1bf23057eef8bd022cef0d600d424 100644 (file)
 #include <console.h>
 #include <env.h>
 #include <env_internal.h>
+#include <log.h>
+#include <net.h>
 #include <search.h>
 #include <errno.h>
 #include <malloc.h>
 #include <mapmem.h>
+#include <linux/bitops.h>
 #include <u-boot/crc.h>
 #include <watchdog.h>
 #include <linux/stddef.h>
@@ -120,8 +123,8 @@ static int env_print(char *name, int flag)
        return 0;
 }
 
-static int do_env_print(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_env_print(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        int i;
        int rcode = 0;
@@ -162,8 +165,8 @@ static int do_env_print(cmd_tbl_t *cmdtp, int flag, int argc,
 }
 
 #ifdef CONFIG_CMD_GREPENV
-static int do_env_grep(cmd_tbl_t *cmdtp, int flag,
-                      int argc, char * const argv[])
+static int do_env_grep(struct cmd_tbl *cmdtp, int flag,
+                      int argc, char *const argv[])
 {
        char *res = NULL;
        int len, grep_how, grep_what;
@@ -222,7 +225,7 @@ DONE:
  * Set a new environment variable,
  * or replace or delete an existing one.
  */
-static int _do_env_set(int flag, int argc, char * const argv[], int env_flag)
+static int _do_env_set(int flag, int argc, char *const argv[], int env_flag)
 {
        int   i, len;
        char  *name, *value, *s;
@@ -378,7 +381,8 @@ int eth_env_set_enetaddr(const char *name, const uint8_t *enetaddr)
 }
 
 #ifndef CONFIG_SPL_BUILD
-static int do_env_set(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_env_set(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        if (argc < 2)
                return CMD_RET_USAGE;
@@ -390,7 +394,7 @@ static int do_env_set(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
  * Prompt for environment variable
  */
 #if defined(CONFIG_CMD_ASKENV)
-int do_env_ask(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_env_ask(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        char message[CONFIG_SYS_CBSIZE];
        int i, len, pos, size;
@@ -508,7 +512,8 @@ static int print_active_callback(struct env_entry *entry)
 /*
  * Print the callbacks available and what they are bound to
  */
-int do_env_callback(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_env_callback(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[])
 {
        struct env_clbk_tbl *clbkp;
        int i;
@@ -576,7 +581,7 @@ static int print_active_flags(struct env_entry *entry)
 /*
  * Print the flags available and what variables have flags
  */
-int do_env_flags(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_env_flags(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        /* Print the available variable types */
        printf("Available variable type flags (position %d):\n",
@@ -618,8 +623,8 @@ int do_env_flags(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
  * Interactively edit an environment variable
  */
 #if defined(CONFIG_CMD_EDITENV)
-static int do_env_edit(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+static int do_env_edit(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        char buffer[CONFIG_SYS_CBSIZE];
        char *init_val;
@@ -763,8 +768,8 @@ ulong env_get_ulong(const char *name, int base, ulong default_val)
 
 #ifndef CONFIG_SPL_BUILD
 #if defined(CONFIG_CMD_SAVEENV) && defined(ENV_IS_IN_DEVICE)
-static int do_env_save(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+static int do_env_save(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        return env_save() ? 1 : 0;
 }
@@ -776,8 +781,8 @@ U_BOOT_CMD(
 );
 
 #if defined(CONFIG_CMD_ERASEENV)
-static int do_env_erase(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_env_erase(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        return env_erase() ? 1 : 0;
 }
@@ -807,8 +812,8 @@ int env_match(uchar *s1, int i2)
 }
 
 #ifndef CONFIG_SPL_BUILD
-static int do_env_default(cmd_tbl_t *cmdtp, int flag,
-                         int argc, char * const argv[])
+static int do_env_default(struct cmd_tbl *cmdtp, int flag,
+                         int argc, char *const argv[])
 {
        int all = 0, env_flag = H_INTERACTIVE;
 
@@ -845,8 +850,8 @@ static int do_env_default(cmd_tbl_t *cmdtp, int flag,
        return cmd_usage(cmdtp);
 }
 
-static int do_env_delete(cmd_tbl_t *cmdtp, int flag,
-                        int argc, char * const argv[])
+static int do_env_delete(struct cmd_tbl *cmdtp, int flag,
+                        int argc, char *const argv[])
 {
        int env_flag = H_INTERACTIVE;
        int ret = 0;
@@ -926,8 +931,8 @@ static int do_env_delete(cmd_tbl_t *cmdtp, int flag,
  *
  *     => env import -d -t ${backup_addr}
  */
-static int do_env_export(cmd_tbl_t *cmdtp, int flag,
-                        int argc, char * const argv[])
+static int do_env_export(struct cmd_tbl *cmdtp, int flag,
+                        int argc, char *const argv[])
 {
        char    buf[32];
        ulong   addr;
@@ -1059,8 +1064,8 @@ sep_err:
  *             the environment at address 'addr'. Without arguments, the whole
  *             environment gets imported.
  */
-static int do_env_import(cmd_tbl_t *cmdtp, int flag,
-                        int argc, char * const argv[])
+static int do_env_import(struct cmd_tbl *cmdtp, int flag,
+                        int argc, char *const argv[])
 {
        ulong   addr;
        char    *cmd, *ptr;
@@ -1220,8 +1225,8 @@ static int print_env_info(void)
  * env info [-d] - evaluate whether default environment is used
  * env info [-p] - evaluate whether environment can be persisted
  */
-static int do_env_info(cmd_tbl_t *cmdtp, int flag,
-                      int argc, char * const argv[])
+static int do_env_info(struct cmd_tbl *cmdtp, int flag,
+                      int argc, char *const argv[])
 {
        int eval_flags = 0;
        int eval_results = 0;
@@ -1277,8 +1282,8 @@ static int do_env_info(cmd_tbl_t *cmdtp, int flag,
 #endif
 
 #if defined(CONFIG_CMD_ENV_EXISTS)
-static int do_env_exists(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+static int do_env_exists(struct cmd_tbl *cmdtp, int flag, int argc,
+                        char *const argv[])
 {
        struct env_entry e, *ep;
 
@@ -1296,7 +1301,7 @@ static int do_env_exists(cmd_tbl_t *cmdtp, int flag, int argc,
 /*
  * New command line interface: "env" command with subcommands
  */
-static cmd_tbl_t cmd_env_sub[] = {
+static struct cmd_tbl cmd_env_sub[] = {
 #if defined(CONFIG_CMD_ASKENV)
        U_BOOT_CMD_MKENT(ask, CONFIG_SYS_MAXARGS, 1, do_env_ask, "", ""),
 #endif
@@ -1346,9 +1351,9 @@ void env_reloc(void)
 }
 #endif
 
-static int do_env(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_env(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
-       cmd_tbl_t *cp;
+       struct cmd_tbl *cp;
 
        if (argc < 2)
                return CMD_RET_USAGE;
index 6f69a84feaa0e2d4fb146e8a1dc34a52b58119b8..29cad38e19b5e5856637e6aad85d6b71cd1f7b3a 100644 (file)
@@ -14,6 +14,7 @@
 #include <hexdump.h>
 #include <malloc.h>
 #include <mapmem.h>
+#include <uuid.h>
 #include <linux/kernel.h>
 
 /*
@@ -137,7 +138,7 @@ out:
  *
  * Show information encoded in named UEFI variables
  */
-static int efi_dump_vars(int argc,  char * const argv[],
+static int efi_dump_vars(int argc,  char *const argv[],
                         const efi_guid_t *guid, bool verbose)
 {
        u16 *var_name16, *p;
@@ -171,7 +172,7 @@ static int efi_dump_vars(int argc,  char * const argv[],
        return CMD_RET_SUCCESS;
 }
 
-static bool match_name(int argc, char * const argv[], u16 *var_name16)
+static bool match_name(int argc, char *const argv[], u16 *var_name16)
 {
        char *buf, *p;
        size_t buflen;
@@ -209,7 +210,7 @@ out:
  *
  * Show information encoded in all the UEFI variables
  */
-static int efi_dump_var_all(int argc,  char * const argv[],
+static int efi_dump_var_all(int argc,  char *const argv[],
                            const efi_guid_t *guid_p, bool verbose)
 {
        u16 *var_name16, *p;
@@ -274,7 +275,8 @@ static int efi_dump_var_all(int argc,  char * const argv[],
  * If one or more variable names are specified, show information
  * named UEFI variables, otherwise show all the UEFI variables.
  */
-int do_env_print_efi(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_env_print_efi(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        efi_guid_t guid;
        const efi_guid_t *guid_p;
@@ -464,7 +466,8 @@ out:
  * Encode values specified and set given UEFI variable.
  * If no value is specified, delete the variable.
  */
-int do_env_set_efi(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_env_set_efi(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        char *var_name, *value, *ep;
        ulong addr;
index 5da903bd524dc924b2b8284ef723c0062bfa15e0..e715c570a384abc5011254ce7da3691ae96bcf6f 100644 (file)
@@ -5,13 +5,15 @@
  */
 
 #include <common.h>
+#include <blk.h>
 #include <command.h>
 #include <dm.h>
 #include <nvme.h>
 
 static int nvme_curr_dev;
 
-static int do_nvme(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_nvme(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        int ret;
 
index d97844fa7a3823e01d4d45417a9ec81b871f1e34..216458bb474bd13c9005a7f9b4241853a94d2b65 100644 (file)
@@ -24,7 +24,7 @@ static struct mtd_info *mtd;
 static loff_t next_ofs;
 static loff_t skip_ofs;
 
-static int arg_off_size_onenand(int argc, char * const argv[], ulong *off,
+static int arg_off_size_onenand(int argc, char *const argv[], ulong *off,
                                size_t *size)
 {
        if (argc >= 1) {
@@ -358,13 +358,15 @@ static int onenand_dump(struct mtd_info *mtd, ulong off, int only_oob)
        return 0;
 }
 
-static int do_onenand_info(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+static int do_onenand_info(struct cmd_tbl *cmdtp, int flag, int argc,
+                          char *const argv[])
 {
        printf("%s\n", mtd->name);
        return 0;
 }
 
-static int do_onenand_bad(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+static int do_onenand_bad(struct cmd_tbl *cmdtp, int flag, int argc,
+                         char *const argv[])
 {
        ulong ofs;
 
@@ -379,7 +381,8 @@ static int do_onenand_bad(cmd_tbl_t * cmdtp, int flag, int argc, char * const ar
        return 0;
 }
 
-static int do_onenand_read(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+static int do_onenand_read(struct cmd_tbl *cmdtp, int flag, int argc,
+                          char *const argv[])
 {
        char *s;
        int oob = 0;
@@ -408,7 +411,8 @@ static int do_onenand_read(cmd_tbl_t * cmdtp, int flag, int argc, char * const a
        return ret == 0 ? 0 : 1;
 }
 
-static int do_onenand_write(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+static int do_onenand_write(struct cmd_tbl *cmdtp, int flag, int argc,
+                           char *const argv[])
 {
        ulong addr, ofs;
        size_t len;
@@ -434,7 +438,8 @@ static int do_onenand_write(cmd_tbl_t * cmdtp, int flag, int argc, char * const
        return ret == 0 ? 0 : 1;
 }
 
-static int do_onenand_erase(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+static int do_onenand_erase(struct cmd_tbl *cmdtp, int flag, int argc,
+                           char *const argv[])
 {
        ulong ofs;
        int ret = 0;
@@ -470,7 +475,8 @@ static int do_onenand_erase(cmd_tbl_t * cmdtp, int flag, int argc, char * const
        return ret == 0 ? 0 : 1;
 }
 
-static int do_onenand_test(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+static int do_onenand_test(struct cmd_tbl *cmdtp, int flag, int argc,
+                          char *const argv[])
 {
        ulong ofs;
        int ret = 0;
@@ -495,7 +501,8 @@ static int do_onenand_test(cmd_tbl_t * cmdtp, int flag, int argc, char * const a
        return ret == 0 ? 0 : 1;
 }
 
-static int do_onenand_dump(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+static int do_onenand_dump(struct cmd_tbl *cmdtp, int flag, int argc,
+                          char *const argv[])
 {
        ulong ofs;
        int ret = 0;
@@ -515,7 +522,8 @@ static int do_onenand_dump(cmd_tbl_t * cmdtp, int flag, int argc, char * const a
        return ret == 0 ? 1 : 0;
 }
 
-static int do_onenand_markbad(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+static int do_onenand_markbad(struct cmd_tbl *cmdtp, int flag, int argc,
+                             char *const argv[])
 {
        int ret = 0;
        ulong addr;
@@ -545,7 +553,7 @@ static int do_onenand_markbad(cmd_tbl_t * cmdtp, int flag, int argc, char * cons
        return ret;
 }
 
-static cmd_tbl_t cmd_onenand_sub[] = {
+static struct cmd_tbl cmd_onenand_sub[] = {
        U_BOOT_CMD_MKENT(info, 1, 0, do_onenand_info, "", ""),
        U_BOOT_CMD_MKENT(bad, 1, 0, do_onenand_bad, "", ""),
        U_BOOT_CMD_MKENT(read, 4, 0, do_onenand_read, "", ""),
@@ -563,9 +571,10 @@ void onenand_reloc(void) {
 }
 #endif
 
-static int do_onenand(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+static int do_onenand(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
-       cmd_tbl_t *c;
+       struct cmd_tbl *c;
 
        if (argc < 2)
                return CMD_RET_USAGE;
index 0b1fa499368a30b6a130ba38f8bd6ee9a9a6c77d..bdad5d8e963736b600bfa34696ed212c056778df 100644 (file)
--- a/cmd/osd.c
+++ b/cmd/osd.c
@@ -10,6 +10,7 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <dm.h>
 #include <hexdump.h>
 #include <video_osd.h>
@@ -80,8 +81,8 @@ static void show_osd(struct udevice *osd)
        printf("\n");
 }
 
-static int do_osd_write(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_osd_write(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        uint x, y;
        uint count;
@@ -131,8 +132,8 @@ static int do_osd_write(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_SUCCESS;
 }
 
-static int do_osd_print(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_osd_print(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        uint x, y;
        u8 color;
@@ -161,8 +162,8 @@ static int do_osd_print(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_SUCCESS;
 }
 
-static int do_osd_size(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+static int do_osd_size(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        uint x, y;
        int res;
@@ -187,8 +188,8 @@ static int do_osd_size(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_SUCCESS;
 }
 
-static int do_show_osd(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+static int do_show_osd(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        struct udevice *osd;
 
@@ -223,8 +224,8 @@ static int do_show_osd(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_SUCCESS;
 }
 
-static int do_osd_num(cmd_tbl_t *cmdtp, int flag, int argc,
-                     char * const argv[])
+static int do_osd_num(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        int osd_no;
        int res = 0;
@@ -250,7 +251,7 @@ static int do_osd_num(cmd_tbl_t *cmdtp, int flag, int argc,
        return res ? CMD_RET_FAILURE : CMD_RET_SUCCESS;
 }
 
-static cmd_tbl_t cmd_osd_sub[] = {
+static struct cmd_tbl cmd_osd_sub[] = {
        U_BOOT_CMD_MKENT(show, 1, 1, do_show_osd, "", ""),
        U_BOOT_CMD_MKENT(dev, 1, 1, do_osd_num, "", ""),
        U_BOOT_CMD_MKENT(write, 4, 1, do_osd_write, "", ""),
@@ -258,9 +259,9 @@ static cmd_tbl_t cmd_osd_sub[] = {
        U_BOOT_CMD_MKENT(size, 2, 1, do_osd_size, "", ""),
 };
 
-static int do_osd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_osd(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
-       cmd_tbl_t *c;
+       struct cmd_tbl *c;
 
        if (argc < 2)
                return CMD_RET_USAGE;
index 5e4e45ca6d8bebe58a438223cce4c7c80177e58e..216f14bf5d7844cb5b247f7b87cebc165c351dba 100644 (file)
@@ -28,11 +28,11 @@ enum cmd_part_info {
        CMD_PART_INFO_NUMBER
 };
 
-static int do_part_uuid(int argc, char * const argv[])
+static int do_part_uuid(int argc, char *const argv[])
 {
        int part;
        struct blk_desc *dev_desc;
-       disk_partition_t info;
+       struct disk_partition info;
 
        if (argc < 2)
                return CMD_RET_USAGE;
@@ -51,7 +51,7 @@ static int do_part_uuid(int argc, char * const argv[])
        return 0;
 }
 
-static int do_part_list(int argc, char * const argv[])
+static int do_part_list(int argc, char *const argv[])
 {
        int ret;
        struct blk_desc *desc;
@@ -90,7 +90,7 @@ static int do_part_list(int argc, char * const argv[])
        if (var != NULL) {
                int p;
                char str[512] = { '\0', };
-               disk_partition_t info;
+               struct disk_partition info;
 
                for (p = 1; p < MAX_SEARCH_PARTITIONS; p++) {
                        char t[5];
@@ -114,10 +114,10 @@ static int do_part_list(int argc, char * const argv[])
        return 0;
 }
 
-static int do_part_info(int argc, char * const argv[], enum cmd_part_info param)
+static int do_part_info(int argc, char *const argv[], enum cmd_part_info param)
 {
        struct blk_desc *desc;
-       disk_partition_t info;
+       struct disk_partition info;
        char buf[512] = { 0 };
        char *endp;
        int part;
@@ -167,22 +167,23 @@ static int do_part_info(int argc, char * const argv[], enum cmd_part_info param)
        return 0;
 }
 
-static int do_part_start(int argc, char * const argv[])
+static int do_part_start(int argc, char *const argv[])
 {
        return do_part_info(argc, argv, CMD_PART_INFO_START);
 }
 
-static int do_part_size(int argc, char * const argv[])
+static int do_part_size(int argc, char *const argv[])
 {
        return do_part_info(argc, argv, CMD_PART_INFO_SIZE);
 }
 
-static int do_part_number(int argc, char * const argv[])
+static int do_part_number(int argc, char *const argv[])
 {
        return do_part_info(argc, argv, CMD_PART_INFO_NUMBER);
 }
 
-static int do_part(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_part(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        if (argc < 2)
                return CMD_RET_USAGE;
index 980603f7bd58e5276ed55750a237c96dd2d748f6..d0172f3fffc45c9501cad29e0fbb83a9d864b1a1 100644 (file)
@@ -9,8 +9,8 @@
 #include <net.h>
 #include <net/pcap.h>
 
-static int do_pcap_init(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_pcap_init(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        phys_addr_t addr;
        unsigned int size;
@@ -24,26 +24,26 @@ static int do_pcap_init(cmd_tbl_t *cmdtp, int flag, int argc,
        return pcap_init(addr, size) ? CMD_RET_FAILURE : CMD_RET_SUCCESS;
 }
 
-static int do_pcap_start(cmd_tbl_t *cmdtp, int flag, int argc,
-                        char * const argv[])
+static int do_pcap_start(struct cmd_tbl *cmdtp, int flag, int argc,
+                        char *const argv[])
 {
        return pcap_start_stop(true) ? CMD_RET_FAILURE : CMD_RET_SUCCESS;
 }
 
-static int do_pcap_stop(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_pcap_stop(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        return pcap_start_stop(false) ? CMD_RET_FAILURE : CMD_RET_SUCCESS;
 }
 
-static int do_pcap_status(cmd_tbl_t *cmdtp, int flag, int argc,
-                         char * const argv[])
+static int do_pcap_status(struct cmd_tbl *cmdtp, int flag, int argc,
+                         char *const argv[])
 {
        return pcap_print_status() ? CMD_RET_FAILURE : CMD_RET_SUCCESS;
 }
 
-static int do_pcap_clear(cmd_tbl_t *cmdtp, int flag, int argc,
-                        char * const argv[])
+static int do_pcap_clear(struct cmd_tbl *cmdtp, int flag, int argc,
+                        char *const argv[])
 {
        return pcap_clear() ? CMD_RET_FAILURE : CMD_RET_SUCCESS;
 }
index 0043471fc73e59cfb42e828936accaaa5c294f17..f91a4eb8ed06bbe0380e81596e6426e47bc21c41 100644 (file)
--- a/cmd/pci.c
+++ b/cmd/pci.c
@@ -18,6 +18,7 @@
 #include <command.h>
 #include <console.h>
 #include <dm.h>
+#include <init.h>
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <pci.h>
@@ -655,7 +656,7 @@ static void pci_show_regions(struct udevice *bus)
  *      pci modify[.b, .w, .l] bus.device.function [addr]
  *      pci write[.b, .w, .l] bus.device.function addr value
  */
-static int do_pci(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_pci(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        ulong addr = 0, value = 0, cmd_size = 0;
        enum pci_size_t size = PCI_SIZE_32;
index de909a163d8df450f3ef0680125831be48789e3d..9942b154196c241f68bc86b5ff159e60a0d7e05f 100644 (file)
@@ -14,7 +14,8 @@
 
 static struct udevice *currdev;
 
-static int do_dev(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_dev(struct cmd_tbl *cmdtp, int flag, int argc,
+                 char *const argv[])
 {
        const char *name;
        int ret;
@@ -75,7 +76,8 @@ static int show_pinmux(struct udevice *dev)
        return 0;
 }
 
-static int do_status(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_status(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        struct udevice *dev;
        int ret = CMD_RET_USAGE;
@@ -99,7 +101,8 @@ static int do_status(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return ret;
 }
 
-static int do_list(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_list(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        struct udevice *dev;
 
@@ -118,16 +121,16 @@ static int do_list(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return CMD_RET_SUCCESS;
 }
 
-static cmd_tbl_t pinmux_subcmd[] = {
+static struct cmd_tbl pinmux_subcmd[] = {
        U_BOOT_CMD_MKENT(dev, 2, 1, do_dev, "", ""),
        U_BOOT_CMD_MKENT(list, 1, 1, do_list, "", ""),
        U_BOOT_CMD_MKENT(status, 2, 1, do_status, "", ""),
 };
 
-static int do_pinmux(cmd_tbl_t *cmdtp, int flag, int argc,
-                    char * const argv[])
+static int do_pinmux(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
-       cmd_tbl_t *cmd;
+       struct cmd_tbl *cmd;
 
        argc--;
        argv++;
index cafeba9fccdbfb6e7077f408f580919c5fe52abd..9a3ba2bffc50041f61c0a21f11af0b5c4ac8cefe 100644 (file)
--- a/cmd/pmc.c
+++ b/cmd/pmc.c
@@ -30,7 +30,8 @@ static int get_pmc_dev(struct udevice **devp)
        return 0;
 }
 
-static int do_pmc_init(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+static int do_pmc_init(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        struct udevice *dev;
        int ret;
@@ -42,7 +43,8 @@ static int do_pmc_init(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
        return 0;
 }
 
-static int do_pmc_info(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+static int do_pmc_info(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        struct udevice *dev;
        int ret;
@@ -55,14 +57,14 @@ static int do_pmc_info(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
        return 0;
 }
 
-static cmd_tbl_t cmd_pmc_sub[] = {
+static struct cmd_tbl cmd_pmc_sub[] = {
        U_BOOT_CMD_MKENT(init, 0, 1, do_pmc_init, "", ""),
        U_BOOT_CMD_MKENT(info, 0, 1, do_pmc_info, "", ""),
 };
 
-static int do_pmc(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+static int do_pmc(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
-       const cmd_tbl_t *cp;
+       const struct cmd_tbl *cp;
 
        if (argc < 2) /* no subcommand */
                return cmd_usage(cmdtp);
index 2400bfb601d9d4d931a171aa94fdd047e76093de..3bda0534a36c05baedd38f5647e796c84d4e6649 100644 (file)
@@ -4,6 +4,7 @@
  * Przemyslaw Marczak <p.marczak@samsung.com>
  */
 #include <common.h>
+#include <command.h>
 #include <errno.h>
 #include <dm.h>
 #include <dm/uclass-internal.h>
@@ -21,7 +22,7 @@ static int failure(int ret)
        return CMD_RET_FAILURE;
 }
 
-static int do_dev(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_dev(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        char *name;
        int ret = -ENODEV;
@@ -46,7 +47,8 @@ static int do_dev(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return CMD_RET_SUCCESS;
 }
 
-static int do_list(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_list(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        struct udevice *dev;
        int ret;
@@ -73,7 +75,8 @@ static int do_list(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return CMD_RET_SUCCESS;
 }
 
-static int do_dump(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_dump(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        struct uc_pmic_priv *priv;
        struct udevice *dev;
@@ -118,7 +121,8 @@ static int do_dump(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return CMD_RET_SUCCESS;
 }
 
-static int do_read(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_read(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        struct uc_pmic_priv *priv;
        struct udevice *dev;
@@ -157,7 +161,8 @@ static int do_read(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return CMD_RET_SUCCESS;
 }
 
-static int do_write(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_write(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[])
 {
        struct udevice *dev;
        uint reg, value;
@@ -191,7 +196,7 @@ static int do_write(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return CMD_RET_SUCCESS;
 }
 
-static cmd_tbl_t subcmd[] = {
+static struct cmd_tbl subcmd[] = {
        U_BOOT_CMD_MKENT(dev, 2, 1, do_dev, "", ""),
        U_BOOT_CMD_MKENT(list, 1, 1, do_list, "", ""),
        U_BOOT_CMD_MKENT(dump, 1, 1, do_dump, "", ""),
@@ -199,10 +204,10 @@ static cmd_tbl_t subcmd[] = {
        U_BOOT_CMD_MKENT(write, 3, 1, do_write, "", ""),
 };
 
-static int do_pmic(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_pmic(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
-       cmd_tbl_t *cmd;
+       struct cmd_tbl *cmd;
 
        argc--;
        argv++;
index bce6728875a6c3de11edc6c07ca4b66244731005..6372fc987187a35667ce978e50a6ceb94ad7231f 100644 (file)
--- a/cmd/pxe.c
+++ b/cmd/pxe.c
@@ -24,7 +24,8 @@ const char *pxe_default_paths[] = {
        NULL
 };
 
-static int do_get_tftp(cmd_tbl_t *cmdtp, const char *file_path, char *file_addr)
+static int do_get_tftp(struct cmd_tbl *cmdtp, const char *file_path,
+                      char *file_addr)
 {
        char *tftp_argv[] = {"tftp", NULL, NULL, NULL};
 
@@ -42,7 +43,7 @@ static int do_get_tftp(cmd_tbl_t *cmdtp, const char *file_path, char *file_addr)
  *
  * Returns 1 on success or < 0 on error.
  */
-static int pxe_uuid_path(cmd_tbl_t *cmdtp, unsigned long pxefile_addr_r)
+static int pxe_uuid_path(struct cmd_tbl *cmdtp, unsigned long pxefile_addr_r)
 {
        char *uuid_str;
 
@@ -60,7 +61,7 @@ static int pxe_uuid_path(cmd_tbl_t *cmdtp, unsigned long pxefile_addr_r)
  *
  * Returns 1 on success or < 0 on error.
  */
-static int pxe_mac_path(cmd_tbl_t *cmdtp, unsigned long pxefile_addr_r)
+static int pxe_mac_path(struct cmd_tbl *cmdtp, unsigned long pxefile_addr_r)
 {
        char mac_str[21];
        int err;
@@ -80,7 +81,7 @@ static int pxe_mac_path(cmd_tbl_t *cmdtp, unsigned long pxefile_addr_r)
  *
  * Returns 1 on success or < 0 on error.
  */
-static int pxe_ipaddr_paths(cmd_tbl_t *cmdtp, unsigned long pxefile_addr_r)
+static int pxe_ipaddr_paths(struct cmd_tbl *cmdtp, unsigned long pxefile_addr_r)
 {
        char ip_addr[9];
        int mask_pos, err;
@@ -113,7 +114,7 @@ static int pxe_ipaddr_paths(cmd_tbl_t *cmdtp, unsigned long pxefile_addr_r)
  * Returns 0 on success or 1 on error.
  */
 static int
-do_pxe_get(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+do_pxe_get(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        char *pxefile_addr_str;
        unsigned long pxefile_addr_r;
@@ -166,7 +167,7 @@ do_pxe_get(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
  * Returns 0 on success, 1 on error.
  */
 static int
-do_pxe_boot(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+do_pxe_boot(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        unsigned long pxefile_addr_r;
        struct pxe_menu *cfg;
@@ -206,14 +207,14 @@ do_pxe_boot(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return 0;
 }
 
-static cmd_tbl_t cmd_pxe_sub[] = {
+static struct cmd_tbl cmd_pxe_sub[] = {
        U_BOOT_CMD_MKENT(get, 1, 1, do_pxe_get, "", ""),
        U_BOOT_CMD_MKENT(boot, 2, 1, do_pxe_boot, "", "")
 };
 
-static int do_pxe(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_pxe(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
-       cmd_tbl_t *cp;
+       struct cmd_tbl *cp;
 
        if (argc < 2)
                return CMD_RET_USAGE;
index c244bfb10d670f3790095164568d7747a5167a41..8716e782f6aa2de605f53050e39875b44e26c9ce 100644 (file)
@@ -5,11 +5,14 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <env.h>
 #include <image.h>
+#include <log.h>
 #include <malloc.h>
 #include <mapmem.h>
 #include <lcd.h>
+#include <net.h>
 #include <linux/string.h>
 #include <linux/ctype.h>
 #include <errno.h>
@@ -99,7 +102,8 @@ static int get_bootfile_path(const char *file_path, char *bootfile_path,
        return 1;
 }
 
-int (*do_getfile)(cmd_tbl_t *cmdtp, const char *file_path, char *file_addr);
+int (*do_getfile)(struct cmd_tbl *cmdtp, const char *file_path,
+                 char *file_addr);
 
 /*
  * As in pxelinux, paths to files referenced from files we retrieve are
@@ -109,7 +113,7 @@ int (*do_getfile)(cmd_tbl_t *cmdtp, const char *file_path, char *file_addr);
  *
  * Returns 1 for success, or < 0 on error.
  */
-static int get_relfile(cmd_tbl_t *cmdtp, const char *file_path,
+static int get_relfile(struct cmd_tbl *cmdtp, const char *file_path,
                       unsigned long file_addr)
 {
        size_t path_len;
@@ -147,7 +151,7 @@ static int get_relfile(cmd_tbl_t *cmdtp, const char *file_path,
  *
  * Returns 1 on success, or < 0 for error.
  */
-int get_pxe_file(cmd_tbl_t *cmdtp, const char *file_path,
+int get_pxe_file(struct cmd_tbl *cmdtp, const char *file_path,
                 unsigned long file_addr)
 {
        unsigned long config_file_size;
@@ -188,7 +192,7 @@ int get_pxe_file(cmd_tbl_t *cmdtp, const char *file_path,
  *
  * Returns 1 on success or < 0 on error.
  */
-int get_pxelinux_path(cmd_tbl_t *cmdtp, const char *file,
+int get_pxelinux_path(struct cmd_tbl *cmdtp, const char *file,
                      unsigned long pxefile_addr_r)
 {
        size_t base_len = strlen(PXELINUX_DIR);
@@ -212,7 +216,7 @@ int get_pxelinux_path(cmd_tbl_t *cmdtp, const char *file,
  *
  * Returns 1 on success or < 0 on error.
  */
-static int get_relfile_envaddr(cmd_tbl_t *cmdtp, const char *file_path,
+static int get_relfile_envaddr(struct cmd_tbl *cmdtp, const char *file_path,
                               const char *envaddr_name)
 {
        unsigned long file_addr;
@@ -342,7 +346,7 @@ static int label_localboot(struct pxe_label *label)
  * If the label specifies an 'append' line, its contents will overwrite that
  * of the 'bootargs' environment variable.
  */
-static int label_boot(cmd_tbl_t *cmdtp, struct pxe_label *label)
+static int label_boot(struct cmd_tbl *cmdtp, struct pxe_label *label)
 {
        char *bootm_argv[] = { "bootm", NULL, NULL, NULL, NULL };
        char initrd_str[28];
@@ -821,7 +825,7 @@ static int parse_integer(char **c, int *dst)
        return 1;
 }
 
-static int parse_pxefile_top(cmd_tbl_t *cmdtp, char *p, unsigned long base,
+static int parse_pxefile_top(struct cmd_tbl *cmdtp, char *p, unsigned long base,
                             struct pxe_menu *cfg, int nest_level);
 
 /*
@@ -832,7 +836,7 @@ static int parse_pxefile_top(cmd_tbl_t *cmdtp, char *p, unsigned long base,
  * include, nest_level has already been incremented and doesn't need to be
  * incremented here.
  */
-static int handle_include(cmd_tbl_t *cmdtp, char **c, unsigned long base,
+static int handle_include(struct cmd_tbl *cmdtp, char **c, unsigned long base,
                          struct pxe_menu *cfg, int nest_level)
 {
        char *include_path;
@@ -872,7 +876,7 @@ static int handle_include(cmd_tbl_t *cmdtp, char **c, unsigned long base,
  * nest_level should be 1 when parsing the top level pxe file, 2 when parsing
  * a file it includes, 3 when parsing a file included by that file, and so on.
  */
-static int parse_menu(cmd_tbl_t *cmdtp, char **c, struct pxe_menu *cfg,
+static int parse_menu(struct cmd_tbl *cmdtp, char **c, struct pxe_menu *cfg,
                      unsigned long base, int nest_level)
 {
        struct token t;
@@ -1085,7 +1089,7 @@ static int parse_label(char **c, struct pxe_menu *cfg)
  *
  * Returns 1 on success, < 0 on error.
  */
-static int parse_pxefile_top(cmd_tbl_t *cmdtp, char *p, unsigned long base,
+static int parse_pxefile_top(struct cmd_tbl *cmdtp, char *p, unsigned long base,
                             struct pxe_menu *cfg, int nest_level)
 {
        struct token t;
@@ -1193,7 +1197,7 @@ void destroy_pxe_menu(struct pxe_menu *cfg)
  * files it includes). The resulting pxe_menu struct can be free()'d by using
  * the destroy_pxe_menu() function.
  */
-struct pxe_menu *parse_pxefile(cmd_tbl_t *cmdtp, unsigned long menucfg)
+struct pxe_menu *parse_pxefile(struct cmd_tbl *cmdtp, unsigned long menucfg)
 {
        struct pxe_menu *cfg;
        char *buf;
@@ -1277,7 +1281,7 @@ static struct menu *pxe_menu_to_menu(struct pxe_menu *cfg)
 /*
  * Try to boot any labels we have yet to attempt to boot.
  */
-static void boot_unattempted_labels(cmd_tbl_t *cmdtp, struct pxe_menu *cfg)
+static void boot_unattempted_labels(struct cmd_tbl *cmdtp, struct pxe_menu *cfg)
 {
        struct list_head *pos;
        struct pxe_label *label;
@@ -1302,7 +1306,7 @@ static void boot_unattempted_labels(cmd_tbl_t *cmdtp, struct pxe_menu *cfg)
  * If this function returns, there weren't any labels that successfully
  * booted, or the user interrupted the menu selection via ctrl+c.
  */
-void handle_pxe_menu(cmd_tbl_t *cmdtp, struct pxe_menu *cfg)
+void handle_pxe_menu(struct cmd_tbl *cmdtp, struct pxe_menu *cfg)
 {
        void *choice;
        struct menu *m;
index a38ac81a4701beba1542069e4b33f5a960b91f27..77d25888758fb8bbb8592365a986f3944417d1ae 100644 (file)
@@ -74,15 +74,15 @@ struct pxe_menu {
 
 extern bool is_pxe;
 
-extern int (*do_getfile)(cmd_tbl_t *cmdtp, const char *file_path,
+extern int (*do_getfile)(struct cmd_tbl *cmdtp, const char *file_path,
                         char *file_addr);
 void destroy_pxe_menu(struct pxe_menu *cfg);
-int get_pxe_file(cmd_tbl_t *cmdtp, const char *file_path,
+int get_pxe_file(struct cmd_tbl *cmdtp, const char *file_path,
                 unsigned long file_addr);
-int get_pxelinux_path(cmd_tbl_t *cmdtp, const char *file,
+int get_pxelinux_path(struct cmd_tbl *cmdtp, const char *file,
                      unsigned long pxefile_addr_r);
-void handle_pxe_menu(cmd_tbl_t *cmdtp, struct pxe_menu *cfg);
-struct pxe_menu *parse_pxefile(cmd_tbl_t *cmdtp, unsigned long menucfg);
+void handle_pxe_menu(struct cmd_tbl *cmdtp, struct pxe_menu *cfg);
+struct pxe_menu *parse_pxefile(struct cmd_tbl *cmdtp, unsigned long menucfg);
 int format_mac_pxe(char *outbuf, size_t outbuf_len);
 
 #endif /* __PXE_UTILS_H */
index af826627a217c6361b0bfed0763b596fbf98cf32..bb571487f068b0823267a25e0941ba9f8e89af28 100644 (file)
--- a/cmd/qfw.c
+++ b/cmd/qfw.c
@@ -93,8 +93,8 @@ static int qemu_fwcfg_list_firmware(void)
        return 0;
 }
 
-static int qemu_fwcfg_do_list(cmd_tbl_t *cmdtp, int flag,
-               int argc, char * const argv[])
+static int qemu_fwcfg_do_list(struct cmd_tbl *cmdtp, int flag,
+                             int argc, char *const argv[])
 {
        if (qemu_fwcfg_list_firmware() < 0)
                return CMD_RET_FAILURE;
@@ -102,8 +102,8 @@ static int qemu_fwcfg_do_list(cmd_tbl_t *cmdtp, int flag,
        return 0;
 }
 
-static int qemu_fwcfg_do_cpus(cmd_tbl_t *cmdtp, int flag,
-               int argc, char * const argv[])
+static int qemu_fwcfg_do_cpus(struct cmd_tbl *cmdtp, int flag,
+                             int argc, char *const argv[])
 {
        int ret = qemu_fwcfg_online_cpus();
        if (ret < 0) {
@@ -116,8 +116,8 @@ static int qemu_fwcfg_do_cpus(cmd_tbl_t *cmdtp, int flag,
        return 0;
 }
 
-static int qemu_fwcfg_do_load(cmd_tbl_t *cmdtp, int flag,
-               int argc, char * const argv[])
+static int qemu_fwcfg_do_load(struct cmd_tbl *cmdtp, int flag,
+                             int argc, char *const argv[])
 {
        char *env;
        void *load_addr;
@@ -156,16 +156,17 @@ static int qemu_fwcfg_do_load(cmd_tbl_t *cmdtp, int flag,
        return qemu_fwcfg_setup_kernel(load_addr, initrd_addr);
 }
 
-static cmd_tbl_t fwcfg_commands[] = {
+static struct cmd_tbl fwcfg_commands[] = {
        U_BOOT_CMD_MKENT(list, 0, 1, qemu_fwcfg_do_list, "", ""),
        U_BOOT_CMD_MKENT(cpus, 0, 1, qemu_fwcfg_do_cpus, "", ""),
        U_BOOT_CMD_MKENT(load, 2, 1, qemu_fwcfg_do_load, "", ""),
 };
 
-static int do_qemu_fw(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_qemu_fw(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        int ret;
-       cmd_tbl_t *fwcfg_cmd;
+       struct cmd_tbl *fwcfg_cmd;
 
        if (!qemu_fwcfg_present()) {
                printf("QEMU fw_cfg interface not found\n");
index 82c2d9ad994ed1800c9c757b915ba67a018b8251..34f53f9a292e58571cdd0efe3b2d9c93bdf5826e 100644 (file)
 #include <command.h>
 #include <part.h>
 
-int do_read(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_read(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        char *ep;
        struct blk_desc *dev_desc = NULL;
        int dev;
        int part = 0;
-       disk_partition_t part_info;
+       struct disk_partition part_info;
        ulong offset = 0u;
        ulong limit = 0u;
        void *addr;
index de94dd8071cc8ed10376cc77f6ae02a24fb916d4..c8a04b1754eb5ace63a18bad5d5d40f3ccbd4743 100644 (file)
@@ -8,8 +8,8 @@
 #include <command.h>
 #include <asm/ppc.h>
 
-static int do_reginfo(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+static int do_reginfo(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        print_reginfo();
 
index ed8d778c8243b3186e4d6578e9955de632c17975..aa06c9a9fc831c36014d252a8150af5fb62b1d43 100644 (file)
@@ -4,6 +4,7 @@
  * Przemyslaw Marczak <p.marczak@samsung.com>
  */
 #include <common.h>
+#include <command.h>
 #include <errno.h>
 #include <dm.h>
 #include <dm/uclass-internal.h>
@@ -22,7 +23,7 @@ static int failure(int ret)
        return CMD_RET_FAILURE;
 }
 
-static int do_dev(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_dev(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        struct dm_regulator_uclass_platdata *uc_pdata;
        const char *name;
@@ -82,7 +83,8 @@ static int curr_dev_and_platdata(struct udevice **devp,
        return CMD_RET_SUCCESS;
 }
 
-static int do_list(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_list(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        struct dm_regulator_uclass_platdata *uc_pdata;
        struct udevice *dev;
@@ -137,7 +139,8 @@ static const char *get_mode_name(struct dm_regulator_mode *mode,
        return NULL;
 }
 
-static int do_info(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_info(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        struct udevice *dev;
        struct dm_regulator_uclass_platdata *uc_pdata;
@@ -231,7 +234,8 @@ static void do_status_line(struct udevice *dev)
        printf("\n");
 }
 
-static int do_status(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_status(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        struct dm_regulator_uclass_platdata *uc_pdata;
        struct udevice *dev;
@@ -255,7 +259,8 @@ static int do_status(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return CMD_RET_SUCCESS;
 }
 
-static int do_value(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_value(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[])
 {
        struct udevice *dev;
        struct dm_regulator_uclass_platdata *uc_pdata;
@@ -304,7 +309,8 @@ static int do_value(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return CMD_RET_SUCCESS;
 }
 
-static int do_current(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_current(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        struct udevice *dev;
        struct dm_regulator_uclass_platdata *uc_pdata;
@@ -343,7 +349,8 @@ static int do_current(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return CMD_RET_SUCCESS;
 }
 
-static int do_mode(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_mode(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        struct udevice *dev;
        struct dm_regulator_uclass_platdata *uc_pdata;
@@ -378,7 +385,8 @@ static int do_mode(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return CMD_RET_SUCCESS;
 }
 
-static int do_enable(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_enable(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        struct udevice *dev;
        struct dm_regulator_uclass_platdata *uc_pdata;
@@ -397,7 +405,8 @@ static int do_enable(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return CMD_RET_SUCCESS;
 }
 
-static int do_disable(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_disable(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        struct udevice *dev;
        struct dm_regulator_uclass_platdata *uc_pdata;
@@ -416,7 +425,7 @@ static int do_disable(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return CMD_RET_SUCCESS;
 }
 
-static cmd_tbl_t subcmd[] = {
+static struct cmd_tbl subcmd[] = {
        U_BOOT_CMD_MKENT(dev, 2, 1, do_dev, "", ""),
        U_BOOT_CMD_MKENT(list, 1, 1, do_list, "", ""),
        U_BOOT_CMD_MKENT(info, 2, 1, do_info, "", ""),
@@ -428,10 +437,10 @@ static cmd_tbl_t subcmd[] = {
        U_BOOT_CMD_MKENT(disable, 1, 1, do_disable, "", ""),
 };
 
-static int do_regulator(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_regulator(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
-       cmd_tbl_t *cmd;
+       struct cmd_tbl *cmd;
 
        argc--;
        argv++;
index 598fab48b322d8231b7b9e9a66ddac103c34a49f..3db926f806487114ad5c499e94a87009dadfc5ee 100644 (file)
 #define PRINTF(fmt,args...)
 #endif
 
-int do_reiserls (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_reiserls(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        char *filename = "/";
        int dev, part;
        struct blk_desc *dev_desc = NULL;
-       disk_partition_t info;
+       struct disk_partition info;
 
        if (argc < 3)
                return CMD_RET_USAGE;
@@ -76,12 +76,12 @@ U_BOOT_CMD(
 /******************************************************************************
  * Reiserfs boot command intepreter. Derived from diskboot
  */
-int do_reiserload (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_reiserload(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        char *filename = NULL;
        int dev, part;
        ulong addr = 0, filelen;
-       disk_partition_t info;
+       struct disk_partition info;
        struct blk_desc *dev_desc = NULL;
        unsigned long count;
        char *addr_str;
index da6f3fc8ccf1eb03068484520b212202cdc03117..e8b9178e74079e90522850b6348f2756e42db56c 100644 (file)
@@ -69,7 +69,7 @@ static int print_remoteproc_list(void)
  *
  * Return: 0 if no error, else returns appropriate error value.
  */
-static int do_rproc_init(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_rproc_init(struct cmd_tbl *cmdtp, int flag, int argc,
                         char *const argv[])
 {
        int id;
@@ -102,7 +102,7 @@ static int do_rproc_init(cmd_tbl_t *cmdtp, int flag, int argc,
  *
  * Return: 0 if no error, else returns appropriate error value.
  */
-static int do_remoteproc_list(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_remoteproc_list(struct cmd_tbl *cmdtp, int flag, int argc,
                              char *const argv[])
 {
        if (print_remoteproc_list())
@@ -120,7 +120,7 @@ static int do_remoteproc_list(cmd_tbl_t *cmdtp, int flag, int argc,
  *
  * Return: 0 if no error, else returns appropriate error value.
  */
-static int do_remoteproc_load(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_remoteproc_load(struct cmd_tbl *cmdtp, int flag, int argc,
                              char *const argv[])
 {
        ulong addr, size;
@@ -159,7 +159,7 @@ static int do_remoteproc_load(cmd_tbl_t *cmdtp, int flag, int argc,
  *
  * Return: 0 if no error, else returns appropriate error value.
  */
-static int do_remoteproc_wrapper(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_remoteproc_wrapper(struct cmd_tbl *cmdtp, int flag, int argc,
                                 char *const argv[])
 {
        int id, ret = CMD_RET_USAGE;
@@ -201,7 +201,7 @@ static int do_remoteproc_wrapper(cmd_tbl_t *cmdtp, int flag, int argc,
        return ret ? CMD_RET_FAILURE : 0;
 }
 
-static cmd_tbl_t cmd_remoteproc_sub[] = {
+static struct cmd_tbl cmd_remoteproc_sub[] = {
        U_BOOT_CMD_MKENT(init, 1, 1, do_rproc_init,
                         "Enumerate and initialize the remote processor(s)",
                         "id - ID of the remote processor\n"
@@ -242,10 +242,10 @@ static cmd_tbl_t cmd_remoteproc_sub[] = {
  *
  * Return: 0 if no error, else returns appropriate error value.
  */
-static int do_remoteproc(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_remoteproc(struct cmd_tbl *cmdtp, int flag, int argc,
                         char *const argv[])
 {
-       cmd_tbl_t *c = NULL;
+       struct cmd_tbl *c = NULL;
 
        /* Strip off leading 'rproc' command argument */
        argc--;
index 547fb7d1325b865d69baf70f89b4fb126148fe2a..3c8dbbec0e0ef926c15d5a0e0d29d8e406f223aa 100644 (file)
@@ -8,14 +8,14 @@
 #include <common.h>
 #include <command.h>
 
-static int do_undefined(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_undefined(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        asm volatile (".word 0xffffffff\n");
        return CMD_RET_FAILURE;
 }
 
-static cmd_tbl_t cmd_sub[] = {
+static struct cmd_tbl cmd_sub[] = {
        U_BOOT_CMD_MKENT(undefined, CONFIG_SYS_MAXARGS, 1, do_undefined,
                         "", ""),
 };
index 76367fed94b7a0a67648a3329149dcc4ad39f375..9747c11be460a84f2b3ae57b1ed4d3bebe729a88 100644 (file)
--- a/cmd/rng.c
+++ b/cmd/rng.c
@@ -11,7 +11,7 @@
 #include <malloc.h>
 #include <rng.h>
 
-static int do_rng(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_rng(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        size_t n = 0x40;
        struct udevice *dev;
index 9b70c6a6aff7bf0f16c4269e98d876680bfa5d0d..f181ec611191e96d0b2d664506153c7870646437 100644 (file)
@@ -10,7 +10,8 @@
 #include <usb.h>
 #include <asm/arch-rockchip/f_rockusb.h>
 
-static int do_rockusb(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+static int do_rockusb(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        int controller_index, dev_index;
        char *usb_controller;
index 6bdb516cb5d0cd3c71fb608c063eb0dfea6acbde..aa396c1bbdff7f07fef1a373698baffa04bedc3b 100644 (file)
@@ -11,6 +11,7 @@
 
 #include <common.h>
 #include <ahci.h>
+#include <blk.h>
 #include <dm.h>
 #include <command.h>
 #include <part.h>
@@ -78,7 +79,8 @@ int sata_probe(int devnum)
 #endif
 }
 
-static int do_sata(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_sata(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        int rc = 0;
 
index 5701e03797c5b768f20d2b083a1eb6ad91113db4..f7eb921f43e9333b041ba8c38c9d29dabe11fa92 100644 (file)
--- a/cmd/sb.c
+++ b/cmd/sb.c
@@ -5,11 +5,12 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <dm.h>
 #include <spl.h>
 #include <asm/state.h>
 
-static int do_sb_handoff(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_sb_handoff(struct cmd_tbl *cmdtp, int flag, int argc,
                         char *const argv[])
 {
 #if CONFIG_IS_ENABLED(HANDOFF)
@@ -26,8 +27,8 @@ static int do_sb_handoff(cmd_tbl_t *cmdtp, int flag, int argc,
 #endif
 }
 
-static int do_sb_state(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+static int do_sb_state(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        struct sandbox_state *state;
 
@@ -37,14 +38,14 @@ static int do_sb_state(cmd_tbl_t *cmdtp, int flag, int argc,
        return 0;
 }
 
-static cmd_tbl_t cmd_sb_sub[] = {
+static struct cmd_tbl cmd_sb_sub[] = {
        U_BOOT_CMD_MKENT(handoff, 1, 0, do_sb_handoff, "", ""),
        U_BOOT_CMD_MKENT(state, 1, 0, do_sb_state, "", ""),
 };
 
-static int do_sb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_sb(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
-       cmd_tbl_t *c;
+       struct cmd_tbl *c;
 
        /* Skip past 'sb' */
        argc--;
index 67de1a3bdc2c0085f393d18ba5f8d509348fb1d3..5f710d28957484fc49cea77aad9ba1dd10d36045 100644 (file)
@@ -8,6 +8,7 @@
  * SCSI support.
  */
 #include <common.h>
+#include <blk.h>
 #include <command.h>
 #include <scsi.h>
 
@@ -16,7 +17,8 @@ static int scsi_curr_dev; /* current device */
 /*
  * scsi boot command intepreter. Derived from diskboot
  */
-static int do_scsiboot(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+static int do_scsiboot(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        return common_diskboot(cmdtp, "scsi", argc, argv);
 }
@@ -24,7 +26,8 @@ static int do_scsiboot(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
 /*
  * scsi command intepreter
  */
-static int do_scsi(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+static int do_scsi(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        int ret;
 
index 0182f1993846cdb4f6d027c6ddf7e6707d7b2d99..770dc24d2b7a32579a05c8aed36b40bc234252b6 100644 (file)
@@ -12,6 +12,7 @@
 #include <config.h>
 #include <command.h>
 #include <env.h>
+#include <log.h>
 #include <mapmem.h>
 
 static ulong get_arg(char *s, int w)
@@ -290,7 +291,8 @@ static int regex_sub(const char *name,
 }
 #endif
 
-static int do_setexpr(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_setexpr(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        ulong a, b;
        ulong value;
index e993b3e5adcda20060057472a15b0085c1f11442..727837d9cd1f7c99d1cb5ed7fbc90d7ca2bdc8fd 100644 (file)
--- a/cmd/sf.c
+++ b/cmd/sf.c
@@ -6,12 +6,16 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <div64.h>
 #include <dm.h>
+#include <flash.h>
+#include <log.h>
 #include <malloc.h>
 #include <mapmem.h>
 #include <spi.h>
 #include <spi_flash.h>
+#include <asm/cache.h>
 #include <jffs2/jffs2.h>
 #include <linux/mtd/mtd.h>
 
@@ -79,7 +83,7 @@ static ulong bytes_per_second(unsigned int len, ulong start_ms)
                return 1024 * len / max(get_timer(start_ms), 1UL);
 }
 
-static int do_spi_flash_probe(int argc, char * const argv[])
+static int do_spi_flash_probe(int argc, char *const argv[])
 {
        unsigned int bus = CONFIG_SF_DEFAULT_BUS;
        unsigned int cs = CONFIG_SF_DEFAULT_CS;
@@ -259,7 +263,7 @@ static int spi_flash_update(struct spi_flash *flash, u32 offset,
        return 0;
 }
 
-static int do_spi_flash_read_write(int argc, char * const argv[])
+static int do_spi_flash_read_write(int argc, char *const argv[])
 {
        unsigned long addr;
        void *buf;
@@ -317,7 +321,7 @@ static int do_spi_flash_read_write(int argc, char * const argv[])
        return ret == 0 ? 0 : 1;
 }
 
-static int do_spi_flash_erase(int argc, char * const argv[])
+static int do_spi_flash_erase(int argc, char *const argv[])
 {
        int ret;
        int dev = 0;
@@ -349,7 +353,7 @@ static int do_spi_flash_erase(int argc, char * const argv[])
        return ret == 0 ? 0 : 1;
 }
 
-static int do_spi_protect(int argc, char * const argv[])
+static int do_spi_protect(int argc, char *const argv[])
 {
        int ret = 0;
        loff_t start, len;
@@ -498,7 +502,7 @@ static int spi_flash_test(struct spi_flash *flash, uint8_t *buf, ulong len,
        return 0;
 }
 
-static int do_spi_flash_test(int argc, char * const argv[])
+static int do_spi_flash_test(int argc, char *const argv[])
 {
        unsigned long offset;
        unsigned long len;
@@ -542,8 +546,8 @@ static int do_spi_flash_test(int argc, char * const argv[])
 }
 #endif /* CONFIG_CMD_SF_TEST */
 
-static int do_spi_flash(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_spi_flash(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        const char *cmd;
        int ret;
index 3c50fc27ce875e289a74754ff6496c434cfb1b8d..bcc665a5a6c692a9176fcc5694eee6ba154f5ae8 100644 (file)
@@ -12,7 +12,7 @@
 #include <hash.h>
 #include <u-boot/sha1.h>
 
-int do_sha1sum(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_sha1sum(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int flags = HASH_FLAG_ENV;
        int ac;
index 8b1475c2fe0206253d7f079126e2dd9ea727fd83..0b19f6c68c6edb4d7b2c40e88aa93ef42de98122 100644 (file)
@@ -10,7 +10,8 @@
 #include <linux/compiler.h>
 #include <linux/psci.h>
 
-static int do_call(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_call(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        struct arm_smccc_res res;
 
index 638f29df21dd5f7a814cb1c940d956764e24d900..7fc19678ea8f449d178740f2ee9be827dcfea052 100644 (file)
@@ -13,7 +13,8 @@
 DECLARE_GLOBAL_DATA_PTR;
 
 /* Initilaise sound subsystem */
-static int do_init(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+static int do_init(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        struct udevice *dev;
        int ret;
@@ -30,7 +31,8 @@ static int do_init(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
 }
 
 /* play sound from buffer */
-static int do_play(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+static int do_play(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        struct udevice *dev;
        int ret = 0;
@@ -53,15 +55,16 @@ static int do_play(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
        return 0;
 }
 
-static cmd_tbl_t cmd_sound_sub[] = {
+static struct cmd_tbl cmd_sound_sub[] = {
        U_BOOT_CMD_MKENT(init, 0, 1, do_init, "", ""),
        U_BOOT_CMD_MKENT(play, 2, 1, do_play, "", ""),
 };
 
 /* process sound command */
-static int do_sound(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+static int do_sound(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[])
 {
-       cmd_tbl_t *c;
+       struct cmd_tbl *c;
 
        if (argc < 1)
                return CMD_RET_USAGE;
index 92f8f77ee6fcc60a1cc56f59d4e26db87f720758..b6c709a3d25865f3340f8febd6656d918c3020f8 100644 (file)
@@ -18,6 +18,7 @@
 #include <command.h>
 #include <env.h>
 #include <image.h>
+#include <log.h>
 #include <malloc.h>
 #include <mapmem.h>
 #include <asm/byteorder.h>
@@ -154,13 +155,14 @@ int image_source_script(ulong addr, const char *fit_uname)
                return 1;
        }
 
-       debug ("** Script length: %ld\n", len);
+       debug("** Script length: %ld\n", len);
        return run_command_list((char *)data, len, 0);
 }
 
 /**************************************************/
 #if defined(CONFIG_CMD_SOURCE)
-static int do_source(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_source(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        ulong addr;
        int rcode;
@@ -169,16 +171,16 @@ static int do_source(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        /* Find script image */
        if (argc < 2) {
                addr = CONFIG_SYS_LOAD_ADDR;
-               debug ("*  source: default load address = 0x%08lx\n", addr);
+               debug("*  source: default load address = 0x%08lx\n", addr);
 #if defined(CONFIG_FIT)
        } else if (fit_parse_subimage(argv[1], image_load_addr, &addr,
                                      &fit_uname)) {
-               debug ("*  source: subimage '%s' from FIT image at 0x%08lx\n",
-                               fit_uname, addr);
+               debug("*  source: subimage '%s' from FIT image at 0x%08lx\n",
+                     fit_uname, addr);
 #endif
        } else {
                addr = simple_strtoul(argv[1], NULL, 16);
-               debug ("*  source: cmdline image address = 0x%08lx\n", addr);
+               debug("*  source: cmdline image address = 0x%08lx\n", addr);
        }
 
        printf ("## Executing script at %08lx\n", addr);
index bfa185b6aefe1838aaf5d7ad533d7d0bf345c12f..aec912167c675a0dd56cbf2ad358024ea97c120a 100644 (file)
--- a/cmd/spi.c
+++ b/cmd/spi.c
@@ -97,7 +97,7 @@ done:
  * The command prints out the hexadecimal string received via SPI.
  */
 
-int do_spi (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_spi(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        char  *cp = 0;
        uchar tmp;
index 56051b8a4be926c8882b7a7e4909816375bf84b0..28b40dd31e102bcc04db31cae9db13f7481b3864 100644 (file)
--- a/cmd/spl.c
+++ b/cmd/spl.c
@@ -8,6 +8,8 @@
 #include <command.h>
 #include <cmd_spl.h>
 #include <env.h>
+#include <image.h>
+#include <log.h>
 #include <linux/libfdt.h>
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -49,7 +51,7 @@ static const char **subcmd_list[] = {
 };
 
 /* Calls bootm with the parameters given */
-static int call_bootm(int argc, char * const argv[], const char *subcommand[])
+static int call_bootm(int argc, char *const argv[], const char *subcommand[])
 {
        char *bootm_argv[5];
 
@@ -95,14 +97,15 @@ static int call_bootm(int argc, char * const argv[], const char *subcommand[])
        return 0;
 }
 
-static cmd_tbl_t cmd_spl_export_sub[] = {
+static struct cmd_tbl cmd_spl_export_sub[] = {
        U_BOOT_CMD_MKENT(fdt, 0, 1, (void *)SPL_EXPORT_FDT, "", ""),
        U_BOOT_CMD_MKENT(atags, 0, 1, (void *)SPL_EXPORT_ATAGS, "", ""),
 };
 
-static int spl_export(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int spl_export(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
-       const cmd_tbl_t *c;
+       const struct cmd_tbl *c;
 
        if (argc < 2) /* no subcommand */
                return cmd_usage(cmdtp);
@@ -141,13 +144,13 @@ static int spl_export(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return 0;
 }
 
-static cmd_tbl_t cmd_spl_sub[] = {
+static struct cmd_tbl cmd_spl_sub[] = {
        U_BOOT_CMD_MKENT(export, 0, 1, (void *)SPL_EXPORT, "", ""),
 };
 
-static int do_spl(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_spl(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
-       const cmd_tbl_t *c;
+       const struct cmd_tbl *c;
        int cmd;
 
        if (argc < 2) /* no subcommand */
index 41b166592609b02c9e03708ca57ad0469d7edf36..85fdc34f08fe893109e4fe26a28e7a532755721a 100644 (file)
@@ -12,7 +12,7 @@
 
 static char *start_addr, *last_addr;
 
-int do_strings(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_strings(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        if (argc == 1)
                return CMD_RET_USAGE;
index 793d67d2f583a57158c94583a7057fd2e89cc878..af6a2f1b7f1f9f0da8b3916fa340016bbe698da9 100644 (file)
@@ -8,7 +8,8 @@
 
 static char *fs_argv[5];
 
-static int do_get_ext2(cmd_tbl_t *cmdtp, const char *file_path, char *file_addr)
+static int do_get_ext2(struct cmd_tbl *cmdtp, const char *file_path,
+                      char *file_addr)
 {
 #ifdef CONFIG_CMD_EXT2
        fs_argv[0] = "ext2load";
@@ -21,7 +22,8 @@ static int do_get_ext2(cmd_tbl_t *cmdtp, const char *file_path, char *file_addr)
        return -ENOENT;
 }
 
-static int do_get_fat(cmd_tbl_t *cmdtp, const char *file_path, char *file_addr)
+static int do_get_fat(struct cmd_tbl *cmdtp, const char *file_path,
+                     char *file_addr)
 {
 #ifdef CONFIG_CMD_FAT
        fs_argv[0] = "fatload";
@@ -34,7 +36,8 @@ static int do_get_fat(cmd_tbl_t *cmdtp, const char *file_path, char *file_addr)
        return -ENOENT;
 }
 
-static int do_get_any(cmd_tbl_t *cmdtp, const char *file_path, char *file_addr)
+static int do_get_any(struct cmd_tbl *cmdtp, const char *file_path,
+                     char *file_addr)
 {
 #ifdef CONFIG_CMD_FS_GENERIC
        fs_argv[0] = "load";
@@ -52,7 +55,8 @@ static int do_get_any(cmd_tbl_t *cmdtp, const char *file_path, char *file_addr)
  *
  * Returns 0 on success, 1 on error.
  */
-static int do_sysboot(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_sysboot(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        unsigned long pxefile_addr_r;
        struct pxe_menu *cfg;
index e1ec66ed7102209d90e60d08ca7258fbdeff6d8e..f6e4d2539e358981f16888816e0dd9925d943910 100644 (file)
@@ -12,7 +12,7 @@
 #include <stdio_dev.h>
 #include <serial.h>
 
-int do_terminal(cmd_tbl_t * cmd, int flag, int argc, char * const argv[])
+int do_terminal(struct cmd_tbl *cmd, int flag, int argc, char *const argv[])
 {
        int last_tilde = 0;
        struct stdio_dev *dev = NULL;
index 258bfd880653d31a8196922f3ddaf876d402138b..fa7c48fb9f103bd197e582cc88fa43935fb44e29 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <command.h>
 #include <fs.h>
+#include <log.h>
 
 #define OP_INVALID     0
 #define OP_NOT         1
@@ -50,7 +51,8 @@ const struct {
        {0, "-e", OP_FILE_EXISTS, 4},
 };
 
-static int do_test(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_test(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        char * const *ap;
        int i, op, left, adv, expr, last_expr, last_unop, last_binop;
@@ -190,7 +192,8 @@ U_BOOT_CMD(
        "[args..]"
 );
 
-static int do_false(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_false(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[])
 {
        return 1;
 }
@@ -201,7 +204,8 @@ U_BOOT_CMD(
        NULL
 );
 
-static int do_true(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_true(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        return 0;
 }
index 8dae024e31db2bc601c617c4a302932a66a5e4bf..ae20dddfddba1acffe28f3f84a40eb5d4b8b4511 100644 (file)
@@ -7,12 +7,13 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <thor.h>
 #include <dfu.h>
 #include <g_dnl.h>
 #include <usb.h>
 
-int do_thor_down(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_thor_down(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        if (argc < 4)
                return CMD_RET_USAGE;
index a452fe7876a8b76089bc5e7929b917933dd73cd3..623b63b0f94cd67faa3a7232ca4bfeecf8e1520a 100644 (file)
@@ -6,7 +6,9 @@
  */
 
 #include <cpu_func.h>
+#include <env.h>
 #include <init.h>
+#include <log.h>
 #include <asm/arch/hardware.h>
 #include <asm/cache.h>
 #include <asm/emif.h>
@@ -276,8 +278,8 @@ static int is_ecc_enabled(void)
                (ecc_ctrl & EMIF_ECC_REG_RMW_EN_MASK);
 }
 
-static int do_ddr_test(cmd_tbl_t *cmdtp,
-                      int flag, int argc, char * const argv[])
+static int do_ddr_test(struct cmd_tbl *cmdtp,
+                      int flag, int argc, char *const argv[])
 {
        u32 start_addr, end_addr, size, ecc_err;
 
index 51cde9749f48a410893af4c45fb1edbe32aeb41a..db8c1892df4a437050e39bff6c0f3cc6b29ba444 100644 (file)
@@ -24,7 +24,8 @@ static void report_time(ulong cycles)
        printf(" %lu.%03lu seconds\n", seconds, milliseconds);
 }
 
-static int do_time(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_time(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        ulong cycles = 0;
        int retval = 0;
index 211ab2680f815b1ff9ca5867eb39a3520c7267c5..eab0531c96b9a4b4a510492b7c80bbfcde595145 100644 (file)
@@ -15,6 +15,8 @@
 #include <i2c.h>
 #include <i2c_eeprom.h>
 #include <env.h>
+#include <init.h>
+#include <net.h>
 #include <linux/ctype.h>
 #include <u-boot/crc.h>
 
@@ -423,7 +425,7 @@ void show_tlv_code_list(void)
  *
  *  This function implements the tlv_eeprom command.
  */
-int do_tlv_eeprom(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_tlv_eeprom(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        char cmd;
        struct tlvinfo_header *eeprom_hdr = to_header(eeprom);
index 30142552290635cea1448abb56eab3f0d71ac9f5..88c9e08e318d129316dd2d206d4049fd0060b1e8 100644 (file)
@@ -296,7 +296,7 @@ int get_tpm(struct udevice **devp)
        return 0;
 }
 
-int do_tpm_device(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_tpm_device(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        unsigned long num;
        int rc;
@@ -314,7 +314,7 @@ int do_tpm_device(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
        return rc;
 }
 
-int do_tpm_info(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_tpm_info(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        struct udevice *dev;
        char buf[80];
@@ -333,7 +333,7 @@ int do_tpm_info(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
        return 0;
 }
 
-int do_tpm_init(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_tpm_init(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        struct udevice *dev;
        int rc;
@@ -347,9 +347,9 @@ int do_tpm_init(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return report_return_code(tpm_init(dev));
 }
 
-int do_tpm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_tpm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
-       cmd_tbl_t *tpm_commands, *cmd;
+       struct cmd_tbl *tpm_commands, *cmd;
        struct tpm_chip_priv *priv;
        struct udevice *dev;
        unsigned int size;
index a851d9c4af2373cfbede182f1d2a80a9335d5770..358ddff5761079c789d1dc9c76d0fe24815d6fe5 100644 (file)
@@ -17,9 +17,10 @@ int type_string_pack(const char *type_str, char * const values[], u8 *data);
 int type_string_write_vars(const char *type_str, u8 *data, char * const vars[]);
 int get_tpm(struct udevice **devp);
 
-int do_tpm_device(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]);
-int do_tpm_init(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]);
-int do_tpm_info(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]);
-int do_tpm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
+int do_tpm_device(struct cmd_tbl *cmdtp, int flag, int argc,
+                 char *const argv[]);
+int do_tpm_init(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
+int do_tpm_info(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
+int do_tpm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
 
 #endif /* __TPM_USER_UTILS_H */
index bc34e0654f9d58a043345737c797e80f853a0091..0e2168aea67040d60b3b9e68cf5859ed4ff35edf 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <env.h>
 #include <malloc.h>
 #include <asm/unaligned.h>
@@ -11,8 +12,8 @@
 #include <tpm-v1.h>
 #include "tpm-user-utils.h"
 
-static int do_tpm_startup(cmd_tbl_t *cmdtp, int flag, int argc,
-                         char * const argv[])
+static int do_tpm_startup(struct cmd_tbl *cmdtp, int flag, int argc,
+                         char *const argv[])
 {
        enum tpm_startup_type mode;
        struct udevice *dev;
@@ -37,8 +38,8 @@ static int do_tpm_startup(cmd_tbl_t *cmdtp, int flag, int argc,
        return report_return_code(tpm_startup(dev, mode));
 }
 
-static int do_tpm_nv_define_space(cmd_tbl_t *cmdtp, int flag, int argc,
-                                 char * const argv[])
+static int do_tpm_nv_define_space(struct cmd_tbl *cmdtp, int flag, int argc,
+                                 char *const argv[])
 {
        u32 index, perm, size;
        struct udevice *dev;
@@ -57,8 +58,8 @@ static int do_tpm_nv_define_space(cmd_tbl_t *cmdtp, int flag, int argc,
        return report_return_code(tpm_nv_define_space(dev, index, perm, size));
 }
 
-static int do_tpm_nv_read_value(cmd_tbl_t *cmdtp, int flag, int argc,
-                               char * const argv[])
+static int do_tpm_nv_read_value(struct cmd_tbl *cmdtp, int flag, int argc,
+                               char *const argv[])
 {
        u32 index, count, rc;
        struct udevice *dev;
@@ -83,8 +84,8 @@ static int do_tpm_nv_read_value(cmd_tbl_t *cmdtp, int flag, int argc,
        return report_return_code(rc);
 }
 
-static int do_tpm_nv_write_value(cmd_tbl_t *cmdtp, int flag, int argc,
-                                char * const argv[])
+static int do_tpm_nv_write_value(struct cmd_tbl *cmdtp, int flag, int argc,
+                                char *const argv[])
 {
        struct udevice *dev;
        u32 index, rc;
@@ -110,8 +111,8 @@ static int do_tpm_nv_write_value(cmd_tbl_t *cmdtp, int flag, int argc,
        return report_return_code(rc);
 }
 
-static int do_tpm_extend(cmd_tbl_t *cmdtp, int flag, int argc,
-                        char * const argv[])
+static int do_tpm_extend(struct cmd_tbl *cmdtp, int flag, int argc,
+                        char *const argv[])
 {
        u8 in_digest[20], out_digest[20];
        struct udevice *dev;
@@ -138,8 +139,8 @@ static int do_tpm_extend(cmd_tbl_t *cmdtp, int flag, int argc,
        return report_return_code(rc);
 }
 
-static int do_tpm_pcr_read(cmd_tbl_t *cmdtp, int flag, int argc,
-                          char * const argv[])
+static int do_tpm_pcr_read(struct cmd_tbl *cmdtp, int flag, int argc,
+                          char *const argv[])
 {
        u32 index, count, rc;
        struct udevice *dev;
@@ -164,8 +165,8 @@ static int do_tpm_pcr_read(cmd_tbl_t *cmdtp, int flag, int argc,
        return report_return_code(rc);
 }
 
-static int do_tpm_tsc_physical_presence(cmd_tbl_t *cmdtp, int flag, int argc,
-                                       char * const argv[])
+static int do_tpm_tsc_physical_presence(struct cmd_tbl *cmdtp, int flag,
+                                       int argc, char *const argv[])
 {
        struct udevice *dev;
        u16 presence;
@@ -182,8 +183,8 @@ static int do_tpm_tsc_physical_presence(cmd_tbl_t *cmdtp, int flag, int argc,
        return report_return_code(tpm_tsc_physical_presence(dev, presence));
 }
 
-static int do_tpm_read_pubek(cmd_tbl_t *cmdtp, int flag, int argc,
-                            char * const argv[])
+static int do_tpm_read_pubek(struct cmd_tbl *cmdtp, int flag, int argc,
+                            char *const argv[])
 {
        struct udevice *dev;
        u32 count, rc;
@@ -207,8 +208,8 @@ static int do_tpm_read_pubek(cmd_tbl_t *cmdtp, int flag, int argc,
        return report_return_code(rc);
 }
 
-static int do_tpm_physical_set_deactivated(cmd_tbl_t *cmdtp, int flag, int argc,
-                                          char * const argv[])
+static int do_tpm_physical_set_deactivated(struct cmd_tbl *cmdtp, int flag,
+                                          int argc, char *const argv[])
 {
        struct udevice *dev;
        u8 state;
@@ -225,8 +226,8 @@ static int do_tpm_physical_set_deactivated(cmd_tbl_t *cmdtp, int flag, int argc,
        return report_return_code(tpm_physical_set_deactivated(dev, state));
 }
 
-static int do_tpm_get_capability(cmd_tbl_t *cmdtp, int flag, int argc,
-                                char * const argv[])
+static int do_tpm_get_capability(struct cmd_tbl *cmdtp, int flag, int argc,
+                                char *const argv[])
 {
        u32 cap_area, sub_cap, rc;
        void *cap;
@@ -253,8 +254,8 @@ static int do_tpm_get_capability(cmd_tbl_t *cmdtp, int flag, int argc,
        return report_return_code(rc);
 }
 
-static int do_tpm_raw_transfer(cmd_tbl_t *cmdtp, int flag, int argc,
-                              char * const argv[])
+static int do_tpm_raw_transfer(struct cmd_tbl *cmdtp, int flag, int argc,
+                              char *const argv[])
 {
        struct udevice *dev;
        void *command;
@@ -282,8 +283,8 @@ static int do_tpm_raw_transfer(cmd_tbl_t *cmdtp, int flag, int argc,
        return report_return_code(rc);
 }
 
-static int do_tpm_nv_define(cmd_tbl_t *cmdtp, int flag, int argc,
-                           char * const argv[])
+static int do_tpm_nv_define(struct cmd_tbl *cmdtp, int flag, int argc,
+                           char *const argv[])
 {
        u32 index, perm, size;
        struct udevice *dev;
@@ -306,8 +307,8 @@ static int do_tpm_nv_define(cmd_tbl_t *cmdtp, int flag, int argc,
        return report_return_code(tpm_nv_define_space(dev, index, perm, size));
 }
 
-static int do_tpm_nv_read(cmd_tbl_t *cmdtp, int flag, int argc,
-                         char * const argv[])
+static int do_tpm_nv_read(struct cmd_tbl *cmdtp, int flag, int argc,
+                         char *const argv[])
 {
        u32 index, count, err;
        struct udevice *dev;
@@ -341,8 +342,8 @@ static int do_tpm_nv_read(cmd_tbl_t *cmdtp, int flag, int argc,
        return report_return_code(err);
 }
 
-static int do_tpm_nv_write(cmd_tbl_t *cmdtp, int flag, int argc,
-                          char * const argv[])
+static int do_tpm_nv_write(struct cmd_tbl *cmdtp, int flag, int argc,
+                          char *const argv[])
 {
        u32 index, count, err;
        struct udevice *dev;
@@ -377,8 +378,8 @@ static int do_tpm_nv_write(cmd_tbl_t *cmdtp, int flag, int argc,
 
 #ifdef CONFIG_TPM_AUTH_SESSIONS
 
-static int do_tpm_oiap(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+static int do_tpm_oiap(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        u32 auth_handle, err;
        struct udevice *dev;
@@ -394,8 +395,8 @@ static int do_tpm_oiap(cmd_tbl_t *cmdtp, int flag, int argc,
 }
 
 #ifdef CONFIG_TPM_LOAD_KEY_BY_SHA1
-static int do_tpm_load_key_by_sha1(cmd_tbl_t *cmdtp, int flag, int argc, char *
-                                  const argv[])
+static int do_tpm_load_key_by_sha1(struct cmd_tbl *cmdtp, int flag, int argc,
+                                  char *const argv[])
 {
        u32 parent_handle = 0;
        u32 key_len, key_handle, err;
@@ -437,8 +438,8 @@ static int do_tpm_load_key_by_sha1(cmd_tbl_t *cmdtp, int flag, int argc, char *
 }
 #endif /* CONFIG_TPM_LOAD_KEY_BY_SHA1 */
 
-static int do_tpm_load_key2_oiap(cmd_tbl_t *cmdtp, int flag, int argc,
-                                char * const argv[])
+static int do_tpm_load_key2_oiap(struct cmd_tbl *cmdtp, int flag, int argc,
+                                char *const argv[])
 {
        u32 parent_handle, key_len, key_handle, err;
        u8 usage_auth[DIGEST_LENGTH];
@@ -468,8 +469,8 @@ static int do_tpm_load_key2_oiap(cmd_tbl_t *cmdtp, int flag, int argc,
        return report_return_code(err);
 }
 
-static int do_tpm_get_pub_key_oiap(cmd_tbl_t *cmdtp, int flag, int argc,
-                                  char * const argv[])
+static int do_tpm_get_pub_key_oiap(struct cmd_tbl *cmdtp, int flag, int argc,
+                                  char *const argv[])
 {
        u32 key_handle, err;
        u8 usage_auth[DIGEST_LENGTH];
@@ -504,8 +505,8 @@ TPM_COMMAND_NO_ARG(tpm_end_oiap)
 #endif /* CONFIG_TPM_AUTH_SESSIONS */
 
 #ifdef CONFIG_TPM_FLUSH_RESOURCES
-static int do_tpm_flush(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_tpm_flush(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        struct udevice *dev;
        int type = 0;
@@ -577,8 +578,8 @@ static int do_tpm_flush(cmd_tbl_t *cmdtp, int flag, int argc,
 #endif /* CONFIG_TPM_FLUSH_RESOURCES */
 
 #ifdef CONFIG_TPM_LIST_RESOURCES
-static int do_tpm_list(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+static int do_tpm_list(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        int type = 0;
        u16 res_count;
@@ -644,7 +645,7 @@ TPM_COMMAND_NO_ARG(tpm_force_clear)
 TPM_COMMAND_NO_ARG(tpm_physical_enable)
 TPM_COMMAND_NO_ARG(tpm_physical_disable)
 
-static cmd_tbl_t tpm1_commands[] = {
+static struct cmd_tbl tpm1_commands[] = {
        U_BOOT_CMD_MKENT(device, 0, 1, do_tpm_device, "", ""),
        U_BOOT_CMD_MKENT(info, 0, 1, do_tpm_info, "", ""),
        U_BOOT_CMD_MKENT(init, 0, 1, do_tpm_init, "", ""),
@@ -710,7 +711,7 @@ static cmd_tbl_t tpm1_commands[] = {
 #endif /* CONFIG_TPM_LIST_RESOURCES */
 };
 
-cmd_tbl_t *get_tpm1_commands(unsigned int *size)
+struct cmd_tbl *get_tpm1_commands(unsigned int *size)
 {
        *size = ARRAY_SIZE(tpm1_commands);
 
index 0cd39821bfff41c905113e0782e98ecef9c52ebe..e6742656f5788d7146f10b799b419e96ef29bd0e 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <dm.h>
 #include <log.h>
 #include <mapmem.h>
@@ -12,8 +13,8 @@
 #include <tpm-v2.h>
 #include "tpm-user-utils.h"
 
-static int do_tpm2_startup(cmd_tbl_t *cmdtp, int flag, int argc,
-                          char * const argv[])
+static int do_tpm2_startup(struct cmd_tbl *cmdtp, int flag, int argc,
+                          char *const argv[])
 {
        enum tpm2_startup_types mode;
        struct udevice *dev;
@@ -37,8 +38,8 @@ static int do_tpm2_startup(cmd_tbl_t *cmdtp, int flag, int argc,
        return report_return_code(tpm2_startup(dev, mode));
 }
 
-static int do_tpm2_self_test(cmd_tbl_t *cmdtp, int flag, int argc,
-                            char * const argv[])
+static int do_tpm2_self_test(struct cmd_tbl *cmdtp, int flag, int argc,
+                            char *const argv[])
 {
        enum tpm2_yes_no full_test;
        struct udevice *dev;
@@ -62,8 +63,8 @@ static int do_tpm2_self_test(cmd_tbl_t *cmdtp, int flag, int argc,
        return report_return_code(tpm2_self_test(dev, full_test));
 }
 
-static int do_tpm2_clear(cmd_tbl_t *cmdtp, int flag, int argc,
-                        char * const argv[])
+static int do_tpm2_clear(struct cmd_tbl *cmdtp, int flag, int argc,
+                        char *const argv[])
 {
        u32 handle = 0;
        const char *pw = (argc < 3) ? NULL : argv[2];
@@ -91,8 +92,8 @@ static int do_tpm2_clear(cmd_tbl_t *cmdtp, int flag, int argc,
        return report_return_code(tpm2_clear(dev, handle, pw, pw_sz));
 }
 
-static int do_tpm2_pcr_extend(cmd_tbl_t *cmdtp, int flag, int argc,
-                             char * const argv[])
+static int do_tpm2_pcr_extend(struct cmd_tbl *cmdtp, int flag, int argc,
+                             char *const argv[])
 {
        struct udevice *dev;
        struct tpm_chip_priv *priv;
@@ -122,8 +123,8 @@ static int do_tpm2_pcr_extend(cmd_tbl_t *cmdtp, int flag, int argc,
        return report_return_code(rc);
 }
 
-static int do_tpm_pcr_read(cmd_tbl_t *cmdtp, int flag, int argc,
-                          char * const argv[])
+static int do_tpm_pcr_read(struct cmd_tbl *cmdtp, int flag, int argc,
+                          char *const argv[])
 {
        struct udevice *dev;
        struct tpm_chip_priv *priv;
@@ -160,8 +161,8 @@ static int do_tpm_pcr_read(cmd_tbl_t *cmdtp, int flag, int argc,
        return report_return_code(rc);
 }
 
-static int do_tpm_get_capability(cmd_tbl_t *cmdtp, int flag, int argc,
-                                char * const argv[])
+static int do_tpm_get_capability(struct cmd_tbl *cmdtp, int flag, int argc,
+                                char *const argv[])
 {
        u32 capability, property, rc;
        u8 *data;
@@ -203,7 +204,7 @@ unmap_data:
        return report_return_code(rc);
 }
 
-static int do_tpm_dam_reset(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_tpm_dam_reset(struct cmd_tbl *cmdtp, int flag, int argc,
                            char *const argv[])
 {
        const char *pw = (argc < 2) ? NULL : argv[1];
@@ -224,7 +225,7 @@ static int do_tpm_dam_reset(cmd_tbl_t *cmdtp, int flag, int argc,
        return report_return_code(tpm2_dam_reset(dev, pw, pw_sz));
 }
 
-static int do_tpm_dam_parameters(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_tpm_dam_parameters(struct cmd_tbl *cmdtp, int flag, int argc,
                                 char *const argv[])
 {
        const char *pw = (argc < 5) ? NULL : argv[4];
@@ -268,7 +269,7 @@ static int do_tpm_dam_parameters(cmd_tbl_t *cmdtp, int flag, int argc,
                                                      lockout_recovery));
 }
 
-static int do_tpm_change_auth(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_tpm_change_auth(struct cmd_tbl *cmdtp, int flag, int argc,
                              char *const argv[])
 {
        u32 handle;
@@ -304,8 +305,8 @@ static int do_tpm_change_auth(cmd_tbl_t *cmdtp, int flag, int argc,
                                                   oldpw, oldpw_sz));
 }
 
-static int do_tpm_pcr_setauthpolicy(cmd_tbl_t *cmdtp, int flag, int argc,
-                                   char * const argv[])
+static int do_tpm_pcr_setauthpolicy(struct cmd_tbl *cmdtp, int flag, int argc,
+                                   char *const argv[])
 {
        u32 index = simple_strtoul(argv[1], NULL, 0);
        char *key = argv[2];
@@ -328,8 +329,8 @@ static int do_tpm_pcr_setauthpolicy(cmd_tbl_t *cmdtp, int flag, int argc,
                                                         key));
 }
 
-static int do_tpm_pcr_setauthvalue(cmd_tbl_t *cmdtp, int flag,
-                                  int argc, char * const argv[])
+static int do_tpm_pcr_setauthvalue(struct cmd_tbl *cmdtp, int flag,
+                                  int argc, char *const argv[])
 {
        u32 index = simple_strtoul(argv[1], NULL, 0);
        char *key = argv[2];
@@ -353,7 +354,7 @@ static int do_tpm_pcr_setauthvalue(cmd_tbl_t *cmdtp, int flag,
                                                        key, key_sz));
 }
 
-static cmd_tbl_t tpm2_commands[] = {
+static struct cmd_tbl tpm2_commands[] = {
        U_BOOT_CMD_MKENT(device, 0, 1, do_tpm_device, "", ""),
        U_BOOT_CMD_MKENT(info, 0, 1, do_tpm_info, "", ""),
        U_BOOT_CMD_MKENT(init, 0, 1, do_tpm_init, "", ""),
@@ -372,7 +373,7 @@ static cmd_tbl_t tpm2_commands[] = {
                         do_tpm_pcr_setauthvalue, "", ""),
 };
 
-cmd_tbl_t *get_tpm2_commands(unsigned int *size)
+struct cmd_tbl *get_tpm2_commands(unsigned int *size)
 {
        *size = ARRAY_SIZE(tpm2_commands);
 
index 2cde517d7a9043442e0a17994cd2ba29ade6dce5..ebfb25cab0a3c8ea0a0c76077d665534a37ce9e0 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <command.h>
 #include <cpu_func.h>
+#include <log.h>
 #include <tpm-v1.h>
 #include "tpm-user-utils.h"
 
@@ -483,8 +484,8 @@ static int test_write_limit(struct udevice *dev)
 }
 
 #define VOIDTEST(XFUNC) \
-       int do_test_##XFUNC(cmd_tbl_t *cmd_tbl, int flag, int argc, \
-       char * const argv[]) \
+       int do_test_##XFUNC(struct cmd_tbl *cmd_tbl, int flag, int argc, \
+       char *const argv[]) \
        { \
                struct udevice *dev; \
                int ret; \
@@ -513,7 +514,7 @@ VOIDTEST(timing)
 VOIDTEST(write_limit)
 VOIDTEST(timer)
 
-static cmd_tbl_t cmd_cros_tpm_sub[] = {
+static struct cmd_tbl cmd_cros_tpm_sub[] = {
        VOIDENT(early_extend)
        VOIDENT(early_nvram)
        VOIDENT(early_nvram2)
@@ -530,9 +531,10 @@ static cmd_tbl_t cmd_cros_tpm_sub[] = {
        VOIDENT(timer)
 };
 
-static int do_tpmtest(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_tpmtest(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
-       cmd_tbl_t *c;
+       struct cmd_tbl *c;
        int i;
 
        printf("argc = %d, argv = ", argc);
index 392b129536176dbbbfb097f7751199d50442591c..4ce47c7627607a9721baed61e9c45fb9b160c13f 100644 (file)
@@ -10,7 +10,7 @@
 #include <trace.h>
 #include <asm/io.h>
 
-static int get_args(int argc, char * const argv[], char **buff,
+static int get_args(int argc, char *const argv[], char **buff,
                    size_t *buff_ptr, size_t *buff_size)
 {
        if (argc < 2)
@@ -29,7 +29,7 @@ static int get_args(int argc, char * const argv[], char **buff,
        return 0;
 }
 
-static int create_func_list(int argc, char * const argv[])
+static int create_func_list(int argc, char *const argv[])
 {
        size_t buff_size, avail, buff_ptr, needed, used;
        char *buff;
@@ -52,7 +52,7 @@ static int create_func_list(int argc, char * const argv[])
        return 0;
 }
 
-static int create_call_list(int argc, char * const argv[])
+static int create_call_list(int argc, char *const argv[])
 {
        size_t buff_size, avail, buff_ptr, needed, used;
        char *buff;
@@ -76,7 +76,7 @@ static int create_call_list(int argc, char * const argv[])
        return 0;
 }
 
-int do_trace(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_trace(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        const char *cmd = argc < 2 ? NULL : argv[1];
 
index 369a2b5ab3d7bdf11e67ec8ce4d78ecd3f19c95a..2eae14f87f1de40e136d9258b76856bdc5307a8b 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/io.h>
 #include <pci.h>
@@ -382,7 +383,7 @@ int tsi148_vme_crg_window(unsigned int vmeAddr, int vam)
 /*
  * Tundra Tsi148 configuration
  */
-int do_tsi148(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_tsi148(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        ulong addr1 = 0, addr2 = 0, size = 0, vam = 0, vdw = 0;
        char cmd = 'x';
index 54d128dbc5f225b769cab4928a2459dabdb592c6..171377cc66b547f039e12217e9fd9be1f90bc323 100644 (file)
--- a/cmd/ubi.c
+++ b/cmd/ubi.c
@@ -528,7 +528,7 @@ int ubi_part(char *part_name, const char *vid_header_offset)
        return 0;
 }
 
-static int do_ubi(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_ubi(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int64_t size = 0;
        ulong addr = 0;
index e4000b7ad19dd466940fc7394bc5c45f8f80e54c..a26b653d61e95036c58e0e080e2bae7587bc41c8 100644 (file)
@@ -14,6 +14,7 @@
 #include <common.h>
 #include <config.h>
 #include <command.h>
+#include <log.h>
 #include <ubifs_uboot.h>
 
 static int ubifs_initialized;
@@ -38,8 +39,9 @@ int cmd_ubifs_mount(char *vol_name)
 
        return ret;
 }
-static int do_ubifs_mount(cmd_tbl_t *cmdtp, int flag, int argc,
-                               char * const argv[])
+
+static int do_ubifs_mount(struct cmd_tbl *cmdtp, int flag, int argc,
+                         char *const argv[])
 {
        char *vol_name;
 
@@ -70,8 +72,8 @@ int cmd_ubifs_umount(void)
        return 0;
 }
 
-static int do_ubifs_umount(cmd_tbl_t *cmdtp, int flag, int argc,
-                               char * const argv[])
+static int do_ubifs_umount(struct cmd_tbl *cmdtp, int flag, int argc,
+                          char *const argv[])
 {
        if (argc != 1)
                return CMD_RET_USAGE;
@@ -79,8 +81,8 @@ static int do_ubifs_umount(cmd_tbl_t *cmdtp, int flag, int argc,
        return cmd_ubifs_umount();
 }
 
-static int do_ubifs_ls(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_ubifs_ls(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        char *filename = "/";
        int ret;
@@ -103,8 +105,8 @@ static int do_ubifs_ls(cmd_tbl_t *cmdtp, int flag, int argc,
        return ret;
 }
 
-static int do_ubifs_load(cmd_tbl_t *cmdtp, int flag, int argc,
-                               char * const argv[])
+static int do_ubifs_load(struct cmd_tbl *cmdtp, int flag, int argc,
+                        char *const argv[])
 {
        char *filename;
        char *endp;
index 5b25788656f981a0e503a98788a7bb6a161a9d2b..858cd49b597023270660c204b943a5e4d70099db 100644 (file)
--- a/cmd/ufs.c
+++ b/cmd/ufs.c
@@ -9,7 +9,7 @@
 #include <command.h>
 #include <ufs.h>
 
-static int do_ufs(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_ufs(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int dev, ret;
 
index dc9a8b5617b4969e7ff87b3207bbedcba041ddb7..5ff47dde4fbed9686c90e24b18a9eb9eec145e29 100644 (file)
@@ -298,7 +298,7 @@ int universe_vme_slave_window(unsigned int vmeAddr, unsigned int pciAddr, int si
 /*
  * Tundra Universe configuration
  */
-int do_universe(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_universe(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        ulong addr1 = 0, addr2 = 0, size = 0, vam = 0, pms = 0, vdw = 0;
        char cmd = 'x';
index 5320b378d33a953248cbade2a297714d3ef25bef..4ae7f34d36e7e023710b8d1c18dc71a1678e6da2 100644 (file)
@@ -9,7 +9,8 @@
 #include <env.h>
 #include <lz4.h>
 
-static int do_unlz4(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_unlz4(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[])
 {
        unsigned long src, dst;
        size_t src_len = ~0UL, dst_len = ~0UL;
index afd58e7cdb12757c3cf333919e2087d711213ecd..9b28328a1d76c72574045a1b3bbefa457995beff 100644 (file)
@@ -8,8 +8,10 @@
 #include <command.h>
 #include <env.h>
 #include <gzip.h>
+#include <part.h>
 
-static int do_unzip(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_unzip(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[])
 {
        unsigned long src, dst;
        unsigned long src_len = ~0UL, dst_len = ~0UL;
@@ -41,8 +43,8 @@ U_BOOT_CMD(
        "srcaddr dstaddr [dstsize]"
 );
 
-static int do_gzwrite(cmd_tbl_t *cmdtp, int flag,
-                     int argc, char * const argv[])
+static int do_gzwrite(struct cmd_tbl *cmdtp, int flag,
+                     int argc, char *const argv[])
 {
        struct blk_desc *bdev;
        int ret;
index dd9ac0bc9761d1fbb593256f042b2a2d7b20ba64..b9ec29a8457e76d793d3ca83a2df6aae18a70122 100644 (file)
--- a/cmd/usb.c
+++ b/cmd/usb.c
@@ -11,6 +11,8 @@
  */
 
 #include <common.h>
+#include <blk.h>
+#include <bootstage.h>
 #include <command.h>
 #include <console.h>
 #include <dm.h>
@@ -554,7 +556,8 @@ static int usb_test(struct usb_device *dev, int port, char* arg)
  * usb boot command intepreter. Derived from diskboot
  */
 #ifdef CONFIG_USB_STORAGE
-static int do_usbboot(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_usbboot(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        return common_diskboot(cmdtp, "usb", argc, argv);
 }
@@ -623,7 +626,7 @@ static void usb_show_info(struct usb_device *udev)
 /******************************************************************************
  * usb command intepreter
  */
-static int do_usb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_usb(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        struct usb_device *udev = NULL;
        int i;
index 2ead06be9f5acf351f2e24e450ecff683167f6d0..1af82e1136656212caa26c327c49dc76e7e70795 100644 (file)
@@ -7,11 +7,12 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <g_dnl.h>
 #include <sdp.h>
 #include <usb.h>
 
-static int do_sdp(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_sdp(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int ret;
 
index c5c6899787c84a746afb30317433ab9c779f39e8..d565635c6c40e68b9e365a35f5c41abcfb55e0ef 100644 (file)
@@ -6,16 +6,18 @@
  * Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved.
  */
 
-#include <errno.h>
 #include <common.h>
+#include <blk.h>
 #include <command.h>
 #include <console.h>
+#include <errno.h>
 #include <g_dnl.h>
 #include <malloc.h>
 #include <part.h>
 #include <usb.h>
 #include <usb_mass_storage.h>
 #include <watchdog.h>
+#include <linux/delay.h>
 
 static int ums_read_sector(struct ums *ums_dev,
                           ulong start, lbaint_t blkcnt, void *buf)
@@ -55,7 +57,7 @@ static int ums_init(const char *devtype, const char *devnums_part_str)
 {
        char *s, *t, *devnum_part_str, *name;
        struct blk_desc *block_dev;
-       disk_partition_t info;
+       struct disk_partition info;
        int partnum;
        int ret = -1;
        struct ums *ums_new;
@@ -134,8 +136,8 @@ cleanup:
        return ret;
 }
 
-static int do_usb_mass_storage(cmd_tbl_t *cmdtp, int flag,
-                              int argc, char * const argv[])
+static int do_usb_mass_storage(struct cmd_tbl *cmdtp, int flag,
+                              int argc, char *const argv[])
 {
        const char *usb_controller;
        const char *devtype;
index b2fffe997724e4f3959e5a616795bca1820d80a2..3686b87332498ebfa63c5b20100d28d2fb9b5157 100644 (file)
@@ -14,7 +14,8 @@
 
 const char __weak version_string[] = U_BOOT_VERSION_STRING;
 
-static int do_version(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_version(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        char buf[DISPLAY_OPTIONS_BANNER_LENGTH];
 
index b7082bc63adcda0c77c4955f558edbf3157b539e..3dace5344f7ee604db9bbc782ff915cfcb69a515 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <blk.h>
 #include <command.h>
 #include <dm.h>
 #include <virtio_types.h>
@@ -12,7 +13,8 @@
 
 static int virtio_curr_dev;
 
-static int do_virtio(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_virtio(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        if (argc == 2 && !strcmp(argv[1], "scan")) {
                /* make sure all virtio devices are enumerated */
index 9c95fcf9cd140d6798559e85be908365a8c699f9..92be1f2531d1e39dce917fcc0b00ec5d618d4fe3 100644 (file)
--- a/cmd/w1.c
+++ b/cmd/w1.c
@@ -103,7 +103,7 @@ static int w1_read(int argc, char *const argv[])
        return CMD_RET_SUCCESS;
 }
 
-int do_w1(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_w1(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        if (argc < 2)
                return CMD_RET_USAGE;
index 647d9899b43f3181342228013e7c5a1863e4a758..27410981e7bfe430ac68c8392b4cae7b66dbf3d7 100644 (file)
--- a/cmd/wdt.c
+++ b/cmd/wdt.c
@@ -12,7 +12,7 @@
 
 static struct udevice *currdev;
 
-static int do_wdt_list(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_wdt_list(struct cmd_tbl *cmdtp, int flag, int argc,
                       char *const argv[])
 {
        struct udevice *dev;
@@ -29,7 +29,7 @@ static int do_wdt_list(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_SUCCESS;
 }
 
-static int do_wdt_dev(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_wdt_dev(struct cmd_tbl *cmdtp, int flag, int argc,
                      char *const argv[])
 {
        int ret;
@@ -60,7 +60,7 @@ static int check_currdev(void)
        return 0;
 }
 
-static int do_wdt_start(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_wdt_start(struct cmd_tbl *cmdtp, int flag, int argc,
                        char *const argv[])
 {
        int ret;
@@ -90,7 +90,7 @@ static int do_wdt_start(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_SUCCESS;
 }
 
-static int do_wdt_stop(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_wdt_stop(struct cmd_tbl *cmdtp, int flag, int argc,
                       char *const argv[])
 {
        int ret;
@@ -111,7 +111,7 @@ static int do_wdt_stop(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_SUCCESS;
 }
 
-static int do_wdt_reset(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_wdt_reset(struct cmd_tbl *cmdtp, int flag, int argc,
                        char *const argv[])
 {
        int ret;
@@ -132,7 +132,7 @@ static int do_wdt_reset(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_SUCCESS;
 }
 
-static int do_wdt_expire(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_wdt_expire(struct cmd_tbl *cmdtp, int flag, int argc,
                         char *const argv[])
 {
        int ret;
index 8a756f373c8edd7dafca4bee1a999d36e816d1e9..f0d634322721065962f630d089e14a31e6887ab1 100644 (file)
--- a/cmd/wol.c
+++ b/cmd/wol.c
@@ -14,7 +14,7 @@
 #if defined(CONFIG_CMD_WOL)
 void wol_set_timeout(ulong);
 
-int do_wol(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_wol(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        /* Validate arguments */
        if (argc < 2)
index ade1e2ea926246a9fb4800070d9510572c0c05d5..82faaa913e5c60c51fc33bfe5630282266c64f89 100644 (file)
@@ -8,14 +8,14 @@
 #include <common.h>
 #include <command.h>
 
-static int do_undefined(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+static int do_undefined(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
        asm volatile (".word 0xffff\n");
        return CMD_RET_FAILURE;
 }
 
-static cmd_tbl_t cmd_sub[] = {
+static struct cmd_tbl cmd_sub[] = {
        U_BOOT_CMD_MKENT(undefined, CONFIG_SYS_MAXARGS, 1, do_undefined,
                         "", ""),
 };
index 6e485fb144be7c8a25371108746d0b4491f54c61..8017eda387c25d23a00ab9058e12298475d4fb31 100644 (file)
@@ -9,7 +9,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-static int do_hdr(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_hdr(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        struct fsp_header *hdr;
        u32 img_addr;
@@ -80,13 +80,13 @@ static int do_hdr(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return 0;
 }
 
-static cmd_tbl_t fsp_commands[] = {
+static struct cmd_tbl fsp_commands[] = {
        U_BOOT_CMD_MKENT(hdr, 0, 1, do_hdr, "", ""),
 };
 
-static int do_fsp(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_fsp(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
-       cmd_tbl_t *fsp_cmd;
+       struct cmd_tbl *fsp_cmd;
        int ret;
 
        if (argc < 2)
index 3967a7ca5a79b0dc47d9cd05e5549f8bed0d88c2..6b1f7bda5b82f7d7052c93574c8e65fe2a5255c2 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <command.h>
 #include <efi.h>
+#include <uuid.h>
 #include <asm/hob.h>
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -25,7 +26,7 @@ static char *hob_type[] = {
        "Capsule",
 };
 
-static int do_hob(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_hob(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        const struct hob_header *hdr;
        uint type;
index d3fd959235f3e9e891b35f4b041021a28df0b3bf..2c40e711a1db3208d40004a0f50604d5f0cb9b08 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <asm/msr.h>
 #include <asm/mtrr.h>
 
@@ -43,7 +44,7 @@ static int do_mtrr_list(void)
        return 0;
 }
 
-static int do_mtrr_set(uint reg, int argc, char * const argv[])
+static int do_mtrr_set(uint reg, int argc, char *const argv[])
 {
        const char *typename = argv[0];
        struct mtrr_state state;
@@ -98,7 +99,8 @@ static int mtrr_set_valid(int reg, bool valid)
        return 0;
 }
 
-static int do_mtrr(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_mtrr(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        const char *cmd;
        uint reg;
index 770f6a3eede78bf2edce966cf831f3f5e027dc24..159ba516489896d81fbde48aeeaf4d96edc43e97 100644 (file)
@@ -24,6 +24,7 @@
 #include <bzlib.h>
 #endif
 #include <asm/byteorder.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 
 #ifndef CONFIG_SYS_XIMG_LEN
@@ -32,7 +33,7 @@
 #endif
 
 static int
-do_imgextract(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+do_imgextract(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        ulong           addr = image_load_addr;
        ulong           dest = 0;
index 9244606bda92e65b452e93667237d14c7efef784..f29ebcc026e5a46dcacf079dc39deb5c5fa10f06 100644 (file)
@@ -43,7 +43,7 @@ extern void cmd_yaffs_mv(const char *oldPath, const char *newPath);
 extern int yaffs_dump_dev(const char *path);
 
 /* ytrace - show/set yaffs trace mask */
-int do_ytrace(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_ytrace(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        if (argc > 1)
                cmd_yaffs_tracemask(1, simple_strtol(argv[1], NULL, 16));
@@ -54,7 +54,7 @@ int do_ytrace(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
 }
 
 /* ydevls - lists yaffs mount points. */
-int do_ydevls(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_ydevls(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        cmd_yaffs_dev_ls();
 
@@ -62,7 +62,7 @@ int do_ydevls(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
 }
 
 /* ydevconfig mount_pt mtd_dev_num start_block end_block */
-int do_ydevconfig(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_ydevconfig(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        char *mtpoint;
        int mtd_dev;
@@ -85,7 +85,7 @@ int do_ydevconfig(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
        return 0;
 }
 
-int do_ymount(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_ymount(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        char *mtpoint;
 
@@ -102,7 +102,7 @@ int do_ymount(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
        return 0;
 }
 
-int do_yumount(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_yumount(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        char *mtpoint;
 
@@ -118,7 +118,7 @@ int do_yumount(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
        return 0;
 }
 
-int do_yls(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_yls(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        char *dirname;
 
@@ -134,7 +134,7 @@ int do_yls(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
        return 0;
 }
 
-int do_yrd(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_yrd(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        char *filename;
 
@@ -153,7 +153,7 @@ int do_yrd(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
        return 0;
 }
 
-int do_ywr(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_ywr(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        char *filename;
        ulong value;
@@ -177,7 +177,7 @@ int do_ywr(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
        return 0;
 }
 
-int do_yrdm(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_yrdm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        char *filename;
        ulong addr;
@@ -195,7 +195,7 @@ int do_yrdm(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
        return 0;
 }
 
-int do_ywrm(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_ywrm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        char *filename;
        ulong addr;
@@ -215,7 +215,7 @@ int do_ywrm(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
        return 0;
 }
 
-int do_ymkdir(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_ymkdir(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        char *dirname;
 
@@ -230,7 +230,7 @@ int do_ymkdir(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
        return 0;
 }
 
-int do_yrmdir(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_yrmdir(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        char *dirname;
 
@@ -245,7 +245,7 @@ int do_yrmdir(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
        return 0;
 }
 
-int do_yrm(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_yrm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        char *name;
 
@@ -261,7 +261,7 @@ int do_yrm(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
        return 0;
 }
 
-int do_ymv(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_ymv(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        char *oldPath;
        char *newPath;
index 9c237a5758d430e15f7d808de6851e2e5c7697c6..e429ac88d73c107eb4b6bef68b160d37f4ad92cd 100644 (file)
--- a/cmd/zfs.c
+++ b/cmd/zfs.c
 #define DOS_FS_TYPE_OFFSET     0x36
 #define DOS_FS32_TYPE_OFFSET   0x52
 
-static int do_zfs_load(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_zfs_load(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        char *filename = NULL;
        int dev;
        int part;
        ulong addr = 0;
-       disk_partition_t info;
+       struct disk_partition info;
        struct blk_desc *dev_desc;
        unsigned long count;
        const char *addr_str;
@@ -129,13 +130,13 @@ int zfs_print(const char *entry, const struct zfs_dirhook_info *data)
 }
 
 
-
-static int do_zfs_ls(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_zfs_ls(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        const char *filename = "/";
        int part;
        struct blk_desc *dev_desc;
-       disk_partition_t info;
+       struct disk_partition info;
        struct device_s vdev;
 
        if (argc < 2)
index 8ef46e9815f7fd173eecb90d5177bd2f30dc9201..8ad3768464764d35f174a6d0489b6301dd7c969f 100644 (file)
--- a/cmd/zip.c
+++ b/cmd/zip.c
@@ -7,8 +7,9 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
+#include <gzip.h>
 
-static int do_zip(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_zip(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        unsigned long src, dst;
        unsigned long src_len, dst_len = ~0UL;
index e0fe32d24da5b1cd616a3bd3f08ba16547c8c871..4943f26d53ab3e615fe228b7d386e46c1a49bf40 100644 (file)
@@ -5,9 +5,12 @@
 #include <common.h>
 #include <android_ab.h>
 #include <android_bootloader_message.h>
+#include <blk.h>
+#include <log.h>
 #include <malloc.h>
-#include <linux/err.h>
+#include <part.h>
 #include <memalign.h>
+#include <linux/err.h>
 #include <u-boot/crc.h>
 #include <u-boot/crc.h>
 
@@ -81,7 +84,7 @@ static int ab_control_default(struct bootloader_control *abc)
  * @return 0 on success and a negative on error
  */
 static int ab_control_create_from_disk(struct blk_desc *dev_desc,
-                                      const disk_partition_t *part_info,
+                                      const struct disk_partition *part_info,
                                       struct bootloader_control **abc)
 {
        ulong abc_offset, abc_blocks, ret;
@@ -131,7 +134,7 @@ static int ab_control_create_from_disk(struct blk_desc *dev_desc,
  * @return 0 on success and a negative on error
  */
 static int ab_control_store(struct blk_desc *dev_desc,
-                           const disk_partition_t *part_info,
+                           const struct disk_partition *part_info,
                            struct bootloader_control *abc)
 {
        ulong abc_offset, abc_blocks, ret;
@@ -178,7 +181,7 @@ static int ab_compare_slots(const struct slot_metadata *a,
        return 0;
 }
 
-int ab_select_slot(struct blk_desc *dev_desc, disk_partition_t *part_info)
+int ab_select_slot(struct blk_desc *dev_desc, struct disk_partition *part_info)
 {
        struct bootloader_control *abc = NULL;
        u32 crc32_le;
index 4ea9be6da9e626a91063c483742607d67a84518c..6d78716a266a0e766b523954257c27591225cd68 100644 (file)
 #include <env.h>
 #include <fdtdec.h>
 #include <hash.h>
+#include <log.h>
 #include <malloc.h>
 #include <memalign.h>
 #include <menu.h>
 #include <post.h>
 #include <time.h>
+#include <linux/delay.h>
 #include <u-boot/sha256.h>
 #include <bootcount.h>
 
index 42ecf61eff691db87b388b2edf96d0a7cb33c619..18a35ca23efea3a02564c3e4867af479439b9b33 100644 (file)
@@ -1,6 +1,7 @@
 /* $Id$ */
 
 #include <common.h>
+#include <asm/ptrace.h>
 
 #include <linux/ctype.h>
 #include <bedbug/bedbug.h>
index a5ead31ca7dc87e9265fd22fff29529d5c7bfbde..01194eaa0e4d3cf9ba20c00aee0cd24ef69b0a20 100644 (file)
@@ -11,6 +11,7 @@
 
 #include <common.h>
 #include <bloblist.h>
+#include <bootstage.h>
 #include <clock_legacy.h>
 #include <console.h>
 #include <cpu.h>
@@ -25,6 +26,7 @@
 #include <init.h>
 #include <initcall.h>
 #include <lcd.h>
+#include <log.h>
 #include <malloc.h>
 #include <mapmem.h>
 #include <os.h>
@@ -40,6 +42,7 @@
 #include <trace.h>
 #include <video.h>
 #include <watchdog.h>
+#include <asm/cache.h>
 #ifdef CONFIG_MACH_TYPE
 #include <asm/mach-types.h>
 #endif
@@ -822,9 +825,9 @@ static int initf_dm(void)
 #if defined(CONFIG_DM) && CONFIG_VAL(SYS_MALLOC_F_LEN)
        int ret;
 
-       bootstage_start(BOOTSTATE_ID_ACCUM_DM_F, "dm_f");
+       bootstage_start(BOOTSTAGE_ID_ACCUM_DM_F, "dm_f");
        ret = dm_init_and_scan(true);
-       bootstage_accum(BOOTSTATE_ID_ACCUM_DM_F);
+       bootstage_accum(BOOTSTAGE_ID_ACCUM_DM_F);
        if (ret)
                return ret;
 #endif
index a392bece62c695aa25b4235d5974532fd5bc72d8..a6db087f960453cd2041ba1970ccf0986ba40920 100644 (file)
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0+
 
 #include <common.h>
+#include <init.h>
 #include <linux/libfdt.h>
 #include <linux/compiler.h>
 
index 96034b874e560f832a7f1f338b848fa2a850a30e..fa57fa9b699399d91d20a16199d68c51993328b6 100644 (file)
 
 #include <common.h>
 #include <api.h>
+#include <bootstage.h>
 #include <cpu_func.h>
 #include <exports.h>
+#include <flash.h>
 #include <hang.h>
 #include <image.h>
 #include <irq_func.h>
+#include <log.h>
 #include <net.h>
+#include <asm/cache.h>
 #include <u-boot/crc.h>
 /* TODO: can we just include all these headers whether needed or not? */
 #if defined(CONFIG_CMD_BEDBUG)
@@ -310,9 +314,9 @@ static int initr_dm(void)
 #ifdef CONFIG_TIMER
        gd->timer = NULL;
 #endif
-       bootstage_start(BOOTSTATE_ID_ACCUM_DM_R, "dm_r");
+       bootstage_start(BOOTSTAGE_ID_ACCUM_DM_R, "dm_r");
        ret = dm_init_and_scan(false);
-       bootstage_accum(BOOTSTATE_ID_ACCUM_DM_R);
+       bootstage_accum(BOOTSTAGE_ID_ACCUM_DM_R);
        if (ret)
                return ret;
 
@@ -354,8 +358,8 @@ static int initr_announce(void)
 #ifdef CONFIG_NEEDS_MANUAL_RELOC
 static int initr_manual_reloc_cmdtable(void)
 {
-       fixup_cmdtable(ll_entry_start(cmd_tbl_t, cmd),
-                      ll_entry_count(cmd_tbl_t, cmd));
+       fixup_cmdtable(ll_entry_start(struct cmd_tbl, cmd),
+                      ll_entry_count(struct cmd_tbl, cmd));
        return 0;
 }
 #endif
@@ -369,11 +373,19 @@ static int initr_binman(void)
 }
 
 #if defined(CONFIG_MTD_NOR_FLASH)
+__weak int is_flash_available(void)
+{
+       return 1;
+}
+
 static int initr_flash(void)
 {
        ulong flash_size = 0;
        bd_t *bd = gd->bd;
 
+       if (!is_flash_available())
+               return 0;
+
        puts("Flash: ");
 
        if (board_flash_wp_on())
index ffa4d740eb3e9923e3a6ec1fb14f3f6d4ad8aa78..dfc2a3117d152efaebb8a744af0f2b140d090f37 100644 (file)
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <errno.h>
 #include <image.h>
+#include <log.h>
 #include <linux/libfdt.h>
 
 static int fdt_offset(const void *fit)
index db4362a64307889307af364d0bb8ab5e5d8ac1a7..2ed7521520a756d3f9bd7057f4b9fde6e3490384 100644 (file)
 #include <fdt_support.h>
 #include <irq_func.h>
 #include <lmb.h>
+#include <log.h>
 #include <malloc.h>
 #include <mapmem.h>
+#include <net.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #if defined(CONFIG_CMD_USB)
 #include <usb.h>
@@ -40,8 +43,8 @@ DECLARE_GLOBAL_DATA_PTR;
 
 bootm_headers_t images;                /* pointers to os/initrd/fdt images */
 
-static const void *boot_get_kernel(cmd_tbl_t *cmdtp, int flag, int argc,
-                                  char * const argv[], bootm_headers_t *images,
+static const void *boot_get_kernel(struct cmd_tbl *cmdtp, int flag, int argc,
+                                  char *const argv[], bootm_headers_t *images,
                                   ulong *os_data, ulong *os_len);
 
 __weak void board_quiesce_devices(void)
@@ -65,8 +68,8 @@ static void boot_start_lmb(bootm_headers_t *images)
 static inline void boot_start_lmb(bootm_headers_t *images) { }
 #endif
 
-static int bootm_start(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+static int bootm_start(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        memset((void *)&images, 0, sizeof(images));
        images.verify = env_get_yesno("verify");
@@ -79,8 +82,8 @@ static int bootm_start(cmd_tbl_t *cmdtp, int flag, int argc,
        return 0;
 }
 
-static int bootm_find_os(cmd_tbl_t *cmdtp, int flag, int argc,
-                        char * const argv[])
+static int bootm_find_os(struct cmd_tbl *cmdtp, int flag, int argc,
+                        char *const argv[])
 {
        const void *os_hdr;
        bool ep_found = false;
@@ -236,7 +239,7 @@ static int bootm_find_os(cmd_tbl_t *cmdtp, int flag, int argc,
  *     0, if all existing images were loaded correctly
  *     1, if an image is found but corrupted, or invalid
  */
-int bootm_find_images(int flag, int argc, char * const argv[])
+int bootm_find_images(int flag, int argc, char *const argv[])
 {
        int ret;
 
@@ -283,8 +286,8 @@ int bootm_find_images(int flag, int argc, char * const argv[])
        return 0;
 }
 
-static int bootm_find_other(cmd_tbl_t *cmdtp, int flag, int argc,
-                           char * const argv[])
+static int bootm_find_other(struct cmd_tbl *cmdtp, int flag, int argc,
+                           char *const argv[])
 {
        if (((images.os.type == IH_TYPE_KERNEL) ||
             (images.os.type == IH_TYPE_KERNEL_NOLOAD) ||
@@ -518,8 +521,9 @@ static void fixup_silent_linux(void)
  *     then the intent is to boot an OS, so this function will not return
  *     unless the image type is standalone.
  */
-int do_bootm_states(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
-                   int states, bootm_headers_t *images, int boot_progress)
+int do_bootm_states(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[], int states, bootm_headers_t *images,
+                   int boot_progress)
 {
        boot_os_fn *boot_fn;
        ulong iflag = 0;
@@ -702,8 +706,8 @@ static image_header_t *image_get_kernel(ulong img_addr, int verify)
  *     pointer to image header if valid image was found, plus kernel start
  *     address and length, otherwise NULL
  */
-static const void *boot_get_kernel(cmd_tbl_t *cmdtp, int flag, int argc,
-                                  char * const argv[], bootm_headers_t *images,
+static const void *boot_get_kernel(struct cmd_tbl *cmdtp, int flag, int argc,
+                                  char *const argv[], bootm_headers_t *images,
                                   ulong *os_data, ulong *os_len)
 {
 #if CONFIG_IS_ENABLED(LEGACY_IMAGE_FORMAT)
index 1d58462509cc07111c0eeadcd0029ffcee2b9705..55296483f76fa4aa7a7f9877284afce619d48c11 100644 (file)
@@ -6,10 +6,14 @@
 
 #include <common.h>
 #include <bootm.h>
+#include <bootstage.h>
 #include <cpu_func.h>
 #include <efi_loader.h>
 #include <env.h>
 #include <fdt_support.h>
+#include <image.h>
+#include <lmb.h>
+#include <log.h>
 #include <linux/libfdt.h>
 #include <malloc.h>
 #include <mapmem.h>
@@ -18,7 +22,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-static int do_bootm_standalone(int flag, int argc, char * const argv[],
+static int do_bootm_standalone(int flag, int argc, char *const argv[],
                               bootm_headers_t *images)
 {
        char *s;
@@ -40,7 +44,7 @@ static int do_bootm_standalone(int flag, int argc, char * const argv[],
 /*******************************************************************/
 
 #if defined(CONFIG_BOOTM_NETBSD) || defined(CONFIG_BOOTM_PLAN9)
-static void copy_args(char *dest, int argc, char * const argv[], char delim)
+static void copy_args(char *dest, int argc, char *const argv[], char delim)
 {
        int i;
 
@@ -54,8 +58,8 @@ static void copy_args(char *dest, int argc, char * const argv[], char delim)
 #endif
 
 #ifdef CONFIG_BOOTM_NETBSD
-static int do_bootm_netbsd(int flag, int argc, char * const argv[],
-                           bootm_headers_t *images)
+static int do_bootm_netbsd(int flag, int argc, char *const argv[],
+                          bootm_headers_t *images)
 {
        void (*loader)(bd_t *, image_header_t *, char *, char *);
        image_header_t *os_hdr, *hdr;
@@ -126,8 +130,8 @@ static int do_bootm_netbsd(int flag, int argc, char * const argv[],
 #endif /* CONFIG_BOOTM_NETBSD*/
 
 #ifdef CONFIG_LYNXKDI
-static int do_bootm_lynxkdi(int flag, int argc, char * const argv[],
-                            bootm_headers_t *images)
+static int do_bootm_lynxkdi(int flag, int argc, char *const argv[],
+                           bootm_headers_t *images)
 {
        image_header_t *hdr = &images->legacy_hdr_os_copy;
 
@@ -148,8 +152,8 @@ static int do_bootm_lynxkdi(int flag, int argc, char * const argv[],
 #endif /* CONFIG_LYNXKDI */
 
 #ifdef CONFIG_BOOTM_RTEMS
-static int do_bootm_rtems(int flag, int argc, char * const argv[],
-                          bootm_headers_t *images)
+static int do_bootm_rtems(int flag, int argc, char *const argv[],
+                         bootm_headers_t *images)
 {
        void (*entry_point)(bd_t *);
 
@@ -181,8 +185,8 @@ static int do_bootm_rtems(int flag, int argc, char * const argv[],
 #endif /* CONFIG_BOOTM_RTEMS */
 
 #if defined(CONFIG_BOOTM_OSE)
-static int do_bootm_ose(int flag, int argc, char * const argv[],
-                          bootm_headers_t *images)
+static int do_bootm_ose(int flag, int argc, char *const argv[],
+                       bootm_headers_t *images)
 {
        void (*entry_point)(void);
 
@@ -214,8 +218,8 @@ static int do_bootm_ose(int flag, int argc, char * const argv[],
 #endif /* CONFIG_BOOTM_OSE */
 
 #if defined(CONFIG_BOOTM_PLAN9)
-static int do_bootm_plan9(int flag, int argc, char * const argv[],
-                          bootm_headers_t *images)
+static int do_bootm_plan9(int flag, int argc, char *const argv[],
+                         bootm_headers_t *images)
 {
        void (*entry_point)(void);
        char *s;
@@ -321,7 +325,7 @@ static void do_bootvx_fdt(bootm_headers_t *images)
        puts("## vxWorks terminated\n");
 }
 
-static int do_bootm_vxworks_legacy(int flag, int argc, char * const argv[],
+static int do_bootm_vxworks_legacy(int flag, int argc, char *const argv[],
                                   bootm_headers_t *images)
 {
        if (flag != BOOTM_STATE_OS_GO)
@@ -339,7 +343,7 @@ static int do_bootm_vxworks_legacy(int flag, int argc, char * const argv[],
        return 1;
 }
 
-int do_bootm_vxworks(int flag, int argc, char * const argv[],
+int do_bootm_vxworks(int flag, int argc, char *const argv[],
                     bootm_headers_t *images)
 {
        char *bootargs;
@@ -376,8 +380,8 @@ int do_bootm_vxworks(int flag, int argc, char * const argv[],
 #endif
 
 #if defined(CONFIG_CMD_ELF)
-static int do_bootm_qnxelf(int flag, int argc, char * const argv[],
-                           bootm_headers_t *images)
+static int do_bootm_qnxelf(int flag, int argc, char *const argv[],
+                          bootm_headers_t *images)
 {
        char *local_args[2];
        char str[16];
@@ -414,8 +418,8 @@ static int do_bootm_qnxelf(int flag, int argc, char * const argv[],
 #endif
 
 #ifdef CONFIG_INTEGRITY
-static int do_bootm_integrity(int flag, int argc, char * const argv[],
-                          bootm_headers_t *images)
+static int do_bootm_integrity(int flag, int argc, char *const argv[],
+                             bootm_headers_t *images)
 {
        void (*entry_point)(void);
 
@@ -447,8 +451,8 @@ static int do_bootm_integrity(int flag, int argc, char * const argv[],
 #endif
 
 #ifdef CONFIG_BOOTM_OPENRTOS
-static int do_bootm_openrtos(int flag, int argc, char * const argv[],
-                          bootm_headers_t *images)
+static int do_bootm_openrtos(int flag, int argc, char *const argv[],
+                            bootm_headers_t *images)
 {
        void (*entry_point)(void);
 
@@ -473,7 +477,7 @@ static int do_bootm_openrtos(int flag, int argc, char * const argv[],
 #endif
 
 #ifdef CONFIG_BOOTM_OPTEE
-static int do_bootm_tee(int flag, int argc, char * const argv[],
+static int do_bootm_tee(int flag, int argc, char *const argv[],
                        bootm_headers_t *images)
 {
        int ret;
@@ -501,7 +505,7 @@ static int do_bootm_tee(int flag, int argc, char * const argv[],
 #endif
 
 #ifdef CONFIG_BOOTM_EFI
-static int do_bootm_efi(int flag, int argc, char * const argv[],
+static int do_bootm_efi(int flag, int argc, char *const argv[],
                        bootm_headers_t *images)
 {
        int ret;
@@ -604,7 +608,7 @@ __weak void board_preboot_os(void)
        /* please define board specific board_preboot_os() */
 }
 
-int boot_selected_os(int argc, char * const argv[], int state,
+int boot_selected_os(int argc, char *const argv[], int state,
                     bootm_headers_t *images, boot_os_fn *boot_fn)
 {
        arch_preboot_os();
index d2ed33663b7193b574722e5f3d0aa441dd571149..5f87358fd8544d13b851f488023102a78d745095 100644 (file)
@@ -10,7 +10,9 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
 #include <hang.h>
+#include <log.h>
 #include <malloc.h>
 #include <sort.h>
 #include <spl.h>
index 0ace152b98e0b5e6729796ad18625cc3804ac29a..6d98920de6628536babf60b679e1d070a93a8006 100644 (file)
@@ -7,9 +7,11 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <log.h>
 #include <malloc.h>
 #include <errno.h>
 #include <bouncebuf.h>
+#include <asm/cache.h>
 
 static int addr_aligned(struct bounce_buffer *state)
 {
index 38bba17585ca5a56970ad61317d12408833cd657..6635ab2bcf85186fd57292c7176896d09443dbed 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
 #include <cli.h>
 #include <cli_hush.h>
 #include <command.h>
@@ -128,7 +129,7 @@ int run_command_list(const char *cmd, int len, int flag)
 /****************************************************************************/
 
 #if defined(CONFIG_CMD_RUN)
-int do_run(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_run(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int i;
 
@@ -182,7 +183,7 @@ bool cli_process_fdt(const char **cmdp)
 void cli_secure_boot_cmd(const char *cmd)
 {
 #ifdef CONFIG_CMDLINE
-       cmd_tbl_t *cmdtp;
+       struct cmd_tbl *cmdtp;
 #endif
        int rc;
 
index a62af07cc5469c080bac40b9d711373a9d4b35a6..5b1f11907438e893911ca6f8e0650be8a423392c 100644 (file)
@@ -3664,8 +3664,8 @@ static char *make_string(char **inp, int *nonnull)
 }
 
 #ifdef __U_BOOT__
-static int do_showvar(cmd_tbl_t *cmdtp, int flag, int argc,
-                     char * const argv[])
+static int do_showvar(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        int i, k;
        int rcode = 0;
index 6ef7a3e564254233c9d08dd29a950f4040f707ce..1f1e28c6d85787983adb683379e3b4acbdb047c0 100644 (file)
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <bootretry.h>
 #include <cli.h>
+#include <command.h>
 #include <time.h>
 #include <watchdog.h>
 
index 358e9b7fe11f28ccc473744bbc6fac932757f8bf..7d91316a0fbd86d5ab617e6c21fc37567573ea07 100644 (file)
@@ -14,6 +14,7 @@
 #include <command.h>
 #include <console.h>
 #include <env.h>
+#include <log.h>
 #include <linux/ctype.h>
 
 #define DEBUG_PARSER   0       /* set to 1 to debug */
index 0d8bf244be220e02beccc0741847d2f45d5ca285..4f49f15bfdfba3602c4bea27c6b12b9931781b2d 100644 (file)
@@ -12,6 +12,7 @@
 #include <command.h>
 #include <console.h>
 #include <env.h>
+#include <log.h>
 #include <linux/ctype.h>
 
 /*
  * for long help messages
  */
 
-int _do_help(cmd_tbl_t *cmd_start, int cmd_items, cmd_tbl_t *cmdtp, int flag,
-            int argc, char * const argv[])
+int _do_help(struct cmd_tbl *cmd_start, int cmd_items, struct cmd_tbl *cmdtp,
+            int flag, int argc, char *const argv[])
 {
        int i;
        int rcode = 0;
 
        if (argc == 1) {        /* show list of commands */
-               cmd_tbl_t *cmd_array[cmd_items];
+               struct cmd_tbl *cmd_array[cmd_items];
                int i, j, swaps;
 
                /* Make array of commands from .uboot_cmd section */
@@ -41,7 +42,7 @@ int _do_help(cmd_tbl_t *cmd_start, int cmd_items, cmd_tbl_t *cmdtp, int flag,
                        for (j = 0; j < i; ++j) {
                                if (strcmp(cmd_array[j]->name,
                                           cmd_array[j + 1]->name) > 0) {
-                                       cmd_tbl_t *tmp;
+                                       struct cmd_tbl *tmp;
                                        tmp = cmd_array[j];
                                        cmd_array[j] = cmd_array[j + 1];
                                        cmd_array[j + 1] = tmp;
@@ -83,11 +84,12 @@ int _do_help(cmd_tbl_t *cmd_start, int cmd_items, cmd_tbl_t *cmdtp, int flag,
 }
 
 /* find command table entry for a command */
-cmd_tbl_t *find_cmd_tbl(const char *cmd, cmd_tbl_t *table, int table_len)
+struct cmd_tbl *find_cmd_tbl(const char *cmd, struct cmd_tbl *table,
+                            int table_len)
 {
 #ifdef CONFIG_CMDLINE
-       cmd_tbl_t *cmdtp;
-       cmd_tbl_t *cmdtp_temp = table;  /* Init value */
+       struct cmd_tbl *cmdtp;
+       struct cmd_tbl *cmdtp_temp = table;     /* Init value */
        const char *p;
        int len;
        int n_found = 0;
@@ -117,14 +119,14 @@ cmd_tbl_t *find_cmd_tbl(const char *cmd, cmd_tbl_t *table, int table_len)
        return NULL;    /* not found or ambiguous command */
 }
 
-cmd_tbl_t *find_cmd(const char *cmd)
+struct cmd_tbl *find_cmd(const char *cmd)
 {
-       cmd_tbl_t *start = ll_entry_start(cmd_tbl_t, cmd);
-       const int len = ll_entry_count(cmd_tbl_t, cmd);
+       struct cmd_tbl *start = ll_entry_start(struct cmd_tbl, cmd);
+       const int len = ll_entry_count(struct cmd_tbl, cmd);
        return find_cmd_tbl(cmd, start, len);
 }
 
-int cmd_usage(const cmd_tbl_t *cmdtp)
+int cmd_usage(const struct cmd_tbl *cmdtp)
 {
        printf("%s - %s\n\n", cmdtp->name, cmdtp->usage);
 
@@ -145,7 +147,8 @@ int cmd_usage(const cmd_tbl_t *cmdtp)
 #ifdef CONFIG_AUTO_COMPLETE
 static char env_complete_buf[512];
 
-int var_complete(int argc, char * const argv[], char last_char, int maxv, char *cmdv[])
+int var_complete(int argc, char *const argv[], char last_char, int maxv,
+                char *cmdv[])
 {
        int space;
 
@@ -163,7 +166,7 @@ int var_complete(int argc, char * const argv[], char last_char, int maxv, char *
        return 0;
 }
 
-static int dollar_complete(int argc, char * const argv[], char last_char,
+static int dollar_complete(int argc, char *const argv[], char last_char,
                           int maxv, char *cmdv[])
 {
        /* Make sure the last argument starts with a $. */
@@ -177,12 +180,12 @@ static int dollar_complete(int argc, char * const argv[], char last_char,
 
 /*************************************************************************************/
 
-int complete_subcmdv(cmd_tbl_t *cmdtp, int count, int argc,
-                    char * const argv[], char last_char,
+int complete_subcmdv(struct cmd_tbl *cmdtp, int count, int argc,
+                    char *const argv[], char last_char,
                     int maxv, char *cmdv[])
 {
 #ifdef CONFIG_CMDLINE
-       const cmd_tbl_t *cmdend = cmdtp + count;
+       const struct cmd_tbl *cmdend = cmdtp + count;
        const char *p;
        int len, clen;
        int n_found = 0;
@@ -254,12 +257,12 @@ int complete_subcmdv(cmd_tbl_t *cmdtp, int count, int argc,
 #endif
 }
 
-static int complete_cmdv(int argc, char * const argv[], char last_char,
+static int complete_cmdv(int argc, char *const argv[], char last_char,
                         int maxv, char *cmdv[])
 {
 #ifdef CONFIG_CMDLINE
-       return complete_subcmdv(ll_entry_start(cmd_tbl_t, cmd),
-                               ll_entry_count(cmd_tbl_t, cmd), argc, argv,
+       return complete_subcmdv(ll_entry_start(struct cmd_tbl, cmd),
+                               ll_entry_count(struct cmd_tbl, cmd), argc, argv,
                                last_char, maxv, cmdv);
 #else
        return 0;
@@ -296,7 +299,8 @@ static int make_argv(char *s, int argvsz, char *argv[])
        return argc;
 }
 
-static void print_argv(const char *banner, const char *leader, const char *sep, int linemax, char * const argv[])
+static void print_argv(const char *banner, const char *leader, const char *sep,
+                      int linemax, char *const argv[])
 {
        int ll = leader != NULL ? strlen(leader) : 0;
        int sl = sep != NULL ? strlen(sep) : 0;
@@ -323,7 +327,7 @@ static void print_argv(const char *banner, const char *leader, const char *sep,
        printf("\n");
 }
 
-static int find_common_prefix(char * const argv[])
+static int find_common_prefix(char *const argv[])
 {
        int i, len;
        char *anchor, *s, *t;
@@ -486,7 +490,7 @@ int cmd_get_data_size(char* arg, int default_size)
 #if defined(CONFIG_NEEDS_MANUAL_RELOC)
 DECLARE_GLOBAL_DATA_PTR;
 
-void fixup_cmdtable(cmd_tbl_t *cmdtp, int size)
+void fixup_cmdtable(struct cmd_tbl *cmdtp, int size)
 {
        int     i;
 
@@ -498,7 +502,7 @@ void fixup_cmdtable(cmd_tbl_t *cmdtp, int size)
 
                addr = (ulong)(cmdtp->cmd_rep) + gd->reloc_off;
                cmdtp->cmd_rep =
-                       (int (*)(struct cmd_tbl_s *, int, int,
+                       (int (*)(struct cmd_tbl *, int, int,
                                 char * const [], int *))addr;
 
                addr = (ulong)(cmdtp->cmd) + gd->reloc_off;
@@ -506,8 +510,8 @@ void fixup_cmdtable(cmd_tbl_t *cmdtp, int size)
                printf("Command \"%s\": 0x%08lx => 0x%08lx\n",
                       cmdtp->name, (ulong)(cmdtp->cmd), addr);
 #endif
-               cmdtp->cmd =
-                       (int (*)(struct cmd_tbl_s *, int, int, char * const []))addr;
+               cmdtp->cmd = (int (*)(struct cmd_tbl *, int, int,
+                                     char *const []))addr;
                addr = (ulong)(cmdtp->name) + gd->reloc_off;
                cmdtp->name = (char *)addr;
                if (cmdtp->usage) {
@@ -532,24 +536,24 @@ void fixup_cmdtable(cmd_tbl_t *cmdtp, int size)
 }
 #endif
 
-int cmd_always_repeatable(cmd_tbl_t *cmdtp, int flag, int argc,
-                         char * const argv[], int *repeatable)
+int cmd_always_repeatable(struct cmd_tbl *cmdtp, int flag, int argc,
+                         char *const argv[], int *repeatable)
 {
        *repeatable = 1;
 
        return cmdtp->cmd(cmdtp, flag, argc, argv);
 }
 
-int cmd_never_repeatable(cmd_tbl_t *cmdtp, int flag, int argc,
-                        char * const argv[], int *repeatable)
+int cmd_never_repeatable(struct cmd_tbl *cmdtp, int flag, int argc,
+                        char *const argv[], int *repeatable)
 {
        *repeatable = 0;
 
        return cmdtp->cmd(cmdtp, flag, argc, argv);
 }
 
-int cmd_discard_repeatable(cmd_tbl_t *cmdtp, int flag, int argc,
-                          char * const argv[])
+int cmd_discard_repeatable(struct cmd_tbl *cmdtp, int flag, int argc,
+                          char *const argv[])
 {
        int repeatable;
 
@@ -568,8 +572,8 @@ int cmd_discard_repeatable(cmd_tbl_t *cmdtp, int flag, int argc,
  * @param repeatable   Can the command be repeated
  * @return 0 if command succeeded, else non-zero (CMD_RET_...)
  */
-static int cmd_call(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
-                   int *repeatable)
+static int cmd_call(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[], int *repeatable)
 {
        int result;
 
@@ -579,11 +583,11 @@ static int cmd_call(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
        return result;
 }
 
-enum command_ret_t cmd_process(int flag, int argc, char * const argv[],
+enum command_ret_t cmd_process(int flag, int argc, char *const argv[],
                               int *repeatable, ulong *ticks)
 {
        enum command_ret_t rc = CMD_RET_SUCCESS;
-       cmd_tbl_t *cmdtp;
+       struct cmd_tbl *cmdtp;
 
 #if defined(CONFIG_SYS_XTRACE)
        char *xtrace;
@@ -638,7 +642,7 @@ enum command_ret_t cmd_process(int flag, int argc, char * const argv[],
        return rc;
 }
 
-int cmd_process_error(cmd_tbl_t *cmdtp, int err)
+int cmd_process_error(struct cmd_tbl *cmdtp, int err)
 {
        if (err == CMD_RET_USAGE)
                return CMD_RET_USAGE;
index 41305d8aa69315e2fd16f18158a01c43f7a08413..a9933081007b112e61bf807ad3802467f0a2f11b 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <errno.h>
 #include <image.h>
+#include <log.h>
 #include <linux/libfdt.h>
 
 ulong fdt_getprop_u32(const void *fdt, int node, const char *prop)
index e398530a138c4c7f8d87ab926c696afa95e5b1f8..1deca3cb78f81fabfdd541814775709c7ba49b07 100644 (file)
@@ -19,6 +19,7 @@
 #include <exports.h>
 #include <env_internal.h>
 #include <watchdog.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index e66471ebd1b257ce7049b2ec579c1d339abed8af..249d1f19411ef56305da9cd65777a51d24f1a623 100644 (file)
@@ -12,6 +12,7 @@
 #include <cros_ec.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 
 struct udevice *board_get_cros_ec_dev(void)
 {
index da6289b218dd2aa66e1c6d91ee4b5bf25eedc637..d23cf67f1942447b9f7f0842ca40623cbfb5db69 100644 (file)
@@ -11,6 +11,8 @@
  */
 
 #include <common.h>
+#include <command.h>
+#include <log.h>
 #include <watchdog.h>
 #include <dfu.h>
 #include <console.h>
index e8f07f14f93f2a9d58dcfd68f697adc6e314229a..b29a7cfd93d3e0324ad8b4c82be2d35314debb74 100644 (file)
@@ -1,4 +1,5 @@
 #include <common.h>
+#include <log.h>
 
 #if CONFIG_IS_ENABLED(UNIT_TEST)
 #define DEBUG
index f99f42dc406743495b2317b270f05f7623a2f26b..553ab8fd01a12b76a9c9733cd9d9ef85b6598cf3 100644 (file)
@@ -13,6 +13,7 @@
 #include <edid.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <linux/ctype.h>
 #include <linux/string.h>
 
index 18af38a5f6e91d60f65cfe4bfe6b81c41765a750..6253b55694bfc638ece0a6590166e09bbac999d5 100644 (file)
@@ -1,4 +1,5 @@
 #include <common.h>
+#include <command.h>
 #include <exports.h>
 #include <malloc.h>
 #include <spi.h>
index bf0a9be730fee60f499fcd51319b9856317c5282..667659054a7e6c9cd86aeb57028e38a9149e3e58 100644 (file)
@@ -5,6 +5,7 @@
  * Written by Simon Glass <sjg@chromium.org>
  */
 
+#include <fdt_support.h>
 #include <linux/libfdt_env.h>
 #include <fdt_region.h>
 
index 02cf5c6241b2c2961b31c7aec8879025e36ffc50..3778de5368661369e41b8c6b435e86202e31f225 100644 (file)
@@ -8,7 +8,9 @@
 
 #include <common.h>
 #include <env.h>
+#include <log.h>
 #include <mapmem.h>
+#include <net.h>
 #include <stdio_dev.h>
 #include <linux/ctype.h>
 #include <linux/types.h>
index 5f155aefd1d36e81cbee1e1bce6932e141cde278..bb82385c1f74fa693b4ee95488789df864eea33e 100644 (file)
@@ -8,6 +8,8 @@
 
 #include <common.h>
 #include <flash.h>
+#include <log.h>
+#include <uuid.h>
 
 #include <mtd/cfi_flash.h>
 
@@ -24,7 +26,7 @@ extern flash_info_t  flash_info[]; /* info for FLASH chips */
  * If necessary you have to map the second bank at lower addresses.
  */
 void
-flash_protect (int flag, ulong from, ulong to, flash_info_t *info)
+flash_protect(int flag, ulong from, ulong to, flash_info_t *info)
 {
        ulong b_end;
        short s_end;
@@ -38,10 +40,10 @@ flash_protect (int flag, ulong from, ulong to, flash_info_t *info)
        s_end = info->sector_count - 1; /* index of last sector */
        b_end = info->start[0] + info->size - 1;        /* bank end address */
 
-       debug ("flash_protect %s: from 0x%08lX to 0x%08lX\n",
-               (flag & FLAG_PROTECT_SET) ? "ON" :
-                       (flag & FLAG_PROTECT_CLEAR) ? "OFF" : "???",
-               from, to);
+       debug("%s %s: from 0x%08lX to 0x%08lX\n", __func__,
+             (flag & FLAG_PROTECT_SET) ? "ON" :
+             (flag & FLAG_PROTECT_CLEAR) ? "OFF" : "???",
+             from, to);
 
        /* There is nothing to do if we have no data about the flash
         * or the protect range and flash range don't overlap.
@@ -66,7 +68,7 @@ flash_protect (int flag, ulong from, ulong to, flash_info_t *info)
 #else
                                info->protect[i] = 0;
 #endif /* CONFIG_SYS_FLASH_PROTECTION */
-                               debug ("protect off %d\n", i);
+                               debug("protect off %d\n", i);
                        }
                        else if (flag & FLAG_PROTECT_SET) {
 #if defined(CONFIG_SYS_FLASH_PROTECTION)
@@ -74,7 +76,7 @@ flash_protect (int flag, ulong from, ulong to, flash_info_t *info)
 #else
                                info->protect[i] = 1;
 #endif /* CONFIG_SYS_FLASH_PROTECTION */
-                               debug ("protect on %d\n", i);
+                               debug("protect on %d\n", i);
                        }
                }
        }
@@ -84,7 +86,7 @@ flash_protect (int flag, ulong from, ulong to, flash_info_t *info)
  */
 
 flash_info_t *
-addr2info (ulong addr)
+addr2info(ulong addr)
 {
        flash_info_t *info;
        int i;
@@ -119,12 +121,12 @@ addr2info (ulong addr)
  *                     (only some targets require alignment)
  */
 int
-flash_write (char *src, ulong addr, ulong cnt)
+flash_write(char *src, ulong addr, ulong cnt)
 {
        int i;
        ulong         end        = addr + cnt - 1;
-       flash_info_t *info_first = addr2info (addr);
-       flash_info_t *info_last  = addr2info (end );
+       flash_info_t *info_first = addr2info(addr);
+       flash_info_t *info_last  = addr2info(end);
        flash_info_t *info;
        __maybe_unused char *src_orig = src;
        __maybe_unused char *addr_orig = (char *)addr;
index ff4986a6190269ed4659685fd9cb77d8c423fae2..8c00659d252891b631f6299bdae9c789a72cab5d 100644 (file)
 #include <common.h>
 #include <command.h>
 #include <env.h>
+#include <log.h>
 #include <malloc.h>
 #include <mapmem.h>
 #include <hw_sha.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <linux/errno.h>
 #include <u-boot/crc.h>
 #else
 #include "mkimage.h"
 #include <time.h>
-#include <image.h>
 #endif /* !USE_HOSTCC*/
 
 #include <hash.h>
+#include <image.h>
 #include <u-boot/crc.h>
 #include <u-boot/sha1.h>
 #include <u-boot/sha256.h>
@@ -443,8 +445,8 @@ static void hash_show(struct hash_algo *algo, ulong addr, ulong len, uint8_t *ou
                printf("%02x", output[i]);
 }
 
-int hash_command(const char *algo_name, int flags, cmd_tbl_t *cmdtp, int flag,
-                int argc, char * const argv[])
+int hash_command(const char *algo_name, int flags, struct cmd_tbl *cmdtp,
+                int flag, int argc, char *const argv[])
 {
        ulong addr, len;
 
index 72f3c4e0faa6d3ec8129940c7def61fb1a70832a..daf3eea5f96852bd198be5b4712146cf0916305e 100644 (file)
@@ -14,6 +14,7 @@
 #include <env.h>
 #include <exports.h>
 #include <hwconfig.h>
+#include <log.h>
 #include <linux/types.h>
 #include <linux/string.h>
 #else
index f50c3d31bd5ef48a35e5347228e846fa7c28dec4..09869f78464402a9c005122e5380b2d543b6dcf6 100644 (file)
@@ -10,7 +10,7 @@
 #include <common.h>
 #include <malloc.h>
 DECLARE_GLOBAL_DATA_PTR;
-#endif /* !USE_HOSTCC*/
+#endif /* !USE_HOSdTCC*/
 #include <image.h>
 #include <uboot_aes.h>
 #include <u-boot/aes.h>
index 3002948b6b0e219f25a31ce40125ec92ce46e6df..b63e772bd6ee4f7af8f9d614046f861194b11e97 100644 (file)
@@ -14,6 +14,8 @@
 #include <env.h>
 #include <errno.h>
 #include <image.h>
+#include <lmb.h>
+#include <log.h>
 #include <malloc.h>
 #include <linux/libfdt.h>
 #include <mapmem.h>
@@ -263,8 +265,8 @@ error:
  *     1, if fdt image is found but corrupted
  *     of_flat_tree and of_size are set to 0 if no fdt exists
  */
-int boot_get_fdt(int flag, int argc, char * const argv[], uint8_t arch,
-               bootm_headers_t *images, char **of_flat_tree, ulong *of_size)
+int boot_get_fdt(int flag, int argc, char *const argv[], uint8_t arch,
+                bootm_headers_t *images, char **of_flat_tree, ulong *of_size)
 {
 #if CONFIG_IS_ENABLED(LEGACY_IMAGE_FORMAT)
        const image_header_t *fdt_hdr;
index a3a0c61bcbf48df7fb53f848d5a03df22dbbcf09..cc1967109ead26d25add0a2f917a7d9debc61be9 100644 (file)
@@ -8,6 +8,7 @@
 #include <time.h>
 #else
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 DECLARE_GLOBAL_DATA_PTR;
 #endif /* !USE_HOSTCC*/
index 368b73088a2af9d0683e050ec13a9e33513f1481..1ece100a21455bc0f699c1dacd562ee619e1966a 100644 (file)
 #ifdef USE_HOSTCC
 #include "mkimage.h"
 #include <time.h>
+#include <linux/libfdt.h>
 #include <u-boot/crc.h>
 #else
 #include <linux/compiler.h>
 #include <linux/kconfig.h>
 #include <common.h>
 #include <errno.h>
+#include <log.h>
 #include <mapmem.h>
 #include <asm/io.h>
 #include <malloc.h>
index 84b2c0439cf8965a6a7e55cd0a2ec316f4c475ed..498969d64141d5e55c593627c66835cec7d3aa66 100644 (file)
@@ -5,9 +5,12 @@
 
 #ifdef USE_HOSTCC
 #include "mkimage.h"
+#include <fdt_support.h>
 #include <time.h>
+#include <linux/libfdt.h>
 #else
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 DECLARE_GLOBAL_DATA_PTR;
 #endif /* !USE_HOSTCC*/
index d8d14e871c6473b68c11938c5357ab7edfefe157..e1ca1a7905ef4f0ba298318e0977f0aa5769d206 100644 (file)
@@ -8,9 +8,13 @@
 
 #ifndef USE_HOSTCC
 #include <common.h>
+#include <bootstage.h>
 #include <cpu_func.h>
 #include <env.h>
+#include <lmb.h>
+#include <log.h>
 #include <malloc.h>
+#include <asm/cache.h>
 #include <u-boot/crc.h>
 #include <watchdog.h>
 
@@ -44,7 +48,8 @@
 #include <lzma/LzmaTools.h>
 
 #ifdef CONFIG_CMD_BDI
-extern int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
+extern int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[]);
 #endif
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -1072,8 +1077,8 @@ int genimg_has_config(bootm_headers_t *images)
  *     1, if ramdisk image is found but corrupted, or invalid
  *     rd_start and rd_end are set to 0 if no ramdisk exists
  */
-int boot_get_ramdisk(int argc, char * const argv[], bootm_headers_t *images,
-               uint8_t arch, ulong *rd_start, ulong *rd_end)
+int boot_get_ramdisk(int argc, char *const argv[], bootm_headers_t *images,
+                    uint8_t arch, ulong *rd_start, ulong *rd_end)
 {
        ulong rd_addr, rd_load;
        ulong rd_data, rd_len;
@@ -1368,7 +1373,7 @@ int boot_get_setup(bootm_headers_t *images, uint8_t arch,
 
 #if IMAGE_ENABLE_FIT
 #if defined(CONFIG_FPGA)
-int boot_get_fpga(int argc, char * const argv[], bootm_headers_t *images,
+int boot_get_fpga(int argc, char *const argv[], bootm_headers_t *images,
                  uint8_t arch, const ulong *ld_start, ulong * const ld_len)
 {
        ulong tmp_img_addr, img_data, img_len;
@@ -1469,8 +1474,8 @@ static void fit_loadable_process(uint8_t img_type,
                        fit_loadable_handler->handler(img_data, img_len);
 }
 
-int boot_get_loadable(int argc, char * const argv[], bootm_headers_t *images,
-               uint8_t arch, const ulong *ld_start, ulong * const ld_len)
+int boot_get_loadable(int argc, char *const argv[], bootm_headers_t *images,
+                     uint8_t arch, const ulong *ld_start, ulong * const ld_len)
 {
        /*
         * These variables are used to hold the current image location
index f7c8a173ffb9381acdb1ddb73a61f79d879d448e..8c8a5eac05717aa7cb665c565c9c0bffaa93e884 100644 (file)
@@ -7,6 +7,8 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
+#include <init.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 295ee07b72473fc2c8b0ff3ff4ce811953f28a55..7225ee440418c5e4312c966c293ddca737de39e7 100644 (file)
@@ -9,6 +9,7 @@
 #include <mapmem.h>
 #include <time.h>
 #include <asm/io.h>
+#include <linux/bug.h>
 #include <u-boot/crc.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index daf53bed7a9630133c659e0384307c480a8292b6..4493a1591986c3380df2c86d40a8996b1688b96a 100644 (file)
@@ -88,6 +88,7 @@
  ****************************************************************************/
 
 #include <common.h>
+#include <asm/ptrace.h>
 
 #include <kgdb.h>
 #include <command.h>
@@ -574,7 +575,7 @@ breakpoint(void)
 }
 
 int
-do_kgdb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+do_kgdb(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
     printf("Entering KGDB mode via exception handler...\n\n");
     kgdb_breakpoint(argc - 1, argv + 1);
index c061126bed2a1103c98151816d9ad6614db75d82..66aed7cea1c7e268afcbb7274e1c71fa5208c0e8 100644 (file)
@@ -11,6 +11,7 @@
 #include <cpu_func.h>
 #include <kgdb.h>
 #include <serial.h>
+#include <asm/ptrace.h>
 
 int (*debugger_exception_handler)(struct pt_regs *);
 
index f8bc1ceba74a62ce154d5acc213f29db856faa12..02f2db3a99e54b0629a539831db31735305513cd 100644 (file)
@@ -12,6 +12,9 @@
 #include <command.h>
 #include <cpu_func.h>
 #include <env_callback.h>
+#include <log.h>
+#include <asm/cache.h>
+#include <init.h>
 #include <linux/types.h>
 #include <stdio_dev.h>
 #include <lcd.h>
index d34bc2fa83093d9e67afddbe479308db7306c69d..1a246c492cece47559779e263bcaade382ef7c39 100644 (file)
@@ -7,7 +7,9 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <lcd.h>
+#include <log.h>
 #include <serial.h>
 #include <video_font.h>                /* Get font data, width and height */
 #if defined(CONFIG_LCD_LOGO)
@@ -219,7 +221,7 @@ void lcd_printf(const char *fmt, ...)
        lcd_puts(buf);
 }
 
-static int do_lcd_setcursor(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_lcd_setcursor(struct cmd_tbl *cmdtp, int flag, int argc,
                            char *const argv[])
 {
        unsigned int col, row;
@@ -234,7 +236,7 @@ static int do_lcd_setcursor(cmd_tbl_t *cmdtp, int flag, int argc,
        return 0;
 }
 
-static int do_lcd_puts(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_lcd_puts(struct cmd_tbl *cmdtp, int flag, int argc,
                       char *const argv[])
 {
        if (argc != 2)
index 5e3e20e8a456230980519e1529e5183fe4f1a939..698c585fa11eeff51656b6e9722583dda10c323c 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <net.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 06d7ff56d60c33cf4a31a02c5fa02ee34f75534b..4b3cd302c3e22209db13c4ca491a861ad3fd0f23 100644 (file)
@@ -8,11 +8,13 @@
 
 #include <common.h>
 #include <autoboot.h>
+#include <bootstage.h>
 #include <cli.h>
 #include <command.h>
 #include <console.h>
 #include <env.h>
 #include <init.h>
+#include <net.h>
 #include <version.h>
 
 static void run_preboot_environment_command(void)
index eabbb70128b375286691489fe2248bb94b1296f1..34f0b490938709d4cb4188fe2d9aa601d3471ee7 100644 (file)
@@ -8,6 +8,7 @@
 #define LOG_CATEGORY LOGC_ALLOC
 
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 #include <mapmem.h>
 #include <asm/io.h>
index 2db067876e4b8f58263ddf2ceca8209f0f5e207d..7d4d15ed9189019631578ac9b88ee1f7ac82ce3d 100644 (file)
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <miiphy.h>
 #include <phy.h>
+#include <linux/delay.h>
 
 #include <asm/types.h>
 #include <linux/list.h>
index fc5cbbbeba3aae9de3c9ac9f49758adc6b5bf2df..7ea0b06a8017ecd23776c38db2d13b19cbd91ddf 100644 (file)
@@ -9,10 +9,13 @@
 #include <common.h>
 #include <bloblist.h>
 #include <binman_sym.h>
+#include <bootstage.h>
 #include <dm.h>
 #include <handoff.h>
 #include <hang.h>
+#include <init.h>
 #include <irq_func.h>
+#include <log.h>
 #include <serial.h>
 #include <spl.h>
 #include <asm/u-boot.h>
@@ -423,11 +426,11 @@ static int spl_common_init(bool setup_malloc)
                }
        }
        if (CONFIG_IS_ENABLED(DM)) {
-               bootstage_start(BOOTSTATE_ID_ACCUM_DM_SPL,
+               bootstage_start(BOOTSTAGE_ID_ACCUM_DM_SPL,
                                spl_phase() == PHASE_TPL ? "dm tpl" : "dm_spl");
                /* With CONFIG_SPL_OF_PLATDATA, bring in all devices */
                ret = dm_init_and_scan(!CONFIG_IS_ENABLED(OF_PLATDATA));
-               bootstage_accum(BOOTSTATE_ID_ACCUM_DM_SPL);
+               bootstage_accum(BOOTSTAGE_ID_ACCUM_DM_SPL);
                if (ret) {
                        debug("dm_init_and_scan() returned error %d\n", ret);
                        return ret;
index 702367b2a23c9f6f709f5c41a336c8f3e230a7e4..b54b4f0d22e25183aa3e1aa18fab5d412a4cb52c 100644 (file)
 #include <atf_common.h>
 #include <cpu_func.h>
 #include <errno.h>
+#include <image.h>
+#include <log.h>
 #include <spl.h>
+#include <asm/cache.h>
 
 static struct bl2_to_bl31_params_mem bl31_params_mem;
 static struct bl31_params *bl2_to_bl31_params;
index 2a6252229ca157f2b3534ea12214bfb0cbc412fb..3898041d106c926e85016bc69330b6dd7fba7745 100644 (file)
@@ -2,6 +2,7 @@
 
 #include <common.h>
 #include <env.h>
+#include <part.h>
 #include <spl.h>
 #include <asm/u-boot.h>
 #include <ext4fs.h>
@@ -15,7 +16,7 @@ int spl_load_image_ext(struct spl_image_info *spl_image,
        s32 err;
        struct image_header *header;
        loff_t filelen, actlen;
-       disk_partition_t part_info = {};
+       struct disk_partition part_info = {};
 
        header = spl_get_load_buffer(-sizeof(*header), sizeof(*header));
 
@@ -69,7 +70,7 @@ int spl_load_image_ext_os(struct spl_image_info *spl_image,
 {
        int err;
        __maybe_unused loff_t filelen, actlen;
-       disk_partition_t part_info = {};
+       struct disk_partition part_info = {};
        __maybe_unused char *file;
 
        if (part_get_info(block_dev, partition, &part_info)) {
index aa371ab52c5606c7529b0817f6d43cf31dc1d1b0..c2eb097365ffbea29c16610d305c3e44d6d1107d 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <env.h>
+#include <log.h>
 #include <spl.h>
 #include <asm/u-boot.h>
 #include <fat.h>
index c51e4beb1c0e2b8c24e265275d90bb20c7b7ec52..f581a2242132e29903df4b018a8bc4af5980075e 100644 (file)
 #include <fpga.h>
 #include <gzip.h>
 #include <image.h>
+#include <log.h>
 #include <malloc.h>
 #include <spl.h>
+#include <asm/cache.h>
 #include <linux/libfdt.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index 29d3ec70734dedefb2253ee39d1ef8732eed3d31..82d032680616626c81d905a0fc7651f9802b8f00 100644 (file)
@@ -4,6 +4,8 @@
  */
 
 #include <common.h>
+#include <image.h>
+#include <log.h>
 #include <malloc.h>
 #include <spl.h>
 
index a68cdec8dc8f5e15c0751555f9328df76125799a..add2785b4e39d2bafb953b9757853ecc8f0caee6 100644 (file)
@@ -7,6 +7,8 @@
  */
 #include <common.h>
 #include <dm.h>
+#include <log.h>
+#include <part.h>
 #include <spl.h>
 #include <linux/compiler.h>
 #include <errno.h>
@@ -168,7 +170,7 @@ static int mmc_load_image_raw_partition(struct spl_image_info *spl_image,
                                        struct mmc *mmc, int partition,
                                        unsigned long sector)
 {
-       disk_partition_t info;
+       struct disk_partition info;
        int err;
 
 #ifdef CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
index 5f8a111a2f064808dadead4d2e30e1ae0edd354a..48c97549eb90609a9ae2cccb1c1dade96ba3a9a1 100644 (file)
@@ -5,6 +5,9 @@
  */
 #include <common.h>
 #include <config.h>
+#include <fdt_support.h>
+#include <image.h>
+#include <log.h>
 #include <spl.h>
 #include <asm/io.h>
 #include <nand.h>
index 30c050c0b3e6c0767bf1d607ab63037f919da7a7..e140a6306ffff8c8f7192855e7347656b97b8b7d 100644 (file)
@@ -9,6 +9,8 @@
 #include <common.h>
 #include <env.h>
 #include <errno.h>
+#include <image.h>
+#include <log.h>
 #include <spl.h>
 #include <net.h>
 #include <linux/libfdt.h>
index 3f03ffe6a333f410fb7bd29dd50aa3a65ecad830..5270401db0347270a23b7b33a27898b1d0d04ae9 100644 (file)
@@ -4,6 +4,8 @@
  */
 
 #include <common.h>
+#include <image.h>
+#include <log.h>
 #include <spl.h>
 
 static ulong spl_nor_load_read(struct spl_load_info *load, ulong sector,
index ee30f328e6027e92a22f0b387b7aa326c467dbae..93cbf47e8228ee7f8aa01b98c7fef5d682e23796 100644 (file)
@@ -9,6 +9,8 @@
  */
 #include <common.h>
 #include <config.h>
+#include <image.h>
+#include <log.h>
 #include <spl.h>
 #include <asm/io.h>
 #include <onenand_uboot.h>
index 3519c34299d0199675506f08bd0a808230968498..e88136e6f39ed8528bb5a2460624f178f06092b9 100644 (file)
@@ -9,9 +9,11 @@
 #include <cpu_func.h>
 #include <errno.h>
 #include <hang.h>
+#include <image.h>
 #include <spl.h>
 #include <asm/smp.h>
 #include <opensbi.h>
+#include <linux/libfdt.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 954e91a0045cacf0d287acedb5add9549133ff87..df1d5b43d8b52828d7018ae74ae23932f5074910 100644 (file)
@@ -11,6 +11,8 @@
  */
 #include <common.h>
 #include <binman_sym.h>
+#include <image.h>
+#include <log.h>
 #include <mapmem.h>
 #include <spl.h>
 #include <linux/libfdt.h>
index 644dfa8cc3e775a0c84171990a94955c8cd54366..e7f7b6841163463b50f37bcfdb7faffc15f339a2 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <spl.h>
 #include <usb.h>
 #include <g_dnl.h>
index 288dbb5fa9812773c17412a549382cd38e974cc3..2744fb5d520cc309d85a49a02a776cc94a135084 100644 (file)
@@ -9,6 +9,8 @@
  */
 
 #include <common.h>
+#include <image.h>
+#include <log.h>
 #include <spi.h>
 #include <spi_flash.h>
 #include <errno.h>
index 0cb508088275ec0fb68dae25279822969a71217b..de6a63bd2d45113eb04b0dc8c8dfbc6fafc83174 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <config.h>
+#include <image.h>
 #include <nand.h>
 #include <onenand_uboot.h>
 #include <ubispl.h>
index e29d579b0d43ff77c0eba8bd4987cd5a69a928de..08837b38fc9a81f287bdff9bb608a95ebc9e2335 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <spl.h>
 #include <asm/u-boot.h>
 #include <errno.h>
index 1af4da8725533d924bee4a3e9afd9509de3bfb20..8ce0a09ef3f425ffaf1147bab7445b3e32628c64 100644 (file)
@@ -5,6 +5,8 @@
  */
 
 #include <common.h>
+#include <image.h>
+#include <log.h>
 #include <spl.h>
 
 static int spl_xip(struct spl_image_info *spl_image,
index 8500ee8ba5d917ee95e93bb6a08e0a47e7869bfe..284512478f1be52cf9119b18cf2fe0f73ed64043 100644 (file)
@@ -10,6 +10,8 @@
  */
 #include <common.h>
 #include <gzip.h>
+#include <image.h>
+#include <log.h>
 #include <spl.h>
 #include <xyzModem.h>
 #include <asm/u-boot.h>
index 2ff15208a70d77acc68e8cba33f1498a75e2f1be..f51ca5ddf37cd8ca3488b134097c21ca508e3dd5 100644 (file)
@@ -13,6 +13,7 @@
 #include <fs.h>
 #include <fdt_support.h>
 #include <image.h>
+#include <log.h>
 #include <nand.h>
 #include <sata.h>
 #include <spi.h>
index 54ecc9b53db9c2354d3b2f30c2517c58c7c77891..2119204b9829497ca07fbafa802e6870f1218212 100644 (file)
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <stdarg.h>
 #include <malloc.h>
 #include <stdio_dev.h>
index 686f09a77d1ec7caf151b21dadaa17ec979f7f4e..aad13fd9c5574343ea69dc95e50a7a42ea081574 100644 (file)
@@ -28,6 +28,7 @@
 #include <common.h>
 #include <command.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <memalign.h>
 #include <asm/processor.h>
@@ -37,6 +38,7 @@
 #include <asm/unaligned.h>
 #include <errno.h>
 #include <usb.h>
+#include <linux/delay.h>
 
 #define USB_BUFSIZ     512
 
index c642b683e7ebc74dab4056001d8b2179265c68bb..e578f0be28467ba15fdc9a919fa92626d89c3e43 100644 (file)
 #include <dm.h>
 #include <env.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <memalign.h>
 #include <asm/processor.h>
 #include <asm/unaligned.h>
 #include <linux/ctype.h>
+#include <linux/delay.h>
 #include <linux/list.h>
 #include <asm/byteorder.h>
 #ifdef CONFIG_SANDBOX
index a6221ef71647c20ddef7d68b50346ab6c126d60c..b316807844b17150c5070c70f6bc9e39502f4695 100644 (file)
@@ -11,6 +11,7 @@
 #include <dm.h>
 #include <env.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <memalign.h>
 #include <stdio_dev.h>
index b291ac55d14542fa47af0c941d67598082adfbe7..ff254419951ffafbe1a8375c8f36870d6c44caf5 100644 (file)
 
 
 #include <common.h>
+#include <blk.h>
 #include <command.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <mapmem.h>
 #include <memalign.h>
 #include <asm/byteorder.h>
+#include <asm/cache.h>
 #include <asm/processor.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
+#include <linux/delay.h>
 
 #include <part.h>
 #include <usb.h>
index 075daa79d3f687898ebe11d1817d1628111ace8b..308f097b60f2810bec5f1c9fd6d02f98d7fc6cef 100644 (file)
@@ -47,6 +47,8 @@ CONFIG_NAND_ATMEL=y
 CONFIG_DM_SPI_FLASH=y
 CONFIG_SF_DEFAULT_SPEED=30000000
 CONFIG_SPI_FLASH_ATMEL=y
+CONFIG_KS8851_MLL=y
+CONFIG_KS8851_MLL_BASEADDR=0x30000000
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_AT91=y
 CONFIG_DM_SERIAL=y
index b02be844931040cac87f92d03a93c7eabc0aa703..fd6d13db9bac63505f4f11e82e71224a8220a686 100644 (file)
@@ -48,6 +48,8 @@ CONFIG_SPL_GENERATE_ATMEL_PMECC_HEADER=y
 CONFIG_DM_SPI_FLASH=y
 CONFIG_SF_DEFAULT_SPEED=30000000
 CONFIG_SPI_FLASH_ATMEL=y
+CONFIG_KS8851_MLL=y
+CONFIG_KS8851_MLL_BASEADDR=0x30000000
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_AT91=y
 CONFIG_DM_SERIAL=y
index be8ef51a2d85ead8b367bdf2e223c3aa39feb75c..97e29bdc6e776100dbec7fb05054fc3507c88e3b 100644 (file)
@@ -49,6 +49,8 @@ CONFIG_NAND_ATMEL=y
 CONFIG_DM_SPI_FLASH=y
 CONFIG_SF_DEFAULT_SPEED=30000000
 CONFIG_SPI_FLASH_ATMEL=y
+CONFIG_KS8851_MLL=y
+CONFIG_KS8851_MLL_BASEADDR=0x30000000
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_AT91=y
 CONFIG_DM_SERIAL=y
index afb59ec8847e6b2195dbca850eeebc051827aeb3..d467e62deef1f4903d0f10462f73f0374ea5613c 100644 (file)
@@ -13,6 +13,7 @@ CONFIG_USE_PREBOOT=y
 CONFIG_PREBOOT="fdt addr ${fdtcontroladdr};fdt move ${fdtcontroladdr} ${fdtsaveaddr};fdt addr ${fdtsaveaddr};"
 CONFIG_HUSH_PARSER=y
 CONFIG_SYS_PROMPT="U-Boot>"
+CONFIG_CMD_MMC=y
 CONFIG_EFI_PARTITION=y
 CONFIG_OF_PRIOR_STAGE=y
 CONFIG_ENV_IS_IN_MMC=y
index 0ae0595903ceb99e0c19c0ab6c0af2407258cd37..2c71a5efedd1fdba1d40a568ce6c92b9ebd0523b 100644 (file)
@@ -14,6 +14,7 @@ CONFIG_USE_PREBOOT=y
 CONFIG_PREBOOT="fdt addr ${fdtcontroladdr};fdt move ${fdtcontroladdr} ${fdtsaveaddr};fdt addr ${fdtsaveaddr};"
 CONFIG_HUSH_PARSER=y
 CONFIG_SYS_PROMPT="U-Boot>"
+CONFIG_CMD_MMC=y
 CONFIG_CMD_SF_TEST=y
 CONFIG_CMD_SPI=y
 CONFIG_OF_PRIOR_STAGE=y
index b1ad7bdd1dcd086ee10df79b708ebbb024410036..23efafb0d2d534a3ed30d0967394509ff71c052a 100644 (file)
@@ -19,6 +19,7 @@ CONFIG_USE_PREBOOT=y
 CONFIG_DEFAULT_FDT_FILE="rk3288-veyron-mickey.dtb"
 # CONFIG_DISPLAY_CPUINFO is not set
 CONFIG_DISPLAY_BOARDINFO_LATE=y
+CONFIG_BOARD_EARLY_INIT_R=y
 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
 CONFIG_SPL_STACK_R=y
 CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x2000
@@ -72,8 +73,7 @@ CONFIG_SPI_FLASH_GIGADEVICE=y
 CONFIG_PINCTRL=y
 CONFIG_PINCONF=y
 CONFIG_SPL_PINCTRL=y
-# CONFIG_SPL_PINMUX is not set
-CONFIG_SPL_PINCONF=y
+# CONFIG_SPL_PINCTRL_FULL is not set
 CONFIG_DM_PMIC=y
 # CONFIG_SPL_PMIC_CHILDREN is not set
 CONFIG_PMIC_RK8XX=y
index 16eee2238b9b793c438e14c1de76eb34a032346f..443e3cdace8deb78ba047641ccf972238df7ee29 100644 (file)
@@ -20,7 +20,7 @@ CONFIG_LOG=y
 CONFIG_DEFAULT_FDT_FILE="rk3288-veyron-jerry.dtb"
 # CONFIG_DISPLAY_CPUINFO is not set
 CONFIG_DISPLAY_BOARDINFO_LATE=y
-CONFIG_BOARD_EARLY_INIT_F=y
+CONFIG_BOARD_EARLY_INIT_R=y
 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
 CONFIG_SPL_STACK_R=y
 CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x2000
@@ -75,8 +75,7 @@ CONFIG_SPI_FLASH_GIGADEVICE=y
 CONFIG_PINCTRL=y
 CONFIG_PINCONF=y
 CONFIG_SPL_PINCTRL=y
-# CONFIG_SPL_PINMUX is not set
-CONFIG_SPL_PINCONF=y
+# CONFIG_SPL_PINCTRL_FULL is not set
 CONFIG_DM_PMIC=y
 # CONFIG_SPL_PMIC_CHILDREN is not set
 CONFIG_PMIC_RK8XX=y
index 2c0415431f7eadcb774cf3837374dd3c89a7247b..99ac0e0674389b512020decf5df5b03e4a763529 100644 (file)
@@ -20,6 +20,7 @@ CONFIG_SILENT_CONSOLE=y
 CONFIG_DEFAULT_FDT_FILE="rk3288-veyron-minnie.dtb"
 # CONFIG_DISPLAY_CPUINFO is not set
 CONFIG_DISPLAY_BOARDINFO_LATE=y
+CONFIG_BOARD_EARLY_INIT_R=y
 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
 CONFIG_SPL_STACK_R=y
 CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x2000
@@ -74,8 +75,7 @@ CONFIG_SPI_FLASH_GIGADEVICE=y
 CONFIG_PINCTRL=y
 CONFIG_PINCONF=y
 CONFIG_SPL_PINCTRL=y
-# CONFIG_SPL_PINMUX is not set
-CONFIG_SPL_PINCONF=y
+# CONFIG_SPL_PINCTRL_FULL is not set
 CONFIG_DM_PMIC=y
 # CONFIG_SPL_PMIC_CHILDREN is not set
 CONFIG_PMIC_RK8XX=y
index b4116a34e6c59faf7ee20703ba1da6deb6e6e146..5a5152541bf383b5f7a6bd189d37026426c814e4 100644 (file)
@@ -20,7 +20,7 @@ CONFIG_SILENT_CONSOLE=y
 CONFIG_DEFAULT_FDT_FILE="rk3288-veyron-speedy.dtb"
 # CONFIG_DISPLAY_CPUINFO is not set
 CONFIG_DISPLAY_BOARDINFO_LATE=y
-CONFIG_BOARD_EARLY_INIT_F=y
+CONFIG_BOARD_EARLY_INIT_R=y
 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
 CONFIG_SPL_STACK_R=y
 CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x2000
@@ -74,6 +74,7 @@ CONFIG_SPI_FLASH_GIGADEVICE=y
 CONFIG_PINCTRL=y
 CONFIG_PINCONF=y
 CONFIG_SPL_PINCTRL=y
+# CONFIG_SPL_PINCTRL_FULL is not set
 CONFIG_DM_PMIC=y
 # CONFIG_SPL_PMIC_CHILDREN is not set
 CONFIG_PMIC_RK8XX=y
index a5d51ce6101830126ec1534bb8480f31472f9031..7e394d9aec1726a341931e937de66158eb0fb64d 100644 (file)
@@ -16,6 +16,7 @@ CONFIG_HUSH_PARSER=y
 # CONFIG_CMD_FLASH is not set
 CONFIG_CMD_GPIO=y
 # CONFIG_CMD_LOADS is not set
+CONFIG_CMD_MMC=y
 CONFIG_CMD_NAND=y
 CONFIG_CMD_PART=y
 CONFIG_CMD_USB=y
index 1504ecbbd647591670677e84e1678bce5ff9780c..7472bad9e62b7f665461d82a584f44339f99b191 100644 (file)
@@ -19,6 +19,7 @@ CONFIG_HUSH_PARSER=y
 # CONFIG_BOOTM_NETBSD is not set
 CONFIG_CMD_GPIO=y
 CONFIG_CMD_I2C=y
+CONFIG_CMD_MMC=y
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_REGULATOR=y
 CONFIG_CMD_EXT2=y
index 651940ccf6963f641e940262e81d8c428bf8e3cd..045d20489706fc15156d5f5ff1878c913183f6e3 100644 (file)
@@ -21,6 +21,7 @@ CONFIG_HUSH_PARSER=y
 # CONFIG_BOOTM_NETBSD is not set
 CONFIG_CMD_GPIO=y
 CONFIG_CMD_I2C=y
+CONFIG_CMD_MMC=y
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_REGULATOR=y
 CONFIG_CMD_EXT2=y
index 18b72b465caafde90c1601cba17b8b512711a5f3..07ba4d6472d8b9814c495e363321d4665c35b1ed 100644 (file)
@@ -1,7 +1,7 @@
 CONFIG_ARM=y
 CONFIG_TARGET_LS1012A2G5RDB=y
 CONFIG_SYS_TEXT_BASE=0x40100000
-CONFIG_ENV_SIZE=0x40000
+CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_OFFSET=0x300000
 CONFIG_ENV_SECT_SIZE=0x40000
 CONFIG_DM_GPIO=y
@@ -44,6 +44,7 @@ CONFIG_FSL_ESDHC=y
 CONFIG_MTD=y
 CONFIG_DM_SPI_FLASH=y
 # CONFIG_SPI_FLASH_BAR is not set
+CONFIG_SPI_FLASH_SPANSION=y
 # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
 CONFIG_FSL_PFE=y
 CONFIG_DM_ETH=y
index 4ca57d1debc457393f766774743dcb3f8a8598e9..8999d01f66267a4a9ad564b3dd962b3ad58d8304 100644 (file)
@@ -2,7 +2,7 @@ CONFIG_ARM=y
 CONFIG_TARGET_LS1012A2G5RDB=y
 CONFIG_TFABOOT=y
 CONFIG_SYS_TEXT_BASE=0x82000000
-CONFIG_ENV_SIZE=0x40000
+CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_OFFSET=0x500000
 CONFIG_ENV_SECT_SIZE=0x40000
 CONFIG_DM_GPIO=y
@@ -44,6 +44,7 @@ CONFIG_FSL_ESDHC=y
 CONFIG_MTD=y
 CONFIG_DM_SPI_FLASH=y
 # CONFIG_SPI_FLASH_BAR is not set
+CONFIG_SPI_FLASH_SPANSION=y
 # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
 CONFIG_FSL_PFE=y
 CONFIG_DM_ETH=y
index 1a4cc37555ca84477802cb034b6da7b77632338c..541cbb07ce25b9b25711fe750065b7e9b16cf2d3 100644 (file)
@@ -1,7 +1,7 @@
 CONFIG_ARM=y
 CONFIG_TARGET_LS1012AFRDM=y
 CONFIG_SYS_TEXT_BASE=0x40100000
-CONFIG_ENV_SIZE=0x40000
+CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_OFFSET=0x300000
 CONFIG_ENV_SECT_SIZE=0x40000
 CONFIG_DM_GPIO=y
@@ -41,6 +41,7 @@ CONFIG_DM_I2C=y
 CONFIG_MTD=y
 CONFIG_DM_SPI_FLASH=y
 # CONFIG_SPI_FLASH_BAR is not set
+CONFIG_SPI_FLASH_SPANSION=y
 # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
 CONFIG_FSL_PFE=y
 CONFIG_DM_ETH=y
index 177fcd4ff63360648aa593909ba8a0bedd996b27..b5043d7a182de7339f8264220d781868c1e93531 100644 (file)
@@ -2,7 +2,7 @@ CONFIG_ARM=y
 CONFIG_TARGET_LS1012AFRDM=y
 CONFIG_TFABOOT=y
 CONFIG_SYS_TEXT_BASE=0x82000000
-CONFIG_ENV_SIZE=0x40000
+CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_OFFSET=0x500000
 CONFIG_ENV_SECT_SIZE=0x40000
 CONFIG_DM_GPIO=y
@@ -41,6 +41,7 @@ CONFIG_DM_I2C=y
 CONFIG_MTD=y
 CONFIG_DM_SPI_FLASH=y
 # CONFIG_SPI_FLASH_BAR is not set
+CONFIG_SPI_FLASH_SPANSION=y
 # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
 CONFIG_FSL_PFE=y
 CONFIG_DM_ETH=y
index a702cc82b9a01c8a76b142b3ec08133232b187cf..f105aaf2bc11b72fc438e165b5363241dfd01e67 100644 (file)
@@ -1,7 +1,7 @@
 CONFIG_ARM=y
 CONFIG_TARGET_LS1012AFRWY=y
 CONFIG_SYS_TEXT_BASE=0x40100000
-CONFIG_ENV_SIZE=0x10000
+CONFIG_ENV_SIZE=0x2000
 CONFIG_NXP_ESBC=y
 CONFIG_DM_GPIO=y
 CONFIG_FSL_LS_PPA=y
index 187015c2b2e87badb1840dbae3c2bfcc1ce13036..492276439efe49ef47ac7a4db8a32f6c8908d2ca 100644 (file)
@@ -1,7 +1,7 @@
 CONFIG_ARM=y
 CONFIG_TARGET_LS1012AFRWY=y
 CONFIG_SYS_TEXT_BASE=0x40100000
-CONFIG_ENV_SIZE=0x10000
+CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_OFFSET=0x1D0000
 CONFIG_ENV_SECT_SIZE=0x10000
 CONFIG_DM_GPIO=y
@@ -35,6 +35,7 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="fsl-ls1012a-frwy"
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_ENV_ADDR=0x401D0000
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_DM=y
 CONFIG_SATA_CEVA=y
index 5071bb75dfb0229e1206aad8ec331f4f390e55cd..9c8906415040d845f55078c40212c2467c4f84cf 100644 (file)
@@ -2,7 +2,7 @@ CONFIG_ARM=y
 CONFIG_TARGET_LS1012AFRWY=y
 CONFIG_TFABOOT=y
 CONFIG_SYS_TEXT_BASE=0x82000000
-CONFIG_ENV_SIZE=0x10000
+CONFIG_ENV_SIZE=0x2000
 CONFIG_NXP_ESBC=y
 CONFIG_DM_GPIO=y
 CONFIG_NR_DRAM_BANKS=2
index c5ed91a7d3e4e85b4432a33dee90f255575fe508..2948fd57ec515bc604d3618311bc43d04aa46f16 100644 (file)
@@ -2,7 +2,7 @@ CONFIG_ARM=y
 CONFIG_TARGET_LS1012AFRWY=y
 CONFIG_TFABOOT=y
 CONFIG_SYS_TEXT_BASE=0x82000000
-CONFIG_ENV_SIZE=0x10000
+CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_OFFSET=0x1D0000
 CONFIG_ENV_SECT_SIZE=0x10000
 CONFIG_DM_GPIO=y
@@ -34,7 +34,7 @@ CONFIG_CMD_CACHE=y
 CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="fsl-ls1012a-frwy"
 CONFIG_ENV_IS_IN_SPI_FLASH=y
-CONFIG_ENV_ADDR=0x401D0000
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_DM=y
 CONFIG_SATA_CEVA=y
index 1c3d7bcd756d921a141f4786d5c59efab34025db..65e8e5c791bd25e01c57a2351b0ede6138a92c02 100644 (file)
@@ -1,7 +1,7 @@
 CONFIG_ARM=y
 CONFIG_TARGET_LS1012AQDS=y
 CONFIG_SYS_TEXT_BASE=0x40100000
-CONFIG_ENV_SIZE=0x40000
+CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_OFFSET=0x300000
 CONFIG_ENV_SECT_SIZE=0x40000
 CONFIG_DM_GPIO=y
@@ -60,6 +60,7 @@ CONFIG_SF_DEFAULT_BUS=1
 CONFIG_SF_DEFAULT_MODE=0
 CONFIG_SF_DEFAULT_SPEED=10000000
 # CONFIG_SPI_FLASH_BAR is not set
+CONFIG_SPI_FLASH_SPANSION=y
 # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
 CONFIG_FSL_PFE=y
 CONFIG_DM_ETH=y
index 0833a2ae5eca078afe3e0540f39907fae6b65958..529cd08b12c1fd4ce18c73f8a24c6737879ad133 100644 (file)
@@ -2,7 +2,7 @@ CONFIG_ARM=y
 CONFIG_TARGET_LS1012AQDS=y
 CONFIG_TFABOOT=y
 CONFIG_SYS_TEXT_BASE=0x82000000
-CONFIG_ENV_SIZE=0x40000
+CONFIG_ENV_SIZE=0x2000
 CONFIG_NXP_ESBC=y
 CONFIG_DM_GPIO=y
 CONFIG_QSPI_AHB_INIT=y
@@ -49,6 +49,7 @@ CONFIG_SF_DEFAULT_BUS=1
 CONFIG_SF_DEFAULT_MODE=0
 CONFIG_SF_DEFAULT_SPEED=10000000
 # CONFIG_SPI_FLASH_BAR is not set
+CONFIG_SPI_FLASH_SPANSION=y
 # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
 CONFIG_FSL_PFE=y
 CONFIG_DM_ETH=y
index 7fc9e15bc41beb874690f7ca34747dec034e83c5..79d196c77b78ebbb6d7ef647d1be423ac3fe2e57 100644 (file)
@@ -2,7 +2,7 @@ CONFIG_ARM=y
 CONFIG_TARGET_LS1012AQDS=y
 CONFIG_TFABOOT=y
 CONFIG_SYS_TEXT_BASE=0x82000000
-CONFIG_ENV_SIZE=0x40000
+CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_OFFSET=0x500000
 CONFIG_ENV_SECT_SIZE=0x40000
 CONFIG_DM_GPIO=y
@@ -60,6 +60,7 @@ CONFIG_SF_DEFAULT_BUS=1
 CONFIG_SF_DEFAULT_MODE=0
 CONFIG_SF_DEFAULT_SPEED=10000000
 # CONFIG_SPI_FLASH_BAR is not set
+CONFIG_SPI_FLASH_SPANSION=y
 # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
 CONFIG_FSL_PFE=y
 CONFIG_DM_ETH=y
index b6110c022a3203930c0948af6bdb5e6c97bb2808..1483e64d8ce2fbbff4e82d14e3ef500453974efb 100644 (file)
@@ -1,7 +1,7 @@
 CONFIG_ARM=y
 CONFIG_TARGET_LS1012ARDB=y
 CONFIG_SYS_TEXT_BASE=0x40100000
-CONFIG_ENV_SIZE=0x40000
+CONFIG_ENV_SIZE=0x2000
 CONFIG_NXP_ESBC=y
 CONFIG_DM_GPIO=y
 CONFIG_FSL_LS_PPA=y
@@ -44,6 +44,7 @@ CONFIG_FSL_ESDHC=y
 CONFIG_MTD=y
 CONFIG_DM_SPI_FLASH=y
 # CONFIG_SPI_FLASH_BAR is not set
+CONFIG_SPI_FLASH_SPANSION=y
 # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
 CONFIG_E1000=y
 CONFIG_PCI=y
index 9c2a308e73ec9c2857b4e69636cef009149588e7..e39de4caf591089f73234ac52429d9e2c0a79104 100644 (file)
@@ -1,7 +1,7 @@
 CONFIG_ARM=y
 CONFIG_TARGET_LS1012ARDB=y
 CONFIG_SYS_TEXT_BASE=0x40100000
-CONFIG_ENV_SIZE=0x40000
+CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_OFFSET=0x300000
 CONFIG_ENV_SECT_SIZE=0x40000
 CONFIG_DM_GPIO=y
@@ -46,6 +46,7 @@ CONFIG_FSL_ESDHC=y
 CONFIG_MTD=y
 CONFIG_DM_SPI_FLASH=y
 # CONFIG_SPI_FLASH_BAR is not set
+CONFIG_SPI_FLASH_SPANSION=y
 # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
 CONFIG_FSL_PFE=y
 CONFIG_DM_ETH=y
index 736810d773570ab333f43482a54ad221158cde94..8b677984294ffec12d81d5cfd7dc7f11bdecc253 100644 (file)
@@ -2,7 +2,7 @@ CONFIG_ARM=y
 CONFIG_TARGET_LS1012ARDB=y
 CONFIG_TFABOOT=y
 CONFIG_SYS_TEXT_BASE=0x82000000
-CONFIG_ENV_SIZE=0x40000
+CONFIG_ENV_SIZE=0x2000
 CONFIG_NXP_ESBC=y
 CONFIG_DM_GPIO=y
 CONFIG_QSPI_AHB_INIT=y
@@ -43,6 +43,7 @@ CONFIG_FSL_ESDHC=y
 CONFIG_MTD=y
 CONFIG_DM_SPI_FLASH=y
 # CONFIG_SPI_FLASH_BAR is not set
+CONFIG_SPI_FLASH_SPANSION=y
 # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
 CONFIG_FSL_PFE=y
 CONFIG_DM_ETH=y
index fc3dc4a0e79adbe2a357e7995d07ffa34a83098a..e0d203d442e871750cac4cfe00d4e588abc31e39 100644 (file)
@@ -2,7 +2,7 @@ CONFIG_ARM=y
 CONFIG_TARGET_LS1012ARDB=y
 CONFIG_TFABOOT=y
 CONFIG_SYS_TEXT_BASE=0x82000000
-CONFIG_ENV_SIZE=0x40000
+CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_OFFSET=0x500000
 CONFIG_ENV_SECT_SIZE=0x40000
 CONFIG_DM_GPIO=y
@@ -35,7 +35,6 @@ CONFIG_CMD_CACHE=y
 CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="fsl-ls1012a-rdb"
 CONFIG_ENV_IS_IN_SPI_FLASH=y
-CONFIG_ENV_ADDR=0x40500000
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_DM=y
@@ -46,6 +45,7 @@ CONFIG_FSL_ESDHC=y
 CONFIG_MTD=y
 CONFIG_DM_SPI_FLASH=y
 # CONFIG_SPI_FLASH_BAR is not set
+CONFIG_SPI_FLASH_SPANSION=y
 # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
 CONFIG_FSL_PFE=y
 CONFIG_DM_ETH=y
index dba33e2a9b7e4975e8bf7961985fa8a2ca231923..cb73a04b3520e9cce400556760275d2af6ffd592 100644 (file)
@@ -12,6 +12,7 @@ CONFIG_MISC_INIT_R=y
 CONFIG_BOARD_EARLY_INIT_F=y
 CONFIG_CMD_BOOTZ=y
 CONFIG_CMD_GPT=y
+CONFIG_CMD_MMC=y
 CONFIG_CMD_DHCP=y
 CONFIG_CMD_PING=y
 CONFIG_CMD_EXT2=y
index fc6df70db738497317b1f0ab1b56012865068e81..10b6930914f21ccb6cef47c7592c798d0aa19eb7 100644 (file)
@@ -17,6 +17,7 @@ CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR=y
 CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0xe8
 CONFIG_CMD_BOOTZ=y
 CONFIG_CMD_GPT=y
+CONFIG_CMD_MMC=y
 CONFIG_CMD_DHCP=y
 CONFIG_CMD_PING=y
 CONFIG_CMD_EXT2=y
index 9ea003e735e3911d3e05dba79249e2b6a99210cc..a018b22fa93726bed8547f833390ee46eba37d1b 100644 (file)
@@ -44,6 +44,7 @@ CONFIG_DM_MMC=y
 CONFIG_FSL_ESDHC=y
 CONFIG_SPI_FLASH=y
 # CONFIG_SPI_FLASH_BAR is not set
+CONFIG_SPI_FLASH_SPANSION=y
 CONFIG_PHYLIB=y
 CONFIG_PHYLIB_10G=y
 CONFIG_PHY_REALTEK=y
index c5887cce4478188175606a6967da188fc733b804..a7252ac115641b6d94b442de60cefcc5a3157d90 100644 (file)
@@ -58,6 +58,7 @@ CONFIG_DM_MMC=y
 CONFIG_FSL_ESDHC=y
 CONFIG_SPI_FLASH=y
 # CONFIG_SPI_FLASH_BAR is not set
+CONFIG_SPI_FLASH_SPANSION=y
 CONFIG_PHYLIB=y
 CONFIG_PHYLIB_10G=y
 CONFIG_PHY_REALTEK=y
index f10d4d9425ac029375d770807442ed30897fb39d..3ee5d2869c267daaf82bdc3e0edef4dd83b40f3e 100644 (file)
@@ -48,6 +48,7 @@ CONFIG_SYS_FLASH_CFI=y
 CONFIG_MTD_RAW_NAND=y
 CONFIG_SPI_FLASH=y
 CONFIG_SF_DEFAULT_BUS=1
+CONFIG_SPI_FLASH_SPANSION=y
 CONFIG_PHYLIB=y
 CONFIG_PHYLIB_10G=y
 CONFIG_PHY_REALTEK=y
@@ -62,6 +63,7 @@ CONFIG_DM_SCSI=y
 CONFIG_SYS_NS16550=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
+CONFIG_FSL_QSPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
index 4fcdca83e7de83a4577f13a011713f670b1f9545..297788b6486bf324dfda901ac5e610b2ccfc89fa 100644 (file)
@@ -58,6 +58,7 @@ CONFIG_MTD_RAW_NAND=y
 CONFIG_SPI_FLASH=y
 CONFIG_SF_DEFAULT_BUS=1
 # CONFIG_SPI_FLASH_BAR is not set
+CONFIG_SPI_FLASH_SPANSION=y
 CONFIG_PHYLIB=y
 CONFIG_PHYLIB_10G=y
 CONFIG_PHY_REALTEK=y
index 48dc7acf9f69a3d181d28a7d5b07bde15ec61168..68271c35b23238fc28519f7ebbe86531dd767940 100644 (file)
@@ -32,6 +32,7 @@ CONFIG_DEFAULT_DEVICE_TREE="fsl-ls1046a-frwy"
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_ENV_ADDR=0x40500000
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_DM=y
 CONFIG_SATA_CEVA=y
 CONFIG_FSL_CAAM=y
index b98101d0b53ab9c0366bdac4699951a99cf40909..00b3568276e82f35d24782470615cfb8ac9feb76 100644 (file)
@@ -34,6 +34,7 @@ CONFIG_MTDPARTS_DEFAULT="mtdparts=1550000.spi-0:2m(uboot),14m(free)"
 CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="fsl-ls1046a-qds-duart"
 CONFIG_ENV_IS_IN_SPI_FLASH=y
+CONFIG_ENV_ADDR=0x40300000
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_DM=y
 CONFIG_SATA_CEVA=y
@@ -42,6 +43,7 @@ CONFIG_DM_I2C=y
 CONFIG_DM_MMC=y
 CONFIG_FSL_ESDHC=y
 # CONFIG_SPI_FLASH_BAR is not set
+CONFIG_SPI_FLASH_SPANSION=y
 # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
 CONFIG_PHYLIB=y
 CONFIG_PHYLIB_10G=y
index 616e420e0d1552ffaf232e450173de04a5f3d4e6..a66b1bdca93852da82ac38a0797ff28a5a808fcb 100644 (file)
@@ -58,6 +58,7 @@ CONFIG_DM_I2C=y
 CONFIG_DM_MMC=y
 CONFIG_FSL_ESDHC=y
 # CONFIG_SPI_FLASH_BAR is not set
+CONFIG_SPI_FLASH_SPANSION=y
 # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
 CONFIG_PHYLIB=y
 CONFIG_PHYLIB_10G=y
index 03cd17feb6d794579956ed60fe782bc1b4d09314..2b84a6bee5538e62b6d9888728e16e2b305299cb 100644 (file)
@@ -47,6 +47,7 @@ CONFIG_SYS_FLASH_USE_BUFFER_WRITE=y
 CONFIG_SYS_FLASH_CFI=y
 CONFIG_MTD_RAW_NAND=y
 CONFIG_SF_DEFAULT_BUS=1
+CONFIG_SPI_FLASH_SPANSION=y
 CONFIG_PHYLIB=y
 CONFIG_PHYLIB_10G=y
 CONFIG_PHY_REALTEK=y
index d50a8ebd7f858c3b010489537432c0d418ed91b5..e412c05b536f37519a2a136f658eb1d2b7ed6821 100644 (file)
@@ -4,7 +4,7 @@ CONFIG_TFABOOT=y
 CONFIG_SYS_TEXT_BASE=0x82000000
 CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_OFFSET=0x500000
-CONFIG_ENV_SECT_SIZE=0x20000
+CONFIG_ENV_SECT_SIZE=0x10000
 CONFIG_DM_GPIO=y
 CONFIG_NR_DRAM_BANKS=2
 CONFIG_ARMV8_SEC_FIRMWARE_SUPPORT=y
@@ -42,7 +42,7 @@ CONFIG_ENV_IS_IN_NAND=y
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_USE_ENV_SPI_BUS=y
 CONFIG_ENV_SPI_BUS=0
-CONFIG_ENV_ADDR=0x60500000
+CONFIG_ENV_ADDR=0x40500000
 CONFIG_DM=y
 CONFIG_SATA_CEVA=y
 CONFIG_FSL_CAAM=y
@@ -57,6 +57,7 @@ CONFIG_SYS_FLASH_CFI=y
 CONFIG_MTD_RAW_NAND=y
 CONFIG_SF_DEFAULT_BUS=1
 # CONFIG_SPI_FLASH_BAR is not set
+CONFIG_SPI_FLASH_SPANSION=y
 CONFIG_PHYLIB=y
 CONFIG_PHYLIB_10G=y
 CONFIG_PHY_REALTEK=y
index 1f8922293f8c40a9253118818a26d6f7f9e4fca6..f29e86b8f9833e9f3fe8a8b3f99b7f542b31bb45 100644 (file)
@@ -37,6 +37,7 @@ CONFIG_FSL_ESDHC=y
 CONFIG_MTD=y
 CONFIG_MTD_RAW_NAND=y
 # CONFIG_SPI_FLASH_BAR is not set
+CONFIG_SPI_FLASH_SPANSION=y
 # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
 CONFIG_PHYLIB=y
 CONFIG_PHY_AQUANTIA=y
index 8b1b6950fbe18c09ec1341aeefe0721f406d0e40..51978686b53fdf524c2465dac428bcc49d2a57f7 100644 (file)
@@ -30,6 +30,7 @@ CONFIG_MTDPARTS_DEFAULT="mtdparts=1550000.spi-0:1m(rcw),15m(u-boot),48m(kernel.i
 CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="fsl-ls1046a-rdb"
 CONFIG_ENV_IS_IN_SPI_FLASH=y
+CONFIG_ENV_ADDR=0x40300000
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_DM=y
 CONFIG_SATA_CEVA=y
@@ -40,6 +41,7 @@ CONFIG_FSL_ESDHC=y
 CONFIG_MTD=y
 CONFIG_MTD_RAW_NAND=y
 # CONFIG_SPI_FLASH_BAR is not set
+CONFIG_SPI_FLASH_SPANSION=y
 # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
 CONFIG_PHYLIB=y
 CONFIG_PHY_AQUANTIA=y
index 140da79d0bcaa76282020f4e96ea3b08e671cea9..7db5174111d7c07dc203e6a192273bb4250c859d 100644 (file)
@@ -37,6 +37,7 @@ CONFIG_FSL_ESDHC=y
 CONFIG_MTD=y
 CONFIG_MTD_RAW_NAND=y
 # CONFIG_SPI_FLASH_BAR is not set
+CONFIG_SPI_FLASH_SPANSION=y
 # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
 CONFIG_PHYLIB=y
 CONFIG_PHY_AQUANTIA=y
index eab34cd7175ef351c2efa0506f32247d5781a419..06bedd66ff24a6c640531995377f02938c9c8e66 100644 (file)
@@ -33,6 +33,7 @@ CONFIG_DEFAULT_DEVICE_TREE="fsl-ls1046a-rdb"
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_ENV_ADDR=0x40500000
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_DM=y
 CONFIG_SATA_CEVA=y
 CONFIG_FSL_CAAM=y
@@ -42,6 +43,7 @@ CONFIG_FSL_ESDHC=y
 CONFIG_MTD=y
 CONFIG_MTD_RAW_NAND=y
 # CONFIG_SPI_FLASH_BAR is not set
+CONFIG_SPI_FLASH_SPANSION=y
 # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
 CONFIG_PHYLIB=y
 CONFIG_PHY_AQUANTIA=y
index e66a61c08960bd63395d0df0c2b2831330128237..c184843a6d97f8fa5c8f526efacb29c18c1554be 100644 (file)
@@ -27,6 +27,7 @@ CONFIG_CMD_GREPENV=y
 CONFIG_CMD_MEMTEST=y
 CONFIG_SYS_MEMTEST_START=0x80000000
 CONFIG_SYS_MEMTEST_END=0x9fffffff
+CONFIG_CMD_DM=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_USB=y
@@ -35,11 +36,13 @@ CONFIG_CMD_USB=y
 CONFIG_MP=y
 CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="fsl-ls1088a-qds"
+CONFIG_OF_LIST="fsl-ls1088a-qds-21-x fsl-ls1088a-qds-29-x"
+CONFIG_MULTI_DTB_FIT=y
 CONFIG_ENV_IS_IN_FLASH=y
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_ENV_IS_IN_NAND=y
 CONFIG_ENV_IS_IN_SPI_FLASH=y
-CONFIG_ENV_ADDR=0x80500000
+CONFIG_ENV_ADDR=0x20500000
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_DM=y
 CONFIG_SCSI_AHCI=y
@@ -66,8 +69,13 @@ CONFIG_PHYLIB_10G=y
 CONFIG_PHY_REALTEK=y
 CONFIG_PHY_TERANETICS=y
 CONFIG_PHY_VITESSE=y
+CONFIG_DM_ETH=y
+CONFIG_DM_MDIO=y
+CONFIG_DM_MDIO_MUX=y
 CONFIG_E1000=y
 CONFIG_MII=y
+CONFIG_MDIO_MUX_I2CREG=y
+CONFIG_FSL_LS_MDIO=y
 CONFIG_PCI=y
 CONFIG_DM_PCI=y
 CONFIG_DM_PCI_COMPAT=y
index 1c36801e6548ec848e8cc0353c92c534d8adfc11..53b236ce9eb2d482f70529d127ab6a0e96ba409e 100644 (file)
@@ -39,7 +39,7 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="fsl-ls1088a-rdb"
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_ENV_IS_IN_SPI_FLASH=y
-CONFIG_ENV_ADDR=0x80500000
+CONFIG_ENV_ADDR=0x20500000
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_DM=y
 CONFIG_SCSI_AHCI=y
index 7c7bb345e17d22aa558ddf5b9dab5aba26047ba9..ad17ef1703d409e9aa9352128d338926ec1217c4 100644 (file)
@@ -22,6 +22,7 @@ CONFIG_BOOTARGS="console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21
 CONFIG_CMD_IMLS=y
 CONFIG_CMD_GREPENV=y
 CONFIG_CMD_EEPROM=y
+CONFIG_CMD_DM=y
 CONFIG_CMD_GPT=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_MMC=y
@@ -34,10 +35,13 @@ CONFIG_MP=y
 # CONFIG_ISO_PARTITION is not set
 CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="fsl-ls2080a-qds"
+CONFIG_OF_LIST="fsl-ls2080a-qds-42-x"
+CONFIG_MULTI_DTB_FIT=y
 CONFIG_ENV_IS_IN_FLASH=y
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_ENV_IS_IN_SPI_FLASH=y
-CONFIG_ENV_ADDR=0x80500000
+CONFIG_ENV_ADDR=0x20500000
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_DM=y
 CONFIG_SATA_CEVA=y
@@ -61,9 +65,14 @@ CONFIG_PHYLIB_10G=y
 CONFIG_PHY_REALTEK=y
 CONFIG_PHY_TERANETICS=y
 CONFIG_PHY_VITESSE=y
+CONFIG_DM_ETH=y
+CONFIG_DM_MDIO=y
+CONFIG_DM_MDIO_MUX=y
 CONFIG_PHY_GIGE=y
 CONFIG_E1000=y
 CONFIG_MII=y
+CONFIG_MDIO_MUX_I2CREG=y
+CONFIG_FSL_LS_MDIO=y
 CONFIG_PCI=y
 CONFIG_DM_PCI=y
 CONFIG_DM_PCI_COMPAT=y
index d312cc96289ba8e05af75995ab9f79b56e793408..f2eb8d765a465e55135af8725f134191f579a220 100644 (file)
@@ -32,6 +32,7 @@ CONFIG_MP=y
 CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="fsl-ls2088a-rdb-qspi"
 CONFIG_ENV_IS_IN_SPI_FLASH=y
+CONFIG_ENV_ADDR=0x20300000
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_DM=y
index 2a82fda0bfac2cd1d51432681be5e21453fd7d62..b64e3dc1d2b7fd5f5650705b07b5b7644ef27b85 100644 (file)
@@ -39,7 +39,8 @@ CONFIG_DEFAULT_DEVICE_TREE="fsl-ls2088a-rdb-qspi"
 CONFIG_ENV_IS_IN_FLASH=y
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_ENV_IS_IN_SPI_FLASH=y
-CONFIG_ENV_ADDR=0x80500000
+CONFIG_ENV_ADDR=0x20500000
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_DM=y
 CONFIG_SATA_CEVA=y
index cd7b413bfcde784b95872c43e09195be1073141a..51d5dc356efbd124d5a247524db44637f479454f 100644 (file)
@@ -21,6 +21,7 @@ CONFIG_BOOTARGS="console=ttyAMA0,115200 root=/dev/ram0 earlycon=pl011,mmio32,0x2
 CONFIG_MISC_INIT_R=y
 CONFIG_CMD_GREPENV=y
 CONFIG_CMD_EEPROM=y
+CONFIG_CMD_DM=y
 CONFIG_CMD_GPT=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_MMC=y
@@ -31,6 +32,8 @@ CONFIG_MP=y
 CONFIG_OF_CONTROL=y
 CONFIG_OF_BOARD_FIXUP=y
 CONFIG_DEFAULT_DEVICE_TREE="fsl-lx2160a-qds"
+CONFIG_OF_LIST="fsl-lx2160a-qds-3-x-x fsl-lx2160a-qds-7-x-x fsl-lx2160a-qds-19-x-x fsl-lx2160a-qds-20-x-x fsl-lx2160a-qds-3-11-x  fsl-lx2160a-qds-7-11-x fsl-lx2160a-qds-7-11-x fsl-lx2160a-qds-19-11-x fsl-lx2160a-qds-20-11-x"
+CONFIG_MULTI_DTB_FIT=y
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_DM=y
 CONFIG_SATA_CEVA=y
@@ -53,7 +56,12 @@ CONFIG_PHY_AQUANTIA=y
 CONFIG_PHY_CORTINA=y
 CONFIG_PHY_REALTEK=y
 CONFIG_PHY_VITESSE=y
+CONFIG_DM_ETH=y
+CONFIG_DM_MDIO=y
+CONFIG_DM_MDIO_MUX=y
 CONFIG_E1000=y
+CONFIG_MDIO_MUX_I2CREG=y
+CONFIG_FSL_LS_MDIO=y
 CONFIG_PCI=y
 CONFIG_DM_PCI=y
 CONFIG_DM_PCI_COMPAT=y
index 9b6ce38554311be6bf9699b964aec4c7b3cb5094..716c089ba9d53a3a97d2efb98a4de5a072c37ce3 100644 (file)
@@ -23,6 +23,7 @@ CONFIG_BOOTARGS="console=ttyAMA0,115200 root=/dev/ram0 earlycon=pl011,mmio32,0x2
 CONFIG_MISC_INIT_R=y
 CONFIG_CMD_GREPENV=y
 CONFIG_CMD_EEPROM=y
+CONFIG_CMD_DM=y
 CONFIG_CMD_GPT=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_MMC=y
@@ -33,6 +34,8 @@ CONFIG_MP=y
 CONFIG_OF_CONTROL=y
 CONFIG_OF_BOARD_FIXUP=y
 CONFIG_DEFAULT_DEVICE_TREE="fsl-lx2160a-qds"
+CONFIG_OF_LIST="fsl-lx2160a-qds-3-x-x fsl-lx2160a-qds-7-x-x fsl-lx2160a-qds-19-x-x fsl-lx2160a-qds-20-x-x fsl-lx2160a-qds-3-11-x  fsl-lx2160a-qds-7-11-x fsl-lx2160a-qds-7-11-x fsl-lx2160a-qds-19-11-x fsl-lx2160a-qds-20-11-x"
+CONFIG_MULTI_DTB_FIT=y
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_ENV_ADDR=0x20500000
@@ -57,7 +60,12 @@ CONFIG_PHY_AQUANTIA=y
 CONFIG_PHY_CORTINA=y
 CONFIG_PHY_REALTEK=y
 CONFIG_PHY_VITESSE=y
+CONFIG_DM_ETH=y
+CONFIG_DM_MDIO=y
+CONFIG_DM_MDIO_MUX=y
 CONFIG_E1000=y
+CONFIG_MDIO_MUX_I2CREG=y
+CONFIG_FSL_LS_MDIO=y
 CONFIG_PCI=y
 CONFIG_DM_PCI=y
 CONFIG_DM_PCI_COMPAT=y
index ae865908d815abc5279fcacb5f8ebc2ae13db79f..3bb5b498f2b3066855b7becddc727e3784e358b8 100644 (file)
@@ -18,6 +18,7 @@ CONFIG_CMD_BOOTZ=y
 CONFIG_CMD_GPT=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_USB=y
+CONFIG_CMD_PCI=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_CMD_TIME=y
 CONFIG_SPL_OF_CONTROL=y
@@ -34,10 +35,13 @@ CONFIG_MMC_SDHCI_ROCKCHIP=y
 CONFIG_DM_ETH=y
 CONFIG_ETH_DESIGNWARE=y
 CONFIG_GMAC_ROCKCHIP=y
+CONFIG_NVME=y
+CONFIG_PCI=y
 CONFIG_PMIC_RK8XX=y
 CONFIG_REGULATOR_PWM=y
 CONFIG_REGULATOR_RK8XX=y
 CONFIG_PWM_ROCKCHIP=y
+CONFIG_DM_RESET=y
 CONFIG_BAUDRATE=1500000
 CONFIG_DEBUG_UART_SHIFT=2
 CONFIG_SYSRESET=y
index 2d68fe152c78c6b3f5a757938d85024b9a23d01f..470fd3a35524b19c2d7b7aa8774e1a11dd198912 100644 (file)
@@ -19,6 +19,7 @@ CONFIG_HUSH_PARSER=y
 # CONFIG_BOOTM_NETBSD is not set
 CONFIG_CMD_GPIO=y
 CONFIG_CMD_I2C=y
+CONFIG_CMD_MMC=y
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_REGULATOR=y
 CONFIG_CMD_EXT2=y
index 78bfb9a0329578cd78e452aceddbb0fdee0d8210..2a53f16ee96f5331c1e754297bd1dc3ecaf0c325 100644 (file)
@@ -57,6 +57,8 @@ CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_GPIO=y
 CONFIG_SCIF_CONSOLE=y
+CONFIG_TEE=y
+CONFIG_OPTEE=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_RENESAS_RPC_SPI=y
index 83d6a756708229b28bfe392774e0406a6a9d8e7e..d9272b85c445c0d97d18f7e32df2ab2ead39f5f5 100644 (file)
@@ -61,6 +61,8 @@ CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_GPIO=y
 CONFIG_SCIF_CONSOLE=y
+CONFIG_TEE=y
+CONFIG_OPTEE=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_RENESAS_RPC_SPI=y
index cc9257b81b058645dddeee3a22a11b2fc0585b13..e4a017aa233202ffbf48dee55e4131fe3d18f005 100644 (file)
@@ -55,6 +55,8 @@ CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_GPIO=y
 CONFIG_SCIF_CONSOLE=y
+CONFIG_TEE=y
+CONFIG_OPTEE=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
index 89b0f15c76f970fee30571194a0747ef1f03e2a2..b2dc167b9f1dc1aa1598d7e39a78ba215aa406f7 100644 (file)
@@ -63,6 +63,8 @@ CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_GPIO=y
 CONFIG_SCIF_CONSOLE=y
+CONFIG_TEE=y
+CONFIG_OPTEE=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
index 3031fdde2d7721c7f0b0d777924f6a3d94098b99..6944edcd01ca8a3107156be425ef931af134fdcd 100644 (file)
@@ -61,6 +61,8 @@ CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_GPIO=y
 CONFIG_SCIF_CONSOLE=y
+CONFIG_TEE=y
+CONFIG_OPTEE=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
index 53ea93801b3193dff712633ec35ae04e975ea41d..4be3e0b345a678f16b5592ad57d7b475247b9f52 100644 (file)
@@ -58,6 +58,8 @@ CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_GPIO=y
 CONFIG_SCIF_CONSOLE=y
+CONFIG_TEE=y
+CONFIG_OPTEE=y
 CONFIG_SYSRESET=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
index 1879944bc5e71db1a34e4f5f841d39aec419f173..7f55307676773692919cc7463aa80009e5a92733 100644 (file)
@@ -19,6 +19,7 @@ CONFIG_CMD_BOOTZ=y
 CONFIG_CMD_GPT=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_USB=y
+CONFIG_CMD_PCI=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_CMD_TIME=y
 CONFIG_SPL_OF_CONTROL=y
@@ -36,11 +37,14 @@ CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_DM_ETH=y
 CONFIG_ETH_DESIGNWARE=y
 CONFIG_GMAC_ROCKCHIP=y
+CONFIG_NVME=y
+CONFIG_PCI=y
 CONFIG_PMIC_RK8XX=y
 CONFIG_REGULATOR_PWM=y
 CONFIG_REGULATOR_RK8XX=y
 CONFIG_PWM_ROCKCHIP=y
 CONFIG_RAM_RK3399_LPDDR4=y
+CONFIG_DM_RESET=y
 CONFIG_BAUDRATE=1500000
 CONFIG_DEBUG_UART_SHIFT=2
 CONFIG_ROCKCHIP_SPI=y
index 7d096d38c6d0c8f4f77cafde330f347f1ce63d07..0bc2198f5c6e42526ae4b819f9c12ae7b5fad814 100644 (file)
@@ -1,6 +1,7 @@
 CONFIG_ARM=y
 CONFIG_ARCH_ROCKCHIP=y
 CONFIG_SYS_TEXT_BASE=0x00200000
+CONFIG_SPL_GPIO_SUPPORT=y
 CONFIG_ENV_OFFSET=0x3F8000
 CONFIG_ROCKCHIP_RK3328=y
 CONFIG_TPL_ROCKCHIP_COMMON_BOARD=y
@@ -25,6 +26,8 @@ CONFIG_DISPLAY_BOARDINFO_LATE=y
 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
 CONFIG_TPL_SYS_MALLOC_SIMPLE=y
 CONFIG_SPL_STACK_R=y
+CONFIG_SPL_I2C_SUPPORT=y
+CONFIG_SPL_POWER_SUPPORT=y
 CONFIG_SPL_ATF=y
 CONFIG_SPL_ATF_NO_PLATFORM_PARAM=y
 CONFIG_CMD_BOOTZ=y
@@ -36,7 +39,7 @@ CONFIG_CMD_TIME=y
 CONFIG_SPL_OF_CONTROL=y
 CONFIG_TPL_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="rk3328-rock64"
-CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
+CONFIG_OF_SPL_REMOVE_PROPS="clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
 CONFIG_TPL_OF_PLATDATA=y
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
@@ -64,7 +67,9 @@ CONFIG_PINCTRL=y
 CONFIG_SPL_PINCTRL=y
 CONFIG_DM_PMIC=y
 CONFIG_PMIC_RK8XX=y
+CONFIG_SPL_DM_REGULATOR=y
 CONFIG_REGULATOR_PWM=y
+CONFIG_SPL_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_REGULATOR_RK8XX=y
 CONFIG_PWM_ROCKCHIP=y
index 045d989a19a302d802a30ec7f8bb5f3868b4ee58..64517f9623fe29e3ac7d82619b5c504c66c5add1 100644 (file)
@@ -9,6 +9,7 @@ CONFIG_DEBUG_UART_BASE=0xFF1A0000
 CONFIG_DEBUG_UART_CLOCK=24000000
 CONFIG_DEBUG_UART=y
 CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-rock960.dtb"
+CONFIG_MISC_INIT_R=y
 CONFIG_DISPLAY_BOARDINFO_LATE=y
 # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
 CONFIG_SPL_STACK_R=y
@@ -19,6 +20,7 @@ CONFIG_CMD_BOOTZ=y
 CONFIG_CMD_GPT=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_USB=y
+CONFIG_CMD_PCI=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_CMD_TIME=y
 CONFIG_CMD_PMIC=y
@@ -36,10 +38,13 @@ CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_SDMA=y
 CONFIG_MMC_SDHCI_ROCKCHIP=y
 CONFIG_DM_ETH=y
+CONFIG_NVME=y
+CONFIG_PCI=y
 CONFIG_PMIC_RK8XX=y
 CONFIG_REGULATOR_PWM=y
 CONFIG_REGULATOR_RK8XX=y
 CONFIG_PWM_ROCKCHIP=y
+CONFIG_DM_RESET=y
 CONFIG_BAUDRATE=1500000
 CONFIG_DEBUG_UART_SHIFT=2
 CONFIG_SYSRESET=y
index 8074e4665a27cc96d61fa3f326e887d75581e6b1..53abce0057aa017b3a2f35877a853779458380f1 100644 (file)
@@ -58,5 +58,12 @@ CONFIG_USB_ETHER_ASIX88179=y
 CONFIG_USB_ETHER_MCS7830=y
 CONFIG_USB_ETHER_RTL8152=y
 CONFIG_USB_ETHER_SMSC95XX=y
+CONFIG_USB_KEYBOARD=y
 CONFIG_SPL_TINY_MEMSET=y
 CONFIG_ERRNO_STR=y
+CONFIG_DM_VIDEO=y
+CONFIG_VIDEO_BPP16=y
+CONFIG_VIDEO_BPP32=y
+CONFIG_DISPLAY=y
+CONFIG_VIDEO_ROCKCHIP=y
+CONFIG_DISPLAY_ROCKCHIP_HDMI=y
index 99720a9193a986ac8e7e31af08b78c24f11b52e8..78450c23d6a193f88b35a6cc7aa7216c097744d9 100644 (file)
@@ -13,6 +13,7 @@ CONFIG_CMD_BOOTZ=y
 CONFIG_CMD_MEMTEST=y
 CONFIG_SYS_MEMTEST_START=0xc0000000
 CONFIG_SYS_MEMTEST_END=0xc7c00000
+CONFIG_CMD_MMC=y
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_DM=y
diff --git a/configs/suvd3_defconfig b/configs/suvd3_defconfig
deleted file mode 100644 (file)
index 9908ca0..0000000
+++ /dev/null
@@ -1,184 +0,0 @@
-CONFIG_PPC=y
-CONFIG_SYS_TEXT_BASE=0xF0000000
-CONFIG_ENV_SIZE=0x4000
-CONFIG_ENV_SECT_SIZE=0x20000
-CONFIG_BOOTCOUNT_BOOTLIMIT=3
-CONFIG_SYS_BOOTCOUNT_ADDR=0xE0113FF8
-CONFIG_SYS_CLK_FREQ=66000000
-CONFIG_MPC83xx=y
-CONFIG_HIGH_BATS=y
-CONFIG_TARGET_SUVD3=y
-CONFIG_CORE_PLL_RATIO_25_1=y
-CONFIG_QUICC_MULT_FACTOR_3=y
-CONFIG_BOOT_MEMORY_SPACE_LOW=y
-CONFIG_BOOT_ROM_INTERFACE_GPCM_16BIT=y
-CONFIG_BAT0=y
-CONFIG_BAT0_NAME="SDRAM"
-CONFIG_BAT0_BASE=0x00000000
-CONFIG_BAT0_LENGTH_256_MBYTES=y
-CONFIG_BAT0_ACCESS_RW=y
-CONFIG_BAT0_ICACHE_INHIBITED=y
-CONFIG_BAT0_ICACHE_GUARDED=y
-CONFIG_BAT0_DCACHE_INHIBITED=y
-CONFIG_BAT0_DCACHE_GUARDED=y
-CONFIG_BAT0_USER_MODE_VALID=y
-CONFIG_BAT0_SUPERVISOR_MODE_VALID=y
-CONFIG_BAT1=y
-CONFIG_BAT1_NAME="IMMR"
-CONFIG_BAT1_BASE=0xE0000000
-CONFIG_BAT1_LENGTH_4_MBYTES=y
-CONFIG_BAT1_ACCESS_RW=y
-CONFIG_BAT1_ICACHE_INHIBITED=y
-CONFIG_BAT1_ICACHE_GUARDED=y
-CONFIG_BAT1_DCACHE_INHIBITED=y
-CONFIG_BAT1_DCACHE_GUARDED=y
-CONFIG_BAT1_USER_MODE_VALID=y
-CONFIG_BAT1_SUPERVISOR_MODE_VALID=y
-CONFIG_BAT2=y
-CONFIG_BAT2_NAME="KMBEC_FPGA"
-CONFIG_BAT2_BASE=0xE8000000
-CONFIG_BAT2_LENGTH_128_MBYTES=y
-CONFIG_BAT2_ACCESS_RW=y
-CONFIG_BAT2_ICACHE_MEMORYCOHERENCE=y
-CONFIG_BAT2_DCACHE_INHIBITED=y
-CONFIG_BAT2_DCACHE_GUARDED=y
-CONFIG_BAT2_USER_MODE_VALID=y
-CONFIG_BAT2_SUPERVISOR_MODE_VALID=y
-CONFIG_BAT3=y
-CONFIG_BAT3_NAME="FLASH"
-CONFIG_BAT3_BASE=0xF0000000
-CONFIG_BAT3_LENGTH_256_MBYTES=y
-CONFIG_BAT3_ACCESS_RW=y
-CONFIG_BAT3_ICACHE_MEMORYCOHERENCE=y
-CONFIG_BAT3_DCACHE_INHIBITED=y
-CONFIG_BAT3_DCACHE_GUARDED=y
-CONFIG_BAT3_USER_MODE_VALID=y
-CONFIG_BAT3_SUPERVISOR_MODE_VALID=y
-CONFIG_BAT4=y
-CONFIG_BAT4_NAME="STACK_IN_DCACHE"
-CONFIG_BAT4_BASE=0xE6000000
-CONFIG_BAT4_ACCESS_RW=y
-CONFIG_BAT4_USER_MODE_VALID=y
-CONFIG_BAT4_SUPERVISOR_MODE_VALID=y
-CONFIG_BAT5=y
-CONFIG_BAT5_NAME="APP1"
-CONFIG_BAT5_BASE=0xA0000000
-CONFIG_BAT5_LENGTH_256_MBYTES=y
-CONFIG_BAT5_ACCESS_RW=y
-CONFIG_BAT5_ICACHE_MEMORYCOHERENCE=y
-CONFIG_BAT5_DCACHE_INHIBITED=y
-CONFIG_BAT5_DCACHE_GUARDED=y
-CONFIG_BAT5_USER_MODE_VALID=y
-CONFIG_BAT5_SUPERVISOR_MODE_VALID=y
-CONFIG_BAT6=y
-CONFIG_BAT6_NAME="APP2"
-CONFIG_BAT6_BASE=0xB0000000
-CONFIG_BAT6_LENGTH_256_MBYTES=y
-CONFIG_BAT6_ACCESS_RW=y
-CONFIG_BAT6_ICACHE_MEMORYCOHERENCE=y
-CONFIG_BAT6_DCACHE_INHIBITED=y
-CONFIG_BAT6_DCACHE_GUARDED=y
-CONFIG_BAT6_USER_MODE_VALID=y
-CONFIG_BAT6_SUPERVISOR_MODE_VALID=y
-CONFIG_LBLAW0=y
-CONFIG_LBLAW0_BASE=0xF0000000
-CONFIG_LBLAW0_NAME="FLASH"
-CONFIG_LBLAW0_LENGTH_256_MBYTES=y
-CONFIG_LBLAW1=y
-CONFIG_LBLAW1_BASE=0xE8000000
-CONFIG_LBLAW1_NAME="KMBEC_FPGA"
-CONFIG_LBLAW1_LENGTH_128_MBYTES=y
-CONFIG_LBLAW2=y
-CONFIG_LBLAW2_BASE=0xA0000000
-CONFIG_LBLAW2_NAME="APP1"
-CONFIG_LBLAW2_LENGTH_256_MBYTES=y
-CONFIG_LBLAW3=y
-CONFIG_LBLAW3_BASE=0xB0000000
-CONFIG_LBLAW3_NAME="APP2"
-CONFIG_LBLAW3_LENGTH_256_MBYTES=y
-CONFIG_ELBC_BR0_OR0=y
-CONFIG_BR0_OR0_NAME="FLASH"
-CONFIG_BR0_OR0_BASE=0xF0000000
-CONFIG_BR0_PORTSIZE_16BIT=y
-CONFIG_OR0_AM_256_MBYTES=y
-CONFIG_OR0_SCY_5=y
-CONFIG_OR0_CSNT_EARLIER=y
-CONFIG_OR0_ACS_HALF_CYCLE_EARLIER=y
-CONFIG_OR0_TRLX_RELAXED=y
-CONFIG_OR0_EAD_EXTRA=y
-CONFIG_ELBC_BR1_OR1=y
-CONFIG_BR1_OR1_NAME="KMBEC_FPGA"
-CONFIG_BR1_OR1_BASE=0xE8000000
-CONFIG_OR1_AM_128_MBYTES=y
-CONFIG_OR1_SCY_2=y
-CONFIG_OR1_CSNT_EARLIER=y
-CONFIG_OR1_ACS_HALF_CYCLE_EARLIER=y
-CONFIG_OR1_TRLX_RELAXED=y
-CONFIG_OR1_EAD_EXTRA=y
-CONFIG_ELBC_BR2_OR2=y
-CONFIG_BR2_OR2_NAME="APP1"
-CONFIG_BR2_OR2_BASE=0xA0000000
-CONFIG_BR2_PORTSIZE_16BIT=y
-CONFIG_BR2_MACHINE_UPMA=y
-CONFIG_OR2_AM_256_MBYTES=y
-CONFIG_ELBC_BR3_OR3=y
-CONFIG_BR3_OR3_NAME="APP2"
-CONFIG_BR3_OR3_BASE=0xB0000000
-CONFIG_BR3_PORTSIZE_16BIT=y
-CONFIG_OR3_AM_256_MBYTES=y
-CONFIG_OR3_SCY_3=y
-CONFIG_OR3_CSNT_EARLIER=y
-CONFIG_OR3_ACS_QUARTER_CYCLE_EARLIER=y
-CONFIG_OR3_TRLX_RELAXED=y
-CONFIG_HID0_FINAL_EMCP=y
-CONFIG_HID0_FINAL_ICE=y
-CONFIG_HID2_HBE=y
-CONFIG_ACR_PIPE_DEP_4=y
-CONFIG_ACR_RPTCNT_4=y
-CONFIG_ACR_APARK_MASTER=y
-CONFIG_ACR_PARKM_USB_I2C1_BOOT=y
-CONFIG_LCRR_EADC_1=y
-CONFIG_LCRR_CLKDIV_2=y
-# CONFIG_SYS_MALLOC_F is not set
-CONFIG_OF_BOARD_SETUP=y
-CONFIG_OF_STDOUT_VIA_ALIAS=y
-CONFIG_SYS_EXTRA_OPTIONS="SUVD3"
-CONFIG_MISC_INIT_R=y
-CONFIG_VERSION_VARIABLE=y
-CONFIG_BOARD_EARLY_INIT_R=y
-CONFIG_LAST_STAGE_INIT=y
-CONFIG_HUSH_PARSER=y
-CONFIG_AUTOBOOT_KEYED=y
-CONFIG_AUTOBOOT_PROMPT="Hit <SPACE> key to stop autoboot in %2ds\n"
-CONFIG_AUTOBOOT_STOP_STR=" "
-CONFIG_CMD_IMLS=y
-CONFIG_CMD_ASKENV=y
-CONFIG_CMD_GREPENV=y
-CONFIG_CMD_EEPROM=y
-CONFIG_CMD_I2C=y
-CONFIG_CMD_DHCP=y
-CONFIG_CMD_MII=y
-CONFIG_CMD_PING=y
-CONFIG_CMD_JFFS2=y
-CONFIG_CMD_MTDPARTS=y
-CONFIG_MTDIDS_DEFAULT="nor0=boot"
-CONFIG_MTDPARTS_DEFAULT="mtdparts=boot:768k(u-boot),128k(env),128k(envred),-(ubi0);"
-CONFIG_CMD_UBI=y
-# CONFIG_CMD_UBIFS is not set
-CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
-CONFIG_ENV_ADDR=0xF00C0000
-CONFIG_ENV_ADDR_REDUND=0xF00E0000
-CONFIG_DM=y
-CONFIG_BOOTCOUNT_LIMIT=y
-# CONFIG_MMC is not set
-CONFIG_MTD=y
-CONFIG_MTD_NOR_FLASH=y
-CONFIG_FLASH_CFI_DRIVER=y
-CONFIG_SYS_FLASH_USE_BUFFER_WRITE=y
-CONFIG_FLASH_CFI_MTD=y
-CONFIG_SYS_FLASH_PROTECTION=y
-CONFIG_SYS_FLASH_CFI=y
-# CONFIG_PCI is not set
-CONFIG_QE=y
-CONFIG_SYS_NS16550=y
-CONFIG_OF_LIBFDT=y
index 0bc85432df70a3a50caaa19bb6fc9f08074d7531..4ed735369a7422b704ab955c24af1963e722ca38 100644 (file)
@@ -52,7 +52,6 @@ CONFIG_NAND_DENALI_DT=y
 CONFIG_NAND_DENALI_SPARE_AREA_SKIP_BYTES=8
 CONFIG_SPL_NAND_DENALI=y
 CONFIG_SMC911X=y
-CONFIG_SMC911X_BASE=0x0
 CONFIG_SMC911X_32_BIT=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
index 6485ab78fe31c4d909773ed043906eede2a00794..e46bdcab4298198df7853a0f0b9a5100d7a48fcd 100644 (file)
@@ -51,7 +51,6 @@ CONFIG_MTD_RAW_NAND=y
 CONFIG_NAND_DENALI_DT=y
 CONFIG_NAND_DENALI_SPARE_AREA_SKIP_BYTES=8
 CONFIG_SPL_NAND_DENALI=y
-CONFIG_DM_ETH=y
 CONFIG_SNI_AVE=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
index 4514468abf8823952b2aed466a92449c39ff5b92..a130bbb7478af6da07675c54ca680bbd18a44146 100644 (file)
@@ -50,7 +50,6 @@ CONFIG_SYS_FLASH_CFI=y
 CONFIG_MTD_RAW_NAND=y
 CONFIG_NAND_DENALI_DT=y
 CONFIG_NAND_DENALI_SPARE_AREA_SKIP_BYTES=8
-CONFIG_DM_ETH=y
 CONFIG_SNI_AVE=y
 CONFIG_PINCONF=y
 CONFIG_SPI=y
index 4cc2fc19f7e3ab22ddaf1faf48cc3871f6f6ac56..f6a31025dc8a0a1a1a484105285ae060b8765b2d 100644 (file)
@@ -5,10 +5,12 @@
  */
 
 #include <common.h>
+#include <blk.h>
 #include <command.h>
 #include <env.h>
 #include <errno.h>
 #include <ide.h>
+#include <log.h>
 #include <malloc.h>
 #include <part.h>
 #include <ubifs_uboot.h>
@@ -318,7 +320,7 @@ void part_print(struct blk_desc *dev_desc)
 #endif /* CONFIG_HAVE_BLOCK_DEVICE */
 
 int part_get_info(struct blk_desc *dev_desc, int part,
-                      disk_partition_t *info)
+                      struct disk_partition *info)
 {
 #ifdef CONFIG_HAVE_BLOCK_DEVICE
        struct part_driver *drv;
@@ -351,7 +353,8 @@ int part_get_info(struct blk_desc *dev_desc, int part,
        return -1;
 }
 
-int part_get_info_whole_disk(struct blk_desc *dev_desc, disk_partition_t *info)
+int part_get_info_whole_disk(struct blk_desc *dev_desc,
+                            struct disk_partition *info)
 {
        info->start = 0;
        info->size = dev_desc->lba;
@@ -431,7 +434,7 @@ cleanup:
 #define PART_AUTO -1
 int blk_get_device_part_str(const char *ifname, const char *dev_part_str,
                             struct blk_desc **dev_desc,
-                            disk_partition_t *info, int allow_whole_dev)
+                            struct disk_partition *info, int allow_whole_dev)
 {
        int ret = -1;
        const char *part_str;
@@ -441,7 +444,7 @@ int blk_get_device_part_str(const char *ifname, const char *dev_part_str,
        char *ep;
        int p;
        int part;
-       disk_partition_t tmpinfo;
+       struct disk_partition tmpinfo;
 
 #ifdef CONFIG_SANDBOX
        /*
@@ -646,7 +649,7 @@ cleanup:
 }
 
 int part_get_info_by_name_type(struct blk_desc *dev_desc, const char *name,
-                              disk_partition_t *info, int part_type)
+                              struct disk_partition *info, int part_type)
 {
        struct part_driver *part_drv;
        int ret;
@@ -671,7 +674,7 @@ int part_get_info_by_name_type(struct blk_desc *dev_desc, const char *name,
 }
 
 int part_get_info_by_name(struct blk_desc *dev_desc, const char *name,
-                         disk_partition_t *info)
+                         struct disk_partition *info)
 {
        return part_get_info_by_name_type(dev_desc, name, info, PART_TYPE_ALL);
 }
@@ -693,7 +696,7 @@ int part_get_info_by_name(struct blk_desc *dev_desc, const char *name,
 static int part_get_info_by_dev_and_name(const char *dev_iface,
                                         const char *dev_part_str,
                                         struct blk_desc **dev_desc,
-                                        disk_partition_t *part_info)
+                                        struct disk_partition *part_info)
 {
        char *ep;
        const char *part_str;
@@ -725,7 +728,7 @@ static int part_get_info_by_dev_and_name(const char *dev_iface,
 int part_get_info_by_dev_and_name_or_num(const char *dev_iface,
                                         const char *dev_part_str,
                                         struct blk_desc **dev_desc,
-                                        disk_partition_t *part_info)
+                                        struct disk_partition *part_info)
 {
        /* Split the part_name if passed as "$dev_num#part_name". */
        if (!part_get_info_by_dev_and_name(dev_iface, dev_part_str,
index 5a2bb718b5973e883a99982bc279bf68125b9eca..7eea60b564de3312c1add557f8dc8d0c446040c6 100644 (file)
@@ -9,6 +9,7 @@
 #include <env.h>
 #include <ide.h>
 #include "part_amiga.h"
+#include <part.h>
 
 #ifdef CONFIG_HAVE_BLOCK_DEVICE
 
@@ -291,7 +292,7 @@ static struct partition_block *find_partition(struct blk_desc *dev_desc,
  * Get info about a partition
  */
 static int part_get_info_amiga(struct blk_desc *dev_desc, int part,
-                                   disk_partition_t *info)
+                                   struct disk_partition *info)
 {
     struct partition_block *p = find_partition(dev_desc, part-1);
     struct amiga_part_geometry *g;
index 813379f851ef500c928653d732c8a3bcfab59e02..04f53106f7ce8762aa89468397c969bb0fd4ae65 100644 (file)
  */
 
 #include <common.h>
+#include <blk.h>
 #include <command.h>
 #include <ide.h>
 #include <memalign.h>
 #include "part_dos.h"
+#include <part.h>
 
 #ifdef CONFIG_HAVE_BLOCK_DEVICE
 
@@ -213,7 +215,7 @@ static void print_partition_extended(struct blk_desc *dev_desc,
 static int part_get_info_extended(struct blk_desc *dev_desc,
                                  lbaint_t ext_part_sector, lbaint_t relative,
                                  int part_num, int which_part,
-                                 disk_partition_t *info, unsigned int disksig)
+                                 struct disk_partition *info, uint disksig)
 {
        ALLOC_CACHE_ALIGN_BUFFER(unsigned char, buffer, dev_desc->blksz);
        dos_partition_t *pt;
@@ -317,7 +319,7 @@ void part_print_dos(struct blk_desc *dev_desc)
 }
 
 int part_get_info_dos(struct blk_desc *dev_desc, int part,
-                     disk_partition_t *info)
+                     struct disk_partition *info)
 {
        return part_get_info_extended(dev_desc, 0, 0, 1, part, info, 0);
 }
index 83876a7bd979c2504abdb9deb1786190f79d2b3c..de3491821f082e80de02587e97570ce8b5954c78 100644 (file)
@@ -9,8 +9,13 @@
  *   when CONFIG_SYS_64BIT_LBA is not defined, lbaint_t is 32 bits; this
  *   limits the maximum size of addressable storage to < 2 Terra Bytes
  */
-#include <asm/unaligned.h>
 #include <common.h>
+#include <blk.h>
+#include <log.h>
+#include <part.h>
+#include <uuid.h>
+#include <asm/cache.h>
+#include <asm/unaligned.h>
 #include <command.h>
 #include <fdtdec.h>
 #include <ide.h>
@@ -257,7 +262,7 @@ void part_print_efi(struct blk_desc *dev_desc)
 }
 
 int part_get_info_efi(struct blk_desc *dev_desc, int part,
-                     disk_partition_t *info)
+                     struct disk_partition *info)
 {
        ALLOC_CACHE_ALIGN_BUFFER_PAD(gpt_header, gpt_head, 1, dev_desc->blksz);
        gpt_entry *gpt_pte = NULL;
@@ -411,7 +416,7 @@ int write_gpt_table(struct blk_desc *dev_desc,
 
 int gpt_fill_pte(struct blk_desc *dev_desc,
                 gpt_header *gpt_h, gpt_entry *gpt_e,
-                disk_partition_t *partitions, int parts)
+                struct disk_partition *partitions, int parts)
 {
        lbaint_t offset = (lbaint_t)le64_to_cpu(gpt_h->first_usable_lba);
        lbaint_t last_usable_lba = (lbaint_t)
@@ -601,7 +606,7 @@ int gpt_fill_header(struct blk_desc *dev_desc, gpt_header *gpt_h,
 }
 
 int gpt_restore(struct blk_desc *dev_desc, char *str_disk_guid,
-               disk_partition_t *partitions, int parts_count)
+               struct disk_partition *partitions, int parts_count)
 {
        gpt_header *gpt_h;
        gpt_entry *gpt_e;
@@ -696,7 +701,7 @@ int gpt_verify_headers(struct blk_desc *dev_desc, gpt_header *gpt_head,
 }
 
 int gpt_verify_partitions(struct blk_desc *dev_desc,
-                         disk_partition_t *partitions, int parts,
+                         struct disk_partition *partitions, int parts,
                          gpt_header *gpt_head, gpt_entry **gpt_pte)
 {
        char efi_str[PARTNAME_SZ + 1];
index e733227f5996b8ef83ccb4a1fa5ac1f7b02a8699..822f2c4d9f4084abf7e3424d8face1e55a353108 100644 (file)
@@ -5,7 +5,10 @@
  */
 
 #include <common.h>
+#include <blk.h>
 #include <command.h>
+#include <part.h>
+#include <asm/cache.h>
 #include <asm/unaligned.h>
 #include "part_iso.h"
 
@@ -46,7 +49,7 @@ unsigned long iso_dread(struct blk_desc *block_dev, lbaint_t start,
 
 /* only boot records will be listed as valid partitions */
 int part_get_info_iso_verb(struct blk_desc *dev_desc, int part_num,
-                          disk_partition_t *info, int verb)
+                          struct disk_partition *info, int verb)
 {
        int i,offset,entry_num;
        unsigned short *chksumbuf;
@@ -199,14 +202,14 @@ found:
 }
 
 static int part_get_info_iso(struct blk_desc *dev_desc, int part_num,
-                                 disk_partition_t *info)
+                            struct disk_partition *info)
 {
        return part_get_info_iso_verb(dev_desc, part_num, info, 0);
 }
 
 static void part_print_iso(struct blk_desc *dev_desc)
 {
-       disk_partition_t info;
+       struct disk_partition info;
        int i;
 
        if (part_get_info_iso_verb(dev_desc, 1, &info, 0) == -1) {
@@ -225,7 +228,7 @@ static void part_print_iso(struct blk_desc *dev_desc)
 
 static int part_test_iso(struct blk_desc *dev_desc)
 {
-       disk_partition_t info;
+       struct disk_partition info;
 
        return part_get_info_iso_verb(dev_desc, 1, &info, 0);
 }
index 8b2c004027cf11d1ec44a9dbe7bb2ee34a7793d4..e01ae7456618edc7427037077f1f4695107ca90f 100644 (file)
 
 #include <common.h>
 #include <command.h>
+#include <log.h>
 #include <memalign.h>
 #include <ide.h>
 #include "part_mac.h"
+#include <part.h>
 
 #ifdef CONFIG_HAVE_BLOCK_DEVICE
 
@@ -214,7 +216,7 @@ static int part_mac_read_pdb(struct blk_desc *dev_desc, int part,
 }
 
 static int part_get_info_mac(struct blk_desc *dev_desc, int part,
-                                 disk_partition_t *info)
+                                 struct disk_partition *info)
 {
        ALLOC_CACHE_ALIGN_BUFFER(mac_driver_desc_t, ddesc, 1);
        ALLOC_CACHE_ALIGN_BUFFER(mac_partition_t, mpart, 1);
index 4e9e8098fa81a8090fac38c0391815c5b6bfaa1f..716ad227aa1917261ccaf0bfd189f9f5693f9027 100644 (file)
@@ -3,7 +3,7 @@ Command definition
 
 Commands are added to U-Boot by creating a new command structure.
 This is done by first including command.h, then using the U_BOOT_CMD() or the
-U_BOOT_CMD_COMPLETE macro to fill in a cmd_tbl_t struct.
+U_BOOT_CMD_COMPLETE macro to fill in a struct cmd_tbl struct.
 
 U_BOOT_CMD(name, maxargs, repeatable, command, "usage", "help")
 U_BOOT_CMD_COMPLETE(name, maxargs, repeatable, command, "usage, "help", comp)
@@ -31,7 +31,7 @@ comp:         Pointer to the completion function. May be NULL.
 Sub-command definition
 ----------------------
 
-Likewise an array of cmd_tbl_t holding sub-commands can be created using either
+Likewise an array of struct cmd_tbl holding sub-commands can be created using either
 of the following macros:
 
 * U_BOOT_CMD_MKENT(name, maxargs, repeatable, command, "usage", "help")
@@ -40,14 +40,14 @@ of the following macros:
 
 This table has to be evaluated in the command function of the main command, e.g.
 
-    static cmd_tbl_t cmd_sub[] = {
+    static struct cmd_tbl cmd_sub[] = {
         U_BOOT_CMD_MKENT(foo, CONFIG_SYS_MAXARGS, 1, do_foo, "", ""),
         U_BOOT_CMD_MKENT(bar, CONFIG_SYS_MAXARGS, 1, do_bar, "", ""),
     };
 
-    static int do_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+    static int do_cmd(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
     {
-        cmd_tbl_t *cp;
+        struct cmd_tbl *cp;
 
         if (argc < 2)
                 return CMD_RET_USAGE;
@@ -68,7 +68,7 @@ Command function
 ----------------
 
 The command function pointer has to be of type
-int (*cmd)(struct cmd_tbl_s *cmdtp, int flag, int argc, const char *argv[]);
+int (*cmd)(struct cmd_tbl *cmdtp, int flag, int argc, const char *argv[]);
 
 cmdtp:         Table entry describing the command (see above).
 
index caf1c9998cf94ae26ad8c792c2b969fed9bb446a..4b9f88354072f6ffbc649f864e4c622b39387291 100644 (file)
@@ -48,12 +48,12 @@ Configuration Options:
   CONFIG_CMD_DFU
 
 Environment variables:
-  the dfu command use 3 environments variables:
-  "dfu_alt_info" : the DFU setting for the USB download gadget with a comma
+  the dfu command uses 3 environments variables:
+  "dfu_alt_info" : the DFU setting for the USB download gadget with a semicolon
                    separated string of information on each alternate:
                    dfu_alt_info="<alt1>;<alt2>;....;<altN>"
 
-                   when only several device are used, the format is:
+                   when several devices are used, the format is:
                    - <interface> <dev>'='alternate list (';' separated)
                    - each interface is separated by '&'
                 dfu_alt_info=\
@@ -63,7 +63,7 @@ Environment variables:
                    "<interfaceI> <devI>=<altY+1>;....;<altZ>&"
 
   "dfu_bufsiz" : size of the DFU buffer, when absent, use
-                 CONFIG_SYS_DFU_DATA_BUF_SIZE (8MiB by default)
+                 CONFIG_SYS_DFU_DATA_BUF_SIZE (8 MiB by default)
 
   "dfu_hash_algo" : name of the hash algorithm to use
 
@@ -87,12 +87,21 @@ Commands:
   "mmc" (for eMMC and SD card)
     cmd: dfu 0 mmc <dev>
     each element in "dfu_alt_info" =
-      <name> raw <offset> <size>   raw access to mmc device
-      <name> part <dev> <part_id>  raw acces to partition
-      <name> fat <dev> <part_id>   file in FAT partition
-      <name> ext4 <dev> <part_id>  file in EXT4 partition
+      <name> raw <offset> <size> [mmcpart <num>]   raw access to mmc device
+      <name> part <dev> <part_id> [mmcpart <num>]  raw access to partition
+      <name> fat <dev> <part_id> [mmcpart <num>]   file in FAT partition
+      <name> ext4 <dev> <part_id> [mmcpart <num>]  file in EXT4 partition
+
+      with <partid> being the GPT or DOS partition index,
+      with <num> being the eMMC hardware partition number.
+
+    A value of environment variable dfu_alt_info for eMMC could be:
+
+      "u-boot raw 0x3e 0x800 mmcpart 1;bl2 raw 0x1e 0x1d mmcpart 1"
+
+    A value of environment variable dfu_alt_info for SD card could be:
 
-      with <partid> is the GPT or DOS partition index
+      "u-boot raw 0x80 0x800;uImage ext4 0 2"
 
   "nand" (raw slc nand device)
     cmd: dfu 0 nand <dev>
index 28ebde1dec745e03836078abe6597cc892ae3aa0..874ca2f7c66a15bdd830c2ef64425a3920433ef0 100644 (file)
@@ -40,7 +40,7 @@ Design Notes on Exporting U-Boot Functions to Standalone Applications:
    that returns the ABI version of the running U-Boot. I.e., a
    typical application startup may look like this:
 
-       int my_app (int argc, char * const argv[])
+       int my_app (int argc, char *const argv[])
        {
                app_startup (argv);
                if (get_version () != XF_VERSION)
diff --git a/doc/api/dfu.rst b/doc/api/dfu.rst
new file mode 100644 (file)
index 0000000..5bd9e29
--- /dev/null
@@ -0,0 +1,7 @@
+.. SPDX-License-Identifier: GPL-2.0+
+
+Device firmware update
+======================
+
+.. kernel-doc:: include/dfu.h
+   :internal:
index 2578abd40e5af8e2b182c786c94a223eb63b277a..fd3b5bdc825e24742e5ce6b6ade2676502473fc3 100644 (file)
@@ -6,6 +6,7 @@ U-Boot API documentation
 .. toctree::
    :maxdepth: 2
 
+   dfu
    efi
    linker_lists
    serial
index 0a492eba5437c3e0dad9c7c410138ff312ede3d8..d435667258109801562684b9c5c12dab5a821de2 100644 (file)
@@ -12,6 +12,7 @@
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
 #include <adc.h>
+#include <linux/delay.h>
 #include <power/regulator.h>
 
 #define ADC_UCLASS_PLATDATA_SIZE       sizeof(struct adc_uclass_platdata)
index f7c919d3b0a47506eeb45eb1b2467d2e0fab4f6a..72b0cc4e5bd14d222a714c838da5a3c3038bf24b 100644 (file)
@@ -14,6 +14,8 @@
 #include <regmap.h>
 #include <errno.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/math64.h>
 #include <linux/bitfield.h>
 
index 850142cce377b5a6ea661e75dd7e7c567c05ea8b..561740f63b5fa5632ca159e3883e38e6ffdbce35 100644 (file)
@@ -11,6 +11,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 #include <linux/err.h>
 
 #define SARADC_CTRL_CHN_MASK           GENMASK(2, 0)
index 2ca0fb4f108b3df3973f1cfe2a319e735e9a3903..31bbb6f9d68c934dfa57d9681a840372f53ab23e 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <asm/io.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
 #include <power/regulator.h>
 #include "stm32-adc-core.h"
 
index ca1ac3e757ee8a5ede1a73906ff0d247e64b5567..b12f894a9bf55b8303368c64760e787b248ac9fd 100644 (file)
@@ -10,6 +10,8 @@
 #include <adc.h>
 #include <asm/io.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/iopoll.h>
 #include "stm32-adc-core.h"
 
index 4cd7420c3cac38f84bd2a7a29b2e7397e5061ebf..47cdea1f586a438da39d7bf66b5698d43ef7b910 100644 (file)
@@ -9,7 +9,11 @@
  * This driver provides a SCSI interface to SATA.
  */
 #include <common.h>
+#include <blk.h>
 #include <cpu_func.h>
+#include <log.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 #include <command.h>
 #include <dm.h>
index 48a9d00d1479c174d8dd97fb42f38ade24b3a743..8be1826d4055a19cf84d8c3171c1fec759f20a25 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <ahci.h>
 #include <dm.h>
+#include <log.h>
 
 /*
  * Dummy implementation that can be overwritten by a board
index 77b932aa039243449391a00384e922ee1b2429fe..58e345d9983cd96c9285bab7864e91fe5c657b4d 100644 (file)
@@ -1,10 +1,12 @@
 #include <common.h>
 #include <ahci.h>
 #include <dm.h>
+#include <log.h>
 #include <scsi.h>
 #include <errno.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
+#include <linux/delay.h>
 
 #define AHCI_PHYCS0R 0x00c0
 #define AHCI_PHYCS1R 0x00c4
index 2bc1de8b98a7a7f14564623ad6e1094cd806fbcc..562e982e32a69da372c1c11e9b3b907c3855e0fe 100644 (file)
@@ -6,20 +6,25 @@
 
 #include <common.h>
 #include <ahci.h>
+#include <blk.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <dwc_ahsata.h>
 #include <fis.h>
 #include <libata.h>
+#include <log.h>
 #include <malloc.h>
 #include <memalign.h>
+#include <part.h>
 #include <sata.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/mach-imx/sata.h>
 #include <linux/bitops.h>
 #include <linux/ctype.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include "dwc_ahsata_priv.h"
 
index c6680dc1c98f06c572ced5a371d0bf910b913a54..8c6726a62146419bcd9abddb821f7cd68a86784c 100644 (file)
@@ -6,9 +6,11 @@
  */
 
 #include <common.h>
+#include <blk.h>
 #include <command.h>
 #include <console.h>
 #include <cpu_func.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/processor.h>
 #include <asm/fsl_serdes.h>
@@ -16,6 +18,7 @@
 #include <libata.h>
 #include <fis.h>
 #include <sata.h>
+#include <linux/delay.h>
 #include "fsl_sata.h"
 
 #if CONFIG_IS_ENABLED(BLK)
index 6bbb345f6effba1e7e88170c4bf8074b9bab976a..41f9a91617d4ec7a51dc2624685130e288a133fc 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 #if defined(CONFIG_ARCH_ORION5X)
 #include <asm/arch/orion5x.h>
index e384b805b212cc3574fefd472c97f577c9628f6c..6a38d5002455f2a3a0743ea94034c21f91e971d1 100644 (file)
@@ -11,7 +11,9 @@
 
 #include <common.h>
 #include <ahci.h>
+#include <blk.h>
 #include <dm.h>
+#include <part.h>
 #include <sata.h>
 
 #ifndef CONFIG_AHCI
index 2d496305d0924eb457d0af68a5dac0c86e300dc4..77508aa5bc76f568ea19d0cd8d8a976823ee7ddc 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <ahci.h>
+#include <log.h>
 #include <scsi.h>
 #include <asm/io.h>
 #include <linux/ioport.h>
index 9ced9c0fa8767b7d81e85b0ec15aa9ab4966e3fd..b2b5c699ad14910392776bc228e9f678f23ea609 100644 (file)
 
 #include <common.h>
 #include <ahci.h>
+#include <blk.h>
 #include <cpu_func.h>
 #include <dm.h>
+#include <log.h>
+#include <asm/cache.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
 #include <fis.h>
 #include <libata.h>
 #include <malloc.h>
 #include <sata.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <linux/mbus.h>
index a28ac56ccd9bc54d664e0d9ca8d9cccb70df2c70..e64cc4a5c10c2bb7e5a4bd4fe1f72307a270683e 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <blk.h>
 
 int init_sata(int dev)
 {
index 71ee0c04efaf8e6b38f30c940abc4e8d02d16e06..6896fa8771be0231f7efcb04544827ac5ebfed77 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <log.h>
 #include <pci.h>
 #include <command.h>
 #include <asm/byteorder.h>
@@ -16,6 +17,7 @@
 #include <sata.h>
 #include <libata.h>
 #include <sata.h>
+#include <linux/delay.h>
 
 #if CONFIG_IS_ENABLED(BLK)
 #include <dm.h>
index 41635742a81737fffcae4dd053d539700785d95c..4d3a680f17f01265316c39f81b8130df1afc19ed 100644 (file)
@@ -8,6 +8,9 @@
  */
 
 #include <common.h>
+#include <blk.h>
+#include <log.h>
+#include <part.h>
 #include <pci.h>
 #include <command.h>
 #include <config.h>
@@ -16,6 +19,7 @@
 #include <ide.h>
 #include <sata.h>
 #include <libata.h>
+#include <linux/delay.h>
 #include "sata_sil3114.h"
 
 /* Convert sectorsize to wordsize */
@@ -61,9 +65,9 @@ static int sata_bus_softreset (int num)
 
        port[num].ctl_reg = 0x08;       /*Default value of control reg */
        writeb (port[num].ctl_reg, port[num].ioaddr.ctl_addr);
-       udelay (10);
+       udelay(10);
        writeb (port[num].ctl_reg | ATA_SRST, port[num].ioaddr.ctl_addr);
-       udelay (10);
+       udelay(10);
        writeb (port[num].ctl_reg, port[num].ioaddr.ctl_addr);
 
        /* spec mandates ">= 2ms" before checking status.
@@ -118,7 +122,7 @@ static void sata_identify (int num, int dev)
        cmd = ATA_CMD_ID_ATA;   /*Device Identify Command */
        writeb (cmd, port[num].ioaddr.command_addr);
        readb (port[num].ioaddr.altstatus_addr);
-       udelay (10);
+       udelay(10);
 
        status = sata_busy_wait (&port[num].ioaddr, ATA_BUSY, 1000, 0);
        if (status & ATA_ERR) {
@@ -191,7 +195,7 @@ static void set_Feature_cmd (int num, int dev)
        writeb (ATA_DEVICE_OBS, port[num].ioaddr.device_addr);
        writeb (ATA_CMD_SET_FEATURES, port[num].ioaddr.command_addr);
 
-       udelay (50);
+       udelay(50);
        msleep (150);
 
        status = sata_busy_wait (&port[num].ioaddr, ATA_BUSY, 5000, 0);
@@ -389,7 +393,7 @@ static u8 wait_for_irq (int num, unsigned int max)
                if (readl (port) & VND_TF_CNST_INTST) {
                        break;
                }
-               udelay (1000);
+               udelay(1000);
                max--;
        } while ((max > 0));
 
@@ -405,7 +409,7 @@ static u8 sata_busy_wait (struct sata_ioports *ioaddr, int bits,
                if (!((status = sata_chk_status (ioaddr, usealtstatus)) & bits)) {
                        break;
                }
-               udelay (1000);
+               udelay(1000);
                max--;
        } while ((status & bits) && (max > 0));
 
@@ -426,7 +430,7 @@ static void msleep (int count)
        int i;
 
        for (i = 0; i < count; i++)
-               udelay (1000);
+               udelay(1000);
 }
 
 /* Read up to 255 sectors
@@ -613,7 +617,7 @@ ulong sata_write (int device, ulong block, lbaint_t blkcnt, const void *buff)
 
                output_data (&port[num].ioaddr, buffer, ATA_SECTOR_WORDS);
                readb (port[num].ioaddr.altstatus_addr);
-               udelay (50);
+               udelay(50);
 
                ++n;
                ++blknr;
index 06c42006ee851f7835c8568b655316a6a0f8ab10..b28351f1adb0abbcdf6357b27d2799addc6c29e8 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <axi.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/device-internal.h>
 #include <asm/axi.h>
 
index 690aa7796b57c3e662c59816eba7bdf428ac8de5..3945511090708ff403f31ad34d20a2b56e9f0481 100644 (file)
 #include <common.h>
 #include <axi.h>
 #include <dm.h>
+#include <log.h>
 #include <regmap.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 /**
  * struct ihs_axi_regs - Structure for the register map of a IHS AXI device
index a6f483ed2511a9da7fba9a867a4e9c5ccb823d6f..42bcae6af26b46de9ce5c8a2f612c57bbb25e733 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <axi.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 
 /**
index fb806b53d4410d492cad3ac21745e4194f51c9e2..9c7f14e98f478504a4c9a698f71a97be35427f0c 100644 (file)
 #include <common.h>
 #include <bios_emul.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <vbe.h>
+#include <linux/delay.h>
 #include "biosemui.h"
 
 /* Length of the BIOS image */
index 7c39aa5f2f5fd99c34101a1f636e7dba95bd9d28..b19375cbc8da3466eef5e22a3d27952b2140500d 100644 (file)
@@ -7,7 +7,9 @@
 #include <common.h>
 #include <blk.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
+#include <part.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
 #include <dm/uclass-internal.h>
index 0c343f7b6460add4cfd9c3cb2bd1fbb2195640a3..e3ee778c29d20b7fab46a81c813bbefd8b357096 100644 (file)
@@ -5,6 +5,8 @@
  */
 
 #include <common.h>
+#include <blk.h>
+#include <part.h>
 #include <linux/err.h>
 
 struct blk_driver *blk_driver_lookup_type(int if_type)
index ea40929e3e520e6748e151561cc8ea9ed55626c9..b6fc72fe983e0ac01a506de718675314440ff581 100644 (file)
@@ -4,8 +4,9 @@
  * Author: Eric Nelson<eric@nelint.com>
  *
  */
-#include <config.h>
 #include <common.h>
+#include <blk.h>
+#include <log.h>
 #include <malloc.h>
 #include <part.h>
 #include <linux/ctype.h>
index 67cc4fbc02eee2de58600a40764e9aaf58d9451a..a766b5cf03660807857943075ce273928063c664 100644 (file)
@@ -6,10 +6,14 @@
 
 #include <common.h>
 #include <ata.h>
+#include <blk.h>
 #include <dm.h>
 #include <ide.h>
+#include <log.h>
+#include <part.h>
 #include <watchdog.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 #ifdef __PPC__
 # define EIEIO         __asm__ volatile ("eieio")
index 85de4e440cec551177a4aa772ec43d8013e5a87e..ed50fc530cb4c22eeacf78160f2a4b06494b8a6f 100644 (file)
@@ -8,6 +8,7 @@
 #include <dm.h>
 #include <board.h>
 #include <i2c.h>
+#include <log.h>
 #include <asm/gpio.h>
 
 #include "gazerbeam.h"
index 0689db7a5bcc59c0a527d6f8076738399b0f2d16..34ac08d59a6aab06e730dac50656ecfeeaa35613 100644 (file)
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <bootcount.h>
+#include <log.h>
 
 int dm_bootcount_get(struct udevice *dev, u32 *bootcount)
 {
index 655dfaf59c48a3a1259978ed9cac3b2a007ca332..e8db8542f9349c099ad8c477646f96eba174a3e2 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <bootcount.h>
 #include <cpu_func.h>
+#include <asm/cache.h>
 #include <linux/compiler.h>
 
 #if !defined(CONFIG_DM_BOOTCOUNT)
index 9c678e25f4ba40ab55bcd01e9538b4cc96e36a13..078c84d5ecab7f5ab9784651d89a6e0aa7798eef 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index ee760a2742bb4f01ce26d1f5910eca2873c0b92b..a3aa0cf5595787b278e2bd68e6605df99bcdc32c 100644 (file)
@@ -8,6 +8,7 @@
 #include <bootcount.h>
 #include <dm.h>
 #include <i2c_eeprom.h>
+#include <log.h>
 
 static const u8 bootcount_magic = 0xbc;
 
index db89fa3a358c7ba16df4d46cdc2b594f7376652b..076a8bb2be8dcbcdcc4df7b2782df7075a55f769 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <bootcount.h>
 #include <dm.h>
+#include <log.h>
 #include <rtc.h>
 
 static const u8 bootcount_magic = 0xbc;
index 0aab7ee19147bbd77a215912422ebb2b6fcf46b7..3beff780de0fdb2276d8c8db68d0c3c64da36d11 100644 (file)
@@ -8,6 +8,7 @@
 #include <wait_bit.h>
 
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 /* Directory */
 #define DIRUSFER               0x80010
index 1373e7c387d8bce94b5d9723d2df3ee0c9d3db39..51c074bfe233c4a5b5e3f20c4596764ed1ff619d 100644 (file)
@@ -11,6 +11,7 @@
 #include <hang.h>
 #include <asm/io.h>
 #include <dm/ofnode.h>
+#include <linux/bitops.h>
 
 struct l2cache {
        volatile u64    configure;
index 5fedec549d109aae31cd5a5c08d079f6d78d93dc..0042958f4c428306302136205f01c9e51221c34c 100644 (file)
@@ -4,12 +4,14 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <dm/lists.h>
 #include <dm/util.h>
 #include <dt-bindings/clock/agilex-clock.h>
+#include <linux/bitops.h>
 
 #include <asm/arch/clock_manager.h>
 
index d93328ef299d131a24f056757ad8e8415172a5ff..cd68ebc4387eb1b6fe1d3786e3213ad4044201b6 100644 (file)
@@ -6,6 +6,10 @@
 #ifndef        _CLK_AGILEX_
 #define        _CLK_AGILEX_
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 #define CM_REG_READL(plat, reg)                                \
        readl((plat)->regs + (reg))
 
index 694a9427e1fde749cf9619e8c99f5ebe0d9c0f1c..ede0be299dfcbaa2c89f91ab04f1834d9c7d5571 100644 (file)
@@ -12,6 +12,7 @@
 #include <dm/devres.h>
 #include <dm/lists.h>
 #include <dm/util.h>
+#include <linux/bitops.h>
 
 #include <asm/arch/clock_manager.h>
 
index f4a441ad684a5e5830882970dcf8f35314a5205c..ccfeded30c56240a70bdcb99014a778c8b25c003 100644 (file)
@@ -6,10 +6,12 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/scu_ast2500.h>
 #include <dm/lists.h>
 #include <dt-bindings/clock/ast2500-scu.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 
 /*
index a80f259a72cf26a86cbf7a7ea15d3f19f371fbbb..c0610940c3be2af9b958228a94ff6c34d6372842 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <linux/err.h>
 #include <linux/io.h>
index f9adef2eaac5843acb1c4cdb278f7c37f6487875..76b1958670d6b331ef6ea26c194ff4038056b4ec 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <linux/bitops.h>
 #include <linux/io.h>
 #include <mach/at91_pmc.h>
 #include "pmc.h"
index c3cb2ba0146fff57cb06cad3588766222b14d5ca..af9d724369336474bb92d813e7a874e7ec11a499 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <clk-uclass.h>
+#include <log.h>
 #include <dm/device.h>
 #include <linux/err.h>
 #include <linux/io.h>
index f5808449a629132300b7aae5104e651b15622783..9d9d77d861d758c7bc73873f02875aa4b395773a 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/lists.h>
 #include <dm/util.h>
 #include "pmc.h"
index f1f76b0a4da8061d1955804a030c2cf6ae7dd6eb..fd47872ab99214a9ad4158588d2985c10c5843dc 100644 (file)
@@ -14,6 +14,7 @@
 #include <clk-uclass.h>
 #include <i2c.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
 
 #define MAX_NUMBER_OF_PLLS             4
 #define MAX_NUMER_OF_OUTPUTS           9
index d79ae367b8077547d11d8fc926b2d2b969d4e1e3..2a68719eb68a6f0295a5758c77fdb0daa09bc510 100644 (file)
@@ -18,6 +18,7 @@
 #include <dm/uclass.h>
 #include <dm/lists.h>
 #include <dm/device-internal.h>
+#include <linux/bug.h>
 #include <linux/clk-provider.h>
 #include <linux/err.h>
 #include <linux/log2.h>
index 6415c2f1b91dfa661ca716a74e479e5dbbdfd95a..23c1f2c4ba9e8c396351472e3cf508595ea59766 100644 (file)
@@ -13,6 +13,7 @@
 #include <clk-uclass.h>
 #include <dm/device.h>
 #include <dm/devres.h>
+#include <linux/bitops.h>
 #include <linux/clk-provider.h>
 #include <clk.h>
 #include "clk.h"
index 2de3a6a30b0f17ab9c4af53c8f7d1185c00a3faa..3eb93a55fc412ff2dadd5e90b2550d0beccede82 100644 (file)
 #include <clk-uclass.h>
 #include <div64.h>
 #include <dm.h>
+#include <log.h>
+#include <linux/bitops.h>
+#include <linux/bug.h>
+#include <linux/delay.h>
 #include <linux/io.h>
 #include <asm/arcregs.h>
 
index b9d2ae6778fc0d82cefb5b0df1316a8c91b19de9..c69cce0565d24b452af4ec2d9a6ca4d9883e17d7 100644 (file)
@@ -27,6 +27,7 @@
 #include <clk-uclass.h>
 #include <dm/device.h>
 #include <dm/devres.h>
+#include <linux/bitops.h>
 #include <linux/clk-provider.h>
 #include <clk.h>
 #include "clk.h"
index 82241d9f3f527e89ddcd1827a103bf2608829c7d..7a9a6451374d488a43fad06256dced511d1d489c 100644 (file)
@@ -12,6 +12,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <clk-uclass.h>
+#include <log.h>
 #include <malloc.h>
 #include <dm/device_compat.h>
 #include <linux/err.h>
index 71878474ebe1a1648fcca53dac2228611c955760..9ffc2243cb5b2dcd759bba52bca834050fb51271 100644 (file)
 #include <dm.h>
 #include <dt-structs.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <dm/devres.h>
 #include <dm/read.h>
+#include <linux/bug.h>
 #include <linux/clk-provider.h>
 #include <linux/err.h>
 
index 4c477a488e14fec0d625982ebec96ec84061edc7..0f55ba751c0f960659b41a392e2acd17e62ac962 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <clk-uclass.h>
+#include <log.h>
 #include <dm/device.h>
 #include <dm/uclass.h>
 #include <dm/lists.h>
index f01ec9a8598eae16a8df9d43eb7e05ea2b5a1744..b850b9fc069be6fccd19f42587e2381fe13e1343 100644 (file)
@@ -11,6 +11,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 #define MAX_CLKS       32
 
index 0c49ee0798bc3993b64495cb409490989e2c028e..2318dcf6a45d8122007fd9eb7fba4021314ada49 100644 (file)
@@ -9,6 +9,7 @@
 #include <dt-bindings/clock/boston-clock.h>
 #include <regmap.h>
 #include <syscon.h>
+#include <linux/bitops.h>
 
 struct clk_boston {
        struct regmap *regmap;
index 79469c454fe3afe1383a55b6f29f95c772c800da..dc46de2a7cf97ff6fce8c6ab406004529978103e 100644 (file)
@@ -12,6 +12,8 @@
 #include <wait_bit.h>
 #include <dm/lists.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
+#include <linux/bug.h>
 #include <mach/pic32.h>
 #include <dt-bindings/clock/microchip,clock.h>
 
index 3543bea70d2b32f5b21920d57b2103a76e22377d..0619d04f0ece2dd666e8afa71c38f83041e573aa 100644 (file)
@@ -13,6 +13,7 @@
 #include <asm/clk.h>
 #include <clk-uclass.h>
 #include <dm/devres.h>
+#include <linux/bitops.h>
 #include <linux/clk-provider.h>
 #include <sandbox-clk.h>
 #include <linux/err.h>
index cbcfe3a89dd780ae4bff1defde0af0d2de9f9aa4..93722f74ae4df4ebfae76eecdc5dc6610c442592 100644 (file)
@@ -7,7 +7,9 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <log.h>
 #include <stm32_rcc.h>
+#include <linux/bitops.h>
 
 #include <asm/io.h>
 #include <asm/arch/stm32.h>
index 18d06b333dbe3d0b1e3a37ebfc0ecd0158a90d8a..5e6abca56fabc25e285524e61992eb8d29dd954a 100644 (file)
@@ -7,10 +7,12 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <log.h>
 #include <regmap.h>
 #include <syscon.h>
 #include <asm/io.h>
 #include <dm/root.h>
+#include <linux/bitops.h>
 
 #include <dt-bindings/clock/stm32h7-clks.h>
 
index 0d0ea43fd201ad02c7aa83b1095a417b8e553a67..6c5eddbd9a3abeed4ceb3ac41ec0e79ebcd5b995 100644 (file)
@@ -7,11 +7,14 @@
 #include <clk-uclass.h>
 #include <div64.h>
 #include <dm.h>
+#include <init.h>
+#include <log.h>
 #include <regmap.h>
 #include <spl.h>
 #include <syscon.h>
 #include <time.h>
 #include <vsprintf.h>
+#include <linux/bitops.h>
 #include <linux/io.h>
 #include <linux/iopoll.h>
 #include <dt-bindings/clock/stm32mp1-clks.h>
index 075a08380d844cd69eafa30355b3e4997d95282f..2fb3171d71fa76cbd0036582256b8bea88a4561f 100644 (file)
@@ -5,6 +5,9 @@
  */
 
 #include <common.h>
+#include <log.h>
+#include <asm/cache.h>
+#include <asm/ptrace.h>
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/bitfield.h>
index 82e589e239fe1aba952283753d5856ab118cd70f..b48319bba67f85d1676ba76769e67363408edf3b 100644 (file)
@@ -8,10 +8,12 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/device_compat.h>
 #include <dm/lists.h>
 #include <errno.h>
 #include <misc.h>
+#include <linux/bitops.h>
 
 #define CLK_FUNCTION           BIT(20)
 
index 4ca1cc0d52a22c7edde7b075e2dce90028a09639..a699a3664c335ac738bca1bbaf880f3e786337c4 100644 (file)
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/device_compat.h>
 #include <dm/lists.h>
 #include <errno.h>
index e0eb897da892c69e94f0ef6d7726514adb08b1fc..2313ac0bc0442c9696ed841d0a044728bd73a3da 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
index e85ab1f9a06b3ba55b0838ded8a56bade1295989..4f80bf6e5223c2e6bb3b106855b94f4a77453937 100644 (file)
@@ -13,6 +13,7 @@
 #include <dm.h>
 #include <clk-uclass.h>
 #include <i2c.h>
+#include <log.h>
 
 const long long ICS8N3QV01_FREF = 114285000;
 const long long ICS8N3QV01_FREF_LL = 114285000LL;
index 3e99c528de543993e8fbbef10351817693ae86fc..494156751dae6b21fdedc5e5b3cca76e615fa2fe 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <malloc.h>
 #include <clk-uclass.h>
index bd0d3e4f4726b4b5c100c0e27d8afa278adca27d..11d194363d3dedafc7fa1c0a3850653f2f4f292f 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <log.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <dt-bindings/clock/imx6qdl-clock.h>
index 671054d9befa9c1b56dd291e058cd6a7f8c4bf97..27a652a625ab0f2498422b8bca05a21bfbc72548 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/arch/sci/sci.h>
 #include <asm/arch/clock.h>
index fc41a028f6ca015a730d94a9fda07a5e115fbc85..66c9601b0c13b72349906c6156a2d825ec3c77dd 100644 (file)
@@ -8,6 +8,7 @@
 #include <clk.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <log.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <dt-bindings/clock/imx8mm-clock.h>
index eb43971ae6fcc8b269b0ade958b143cded424954..2d8e373131b77e5196c254cc5195370bb35cc986 100644 (file)
@@ -8,6 +8,7 @@
 #include <clk.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <log.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <dt-bindings/clock/imx8mn-clock.h>
index a2693d2f7a0f5ebeffaa65e25356d5da801441b8..3d7aebb8e56f02e1ad59a28a90569c9a8f1071cb 100644 (file)
@@ -8,6 +8,7 @@
 #include <clk.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <log.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <dt-bindings/clock/imx8mp-clock.h>
index a6b09d2109503bce18d26a01c3028f6318339ca5..54fb09fda40504a506a9c96c94bac82af7aedd90 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <log.h>
 #include <asm/arch/sci/sci.h>
 #include <asm/arch/clock.h>
 #include <dt-bindings/clock/imx8qm-clock.h>
index 0db4539a1f8ada1762c348781d98a702d37bf589..e6b2fb40da2a8bd2a967b1bbe05f399f60d47fea 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <log.h>
 #include <asm/arch/sci/sci.h>
 #include <asm/arch/clock.h>
 #include <dt-bindings/clock/imx8qxp-clock.h>
index 8279e784fede0b303635b8faaccd528496c8437c..594093ee5fba124492bfb066cefa6c2d722b7d39 100644 (file)
@@ -8,6 +8,7 @@
 #include <clk.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <log.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <dt-bindings/clock/imxrt1050-clock.h>
index 1673eb26b2c7e7ebea710a0f5e72e6f143dcd81a..b0ccb6c8eda5d6a63bc796b6db2f57a8d2f58c26 100644 (file)
@@ -11,7 +11,9 @@
 #include <clk-uclass.h>
 #include <dm/device.h>
 #include <dm/devres.h>
+#include <linux/bitops.h>
 #include <linux/clk-provider.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/iopoll.h>
 #include <clk.h>
index a5b61a190b1bc13bfe83077c1495239eda8bf4c5..dc0ba71f1092305931463f9ca780b7e51b005cbc 100644 (file)
@@ -8,9 +8,11 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <asm/arch-mediatek/reset.h>
 #include <asm/io.h>
 #include <dt-bindings/clock/mt7622-clk.h>
+#include <linux/bitops.h>
 
 #include "clk-mtk.h"
 
index dfce32e2836fb7bdbd8eca4fcfa9d94095dfd910..a15fb45e8e7ad6c3d7448f6af206c9ad8a6113ed 100644 (file)
@@ -8,9 +8,11 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <asm/arch-mediatek/reset.h>
 #include <asm/io.h>
 #include <dt-bindings/clock/mt7623-clk.h>
+#include <linux/bitops.h>
 
 #include "clk-mtk.h"
 
index 858be85d15b0fe7fb5ae9547132ddc77ed878ad8..5b2aa5f200ae21766b2c60bf7954671eda3bbd04 100644 (file)
@@ -8,9 +8,11 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <asm/arch-mediatek/reset.h>
 #include <asm/io.h>
 #include <dt-bindings/clock/mt7629-clk.h>
+#include <linux/bitops.h>
 
 #include "clk-mtk.h"
 
index cb168f146b8fc655df9d3dfa11005f2f7a45e367..ad254d1cce57512aee0f93de5a5c764fd3acbaea 100644 (file)
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <asm/io.h>
 #include <dt-bindings/clock/mt8512-clk.h>
+#include <linux/bitops.h>
 
 #include "clk-mtk.h"
 
index 071bf69b19a14715504e62609004055565227c28..cd1db257836003c9f8770c2795dc0db7c6a622b6 100644 (file)
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <asm/io.h>
 #include <dt-bindings/clock/mt8516-clk.h>
+#include <linux/bitops.h>
 
 #include "clk-mtk.h"
 
index 76f7b3b361e6b2db98dcbd1a4b9d97c7daa7f641..985a0c1de5e258803ba8cf103a8c1deb8c0efc1e 100644 (file)
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <asm/io.h>
 #include <dt-bindings/clock/mt8518-clk.h>
+#include <linux/bitops.h>
 
 #include "clk-mtk.h"
 
index c52537cedf3aa8b6a4c1920d7119ee50c5003720..388471b03a90af150ae1515201130e8f3b7d13b9 100644 (file)
@@ -11,6 +11,8 @@
 #include <div64.h>
 #include <dm.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 #include "clk-mtk.h"
 
index c7dc980861eb844f2e2e5926e1a9105375d7767f..95a23d14a8e030f074585ad53f86db2766cfe9c1 100644 (file)
@@ -7,6 +7,7 @@
 #ifndef __DRV_CLK_MTK_H
 #define __DRV_CLK_MTK_H
 
+#include <linux/bitops.h>
 #define CLK_XTAL                       0
 #define MHZ                            (1000 * 1000)
 
index 4b0028d04bf6c30692e926e6f7e9b08d098e0350..6ef8b418d782f37180e4a347d06cb63e635c49f7 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/arch/clock-axg.h>
 #include <asm/io.h>
 #include <clk-uclass.h>
@@ -14,6 +15,7 @@
 #include <syscon.h>
 #include <div64.h>
 #include <dt-bindings/clock/axg-clkc.h>
+#include <linux/bitops.h>
 #include "clk_meson.h"
 #include <linux/err.h>
 
index 7adc55a980377fa959d1212e9739c48b5837bfbd..ef72a416c15145249eb89fa25c5a3d0c0b9b91ff 100644 (file)
@@ -10,6 +10,7 @@
 
 /* Gate Structure */
 
+#include <linux/bitops.h>
 struct meson_gate {
        unsigned int reg;
        unsigned int bit;
index 6089f8474ebfc4e48129ed4ed79db60b2c6459b0..bf2f357435ab7a99cfb9f994a7af55ce1cdd5ac9 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/arch/clock-g12a.h>
 #include <asm/io.h>
 #include <clk-uclass.h>
@@ -14,6 +15,8 @@
 #include <syscon.h>
 #include <div64.h>
 #include <dt-bindings/clock/g12a-clkc.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/kernel.h>
 #include "clk_meson.h"
index 5ef4dd794d5210684d2ab89b5dfb7696783d6be2..b9353c053eb2c01d310f36a908e1a0a900266d66 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/arch/clock-gx.h>
 #include <asm/io.h>
 #include <clk-uclass.h>
@@ -14,6 +15,7 @@
 #include <regmap.h>
 #include <syscon.h>
 #include <dt-bindings/clock/gxbb-clkc.h>
+#include <linux/bitops.h>
 #include "clk_meson.h"
 #include <linux/err.h>
 
index 4183db28455df5e5eb0676222ffe4c1efd428abf..8d96ec767ac6ef13fe4a77fd43826c0c36965572 100644 (file)
@@ -7,11 +7,14 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <clock_legacy.h>
+#include <command.h>
 #include <dm.h>
+#include <log.h>
 #include <vsprintf.h>
 #include <dm/lists.h>
 #include <dt-bindings/clk/mpc83xx-clk.h>
 #include <asm/arch/soc.h>
+#include <linux/bitops.h>
 
 #include "mpc83xx_clk.h"
 
@@ -390,7 +393,8 @@ U_BOOT_DRIVER(mpc83xx_clk) = {
        .bind = mpc83xx_clk_bind,
 };
 
-static int do_clocks(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_clocks(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        int i;
        char buf[32];
index 7fb880292045539768f0d050702ffd28fd82a8f1..8a31a4c868f1c0eb0f2ea364563f369120104915 100644 (file)
@@ -17,6 +17,7 @@
  * @RAT_2_5_TO_1: Ratio 2.5:1
  * @RAT_3_TO_1:   Ratio 3:1
  */
+#include <linux/bitops.h>
 enum ratio {
        RAT_UNK,
        RAT_BYP,
index 855f979b4f92bf7d8a7ed764eff9fa3e344fbb0d..223da22c1b637dc27f95306724f11dde3ae60793 100644 (file)
@@ -16,6 +16,7 @@
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
 
 #define TBG_SEL                0x0
 #define DIV_SEL0       0x4
index 5607b2b7b51675aafcc86b038e346c7c72cf7804..9715fce162157bbd5c21dd7bb094fde819ba5e0c 100644 (file)
@@ -17,6 +17,8 @@
 #include <asm/arch-owl/regs_s700.h>
 #include <dt-bindings/clock/actions,s700-cmu.h>
 #endif
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 void owl_clk_init(struct owl_clk_priv *priv)
 {
index b8d33624c5f56d390f738f8b5b94823800faf864..cf896bdb98e4d4c87bc6f6cb1e95d3ce0bd0724d 100644 (file)
@@ -11,6 +11,9 @@
 #define _OWL_CLK_H_
 
 #include <clk-uclass.h>
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
 
 enum owl_soc {
        S700,
index bfd7620dae1f52f40d359e00d849e78336824c6f..3ed0aa92cb82281197842323c44a968631740613 100644 (file)
@@ -14,6 +14,7 @@
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <asm/io.h>
 
 #include <dt-bindings/clock/renesas-cpg-mssr.h>
index a2011dd37c5f50a7e4d898c791715a822644b1f2..15e38337567370cc72fb43a179e5decedf13770a 100644 (file)
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <wait_bit.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 #include <dt-bindings/clock/renesas-cpg-mssr.h>
 
index b62b8753cd4e64e6f9bc0c1de19ad79e14ae3792..7451f53ba39accfb8f2cc16b210ac4f4001ee9f8 100644 (file)
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <linux/bitops.h>
 
 #include <dt-bindings/clock/r8a7790-cpg-mssr.h>
 
index e11c02e6e8272bb0bf48dc9a4093b4d81cb017cd..25fd4896094549794fe33175cfe2f5863017cd0d 100644 (file)
@@ -17,6 +17,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <linux/bitops.h>
 
 #include <dt-bindings/clock/r8a7791-cpg-mssr.h>
 
index fb18ee7aedf06625d2f430c954b8821736a49c00..d47ab99e8826b18dca1ef3afe5c8b37fb5cc60c3 100644 (file)
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <linux/bitops.h>
 
 #include <dt-bindings/clock/r8a7792-cpg-mssr.h>
 
index b6be1bc0323d41a04617905bf9d14305710cef1f..7093e0d42cb7240125dd7ea4ce918e3e6ebd7737 100644 (file)
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <linux/bitops.h>
 
 #include <dt-bindings/clock/r8a7794-cpg-mssr.h>
 
index ab4747ee14be7b73fe615a05fb5e5b46a1d12c3f..dcd96ad0177454370aa8b82c508c5ad954535a1d 100644 (file)
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <linux/bitops.h>
 
 #include <dt-bindings/clock/r8a7795-cpg-mssr.h>
 
index 253a9143b7a49d29637620e3f11ce5ff0562acad..89dc141239deb78f8306399932cd715f6204dbaa 100644 (file)
@@ -18,6 +18,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <linux/bitops.h>
 
 #include <dt-bindings/clock/r8a7796-cpg-mssr.h>
 
index bd36ea3b6d8a96b7024ab30229ca528b649abfe9..6ed88295c98b8705739b029059eccfc52a64aab9 100644 (file)
@@ -13,6 +13,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <linux/bitops.h>
 
 #include <dt-bindings/clock/r8a77965-cpg-mssr.h>
 
index 961eb7fb6007b94be09b53a9f2072f28fab980d6..df07120171871630f2e740cbf8a5e11673e87020 100644 (file)
@@ -13,6 +13,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <linux/bitops.h>
 
 #include <dt-bindings/clock/r8a77970-cpg-mssr.h>
 
index c076ac771f22adbb4abf2cba3ec2ac139bb9f8de..c8d7a9469bab03b66cf4cc11535fb4710f3e5ab4 100644 (file)
@@ -13,6 +13,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <linux/bitops.h>
 
 #include <dt-bindings/clock/r8a77980-cpg-mssr.h>
 
index 3168de20f91d61b3adc351e8396e75e3b519975c..357e7b534da9868ea83f7497a99cc5faba942d83 100644 (file)
@@ -13,6 +13,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <linux/bitops.h>
 
 #include <dt-bindings/clock/r8a77990-cpg-mssr.h>
 
index 1c793709822777ba5db3939cf186c0d585c7d978..d62aeba635bb7c45baefa64d13f7caee22c3e0eb 100644 (file)
@@ -13,6 +13,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <linux/bitops.h>
 
 #include <dt-bindings/clock/r8a77995-cpg-mssr.h>
 
index 7698613877afbe657231faff1c10f3d05bf5be88..7c1222f6c8cea64d9f5e3bacd4ff040125ae4d24 100644 (file)
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <wait_bit.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 #include <dt-bindings/clock/renesas-cpg-mssr.h>
 
index 5b7012d37c633b52f3a83ad70b0cc46c7d6bf19d..b669dec594ffa2d7ac732650d0b3be31fa85b0c5 100644 (file)
@@ -13,6 +13,7 @@
 #ifndef __DRIVERS_CLK_RENESAS_CPG_MSSR__
 #define __DRIVERS_CLK_RENESAS_CPG_MSSR__
 
+#include <linux/bitops.h>
 struct cpg_mssr_info {
        const struct cpg_core_clk       *core_clk;
        unsigned int                    core_clk_size;
index c4b45314ec5e5b8d6f64368c657702ec29451e68..83d45c75ee221aa30fb83fc6c634a6c89fab2173 100644 (file)
@@ -7,10 +7,12 @@
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/clock.h>
 #include <asm/arch-rockchip/hardware.h>
 #include <div64.h>
+#include <linux/delay.h>
 
 static struct rockchip_pll_rate_table rockchip_auto_table;
 
index b88534145efb0bee0210c59528277426f29ed545..71916dbf3b11b8fd953facd800ebbea67a2d6297 100644 (file)
@@ -8,6 +8,7 @@
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <syscon.h>
 #include <asm/arch-rockchip/clock.h>
@@ -16,6 +17,8 @@
 #include <asm/io.h>
 #include <dm/lists.h>
 #include <dt-bindings/clock/px30-cru.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 6e085c41368719d75abe5c5b279e4466e8ce3a63..274572f70c14ef39cbc14316bd540cb1848970af 100644 (file)
@@ -7,6 +7,7 @@
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <syscon.h>
 #include <asm/io.h>
@@ -15,7 +16,9 @@
 #include <asm/arch-rockchip/hardware.h>
 #include <dm/lists.h>
 #include <dt-bindings/clock/rk3036-cru.h>
+#include <linux/delay.h>
 #include <linux/log2.h>
+#include <linux/stringify.h>
 
 enum {
        VCO_MAX_HZ      = 2400U * 1000000,
index a6f7902941a717d9065b09101fba30d8395bf0ee..61f823e254ebd838b510148a4517720ee07e5b2e 100644 (file)
@@ -7,6 +7,7 @@
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <syscon.h>
 #include <asm/io.h>
@@ -16,6 +17,7 @@
 #include <bitfield.h>
 #include <dm/lists.h>
 #include <dt-bindings/clock/rk3128-cru.h>
+#include <linux/delay.h>
 #include <linux/log2.h>
 
 enum {
index 2b82a40d2819fbe79918fcd9e0daac76b3174dcb..11e3bd33cbeadadeb4de22079b191814a0c74df0 100644 (file)
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <dt-structs.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <mapmem.h>
 #include <syscon.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
 #include <dm/uclass-internal.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/log2.h>
+#include <linux/stringify.h>
 
 enum rk3188_clk_type {
        RK3188_CRU,
index ef33adbf2941308296130b1d49e9d0a18e3c4ac9..054b2fd349b3cd72181da265bfece8d76913d6c3 100644 (file)
@@ -7,6 +7,7 @@
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <syscon.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/hardware.h>
 #include <dm/lists.h>
 #include <dt-bindings/clock/rk3228-cru.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/log2.h>
+#include <linux/stringify.h>
 
 enum {
        VCO_MAX_HZ      = 3200U * 1000000,
index 81cdb8ee9c7610f36f846b1fe356a3818c625782..a1dd642eefe23b8cd5489321154bd98ee6ef8668 100644 (file)
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <dt-structs.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <mapmem.h>
 #include <syscon.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
 #include <dm/uclass-internal.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/log2.h>
+#include <linux/stringify.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index c0f1285e4c707b529e7bfede18ffc41202f0c6a7..d3633b69795fa28cb1acac03c26da0af94448ea0 100644 (file)
@@ -8,6 +8,7 @@
 #include <dm.h>
 #include <div64.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <syscon.h>
 #include <asm/io.h>
@@ -16,6 +17,7 @@
 #include <asm/arch-rockchip/hardware.h>
 #include <dm/lists.h>
 #include <dt-bindings/clock/rk3308-cru.h>
+#include <linux/bitops.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 8e867c58dfec93a98d47fc9cff773edd1c49a7c7..02d3b08efa81d70777a97aa5a395ed056c2e1061 100644 (file)
@@ -8,6 +8,7 @@
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <syscon.h>
 #include <asm/arch-rockchip/clock.h>
@@ -17,6 +18,8 @@
 #include <asm/io.h>
 #include <dm/lists.h>
 #include <dt-bindings/clock/rk3328-cru.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 struct pll_div {
        u32 refdiv;
index 2cce1b967d175c4bb31534b055f918e44c8cf5cc..d1804c6e1682d949dac0dffcef87433510722850 100644 (file)
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <dt-structs.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <mapmem.h>
 #include <syscon.h>
@@ -20,6 +21,8 @@
 #include <asm/io.h>
 #include <dm/lists.h>
 #include <dt-bindings/clock/rk3368-cru.h>
+#include <linux/delay.h>
+#include <linux/stringify.h>
 
 #if CONFIG_IS_ENABLED(OF_PLATDATA)
 struct rk3368_clk_plat {
index d822acace14be9ba955c96f1c484e14ee0e8137f..6a78837619eff53190a158ae87f0c6bce51a4bef 100644 (file)
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <dt-structs.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <mapmem.h>
 #include <syscon.h>
@@ -19,6 +20,8 @@
 #include <asm/arch-rockchip/hardware.h>
 #include <dm/lists.h>
 #include <dt-bindings/clock/rk3399-cru.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 #if CONFIG_IS_ENABLED(OF_PLATDATA)
 struct rk3399_clk_plat {
@@ -1071,12 +1074,166 @@ static int __maybe_unused rk3399_clk_set_parent(struct clk *clk,
        return -ENOENT;
 }
 
+static int rk3399_clk_enable(struct clk *clk)
+{
+       struct rk3399_clk_priv *priv = dev_get_priv(clk->dev);
+
+       switch (clk->id) {
+       case SCLK_MAC:
+               rk_clrreg(&priv->cru->clkgate_con[5], BIT(5));
+               break;
+       case SCLK_MAC_RX:
+               rk_clrreg(&priv->cru->clkgate_con[5], BIT(8));
+               break;
+       case SCLK_MAC_TX:
+               rk_clrreg(&priv->cru->clkgate_con[5], BIT(9));
+               break;
+       case SCLK_MACREF:
+               rk_clrreg(&priv->cru->clkgate_con[5], BIT(7));
+               break;
+       case SCLK_MACREF_OUT:
+               rk_clrreg(&priv->cru->clkgate_con[5], BIT(6));
+               break;
+       case ACLK_GMAC:
+               rk_clrreg(&priv->cru->clkgate_con[32], BIT(0));
+               break;
+       case PCLK_GMAC:
+               rk_clrreg(&priv->cru->clkgate_con[32], BIT(2));
+               break;
+       case SCLK_USB3OTG0_REF:
+               rk_clrreg(&priv->cru->clkgate_con[12], BIT(1));
+               break;
+       case SCLK_USB3OTG1_REF:
+               rk_clrreg(&priv->cru->clkgate_con[12], BIT(2));
+               break;
+       case SCLK_USB3OTG0_SUSPEND:
+               rk_clrreg(&priv->cru->clkgate_con[12], BIT(3));
+               break;
+       case SCLK_USB3OTG1_SUSPEND:
+               rk_clrreg(&priv->cru->clkgate_con[12], BIT(4));
+               break;
+       case ACLK_USB3OTG0:
+               rk_clrreg(&priv->cru->clkgate_con[30], BIT(1));
+               break;
+       case ACLK_USB3OTG1:
+               rk_clrreg(&priv->cru->clkgate_con[30], BIT(2));
+               break;
+       case ACLK_USB3_RKSOC_AXI_PERF:
+               rk_clrreg(&priv->cru->clkgate_con[30], BIT(3));
+               break;
+       case ACLK_USB3:
+               rk_clrreg(&priv->cru->clkgate_con[12], BIT(0));
+               break;
+       case ACLK_USB3_GRF:
+               rk_clrreg(&priv->cru->clkgate_con[30], BIT(4));
+               break;
+       case HCLK_HOST0:
+               rk_clrreg(&priv->cru->clksel_con[20], BIT(5));
+               break;
+       case HCLK_HOST0_ARB:
+               rk_clrreg(&priv->cru->clksel_con[20], BIT(6));
+               break;
+       case HCLK_HOST1:
+               rk_clrreg(&priv->cru->clksel_con[20], BIT(7));
+               break;
+       case HCLK_HOST1_ARB:
+               rk_clrreg(&priv->cru->clksel_con[20], BIT(8));
+               break;
+       case SCLK_PCIEPHY_REF:
+               rk_clrreg(&priv->cru->clksel_con[18], BIT(10));
+               break;
+       default:
+               debug("%s: unsupported clk %ld\n", __func__, clk->id);
+               return -ENOENT;
+       }
+
+       return 0;
+}
+
+static int rk3399_clk_disable(struct clk *clk)
+{
+       struct rk3399_clk_priv *priv = dev_get_priv(clk->dev);
+
+       switch (clk->id) {
+       case SCLK_MAC:
+               rk_setreg(&priv->cru->clkgate_con[5], BIT(5));
+               break;
+       case SCLK_MAC_RX:
+               rk_setreg(&priv->cru->clkgate_con[5], BIT(8));
+               break;
+       case SCLK_MAC_TX:
+               rk_setreg(&priv->cru->clkgate_con[5], BIT(9));
+               break;
+       case SCLK_MACREF:
+               rk_setreg(&priv->cru->clkgate_con[5], BIT(7));
+               break;
+       case SCLK_MACREF_OUT:
+               rk_setreg(&priv->cru->clkgate_con[5], BIT(6));
+               break;
+       case ACLK_GMAC:
+               rk_setreg(&priv->cru->clkgate_con[32], BIT(0));
+               break;
+       case PCLK_GMAC:
+               rk_setreg(&priv->cru->clkgate_con[32], BIT(2));
+               break;
+       case SCLK_USB3OTG0_REF:
+               rk_setreg(&priv->cru->clkgate_con[12], BIT(1));
+               break;
+       case SCLK_USB3OTG1_REF:
+               rk_setreg(&priv->cru->clkgate_con[12], BIT(2));
+               break;
+       case SCLK_USB3OTG0_SUSPEND:
+               rk_setreg(&priv->cru->clkgate_con[12], BIT(3));
+               break;
+       case SCLK_USB3OTG1_SUSPEND:
+               rk_setreg(&priv->cru->clkgate_con[12], BIT(4));
+               break;
+       case ACLK_USB3OTG0:
+               rk_setreg(&priv->cru->clkgate_con[30], BIT(1));
+               break;
+       case ACLK_USB3OTG1:
+               rk_setreg(&priv->cru->clkgate_con[30], BIT(2));
+               break;
+       case ACLK_USB3_RKSOC_AXI_PERF:
+               rk_setreg(&priv->cru->clkgate_con[30], BIT(3));
+               break;
+       case ACLK_USB3:
+               rk_setreg(&priv->cru->clkgate_con[12], BIT(0));
+               break;
+       case ACLK_USB3_GRF:
+               rk_setreg(&priv->cru->clkgate_con[30], BIT(4));
+               break;
+       case HCLK_HOST0:
+               rk_setreg(&priv->cru->clksel_con[20], BIT(5));
+               break;
+       case HCLK_HOST0_ARB:
+               rk_setreg(&priv->cru->clksel_con[20], BIT(6));
+               break;
+       case HCLK_HOST1:
+               rk_setreg(&priv->cru->clksel_con[20], BIT(7));
+               break;
+       case HCLK_HOST1_ARB:
+               rk_setreg(&priv->cru->clksel_con[20], BIT(8));
+               break;
+       case SCLK_PCIEPHY_REF:
+               rk_clrreg(&priv->cru->clksel_con[18], BIT(10));
+               break;
+       default:
+               debug("%s: unsupported clk %ld\n", __func__, clk->id);
+               return -ENOENT;
+       }
+
+       return 0;
+}
+
 static struct clk_ops rk3399_clk_ops = {
        .get_rate = rk3399_clk_get_rate,
        .set_rate = rk3399_clk_set_rate,
 #if CONFIG_IS_ENABLED(OF_CONTROL) && !CONFIG_IS_ENABLED(OF_PLATDATA)
        .set_parent = rk3399_clk_set_parent,
 #endif
+       .enable = rk3399_clk_enable,
+       .disable = rk3399_clk_disable,
 };
 
 #ifdef CONFIG_SPL_BUILD
index da9c48b962ab636e4178b630af779437d02e60cf..aa1d98ca2a29d2d7c98d8b9ad35b89ef6269d520 100644 (file)
@@ -9,6 +9,7 @@
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <syscon.h>
 #include <asm/io.h>
@@ -17,6 +18,8 @@
 #include <asm/arch-rockchip/hardware.h>
 #include <dm/lists.h>
 #include <dt-bindings/clock/rv1108-cru.h>
+#include <linux/delay.h>
+#include <linux/stringify.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 8847178001bdbbdd72d1a37d4d67e8d256cdd911..67e21b6746d6f003c9c5d80d3e92756b502aaac8 100644 (file)
@@ -35,6 +35,7 @@
 #include <div64.h>
 #include <dm.h>
 #include <errno.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 
 #include <linux/math64.h>
index 7a96d1708ea1ede9ce2d0f180d43dd84e0a842d3..67507c5ab1da629356d410bc29db1a63be3f2d8f 100644 (file)
@@ -11,6 +11,7 @@
 #include <asm/arch/ccu.h>
 #include <dt-bindings/clock/sun4i-a10-ccu.h>
 #include <dt-bindings/reset/sun4i-a10-ccu.h>
+#include <linux/bitops.h>
 
 static struct ccu_clk_gate a10_gates[] = {
        [CLK_AHB_OTG]           = GATE(0x060, BIT(0)),
index 33d41d47b0f2c299c8cabe9bc805b42435716f80..d11a4b5f038d118c1bf892f711461e134fbe871c 100644 (file)
@@ -11,6 +11,7 @@
 #include <asm/arch/ccu.h>
 #include <dt-bindings/clock/sun5i-ccu.h>
 #include <dt-bindings/reset/sun5i-ccu.h>
+#include <linux/bitops.h>
 
 static struct ccu_clk_gate a10s_gates[] = {
        [CLK_AHB_OTG]           = GATE(0x060, BIT(0)),
index c16019215e20a7a7075ef766b9a3b34a25f7b10b..4d562bfe427087139abf08ab129de189ced03902 100644 (file)
@@ -11,6 +11,7 @@
 #include <asm/arch/ccu.h>
 #include <dt-bindings/clock/sun8i-a23-a33-ccu.h>
 #include <dt-bindings/reset/sun8i-a23-a33-ccu.h>
+#include <linux/bitops.h>
 
 static struct ccu_clk_gate a23_gates[] = {
        [CLK_BUS_MMC0]          = GATE(0x060, BIT(8)),
index 4ec3c2ae8929c5449e990a6d7c14b9e7355409f1..4a9454eebe761722aa024849fcbfa62aa71e6fbe 100644 (file)
@@ -11,6 +11,7 @@
 #include <asm/arch/ccu.h>
 #include <dt-bindings/clock/sun6i-a31-ccu.h>
 #include <dt-bindings/reset/sun6i-a31-ccu.h>
+#include <linux/bitops.h>
 
 static struct ccu_clk_gate a31_gates[] = {
        [CLK_AHB1_MMC0]         = GATE(0x060, BIT(8)),
index f94e8aa754a528627aca1264d93b70b08c088a57..d96cb1aac1c9d991abb8bce71fb8955177a7d9e1 100644 (file)
@@ -11,6 +11,7 @@
 #include <asm/arch/ccu.h>
 #include <dt-bindings/clock/sun50i-a64-ccu.h>
 #include <dt-bindings/reset/sun50i-a64-ccu.h>
+#include <linux/bitops.h>
 
 static const struct ccu_clk_gate a64_gates[] = {
        [CLK_BUS_MMC0]          = GATE(0x060, BIT(8)),
index fb76aad528be1155b5a957f85343811c12307c72..80d7407037e553449d1c35ff6593c32cde40e483 100644 (file)
@@ -11,6 +11,7 @@
 #include <asm/arch/ccu.h>
 #include <dt-bindings/clock/sun9i-a80-ccu.h>
 #include <dt-bindings/reset/sun9i-a80-ccu.h>
+#include <linux/bitops.h>
 
 static const struct ccu_clk_gate a80_gates[] = {
        [CLK_SPI0]              = GATE(0x430, BIT(31)),
index 2be87a31fd5301f7c6b9e8dd8cabaff3edaa4b56..d6f23ddc77815048c5bc08e30cf180d6c1c3dbb6 100644 (file)
@@ -11,6 +11,7 @@
 #include <asm/arch/ccu.h>
 #include <dt-bindings/clock/sun8i-a83t-ccu.h>
 #include <dt-bindings/reset/sun8i-a83t-ccu.h>
+#include <linux/bitops.h>
 
 static struct ccu_clk_gate a83t_gates[] = {
        [CLK_BUS_MMC0]          = GATE(0x060, BIT(8)),
index 6111a13f1c176a53519a1c0ffb5fbe3d74e45c0b..7e844f4ff1688f67b36c02ebf2a7274c9e3f89ed 100644 (file)
@@ -11,6 +11,7 @@
 #include <asm/arch/ccu.h>
 #include <dt-bindings/clock/sun8i-h3-ccu.h>
 #include <dt-bindings/reset/sun8i-h3-ccu.h>
+#include <linux/bitops.h>
 
 static struct ccu_clk_gate h3_gates[] = {
        [CLK_BUS_MMC0]          = GATE(0x060, BIT(8)),
index 105c15d869474c60c168d2ac159a99bae906721c..a1cb8952d39c02768b5511372b214e22fe2a9f3a 100644 (file)
@@ -11,6 +11,7 @@
 #include <asm/arch/ccu.h>
 #include <dt-bindings/clock/sun50i-h6-ccu.h>
 #include <dt-bindings/reset/sun50i-h6-ccu.h>
+#include <linux/bitops.h>
 
 static struct ccu_clk_gate h6_gates[] = {
        [CLK_BUS_MMC0]          = GATE(0x84c, BIT(0)),
index 44abc4f536d2c651fa3c34de20eb95cbff0a5ad0..ac360b2bebd59605b896201d1388e1f419562fee 100644 (file)
@@ -11,6 +11,7 @@
 #include <asm/arch/ccu.h>
 #include <dt-bindings/clock/sun8i-r40-ccu.h>
 #include <dt-bindings/reset/sun8i-r40-ccu.h>
+#include <linux/bitops.h>
 
 static struct ccu_clk_gate r40_gates[] = {
        [CLK_BUS_MMC0]          = GATE(0x060, BIT(8)),
index 6d4aeb5315d47dd83aa79077a612c18d391ba07e..41934cd826e3d38ccc02bb531d0ab29c1d42acca 100644 (file)
@@ -8,9 +8,11 @@
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <reset.h>
 #include <asm/io.h>
 #include <asm/arch/ccu.h>
+#include <linux/bitops.h>
 #include <linux/log2.h>
 
 static const struct ccu_clk_gate *priv_to_gate(struct ccu_priv *priv,
index 789ac72026ba032394a3c08c447aa065ba10d642..b79446cc4fdf17dde96dcd8064ea8c504f22ef3e 100644 (file)
@@ -11,6 +11,7 @@
 #include <asm/arch/ccu.h>
 #include <dt-bindings/clock/sun8i-v3s-ccu.h>
 #include <dt-bindings/reset/sun8i-v3s-ccu.h>
+#include <linux/bitops.h>
 
 static struct ccu_clk_gate v3s_gates[] = {
        [CLK_BUS_MMC0]          = GATE(0x060, BIT(8)),
index 6083f14e751480d2125f14091fb027cbc4f306d2..09a7cf470ca2654e237a3e108cddda628446b525 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/arch/clock.h>
 #include <asm/arch-tegra/clk_rst.h>
index 612fb1b972f250b9ec76915c0424481ebe38fa27..5a98a3f3f0e6c5e769b4375a88e7219cf62b3c92 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <log.h>
 #include <misc.h>
 #include <asm/arch-tegra/bpmp_abi.h>
 
index 9f24050992566728309a7128dad1032454bd680a..c9ec523080d7bea66c34f72a113895227aaa5e60 100644 (file)
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
+#include <linux/bug.h>
 #include <linux/io.h>
 #include <linux/sizes.h>
 
index e09905cf2a066bcc0d49868b9748b6c664d8246e..8ae61575dd3e9d5a4565ccf00d6a20f740fb4022 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/acpi.h>
 #include <dm/device-internal.h>
 #include <dm/root.h>
index 0157bb1fe021225165f8f38bf1fe003b8ba81c5d..a7408d9c76c61aa451833145d23644888633a9aa 100644 (file)
 
 #include <common.h>
 #include <cpu_func.h>
+#include <log.h>
 #include <asm/io.h>
 #include <clk.h>
 #include <fdtdec.h>
 #include <fdt_support.h>
 #include <malloc.h>
+#include <asm/cache.h>
 #include <dm/device.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
index 457e1309c54e43fac2737a92b4c98ece84b03c75..88244698b0cbe7e2a9cb5e86f77ef461a1b96e35 100644 (file)
@@ -10,6 +10,7 @@
 #define LOG_CATEGORY LOGC_DEVRES
 
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 #include <linux/compat.h>
 #include <linux/kernel.h>
index 33811e62f7a094efd935040e675ef06bd3b085f3..dfcb868f6504709c9b2eb21c54fde59b44797c84 100644 (file)
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <dm.h>
 #include <fdt_support.h>
+#include <log.h>
 #include <asm/io.h>
 #include <dm/device-internal.h>
 
index c7db14ed56e36ca095d210657ec8e12f71622802..5beba9181cc3d7ca8fcd33b73a8cda9a7bf9e1b2 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <errno.h>
+#include <log.h>
 #include <dm/device.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
index ea3ee8bd63f7b040e267848aa2fbf5994433f55b..922e78f99b8275b812c395ef9968dfb534279baa 100644 (file)
@@ -20,7 +20,9 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
+#include <linux/bug.h>
 #include <linux/libfdt.h>
 #include <dm/of_access.h>
 #include <linux/ctype.h>
index 4e256d992600dfc1f783dbd50746f94b18090b5c..ca34d84922b58cef201e9fb17102a5b93ffd6f88 100644 (file)
@@ -7,6 +7,8 @@
  */
 
 #include <common.h>
+#include <log.h>
+#include <linux/bug.h>
 #include <linux/libfdt.h>
 #include <dm/of_access.h>
 #include <dm/of_addr.h>
index f1f393c3598c7e3579648bda3d949b6e031e1ce5..6420e6ec448091ebe62d679539e68776a88c9373 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <linux/libfdt.h>
 #include <dm/of_access.h>
 #include <dm/of_extra.h>
index e3c42dae5c6e221df7ea96102e87e01e07f74963..c37afa1fe6fc8967fbbb3cab8f45cde83d24b30f 100644 (file)
@@ -8,6 +8,7 @@
 #include <dm.h>
 #include <fdtdec.h>
 #include <fdt_support.h>
+#include <log.h>
 #include <malloc.h>
 #include <linux/libfdt.h>
 #include <dm/of_access.h>
index a974744a613b7d1a416b3e26d2d865def7801d43..4a214eff7cc9a836f8218df2c6c2228dd8e173b9 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <linux/libfdt.h>
 #include <malloc.h>
 #include <mapmem.h>
index 14df16c280d9876dfb51a5966eb7870835542c28..7d257ea887dd482b803c94836fa6375f84d228a7 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <malloc.h>
 #include <linux/libfdt.h>
 #include <dm/device.h>
index 15f0e42a85b45629fda20ecef539cd5e1f7ef5ec..b5cd763b6bb974130f23c19b6c38c4deafaf57d6 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <syscon.h>
 #include <dm.h>
 #include <errno.h>
index 684930293646c0de297114fac52e4d4acf902047..2ab419cfe4da0171aee21d14d69a79d21d5d0f38 100644 (file)
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <dm/device.h>
 #include <dm/device-internal.h>
index fc047473f5bc9eb163813ee5d90ee894e3394588..2649c5c6e91c7abe8c86071264ba595b88a8cac9 100644 (file)
@@ -11,7 +11,9 @@
 #include <cpu.h>
 #include <dm.h>
 #include <errno.h>
+#include <init.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 #define REV_CHIPID_SHIFT               16
 #define REV_CHIPID_MASK                        (0xffff << REV_CHIPID_SHIFT)
index 8352e2eb0bc5382663a60b633c137d52a6ac1969..7418c26ed8bc8935823bb940e22db6eefdcde614 100644 (file)
@@ -8,6 +8,7 @@
 #include <cpu.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <dm/lists.h>
 #include <dm/root.h>
 #include <linux/err.h>
index 95c14c98d861172da766f3a2939df274eb71a95e..6345cd0815a70eb6abcede0332361d3f5557d9b7 100644 (file)
@@ -7,10 +7,12 @@
 #include <cpu.h>
 #include <dm.h>
 #include <thermal.h>
+#include <asm/system.h>
 #include <asm/arch/sci/sci.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch-imx/cpu.h>
 #include <asm/armv8/cpu.h>
+#include <linux/bitops.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -18,6 +20,7 @@ struct cpu_imx_platdata {
        const char *name;
        const char *rev;
        const char *type;
+       u32 cpu_rsrc;
        u32 cpurev;
        u32 freq_mhz;
        u32 mpidr;
@@ -50,16 +53,23 @@ const char *get_imx8_rev(u32 rev)
        }
 }
 
-const char *get_core_name(struct udevice *dev)
+static void set_core_data(struct udevice *dev)
 {
-       if (!device_is_compatible(dev, "arm,cortex-a35"))
-               return "A35";
-       else if (!device_is_compatible(dev, "arm,cortex-a53"))
-               return "A53";
-       else if (!device_is_compatible(dev, "arm,cortex-a72"))
-               return "A72";
-       else
-               return "?";
+       struct cpu_imx_platdata *plat = dev_get_platdata(dev);
+
+       if (device_is_compatible(dev, "arm,cortex-a35")) {
+               plat->cpu_rsrc = SC_R_A35;
+               plat->name = "A35";
+       } else if (device_is_compatible(dev, "arm,cortex-a53")) {
+               plat->cpu_rsrc = SC_R_A53;
+               plat->name = "A53";
+       } else if (device_is_compatible(dev, "arm,cortex-a72")) {
+               plat->cpu_rsrc = SC_R_A72;
+               plat->name = "A72";
+       } else {
+               plat->cpu_rsrc = SC_R_A53;
+               plat->name = "?";
+       }
 }
 
 #if IS_ENABLED(CONFIG_IMX_SCU_THERMAL)
@@ -67,12 +77,12 @@ static int cpu_imx_get_temp(struct cpu_imx_platdata *plat)
 {
        struct udevice *thermal_dev;
        int cpu_tmp, ret;
+       int idx = 1; /* use "cpu-thermal0" device */
 
-       if (!strcmp(plat->name, "A72"))
-               ret = uclass_get_device(UCLASS_THERMAL, 1, &thermal_dev);
-       else
-               ret = uclass_get_device(UCLASS_THERMAL, 0, &thermal_dev);
+       if (plat->cpu_rsrc == SC_R_A72)
+               idx = 2; /* use "cpu-thermal1" device */
 
+       ret = uclass_get_device(UCLASS_THERMAL, idx, &thermal_dev);
        if (!ret) {
                ret = thermal_get_temp(thermal_dev, &cpu_tmp);
                if (ret)
@@ -180,19 +190,11 @@ static const struct udevice_id cpu_imx8_ids[] = {
 
 static ulong imx8_get_cpu_rate(struct udevice *dev)
 {
+       struct cpu_imx_platdata *plat = dev_get_platdata(dev);
        ulong rate;
-       int ret, type;
-
-       if (!device_is_compatible(dev, "arm,cortex-a35"))
-               type = SC_R_A35;
-       else if (!device_is_compatible(dev, "arm,cortex-a53"))
-               type = SC_R_A53;
-       else if (!device_is_compatible(dev, "arm,cortex-a72"))
-               type = SC_R_A72;
-       else
-               return 0;
+       int ret;
 
-       ret = sc_pm_get_clock_rate(-1, type, SC_PM_CLK_CPU,
+       ret = sc_pm_get_clock_rate(-1, plat->cpu_rsrc, SC_PM_CLK_CPU,
                                   (sc_pm_clock_rate_t *)&rate);
        if (ret) {
                printf("Could not read CPU frequency: %d\n", ret);
@@ -207,9 +209,9 @@ static int imx8_cpu_probe(struct udevice *dev)
        struct cpu_imx_platdata *plat = dev_get_platdata(dev);
        u32 cpurev;
 
+       set_core_data(dev);
        cpurev = get_cpu_rev();
        plat->cpurev = cpurev;
-       plat->name = get_core_name(dev);
        plat->rev = get_imx8_rev(cpurev & 0xFFF);
        plat->type = get_imx8_type((cpurev & 0xFF000) >> 12);
        plat->freq_mhz = imx8_get_cpu_rate(dev) / 1000000;
index 1e584577421181c90361242500952b4f2ec3d310..f8a84bae9d98553d9bb345b18f6a8236b9804272 100644 (file)
@@ -9,7 +9,9 @@
 #include <clk.h>
 #include <cpu.h>
 #include <dm.h>
+#include <log.h>
 #include <vsprintf.h>
+#include <linux/bitops.h>
 
 #include "mpc83xx_cpu.h"
 
index 28ad0aa30fdf0d20052f031a2313f5665a4d9c02..cb04f5638db16b69c9625617456fc7684fe285ab 100644 (file)
@@ -7,8 +7,10 @@
 #include <cpu.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
+#include <linux/bitops.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 34611056ecf1850f08a28a674f8ab2c73c7d3f53..261d3efe84e5827a81d0cdbd20108706b32d892f 100644 (file)
@@ -5,6 +5,8 @@
  */
 #include <common.h>
 #include "ace_sha.h"
+#include <log.h>
+#include <rand.h>
 
 #ifdef CONFIG_SHA_HW_ACCEL
 #include <u-boot/sha256.h>
index 731c7484431603a4d6d00437e04b5944c80f1f9e..c76574919c74f60784edd2036b5c217f11fbc8b3 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 #include "desc.h"
 #include "jr.h"
index 0531b1b735fe0cedaba5aa104a0740b6ec41ed27..d6bd861251e0464e834ec5344d139b5e288ea713 100644 (file)
@@ -6,9 +6,11 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <log.h>
 #include <malloc.h>
 #include <memalign.h>
 #include <fsl_sec.h>
+#include <asm/cache.h>
 #include <linux/errno.h>
 #include "jobdesc.h"
 #include "desc.h"
index 74e38ca7592de2c75e96ba7714034aeef730ba6f..953deec9ff729a155f10ca39f38061319359f2c1 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <log.h>
 #include <malloc.h>
 #include <memalign.h>
 #include "jobdesc.h"
@@ -13,6 +14,7 @@
 #include "jr.h"
 #include "fsl_hash.h"
 #include <hw_sha.h>
+#include <asm/cache.h>
 #include <linux/errno.h>
 
 #define CRYPTO_MAX_ALG_NAME    80
index 0cb3c6b5f2f4297c4d491fd583bf7e4f1d93870a..ed2a54f6ec20f3ba75141f2f156b8999de765b03 100644 (file)
@@ -7,6 +7,7 @@
 #include <config.h>
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <asm/types.h>
 #include <malloc.h>
 #include "jobdesc.h"
index 637ef29f150df0d11dc548ba9ea2bd7dd2860ac5..2f35e0c90b84f3b3dec7e2b219aa05aba87aac8c 100644 (file)
@@ -13,6 +13,7 @@
 #include "desc_constr.h"
 #include "jobdesc.h"
 #include "rsa_caam.h"
+#include <asm/cache.h>
 
 #if defined(CONFIG_MX6) || defined(CONFIG_MX7)
 /*!
index aa84f2cee0aba7f6530469f190649c32b617fce0..e2d9216cfc7878451ec17f5513d54584df5b45ac 100644 (file)
@@ -7,13 +7,16 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <log.h>
 #include <malloc.h>
 #include "fsl_sec.h"
 #include "jr.h"
 #include "jobdesc.h"
 #include "desc_constr.h"
 #include <time.h>
+#include <asm/cache.h>
 #ifdef CONFIG_FSL_CORENET
+#include <asm/cache.h>
 #include <asm/fsl_pamu.h>
 #endif
 
index c9b571a461d0b644f61a9215c8b8d7db4b4d7a87..4ce85b322446ba9cef2c45395ea395e7421c2b36 100644 (file)
@@ -7,6 +7,7 @@
 #include <config.h>
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <u-boot/rsa-mod-exp.h>
 
 static int mod_exp_sw(struct udevice *dev, const uint8_t *sig, uint32_t sig_len,
@@ -31,6 +32,7 @@ U_BOOT_DRIVER(mod_exp_sw) = {
        .name   = "mod_exp_sw",
        .id     = UCLASS_MOD_EXP,
        .ops    = &mod_exp_ops_sw,
+       .flags  = DM_FLAG_PRE_RELOC,
 };
 
 U_BOOT_DEVICE(mod_exp_sw) = {
index 626fb724d4e557f99218f1a41ee48e64695e8625..a0f25d1179e796fc7c908887465839f5a810763f 100644 (file)
@@ -10,6 +10,7 @@
 #include <div64.h>
 #include <fdtdec.h>
 #include <hang.h>
+#include <log.h>
 #include <ram.h>
 #include <reset.h>
 #include "sdram_soc64.h"
index 2fd50b7ae550610fd1707331ae0541a78add2e22..3c58f59f3ab69b06e6ae49e9f5ea5c2c91ae3059 100644 (file)
@@ -7,14 +7,19 @@
 #include <cpu_func.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <init.h>
+#include <log.h>
 #include <malloc.h>
 #include <wait_bit.h>
 #include <watchdog.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/arch/fpga_manager.h>
 #include <asm/arch/misc.h>
 #include <asm/arch/reset_manager.h>
 #include <asm/arch/sdram.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/kernel.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index 314c7aea00ef3a1774e0c02a104b50fba3c482bc..1360bd0a3b82a7faa9c614843a726b0c30c424b9 100644 (file)
@@ -7,6 +7,7 @@
 #include <errno.h>
 #include <div64.h>
 #include <init.h>
+#include <log.h>
 #include <ram.h>
 #include <reset.h>
 #include <watchdog.h>
@@ -14,6 +15,7 @@
 #include <asm/arch/reset_manager.h>
 #include <asm/arch/sdram.h>
 #include <asm/arch/system_manager.h>
+#include <asm/bitops.h>
 #include <asm/io.h>
 #include <dm/device_compat.h>
 
index 0b36d6c027dd27d3509dbb975cf80a9f3d064bdc..91f76e03c2db68a339c676a1de8db253c7f0236b 100644 (file)
@@ -12,6 +12,7 @@
 #include <fdtdec.h>
 #include <hang.h>
 #include <init.h>
+#include <log.h>
 #include <ram.h>
 #include <reset.h>
 #include "sdram_s10.h"
index 1f7ead0c674798ca4eb82d6e636f42a5ab3f267c..491f689c44df52d0ffdc4d13648f5415d4b0ac7d 100644 (file)
@@ -11,6 +11,8 @@
 #include <div64.h>
 #include <fdtdec.h>
 #include <hang.h>
+#include <init.h>
+#include <log.h>
 #include <ram.h>
 #include <reset.h>
 #include "sdram_soc64.h"
@@ -18,6 +20,7 @@
 #include <asm/arch/firewall.h>
 #include <asm/arch/system_manager.h>
 #include <asm/arch/reset_manager.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <dm/device_compat.h>
 #include <linux/sizes.h>
index 35bda9b34c80e9df981a825ec9b91d974c493143..2dbde49a9c3bd2cd11d475675878af53a41aa3ff 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/sdram.h>
 #include <errno.h>
index e9eaa1e0afd806045d9a8bc80db9d41c077f8b01..629ba6784e0d56686123b4d4f2d8f0632a516d09 100644 (file)
@@ -6,12 +6,14 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <fsl_ddr_sdram.h>
 #include <asm/processor.h>
 #include <fsl_immap.h>
 #include <fsl_ddr.h>
 #include <asm/arch/clock.h>
+#include <linux/delay.h>
 
 #if (CONFIG_CHIP_SELECTS_PER_CTRL > 4)
 #error Invalid setting for CONFIG_CHIP_SELECTS_PER_CTRL
index 98ccbb70de730cb64e33c3961ee52683640f981b..2d3fb1953b85ab07f35f80e9c26b66219163209e 100644 (file)
@@ -15,6 +15,8 @@
 #include <fsl_errata.h>
 #include <fsl_ddr.h>
 #include <fsl_immap.h>
+#include <log.h>
+#include <asm/bitops.h>
 #include <asm/io.h>
 #if defined(CONFIG_FSL_LSCH2) || defined(CONFIG_FSL_LSCH3) || \
        defined(CONFIG_ARM)
index 50fd998425a823c73606c3d2697d56c4d26f68db..e5481eaa0ddd78d376d1f8d5e39b6a929d71b862 100644 (file)
@@ -5,6 +5,8 @@
 
 #include <common.h>
 #include <fsl_ddr_sdram.h>
+#include <log.h>
+#include <asm/bitops.h>
 
 #include <fsl_ddr.h>
 
index ad91ba63a83fe92e5b5437e0be249f8e57a5f10d..3b78118a9d823517c35388403ac3099b6071a5d6 100644 (file)
@@ -5,6 +5,8 @@
 
 #include <common.h>
 #include <fsl_ddr_sdram.h>
+#include <log.h>
+#include <asm/bitops.h>
 
 #include <fsl_ddr.h>
 /*
index 47b4d7663f8b33ddaf2c3ee991fe62864e91bb9e..8464438c544fed2ff6ebb569238a34c563dc1e37 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <fsl_ddr_sdram.h>
+#include <log.h>
 
 #include <fsl_ddr.h>
 
index 2aa53d116f30f66a18404834b5d6b39072d4605e..e2bdc12ef2c44c9af08d38064c5311dafad00144 100644 (file)
@@ -12,6 +12,8 @@
 
 #include <common.h>
 #include <fsl_ddr_sdram.h>
+#include <log.h>
+#include <linux/bug.h>
 
 #include <fsl_ddr.h>
 
index 17a4a8282b7312565ec19af1b5403f23d5d4b515..eab5b82b23940c6305699e9eebc41280c9b2779a 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <env.h>
+#include <log.h>
 #include <asm/io.h>
 #include <fsl_ddr_sdram.h>
 #include <asm/processor.h>
@@ -15,6 +16,7 @@
        defined(CONFIG_ARM)
 #include <asm/arch/clock.h>
 #endif
+#include <linux/delay.h>
 
 #define CTLR_INTLV_MASK        0x20000000
 
index 08285120ca525d7bc90d8b41f84819a4d39db363..cbd625b7eeac8815dafa75e8b26c5190f95b3d2a 100644 (file)
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <fsl_mmdc.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 static void set_wait_for_bits_clear(void *ptr, u32 value, u32 bits)
 {
index 8e171e67fec21890a047fa8e32cb1bf1a6a29d49..2f76beb2dbe69918a32a09e830a49c62d53aa446 100644 (file)
 
 #include <common.h>
 #include <cli.h>
+#include <command.h>
 #include <env.h>
+#include <log.h>
+#include <asm/bitops.h>
 #include <linux/ctype.h>
 #include <asm/types.h>
 #include <asm/io.h>
index df5bdb6e08d4cf69f9497a86515edf68b4fe231d..d299d763db1a5e7808d648bdeea0dacf021bdce8 100644 (file)
@@ -6,6 +6,8 @@
 
 #include <common.h>
 #include <fsl_ddr_sdram.h>
+#include <log.h>
+#include <asm/bitops.h>
 
 #include <fsl_ddr.h>
 
index 0aa6aedae7e16c6bf145c12bcc55b4defd77a5eb..84139b85c33d374dbfeccd6189bd75fe5ce76e86 100644 (file)
@@ -14,6 +14,9 @@
 #include <i2c.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr.h>
+#include <init.h>
+#include <log.h>
+#include <asm/bitops.h>
 
 /*
  * CONFIG_SYS_FSL_DDR_SDRAM_BASE_PHY is the physical address from the view
index 1ab15c98f199df73b09257e3b732f579c0b62917..572f3703d51acc7bb371611f7ccabce755a5f1ec 100644 (file)
@@ -4,8 +4,10 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <fsl_ddr_sdram.h>
+#include <linux/delay.h>
 
 #if (CONFIG_CHIP_SELECTS_PER_CTRL > 4)
 #error Invalid setting for CONFIG_CHIP_SELECTS_PER_CTRL
index 54c10a860aaea6359d906d6d56c70aa45131dcf1..d7b8064e5f1046f59236268f057f805842bb9efd 100644 (file)
@@ -7,6 +7,7 @@
 #include <asm/io.h>
 #include <asm/processor.h>
 #include <fsl_ddr_sdram.h>
+#include <linux/delay.h>
 
 #if (CONFIG_CHIP_SELECTS_PER_CTRL > 4)
 #error Invalid setting for CONFIG_CHIP_SELECTS_PER_CTRL
index a9b085db8c2e3e237755e6c6b661eaf4424af319..ab8d2deaf9f490d1e53a7ea25d454a7e94815fa9 100644 (file)
@@ -4,9 +4,11 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <fsl_ddr_sdram.h>
 #include <asm/processor.h>
+#include <linux/delay.h>
 
 #if (CONFIG_CHIP_SELECTS_PER_CTRL > 4)
 #error Invalid setting for CONFIG_CHIP_SELECTS_PER_CTRL
index 934b72b08c56a8095a9d02276b43c4f30a501290..43ed1ba432dec52221d6156ff345a955781076ef 100644 (file)
@@ -4,8 +4,10 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <fsl_ddr_sdram.h>
+#include <linux/delay.h>
 
 #if (CONFIG_CHIP_SELECTS_PER_CTRL > 4)
 #error Invalid setting for CONFIG_CHIP_SELECTS_PER_CTRL
index b9179315f2522ac81fe93fa7d5ba4b6a5e11afa8..c000a45f8ea83e18cd053cb116eed652a7157455 100644 (file)
@@ -8,6 +8,7 @@
 #include <env.h>
 #include <hwconfig.h>
 #include <fsl_ddr_sdram.h>
+#include <log.h>
 
 #include <fsl_ddr.h>
 #if defined(CONFIG_FSL_LSCH2) || defined(CONFIG_FSL_LSCH3) || \
index b27079670d049930b4065b15c60b6460e6443cee..ac4f8d2732d770334e250aa86dc5d866ec80efed 100644 (file)
@@ -8,9 +8,11 @@
 #include <asm/fsl_law.h>
 #endif
 #include <div64.h>
+#include <linux/delay.h>
 
 #include <fsl_ddr.h>
 #include <fsl_immap.h>
+#include <log.h>
 #include <asm/io.h>
 #if defined(CONFIG_FSL_LSCH2) || defined(CONFIG_FSL_LSCH3) || \
        defined(CONFIG_ARM)
index af8c1427d2edd02b3ccf5728a89247a01e5fd550..bbddee6ca896dabc89fb1240aad4ceba4ec06aea 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <errno.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/ddr.h>
 #include <asm/arch/clock.h>
index 306af82504feec0ee310711e9a2af858236ca1ba..f2a997b50a60a63b4f11fea72b35d285a4dd804b 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <linux/kernel.h>
 #include <asm/arch/ddr.h>
 #include <asm/arch/lpddr4_define.h>
index 9ac7ca923c7b2f3201097e811decbf31a0354dd1..d5eef5357399f9eb5dcf6e21e0315288f77185f3 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <errno.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/ddr.h>
 #include <asm/arch/clock.h>
index b3e63834ca8b1921e4cf8f28b806b1e442a85908..5ebf54f5f4afbe2688be473554bbce85a4f30b81 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <spl.h>
 #include <asm/io.h>
 #include <errno.h>
index f5fc964d6f87c997fcedbdf0a68da79f766cbda7..22e0cc4d9176068cbda2667964c5e407c71cb75c 100644 (file)
@@ -6,6 +6,7 @@
 #include "ddr3_init.h"
 #include "mv_ddr_training_db.h"
 #include "mv_ddr_regs.h"
+#include <log.h>
 
 u8 is_reg_dump = 0;
 u8 debug_pbs = DEBUG_LEVEL_ERROR;
index 9718f18c30247703b9067e4a682bc6367c857795..34cc17091036d1494a993d83f7870046ba1360cf 100644 (file)
@@ -7,6 +7,8 @@
 #include "mv_ddr_common.h"
 #include "mv_ddr_training_db.h"
 #include "mv_ddr_regs.h"
+#include <log.h>
+#include <linux/delay.h>
 
 #define GET_CS_FROM_MASK(mask) (cs_mask2_num[mask])
 #define CS_CBE_VALUE(cs_num)   (cs_cbe_reg[cs_num])
index 1eababeebd1029f068905e8838d47788ebb97b45..979f3530b791d240a608827cc337fadb6ef24b98 100644 (file)
@@ -7,6 +7,7 @@
 #include "mv_ddr_regs.h"
 #include "ddr_training_ip_db.h"
 #include <image.h>
+#include <linux/delay.h>
 
 #define PATTERN_1      0x55555555
 #define PATTERN_2      0xaaaaaaaa
index 7f7df6794a959554b70491f5a9df020355960333..dadb06b31814d7702987fd2f01889cb2762a52ac 100644 (file)
@@ -7,6 +7,7 @@
 #include "mv_ddr_training_db.h"
 #include "ddr_training_ip_db.h"
 #include "mv_ddr_regs.h"
+#include <linux/delay.h>
 
 #define WL_ITERATION_NUM       10
 
index cc7942d0ba33f047b687fabd0fbb61e4b08b5406..72f0dfbbbb1d8f8effc46a3392f895a049705154 100644 (file)
@@ -7,6 +7,7 @@
 #include "mv_ddr_training_db.h"
 #include "mv_ddr_regs.h"
 #include "mv_ddr_sys_env_lib.h"
+#include <linux/delay.h>
 
 #define DDR_INTERFACES_NUM             1
 #define DDR_INTERFACE_OCTETS_NUM       5
index ba899592f88a46a8c7d5af920cd8ee3b2ef46bfc..b58c0fe01e5ac8e20aa814c98cc44860c0c1adcb 100644 (file)
@@ -9,6 +9,7 @@
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
+#include <linux/delay.h>
 
 #include "ddr3_hw_training.h"
 
index 0a64dde88496f2527cb4eaf2cc1ab981570c2d99..0db94212b90f5b343c62bb20bc8c06b8df9ffcf0 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <log.h>
 #include <spl.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
index cc3a77c850a0647c7863a7516ff62374dcc81b30..35d98faf58f3d2a62511ecf83add479d3c10f243 100644 (file)
@@ -5,10 +5,12 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <log.h>
 #include <spl.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
+#include <linux/delay.h>
 
 #include "ddr3_init.h"
 #include "ddr3_hw_training.h"
index 30ad5d4151f9f4fe7d218909b7ca0e710ac4ede8..607f3e12c3aece61f2339c32bc27caa78dd9caa3 100644 (file)
@@ -5,10 +5,12 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <log.h>
 #include <spl.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
+#include <linux/delay.h>
 
 #include "ddr3_init.h"
 
index e44f08d26acbe581b9f307c48b676864048f568e..069a42fbf5ed35a615ffac1beb3a8a5f38770b5a 100644 (file)
@@ -9,6 +9,7 @@
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
+#include <linux/delay.h>
 
 #include "ddr3_hw_training.h"
 
index bf8d67616a611ac1ff93119c56a7ddf722a67d00..30a5c354885744747556b9368b5e781beaeaffaa 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <log.h>
 #include <spl.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
index cd364edabb73e1425c048fdf9bae05dd029c6dc2..d4add4477745b8a0b27be252b32aa35bc4fb71ca 100644 (file)
@@ -5,10 +5,12 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <log.h>
 #include <spl.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
+#include <linux/delay.h>
 
 #include "ddr3_hw_training.h"
 
index 31e65826551aa430c959a1873c18f921ba034a7d..17bfe6a7bf380baaab054066fb95b504a72df91c 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <log.h>
 #include <spl.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
index 98b644680c83e4f1b884674b07c4b702b5c53d5b..8686c998457ab86ead7c67aa659294306f1925b0 100644 (file)
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <malloc.h>
 #include <dm-demo.h>
 #include <asm/io.h>
index 3b8439b836c0b2185a8fbe3716be4e1674d73109..6c36f03254ff94e40c6cf56450ea2c1c5103b92a 100644 (file)
@@ -11,6 +11,7 @@
 #include <dm-demo.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/io.h>
 #include <linux/list.h>
index df50196dfda5e16727724569bcb65d4fee7c57a5..a298c2c43999bd0970ba3e7ac55bbb554a97a890 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <env.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <mmc.h>
 #include <fat.h>
index 0d495a785bc3200e5b5ad4300761abe18a16dc57..691d01c7ebdfcc301fed0cf9e0b0a46d54bac941 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 #include <errno.h>
 #include <div64.h>
@@ -14,6 +15,7 @@
 #include <ext4fs.h>
 #include <fat.h>
 #include <mmc.h>
+#include <part.h>
 
 static unsigned char *dfu_file_buf;
 static u64 dfu_file_buf_len;
@@ -369,7 +371,7 @@ int dfu_fill_entity_mmc(struct dfu_entity *dfu, char *devstr, char *s)
                                        simple_strtoul(s, NULL, 0);
 
        } else if (!strcmp(entity_type, "part")) {
-               disk_partition_t partinfo;
+               struct disk_partition partinfo;
                struct blk_desc *blk_dev = mmc_get_blk_desc(mmc);
                int mmcdev = second_arg;
                int mmcpart = third_arg;
index 58b94348c95ca6c942e955644edc28253ebffbd0..b8d24d203beb097b52bbb97f45a90528691be903 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 #include <errno.h>
 #include <div64.h>
index 0fdbfae43410b28d00775877ef6575b21981cb5d..318e43c179b2d875e9582a9d8cf0a6856a41dd14 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <flash.h>
 #include <malloc.h>
 #include <errno.h>
 #include <div64.h>
index e5b35bfd5f71e982ae3c292fcd24add306a1df89..ffae4bb54f8098293a4069ea0824ca3db64694c1 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 #include <errno.h>
 #include <dfu.h>
index ea8c71f100fb9c4f296ce56b42dac2396f46061e..62605bcde507dba400f7f9afccddef908643e2bc 100644 (file)
@@ -5,6 +5,7 @@
 #include <common.h>
 #include <dfu.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 
 int __weak dfu_write_medium_virt(struct dfu_entity *dfu, u64 offset,
index 69eb040d3247e61779ccfc13e8709f4c42bd5513..da988f6bb6676e8a3fa04db08f2eea92a93c2cf3 100644 (file)
@@ -12,6 +12,7 @@
  */
 
 #include <cpu_func.h>
+#include <asm/cache.h>
 #include <linux/list.h>
 
 #include <common.h>
index d99460f2fb2bc965fb4df4915f47332f42cfaa84..91172d483c79a9150c0d59ffe0a0d4ad7808f9a4 100644 (file)
 #include <cpu_func.h>
 #include <dm.h>
 #include <dma-uclass.h>
+#include <log.h>
 #include <malloc.h>
 #include <memalign.h>
+#include <net.h>
 #include <reset.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 #define DMA_RX_DESC    6
 #define DMA_TX_DESC    1
index 9d5a7fc796c488e708cfba2f05ed74b18edf7880..8cbb364042703abf3edcf8a4870bed1fb05f5c21 100644 (file)
@@ -12,7 +12,9 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
+#include <asm/cache.h>
 #include <dm/read.h>
 #include <dma-uclass.h>
 #include <dt-structs.h>
index 3a151212004233af757732584b8369f67d80d908..443e4b23669a2b0ae2fd4e87a7d70fe226718257 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <asm/io.h>
 #include <asm/ti-common/keystone_nav.h>
+#include <linux/delay.h>
 
 struct qm_config qm_memmap = {
        .stat_cfg       = CONFIG_KSNAV_QM_QUEUE_STATUS_BASE,
index d3ce141eeffbc8031d85e50dbbf813ce0445762e..ab58e97bfe27289e34a7a976d89de2a31d4eeae8 100644 (file)
@@ -9,11 +9,14 @@
 
 #include <common.h>
 #include <errno.h>
+#include <init.h>
 #include <asm/arch/dma.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/clk.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 /* DMA controller channel register structure */
 struct dmac_chan_reg {
index 234a7d2134dc34750bf01ddf3f73690550a6614b..838596b24b671e870ed38d11cd2a64c6733e79f3 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <dm/read.h>
 #include <dma-uclass.h>
index 7e11b13e45c6c9332899e27c1117885f10a308bc..77c4ba953075958444eb8dae88beb50933c3a2de 100644 (file)
@@ -8,6 +8,7 @@
  * Author: Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>
  */
 
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <common.h>
 #include <dm.h>
index c88399a815ea9e4ba8e82e14b2aaa3647d784ee3..5d50bbcb0317d76faf729cce03245d8d7b50be7f 100644 (file)
@@ -12,6 +12,7 @@
 #ifndef K3_NAVSS_UDMA_HWDEF_H_
 #define K3_NAVSS_UDMA_HWDEF_H_
 
+#include <linux/bitops.h>
 #define UDMA_PSIL_DST_THREAD_ID_OFFSET 0x8000
 
 /* Global registers */
index a0e536ae5e975eeb0c6490eb0de27ff080dbf51e..2ce16c8e27f16728a888ae7d1c2d087ee512742a 100644 (file)
@@ -7,9 +7,12 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <log.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/bitops.h>
 #include <malloc.h>
+#include <linux/bitops.h>
 #include <linux/dma-mapping.h>
 #include <dm.h>
 #include <dm/device_compat.h>
index 3c4acfecf6d36fbc6cfe3ae88002da6cdaad1778..49f6a61c3745a880834f6db611318fae363e1898 100644 (file)
@@ -10,6 +10,7 @@
 #include <fastboot-internal.h>
 #include <fb_mmc.h>
 #include <fb_nand.h>
+#include <flash.h>
 #include <part.h>
 #include <stdlib.h>
 
index 95cb4341895fcbc3938a035aaa1463f822abd0a5..52da34b1e37e6fe5f79eaec3d8c79189ef46d1cb 100644 (file)
@@ -10,6 +10,7 @@
 #include <fb_mmc.h>
 #include <fb_nand.h>
 #include <fs.h>
+#include <part.h>
 #include <version.h>
 
 static void getvar_version(char *var_parameter, char *response);
@@ -103,7 +104,7 @@ static int getvar_get_part_info(const char *part_name, char *response,
        int r;
 # if CONFIG_IS_ENABLED(FASTBOOT_FLASH_MMC)
        struct blk_desc *dev_desc;
-       disk_partition_t part_info;
+       struct disk_partition part_info;
 
        r = fastboot_mmc_get_part_info(part_name, &dev_desc, &part_info,
                                       response);
@@ -219,7 +220,7 @@ static void getvar_partition_type(char *part_name, char *response)
 {
        int r;
        struct blk_desc *dev_desc;
-       disk_partition_t part_info;
+       struct disk_partition part_info;
 
        r = fastboot_mmc_get_part_info(part_name, &dev_desc, &part_info,
                                       response);
index d7cf9f4aac7d50e8650b9e5281a8f88f3e6fa4a8..b2f8932e1c7a67ca1843b4428a74fc1d33f99e29 100644 (file)
 #include <fastboot.h>
 #include <fastboot-internal.h>
 #include <fb_mmc.h>
+#include <flash.h>
 #include <image-sparse.h>
+#include <image.h>
+#include <log.h>
 #include <part.h>
 #include <mmc.h>
 #include <div64.h>
@@ -26,7 +29,7 @@ struct fb_mmc_sparse {
 };
 
 static int part_get_info_by_name_or_alias(struct blk_desc *dev_desc,
-               const char *name, disk_partition_t *info)
+               const char *name, struct disk_partition *info)
 {
        int ret;
 
@@ -97,9 +100,9 @@ static lbaint_t fb_mmc_sparse_reserve(struct sparse_storage *info,
        return blkcnt;
 }
 
-static void write_raw_image(struct blk_desc *dev_desc, disk_partition_t *info,
-               const char *part_name, void *buffer,
-               u32 download_bytes, char *response)
+static void write_raw_image(struct blk_desc *dev_desc,
+                           struct disk_partition *info, const char *part_name,
+                           void *buffer, u32 download_bytes, char *response)
 {
        lbaint_t blkcnt;
        lbaint_t blks;
@@ -210,7 +213,7 @@ static void fb_mmc_boot1_ops(struct blk_desc *dev_desc, void *buffer,
  * @return Boot image header sectors count or 0 on error
  */
 static lbaint_t fb_mmc_get_boot_header(struct blk_desc *dev_desc,
-                                      disk_partition_t *info,
+                                      struct disk_partition *info,
                                       struct andr_img_hdr *hdr,
                                       char *response)
 {
@@ -270,7 +273,7 @@ static int fb_mmc_update_zimage(struct blk_desc *dev_desc,
        u32 kernel_sector_start;
        u32 kernel_sectors;
        u32 sectors_per_page;
-       disk_partition_t info;
+       struct disk_partition info;
        int res;
 
        puts("Flashing zImage\n");
@@ -366,12 +369,12 @@ static int fb_mmc_update_zimage(struct blk_desc *dev_desc,
  *
  * @part_name: Named partition to lookup
  * @dev_desc: Pointer to returned blk_desc pointer
- * @part_info: Pointer to returned disk_partition_t
+ * @part_info: Pointer to returned struct disk_partition
  * @response: Pointer to fastboot response buffer
  */
 int fastboot_mmc_get_part_info(const char *part_name,
                               struct blk_desc **dev_desc,
-                              disk_partition_t *part_info, char *response)
+                              struct disk_partition *part_info, char *response)
 {
        int r;
 
@@ -406,7 +409,7 @@ void fastboot_mmc_flash_write(const char *cmd, void *download_buffer,
                              u32 download_bytes, char *response)
 {
        struct blk_desc *dev_desc;
-       disk_partition_t info;
+       struct disk_partition info;
 
        dev_desc = blk_get_dev("mmc", CONFIG_FASTBOOT_FLASH_MMC_DEV);
        if (!dev_desc || dev_desc->type == DEV_TYPE_UNKNOWN) {
@@ -523,7 +526,7 @@ void fastboot_mmc_erase(const char *cmd, char *response)
 {
        int ret;
        struct blk_desc *dev_desc;
-       disk_partition_t info;
+       struct disk_partition info;
        lbaint_t blks, blks_start, blks_size, grp_size;
        struct mmc *mmc = find_mmc_device(CONFIG_FASTBOOT_FLASH_MMC_DEV);
 
index 6756ea769f3532e80e924b4ddf07d2beee5a319c..eb8a36f29222cc2afbcc8c7124ea904f8d8f5dff 100644 (file)
@@ -6,6 +6,8 @@
 
 #include <config.h>
 #include <common.h>
+#include <blk.h>
+#include <flash.h>
 
 #include <fastboot.h>
 #include <image-sparse.h>
index c37642569ddaf27453ab21a63068dd56d78002e9..2bdf7771f642fdabd2adb20ef39d471f6f1d8356 100644 (file)
@@ -7,7 +7,10 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <zynqmp_firmware.h>
+#include <asm/cache.h>
+#include <asm/ptrace.h>
 
 #if defined(CONFIG_ZYNQMP_IPI)
 #include <mailbox.h>
index 394f30fa886d798993f7cc999b23359e3d07d6e9..e0d66d74f54de842167ecd0d33d6ac11a86cdad0 100644 (file)
@@ -7,10 +7,13 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <dm.h>
 #include <irq_func.h>
+#include <log.h>
 #include <dm/lists.h>
 #include <efi_loader.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <linux/arm-smccc.h>
 #include <linux/errno.h>
@@ -131,7 +134,7 @@ void reset_misc(void)
 #endif /* CONFIG_PSCI_RESET */
 
 #ifdef CONFIG_CMD_POWEROFF
-int do_poweroff(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_poweroff(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        do_psci_probe();
 
index c3f95b252f24f3969d7cf5838e6304f7fe36c805..15f5b0b14cce01e01fd9d269ee93a2ff01b25b39 100644 (file)
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <mailbox.h>
 #include <malloc.h>
 #include <dm/device.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
+#include <linux/bitops.h>
 #include <linux/compat.h>
 #include <linux/err.h>
 #include <linux/soc/ti/k3-sec-proxy.h>
index 24b4d1c7948a7b6ba2a4970d7f68aa3cc95c5cd3..327bb820f3a7f5ba5828b566b4a4434464f74a53 100644 (file)
@@ -15,6 +15,7 @@
 #define __TI_SCI_H
 
 /* Generic Messages */
+#include <linux/bitops.h>
 #define TI_SCI_MSG_ENABLE_WDT          0x0000
 #define TI_SCI_MSG_WAKE_RESET          0x0001
 #define TI_SCI_MSG_VERSION             0x0002
index 5afd42a97b6cb7e0c7c89f48d1a66380a166ecd9..aca8049c56ac5ce19782d8a45a619a9349a8617d 100644 (file)
@@ -10,6 +10,7 @@
 #include <common.h>            /* core U-Boot definitions */
 #include <console.h>
 #include <ACEX1K.h>            /* ACEX device family */
+#include <linux/delay.h>
 
 /* Define FPGA_DEBUG to get debug printf's */
 #ifdef FPGA_DEBUG
index 7c8f5185095a16d64bd491d76aa0bf639134e5cd..bb27b3778f310d3731cd069ec4909b7c72e3ac70 100644 (file)
@@ -13,6 +13,7 @@
 #include <common.h>
 #include <errno.h>
 #include <ACEX1K.h>
+#include <log.h>
 #include <stratixII.h>
 
 /* Define FPGA_DEBUG to 1 to get debug printf's */
index c929cd2cc51863a77323102ddaf9561f2494a8c7..3b008facb8c4daeb59aacb0140a15f40b21df18e 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>            /* core U-Boot definitions */
 #include <altera.h>
 #include <ACEX1K.h>            /* ACEX device family */
+#include <linux/delay.h>
 
 /* Define FPGA_DEBUG to get debug printf's */
 #ifdef FPGA_DEBUG
index 0917871d49b8c6319d867a53da52136c6f70d805..fe3dfa12335d59d4a737fc005b3ceb1bac71f3b1 100644 (file)
@@ -6,6 +6,8 @@
 
 /* Generic FPGA support */
 #include <common.h>             /* core U-Boot definitions */
+#include <init.h>
+#include <log.h>
 #include <xilinx.h>             /* xilinx specific definitions */
 #include <altera.h>             /* altera specific definitions */
 #include <lattice.h>
index 6c6e5c385af68c56e03092959f84b610bcdee035..adc60919f3b01b5d88b4fcba1231a8a1ca28f0c4 100644 (file)
@@ -30,6 +30,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <linux/string.h>
 #include <malloc.h>
 #include <lattice.h>
index 30bec7feef73ef016d13dad11b466ef859f3a9c6..e292d991cd18644ec4f97db77ba48d2b36ac3bde 100644 (file)
  */
 
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 #include <fpga.h>
 #include <lattice.h>
+#include <linux/delay.h>
 
 static lattice_board_specific_func *pfns;
 static const char *fpga_image;
index 2853581b9756a255d300dfc5ba7ed1549863ff1b..dfd3cbb461028e8d77a228f31db9a2dac7949970 100644 (file)
@@ -2,6 +2,8 @@
 /*
  * Copyright (C) 2017-2019 Intel Corporation <www.intel.com>
  */
+#include <image.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/fpga_manager.h>
 #include <asm/arch/reset_manager.h>
@@ -16,6 +18,8 @@
 #include <fs_loader.h>
 #include <wait_bit.h>
 #include <watchdog.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 #define CFGWDTH_32     1
 #define MIN_BITSTREAM_SIZECHECK        230
index d8e32508d4868d849370a186af08d432d021af38..da8fa315e36622bfdb3f6e36629d95adf14e654b 100644 (file)
@@ -5,7 +5,9 @@
 
 #include <common.h>
 #include <altera.h>
+#include <log.h>
 #include <asm/arch/mailbox_s10.h>
+#include <linux/delay.h>
 
 #define RECONFIG_STATUS_POLL_RESP_TIMEOUT_MS           60000
 #define RECONFIG_STATUS_INTERVAL_DELAY_US              1000000
index 12d8dd19bf6da3599e2c8b2ed6b4761670fd3bab..b450a81072ed3c0a71f80b65dfd5d4cf3e522b6c 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>            /* core U-Boot definitions */
 #include <altera.h>
+#include <linux/delay.h>
 
 int StratixII_ps_fpp_load (Altera_desc * desc, void *buf, size_t bsize,
                           int isSerial, int isSecure);
@@ -116,9 +117,9 @@ int StratixII_ps_fpp_load (Altera_desc * desc, void *buf, size_t bsize,
 
        /* 2. Strat burn cycle by deasserting config for t_CFG and waiting t_CF2CK after reaserted */
        fns->config (0, 1, cookie);
-       udelay (5);             /* nCONFIG low pulse width 2usec */
+       udelay(5);              /* nCONFIG low pulse width 2usec */
        fns->config (1, 1, cookie);
-       udelay (100);           /* nCONFIG high to first rising edge on DCLK */
+       udelay(100);            /* nCONFIG high to first rising edge on DCLK */
 
        /* 3. Start the Data cycle with clk deasserted */
        bytecount = 0;
@@ -168,7 +169,7 @@ int StratixII_ps_fpp_load (Altera_desc * desc, void *buf, size_t bsize,
 
        /* 4. Set one last clock and check conf done signal */
        fns->clk (1, 1, cookie);
-       udelay (100);
+       udelay(100);
        if (!fns->done (cookie)) {
                printf (" error!.\n");
                fns->abort (cookie);
index 236a730804dba41c9c932c81033991ae6f91f764..abae3b5b7511a5b4a94c81cf89b76f69bad163de 100644 (file)
@@ -5,8 +5,10 @@
 
 #include <common.h>
 #include <altera.h>
+#include <log.h>
 #include <spi.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 
 /* Write the RBF data to FPGA via SPI */
index 6c69ab7802c60bd78b298188631032888e47783b..b96519e1a46f8c483b898e8c963cead502aa4754 100644 (file)
@@ -6,10 +6,12 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <log.h>
 #include <asm/arch/sys_proto.h>
 #include <memalign.h>
 #include <versalpl.h>
 #include <zynqmp_firmware.h>
+#include <asm/cache.h>
 
 static ulong versal_align_dma_buffer(ulong *buf, u32 len)
 {
index 395736875f60106506033d65dc7f1768137964d8..b3e0537bab07d08363a023a486f60250b59340a4 100644 (file)
@@ -15,6 +15,7 @@
 #include <common.h>
 #include <console.h>
 #include <virtex2.h>
+#include <linux/delay.h>
 
 #if 0
 #define FPGA_DEBUG
index 4b0334b6beb601568212756a808d22f21dd1507d..cbebefb55fe42e84e5ab80bd319498625459a7a8 100644 (file)
@@ -13,6 +13,7 @@
 
 #include <common.h>
 #include <fpga.h>
+#include <log.h>
 #include <virtex2.h>
 #include <spartan2.h>
 #include <spartan3.h>
index 4a826e4a71ab452467d3e4b8d2ae92cda74ab638..2ac4e38952125669133ca6823dfb4c49930bc82d 100644 (file)
@@ -8,8 +8,11 @@
 #include <console.h>
 #include <common.h>
 #include <cpu_func.h>
+#include <log.h>
 #include <zynqmppl.h>
 #include <zynqmp_firmware.h>
+#include <asm/cache.h>
+#include <linux/bitops.h>
 #include <linux/sizes.h>
 #include <asm/arch/sys_proto.h>
 #include <memalign.h>
index 21624f715ba0092a7dc9206966fa6bb21f0a81b9..dcfe513eeb3bad9b784fc082f3daf1e7ddd0bf11 100644 (file)
@@ -9,9 +9,12 @@
 #include <common.h>
 #include <console.h>
 #include <cpu_func.h>
+#include <log.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <fs.h>
 #include <zynqpl.h>
+#include <linux/delay.h>
 #include <linux/sizes.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/sys_proto.h>
index 9d293b6994ddbfd0e7d851d7505217e6b0320cd8..d0849c85c3bc38f90f355479e12620b6c979b33b 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #include <malloc.h>
+#include <linux/bug.h>
 #include <linux/errno.h>
 #include <asm/gpio.h>
 
index a3f5e7a2e0a0481bc34501cc8ce27854376974a4..455944d547a224476d752a33b9e4e32c1c611515 100644 (file)
@@ -12,6 +12,7 @@
 #include <malloc.h>
 #include <asm/arch/hardware.h>
 #include <asm/gpio.h>
+#include <linux/bitops.h>
 #include <mach/gpio.h>
 #include <mach/atmel_pio4.h>
 
index 71a978cf4077880b18ecef073b166c5e4ef34d84..5da11d988e08718065f63237c485038294cec091 100644 (file)
@@ -12,6 +12,7 @@
 #include <errno.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 struct bcm6345_gpio_priv {
        void __iomem *reg_dirout;
index e2374ce1e76d1d4b5c609dc0682de37a60340c15..055907c1a1d3536db5657f1218aad8d59f41bdf2 100644 (file)
@@ -7,8 +7,10 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
+#include <linux/bitops.h>
 #include <linux/compat.h>
 #include <linux/compiler.h>
 
index e3439eebb5b689f8cffdbd40124a39ab4547e91c..e5e35181940ce2a41ad6458dea74c7b668e26503 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/arch/gpio.h>
 #include <asm/gpio.h>
@@ -18,6 +19,7 @@
 #include <dm/root.h>
 #include <errno.h>
 #include <reset.h>
+#include <linux/bitops.h>
 
 #define GPIO_SWPORT_DR(p)      (0x00 + (p) * 0xc)
 #define GPIO_SWPORT_DDR(p)     (0x04 + (p) * 0xc)
index 9dc4cd6042271263f98c421e6b39268ec8573b4e..c49a041059d24f18ba7cc465c896ecb3a70b8896 100644 (file)
@@ -12,6 +12,7 @@
 #include <errno.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 #include "../pinctrl/renesas/sh_pfc.h"
 
 #define GPIO_IOINTSEL  0x00    /* General IO/Interrupt Switching Register */
index ce2453e2ba6eb13215b5f49042366a3de762cc5b..21a87d645cdbec7af1eca164ddd4f701bf25af9d 100644 (file)
@@ -9,6 +9,7 @@
 #include <errno.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 #define P(bank)                        (0x0000 + (bank) * 4)
 #define PSR(bank)              (0x0100 + (bank) * 4)
index d3cea11f76e5115513ed5661b45a578c4d2a705f..9eeab22eef5a63c72564083aa912dc944e7e1cab 100644 (file)
@@ -5,7 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
-#include <dm/device_compat.h>
+#include <log.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
 #include <dm/uclass-internal.h>
@@ -14,6 +14,7 @@
 #include <fdtdec.h>
 #include <malloc.h>
 #include <asm/gpio.h>
+#include <dm/device_compat.h>
 #include <linux/bug.h>
 #include <linux/ctype.h>
 
index 97a041789171651633320b2956c3b577dfa5ccc4..95de2ae3660d6ce549ce9fcda6c63a912deab0f9 100644 (file)
@@ -9,6 +9,7 @@
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <errno.h>
+#include <linux/bitops.h>
 
 static int hi6220_gpio_direction_input(struct udevice *dev, unsigned int gpio)
 {
index 800027f18ef018b08839e5fd6fa505cad2b78574..d9df804f6390dfaa6af964a59d62c92273528a66 100644 (file)
@@ -9,11 +9,13 @@
  * warranty of any kind, whether express or implied.
  */
 
+#include <log.h>
 #include <asm-generic/gpio.h>
 #include <asm/io.h>
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <linux/bitops.h>
 #include <linux/printk.h>
 
 #define DRV_NAME       "gpio_creg"
index 37299ecd0d110e0a7f9c382b30bfae84f6eb10bb..95f8b2ba6cd9b282c52077efab261e5e7ef45dd8 100644 (file)
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <pch.h>
 #include <pci.h>
 #include <syscon.h>
index 67b8b80b9d68c07cc021540bdb213ceab8f8975a..711fea1b587679fd35865ba998e897c0edb3da84 100644 (file)
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <p2sb.h>
 #include <pch.h>
 #include <pci.h>
index ad08b3aa794c504f97a0772f86eb851471cc94b6..73d98fde55497a69f713464886edff17c4323779 100644 (file)
@@ -30,6 +30,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <pch.h>
 #include <pci.h>
 #include <asm/cpu.h>
index c65ca8172814f9ff28462ef5f48ebb37b1ddc8dd..780d77b2f86e5cb91be225015fb50bd3004db708 100644 (file)
@@ -9,11 +9,13 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <errno.h>
 #include <clk.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
 #include <linux/err.h>
 
 #define MSCC_SGPIOS_PER_BANK   32
index 54d313d6f1d399376bca55b76cb7dd464cf22de1..612413e17bca7c2006163f8ea6c4c09ec40f47f6 100644 (file)
@@ -12,6 +12,7 @@
 #include <errno.h>
 #include <fdtdec.h>
 #include <malloc.h>
+#include <linux/bitops.h>
 #include <linux/io.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
index e8b1c5965cb4d281af54f707d6cc6b774e924696..770cbf6b607245cb3ab31b8d476a4d92a89ec97b 100644 (file)
@@ -8,6 +8,7 @@
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <errno.h>
+#include <linux/bitops.h>
 
 #define MVEBU_GPIOS_PER_BANK   32
 
index 405e9ac135be707b6359216b3f9dd76989dbe4b8..815339a1560edc4c2dcb89e2097341f768c2288c 100644 (file)
@@ -7,7 +7,9 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
+#include <linux/bitops.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <asm/arch/iomux.h>
index fda8054d530872d32816639b98794396d9787797..4ab8cee2d18c54b4fb50496b1facf59ffeba1219 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <i2c.h>
 #include <pca953x.h>
 
@@ -192,7 +193,7 @@ static int pca953x_info(uint8_t chip)
        return 0;
 }
 
-static cmd_tbl_t cmd_pca953x[] = {
+static struct cmd_tbl cmd_pca953x[] = {
        U_BOOT_CMD_MKENT(device, 3, 0, (void *)PCA953X_CMD_DEVICE, "", ""),
        U_BOOT_CMD_MKENT(output, 4, 0, (void *)PCA953X_CMD_OUTPUT, "", ""),
        U_BOOT_CMD_MKENT(input, 3, 0, (void *)PCA953X_CMD_INPUT, "", ""),
@@ -200,13 +201,14 @@ static cmd_tbl_t cmd_pca953x[] = {
        U_BOOT_CMD_MKENT(info, 2, 0, (void *)PCA953X_CMD_INFO, "", ""),
 };
 
-static int do_pca953x(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_pca953x(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        static uint8_t chip = CONFIG_SYS_I2C_PCA953X_ADDR;
        int ret = CMD_RET_USAGE, val;
        ulong ul_arg2 = 0;
        ulong ul_arg3 = 0;
-       cmd_tbl_t *c;
+       struct cmd_tbl *c;
 
        c = find_cmd_tbl(argv[1], cmd_pca953x, ARRAY_SIZE(cmd_pca953x));
 
index d06b834a3bcb41a9249ff13d3c40490e825206fd..fd17d1a591028ccd336297ebe1d0b4d0aefebccb 100644 (file)
@@ -28,6 +28,7 @@
 #include <asm/io.h>
 #include <dm/device_compat.h>
 #include <dt-bindings/gpio/gpio.h>
+#include <linux/bitops.h>
 
 #define PCA953X_INPUT           0
 #define PCA953X_OUTPUT          1
index e93f6404880880e7d19a954a07ed840d4aef294e..1b9a18fe5dc0cf9244aa2b8759e16a7571546826 100644 (file)
@@ -26,7 +26,9 @@
 #include <common.h>
 #include <dm.h>
 #include <i2c.h>
+#include <log.h>
 #include <asm-generic/gpio.h>
+#include <linux/bitops.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index d8789e76078b9bfa8d4b750d75c46e8362fa9741..bb1ad256fac0d6ebf9e01497c4d17a43f68f6e38 100644 (file)
@@ -10,6 +10,7 @@
 #include <malloc.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
+#include <linux/bitops.h>
 #include <linux/compat.h>
 #include <mach/pic32.h>
 
index 74a773c099b9d5871ea078564bc6e9cf53cc6265..51df5367ea7e6daa60efdf0e9cffb22224cc6441 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <power/pmic.h>
 #include <spmi/spmi.h>
 #include <asm/io.h>
index e4b5383d0f7284150c3280abc17e4827f8e0dc1b..258f13395dde4f24ce29ce2dd03b386aedf47075 100644 (file)
@@ -8,6 +8,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
index 9549c74c2bee62db86d23b3964f4f6ebaf51c692..98b7fa4bb3918618499ef7e0c19d5f423a7d352e 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/gpio.h>
 #include <dm/device_compat.h>
index 6320a6280d56d775549e21939c63c100e83ab763..0653171af482a3d5a0c100b83f33b84f8d8fa10c 100644 (file)
  */
 
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/bitops.h>
 #include <asm/io.h>
 #include <sh_pfc.h>
+#include <linux/bitops.h>
+#include <linux/bug.h>
 
 static struct pinmux_info *gpioc;
 
index 76d5a1d34eef134331052df92e9df9e20c6c6547..24da3b3c230dc7d4a696bef64e10a7dd0d452c0b 100644 (file)
@@ -11,6 +11,7 @@
 #include <asm/io.h>
 #include <errno.h>
 #include <asm/gpio.h>
+#include <linux/bitops.h>
 
 static int sifive_gpio_probe(struct udevice *dev)
 {
index 37a8cfa47a4d227375b8558f3c2a07ad432fcbe2..4f710b6b6afa096fd1652aff61615216f01c0ad5 100644 (file)
@@ -8,11 +8,13 @@
 #include <clk.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <asm/arch/gpio.h>
 #include <asm/arch/stm32.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
 #include <linux/errno.h>
 #include <linux/io.h>
 
index 730460a9991b56cf43efd7f9ee8d9f92cc5adf82..463cfe879a8f886224c70a85900100acf8fe8499 100644 (file)
@@ -21,6 +21,7 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <i2c.h>
 #include <tca642x.h>
 
@@ -212,7 +213,7 @@ static int tca642x_info(uchar chip)
        return 0;
 }
 
-static cmd_tbl_t cmd_tca642x[] = {
+static struct cmd_tbl cmd_tca642x[] = {
        U_BOOT_CMD_MKENT(device, 3, 0, (void *)TCA642X_CMD_DEVICE, "", ""),
        U_BOOT_CMD_MKENT(output, 4, 0, (void *)TCA642X_CMD_OUTPUT, "", ""),
        U_BOOT_CMD_MKENT(input, 3, 0, (void *)TCA642X_CMD_INPUT, "", ""),
@@ -220,7 +221,8 @@ static cmd_tbl_t cmd_tca642x[] = {
        U_BOOT_CMD_MKENT(info, 2, 0, (void *)TCA642X_CMD_INFO, "", ""),
 };
 
-static int do_tca642x(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_tca642x(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        static uchar chip = CONFIG_SYS_I2C_TCA642X_ADDR;
        int ret = CMD_RET_USAGE, val;
@@ -228,7 +230,7 @@ static int do_tca642x(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        uint8_t bank_shift;
        ulong ul_arg2 = 0;
        ulong ul_arg3 = 0;
-       cmd_tbl_t *c;
+       struct cmd_tbl *c;
 
        c = find_cmd_tbl(argv[1], cmd_tca642x, ARRAY_SIZE(cmd_tca642x));
 
index ac8df27c467eb55c4af85d486e3b693d0d202817..3e686beedc16cc6c2e956ebe1122c4d4b360252a 100644 (file)
@@ -10,6 +10,7 @@
  * For each GPIO, there are a set of registers than affect it, all packed
  * back-to-back.
  */
+#include <linux/bitops.h>
 #define TEGRA186_GPIO_ENABLE_CONFIG                            0x00
 #define TEGRA186_GPIO_ENABLE_CONFIG_ENABLE                     BIT(0)
 #define TEGRA186_GPIO_ENABLE_CONFIG_OUT                                BIT(1)
index a730f5c4fec0903fd3aa9f7d2be82a06b3f25538..912577a5719135b5da22099ca828cfe1f43588ba 100644 (file)
@@ -12,6 +12,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <errno.h>
 #include <fdtdec.h>
index 2389abee3777e8ed773c8bb01e6593d346e62a93..014f120d609f88d77429d35f6e3b168989892345 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <linux/list.h>
 #include <asm/io.h>
index fe3b2c3b1aa82865832546b99142d0f5cffbe7d2..d0e90b8d633f5cbe642c8602a46a60e2a95a0e5b 100644 (file)
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 #include <linux/errno.h>
 #include <dm.h>
 #include <fdtdec.h>
index 61d226bcbb5eb79e6cdedea5253b7dc81317726c..9da79455ed3cd1523364098a9231fb68b620f6f9 100644 (file)
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <hwspinlock.h>
+#include <log.h>
 #include <dm/device-internal.h>
 #include <dm/device_compat.h>
 #include <linux/compat.h>
index 74afb4aec22b8812e951aecb399c22e5c94903e9..8be585a0c8660935b5695c4dea118e671e66524c 100644 (file)
@@ -9,6 +9,7 @@
 #include <hwspinlock.h>
 #include <malloc.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 #define STM32_MUTEX_COREID     BIT(8)
 #define STM32_MUTEX_LOCK_BIT   BIT(31)
index c84d75ac922fa1e2ad45062d6e3e46297018bdf6..214362d04bb309ce74793cdb7cfaeed8bd0d40fc 100644 (file)
 #include <errno.h>
 #include <fdtdec.h>
 #include <i2c.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/scu_ast2500.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 
 #include "ast_i2c.h"
index 87f02bfaf3f7c8eff521f9778249d479c12573c8..3915af83723e701ad94395867ecabd51edbce980 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef _AT91_I2C_H
 #define _AT91_I2C_H
 
+#include <linux/bitops.h>
 #define        TWI_CR_START            BIT(0)  /* Send a Start Condition */
 #define        TWI_CR_MSEN             BIT(2)  /* Master Transfer Enable */
 #define        TWI_CR_STOP             BIT(1)  /* Send a Stop Condition */
index 501e602b278c61be714dc241b6b3d685d3a166ff..c593540ac1380d8d82e40470057a6ef01791f471 100644 (file)
@@ -9,6 +9,7 @@
 #include <cros_ec.h>
 #include <errno.h>
 #include <i2c.h>
+#include <log.h>
 #include <power/tps65090.h>
 
 static int cros_ec_ldo_set_bus_speed(struct udevice *dev, unsigned int speed)
index edc40f706c10bf47d519650b86662b6d754f4352..f8e9d003e61c9674bd8646fa5fbe72dcc1c48a34 100644 (file)
 #include <common.h>
 #include <i2c.h>
 #include <dm.h>
+#include <log.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/i2c_defs.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include "davinci_i2c.h"
 
 #ifdef CONFIG_DM_I2C
index 088a6f3efb3847297761ee52a94c8e152ba5bec1..42ee7d523e37e349d905f9aa7c81d95f90d4b4ac 100644 (file)
@@ -8,10 +8,12 @@
 #include <clk.h>
 #include <dm.h>
 #include <i2c.h>
+#include <log.h>
 #include <malloc.h>
 #include <pci.h>
 #include <reset.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include "designware_i2c.h"
 #include <dm/device_compat.h>
 #include <linux/err.h>
index 7ee236193daa6b0c62b7cbf5843d5c4236272e5b..dc9a6ccb633c8a7f4b213efd854643ce714482da 100644 (file)
@@ -10,6 +10,7 @@
 #include <clk.h>
 #include <i2c.h>
 #include <reset.h>
+#include <linux/bitops.h>
 
 struct i2c_regs {
        u32 ic_con;             /* 0x00 */
index 50f03e3d90555f78a6c5a81fcc893a7781f4fb72..bd34ec0b473f32f0b198e80a4faea8bef0d3b041 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <spl.h>
 #include <asm/lpss.h>
 #include "designware_i2c.h"
index 9f201c66d05b6903ac0de3617d37da6be1fa404c..4fc9d90580c5256c17878dd1043d572de87caf87 100644 (file)
@@ -9,9 +9,11 @@
 #include <common.h>
 #include <dm.h>
 #include <i2c.h>
+#include <log.h>
 #include <asm/arch/clk.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/pinmux.h>
+#include <linux/delay.h>
 #include "s3c24x0_i2c.h"
 
 DECLARE_GLOBAL_DATA_PTR;
index 097c54388f83416bceed19d8b996f606b2b7ab1a..da933452f5156c16b2195dff904cc0cd78ae28aa 100644 (file)
@@ -9,12 +9,14 @@
 #include <common.h>
 #include <command.h>
 #include <i2c.h>               /* Functional interface */
+#include <log.h>
 #include <time.h>
 #include <asm/io.h>
 #include <asm/fsl_i2c.h>       /* HW definitions */
 #include <clk.h>
 #include <dm.h>
 #include <mapmem.h>
+#include <linux/delay.h>
 
 /* The maximum number of microseconds we will wait until another master has
  * released the bus.  If not defined in the board header file, then use a
index ac15da2c67ffea715dc5b3ece1c4b032dcd9f44b..024c63c4eaedbb7fa6c5a1797a55b9e35752b8e3 100644 (file)
@@ -9,6 +9,9 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/types.h>
 #include <linux/io.h>
 #include <linux/errno.h>
index ae5aae03e72a4f5b97b4f50eed70d8dfd5e38078..1b70e140545dd938fff9540543a652bbab94ce3d 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <i2c.h>
+#include <log.h>
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
 
index 07fdd343f22c6938f421fd440789e73f7c928f6b..cfdeadc752cd32be66888400996d1113b0a9b10f 100644 (file)
@@ -9,7 +9,9 @@
 #include <errno.h>
 #include <dm.h>
 #include <i2c.h>
+#include <log.h>
 #include <asm/gpio.h>
+#include <linux/delay.h>
 
 #define DEFAULT_UDELAY 5
 #define RETRIES                0
index e9ec3885767a970cb3961705bc5221166d9e7c46..8166df7ba63b852b6156863e93226741ded1f3de 100644 (file)
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <i2c.h>
+#include <log.h>
 #include <malloc.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
@@ -14,6 +15,7 @@
 #if CONFIG_IS_ENABLED(DM_GPIO)
 #include <asm/gpio.h>
 #endif
+#include <linux/delay.h>
 
 #define I2C_MAX_OFFSET_LEN     4
 
index f523844204a7fa9a65d70257aa73385a9a77f1b3..62831522bd3328dd4c431bed51ab6703cacf8afb 100644 (file)
@@ -11,6 +11,8 @@
 #include <i2c.h>
 #include <asm/io.h>
 #include <clk.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/io.h>
 
 #define I2C_CONTROL_REG                0x00
index 234277a299c76fe648fecd3f472a003b8b24bab8..da50d86cc8b40546bd07305c4b0c9ad994454d7b 100644 (file)
@@ -9,6 +9,7 @@
  */
 #include <common.h>
 #include <i2c.h>
+#include <linker_lists.h>
 
 struct i2c_adapter *i2c_get_adapter(int index)
 {
index f7b59d36f983a8290cef2393ca847f597701f8a5..cec38538da43aeb65e758bb131b3e2b6a8d72f04 100644 (file)
 #else
 #include <gdsys_fpga.h>
 #endif
+#include <log.h>
 #include <asm/unaligned.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 #ifdef CONFIG_DM_I2C
 struct ihs_i2c_priv {
index 62e68046d6c7c35bf4fb5c92e78d5853d4e528c9..c8e42e05f5de4935608777f6deccd1a0fc0e0624 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <errno.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
index f5509fef1631adbf4abae87b5a2c9631d44ef985..3b79cb40cd3c5b52e0a9312fc0646ea22e1267ce 100644 (file)
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <dm.h>
 #include <i2c.h>
+#include <log.h>
 #include <pci.h>
 #include <asm/io.h>
 
index 8e31481c0fd97bc66f585855e5007989181d8e5a..4edcba29110e31fb63b53e13897a8535ec119b42 100644 (file)
@@ -7,7 +7,9 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/arch/sysmap.h>
 #include <asm/kona-common/clk.h>
index a95b5cc9025a1821d2ac1896b9fed0306da5d118..6af2e975cf35f0936f3e83f0183c8475a832a892 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <i2c.h>
 #include <linux/errno.h>
index bcf45160d8d8f327e408b9d0f64cd6e1e41db35c..e070caf43f2a073bd5e9f4a6f5113873a3ab0b48 100644 (file)
@@ -3,10 +3,13 @@
  * (C) Copyright 2017 - Beniamino Galvani <b.galvani@gmail.com>
  */
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <clk.h>
 #include <dm.h>
 #include <i2c.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 
 #define I2C_TIMEOUT_MS         100
index 5029c71adc78c74ce6f79b9993ebda8dfcd16783..584d0a4fef19b5037dd18eb125dda75c594b35c2 100644 (file)
@@ -8,8 +8,10 @@
 #include <dm.h>
 #include <errno.h>
 #include <i2c.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/gpio.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 0575bd8937f016e71bed4543ef44e74e34106f9c..83dcb40213320a9acce9296a5e5c31ce2a7c8cfd 100644 (file)
@@ -17,6 +17,7 @@
 #include <fdtdec.h>
 #include <i2c.h>
 #include <linux/errno.h>
+#include <linux/libfdt.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 9a3dd7ec4a94659b71ff268b981efce56f9639cb..26897554b0f2bc729c95e794f40c4ce3b1c22ace 100644 (file)
@@ -8,6 +8,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <i2c.h>
+#include <log.h>
 #include <malloc.h>
 #include <dm/lists.h>
 #include <dm/root.h>
index cc8afc93b5e180ab9d3a4978e3f106f2775d7766..7360e162eeb5398494458d2ff951161fdf861143 100644 (file)
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <i2c.h>
+#include <log.h>
 #include <malloc.h>
 
 #include <asm-generic/gpio.h>
index 63665f0952759a40e8ff98b4d2443bacc7d22599..59675d8d57425a6a11014b1bf0f2068720463657 100644 (file)
@@ -19,7 +19,9 @@
 #include <common.h>
 #include <dm.h>
 #include <i2c.h>
+#include <log.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include "mv_i2c.h"
 
 /* All transfers are described by this data structure */
index d4b2031249f4a6418b83a479a4fb21a48a8bc630..d3cc9b9d83845138900ba593a31c437909ffdaa6 100644 (file)
@@ -9,6 +9,8 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <log.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
index 4d6e0e3e759ebdc6553c3b81d6d3f967cf2b5bca..3b0d27e6cdb4316416368fe5bcb64dfae7670402 100644 (file)
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <dm/device_compat.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/mach-imx/mxc_i2c.h>
 #include <asm/mach-imx/sys_proto.h>
index 6e7d24d727b354684a9e2b9a028d2e57d38a22d3..8592a819c40a6fe54bc2092e6dc15ff14c0a0c61 100644 (file)
@@ -41,6 +41,8 @@
 #include <common.h>
 #include <dm.h>
 #include <i2c.h>
+#include <log.h>
+#include <linux/delay.h>
 
 #include <asm/io.h>
 #include <asm/omap_i2c.h>
index b877602aab6f9ecb78fdb20b5b99fade649b4513..4267bbfa5a961f80ff63f4ecb115ebd841f1b570 100644 (file)
@@ -18,6 +18,8 @@
 #include <asm/io.h>
 #include <wait_bit.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 #define RCAR_I2C_ICSCR                 0x00 /* slave ctrl */
 #define RCAR_I2C_ICMCR                 0x04 /* master ctrl */
index 2a82eb0b764a081499042e9266a07d9f06c435ca..cad0a623d363ee886a4525a1001904e9ad59e1c3 100644 (file)
@@ -14,6 +14,8 @@
 #include <dm.h>
 #include <i2c.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 struct rcar_iic_priv {
        void __iomem            *base;
index 32b2ee85787ef859763aeb21476aa5e0198ac2ae..fa6f69f400c00b0ba1625d21fa37c44b95c95b11 100644 (file)
 #include <dm.h>
 #include <errno.h>
 #include <i2c.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/clock.h>
 #include <asm/arch-rockchip/i2c.h>
 #include <asm/arch-rockchip/periph.h>
 #include <dm/pinctrl.h>
+#include <linux/delay.h>
 #include <linux/sizes.h>
 
 /* i2c timerout */
index 68bf93b324aaed9b6c7443a552cbbabd1751f7aa..5907217981dc3b68ca91ea0228dbb2e378541a81 100644 (file)
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <fdtdec.h>
 #if (defined CONFIG_EXYNOS4 || defined CONFIG_EXYNOS5)
+#include <log.h>
 #include <asm/arch/clk.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/pinmux.h>
index 1a4521d5b8e57644cd0f85fef64cc72785bc1344..f4ae2397a03f98822e4515cbb47b295c626712a3 100644 (file)
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <i2c.h>
+#include <log.h>
 #include <asm/test.h>
 #include <dm/lists.h>
 #include <dm/device-internal.h>
index 834f1f2179f7998b79768e8c206cf6d9c2ca79a1..f857307e6a4f23696de6316ceec2e573bf1548ce 100644 (file)
@@ -9,7 +9,9 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <log.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 9ad1c281ff2a8e0d82ac7dd65e026d8cd80a26b4..1031066b8c4163ab6846d6e876ce343024bb0791 100644 (file)
@@ -25,6 +25,7 @@
 #endif
 #endif
 #include <i2c.h>
+#include <linux/delay.h>
 
 #if defined(CONFIG_SOFT_I2C_GPIO_SCL)
 # include <asm/gpio.h>
index fc5c1221e1e1cff595e1c0599251136fd3c302e3..ada8f4095eda891bd14fd64a276a5a22687604f9 100644 (file)
@@ -7,7 +7,10 @@
 #include <clk.h>
 #include <dm.h>
 #include <i2c.h>
+#include <log.h>
 #include <reset.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 #include <dm/device.h>
 #include <linux/err.h>
index 793f3f59b5dd9d3f8470ace157484fc71d973f8b..37204718ca134ef605698cae62b0a20ca952131c 100644 (file)
@@ -6,8 +6,10 @@
 #include <common.h>
 #include <dm.h>
 #include <i2c.h>
+#include <log.h>
 #include <misc.h>
 #include <asm/arch-tegra/bpmp_abi.h>
+#include <linux/bitops.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 66a0148254c215d4157c9ff41b6f932bcdb6e3a3..65b3734348b010aae6c3a86e83499de4772e875f 100644 (file)
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <i2c.h>
+#include <log.h>
 #include <asm/io.h>
 #include <clk.h>
 #include <reset.h>
@@ -18,6 +19,7 @@
 #endif
 #include <asm/arch/gpio.h>
 #include <asm/arch-tegra/tegra_i2c.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 
 enum i2c_type {
index 8c1a25c73f772e9f3282b3b477d3467f11b6dd6b..6f12ec8b0ac438cc4bf83bb2bd07185bf2e3bfbb 100644 (file)
@@ -12,6 +12,7 @@
 #include <input.h>
 #include <keyboard.h>
 #include <key_matrix.h>
+#include <log.h>
 #include <stdio_dev.h>
 
 enum {
index 98015899f21d9b4a628244ca7337f85781292bbe..7beaccca2c8c88762086ff34f0e9168e753aeb61 100644 (file)
@@ -13,7 +13,9 @@
 #include <i8042.h>
 #include <input.h>
 #include <keyboard.h>
+#include <log.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 6ab378b979bd94814eb1d06da2d7524e393809e0..da264f4166ea4a468bf48a133ef6c6b48d3fdbea 100644 (file)
@@ -11,6 +11,7 @@
 #include <dm.h>
 #include <env.h>
 #include <errno.h>
+#include <log.h>
 #include <stdio_dev.h>
 #include <input.h>
 #ifdef CONFIG_DM_KEYBOARD
index 8951e128ec7f4d4890744ea6bf601eaa2eab0a2c..4631728b8b5164247e86e3950ce2f0696500fb56 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <dm.h>
 #include <key_matrix.h>
+#include <log.h>
 #include <malloc.h>
 #include <linux/input.h>
 
index db1a51503618e14dc1d494555d64d84f99688131..f19934e6bb6629762e6a824a712fa45a435c227d 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <keyboard.h>
+#include <log.h>
 
 static int keyboard_start(struct stdio_dev *sdev)
 {
index 70429b94a49c6c866afb2b0b3997301dbe250ccb..3409bb61d54c6e870da7e194985bda4198824c83 100644 (file)
 #include <input.h>
 #include <keyboard.h>
 #include <key_matrix.h>
+#include <log.h>
 #include <stdio_dev.h>
 #include <tegra-kbc.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/funcmux.h>
 #include <asm/arch-tegra/timer.h>
+#include <linux/delay.h>
 #include <linux/input.h>
 
 enum {
index 7be4badbac20d6a2b5e88ede9ff0aac59a94adba..52946835de33c246a3b47f1443b9aa82e7b4d397 100644 (file)
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <led.h>
+#include <log.h>
 #include <asm/io.h>
 #include <dm/lists.h>
 
index 01b86b756e14cafbc78805246c2b2ae2fe35688a..307d418a17894c3ff1640a029705357f7a78da7d 100644 (file)
@@ -7,8 +7,10 @@
 #include <dm.h>
 #include <errno.h>
 #include <led.h>
+#include <log.h>
 #include <asm/io.h>
 #include <dm/lists.h>
+#include <linux/delay.h>
 
 #define LEDS_MAX               32
 #define LEDS_WAIT              100
index 27a76fcaf089cf8a782921bfa453d0922972bc82..b415d8b2b40405c55fe96b35de5fc34745c7e513 100644 (file)
 #include <dm.h>
 #include <errno.h>
 #include <led.h>
+#include <log.h>
 #include <asm/io.h>
 #include <dm/lists.h>
+#include <linux/bitops.h>
 
 #define LEDS_MAX               32
 #define LEDS_WAIT              100
index af6b8245c97d591b244a43aefccf45281f754199..ef9b61ee626b7f86633c9d4879f841e334f73745 100644 (file)
@@ -8,6 +8,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <led.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/gpio.h>
 #include <dm/lists.h>
index a560209f035f264c26269bc3a3880c89f66e6dfd..3f9afaed3286cb1e433b3f158409f472d2b728f8 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/io.h>
 #include <dm/device_compat.h>
index 291f5c218e536166936c4f99fc00cc17ecbe51b6..c972d8460891d03abd4aaaa666f033cfe330a39f 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <mailbox.h>
 #include <mailbox-uclass.h>
 #include <malloc.h>
index 25e23eb05b765f4fa0ae28b607679a7da99f7f04..19704dd5da9e510885b5bcff7caa781c0e3c8879 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <mailbox-uclass.h>
 #include <malloc.h>
 #include <asm/io.h>
index 13e642ab70347419be385f0b7b74741f399549a8..b8bf356b4ac2045106065bfcad04c9ffdade41be 100644 (file)
@@ -6,10 +6,12 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <log.h>
 #include <mailbox-uclass.h>
 #include <malloc.h>
 #include <asm/io.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
 
 /*
  * IPCC has one set of registers per CPU
index 60f6a38321e1ce364b825b0680715312019b1db9..f82e6d3d16684ebf1077c9e6104f0ea1a1dc0cde 100644 (file)
@@ -4,11 +4,13 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/io.h>
 #include <dm.h>
 #include <mailbox-uclass.h>
 #include <dt-bindings/mailbox/tegra186-hsp.h>
+#include <linux/bitops.h>
 
 #define TEGRA_HSP_INT_DIMENSIONING             0x380
 #define TEGRA_HSP_INT_DIMENSIONING_NSI_SHIFT   16
index 17b46545f5f9d7df46fdde18c33bbed4d5238c43..f206a27a79e4c0d0afc6b76d922569d1bc382f38 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <dm.h>
 #include <mailbox-uclass.h>
index eff33f7343d17c735812fda6355fe5e89ec211e6..387c70b07049bc468f9a230b7918827f2d41dd80 100644 (file)
@@ -44,7 +44,7 @@ void display_sysid(void)
        printf("SYSID: %08x, %s", sysid[0], asc);
 }
 
-int do_sysid(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_sysid(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        display_sysid();
        return 0;
index 116c0661e75057ab56eb59332cb4a61c6db36760..422ea6f3e5ab29515eb796ca5dc73656212f8c53 100644 (file)
@@ -15,6 +15,8 @@
 #include <i2c.h>
 #include <errno.h>
 #include <atsha204a-i2c.h>
+#include <log.h>
+#include <linux/delay.h>
 #include <u-boot/crc.h>
 
 #define ATSHA204A_TWLO                 60
index fa9984f6bd90deee71d42f0c42cc1c47467bec46..a5534b16673b5b0f29802a997bbcf3e1b76ed7fd 100644 (file)
 #include <common.h>
 #include <command.h>
 #include <dm.h>
+#include <flash.h>
 #include <i2c.h>
 #include <cros_ec.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <malloc.h>
 #include <spi.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <asm-generic/gpio.h>
index cdd55f5aa85cfab427700ebbd16202d0896ee157..c00f5f764a044d59bea543da928b39553bb6a6ba 100644 (file)
@@ -16,6 +16,7 @@
 #include <dm.h>
 #include <i2c.h>
 #include <cros_ec.h>
+#include <log.h>
 
 #ifdef DEBUG_TRACE
 #define debug_trace(fmt, b...) debug(fmt, #b)
index 71d03bfba2be0f831658866d68095d02a86101de..4ad6c8ca66d22b0ed38590f510a6448182739f54 100644 (file)
@@ -16,6 +16,7 @@
 #include <dm.h>
 #include <command.h>
 #include <cros_ec.h>
+#include <log.h>
 #include <asm/io.h>
 
 #ifdef DEBUG_TRACE
index 9dd6a18b2b5cc465b5e7976e0c97a25f44c16e5b..c9fa7abd718a4fbf71de4c08aef505810c28079f 100644 (file)
@@ -11,6 +11,7 @@
 #include <ec_commands.h>
 #include <errno.h>
 #include <hash.h>
+#include <log.h>
 #include <os.h>
 #include <u-boot/sha256.h>
 #include <spi.h>
index be510704c48bec2456b554d52ea9cf8f506b03a2..153f971bdebe689f83154cbeea06ed62a335790e 100644 (file)
@@ -16,6 +16,7 @@
 #include <cros_ec.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <spi.h>
 
 int cros_ec_spi_packet(struct udevice *udev, int out_bytes, int in_bytes)
index bf20a833ecdd620a77858e8d1373bf0be4c0d05f..a2a5291565465421876e51ceb32c16ff6aa5dd30 100644 (file)
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <i2c.h>
 #include <command.h>
+#include <linux/delay.h>
 #include "ds4510.h"
 
 enum {
@@ -233,7 +234,7 @@ static int ds4510_info(uint8_t chip)
        return 0;
 }
 
-cmd_tbl_t cmd_ds4510[] = {
+struct cmd_tbl cmd_ds4510[] = {
        U_BOOT_CMD_MKENT(device, 3, 0, (void *)DS4510_CMD_DEVICE, "", ""),
        U_BOOT_CMD_MKENT(nv, 3, 0, (void *)DS4510_CMD_NV, "", ""),
        U_BOOT_CMD_MKENT(output, 4, 0, (void *)DS4510_CMD_OUTPUT, "", ""),
@@ -246,10 +247,10 @@ cmd_tbl_t cmd_ds4510[] = {
        U_BOOT_CMD_MKENT(sram, 6, 0, (void *)DS4510_CMD_SRAM, "", ""),
 };
 
-int do_ds4510(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_ds4510(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        static uint8_t chip = 0x51;
-       cmd_tbl_t *c;
+       struct cmd_tbl *c;
        ulong ul_arg2 = 0;
        ulong ul_arg3 = 0;
        int tmp;
index 92c8d68f7c8b513484c0e11a5554189b878c625c..a195dc5eb1da4345eec6f0bc2836b96e1e8fbcac 100644 (file)
@@ -12,6 +12,7 @@
 #include <errno.h>
 #include <power/pmic.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
 
 #define INT_ESM_REG            0x6c
 #define INT_ESM_MASK           0x3f
index 88e486e9d570b70ed973ff03e623ab6eb89e50c0..56406aa1dd2d48aee2a7099a4601940a51978994 100644 (file)
@@ -10,6 +10,7 @@
 #include <blk.h>
 #include <fs.h>
 #include <fs_loader.h>
+#include <log.h>
 #include <linux/string.h>
 #include <mapmem.h>
 #include <malloc.h>
index 0dbf304487fc6c8793666722868771d36af583c6..8fdaacd5e04c05a65e857403b1351410d94b62e5 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <fsl_ifc.h>
+#include <part.h>
 
 #ifdef CONFIG_TFABOOT
 struct ifc_regs ifc_cfg_default_boot[CONFIG_SYS_FSL_IFC_BANK_COUNT] = {
index f8075db8d5ec33973659eef9c9aa05aef1c74913..85cc3c26b2eff3ce699c56f0de834fd841e1f3f5 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <fuse.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
index 45eed22f6ebb1970f415b8b28a7db49b4ab065a3..632430e42099518232f720c25b59e1c7ba0f75dd 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 
index e9f351dc3aa468424cebb34d5a11aeb4438f4dee..321bd27fd325e22eab904807d93aab7ef738e366 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <fsl_sec_mon.h>
+#include <linux/delay.h>
 
 static u32 get_sec_mon_state(void)
 {
index 7f17095cc581ab9e443121c231f429228dc38cdd..69e16a06a0a77d30bbf50095f888109bd15f0699 100644 (file)
@@ -13,6 +13,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <misc.h>
 #include <regmap.h>
 
index 4d9524b6b63d77fc0a707e983da27409c2e6cd96..f195388edaf84a937df6e748345f671ec9a00010 100644 (file)
@@ -15,6 +15,7 @@
  * @bc:                 Block counter (filled in by FPGA).
  * @packet_length:      Length of the packet's payload bytes.
  */
+#include <linux/bitops.h>
 struct io_generic_packet {
        u16 target_address;
        u16 source_address;
index 94a21e08af713368b900c376de9c13431d51a4fa..b4c721c6fe631563946615e008ce1365ad9adbc4 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/lists.h>
 
 #include "gdsys_soc.h"
index ef5f103c98ef3947f795b61ece35b2dd70bd5b7e..ed23a623846008b0125019b549b505fa3be85034 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <eeprom.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/kernel.h>
 #include <dm.h>
index 16758a0ef95e9b1fd5d21abb549d0aa4d14892da..6be76ad02ef686813a3aa9d609c4214ff2c39bd4 100644 (file)
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <i2c.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/test.h>
 
index f9e4b27a270da3b5c29abf79b101129dfe03cf84..00d34a3adc2be95cbcde01cbf762993a3c77445f 100644 (file)
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <regmap.h>
 #include <asm/gpio.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 #include "ihs_fpga.h"
 
index 6916b754f6c5c796c837b193ac32c107703e641f..ee635eb947104ab5f093b9cca7b7377e21af5967 100644 (file)
@@ -6,12 +6,14 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <dm.h>
 #include <dm/lists.h>
 #include <dm/root.h>
 #include <dm/device-internal.h>
 #include <asm/arch/sci/sci.h>
+#include <linux/bitops.h>
 #include <linux/iopoll.h>
 #include <misc.h>
 
index 61aa10e4658ed251673f4e2b9e2245f06af1f49f..16dc0be75cf719b3dd279c45f22b0ae2f753a3d0 100644 (file)
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <dt-structs.h>
 #include <irq.h>
+#include <log.h>
 #include <dm/device-internal.h>
 
 int irq_route_pmc_gpio_gpe(struct udevice *dev, uint pmc_gpe_num)
index bc3dc93af2dfd2555998dea88bee415f311ade2c..1fba3271db6120833dbc71dcb326c5ada860240b 100644 (file)
@@ -10,6 +10,7 @@
 #include <asm/io.h>
 #include <asm/unaligned.h>
 #include <errno.h>
+#include <linux/bitops.h>
 #include <mach/jz4780.h>
 #include <wait_bit.h>
 
index d8048e1b70b81761ebb15fa25c473df3b48a453a..408c89315a9f8a30dee1c0538235082df2604612 100644 (file)
@@ -14,6 +14,7 @@
 #include <i2c.h>
 #include <k3-avs.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
 #include <power/regulator.h>
 
 #define AM6_VTM_DEVINFO(i)     (priv->base + 0x100 + 0x20 * (i))
index 8f270f3b5cbf8422171576738703d6e7332c2c40..cc2a23dd66384ddeead88706169b5189a256c655 100644 (file)
@@ -12,6 +12,7 @@
 #include <errno.h>
 #include <asm/io.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
 
 #define ESM_SFT_RST                    0x0c
 #define ESM_SFT_RST_KEY                        0x0f
index 4cff160d8876a3298555e0d9993b77bd457bc765..44a8b180a4393a12770a51dd0ef9704b514576e8 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <misc.h>
 #include <asm/io.h>
 #include <linux/err.h>
index d572dda3c19fa302091744b4a97d33043d26bbb6..ab1e34e6f46c3a77d36742ab981884b9be31bca6 100644 (file)
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <mapmem.h>
 #include <misc.h>
+#include <linux/delay.h>
 
 #include "mpc83xx_serdes.h"
 
index 89ea1dbab73a83f437f4d5446ef820e57b699a04..2a13c5892bf25fe82ee3f548a608168fd743367a 100644 (file)
@@ -18,6 +18,7 @@
  *                     lane E) field of the SRCSCR0
  * @SRDSCR0_TXEQE_SATA: Bitmask to set the TXEQE to the value used for SATA
  */
+#include <linux/bitops.h>
 enum srdscr0_mask {
        SRDSCR0_DPPA        = BIT(31 - 16),
        SRDSCR0_DPPE        = BIT(31 - 20),
index 80cd8dcedac5dd8f3be4a797976d41392068c164..926c62c8a14c05f502fbb55170c8b51709ebece8 100644 (file)
@@ -13,6 +13,7 @@
 
 #include <common.h>
 #include <fuse.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
index 21cae02118f4277e035a899414fa45c40fa8b234..facc720c8ef20395bbef0940e1f43d40fd70a8f4 100644 (file)
@@ -13,6 +13,7 @@
 
 #include <common.h>
 #include <fuse.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
index 9fe0aca34264e373fee0bc5aa52a8e3a971d89d4..06b1e8d9ad7cf0643234be24b8971843f32c4fea 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <mapmem.h>
 #include <p2sb.h>
index 02f7a7ea67579fcfd71322b0f595535867ba37c7..a4b6dba51620595c82af9c9592bac4fb3a2ce701 100644 (file)
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <axi.h>
 #include <dm.h>
+#include <log.h>
 #include <pci.h>
 #include <asm/test.h>
 #include <p2sb.h>
index 81e26614d3b5422dc74950db6ea2c56ed3ff9f94..f6eb6583ed0b94895b70e2926db3dd462ff6d4b8 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <command.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <qfw.h>
 #include <asm/io.h>
index 2520c6a38edb3581a1490fdb8096e7dc56f16bcc..46ce6305fe68ecccc09ef4044f1e822e17c218af 100644 (file)
@@ -43,8 +43,8 @@ struct rockchip_efuse_platdata {
 };
 
 #if defined(DEBUG)
-static int dump_efuses(cmd_tbl_t *cmdtp, int flag,
-                      int argc, char * const argv[])
+static int dump_efuses(struct cmd_tbl *cmdtp, int flag,
+                      int argc, char *const argv[])
 {
        /*
         * N.B.: This function is tailored towards the RK3399 and assumes that
index 980b84453e1973efed2cea8778f2528fc81d26f4..b82fe54c6009d7d8c4fad070397b1ebcffe84628 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <misc.h>
 #include <stm32_rcc.h>
 #include <dm/device-internal.h>
index 97e2afa67650547dba8109369f1ec31747d60892..07c67577d5468f09a6dd2ab64dfe919d7fc916bb 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <pci.h>
 #include <asm/test.h>
 #include <linux/ctype.h>
index ce2b92517385f00d0069c7f401dbc797d559752d..18da138507c9db79d2bcf6e34e203c89425a69b1 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <time.h>
 #include <dm/lists.h>
@@ -13,6 +14,7 @@
 #include <misc.h>
 #include <asm/arch-tegra/bpmp_abi.h>
 #include <asm/arch-tegra/ivc.h>
+#include <linux/bitops.h>
 #include <linux/err.h>
 
 #define BPMP_IVC_FRAME_COUNT 1
index db05c8917ffb44fe1a2f9ac933a969d1e1241917..0ddbb3c619b22e0a3cd963f0c624cf8daa6d2145 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/lists.h>
 #include <dm/root.h>
 
index 53d7e1d154a367ed1d93c6b0effb9f2d2fbc13a9..02e5b586e2971ac9ba8394e885d1267ccb81767f 100644 (file)
@@ -9,6 +9,7 @@
 #include <malloc.h>
 #include <dm/read.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 #include <linux/delay.h>
 #include <misc.h>
 
index ca76e1f5595fd193aa82045840aca8af2bfd504c..cbc531dc5351cdb0cbbd9c48235357bd81a7e4c7 100644 (file)
@@ -13,6 +13,7 @@
 #include <regmap.h>
 #include <sdhci.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
 #include <linux/err.h>
 
 /* CTL_CFG Registers */
index d396afc14cefd3b162760c9ac4eab3f7bb960b1a..846622892a971c8c0a8aa04077e74d32d28d5a39 100644 (file)
@@ -14,6 +14,7 @@
 #include "common.h"
 #include <clk.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <mmc.h>
 #include <dm/device_compat.h>
@@ -22,6 +23,7 @@
 #include <asm-generic/gpio.h>
 
 #include "arm_pl180_mmci.h"
+#include <linux/delay.h>
 
 #ifdef CONFIG_DM_MMC
 #include <dm.h>
index 39c93db275453ed47848653ce19ea843b381aa6c..dc3dffb657d40e61a3dd81a735e54c42e0264386 100644 (file)
@@ -38,6 +38,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <memalign.h>
 #include <sdhci.h>
index 8cebf99c589dc6db12fe71f3c632bdfa452ebca3..c4876e81f8cfdf931c594b274ec1673a040ebec3 100644 (file)
 #include <asm/arch/mbox.h>
 #include <asm/unaligned.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
+#include <linux/bug.h>
 #include <linux/compat.h>
+#include <linux/delay.h>
 #include <linux/io.h>
 #include <linux/iopoll.h>
 #include <linux/sizes.h>
index ef5cd4e7234ff4e1f67dc18fd4efbf455540e27b..2408a687d235d003125015ee8c16279d13161210 100644 (file)
@@ -16,6 +16,7 @@
 #include <asm/io.h>
 #include <asm/arch/sdmmc_defs.h>
 #include <asm-generic/gpio.h>
+#include <linux/delay.h>
 
 #define DAVINCI_MAX_BLOCKS     (32)
 #define WATCHDOG_COUNT         (100000)
index 12245408114551bb96dce4ed70541ca4df847b13..7702f4be3f8913965971f16806d739f53c690526 100644 (file)
@@ -9,11 +9,14 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <memalign.h>
 #include <mmc.h>
 #include <dwmmc.h>
 #include <wait_bit.h>
+#include <asm/cache.h>
+#include <linux/delay.h>
 #include <power/regulator.h>
 
 #define PAGE_SIZE 4096
index 386781da03111f4db2a30a2ae576174afc4698cd..d5d955846cde964b028b2d1c24153dea13f34543 100644 (file)
 #include <malloc.h>
 #include <fsl_esdhc.h>
 #include <fdt_support.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <dm.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 6bca2a9c829ed26311bb17eba6ea6fa88e243a8e..588d6a9d7643d41a87c43287a537be135e50376c 100644 (file)
 #include <cpu_func.h>
 #include <errno.h>
 #include <hwconfig.h>
+#include <log.h>
 #include <mmc.h>
 #include <part.h>
+#include <asm/cache.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <power/regulator.h>
 #include <malloc.h>
index 9c15eb36d6462801456bcc00af60427970262079..b37523e26f85775e583402201643195164b44660 100644 (file)
 
 #include <common.h>
 #include <clk.h>
+#include <log.h>
 #include <malloc.h>
 #include <part.h>
 #include <mmc.h>
+#include <linux/bitops.h>
 #include <linux/io.h>
 #include <linux/errno.h>
 #include <asm/byteorder.h>
index 93b88d17d4041ad0dfe9cf674971eaf54977ebb6..9d20e283839c80d0f5d912ea16d88b0bea892d66 100644 (file)
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <log.h>
 #include <mmc.h>
 #include <part.h>
 #include <malloc.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/byteorder.h>
 #include <asm/arch/clk.h>
index c2319b4134535f9f5f066a9d8054a4c92ee3d525..91e2e3f0b87200461ebade9e04059485b25b8203 100644 (file)
@@ -9,6 +9,7 @@
 #include <errno.h>
 #include <malloc.h>
 #include <sdhci.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 8d4f886cb49ae589e54b20110822bfa95be7fcd3..d3f1eddf4506e74f9fc4e07b32c93c25fca32009 100644 (file)
@@ -13,6 +13,8 @@
 #include <asm/unaligned.h>
 #include <errno.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <mach/jz4780.h>
 #include <wait_bit.h>
 
index f5e1f2cbbd32fbf5af8cab6a1de2a3a5a74a4557..2bbe673b91299d0d6d61b975cd43c44eb9e97f2f 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <malloc.h>
 #include <sdhci.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/kona-common/clk.h>
 
index 86c1a7164a93e26e378d8154c9a270634c5aa249..b7f793cd0479d88d84c089a8947748427777d2b0 100644 (file)
@@ -14,6 +14,7 @@
 #include <asm/io.h>
 #include <asm/gpio.h>
 #include <asm/arch/sd_emmc.h>
+#include <linux/delay.h>
 #include <linux/log2.h>
 
 static inline void *get_regbase(const struct mmc *mmc)
index f313bc1734e7a0d292c283913cb4069b45e00679..c5b7872900104acb19fa76f503ebac1b3302465b 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <mmc.h>
 #include <dm.h>
 #include <dm/device-internal.h>
index 523c0559676d8263a269a98f3e63246d2f725413..620bb930640fc6df2ec41cbd1668504ed7cd98a0 100644 (file)
@@ -8,12 +8,16 @@
 
 #include <config.h>
 #include <common.h>
+#include <blk.h>
 #include <command.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/device-internal.h>
 #include <errno.h>
 #include <mmc.h>
 #include <part.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <power/regulator.h>
 #include <malloc.h>
 #include <memalign.h>
index 64dc147a4787c918c85f5ac66101e1ac59a2c41e..0a74b1fb776ac01aff8f93bec27d266470b29d1b 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <mmc.h>
 #include "mmc_private.h"
 
index b0f5cf58a2b3ae580ccf5e521207fe2fa9de8837..2bb12ceeaf105ad630ebfc7d110c559293fb9676 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 #include <mmc.h>
 #include "mmc_private.h"
index c693fb2d1798261e56cbc2fa1bf67817d613778a..e76ab54838be9692ca33c86e67822bd5bbd6df12 100644 (file)
@@ -8,10 +8,12 @@
  */
 #include <common.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <part.h>
 #include <mmc.h>
 #include <stdlib.h>
+#include <linux/bitops.h>
 #include <u-boot/crc.h>
 #include <linux/crc7.h>
 #include <asm/byteorder.h>
index b52ff9f3bc0fd53d9cd769b9f80a2d5dd2fa26fb..6a4453ca02e76e9d8db2fadab59aff83c24b8ac2 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <blk.h>
 #include <dm.h>
 #include <part.h>
 #include <div64.h>
index 958ac17954b2b7bcfd37e4bb407fc289c69a2046..8e7745e2332eb6a92fdd3a3453a9fecf0e04f16e 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <part.h>
 #include <mmc.h>
index 9414eff42bafa65331da3c0130257aadb0fe9680..e3c352b44a85e49f6e3ab8e43b52c9a2f24668d1 100644 (file)
  */
 
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 #include <mmc.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
index 4d0dc3393697363e5b1a813ba4b47fb1540f0bb3..8636cd713a36219038eec6a8d656cc57a03b955c 100644 (file)
@@ -25,6 +25,7 @@
 #include <config.h>
 #include <common.h>
 #include <cpu_func.h>
+#include <log.h>
 #include <malloc.h>
 #include <memalign.h>
 #include <mmc.h>
@@ -33,6 +34,7 @@
 #if defined(CONFIG_OMAP54XX) || defined(CONFIG_OMAP44XX)
 #include <palmas.h>
 #endif
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/arch/mmc_host_def.h>
 #ifdef CONFIG_OMAP54XX
@@ -48,6 +50,8 @@
 #endif
 #include <dm.h>
 #include <dm/devres.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <power/regulator.h>
 #include <thermal.h>
index a4dcdb5cffca9a7199d7882fc14934f6c5ce05ee..cc6014703cc293adccb9a378d3c560415d26efe0 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/regs-mmc.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <malloc.h>
index 88a7160b0a0b7c975ccf51b0a4336f73ebcdd890..d6ea99d2ceead972aaa6185b2e050fd1a8dff1fe 100644 (file)
@@ -7,11 +7,14 @@
 #include <bouncebuf.h>
 #include <clk.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <malloc.h>
 #include <mmc.h>
 #include <dm.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
 #include <linux/compat.h>
+#include <linux/delay.h>
 #include <linux/dma-direction.h>
 #include <linux/io.h>
 #include <linux/sizes.h>
index a0e1be8794dc77fecf577c00960a2c4bd8b9697b..638107a7ff66f9082c85fda911d7ab5a9e6d5453 100644 (file)
@@ -9,12 +9,14 @@
 #include <dt-structs.h>
 #include <dwmmc.h>
 #include <errno.h>
+#include <log.h>
 #include <mapmem.h>
 #include <pwrseq.h>
 #include <syscon.h>
 #include <asm/gpio.h>
 #include <asm/arch-rockchip/clock.h>
 #include <asm/arch-rockchip/periph.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 
 struct rockchip_mmc_plat {
index ee6dbe30db5e0bcb951c6f8bf8fa0c8f29f7f8cb..ea7e506666b048ff05a89a264c82f924ff245fdc 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <log.h>
 #include <memalign.h>
 #include <mmc.h>
 #include <sdhci.h>
index b5fe828dd60a566337f2a4403300cdc9507d149a..24f599e868aab7cc7b6680eb7652ecc12ec21900 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <sdhci.h>
 #include <fdtdec.h>
index 899952d773cdd063122cbb37382f5e8bf82c6231..e86ea8fe096878376c43ccc47ab06ba44075e960 100644 (file)
@@ -8,6 +8,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <mmc.h>
 #include <asm/test.h>
 
index 2d38c2270e5884ce0441b68cce62ed4f12faa683..7b5010b6558953a3a785011ef25430eb94020efd 100644 (file)
@@ -8,6 +8,8 @@
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <linux/bitfield.h>
+#include <linux/bitops.h>
+#include <linux/bug.h>
 #include <linux/io.h>
 #include <linux/iopoll.h>
 #include <linux/sizes.h>
index 8bb4393ce19a16ab8d9e249afc04fcdac445db17..92cc8434af240a7f9f62acb087644db251514aa9 100644 (file)
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <mmc.h>
 #include <sdhci.h>
 #include <dm.h>
+#include <asm/cache.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/dma-mapping.h>
 #include <phys2bus.h>
 
index 29bbb4b3a6f9d3ce57ea068d5e6ca1faf94cc210..2e994d0178d9ff8186294134c38cfbf221e95818 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <log.h>
 #include <watchdog.h>
 #include <command.h>
 #include <mmc.h>
@@ -14,6 +15,8 @@
 #include <dm.h>
 #include <malloc.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/compat.h>
 #include <linux/io.h>
index 2202158c88afa03fdb42109bb5fe2ceefd3035ea..772fe943e4d9496379cedd1089b5e0275dbc167c 100644 (file)
  */
 
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 #include <mmc.h>
 #include <dm.h>
+#include <part.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/compat.h>
 #include <linux/io.h>
index 786cdc700a56b7486b9096cf2e0cf6250fc04d0a..892222d27da9ec913b7cc5a4abab6fbad1e114a2 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/arch/clock_manager.h>
 #include <asm/arch/system_manager.h>
 #include <clk.h>
index d6c75ea60105baab9e2e27ed5c89a74a448fc454..9bcd8ce5f6c15b28287f4ee4863e2d9d6a0ab5d7 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <mmc.h>
 #include <reset-uclass.h>
 #include <sdhci.h>
index fa6fc94ad90872302a1aeb5746b28bf3ac3659f9..6d503562171c377ea7ccea12c330a36466390c9a 100644 (file)
@@ -9,7 +9,12 @@
 #include <cpu_func.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <malloc.h>
+#include <asm/bitops.h>
+#include <asm/cache.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <mmc.h>
 #include <reset.h>
index 9f426661c49d98f38b2c0e4501c35f990135df05..0e03b07ce555fec568cbfb56b4efdea1579a5599 100644 (file)
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <mmc.h>
 #include <clk.h>
@@ -20,6 +21,7 @@
 #include <asm/arch/gpio.h>
 #include <asm/arch/mmc.h>
 #include <asm-generic/gpio.h>
+#include <linux/delay.h>
 
 #ifdef CONFIG_DM_MMC
 struct sunxi_mmc_variant {
index 2b041562a63974e6e9c8dc156aac4fad52fb6baa..cc78a2f2f08e68e50c06da809526e14b3c0280d4 100644 (file)
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <mmc.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <asm/arch-tegra/tegra_mmc.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #if defined(CONFIG_TEGRA30) || defined(CONFIG_TEGRA210)
 #include <asm/arch/clock.h>
index 1dc13db9eaaca8f8cd7504e7f4fb9fa0393bfcd0..20cd237ef0ebccbe2bbcfb1157ca1582fdd54e65 100644 (file)
@@ -13,6 +13,7 @@
 #include <dm/device_compat.h>
 #include <dm/pinctrl.h>
 #include <linux/compat.h>
+#include <linux/delay.h>
 #include <linux/dma-mapping.h>
 #include <linux/io.h>
 #include <linux/sizes.h>
index 2f671df4bc944f825967916e1841f5ed317fb308..9062300c64f7a7df1da62a54c75628591393aad9 100644 (file)
@@ -7,6 +7,7 @@
 #ifndef __TMIO_COMMON_H__
 #define __TMIO_COMMON_H__
 
+#include <linux/bitops.h>
 #define TMIO_SD_CMD                    0x000   /* command */
 #define   TMIO_SD_CMD_NOSTOP           BIT(14) /* No automatic CMD12 issue */
 #define   TMIO_SD_CMD_MULTI            BIT(13) /* multiple block transfer */
index 829b75683b2c80c680aab56a12162949b38c8585..e765dd384acb33df92868ff134b7b08c9818495f 100644 (file)
@@ -17,6 +17,8 @@
 #include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <malloc.h>
 #include <sdhci.h>
index 18925d01fa0b2ef5145f829ca9527e0274669ee0..de404aa9560d61378c9c150d83260c0ce8cd2773 100644 (file)
@@ -9,7 +9,9 @@
 #include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <linux/delay.h>
 #include "mmc_private.h"
+#include <log.h>
 #include <dm/device_compat.h>
 #include <linux/err.h>
 #include <linux/libfdt.h>
index 1d32febe07c863f7fc7c71e423a54f535ea846c6..cd4d32959a0dfbff07bfee46b661a25bb8cf4915 100644 (file)
@@ -9,8 +9,10 @@
 #include <errno.h>
 #include <fdt_support.h>
 #include <flash.h>
+#include <log.h>
 #include <mtd.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 4ce183b6f313fcdf4898a070e04b5fa6f091f954..b7289ba5394b1f976eb53bac7c7a56d776a35b06 100644 (file)
 #include <env.h>
 #include <errno.h>
 #include <fdt_support.h>
+#include <flash.h>
+#include <init.h>
 #include <irq_func.h>
+#include <log.h>
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <asm/byteorder.h>
 #include <asm/unaligned.h>
 #include <env_internal.h>
+#include <linux/delay.h>
 #include <mtd/cfi_flash.h>
 #include <watchdog.h>
 
index f59b2bc62fba010e6d4778b2262bb91055c8d028..859c7fd4ec246a97600f0599bf7a51cce45bc05a 100644 (file)
@@ -12,6 +12,8 @@
 /*#define DEBUG*/
 
 #include <common.h>
+#include <flash.h>
+#include <log.h>
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <asm/byteorder.h>
index db20a6b0b245182ce41110389b646a1b0e94177b..9360d4ed17207ff3082ba05c1a08dd26182f70bd 100644 (file)
@@ -5,6 +5,7 @@
  */
 #include <common.h>
 #include <env.h>
+#include <log.h>
 #include <malloc.h>
 #include <dm/device.h>
 #include <dm/uclass-internal.h>
index 5621c3fd266e48d532a453029df7a36d3fcfe7b1..684bc949985b0f7916eb201333697a9860e23800 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #ifndef __UBOOT__
+#include <log.h>
 #include <dm/devres.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
@@ -20,6 +21,7 @@
 #include <asm/div64.h>
 #else
 #include <div64.h>
+#include <linux/bug.h>
 #include <linux/compat.h>
 #endif
 
index f8d3f4d246ce0c02bee5059b67870d6023b6c2c1..1a4dec34d93ebb85c5a169408d966b0943393488 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #ifndef __UBOOT__
+#include <log.h>
 #include <dm/devres.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
@@ -27,6 +28,8 @@
 #include <linux/gfp.h>
 #include <linux/slab.h>
 #else
+#include <linux/bitops.h>
+#include <linux/bug.h>
 #include <linux/err.h>
 #include <ubi_uboot.h>
 #endif
index 56acdbf65ba998c9eed092222fe2715d00497c42..d1f6029b2bf0626c6f50089b301138d0bd90e508 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #ifndef __UBOOT__
+#include <log.h>
 #include <dm/devres.h>
 #include <linux/module.h>
 #include <linux/types.h>
@@ -20,6 +21,7 @@
 
 #include <common.h>
 #include <malloc.h>
+#include <linux/bug.h>
 #include <linux/errno.h>
 #include <linux/compat.h>
 #include <ubi_uboot.h>
index 6a3a6f67518b52b8432a599dcb02b2d35f03162b..9837733beeed0ce4aa2641c44c061063b6060a92 100644 (file)
@@ -3,6 +3,7 @@
 #include <common.h>
 #include <eeprom.h>
 #include <asm/ic/ssi.h>
+#include <linux/delay.h>
 
 /*
  * Serial EEPROM opcodes, including start bit
index 133670cb19983698d511a1d136665024814d9f01..84d60b86521ae41db5ddb23d04ca335a6e4c62a9 100644 (file)
@@ -11,6 +11,7 @@
 
 #include <common.h>
 #include <dm/devres.h>
+#include <linux/bitops.h>
 #include <linux/mtd/nand.h>
 #ifndef __UBOOT__
 #include <linux/slab.h>
index bc0accf8c66e25ac01988b4be906a7263c4a726f..6fbd24ba7495b2d99301eead36968df1cbcde287 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/compat.h>
 #include <linux/module.h>
 #endif
+#include <linux/bitops.h>
 #include <linux/mtd/nand.h>
 
 /**
index c4d9d3138839549ad9e33d17084fefed9d403fd1..06b2ff972cad0bd5dda717ddaf6d98b56a2b3925 100644 (file)
@@ -121,15 +121,6 @@ config NAND_DENALI_DT
          Enable the driver for NAND flash on platforms using a Denali NAND
          controller as a DT device.
 
-config NAND_DENALI_SPARE_AREA_SKIP_BYTES
-       int "Number of bytes skipped in OOB area"
-       depends on NAND_DENALI
-       range 0 63
-       help
-         This option specifies the number of bytes to skip from the beginning
-         of OOB area before last ECC sector data starts.  This is potentially
-         used to preserve the bad block marker in the OOB area.
-
 config NAND_LPC32XX_SLC
        bool "Support LPC32XX_SLC controller"
        help
@@ -404,6 +395,15 @@ config SPL_NAND_DENALI
          This is a small implementation of the Denali NAND controller
          for use on SPL.
 
+config NAND_DENALI_SPARE_AREA_SKIP_BYTES
+       int "Number of bytes skipped in OOB area"
+       depends on SPL_NAND_DENALI
+       range 0 63
+       help
+         This option specifies the number of bytes to skip from the beginning
+         of OOB area before last ECC sector data starts.  This is potentially
+         used to preserve the bad block marker in the OOB area.
+
 config SPL_NAND_SIMPLE
        bool "Use simple SPL NAND driver"
        depends on !SPL_NAND_AM33XX_BCH
index ba2f33a96efa8c8ac27f8ece500e20a2257f933d..b6fc5f29c7a8a140413029c2205da9b78b5c72a4 100644 (file)
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <nand.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include <linux/mtd/nand_ecc.h>
 
 static int nand_ecc_pos[] = CONFIG_SYS_NAND_ECCPOS;
index 110c32b396167115a3e84ac55a175acd8c89a167..6c1d64054c64bd3c72c907499a2dddbdbc8b2e2d 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <malloc.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/rawnand.h>
index 996d3dbb710f340b4e53e5265e34c053b6aff21a..5e95901e275169efe85755547cb7486fd122585c 100644 (file)
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/gpio.h>
 #include <asm/arch/gpio.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
+#include <linux/bitops.h>
+#include <linux/bug.h>
+#include <linux/delay.h>
 
 #include <malloc.h>
 #include <nand.h>
index ea7c65a1f6bae43b3e5140710c5cb696381061f1..6313403cd65aa6cfd1a4e53bd494d0f875977fe2 100644 (file)
@@ -4,6 +4,7 @@
 #include <asm/io.h>
 #include <memalign.h>
 #include <nand.h>
+#include <linux/bitops.h>
 #include <linux/err.h>
 #include <linux/errno.h>
 #include <linux/io.h>
index e2f5452c27218c83123608539e8778796e36a016..cd4b24a51a149d13b407d9c62221b8d78a27cef9 100644 (file)
@@ -4,6 +4,7 @@
 #include <asm/io.h>
 #include <memalign.h>
 #include <nand.h>
+#include <linux/bitops.h>
 #include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/ioport.h>
index 0f1a28e4765d044693be6347cfbc5dd9aab66a31..aa042bef15843b03dc4d687c1f65e0bf93bf72cd 100644 (file)
@@ -4,6 +4,7 @@
 #include <asm/io.h>
 #include <memalign.h>
 #include <nand.h>
+#include <linux/bitops.h>
 #include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/ioport.h>
index 3a136155dd92984bd2669c5bb9c9f6571c97af9c..07884550906009d7466568854e46b56bf6bbceeb 100644 (file)
@@ -4,6 +4,7 @@
 #include <asm/io.h>
 #include <memalign.h>
 #include <nand.h>
+#include <linux/bitops.h>
 #include <linux/err.h>
 #include <linux/errno.h>
 #include <linux/io.h>
index 6aca011db252fec9acf85096920c200ad1a0b181..818eae8a7c6cb21464cd0a0029a6087409aba679 100644 (file)
@@ -4,6 +4,7 @@
 #include <asm/io.h>
 #include <memalign.h>
 #include <nand.h>
+#include <linux/bitops.h>
 #include <linux/err.h>
 #include <linux/errno.h>
 #include <linux/io.h>
index 7bdebf586994e50663d2fba07d94c07f1c021fbd..48c0ca69de55b8771822e1c313d22ffd7d1c3cd4 100644 (file)
@@ -19,6 +19,8 @@
 #include <clk.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
+#include <linux/bitops.h>
+#include <linux/bug.h>
 #include <linux/err.h>
 #include <linux/ioport.h>
 #include <linux/completion.h>
index 724bbee75263352d42b8fb9a33f2501b7be54eec..4416b8fa1e6480d67dbabeb1374b96ff4d35f192 100644 (file)
@@ -29,6 +29,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <nand.h>
 #include <dm/uclass.h>
index b525b1be54963c6fec2d2e1b4191aacbbf776ff9..15e90291de0932bbd6fc748b6d74367dd3608235 100644 (file)
@@ -5,12 +5,18 @@
  * Copyright (C) 2009-2010, Intel Corporation and its suppliers.
  */
 
+#include <common.h>
 #include <dm.h>
 #include <malloc.h>
 #include <nand.h>
+#include <asm/cache.h>
+#include <asm/dma-mapping.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <linux/bitfield.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
+#include <linux/dma-direction.h>
 #include <linux/dma-mapping.h>
 #include <linux/err.h>
 #include <linux/errno.h>
@@ -1089,6 +1095,7 @@ static void denali_hw_init(struct denali_nand_info *denali)
        iowrite32(CHIP_EN_DONT_CARE__FLAG, denali->reg + CHIP_ENABLE_DONT_CARE);
 
        iowrite32(0xffff, denali->reg + SPARE_AREA_MARKER);
+       iowrite32(WRITE_PROTECT__FLAG, denali->reg + WRITE_PROTECT);
 }
 
 int denali_calc_ecc_bytes(int step_size, int strength)
index 41b93e660a0ac6e9e2bc116ba963af2c85e45260..2728e8098faa517476497f4b42e3394359b439ea 100644 (file)
@@ -7,6 +7,8 @@
 #include <clk.h>
 #include <dm.h>
 #include <dm/device_compat.h>
+#include <linux/bug.h>
+#include <linux/delay.h>
 #include <linux/io.h>
 #include <linux/ioport.h>
 #include <linux/printk.h>
index b8b29812aabbeeb92b4b07b06bbe52376cf33b83..f72142817e7f85317332270ee1df9b76845303db 100644 (file)
@@ -5,8 +5,10 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/unaligned.h>
+#include <linux/delay.h>
 #include <linux/mtd/rawnand.h>
 #include "denali.h"
 
index 0983fbced3fb19151f5c576cb16a0d1b554dfc75..b7e37416a49b8d0c27ed10be5773f476eba219c6 100644 (file)
@@ -10,6 +10,7 @@
 #include <cpu_func.h>
 #include <asm/io.h>
 #include <fsl_ifc.h>
+#include <part.h>
 #include <linux/mtd/rawnand.h>
 #ifdef CONFIG_CHAIN_OF_TRUST
 #include <fsl_validate.h>
index dfbdbca3aec6de48528eb4c0e8e9985f9032bfc1..6c86a7e76712a80c08c77f2d36652d1787b0e800 100644 (file)
@@ -8,7 +8,9 @@
 
 #include <config.h>
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/fsl_upm.h>
index 7103300060911d5bb0969cd0423cb71100c4bdbb..cf33f2863e1b437c54cec11b7511d24f01714e3e 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <nand.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 #define CONFIG_NAND_MODE_REG   (void *)(CONFIG_SYS_NAND_BASE + 0x20000)
 #define CONFIG_NAND_DATA_REG   (void *)(CONFIG_SYS_NAND_BASE + 0x30000)
index 79d1489dc72c81add92ca4024df019bde40d33fc..b3232ed59d533b8fc6dffacdca82a009c329fb49 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <common.h>
 #include <nand.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <nand.h>
index 8615b112a21ffeb746f939de5855ec5102b49f42..9cca3c55cc0944a7e84ae936b287947b0aa2e38a 100644 (file)
@@ -11,7 +11,9 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <nand.h>
+#include <linux/bug.h>
 #include <linux/mtd/nand_ecc.h>
 #include <linux/errno.h>
 #include <asm/io.h>
index cf97e0f74f34ea185890fb8eda832a136416da7a..59cef205754b58726aa5f4d1467cb4445953d335 100644 (file)
@@ -6,7 +6,9 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <nand.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <asm/io.h>
 #if defined(CONFIG_MX25) || defined(CONFIG_MX27) || defined(CONFIG_MX35) || \
index e3516cd141c93965705d3ebe6c26da2f72dfd300..a7852a841ce2b0e1d54e580ecc10ab75330c903f 100644 (file)
@@ -16,6 +16,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
+#include <asm/cache.h>
 #include <linux/mtd/rawnand.h>
 #include <linux/sizes.h>
 #include <linux/types.h>
index ae50cc37b52fb145d99ea7a0df9f3b9709207532..46dc29df3690cb43ef3677ce5df0228a648da9bc 100644 (file)
@@ -5,9 +5,13 @@
  * Author: Tim Harvey <tharvey@gateworks.com>
  */
 #include <common.h>
+#include <log.h>
 #include <nand.h>
 #include <malloc.h>
 #include <mxs_nand.h>
+#include <asm/cache.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 
 static struct mtd_info *mtd;
index 49d5e261b561caca371c6194966bdbb291647dc3..698968bc11636e2dafadada2078839a59af8e129 100644 (file)
 #if CONFIG_IS_ENABLED(OF_CONTROL)
 #include <fdtdec.h>
 #endif
+#include <log.h>
 #include <malloc.h>
 #include <watchdog.h>
 #include <dm/devres.h>
+#include <linux/bitops.h>
+#include <linux/bug.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/compat.h>
 #include <linux/mtd/mtd.h>
index a6e6e0ef6d75c879dd7264b909e99840c4ac87e4..911472e91e1a74a49494999b784f5837f482e3fc 100644 (file)
  */
 
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 #include <dm/devres.h>
+#include <linux/bug.h>
 #include <linux/compat.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/bbm.h>
index 11a22e021d09f03a8e76302edef8518c400879e7..734d1c6204ebdb0d14e064e0f2ef93904faf477a 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <dm/devres.h>
 /*#include <asm/io.h>*/
 #include <linux/types.h>
index f3c8f7f2cb13a3fd67ddb16381de5617f362df84..5b74ef0dfdbff908f9869fb83613e4e61d41d0aa 100644 (file)
 
 #include <common.h>
 #include <command.h>
+#include <log.h>
 #include <watchdog.h>
 #include <malloc.h>
 #include <memalign.h>
 #include <div64.h>
+#include <asm/cache.h>
 #include <dm/devres.h>
 
 #include <linux/errno.h>
index 6a050501b04b85bb891800008fb32653cffbed85..97fd5690f518237de6c9fdae8741e8345b025906 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <linux/errno.h>
 #include <asm/arch/mem.h>
index 7e3346dfcc2d2b397f9163404f1e8aea4b826ec2..a30e82166b96e01fe8d6cfeb9539f7db7c105bc0 100644 (file)
@@ -12,6 +12,9 @@
 #include <nand.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
+#include <linux/bitops.h>
+#include <linux/bug.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/errno.h>
 #include <asm/io.h>
index 1c212daa1dca87b7667dda82965ad56fdbaf7bef..3306bd8ac94a460e24e395cdc21d45cae5c08e8c 100644 (file)
@@ -7,8 +7,11 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <log.h>
 #include <nand.h>
 #include <reset.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/iopoll.h>
 #include <linux/ioport.h>
index 9b99be10e6e3c8838df675137cd20c1f041643fd..004b6f17a510ea97594cc5f97b2b42021487ec1c 100644 (file)
@@ -31,6 +31,8 @@
 #include <nand.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 
 #include <linux/kernel.h>
index 6cde9814c4f9b246c5d3a987ffd7363c0706c086..85d8013b1a6b6279747a5c4639016d31fec02a82 100644 (file)
@@ -9,7 +9,9 @@
 #include <common.h>
 #include <config.h>
 #include <nand.h>
+#include <linux/bitops.h>
 #include <linux/ctype.h>
+#include <linux/delay.h>
 
 /* registers */
 #define NFC_CTL                    0x00000000
index ae699d1da51b69d851ff5da5c3a6ad29c5db177c..b9f5bdd9535790922c9d36bda2ff1dbebc7e3e60 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <memalign.h>
 #include <nand.h>
@@ -14,6 +15,8 @@
 #include <asm/arch/funcmux.h>
 #include <asm/arch-tegra/clk_rst.h>
 #include <dm/device_compat.h>
+#include <linux/bug.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/gpio.h>
 #include <fdtdec.h>
index 39412974183107ea1cfbd1adc3999ac613b9a13a..fa594552109d484d38c9136ae38aaa0af42a966a 100644 (file)
@@ -7,8 +7,10 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <nand.h>
 #include <linux/ioport.h>
index 397dfa41789813a7c050f4f1f040163bad9a6d58..93371fdde071dd6bfe33536ec443fb63c32f1cf8 100644 (file)
@@ -26,6 +26,8 @@
 #include <spi-mem.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
+#include <linux/bitops.h>
+#include <linux/bug.h>
 #include <linux/mtd/spinand.h>
 #endif
 
index 67d092be2cf191b649b60c4daa16c1d99bdd769c..215f09acc3718564121b2fab45a1d41821e42c1b 100644 (file)
@@ -10,6 +10,7 @@
 #include <linux/device.h>
 #include <linux/kernel.h>
 #endif
+#include <linux/bug.h>
 #include <linux/mtd/spinand.h>
 
 #define SPINAND_MFR_MACRONIX           0xC2
index 687306e33e685ff75c3272e70b9323b44bd43947..04de51cb46673054e4e9fd656c1485ecb6f26025 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/device.h>
 #include <linux/kernel.h>
 #endif
+#include <linux/bitops.h>
 #include <linux/mtd/spinand.h>
 
 #define SPINAND_MFR_MICRON             0x2c
index 77c25398fcc3b1a1264fbd2750fa8766c9d48312..c4beefa61764272adfa9a0a681fa35c4c454a350 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/device.h>
 #include <linux/kernel.h>
 #endif
+#include <linux/bug.h>
 #include <linux/mtd/spinand.h>
 
 #define SPINAND_MFR_TOSHIBA            0x98
index 6ede98c85d217b2b9d61218b0c073c9344dac8d0..c119486efb7ae326bc9f1169169b6f34279ececd 100644 (file)
@@ -12,6 +12,7 @@
 #include <linux/device.h>
 #include <linux/kernel.h>
 #endif
+#include <linux/bitops.h>
 #include <linux/mtd/spinand.h>
 
 #define SPINAND_MFR_WINBOND            0xEF
index 693bb78b87cfe287d306f9518acd6719af2a8200..36daef01aec82bb4cc47eba3b3fd8e991e25f955 100644 (file)
  */
 
 #include <common.h>
+#include <log.h>
 #include <watchdog.h>
 #include <dm/devres.h>
+#include <linux/bitops.h>
 #include <linux/compat.h>
 #include <linux/mtd/mtd.h>
 #include "linux/mtd/flashchip.h"
index cde342aaecd0d310ab1be7699d777637b87fa680..eca9edff603918494df108d52cbf404fa2082698 100644 (file)
@@ -15,6 +15,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <linux/compat.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/onenand.h>
index c4983d15d5117ec5772d2b0221674569629cbdda..ab6f1a8be3ee0485cd13d1beb5add3cbf96ebda6 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 #include <linux/mtd/onenand_regs.h>
 #include <onenand_uboot.h>
 
index 8fff818e42fc5fbe23f3629b563c5e3708a431c4..a58a2c4b6c319aff10a4e936e93761718fcd0e57 100644 (file)
@@ -10,7 +10,9 @@
 #include <dm.h>
 #include <fdt_support.h>
 #include <flash.h>
+#include <init.h>
 #include <irq_func.h>
+#include <linux/bitops.h>
 #include <mach/pic32.h>
 #include <wait_bit.h>
 
index fc2aa22d7f3847e6614576a6244b418733f0a157..65320c7ed98064f47b3f82f1c9dc054250e8d9c4 100644 (file)
@@ -19,6 +19,7 @@
 #include <flash.h>
 #include <mtd.h>
 #include <wait_bit.h>
+#include <linux/bitops.h>
 #include <mtd/cfi_flash.h>
 
 #define RPC_CMNCR              0x0000  /* R/W */
index 084c66e9840b43c06b8b8b2a14182d0011a577b6..8cbe97ee2075a5acfa05f5bf656f2f8b3670e73f 100644 (file)
@@ -12,6 +12,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <spi.h>
 #include <os.h>
index 5ebcca590a2795b8db187889d2dfb9f61e90a0bc..de369aa001dd566a8061a1fe6f00456d9dafd4d9 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <spi.h>
 #include <spi_flash.h>
index 55fb4bd31ac1df1db0d162b3c18174968abc3d20..27d847d421827dacb955b095451e10e12007c46c 100644 (file)
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <flash.h>
+#include <log.h>
 #include <spi.h>
 #include <spi_flash.h>
 #include <div64.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/math64.h>
 
index 940b2e4c9e0043816ed95975c780cf3034148e90..ce0cf4c428b1ea61e9323d16e6d871a89cd72b54 100644 (file)
@@ -9,6 +9,7 @@
 #ifndef _SF_INTERNAL_H_
 #define _SF_INTERNAL_H_
 
+#include <linux/bitops.h>
 #include <linux/types.h>
 #include <linux/compiler.h>
 
index 68c36002bee26fa475d023b9711bd699dfa2c916..987fac2501f41d76affcb8a3ea0c6eddfd711162 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <flash.h>
 #include <malloc.h>
 #include <linux/errno.h>
 #include <linux/mtd/mtd.h>
index 72b6ee702d4cd9d1b086cc74f32e92781af36a10..c2e51f9c68dfb77e972b24c2d7d4ec005a1475b0 100644 (file)
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <spi.h>
 #include <spi_flash.h>
index 3d4361493e59c16161a482bb24edb10ab3033b70..56b44ebbe8d0649ec8dc952b0c58c995fb4015d3 100644 (file)
  */
 
 #include <common.h>
+#include <log.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
+#include <linux/bitops.h>
 #include <linux/err.h>
 #include <linux/errno.h>
 #include <linux/log2.h>
index ccc0ab07af5a705a12199d9e22a49335e707c245..55f86d51555c68a8390d696bde7238729cbdbb10 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <dm/device_compat.h>
 #include <linux/err.h>
 #include <linux/errno.h>
index d29a71595dc3027c8937fed6db83b57ed2c7b123..7c652e6c5351e59b8632d275269810c5d7b02cda 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <flash.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/mtd/st_smi.h>
 
index fd0d5506e8faff32b165e29474931ebb5c2fd6f1..95afa2d6bc722b3863f289454d9e02d9a5119183 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <flash.h>
 #include <asm/io.h>
 #include <asm/arch/stm32.h>
 #include "stm32_flash.h"
index f02a06fc35d5301aeacaf23d7faf3cb75db0bc11..e488caa5547b8cc0158efe7e85dd5e17b621f0c9 100644 (file)
@@ -70,6 +70,7 @@
  */
 
 #ifndef __UBOOT__
+#include <log.h>
 #include <dm/devres.h>
 #include <linux/err.h>
 #include <linux/slab.h>
@@ -78,6 +79,7 @@
 #include <u-boot/crc.h>
 #else
 #include <div64.h>
+#include <linux/bug.h>
 #include <linux/err.h>
 #endif
 
index 7de65bc7c3ef608b75846e1e3c2bf902c2426aee..61e38ba1ab777f9a7caf606f844152eda7039ed1 100644 (file)
@@ -17,6 +17,7 @@
  */
 
 #ifndef __UBOOT__
+#include <log.h>
 #include <dm/devres.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
index 8428278e215fdf3ddd431b92381d2190d7c3cf5b..9d4337bcfffd25ba1cc8a957ba2a1beaa3437476 100644 (file)
@@ -29,6 +29,7 @@
  */
 
 #ifndef __UBOOT__
+#include <log.h>
 #include <dm/devres.h>
 #include <linux/slab.h>
 #include <linux/crc32.h>
index a3f5e3e1a9307cda22797e78e0a9c2f45dcc03c3..b54b56375b447b82054cbcb1216b03af3d365850 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #ifndef __UBOOT__
+#include <log.h>
 #include <dm/devres.h>
 #include <linux/crc32.h>
 #include <linux/err.h>
@@ -15,6 +16,7 @@
 #include <div64.h>
 #include <malloc.h>
 #include <ubi_uboot.h>
+#include <linux/bug.h>
 #endif
 
 #include <linux/compat.h>
index 8ba22d814226411ecee68a5afbe6155c54a14c5d..b8b878b9182d852cf54f504bb7ad1824d5fbdd8d 100644 (file)
@@ -74,6 +74,7 @@
  */
 
 #ifndef __UBOOT__
+#include <log.h>
 #include <dm/devres.h>
 #include <linux/crc32.h>
 #include <linux/err.h>
index 3f7ee59c946b6962ad61da7e25c524623c816fcf..81275deaeb77ecd65fd3c15dc6fb76f957116c97 100644 (file)
@@ -7,6 +7,7 @@
 
 /* Here we keep miscellaneous functions which are used all over the UBI code */
 
+#include <log.h>
 #include <malloc.h>
 #include <ubi_uboot.h>
 #include "ubi.h"
index 0f7951c8590e8aa527d22bd479d2749fb8936289..28a362aa14a9a85164b002186c3864f8cf95e239 100644 (file)
@@ -26,6 +26,7 @@
  */
 
 #ifndef __UBOOT__
+#include <log.h>
 #include <malloc.h>
 #include <linux/uaccess.h>
 #else
index 2114abbe7c365390a6e01758a1eaaf58c372247e..0bfedd0debd697f6dc44fed4b18b0533e4bfa0c9 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #ifndef __UBOOT__
+#include <log.h>
 #include <dm/devres.h>
 #include <linux/err.h>
 #include <linux/slab.h>
index 123c2f344de152597f107d22f38e22fc33f4a4df..a2b5352cb2da4d5c4545343fc43c6ce1eda2fd7d 100644 (file)
@@ -46,6 +46,7 @@
  */
 
 #ifndef __UBOOT__
+#include <log.h>
 #include <dm/devres.h>
 #include <linux/crc32.h>
 #include <linux/err.h>
@@ -54,6 +55,7 @@
 #include <u-boot/crc.h>
 #else
 #include <ubi_uboot.h>
+#include <linux/bug.h>
 #endif
 
 #include <linux/err.h>
index 4038b7f04e0419eba6eb5ad24b5016f6ce6e2480..bae402418fb1daabfa5aea93c15336767de030a2 100644 (file)
@@ -86,6 +86,7 @@
  */
 
 #ifndef __UBOOT__
+#include <log.h>
 #include <dm/devres.h>
 #include <linux/slab.h>
 #include <linux/crc32.h>
index 00102fcf748e6020b5de4ffee687ae9236ea2163..03b31f002b95f4a642c4fec7601330a61344837b 100644 (file)
@@ -9,9 +9,11 @@
 
 #include <common.h>
 #include <errno.h>
+#include <linux/bug.h>
 #include <u-boot/crc.h>
 #include <ubispl.h>
 
+#include <linux/bitops.h>
 #include <linux/crc32.h>
 
 #include "ubispl.h"
index f7855c92d38cbc490f67f50fa490a79ad6c4556e..0b08de0ef4583d17548a430d5ca0128ba0a3f90c 100644 (file)
@@ -307,6 +307,20 @@ config FSLDMAFEC
          This driver supports the network interface units in the
          ColdFire family.
 
+config KS8851_MLL
+       bool "Microchip KS8851-MLL controller driver"
+       help
+         The Microchip KS8851 parallel bus external ethernet interface chip.
+
+if KS8851_MLL
+if !DM_ETH
+config KS8851_MLL_BASEADDR
+       hex "Microchip KS8851-MLL Base Address"
+       help
+         Define this to hold the physical address of the device (I/O space)
+endif #DM_ETH
+endif #KS8851_MLL
+
 config MVGBE
        bool "Marvell Orion5x/Kirkwood network interface support"
        depends on ARCH_KIRKWOOD || ARCH_ORION5X
index e3a7222efba94ae14fe6a2d1fd15ed24ad7fef45..3b5d11f956d184fd6ce061b5e37e5d2574bfa412 100644 (file)
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <miiphy.h>
 #include <malloc.h>
+#include <net.h>
+#include <asm/cache.h>
+#include <linux/bitops.h>
 #include <linux/compiler.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/mii.h>
 #include <wait_bit.h>
index a511068d9ae100c2b01d73c34b106ab03d098be4..93b26da39261093fbc7dfd7db9dffeb5d63f6fed 100644 (file)
@@ -13,6 +13,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <fdt_support.h>
+#include <log.h>
 #include <memalign.h>
 #include <miiphy.h>
 #include <net.h>
index 2b1af8142978d6526989838d5dd50e85d5f93150..79509b80847bb8277af0b41af02af800195334fc 100644 (file)
@@ -11,6 +11,7 @@
 #ifndef _ALTERA_TSE_H_
 #define _ALTERA_TSE_H_
 
+#include <linux/bitops.h>
 #define __packed_1_    __packed __aligned(1)
 
 /* dma type */
index da6662c7ee811dda80794fe7fe710b96da1f8c51..3ee119bcbcce232d9edb5f9896a751bd74aa1c80 100644 (file)
  */
 
 #include <common.h>
+#include <log.h>
 #include <net.h>
 #include <malloc.h>
 #include <miiphy.h>
 #include <netdev.h>
 #include <asm/types.h>
 #include <asm/byteorder.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/mii.h>
 #include <asm/io.h>
index 323347857170cffd6dea1b7084e0179aedb2bb0c..4e4ad61da4ef1ccb66c5c8f2f51237cc8a49bfa2 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/at91_emac.h>
@@ -17,6 +18,7 @@
 #include <netdev.h>
 #include <malloc.h>
 #include <miiphy.h>
+#include <linux/delay.h>
 #include <linux/mii.h>
 
 #undef MII_DEBUG
index 261fde00c153885f509877488cafcce0226a6372..28cb41272a9ea7470049bacac0d76d96f7e7ef3a 100644 (file)
  */
 #include <common.h>
 #include <command.h>
+#include <log.h>
 #include <net.h>
 #include <malloc.h>
+#include <linux/delay.h>
 #include <linux/mii.h>
 #include "ax88180.h"
 
@@ -117,7 +119,7 @@ static int ax88180_phy_reset (struct eth_device *dev)
 
        /* Wait for the reset to complete, or time out (500 ms) */
        while (ax88180_mdio_read (dev, MII_BMCR) & BMCR_RESET) {
-               udelay (1000);
+               udelay(1000);
                if (--delay_cnt == 0) {
                        printf ("Failed to reset PHY!\n");
                        return -1;
@@ -176,7 +178,7 @@ static int ax88180_poll_tx_complete (struct eth_device *dev)
                if ((tmpval & txbs_txdp) == 0)
                        break;
 
-               udelay (100);
+               udelay(100);
        }
 
        if (TimeOutCnt)
@@ -341,7 +343,7 @@ static void ax88180_media_config (struct eth_device *dev)
                if (bmsr_val & BMSR_LSTATUS) {
                        break;
                }
-               udelay (100);
+               udelay(100);
        }
 
        bmsr_val = ax88180_mdio_read (dev, MII_BMSR);
@@ -363,7 +365,7 @@ static void ax88180_media_config (struct eth_device *dev)
                                if (bmsr_val & BMSR_ANEGCOMPLETE) {
                                        break;
                                }
-                               udelay (100);
+                               udelay(100);
                        }
                } else
                        debug ("ax88180: Auto-negotiation is disabled.\n");
@@ -679,7 +681,7 @@ static void ax88180_read_mac_addr (struct eth_device *dev)
                tmp_regval = INW (dev, PROMCTRL);
                if ((tmp_regval & RELOAD_EEPROM) == 0)
                        break;
-               udelay (1000);
+               udelay(1000);
        }
 
        /* Get MAC addresses */
index 01c1ae27299c1f45e5b9c462b044582c507940e6..d161f0e09c36e53571f364d8f3a2d26c6a554a06 100644 (file)
@@ -3,6 +3,7 @@
  * (c) 2007 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
  */
 #include <common.h>
+#include <linux/delay.h>
 #include "ax88796.h"
 
 /*
index 6a25f67c30bc6869c5a9115188efc3f43cb1eb6a..3caf0f33109bb1e32af1426d3943e30dd37fffbd 100644 (file)
 #include <config.h>
 #include <common.h>
 #include <cpu_func.h>
+#include <log.h>
 #include <malloc.h>
 #include <net.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <phy.h>
+#include <linux/delay.h>
+#include <linux/bitops.h>
 
 #include "bcm-sf2-eth.h"
 #include "bcm-sf2-eth-gmac.h"
index 11f937032f3c434c32033e4eca36e630a94816fb..2998d57c72f799705483b294fe53c62b284f7283 100644 (file)
@@ -4,9 +4,11 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 #include <net.h>
 #include <config.h>
+#include <linux/delay.h>
 
 #include <phy.h>
 #include <miiphy.h>
index fe3532930aa4112e22e708a668b89e915214761b..9ddc0f938f23dfc719a778637aa35c18104fabcf 100644 (file)
@@ -10,6 +10,7 @@
 #include <clk.h>
 #include <dm.h>
 #include <dma.h>
+#include <log.h>
 #include <malloc.h>
 #include <miiphy.h>
 #include <net.h>
index 1200049007e9739f474fa5a9f32d84bd04c3ed43..648fafd3e098ffd6b58a3b2902fc5a5c4e66956c 100644 (file)
@@ -10,6 +10,7 @@
 #include <clk.h>
 #include <dm.h>
 #include <dma.h>
+#include <log.h>
 #include <malloc.h>
 #include <miiphy.h>
 #include <net.h>
@@ -17,6 +18,7 @@
 #include <wait_bit.h>
 #include <asm/io.h>
 #include <dm/device_compat.h>
+#include <linux/delay.h>
 
 #define ETH_PORT_STR                   "brcm,enetsw-port"
 
index e971b556acde730759c4030d37a9f9b7db7fee0d..11b6148ab632283e8fb02499fdddde38873135e1 100644 (file)
  * we only support v5, as used in the Raspberry Pi 4.
  */
 
+#include <log.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <clk.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <fdt_support.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <malloc.h>
 #include <miiphy.h>
index 1b7c94f654d05fb395aa8768e216edfba7542896..5dad69c0b76ac3b08712a7661305b271809e1a32 100644 (file)
@@ -5,7 +5,9 @@
 
 #include <common.h>
 #include <malloc.h>
+#include <net.h>
 #include <linux/compiler.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <asm/io.h>
 
index 9331cdf9387cebd3209e076f5c37b04bc80cb83f..7ec95be6fcf573bc34137c90cec84592f419ee9b 100644 (file)
 
 #include <common.h>
 #include <command.h>
+#include <log.h>
 #include <asm/io.h>
 #include <net.h>
 #include <malloc.h>
+#include <linux/delay.h>
 #include "cs8900.h"
 
 #undef DEBUG
index d008696b0ffb1918af21121067cfed53481d598d..c55358ef8396ee568305e2b7bc14d05303a81a90 100644 (file)
@@ -6,6 +6,8 @@
 #include <net.h>
 #include <netdev.h>
 #include <pci.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 #define SROM_DLEVEL    0
 
index baac277a84dba0d722a95036900492095b891675..b89a68afe4aba557f82e56772db42d4e552115f7 100644 (file)
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <miiphy.h>
 #include <malloc.h>
+#include <net.h>
 #include <pci.h>
 #include <reset.h>
+#include <asm/cache.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <linux/compiler.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/kernel.h>
 #include <asm/io.h>
index 3519a4167a7df96c49d1465ef0eb68b0f7af9c58..ffaf5a14d074131ae7d4c0e8f7ab94b9d43e65d4 100644 (file)
@@ -7,6 +7,9 @@
 #ifndef _DW_ETH_H
 #define _DW_ETH_H
 
+#include <asm/cache.h>
+#include <net.h>
+
 #if CONFIG_IS_ENABLED(DM_GPIO)
 #include <asm-generic/gpio.h>
 #endif
index a6c0a2452f2c8bcb76019f2eaff401f6f760131e..d575a625925d0afcc1edb875761988b45e455d7c 100644 (file)
@@ -54,6 +54,7 @@ TODO: external MII is not functional, only internal at the moment.
 #include <net.h>
 #include <asm/io.h>
 #include <dm9000.h>
+#include <linux/delay.h>
 
 #include "dm9000x.h"
 
index 933d1fc2f11ad67ca4d7cfdcbdfd9f8c305b70fe..98e9b2c663bd055370fd86e5c2219819a3a42036 100644 (file)
@@ -9,6 +9,8 @@
  */
 
 #include <common.h>
+#include <log.h>
+#include <linux/delay.h>
 
 #ifndef CONFIG_DNET_AUTONEG_TIMEOUT
 #define CONFIG_DNET_AUTONEG_TIMEOUT    5000000 /* default value */
index f67c5f45707add0e5a3348f833286584b806229a..3f4437069babb5669936e8d4ec75203ccdb1ede3 100644 (file)
@@ -31,6 +31,7 @@
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <memalign.h>
 #include <miiphy.h>
@@ -39,6 +40,7 @@
 #include <phy.h>
 #include <reset.h>
 #include <wait_bit.h>
+#include <asm/cache.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <eth_phy.h>
@@ -46,6 +48,8 @@
 #include <asm/arch/clock.h>
 #include <asm/mach-imx/sys_proto.h>
 #endif
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 /* Core registers */
 
index 9212920549dd617f45ae5875aa22c45c549f4de4..008da4ab3e77361c644d34b192fe1cac187cbc7b 100644 (file)
@@ -30,13 +30,18 @@ tested on both gig copper and gig fiber boards
  */
 
 #include <common.h>
+#include <command.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <memalign.h>
+#include <net.h>
 #include <pci.h>
+#include <linux/delay.h>
 #include "e1000.h"
+#include <asm/cache.h>
 
 #define TOUT_LOOP   100000
 
@@ -5759,8 +5764,8 @@ struct e1000_hw *e1000_find_card(unsigned int cardnum)
 #endif /* !CONFIG_DM_ETH */
 
 #ifdef CONFIG_CMD_E1000
-static int do_e1000(cmd_tbl_t *cmdtp, int flag,
-               int argc, char * const argv[])
+static int do_e1000(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[])
 {
        unsigned char *mac = NULL;
 #ifdef CONFIG_DM_ETH
index 2ae30855154c2fffe8680f3f5e9695db1d6e7fb5..19ed4777d9ab693eed0288b4fea04d03247cefc9 100644 (file)
@@ -74,8 +74,8 @@ void e1000_lower_ee_clk(struct e1000_hw *hw, uint32_t *eecd);
 #endif
 
 #ifdef CONFIG_E1000_SPI
-int do_e1000_spi(cmd_tbl_t *cmdtp, struct e1000_hw *hw,
-               int argc, char * const argv[]);
+int do_e1000_spi(struct cmd_tbl *cmdtp, struct e1000_hw *hw,
+                int argc, char *const argv[]);
 #endif
 
 /* Enumerated types specific to the e1000 hardware */
index 52b3c79794aebd5f4d7aafd4f03a4376960da287..4fcc65d9782c010ec141991b9dd691381bbd7a4c 100644 (file)
@@ -1,5 +1,7 @@
 #include <common.h>
+#include <command.h>
 #include <console.h>
+#include <linux/delay.h>
 #include "e1000.h"
 #include <malloc.h>
 #include <linux/compiler.h>
@@ -315,8 +317,8 @@ static int e1000_spi_eeprom_program(struct e1000_hw *hw,
        return 0;
 }
 
-static int do_e1000_spi_show(cmd_tbl_t *cmdtp, struct e1000_hw *hw,
-               int argc, char * const argv[])
+static int do_e1000_spi_show(struct cmd_tbl *cmdtp, struct e1000_hw *hw,
+                            int argc, char *const argv[])
 {
        unsigned int length = 0;
        u16 i, offset = 0;
@@ -384,8 +386,8 @@ static int do_e1000_spi_show(cmd_tbl_t *cmdtp, struct e1000_hw *hw,
        return 0;
 }
 
-static int do_e1000_spi_dump(cmd_tbl_t *cmdtp, struct e1000_hw *hw,
-               int argc, char * const argv[])
+static int do_e1000_spi_dump(struct cmd_tbl *cmdtp, struct e1000_hw *hw,
+                            int argc, char *const argv[])
 {
        unsigned int length;
        u16 offset;
@@ -429,8 +431,8 @@ static int do_e1000_spi_dump(cmd_tbl_t *cmdtp, struct e1000_hw *hw,
        return 0;
 }
 
-static int do_e1000_spi_program(cmd_tbl_t *cmdtp, struct e1000_hw *hw,
-               int argc, char * const argv[])
+static int do_e1000_spi_program(struct cmd_tbl *cmdtp, struct e1000_hw *hw,
+                               int argc, char *const argv[])
 {
        unsigned int length;
        const void *source;
@@ -464,8 +466,8 @@ static int do_e1000_spi_program(cmd_tbl_t *cmdtp, struct e1000_hw *hw,
        return 0;
 }
 
-static int do_e1000_spi_checksum(cmd_tbl_t *cmdtp, struct e1000_hw *hw,
-               int argc, char * const argv[])
+static int do_e1000_spi_checksum(struct cmd_tbl *cmdtp, struct e1000_hw *hw,
+                                int argc, char *const argv[])
 {
        uint16_t i, length, checksum = 0, checksum_reg;
        uint16_t *buffer;
@@ -540,8 +542,8 @@ static int do_e1000_spi_checksum(cmd_tbl_t *cmdtp, struct e1000_hw *hw,
        return 0;
 }
 
-int do_e1000_spi(cmd_tbl_t *cmdtp, struct e1000_hw *hw,
-               int argc, char * const argv[])
+int do_e1000_spi(struct cmd_tbl *cmdtp, struct e1000_hw *hw,
+                int argc, char *const argv[])
 {
        if (argc < 1) {
                cmd_usage(cmdtp);
index 2fe0ba6e20faa6dfcc2f45f616cbfb31988c0b91..e186ab4e5f24d8183712c3e21b748eb9f4475d29 100644 (file)
@@ -11,6 +11,7 @@
 #include <asm/io.h>
 #include <pci.h>
 #include <miiphy.h>
+#include <linux/delay.h>
 
 #undef DEBUG
 
@@ -462,7 +463,7 @@ int eepro100_initialize (bd_t * bis)
                 */
                pci_write_config_byte (devno, PCI_LATENCY_TIMER, 0x20);
 
-               udelay (10 * 1000);
+               udelay(10 * 1000);
 
                read_hw_addr (dev, bis);
        }
@@ -480,10 +481,10 @@ static int eepro100_init (struct eth_device *dev, bd_t * bis)
        /* Reset the ethernet controller
         */
        OUTL (dev, I82559_SELECTIVE_RESET, SCBPort);
-       udelay (20);
+       udelay(20);
 
        OUTL (dev, I82559_RESET, SCBPort);
-       udelay (20);
+       udelay(20);
 
        if (!wait_for_eepro100 (dev)) {
                printf ("Error: Can not reset ethernet controller.\n");
@@ -721,10 +722,10 @@ static void eepro100_halt (struct eth_device *dev)
        /* Reset the ethernet controller
         */
        OUTL (dev, I82559_SELECTIVE_RESET, SCBPort);
-       udelay (20);
+       udelay(20);
 
        OUTL (dev, I82559_RESET, SCBPort);
-       udelay (20);
+       udelay(20);
 
        if (!wait_for_eepro100 (dev)) {
                printf ("Error: Can not reset ethernet controller.\n");
@@ -760,19 +761,19 @@ static int read_eeprom (struct eth_device *dev, int location, int addr_len)
                short dataval = (read_cmd & (1 << i)) ? EE_DATA_WRITE : 0;
 
                OUTW (dev, EE_ENB | dataval, SCBeeprom);
-               udelay (1);
+               udelay(1);
                OUTW (dev, EE_ENB | dataval | EE_SHIFT_CLK, SCBeeprom);
-               udelay (1);
+               udelay(1);
        }
        OUTW (dev, EE_ENB, SCBeeprom);
 
        for (i = 15; i >= 0; i--) {
                OUTW (dev, EE_ENB | EE_SHIFT_CLK, SCBeeprom);
-               udelay (1);
+               udelay(1);
                retval = (retval << 1) |
                                ((INW (dev, SCBeeprom) & EE_DATA_READ) ? 1 : 0);
                OUTW (dev, EE_ENB, SCBeeprom);
-               udelay (1);
+               udelay(1);
        }
 
        /* Terminate the EEPROM access. */
index ecb34b245083f8f553d53ec4145f1e665c2bef53..894ffc9d2bd4d54c2d7c9b7a384309d0ead6e3af 100644 (file)
 
 #include <command.h>
 #include <common.h>
+#include <log.h>
+#include <net.h>
 #include <asm/arch/ep93xx.h>
 #include <asm/io.h>
 #include <malloc.h>
 #include <miiphy.h>
+#include <linux/bug.h>
 #include <linux/types.h>
 #include "ep93xx_eth.h"
 
index be5d9add615635f3e8f52454fcb9548591a076fd..81d0f3d7f89935b3c999e409c88b994218e99224 100644 (file)
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/platform_data/net_ethoc.h>
 #include <linux/io.h>
 #include <malloc.h>
index 910c961a60e7a9277eabe26c4363b15c245f6bce..9ae2db033e66b253b1526b38d1128d013ff25cd9 100644 (file)
 #include <cpu_func.h>
 #include <dm.h>
 #include <env.h>
+#include <log.h>
 #include <malloc.h>
 #include <memalign.h>
 #include <miiphy.h>
 #include <net.h>
 #include <netdev.h>
+#include <asm/cache.h>
+#include <linux/delay.h>
 #include <power/regulator.h>
 
 #include <asm/io.h>
index 4c78a4d63f57cf1c38215299fc45b51d6f3b15df..c51a65cb94fbbd80a204ab345cd811cf636ee805 100644 (file)
@@ -9,6 +9,7 @@
 #include <fsl_dtsec.h>
 #include <fsl_mdio.h>
 #include <phy.h>
+#include <linux/delay.h>
 
 #include "fm.h"
 
index 5f1a0233525cf56b1efd7346b4cca0568f72f801..62396d3a16dbffea4d081df611885ec1c052c558 100644 (file)
@@ -5,6 +5,8 @@
  *     Dave Liu <daveliu@freescale.com>
  */
 #include <common.h>
+#include <log.h>
+#include <part.h>
 #include <asm/io.h>
 #ifdef CONFIG_DM_ETH
 #include <dm.h>
@@ -22,6 +24,7 @@
 #include <fsl_dtsec.h>
 #include <fsl_tgec.h>
 #include <fsl_memac.h>
+#include <linux/delay.h>
 
 #include "fm.h"
 
@@ -54,10 +57,10 @@ static void dtsec_configure_serdes(struct fm_eth *priv)
        bus.priv = priv->mac->phyregs;
 #else
        bus.priv = priv->pcs_mdio;
-#endif
        bus.read = memac_mdio_read;
        bus.write = memac_mdio_write;
        bus.reset = memac_mdio_reset;
+#endif
 
 qsgmii_loop:
        /* SGMII IF mode + AN enable only for 1G SGMII, not for 2.5G */
index a6b0d87415f1664184a10be3ac9c2953fe4d79ac..242d27a34eab986404a0a2383a98ffb71ab1d15e 100644 (file)
@@ -4,6 +4,7 @@
  */
 #include <asm/io.h>
 #include <env.h>
+#include <fdt_support.h>
 #include <fsl_qe.h>    /* For struct qe_firmware */
 #include <u-boot/crc.h>
 
index 8669d21afb1277bb72d2d493b6af91e4ee1e73d9..2cc8bbfb104f80010dd671b08a416b08f7fc862c 100644 (file)
@@ -4,11 +4,13 @@
  */
 #include <errno.h>
 #include <common.h>
+#include <net.h>
 #include <asm/io.h>
 #include <fdt_support.h>
 #include <fsl_mdio.h>
 #ifdef CONFIG_FSL_LAYERSCAPE
 #include <asm/arch/fsl_serdes.h>
+#include <linux/libfdt.h>
 #else
 #include <asm/fsl_serdes.h>
 #endif
index 77ea083782650c718bb710d08773a30f80626082..0f0f7b0732d0b000b73ac559506e1e99ef38f17b 100644 (file)
@@ -8,6 +8,7 @@
 #define MAXFRM_MASK    0x0000ffff
 
 #include <common.h>
+#include <log.h>
 #include <phy.h>
 #include <asm/types.h>
 #include <asm/io.h>
index 9f2f6f6d5b0c0c94736e744aa8db227cdf581733..9cc9f3fde3ad46f1caeda4ac0eaedbed4a0d02a5 100644 (file)
@@ -12,6 +12,7 @@
 #include <asm/types.h>
 #include <asm/io.h>
 #include <fsl_tgec.h>
+#include <linux/delay.h>
 
 #include "fm.h"
 
index e161b4e077ac14aeb40b35caf9116223ff913a95..44ce00041ee00241bd22f17db82e32404f5595e0 100644 (file)
@@ -3,8 +3,10 @@
  * Copyright (C) 2014 Freescale Semiconductor
  */
 
+#include <log.h>
 #include <malloc.h>
 #include <asm/arch/clock.h>
+#include <linux/bug.h>
 #include "qbman_portal.h"
 
 /* QBMan portal management command codes */
index ded11a643ea32d6cd421750cc6b8ac38eba5f9f0..53f1300eaf805636c5519f396d30eb936d365b7a 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <errno.h>
 #include <asm/io.h>
+#include <linux/bug.h>
 #include <linux/types.h>
 #include <asm/atomic.h>
 #include <malloc.h>
index cdced68110666ee9d1a197bc9b87e0e4a942d488..8be38e11a843657799683d72933d0f87fb96f85b 100644 (file)
@@ -20,6 +20,7 @@
 
 /* Trace the 3 different classes of read/write access to QBMan. #undef as
  * required. */
+#include <linux/bug.h>
 #undef QBMAN_CCSR_TRACE
 #undef QBMAN_CINH_TRACE
 #undef QBMAN_CENA_TRACE
index fee372968a38e65f7ea2d5d01e1670b45767f53c..e516c3c14577204fd325b284c2ca8b297eaffdc9 100644 (file)
@@ -1,16 +1,19 @@
 // SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright 2014 Freescale Semiconductor, Inc.
- * Copyright 2017-2018 NXP
+ * Copyright 2017-2018, 2020 NXP
  */
 #include <common.h>
 #include <command.h>
 #include <cpu_func.h>
 #include <env.h>
 #include <errno.h>
+#include <image.h>
+#include <log.h>
 #include <malloc.h>
 #include <linux/bug.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <net.h>
 #include <fdt_support.h>
@@ -317,7 +320,7 @@ void fdt_fixup_mc_ddr(u64 *base, u64 *size)
 void fdt_fsl_mc_fixup_iommu_map_entry(void *blob)
 {
        u32 *prop;
-       u32 iommu_map[4];
+       u32 iommu_map[4], phandle;
        int offset;
        int lenp;
 
@@ -346,6 +349,21 @@ void fdt_fsl_mc_fixup_iommu_map_entry(void *blob)
 
        fdt_setprop_inplace(blob, offset, "iommu-map",
                            iommu_map, sizeof(iommu_map));
+
+       /* get phandle to MSI controller */
+       prop = (u32 *)fdt_getprop(blob, offset, "msi-parent", 0);
+       if (!prop) {
+               debug("\n%s: ERROR: missing msi-parent\n", __func__);
+               return;
+       }
+       phandle = fdt32_to_cpu(*prop);
+
+       /* also set msi-map property */
+       fdt_appendprop_u32(blob, offset, "msi-map", FSL_DPAA2_STREAM_ID_START);
+       fdt_appendprop_u32(blob, offset, "msi-map", phandle);
+       fdt_appendprop_u32(blob, offset, "msi-map", FSL_DPAA2_STREAM_ID_START);
+       fdt_appendprop_u32(blob, offset, "msi-map", FSL_DPAA2_STREAM_ID_END -
+                          FSL_DPAA2_STREAM_ID_START + 1);
 }
 
 static int mc_fixup_dpc_mac_addr(void *blob, int dpmac_id,
@@ -463,8 +481,19 @@ static int mc_fixup_dpc(u64 dpc_addr)
 
        /* fixup MAC addresses for dpmac ports */
        nodeoffset = fdt_path_offset(blob, "/board_info/ports");
-       if (nodeoffset < 0)
-               goto out;
+       if (nodeoffset < 0) {
+               err = fdt_increase_size(blob, 512);
+               if (err) {
+                       printf("fdt_increase_size: err=%s\n",
+                              fdt_strerror(err));
+                       goto out;
+               }
+               nodeoffset = fdt_path_offset(blob, "/board_info");
+               if (nodeoffset < 0)
+                       nodeoffset = fdt_add_subnode(blob, 0, "board_info");
+
+               nodeoffset = fdt_add_subnode(blob, nodeoffset, "ports");
+       }
 
        err = mc_fixup_mac_addrs(blob, MC_FIXUP_DPC);
 
@@ -1744,7 +1773,8 @@ err:
        return err;
 }
 
-static int do_fsl_mc(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_fsl_mc(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        int err = 0;
        if (argc < 3)
index fddf5cb0235df5e69bd1732c9b2748afb3272a48..b5ae2ea3eb56db1920a0e123c0190153ffa0f32d 100644 (file)
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <errno.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 #define MC_CMD_HDR_READ_CMDID(_hdr) \
        ((uint16_t)mc_dec((_hdr), MC_CMD_HDR_CMDID_O, MC_CMD_HDR_CMDID_S))
index bee73153d0efeaf5c1abe0506ae33023f392cfe0..2929ae72092e900415ac2108c4ebe23788b85df7 100644 (file)
@@ -7,11 +7,16 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <fdt_support.h>
 #include <malloc.h>
 #include <memalign.h>
+#include <net.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <pci.h>
 #include <miiphy.h>
+#include <linux/bug.h>
+#include <linux/delay.h>
 
 #include "fsl_enetc.h"
 
index 48c3005cb3aa5123aff7af3f61036427acc6a173..37e7e858435b8cc77d513770ab63a2cf595a8396 100644 (file)
@@ -7,6 +7,7 @@
 #ifndef _ENETC_H
 #define _ENETC_H
 
+#include <linux/bitops.h>
 #define enetc_dbg(dev, fmt, args...)   debug("%s:" fmt, dev->name, ##args)
 
 /* PCI function IDs */
index 45954cecb6b6a9fa0d76f59815a3a710d6495f51..73e92b7a0d2ccd09ac4e5f90b5f482da8c452155 100644 (file)
@@ -18,6 +18,7 @@
 #include <config.h>
 #include <net.h>
 #include <miiphy.h>
+#include <linux/delay.h>
 #include <linux/mii.h>
 #include <asm/immap.h>
 #include <asm/fsl_mcdmafec.h>
index 40e6b3ba3950e94833b1940b955e2a6b2ed041e4..e4d08f2ba0131155beef9837e40f93acd28ce047 100644 (file)
  * Copyright (C) 2018, IBM Corporation.
  */
 
+#include <common.h>
 #include <clk.h>
 #include <cpu_func.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <miiphy.h>
 #include <net.h>
 #include <wait_bit.h>
+#include <asm/cache.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
 #include <linux/io.h>
 #include <linux/iopoll.h>
 
index 9a789e4d5bee34830de8c0ee765e099c47f4182f..f7874ae68b6eea431bd3a1221edcf608b99eb9e6 100644 (file)
@@ -13,6 +13,7 @@
 #define __FTGMAC100_H
 
 /* The registers offset table of ftgmac100 */
+#include <linux/bitops.h>
 struct ftgmac100 {
        unsigned int    isr;            /* 0x00 */
        unsigned int    ier;            /* 0x04 */
index 24bb45f351530f424f5452609f638ed00cc2d7de..4aae7c43fea476e6d3f3f8e09e6a17b9e65ca880 100644 (file)
@@ -12,6 +12,7 @@
 #include <env.h>
 #include <malloc.h>
 #include <net.h>
+#include <linux/delay.h>
 #include <linux/io.h>
 
 #include "ftmac100.h"
index 84082407d277b4197084fecbe3a267735bd64c23..835346cb07d42f830d35d271fd96c1f67df949a3 100644 (file)
@@ -8,8 +8,10 @@
 
 #include <common.h>
 #include <command.h>
+#include <log.h>
 #include <malloc.h>
 #include <net.h>
+#include <asm/cache.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <linux/dma-mapping.h>
index e152faf083dac0582a04715e1bfd62f200293ce4..8d95ee15ffdd7ad3dac7cb67252224e2faacf5e2 100644 (file)
@@ -8,6 +8,8 @@
 #include <common.h>
 #include <dm.h>
 #include <clk.h>
+#include <log.h>
+#include <net.h>
 #include <phy.h>
 #include <syscon.h>
 #include <asm/io.h>
@@ -24,6 +26,7 @@
 #include <asm/arch-rockchip/grf_rv1108.h>
 #include <dm/pinctrl.h>
 #include <dt-bindings/clock/rk3288-cru.h>
+#include <linux/bitops.h>
 #include "designware.h"
 
 DECLARE_GLOBAL_DATA_PTR;
index 0c1dd6834a3c75a70e4c164e88ce750f94fdcb94..2aae7f4863c02c8f9019880534e154ba818663b6 100644 (file)
@@ -4,11 +4,15 @@
  */
 
 #include <cpu_func.h>
+#include <log.h>
 #include <malloc.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <common.h>
 #include <console.h>
+#include <linux/bitops.h>
 #include <linux/bug.h>
+#include <linux/delay.h>
 #include <linux/mii.h>
 #include <miiphy.h>
 #include <net.h>
index 718a7dd01939d8dedb6c3aea07e2f30a88ff5715..3ff173ad3391c7ff9a32873d0765761c8b59b356 100644 (file)
  * Copyright (c) 2011 Roberto Cerati <roberto.cerati@bticino.it>
  */
 
+#include <log.h>
 #include <asm/io.h>
 #include <common.h>
 #include <command.h>
 #include <malloc.h>
 #include <net.h>
 #include <miiphy.h>
+#include <linux/delay.h>
 
 #include "ks8851_mll.h"
 
 #define DRIVERNAME                     "ks8851_mll"
 
-#define MAX_RECV_FRAMES                        32
-#define MAX_BUF_SIZE                   2048
-#define TX_BUF_SIZE                    2000
 #define RX_BUF_SIZE                    2000
 
-static const struct chip_id chip_ids[] =  {
-       {CIDER_ID, "KSZ8851"},
-       {0, NULL},
-};
-
-/*
- * union ks_tx_hdr - tx header data
- * @txb: The header as bytes
- * @txw: The header as 16bit, little-endian words
- *
- * A dual representation of the tx header data to allow
- * access to individual bytes, and to allow 16bit accesses
- * with 16bit alignment.
- */
-union ks_tx_hdr {
-       u8      txb[4];
-       __le16  txw[2];
-};
-
 /*
  * struct ks_net - KS8851 driver private data
- * @net_device : The network device we're bound to
- * @txh                : temporaly buffer to save status/length.
- * @frame_head_info    : frame header information for multi-pkt rx.
- * @statelock  : Lock on this structure for tx list.
- * @msg_enable : The message flags controlling driver output (see ethtool).
- * @frame_cnt  : number of frames received.
+ * @dev                : legacy non-DM ethernet device structure
+ * @iobase     : register base
  * @bus_width  : i/o bus width.
- * @irq                : irq number assigned to this device.
- * @rc_rxqcr   : Cached copy of KS_RXQCR.
- * @rc_txcr    : Cached copy of KS_TXCR.
- * @rc_ier     : Cached copy of KS_IER.
  * @sharedbus  : Multipex(addr and data bus) mode indicator.
- * @cmd_reg_cache      : command register cached.
- * @cmd_reg_cache_int  : command register cached. Used in the irq handler.
- * @promiscuous        : promiscuous mode indicator.
- * @all_mcast  : mutlicast indicator.
- * @mcast_lst_size     : size of multicast list.
- * @mcast_lst          : multicast list.
- * @mcast_bits         : multicast enabed.
- * @mac_addr           : MAC address assigned to this device.
- * @fid                        : frame id.
- * @extra_byte         : number of extra byte prepended rx pkt.
- * @enabled            : indicator this device works.
+ * @extra_byte : number of extra byte prepended rx pkt.
  */
-
-/* Receive multiplex framer header info */
-struct type_frame_head {
-       u16     sts;         /* Frame status */
-       u16     len;         /* Byte count */
-} fr_h_i[MAX_RECV_FRAMES];
-
 struct ks_net {
-       struct net_device       *netdev;
-       union ks_tx_hdr         txh;
-       struct type_frame_head  *frame_head_info;
-       u32                     msg_enable;
-       u32                     frame_cnt;
+#ifndef CONFIG_DM_ETH
+       struct eth_device       dev;
+#endif
+       phys_addr_t             iobase;
        int                     bus_width;
-       int                     irq;
-       u16                     rc_rxqcr;
-       u16                     rc_txcr;
-       u16                     rc_ier;
        u16                     sharedbus;
-       u16                     cmd_reg_cache;
-       u16                     cmd_reg_cache_int;
-       u16                     promiscuous;
-       u16                     all_mcast;
-       u16                     mcast_lst_size;
-       u8                      mcast_lst[MAX_MCAST_LST][MAC_ADDR_LEN];
-       u8                      mcast_bits[HW_MCAST_SIZE];
-       u8                      mac_addr[6];
-       u8                      fid;
+       u16                     rxfc;
        u8                      extra_byte;
-       u8                      enabled;
-} ks_str, *ks;
+};
 
 #define BE3             0x8000      /* Byte Enable 3 */
 #define BE2             0x4000      /* Byte Enable 2 */
 #define BE1             0x2000      /* Byte Enable 1 */
 #define BE0             0x1000      /* Byte Enable 0 */
 
-static u8 ks_rdreg8(struct eth_device *dev, u16 offset)
+static u8 ks_rdreg8(struct ks_net *ks, u16 offset)
 {
        u8 shift_bit = offset & 0x03;
        u8 shift_data = (offset & 1) << 3;
 
-       writew(offset | (BE0 << shift_bit), dev->iobase + 2);
-
-       return (u8)(readw(dev->iobase) >> shift_data);
-}
-
-static u16 ks_rdreg16(struct eth_device *dev, u16 offset)
-{
-       writew(offset | ((BE1 | BE0) << (offset & 0x02)), dev->iobase + 2);
+       writew(offset | (BE0 << shift_bit), ks->iobase + 2);
 
-       return readw(dev->iobase);
+       return (u8)(readw(ks->iobase) >> shift_data);
 }
 
-static void ks_wrreg8(struct eth_device *dev, u16 offset, u8 val)
+static u16 ks_rdreg16(struct ks_net *ks, u16 offset)
 {
-       u8 shift_bit = (offset & 0x03);
-       u16 value_write = (u16)(val << ((offset & 1) << 3));
+       writew(offset | ((BE1 | BE0) << (offset & 0x02)), ks->iobase + 2);
 
-       writew(offset | (BE0 << shift_bit), dev->iobase + 2);
-       writew(value_write, dev->iobase);
+       return readw(ks->iobase);
 }
 
-static void ks_wrreg16(struct eth_device *dev, u16 offset, u16 val)
+static void ks_wrreg16(struct ks_net *ks, u16 offset, u16 val)
 {
-       writew(offset | ((BE1 | BE0) << (offset & 0x02)), dev->iobase + 2);
-       writew(val, dev->iobase);
+       writew(offset | ((BE1 | BE0) << (offset & 0x02)), ks->iobase + 2);
+       writew(val, ks->iobase);
 }
 
 /*
@@ -141,12 +73,12 @@ static void ks_wrreg16(struct eth_device *dev, u16 offset, u16 val)
  * @wptr: buffer address to save data
  * @len: length in byte to read
  */
-static inline void ks_inblk(struct eth_device *dev, u16 *wptr, u32 len)
+static inline void ks_inblk(struct ks_net *ks, u16 *wptr, u32 len)
 {
        len >>= 1;
 
        while (len--)
-               *wptr++ = readw(dev->iobase);
+               *wptr++ = readw(ks->iobase);
 }
 
 /*
@@ -155,42 +87,42 @@ static inline void ks_inblk(struct eth_device *dev, u16 *wptr, u32 len)
  * @wptr: buffer address
  * @len: length in byte to write
  */
-static inline void ks_outblk(struct eth_device *dev, u16 *wptr, u32 len)
+static inline void ks_outblk(struct ks_net *ks, u16 *wptr, u32 len)
 {
        len >>= 1;
 
        while (len--)
-               writew(*wptr++, dev->iobase);
+               writew(*wptr++, ks->iobase);
 }
 
-static void ks_enable_int(struct eth_device *dev)
+static void ks_enable_int(struct ks_net *ks)
 {
-       ks_wrreg16(dev, KS_IER, ks->rc_ier);
+       ks_wrreg16(ks, KS_IER, IRQ_LCI | IRQ_TXI | IRQ_RXI);
 }
 
-static void ks_set_powermode(struct eth_device *dev, unsigned pwrmode)
+static void ks_set_powermode(struct ks_net *ks, unsigned int pwrmode)
 {
-       unsigned pmecr;
+       unsigned int pmecr;
 
-       ks_rdreg16(dev, KS_GRR);
-       pmecr = ks_rdreg16(dev, KS_PMECR);
+       ks_rdreg16(ks, KS_GRR);
+       pmecr = ks_rdreg16(ks, KS_PMECR);
        pmecr &= ~PMECR_PM_MASK;
        pmecr |= pwrmode;
 
-       ks_wrreg16(dev, KS_PMECR, pmecr);
+       ks_wrreg16(ks, KS_PMECR, pmecr);
 }
 
 /*
  * ks_read_config - read chip configuration of bus width.
  * @ks: The chip information
  */
-static void ks_read_config(struct eth_device *dev)
+static void ks_read_config(struct ks_net *ks)
 {
        u16 reg_data = 0;
 
        /* Regardless of bus width, 8 bit read should always work. */
-       reg_data = ks_rdreg8(dev, KS_CCR) & 0x00FF;
-       reg_data |= ks_rdreg8(dev, KS_CCR + 1) << 8;
+       reg_data = ks_rdreg8(ks, KS_CCR) & 0x00FF;
+       reg_data |= ks_rdreg8(ks, KS_CCR + 1) << 8;
 
        /* addr/data bus are multiplexed */
        ks->sharedbus = (reg_data & CCR_SHARED) == CCR_SHARED;
@@ -224,58 +156,58 @@ static void ks_read_config(struct eth_device *dev)
  * not currently specify the exact sequence, we have chosen something
  * that seems to work with our device.
  */
-static void ks_soft_reset(struct eth_device *dev, unsigned op)
+static void ks_soft_reset(struct ks_net *ks, unsigned int op)
 {
        /* Disable interrupt first */
-       ks_wrreg16(dev, KS_IER, 0x0000);
-       ks_wrreg16(dev, KS_GRR, op);
+       ks_wrreg16(ks, KS_IER, 0x0000);
+       ks_wrreg16(ks, KS_GRR, op);
        mdelay(10);     /* wait a short time to effect reset */
-       ks_wrreg16(dev, KS_GRR, 0);
+       ks_wrreg16(ks, KS_GRR, 0);
        mdelay(1);      /* wait for condition to clear */
 }
 
-void ks_enable_qmu(struct eth_device *dev)
+void ks_enable_qmu(struct ks_net *ks)
 {
        u16 w;
 
-       w = ks_rdreg16(dev, KS_TXCR);
+       w = ks_rdreg16(ks, KS_TXCR);
 
        /* Enables QMU Transmit (TXCR). */
-       ks_wrreg16(dev, KS_TXCR, w | TXCR_TXE);
+       ks_wrreg16(ks, KS_TXCR, w | TXCR_TXE);
 
        /* Enable RX Frame Count Threshold and Auto-Dequeue RXQ Frame */
-       w = ks_rdreg16(dev, KS_RXQCR);
-       ks_wrreg16(dev, KS_RXQCR, w | RXQCR_RXFCTE);
+       w = ks_rdreg16(ks, KS_RXQCR);
+       ks_wrreg16(ks, KS_RXQCR, w | RXQCR_RXFCTE);
 
        /* Enables QMU Receive (RXCR1). */
-       w = ks_rdreg16(dev, KS_RXCR1);
-       ks_wrreg16(dev, KS_RXCR1, w | RXCR1_RXE);
+       w = ks_rdreg16(ks, KS_RXCR1);
+       ks_wrreg16(ks, KS_RXCR1, w | RXCR1_RXE);
 }
 
-static void ks_disable_qmu(struct eth_device *dev)
+static void ks_disable_qmu(struct ks_net *ks)
 {
        u16 w;
 
-       w = ks_rdreg16(dev, KS_TXCR);
+       w = ks_rdreg16(ks, KS_TXCR);
 
        /* Disables QMU Transmit (TXCR). */
        w &= ~TXCR_TXE;
-       ks_wrreg16(dev, KS_TXCR, w);
+       ks_wrreg16(ks, KS_TXCR, w);
 
        /* Disables QMU Receive (RXCR1). */
-       w = ks_rdreg16(dev, KS_RXCR1);
+       w = ks_rdreg16(ks, KS_RXCR1);
        w &= ~RXCR1_RXE;
-       ks_wrreg16(dev, KS_RXCR1, w);
+       ks_wrreg16(ks, KS_RXCR1, w);
 }
 
-static inline void ks_read_qmu(struct eth_device *dev, u16 *buf, u32 len)
+static inline void ks_read_qmu(struct ks_net *ks, u16 *buf, u32 len)
 {
        u32 r = ks->extra_byte & 0x1;
        u32 w = ks->extra_byte - r;
 
        /* 1. set sudo DMA mode */
-       ks_wrreg16(dev, KS_RXFDPR, RXFDPR_RXFPAI);
-       ks_wrreg8(dev, KS_RXQCR, (ks->rc_rxqcr | RXQCR_SDA) & 0xff);
+       ks_wrreg16(ks, KS_RXFDPR, RXFDPR_RXFPAI);
+       ks_wrreg16(ks, KS_RXQCR, RXQCR_CMD_CNTL | RXQCR_SDA);
 
        /*
         * 2. read prepend data
@@ -285,50 +217,42 @@ static inline void ks_read_qmu(struct eth_device *dev, u16 *buf, u32 len)
         */
 
        if (r)
-               ks_rdreg8(dev, 0);
+               ks_rdreg8(ks, 0);
 
-       ks_inblk(dev, buf, w + 2 + 2);
+       ks_inblk(ks, buf, w + 2 + 2);
 
        /* 3. read pkt data */
-       ks_inblk(dev, buf, ALIGN(len, 4));
+       ks_inblk(ks, buf, ALIGN(len, 4));
 
        /* 4. reset sudo DMA Mode */
-       ks_wrreg8(dev, KS_RXQCR, (ks->rc_rxqcr & ~RXQCR_SDA) & 0xff);
+       ks_wrreg16(ks, KS_RXQCR, RXQCR_CMD_CNTL);
 }
 
-static void ks_rcv(struct eth_device *dev, uchar **pv_data)
+static int ks_rcv(struct ks_net *ks, uchar *data)
 {
-       struct type_frame_head *frame_hdr = ks->frame_head_info;
-       int i;
+       u16 sts, len;
 
-       ks->frame_cnt = ks_rdreg16(dev, KS_RXFCTR) >> 8;
+       if (!ks->rxfc)
+               ks->rxfc = ks_rdreg16(ks, KS_RXFCTR) >> 8;
 
-       /* read all header information */
-       for (i = 0; i < ks->frame_cnt; i++) {
-               /* Checking Received packet status */
-               frame_hdr->sts = ks_rdreg16(dev, KS_RXFHSR);
-               /* Get packet len from hardware */
-               frame_hdr->len = ks_rdreg16(dev, KS_RXFHBCR);
-               frame_hdr++;
-       }
+       if (!ks->rxfc)
+               return 0;
 
-       frame_hdr = ks->frame_head_info;
-       while (ks->frame_cnt--) {
-               if ((frame_hdr->sts & RXFSHR_RXFV) &&
-                   (frame_hdr->len < RX_BUF_SIZE) &&
-                   frame_hdr->len) {
-                       /* read data block including CRC 4 bytes */
-                       ks_read_qmu(dev, (u16 *)(*pv_data), frame_hdr->len);
-
-                       /* net_rx_packets buffer size is ok (*pv_data) */
-                       net_process_received_packet(*pv_data, frame_hdr->len);
-                       pv_data++;
-               } else {
-                       ks_wrreg16(dev, KS_RXQCR, (ks->rc_rxqcr | RXQCR_RRXEF));
-                       printf(DRIVERNAME ": bad packet\n");
-               }
-               frame_hdr++;
+       /* Checking Received packet status */
+       sts = ks_rdreg16(ks, KS_RXFHSR);
+       /* Get packet len from hardware */
+       len = ks_rdreg16(ks, KS_RXFHBCR);
+
+       if ((sts & RXFSHR_RXFV) && len && (len < RX_BUF_SIZE)) {
+               /* read data block including CRC 4 bytes */
+               ks_read_qmu(ks, (u16 *)data, len);
+               ks->rxfc--;
+               return len - 4;
        }
+
+       ks_wrreg16(ks, KS_RXQCR, RXQCR_CMD_CNTL | RXQCR_RRXEF);
+       printf(DRIVERNAME ": bad packet\n");
+       return 0;
 }
 
 /*
@@ -337,13 +261,13 @@ static void ks_rcv(struct eth_device *dev, uchar **pv_data)
  *
  * Read and check the TX/RX memory selftest information.
  */
-static int ks_read_selftest(struct eth_device *dev)
+static int ks_read_selftest(struct ks_net *ks)
 {
        u16 both_done = MBIR_TXMBF | MBIR_RXMBF;
        u16 mbir;
        int ret = 0;
 
-       mbir = ks_rdreg16(dev, KS_MBIR);
+       mbir = ks_rdreg16(ks, KS_MBIR);
 
        if ((mbir & both_done) != both_done) {
                printf(DRIVERNAME ": Memory selftest not finished\n");
@@ -365,61 +289,55 @@ static int ks_read_selftest(struct eth_device *dev)
        return ret;
 }
 
-static void ks_setup(struct eth_device *dev)
+static void ks_setup(struct ks_net *ks)
 {
        u16 w;
 
        /* Setup Transmit Frame Data Pointer Auto-Increment (TXFDPR) */
-       ks_wrreg16(dev, KS_TXFDPR, TXFDPR_TXFPAI);
+       ks_wrreg16(ks, KS_TXFDPR, TXFDPR_TXFPAI);
 
        /* Setup Receive Frame Data Pointer Auto-Increment */
-       ks_wrreg16(dev, KS_RXFDPR, RXFDPR_RXFPAI);
+       ks_wrreg16(ks, KS_RXFDPR, RXFDPR_RXFPAI);
 
        /* Setup Receive Frame Threshold - 1 frame (RXFCTFC) */
-       ks_wrreg16(dev, KS_RXFCTR, 1 & RXFCTR_THRESHOLD_MASK);
+       ks_wrreg16(ks, KS_RXFCTR, 1 & RXFCTR_THRESHOLD_MASK);
 
        /* Setup RxQ Command Control (RXQCR) */
-       ks->rc_rxqcr = RXQCR_CMD_CNTL;
-       ks_wrreg16(dev, KS_RXQCR, ks->rc_rxqcr);
+       ks_wrreg16(ks, KS_RXQCR, RXQCR_CMD_CNTL);
 
        /*
         * set the force mode to half duplex, default is full duplex
         * because if the auto-negotiation fails, most switch uses
         * half-duplex.
         */
-       w = ks_rdreg16(dev, KS_P1MBCR);
+       w = ks_rdreg16(ks, KS_P1MBCR);
        w &= ~P1MBCR_FORCE_FDX;
-       ks_wrreg16(dev, KS_P1MBCR, w);
+       ks_wrreg16(ks, KS_P1MBCR, w);
 
        w = TXCR_TXFCE | TXCR_TXPE | TXCR_TXCRC | TXCR_TCGIP;
-       ks_wrreg16(dev, KS_TXCR, w);
+       ks_wrreg16(ks, KS_TXCR, w);
 
        w = RXCR1_RXFCE | RXCR1_RXBE | RXCR1_RXUE | RXCR1_RXME | RXCR1_RXIPFCC;
 
        /* Normal mode */
        w |= RXCR1_RXPAFMA;
 
-       ks_wrreg16(dev, KS_RXCR1, w);
+       ks_wrreg16(ks, KS_RXCR1, w);
 }
 
-static void ks_setup_int(struct eth_device *dev)
+static void ks_setup_int(struct ks_net *ks)
 {
-       ks->rc_ier = 0x00;
-
        /* Clear the interrupts status of the hardware. */
-       ks_wrreg16(dev, KS_ISR, 0xffff);
-
-       /* Enables the interrupts of the hardware. */
-       ks->rc_ier = (IRQ_LCI | IRQ_TXI | IRQ_RXI);
+       ks_wrreg16(ks, KS_ISR, 0xffff);
 }
 
-static int ks8851_mll_detect_chip(struct eth_device *dev)
+static int ks8851_mll_detect_chip(struct ks_net *ks)
 {
-       unsigned short val, i;
+       unsigned short val;
 
-       ks_read_config(dev);
+       ks_read_config(ks);
 
-       val = ks_rdreg16(dev, KS_CIDER);
+       val = ks_rdreg16(ks, KS_CIDER);
 
        if (val == 0xffff) {
                /* Special case -- no chip present */
@@ -432,107 +350,95 @@ static int ks8851_mll_detect_chip(struct eth_device *dev)
 
        debug("Read back KS8851 id 0x%x\n", val);
 
-       /* only one entry in the table */
-       val &= 0xfff0;
-       for (i = 0; chip_ids[i].id != 0; i++) {
-               if (chip_ids[i].id == val)
-                       break;
-       }
-       if (!chip_ids[i].id) {
+       if ((val & 0xfff0) != CIDER_ID) {
                printf(DRIVERNAME ": Unknown chip ID %04x\n", val);
                return -1;
        }
 
-       dev->priv = (void *)&chip_ids[i];
-
        return 0;
 }
 
-static void ks8851_mll_reset(struct eth_device *dev)
+static void ks8851_mll_reset(struct ks_net *ks)
 {
        /* wake up powermode to normal mode */
-       ks_set_powermode(dev, PMECR_PM_NORMAL);
+       ks_set_powermode(ks, PMECR_PM_NORMAL);
        mdelay(1);      /* wait for normal mode to take effect */
 
        /* Disable interrupt and reset */
-       ks_soft_reset(dev, GRR_GSR);
+       ks_soft_reset(ks, GRR_GSR);
 
        /* turn off the IRQs and ack any outstanding */
-       ks_wrreg16(dev, KS_IER, 0x0000);
-       ks_wrreg16(dev, KS_ISR, 0xffff);
+       ks_wrreg16(ks, KS_IER, 0x0000);
+       ks_wrreg16(ks, KS_ISR, 0xffff);
 
        /* shutdown RX/TX QMU */
-       ks_disable_qmu(dev);
+       ks_disable_qmu(ks);
 }
 
-static void ks8851_mll_phy_configure(struct eth_device *dev)
+static void ks8851_mll_phy_configure(struct ks_net *ks)
 {
        u16 data;
 
-       ks_setup(dev);
-       ks_setup_int(dev);
+       ks_setup(ks);
+       ks_setup_int(ks);
 
        /* Probing the phy */
-       data = ks_rdreg16(dev, KS_OBCR);
-       ks_wrreg16(dev, KS_OBCR, data | OBCR_ODS_16MA);
+       data = ks_rdreg16(ks, KS_OBCR);
+       ks_wrreg16(ks, KS_OBCR, data | OBCR_ODS_16MA);
 
        debug(DRIVERNAME ": phy initialized\n");
 }
 
-static void ks8851_mll_enable(struct eth_device *dev)
+static void ks8851_mll_enable(struct ks_net *ks)
 {
-       ks_wrreg16(dev, KS_ISR, 0xffff);
-       ks_enable_int(dev);
-       ks_enable_qmu(dev);
+       ks_wrreg16(ks, KS_ISR, 0xffff);
+       ks_enable_int(ks);
+       ks_enable_qmu(ks);
 }
 
-static int ks8851_mll_init(struct eth_device *dev, bd_t *bd)
+static int ks8851_mll_init_common(struct ks_net *ks)
 {
-       struct chip_id *id = dev->priv;
-
-       debug(DRIVERNAME ": detected %s controller\n", id->name);
-
-       if (ks_read_selftest(dev)) {
+       if (ks_read_selftest(ks)) {
                printf(DRIVERNAME ": Selftest failed\n");
                return -1;
        }
 
-       ks8851_mll_reset(dev);
+       ks8851_mll_reset(ks);
 
        /* Configure the PHY, initialize the link state */
-       ks8851_mll_phy_configure(dev);
+       ks8851_mll_phy_configure(ks);
 
-       /* static allocation of private informations */
-       ks->frame_head_info = fr_h_i;
+       ks->rxfc = 0;
 
        /* Turn on Tx + Rx */
-       ks8851_mll_enable(dev);
+       ks8851_mll_enable(ks);
 
        return 0;
 }
 
-static void ks_write_qmu(struct eth_device *dev, u8 *pdata, u16 len)
+static void ks_write_qmu(struct ks_net *ks, u8 *pdata, u16 len)
 {
+       __le16 txw[2];
        /* start header at txb[0] to align txw entries */
-       ks->txh.txw[0] = 0;
-       ks->txh.txw[1] = cpu_to_le16(len);
+       txw[0] = 0;
+       txw[1] = cpu_to_le16(len);
 
        /* 1. set sudo-DMA mode */
-       ks_wrreg16(dev, KS_TXFDPR, TXFDPR_TXFPAI);
-       ks_wrreg8(dev, KS_RXQCR, (ks->rc_rxqcr | RXQCR_SDA) & 0xff);
-       /* 2. write status/lenth info */
-       ks_outblk(dev, ks->txh.txw, 4);
+       ks_wrreg16(ks, KS_TXFDPR, TXFDPR_TXFPAI);
+       ks_wrreg16(ks, KS_RXQCR, RXQCR_CMD_CNTL | RXQCR_SDA);
+       /* 2. write status/length info */
+       ks_outblk(ks, txw, 4);
        /* 3. write pkt data */
-       ks_outblk(dev, (u16 *)pdata, ALIGN(len, 4));
+       ks_outblk(ks, (u16 *)pdata, ALIGN(len, 4));
        /* 4. reset sudo-DMA mode */
-       ks_wrreg8(dev, KS_RXQCR, (ks->rc_rxqcr & ~RXQCR_SDA) & 0xff);
+       ks_wrreg16(ks, KS_RXQCR, RXQCR_CMD_CNTL);
        /* 5. Enqueue Tx(move the pkt from TX buffer into TXQ) */
-       ks_wrreg16(dev, KS_TXQCR, TXQCR_METFE);
+       ks_wrreg16(ks, KS_TXQCR, TXQCR_METFE);
        /* 6. wait until TXQCR_METFE is auto-cleared */
-       do { } while (ks_rdreg16(dev, KS_TXQCR) & TXQCR_METFE);
+       do { } while (ks_rdreg16(ks, KS_TXQCR) & TXQCR_METFE);
 }
 
-static int ks8851_mll_send(struct eth_device *dev, void *packet, int length)
+static int ks8851_mll_send_common(struct ks_net *ks, void *packet, int length)
 {
        u8 *data = (u8 *)packet;
        u16 tmplen = (u16)length;
@@ -542,19 +448,19 @@ static int ks8851_mll_send(struct eth_device *dev, void *packet, int length)
         * Extra space are required:
         * 4 byte for alignment, 4 for status/length, 4 for CRC
         */
-       retv = ks_rdreg16(dev, KS_TXMIR) & 0x1fff;
+       retv = ks_rdreg16(ks, KS_TXMIR) & 0x1fff;
        if (retv >= tmplen + 12) {
-               ks_write_qmu(dev, data, tmplen);
+               ks_write_qmu(ks, data, tmplen);
                return 0;
-       } else {
-               printf(DRIVERNAME ": failed to send packet: No buffer\n");
-               return -1;
        }
+
+       printf(DRIVERNAME ": failed to send packet: No buffer\n");
+       return -1;
 }
 
-static void ks8851_mll_halt(struct eth_device *dev)
+static void ks8851_mll_halt_common(struct ks_net *ks)
 {
-       ks8851_mll_reset(dev);
+       ks8851_mll_reset(ks);
 }
 
 /*
@@ -563,70 +469,208 @@ static void ks8851_mll_halt(struct eth_device *dev)
  * needs to be enough to prevent a packet being discarded while
  * we are processing the previous one.
  */
-static int ks8851_mll_recv(struct eth_device *dev)
+static int ks8851_mll_recv_common(struct ks_net *ks, uchar *data)
 {
        u16 status;
+       int ret = 0;
+
+       status = ks_rdreg16(ks, KS_ISR);
 
-       status = ks_rdreg16(dev, KS_ISR);
+       ks_wrreg16(ks, KS_ISR, status);
 
-       ks_wrreg16(dev, KS_ISR, status);
+       if (ks->rxfc || (status & IRQ_RXI))
+               ret = ks_rcv(ks, data);
 
-       if ((status & IRQ_RXI))
-               ks_rcv(dev, (uchar **)net_rx_packets);
+       if (status & IRQ_LDI) {
+               u16 pmecr = ks_rdreg16(ks, KS_PMECR);
 
-       if ((status & IRQ_LDI)) {
-               u16 pmecr = ks_rdreg16(dev, KS_PMECR);
                pmecr &= ~PMECR_WKEVT_MASK;
-               ks_wrreg16(dev, KS_PMECR, pmecr | PMECR_WKEVT_LINK);
+               ks_wrreg16(ks, KS_PMECR, pmecr | PMECR_WKEVT_LINK);
        }
 
-       return 0;
+       return ret;
 }
 
-static int ks8851_mll_write_hwaddr(struct eth_device *dev)
+static void ks8851_mll_write_hwaddr_common(struct ks_net *ks, u8 enetaddr[6])
 {
        u16 addrl, addrm, addrh;
 
-       addrh = (dev->enetaddr[0] << 8) | dev->enetaddr[1];
-       addrm = (dev->enetaddr[2] << 8) | dev->enetaddr[3];
-       addrl = (dev->enetaddr[4] << 8) | dev->enetaddr[5];
+       addrh = (enetaddr[0] << 8) | enetaddr[1];
+       addrm = (enetaddr[2] << 8) | enetaddr[3];
+       addrl = (enetaddr[4] << 8) | enetaddr[5];
+
+       ks_wrreg16(ks, KS_MARH, addrh);
+       ks_wrreg16(ks, KS_MARM, addrm);
+       ks_wrreg16(ks, KS_MARL, addrl);
+}
+
+#ifndef CONFIG_DM_ETH
+static int ks8851_mll_init(struct eth_device *dev, bd_t *bd)
+{
+       struct ks_net *ks = container_of(dev, struct ks_net, dev);
+
+       return ks8851_mll_init_common(ks);
+}
+
+static void ks8851_mll_halt(struct eth_device *dev)
+{
+       struct ks_net *ks = container_of(dev, struct ks_net, dev);
+
+       ks8851_mll_halt_common(ks);
+}
+
+static int ks8851_mll_send(struct eth_device *dev, void *packet, int length)
+{
+       struct ks_net *ks = container_of(dev, struct ks_net, dev);
+
+       return ks8851_mll_send_common(ks, packet, length);
+}
+
+static int ks8851_mll_recv(struct eth_device *dev)
+{
+       struct ks_net *ks = container_of(dev, struct ks_net, dev);
+       int ret;
+
+       ret = ks8851_mll_recv_common(ks, net_rx_packets[0]);
+       if (ret)
+               net_process_received_packet(net_rx_packets[0], ret);
+
+       return ret;
+}
+
+static int ks8851_mll_write_hwaddr(struct eth_device *dev)
+{
+       struct ks_net *ks = container_of(dev, struct ks_net, dev);
 
-       ks_wrreg16(dev, KS_MARH, addrh);
-       ks_wrreg16(dev, KS_MARM, addrm);
-       ks_wrreg16(dev, KS_MARL, addrl);
+       ks8851_mll_write_hwaddr_common(ks, ks->dev.enetaddr);
 
        return 0;
 }
 
 int ks8851_mll_initialize(u8 dev_num, int base_addr)
 {
-       struct eth_device *dev;
+       struct ks_net *ks;
+
+       ks = calloc(1, sizeof(*ks));
+       if (!ks)
+               return -ENOMEM;
+
+       ks->iobase = base_addr;
 
-       dev = malloc(sizeof(*dev));
-       if (!dev) {
-               printf("Error: Failed to allocate memory\n");
+       /* Try to detect chip. Will fail if not present. */
+       if (ks8851_mll_detect_chip(ks)) {
+               free(ks);
                return -1;
        }
-       memset(dev, 0, sizeof(*dev));
 
-       dev->iobase = base_addr;
+       ks->dev.init = ks8851_mll_init;
+       ks->dev.halt = ks8851_mll_halt;
+       ks->dev.send = ks8851_mll_send;
+       ks->dev.recv = ks8851_mll_recv;
+       ks->dev.write_hwaddr = ks8851_mll_write_hwaddr;
+       sprintf(ks->dev.name, "%s-%hu", DRIVERNAME, dev_num);
+
+       eth_register(&ks->dev);
+
+       return 0;
+}
+#else  /* ifdef CONFIG_DM_ETH */
+static int ks8851_start(struct udevice *dev)
+{
+       struct ks_net *ks = dev_get_priv(dev);
+
+       return ks8851_mll_init_common(ks);
+}
+
+static void ks8851_stop(struct udevice *dev)
+{
+       struct ks_net *ks = dev_get_priv(dev);
 
-       ks = &ks_str;
+       ks8851_mll_halt_common(ks);
+}
+
+static int ks8851_send(struct udevice *dev, void *packet, int length)
+{
+       struct ks_net *ks = dev_get_priv(dev);
+       int ret;
+
+       ret = ks8851_mll_send_common(ks, packet, length);
+
+       return ret ? 0 : -ETIMEDOUT;
+}
+
+static int ks8851_recv(struct udevice *dev, int flags, uchar **packetp)
+{
+       struct ks_net *ks = dev_get_priv(dev);
+       uchar *data = net_rx_packets[0];
+       int ret;
+
+       ret = ks8851_mll_recv_common(ks, data);
+       if (ret)
+               *packetp = (void *)data;
+
+       return ret ? ret : -EAGAIN;
+}
+
+static int ks8851_write_hwaddr(struct udevice *dev)
+{
+       struct ks_net *ks = dev_get_priv(dev);
+       struct eth_pdata *pdata = dev_get_platdata(dev);
+
+       ks8851_mll_write_hwaddr_common(ks, pdata->enetaddr);
+
+       return 0;
+}
+
+static int ks8851_bind(struct udevice *dev)
+{
+       return device_set_name(dev, dev->name);
+}
+
+static int ks8851_probe(struct udevice *dev)
+{
+       struct ks_net *ks = dev_get_priv(dev);
 
        /* Try to detect chip. Will fail if not present. */
-       if (ks8851_mll_detect_chip(dev)) {
-               free(dev);
-               return -1;
-       }
+       ks8851_mll_detect_chip(ks);
 
-       dev->init = ks8851_mll_init;
-       dev->halt = ks8851_mll_halt;
-       dev->send = ks8851_mll_send;
-       dev->recv = ks8851_mll_recv;
-       dev->write_hwaddr = ks8851_mll_write_hwaddr;
-       sprintf(dev->name, "%s-%hu", DRIVERNAME, dev_num);
+       return 0;
+}
+
+static int ks8851_ofdata_to_platdata(struct udevice *dev)
+{
+       struct ks_net *ks = dev_get_priv(dev);
+       struct eth_pdata *pdata = dev_get_platdata(dev);
 
-       eth_register(dev);
+       pdata->iobase = devfdt_get_addr(dev);
+       ks->iobase = pdata->iobase;
 
        return 0;
 }
+
+static const struct eth_ops ks8851_ops = {
+       .start          = ks8851_start,
+       .stop           = ks8851_stop,
+       .send           = ks8851_send,
+       .recv           = ks8851_recv,
+       .write_hwaddr   = ks8851_write_hwaddr,
+};
+
+static const struct udevice_id ks8851_ids[] = {
+       { .compatible = "micrel,ks8851-mll" },
+       { }
+};
+
+U_BOOT_DRIVER(ks8851) = {
+       .name           = "eth_ks8851",
+       .id             = UCLASS_ETH,
+       .of_match       = ks8851_ids,
+       .bind           = ks8851_bind,
+       .ofdata_to_platdata = ks8851_ofdata_to_platdata,
+       .probe          = ks8851_probe,
+       .ops            = &ks8851_ops,
+       .priv_auto_alloc_size = sizeof(struct ks_net),
+       .platdata_auto_alloc_size = sizeof(struct eth_pdata),
+       .flags          = DM_FLAG_ALLOC_PRIV_DMA,
+};
+#endif
index c08bd21f95a84ef4e208516e4c7679c77c7d39d9..13900f10b1c2e06e0ae8ee160c8c7159200a54a1 100644 (file)
@@ -48,6 +48,7 @@
 #include <command.h>
 #include <env.h>
 #include <malloc.h>
+#include <linux/delay.h>
 #include "lan91c96.h"
 #include <net.h>
 #include <linux/compiler.h>
@@ -211,7 +212,7 @@ static void smc_reset(struct eth_device *dev)
        SMC_SELECT_BANK(dev, 0);
        SMC_outw(dev, LAN91C96_RCR_SOFT_RST, LAN91C96_RCR);
 
-       udelay (10);
+       udelay(10);
 
        /* Disable transmit and receive functionality */
        SMC_outw(dev, 0, LAN91C96_RCR);
@@ -438,7 +439,7 @@ static int smc_send_packet(struct eth_device *dev, void *packet,
 
                /* wait for MMU getting ready (low) */
                while (SMC_inw(dev, LAN91C96_MMU) & LAN91C96_MMUCR_NO_BUSY)
-                       udelay (10);
+                       udelay(10);
 
                PRINTK2("MMU ready\n");
 
@@ -455,7 +456,7 @@ static int smc_send_packet(struct eth_device *dev, void *packet,
 
                /* wait for MMU getting ready (low) */
                while (SMC_inw(dev, LAN91C96_MMU) & LAN91C96_MMUCR_NO_BUSY)
-                       udelay (10);
+                       udelay(10);
 
                PRINTK2 ("MMU ready\n");
        }
@@ -600,13 +601,13 @@ static int smc_rcv(struct eth_device *dev)
        }
 
        while (SMC_inw(dev, LAN91C96_MMU) & LAN91C96_MMUCR_NO_BUSY)
-               udelay (1);             /* Wait until not busy */
+               udelay(1);              /* Wait until not busy */
 
        /*  error or good, tell the card to get rid of this packet */
        SMC_outw(dev, LAN91C96_MMUCR_RELEASE_RX, LAN91C96_MMU);
 
        while (SMC_inw(dev, LAN91C96_MMU) & LAN91C96_MMUCR_NO_BUSY)
-               udelay (1);             /* Wait until not busy */
+               udelay(1);              /* Wait until not busy */
 
        if (!is_error) {
                /* Pass the packet up to the protocol layers. */
index 48343dce1c4ff6e186d2177d0cfbf59c45162f93..116b307b67ca84e08ea656acea4a259c5830bcdd 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/types.h>
 #include <malloc.h>
 #include <hwconfig.h>
 #include <phy.h>
 #include <miiphy.h>
+#include <linux/bug.h>
 #include <linux/compat.h>
 #include <fsl-mc/fsl_dpmac.h>
+#include <linux/delay.h>
 
 #include <fsl-mc/ldpaa_wriop.h>
 #include "ldpaa_eth.h"
index ec5184edf887fc4c485d3ef049e70b81ba8cba20..f68daaaff56d122527bd2caa457ce2bc1bc7ed8a 100644 (file)
@@ -7,10 +7,12 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <net.h>
 #include <malloc.h>
 #include <miiphy.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/types.h>
 #include <asm/system.h>
index bd588cab06b37b972238958ca7dc5ffba4230458..424ca59707f2d5549dda2d6998e6cabb1720c5f1 100644 (file)
@@ -6,6 +6,8 @@
 #include <clk.h>
 #include <cpu_func.h>
 #include <dm.h>
+#include <log.h>
+#include <linux/delay.h>
 
 /*
  * The u-boot networking stack is a little weird.  It seems like the
index 8caf0ba6b1ca3b3dbbabff2b6de37901aa5e50f8..697549301f317975dc582f966a0d50c6379e6392 100644 (file)
@@ -19,6 +19,7 @@
 #include <miiphy.h>
 #include <asm/fec.h>
 #include <asm/immap.h>
+#include <linux/delay.h>
 #include <linux/mii.h>
 
 #undef ET_DEBUG
index 3b8ee07c13a073ae75115b9a338d2d42e1947e7e..393605512d980abf7cb3c181d91a9797b8f3844e 100644 (file)
@@ -8,6 +8,7 @@
 #include <config.h>
 #include <net.h>
 #include <netdev.h>
+#include <linux/delay.h>
 
 #ifdef CONFIG_MCF547x_8x
 #include <asm/fsl_mcdmafec.h>
index 3e82898f46e0c9453d83674d6be39d9ad2eb024f..cc02b5ffd45bbe0dee5e0ded73625d9ab75b1cc3 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <miiphy.h>
 #include <i2c.h>
 
index 69b2174ab3d676280f38083026977804da53b202..f9f7dd7cb3631b83bbb885616214f0911d1f3daf 100644 (file)
@@ -12,6 +12,7 @@
 #include <netdev.h>
 #include <asm/cpm_8xx.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 #include <phy.h>
 #include <linux/mii.h>
index 33dd002146c1ee035f5b660f9e58993199ade696..1c9a401de81e62a1fcff825ef700e9565864aa22 100644 (file)
@@ -10,6 +10,8 @@
 #include <dm/of_access.h>
 #include <dm/of_addr.h>
 #include <fdt_support.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/io.h>
 #include <linux/ioport.h>
 #include <miiphy.h>
index 9d24c005c12d2f3496da07d37124caf614252225..1d46d0e5e1e2eae1d6e5fae5b4c6f5b86fc115fc 100644 (file)
@@ -10,6 +10,7 @@
 #include <dm/of_access.h>
 #include <dm/of_addr.h>
 #include <fdt_support.h>
+#include <linux/bitops.h>
 #include <linux/io.h>
 #include <linux/ioport.h>
 #include <miiphy.h>
index 833e233aa5a4377b771471ef57cd812c7e1cafdb..25b9cad42c976dd6807550c23ad2771374cfc02f 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright (c) 2018 Microsemi Corporation
  */
 
+#include <linux/bitops.h>
 #include <linux/io.h>
 #include "mscc_mac_table.h"
 
index d8ee8df47b18b9245826b194fd5c14afcbc426ec..6687787b1a6aa988e44b8b5494b1fc8dabe667b8 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <miiphy.h>
 #include <wait_bit.h>
+#include <linux/bitops.h>
 #include "mscc_miim.h"
 
 #define MIIM_STATUS                    0x0
index f412901f1d431b6455d784c6781aca1313434307..6f747464571792b49345cdd4aacfba480c21d98a 100644 (file)
@@ -3,6 +3,9 @@
  * Copyright (c) 2018 Microsemi Corporation
  */
 
+#include <log.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/io.h>
 #include "mscc_xfer.h"
 
index fe48f371c319ecde951e1349783e8e8727f0dbc4..2a48dc6a1905b928bef26ba070cb304192d97992 100644 (file)
@@ -6,10 +6,12 @@
 #include <common.h>
 #include <config.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <dm/of_access.h>
 #include <dm/of_addr.h>
 #include <fdt_support.h>
+#include <linux/bitops.h>
 #include <linux/io.h>
 #include <linux/ioport.h>
 #include <miiphy.h>
index f05fa42ff3f4f58b5df3f7e7ca84f934d377bd87..d8ee1a76989a69882c80519504f1e7c4c59a3e20 100644 (file)
@@ -6,10 +6,12 @@
 #include <common.h>
 #include <config.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <dm/of_access.h>
 #include <dm/of_addr.h>
 #include <fdt_support.h>
+#include <linux/bitops.h>
 #include <linux/io.h>
 #include <linux/ioport.h>
 #include <miiphy.h>
index bf95a38354d6b8f933f03f33ca5bbbe78bc0aec9..1cf2273142b7c75263a9de63282167543d06ee43 100644 (file)
@@ -10,6 +10,7 @@
 #include <dm/of_access.h>
 #include <dm/of_addr.h>
 #include <fdt_support.h>
+#include <linux/bitops.h>
 #include <linux/io.h>
 #include <linux/ioport.h>
 #include <miiphy.h>
index 404a046422994a5b9378151fcdb78f32e7ccc1c0..64f1c8c828d7e38580bb8bcd23cc989eb0fffdb7 100644 (file)
 #include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <miiphy.h>
 #include <net.h>
 #include <reset.h>
 #include <wait_bit.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <linux/bitfield.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 
 /* Ethernet frame engine register */
index 5ffcc5313d2dc3f8823f5f59d0decf96de64ba0d..86f1360ae35a1e3159b5d27b105990abc9e887eb 100644 (file)
@@ -9,15 +9,19 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <miiphy.h>
+#include <net.h>
 #include <regmap.h>
 #include <reset.h>
 #include <syscon.h>
 #include <wait_bit.h>
+#include <asm/cache.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <dm/device_compat.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/ioport.h>
 #include <linux/mdio.h>
index f2940c9996fd3b772a7a606786cf1d7e20e59d86..be74ac27eaf021fc28009bcea4e39a876e89d2a7 100644 (file)
@@ -10,6 +10,7 @@
 #define _MTK_ETH_H_
 
 /* Frame Engine Register Bases */
+#include <linux/bitops.h>
 #define PDMA_BASE                      0x0800
 #define GDMA1_BASE                     0x0500
 #define GDMA2_BASE                     0x1500
index 6d56360a202e09c2fa6ec9f50b337a97fe4eeaa9..7974dfc78da4d257f491a73c08ab372aa968f067 100644 (file)
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <net.h>
 #include <malloc.h>
 #include <miiphy.h>
 #include <wait_bit.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/types.h>
 #include <asm/system.h>
index ec6805e536e9f385809ee78c2118e2ba55e3d863..a8e93e80fc08eb438a0028c274022429d0717799 100644 (file)
@@ -12,6 +12,7 @@
 #include <phy.h>
 #include <asm/io.h>
 #include <wait_bit.h>
+#include <linux/bitops.h>
 
 #define MVMDIO_SMI_DATA_SHIFT          0
 #define MVMDIO_SMI_PHY_ADDR_SHIFT      16
index d737400a20d93f6dc65865c608ad300cebd6d969..092f619bd5cc75f8019b1da2bd53e31b7af48f54 100644 (file)
 #include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
+#include <log.h>
 #include <net.h>
 #include <netdev.h>
 #include <config.h>
 #include <malloc.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
+#include <linux/bitops.h>
+#include <linux/bug.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <phy.h>
 #include <miiphy.h>
index fcd24868af48605c25e0ec5bf0fc639e970e6c3c..19b9375ee27dd51dbdbc51401d11b59e563304e6 100644 (file)
@@ -16,6 +16,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
+#include <asm/cache.h>
 #include <dm/device-internal.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
@@ -25,6 +26,9 @@
 #include <config.h>
 #include <malloc.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
+#include <linux/bug.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/errno.h>
 #include <phy.h>
@@ -33,6 +37,7 @@
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
 #include <linux/compat.h>
+#include <linux/libfdt.h>
 #include <linux/mbus.h>
 #include <asm-generic/gpio.h>
 #include <fdt_support.h>
index 86f689802e37193c5e99a6811e92ed0cdbf87e57..bf6fa8f2ba2b99167260856b9a310c44a28effae 100644 (file)
@@ -56,6 +56,7 @@
 #include <netdev.h>
 #include <asm/io.h>
 #include <pci.h>
+#include <linux/delay.h>
 
 /* defines */
 #define EEPROM_SIZE 0xb /*12 16-bit chunks, or 24 bytes*/
index e6cd3e9ba07e23fb6f3e1893afd0cc9f828e1648..28a99bb8c48ef61e6c4c3abc60d4d862cf8dab34 100644 (file)
@@ -74,6 +74,7 @@ Add SNMP
 
 #include <common.h>
 #include <command.h>
+#include <linux/delay.h>
 
 /* NE2000 base header file */
 #include "ne2000_base.h"
index a240d06ad45454ea123551a00a7652f5fd0e6eea..55145da2bb66244420299674513c9c3faac76b44 100644 (file)
@@ -75,6 +75,7 @@ Add SNMP
 #include <common.h>
 #include <command.h>
 #include <env.h>
+#include <log.h>
 #include <net.h>
 #include <malloc.h>
 #include <linux/compiler.h>
index eee0956fdb5d361ef483f0782e3897226a89d739..2493608a5a64664dbc218e9242e9c52401cf8b23 100644 (file)
@@ -106,6 +106,7 @@ are GPL, so this is, of course, GPL.
 #endif
 
 /* timeout for tx/rx in s */
+#include <linux/delay.h>
 #define TOUT 5
 /* Ether MAC address size */
 #define ETHER_ADDR_LEN 6
index 73005ff94d9f27635317b183271c25f5124dd186..f1d0630d020489055709476526d74d5d1f302b50 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
+#include <log.h>
 #include <stdio_dev.h>
 #include <net.h>
 
index ea7ece54b6bb0bba003323df3fe266dc98b7c8b7..c292abad07f014349c76b2f3acdc02e545a4e5a3 100644 (file)
 
 /* Includes */
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 #include <net.h>
 #include <netdev.h>
 #include <asm/io.h>
 #include <pci.h>
+#include <linux/delay.h>
 
 /* defines */
 #define DSIZE     0x00000FFF
index b2823701a4118cdf9a76fa867ce696ffe8d5e779..1daafbe2b9bdffc58eca3243032a8ace4e729d6f 100644 (file)
@@ -9,10 +9,12 @@
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/io.h>
 #include <pci.h>
 #include <miiphy.h>
+#include <linux/delay.h>
 #include "pch_gbe.h"
 
 #if !defined(CONFIG_PHYLIB)
index f97e7f8c6a38e3e9668f3ae10fb8df485d0e859c..260a5a38cff2f808cf7a72da749d1918cb3cbf5a 100644 (file)
@@ -8,11 +8,14 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <log.h>
 #include <malloc.h>
 #include <net.h>
 #include <netdev.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <pci.h>
+#include <linux/delay.h>
 
 #define        PCNET_DEBUG_LEVEL       0       /* 0=off, 1=init, 2=rx/tx */
 
index dd8c68d57d0470dbb55be922d80b3c29c0efd7fc..1e69525cb71f991f8f3206ccd1b33d5096f422ca 100644 (file)
@@ -9,6 +9,10 @@
  * @brief PFE utility commands
  */
 
+#include <common.h>
+#include <command.h>
+#include <log.h>
+#include <linux/delay.h>
 #include <net/pfe_eth/pfe_eth.h>
 
 static inline void pfe_command_help(void)
@@ -16,7 +20,7 @@ static inline void pfe_command_help(void)
        printf("Usage: pfe [pe | status | expt ] <options>\n");
 }
 
-static void pfe_command_pe(int argc, char * const argv[])
+static void pfe_command_pe(int argc, char *const argv[])
 {
        if (argc >= 3 && strcmp(argv[2], "pmem") == 0) {
                if (argc >= 4 && strcmp(argv[3], "read") == 0) {
@@ -271,7 +275,7 @@ static void  bmu(int id, void *base)
 #define PEMBOX_ADDR_TMU                0x290
 #define        PESTATUS_ADDR_UTIL      0x0
 
-static void pfe_pe_status(int argc, char * const argv[])
+static void pfe_pe_status(int argc, char *const argv[])
 {
        int do_clear = 0;
        u32 id;
@@ -336,7 +340,7 @@ static void pfe_pe_status(int argc, char * const argv[])
        }
 }
 
-static void pfe_command_status(int argc, char * const argv[])
+static void pfe_command_status(int argc, char *const argv[])
 {
        if (argc >= 3 && strcmp(argv[2], "pe") == 0) {
                pfe_pe_status(argc, argv);
@@ -370,7 +374,7 @@ static const char *register_names[EXPT_REG_COUNT] = {
                " r12", " r13", " r14", " r15"
 };
 
-static void pfe_command_expt(int argc, char * const argv[])
+static void pfe_command_expt(int argc, char *const argv[])
 {
        unsigned int id, i, val, addr;
 
@@ -414,7 +418,7 @@ static void send_dummy_pkt_to_hif(void)
        writel(buf, TMU_PHY_INQ_PKTINFO);
 }
 
-static void pfe_command_stop(int argc, char * const argv[])
+static void pfe_command_stop(int argc, char *const argv[])
 {
        int pfe_pe_id, hif_stop_loop = 10;
        u32 rx_status;
@@ -462,8 +466,8 @@ static void pfe_command_stop(int argc, char * const argv[])
 }
 #endif
 
-static int pfe_command(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+static int pfe_command(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[])
 {
        if (argc == 1 || strcmp(argv[1], "help") == 0) {
                pfe_command_help();
index f70a23521776ceac9bcb389117e162df32477f3b..6f443b4ea81c69d3a2db439b57eb199b17d9db9c 100644 (file)
@@ -4,7 +4,9 @@
  * Copyright 2017 NXP
  */
 
+#include <log.h>
 #include <malloc.h>
+#include <linux/delay.h>
 #include <net/pfe_eth/pfe_eth.h>
 #include <net/pfe_eth/pfe_firmware.h>
 
index 1b5d11ef323c863aa0f31bd467a724b1f71db53d..718e24f14d357d15d86bf565be567e7b9853bc0d 100644 (file)
@@ -6,9 +6,11 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <dm/platform_data/pfe_dm_eth.h>
 #include <net.h>
+#include <linux/delay.h>
 #include <net/pfe_eth/pfe_eth.h>
 #include <net/pfe_eth/pfe_mdio.h>
 
index 13112d9c1a35bb69f51df53f94d4fb9d10d91a7c..0493cfe8724450bd007dc5f25cd246a3fbea827b 100644 (file)
  * files.
  */
 
+#include <image.h>
+#include <log.h>
 #include <malloc.h>
+#include <linux/bitops.h>
 #include <net/pfe_eth/pfe_eth.h>
 #include <net/pfe_eth/pfe_firmware.h>
 #ifdef CONFIG_CHAIN_OF_TRUST
index 7137ac154a63afd682364afffb1419f52361b77a..722f5c238fa1dc45f7d0c0cdb2b8ef073b198ad7 100644 (file)
@@ -3,6 +3,8 @@
  * Copyright 2015-2016 Freescale Semiconductor, Inc.
  * Copyright 2017 NXP
  */
+#include <log.h>
+#include <linux/bitops.h>
 #include <net/pfe_eth/pfe_eth.h>
 #include <net/pfe_eth/pfe/pfe_hw.h>
 
index b990e7fbe222423f446ddeaf783f24740ff2ca8f..3228b8df49d4b4efe4c2564629fb00de93b06ba0 100644 (file)
@@ -5,9 +5,11 @@
  */
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <dm/platform_data/pfe_dm_eth.h>
 #include <net.h>
+#include <linux/delay.h>
 #include <net/pfe_eth/pfe_eth.h>
 
 extern struct gemac_s gem_info[];
index 8ece926dd376992a8d6b3f1b0ff000cf792bc928..68cd3d03fd061e660a5d9433171bd17590d248ac 100644 (file)
@@ -8,7 +8,11 @@
 #include <config.h>
 #include <common.h>
 #include <dm.h>
+#include <log.h>
+#include <net.h>
 #include <phy.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <u-boot/crc.h>
 #include <malloc.h>
 #include <asm/byteorder.h>
index 47ff9f8d44c079cefe98557f9d459b96adc2e452..13f7275d17064bd03043d34845afc3ac9e5a66b0 100644 (file)
@@ -10,6 +10,7 @@
 #include <phy.h>
 #include <dm/device_compat.h>
 #include <linux/bitfield.h>
+#include <linux/bitops.h>
 #include <dt-bindings/net/qca-ar803x.h>
 
 #define AR803x_PHY_DEBUG_ADDR_REG      0x1d
index 30c4812d827d79bc8b76c4e47ffcfde7947ed282..21da53c7e5b3c3c6e918c3f76ceb0e56127fff0b 100644 (file)
@@ -23,6 +23,9 @@
  */
 
 #include <common.h>
+#include <command.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 #include <errno.h>
 #include <malloc.h>
@@ -627,7 +630,7 @@ int phy_b53_init(void)
        return 0;
 }
 
-int do_b53_reg_read(const char *name, int argc, char * const argv[])
+int do_b53_reg_read(const char *name, int argc, char *const argv[])
 {
        u8 page, offset, width;
        struct mii_dev *bus;
@@ -681,7 +684,7 @@ int do_b53_reg_read(const char *name, int argc, char * const argv[])
        return ret;
 }
 
-int do_b53_reg_write(const char *name, int argc, char * const argv[])
+int do_b53_reg_write(const char *name, int argc, char *const argv[])
 {
        u8 page, offset, width;
        struct mii_dev *bus;
@@ -727,7 +730,7 @@ int do_b53_reg_write(const char *name, int argc, char * const argv[])
        return ret;
 }
 
-int do_b53_reg(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_b53_reg(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        const char *cmd, *mdioname;
        int ret = 0;
index 3399fd236625727a5f120158f0dad6494aa44c57..566fcb8de73b15f69fa7b1b25ec3b916ebecbb1b 100644 (file)
@@ -7,6 +7,7 @@
  */
 #include <common.h>
 #include <phy.h>
+#include <linux/delay.h>
 
 /* Broadcom BCM54xx -- taken from linux sungem_phy */
 #define MIIM_BCM54xx_AUXCNTL                   0x18
index ec81dab3f6cb50f73bff6acd5f8e641b9559d1ce..dbc20b14051c6c312d82a7e4ce7d683bd971fb8d 100644 (file)
@@ -9,8 +9,10 @@
 
 #include <config.h>
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 #include <linux/ctype.h>
+#include <linux/delay.h>
 #include <linux/string.h>
 #include <linux/err.h>
 #include <phy.h>
index 50804c130efd1d87d4b326260a16c5106cccc8b8..d435cc1e6c549d76502cb71abd9958bed6f4d386 100644 (file)
@@ -4,8 +4,10 @@
  *
  */
 #include <common.h>
+#include <log.h>
 #include <phy.h>
 #include <dm/devres.h>
+#include <linux/bitops.h>
 #include <linux/compat.h>
 #include <malloc.h>
 
index 93cf44ad4cbd205f8390316c12133c02570493ed..a62c695c5c846a410dd1ea5bae95b89e02404e12 100644 (file)
@@ -8,6 +8,8 @@
 #include <common.h>
 #include <errno.h>
 #include <phy.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 #define PHY_AUTONEGOTIATE_TIMEOUT 5000
 
index e27fc45a281dbe36eecc6d98212da11aa4034f05..98a0c83e68b13b63ba217b222c60852bcb99584b 100644 (file)
@@ -12,6 +12,7 @@
 #include <fdtdec.h>
 #include <micrel.h>
 #include <phy.h>
+#include <linux/bitops.h>
 
 static struct phy_driver KSZ804_driver = {
        .name = "Micrel KSZ804",
index 72bbda5469591fb3b88fe45ba1879e44c04ab5a1..709979f48c99b246aa752841b24359863790d85a 100644 (file)
@@ -9,9 +9,11 @@
  *
  */
 
+#include <log.h>
 #include <miiphy.h>
 #include <bitfield.h>
 #include <time.h>
+#include <linux/bitops.h>
 #include <linux/delay.h>
 
 /* Microsemi PHY ID's */
index 5aff7ed397d902d0e0345cb01184a4346cb82c02..7eff37b24499d274e3116df3bbef995d23bc7a06 100644 (file)
@@ -30,6 +30,9 @@
  */
 
 #include <common.h>
+#include <log.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 #include <bitfield.h>
 #include <errno.h>
index 6fe08b80c1e68c8456cc8192f363824bc1a26b0d..62a7f192149315046d2e821ab8ebf5fa5f69ca34 100644 (file)
@@ -5,7 +5,10 @@
  */
 
 #include <common.h>
+#include <command.h>
+#include <log.h>
 #include <miiphy.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <mv88e6352.h>
 
@@ -230,7 +233,7 @@ int mv88e_sw_reset(const char *devname, u8 phy_addr)
        return -ETIMEDOUT;
 }
 
-int do_mvsw_reg_read(const char *name, int argc, char * const argv[])
+int do_mvsw_reg_read(const char *name, int argc, char *const argv[])
 {
        u16 value = 0, phyaddr, reg, port;
        int ret;
@@ -245,7 +248,7 @@ int do_mvsw_reg_read(const char *name, int argc, char * const argv[])
        return ret;
 }
 
-int do_mvsw_reg_write(const char *name, int argc, char * const argv[])
+int do_mvsw_reg_write(const char *name, int argc, char *const argv[])
 {
        u16 value = 0, phyaddr, reg, port;
        int ret;
@@ -261,7 +264,7 @@ int do_mvsw_reg_write(const char *name, int argc, char * const argv[])
 }
 
 
-int do_mvsw_reg(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_mvsw_reg(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int ret;
        const char *cmd, *ethname;
index adc3ac033e080862134186376f77ad43e0f32bb1..bf1e832be9f1566df4894983a6110302b7b92c7e 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 #include <phy.h>
 #include <net/ncsi.h>
index 505d3ab659072bacf4926ee5b07ca1cb4296512c..cce09c47f9dc18e30a701b1c55c9f327226ec9d4 100644 (file)
 #include <common.h>
 #include <console.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <net.h>
 #include <command.h>
 #include <miiphy.h>
 #include <phy.h>
 #include <errno.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/compiler.h>
 
index 8f0a897a46dc31495f719331a1fb2268294ec469..b4612c1cfd6c8272f04806866174aa93f51f3852 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <linux/bitops.h>
 #include <phy.h>
+#include <linux/delay.h>
 
 #define PHY_RTL8211x_FORCE_MASTER BIT(1)
 #define PHY_RTL8211E_PINE64_GIGABIT_FIX BIT(2)
index 49d6a1ad901e9f2c7d759662026a894574a37a58..60049c2074f31a3bd9b30ee83fccc538efd37be0 100644 (file)
@@ -7,6 +7,7 @@
  */
 #include <common.h>
 #include <phy.h>
+#include <linux/delay.h>
 
 #ifndef CONFIG_PHYLIB_10G
 #error The Teranetics PHY needs 10G support
index 8c20da2682067e6bcf09a3a2ca2427c43aa68900..e2feb17048cc3b3a025c7b5dff8facd94071c053 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <dm.h>
+#include <log.h>
 #include <phy.h>
 #include <config.h>
 #include <common.h>
index 3aa8891efe45c9faa27a4f65acac4a402cd9b110..39dbfdb7da88a739c19663ada648cd9e1683e880 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <log.h>
 #include <phy.h>
 #include <dm.h>
 
index e966be038a644a4ec6ebc842426301898ec6af1b..6a2084947b0330e24acc79f8463ca23a508721d0 100644 (file)
@@ -7,6 +7,7 @@
 #include <cpu_func.h>
 #include <errno.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <net.h>
 #include <miiphy.h>
@@ -14,6 +15,7 @@
 #include <time.h>
 #include <wait_bit.h>
 #include <asm/gpio.h>
+#include <linux/delay.h>
 #include <linux/mii.h>
 
 #include "pic32_eth.h"
index 823c565a9b8d870347c9ebc0e52a50e216882b0a..7b873bc7728bea7d6bfcc211f69811a3d0fa65be 100644 (file)
@@ -7,6 +7,7 @@
 #ifndef __MICROCHIP_PIC32_ETH_H_
 #define __MICROCHIP_PIC32_ETH_H_
 
+#include <linux/bitops.h>
 #include <mach/pic32.h>
 
 /* Ethernet */
index 1aa5b1d8dac7061ca2ef03c32895b6e34b7c534b..d4049cfea525ec45f8838551f6e21b2790f491fc 100644 (file)
@@ -11,6 +11,7 @@
 #include <errno.h>
 #include <wait_bit.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include "pic32_eth.h"
 
 static int pic32_mdio_write(struct mii_dev *bus,
index fb4a628d63caf156eb8dc6bb8183955874075254..393ee9bb816a94283b5d3833bacbf59af5b05b31 100644 (file)
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <miiphy.h>
 #include <malloc.h>
+#include <asm/cache.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/mii.h>
 #include <wait_bit.h>
 #include <asm/io.h>
index 1f083972917780bbf986b44c9c6eb92fdeb206d4..0daeefa489b1ae154bf82f652001464415cea720 100644 (file)
 
 #include <common.h>
 #include <cpu_func.h>
-#include <linux/types.h>
+#include <log.h>
 #include <malloc.h>
 #include <net.h>
 #include <netdev.h>
 #include <asm/io.h>
 #include <pci.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
+#include <linux/types.h>
 
 #define RTL_TIMEOUT    100000
 
index 5ccdfdd68392040ce8866a2d98cbbcc45c3afb23..75058fdadc00ea73bfd0e41951e29690cf06b480 100644 (file)
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <memalign.h>
 #include <net.h>
 #ifndef CONFIG_DM_ETH
 #include <netdev.h>
 #endif
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <pci.h>
+#include <linux/delay.h>
 
 #undef DEBUG_RTL8169
 #undef DEBUG_RTL8169_TX
index 3707ee35eb5c4a4c55fa26017fe41380fe6c801d..4bd94c31031ddd03c12c2d9b0e4c7f399d4c6d17 100644 (file)
@@ -6,6 +6,7 @@
  * Joe Hershberger <joe.hershberger@ni.com>
  */
 
+#include <log.h>
 #include <asm/eth-raw-os.h>
 #include <common.h>
 #include <dm.h>
index c1363923509d0438d31c1a76773b2babb8857a30..4f7e3d42438cb2fbd75f78028330e8a9efc1b832 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <net.h>
 #include <asm/eth.h>
index f8e5d05722ab90feabeebeacbf6cdf0cef2a900e..b26fc7b8eb13bf2bbd19e8f0c3a8181211f3e4b5 100644 (file)
 #include <common.h>
 #include <cpu_func.h>
 #include <env.h>
+#include <log.h>
 #include <malloc.h>
 #include <net.h>
 #include <netdev.h>
 #include <miiphy.h>
+#include <asm/cache.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 
index 5754c3106c9817f6d312f353d5a2fcdb8127dd77..23265eff9362f912c85245d972ed0d4736fcdcc2 100644 (file)
@@ -51,6 +51,7 @@
 #include <command.h>
 #include <config.h>
 #include <malloc.h>
+#include <linux/delay.h>
 #include "smc91111.h"
 #include <net.h>
 
@@ -266,7 +267,7 @@ static inline void smc_wait_mmu_release_complete (struct eth_device *dev)
 
        /* assume bank 2 selected */
        while (SMC_inw (dev, MMU_CMD_REG) & MC_BUSY) {
-               udelay (1);     /* Wait until not busy */
+               udelay(1);      /* Wait until not busy */
                if (++count > 200)
                        break;
        }
@@ -318,7 +319,7 @@ static void smc_reset (struct eth_device *dev)
        SMC_SELECT_BANK (dev, 0);
 
        /* this should pause enough for the chip to be happy */
-       udelay (10);
+       udelay(10);
 
        /* Disable transmit and receive functionality */
        SMC_outw (dev, RCR_CLEAR, RCR_REG);
@@ -333,7 +334,7 @@ static void smc_reset (struct eth_device *dev)
        smc_wait_mmu_release_complete (dev);
        SMC_outw (dev, MC_RESET, MMU_CMD_REG);
        while (SMC_inw (dev, MMU_CMD_REG) & MC_BUSY)
-               udelay (1);     /* Wait until not busy */
+               udelay(1);      /* Wait until not busy */
 
        /* Note:  It doesn't seem that waiting for the MMU busy is needed here,
           but this is a place where future chipsets _COULD_ break.  Be wary
@@ -564,7 +565,7 @@ again:
 
                /* wait for MMU getting ready (low) */
                while (SMC_inw (dev, MMU_CMD_REG) & MC_BUSY) {
-                       udelay (10);
+                       udelay(10);
                }
 
                PRINTK2 ("MMU ready\n");
@@ -583,7 +584,7 @@ again:
 
                /* wait for MMU getting ready (low) */
                while (SMC_inw (dev, MMU_CMD_REG) & MC_BUSY) {
-                       udelay (10);
+                       udelay(10);
                }
 
                PRINTK2 ("MMU ready\n");
@@ -957,19 +958,19 @@ static word smc_read_phy_register (struct eth_device *dev, byte phyreg)
        for (i = 0; i < sizeof bits; ++i) {
                /* Clock Low - output data */
                SMC_outw (dev, mii_reg | bits[i], MII_REG);
-               udelay (SMC_PHY_CLOCK_DELAY);
+               udelay(SMC_PHY_CLOCK_DELAY);
 
 
                /* Clock Hi - input data */
                SMC_outw (dev, mii_reg | bits[i] | MII_MCLK, MII_REG);
-               udelay (SMC_PHY_CLOCK_DELAY);
+               udelay(SMC_PHY_CLOCK_DELAY);
                bits[i] |= SMC_inw (dev, MII_REG) & MII_MDI;
        }
 
        /* Return to idle state */
        /* Set clock to low, data to low, and output tristated */
        SMC_outw (dev, mii_reg, MII_REG);
-       udelay (SMC_PHY_CLOCK_DELAY);
+       udelay(SMC_PHY_CLOCK_DELAY);
 
        /* Restore original bank select */
        SMC_SELECT_BANK (dev, oldBank);
@@ -1078,19 +1079,19 @@ static void smc_write_phy_register (struct eth_device *dev, byte phyreg,
        for (i = 0; i < sizeof bits; ++i) {
                /* Clock Low - output data */
                SMC_outw (dev, mii_reg | bits[i], MII_REG);
-               udelay (SMC_PHY_CLOCK_DELAY);
+               udelay(SMC_PHY_CLOCK_DELAY);
 
 
                /* Clock Hi - input data */
                SMC_outw (dev, mii_reg | bits[i] | MII_MCLK, MII_REG);
-               udelay (SMC_PHY_CLOCK_DELAY);
+               udelay(SMC_PHY_CLOCK_DELAY);
                bits[i] |= SMC_inw (dev, MII_REG) & MII_MDI;
        }
 
        /* Return to idle state */
        /* Set clock to low, data to low, and output tristated */
        SMC_outw (dev, mii_reg, MII_REG);
-       udelay (SMC_PHY_CLOCK_DELAY);
+       udelay(SMC_PHY_CLOCK_DELAY);
 
        /* Restore original bank select */
        SMC_SELECT_BANK (dev, oldBank);
index 013542770dd7acef4263359da6f21cf1201aaa62..4c3acba35a9d8729f6168b8b7565b7c93c5f2162 100644 (file)
@@ -30,6 +30,7 @@
 
 #include <asm/types.h>
 #include <config.h>
+#include <net.h>
 
 /*
  * This function may be called by the board specific initialisation code
index 45ecd6a263382cb5c2a70dec92b6b8c455147887..9d2790e561678174b853d462bd139ac148f93caf 100644 (file)
@@ -11,6 +11,7 @@
 #include <net.h>
 #include <miiphy.h>
 #include <linux/io.h>
+#include <linux/delay.h>
 #include <linux/types.h>
 
 #include "smc911x.h"
index ce66900f4cf9e0ed1978223d84c4120d787fffa4..0a27f3c43efb80905e720ab2405a11792e03e5c6 100644 (file)
@@ -8,6 +8,8 @@
 #ifndef _SMC911X_H_
 #define _SMC911X_H_
 
+#include <net.h>
+
 /* Below are the register offsets and bit definitions
  * of the Lan911x memory space
  */
index 5d66a63a8bf337df00411c9b679287d08eb0b85c..078463568950001ed98cd8a56cae556509b1232f 100644 (file)
@@ -8,13 +8,17 @@
 #include <cpu_func.h>
 #include <dm.h>
 #include <fdt_support.h>
+#include <log.h>
 #include <malloc.h>
 #include <miiphy.h>
 #include <net.h>
 #include <regmap.h>
 #include <reset.h>
 #include <syscon.h>
+#include <asm/cache.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/io.h>
 #include <linux/iopoll.h>
index 1ae776b4464375ddf5b443a93b3ca9ad2c05ea49..99e24c634828b6966c6ae06e19d5c338865788a7 100644 (file)
@@ -11,6 +11,8 @@
 */
 
 #include <cpu_func.h>
+#include <log.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/gpio.h>
@@ -19,6 +21,8 @@
 #include <dm.h>
 #include <fdt_support.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <malloc.h>
 #include <miiphy.h>
index a9874e4220d4d9cfe46e05442caa270c10837043..6364beb9f2a8f31655d7f0fe29a7f1dc9d20887f 100644 (file)
@@ -8,7 +8,9 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/device_compat.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <malloc.h>
 #include <miiphy.h>
index 7531a072034488e0594cb718d163384c051ecffa..85f3e49c055cc7434c49daf082fa69fadff7b0a2 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <malloc.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/processor.h>
 #include <clk.h>
@@ -20,6 +21,7 @@
 #include <net.h>
 #include <phy.h>
 #include <power-domain.h>
+#include <linux/bitops.h>
 #include <linux/soc/ti/ti-udma.h>
 
 #include "cpsw_mdio.h"
index 04b01a81298f578abae507768ac50cc9d1e8396e..95761fffc0f06f161993ed245d55b4233b9214a9 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <command.h>
 #include <cpu_func.h>
+#include <log.h>
 #include <net.h>
 #include <miiphy.h>
 #include <malloc.h>
@@ -15,6 +16,7 @@
 #include <netdev.h>
 #include <cpsw.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
 #include <linux/errno.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
index 1fa520be0f281105e801031150a1957913a552be..f4cb86d10a7463f5cdd8198c4493396dcdcfe728 100644 (file)
@@ -6,10 +6,13 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/io.h>
 #include <miiphy.h>
 #include <wait_bit.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 struct cpsw_mdio_regs {
        u32     version;
index 9c6bfca5a9f2f16ad14beb8ce5824d435b6f4350..56ea1fec0af64315c5477addf9b1725b411522ab 100644 (file)
 #include <common.h>
 #include <command.h>
 #include <cpu_func.h>
+#include <log.h>
 #include <net.h>
 #include <miiphy.h>
 #include <malloc.h>
+#include <asm/cache.h>
 #include <linux/compiler.h>
 #include <asm/arch/emac_defs.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include "davinci_emac.h"
 
 unsigned int   emac_dbg = 0;
index 4baeeb83f109cb551cc748c520b2f05e6264010c..e3ac40ca0d0a008c6ff4ddeb1a2e14b00c15a7fb 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <command.h>
 #include <console.h>
+#include <linux/delay.h>
 
 #include <dm.h>
 #include <dm/lists.h>
@@ -21,6 +22,7 @@
 #include <asm/ti-common/keystone_net.h>
 #include <asm/ti-common/keystone_serdes.h>
 #include <asm/arch/psc_defs.h>
+#include <linux/libfdt.h>
 
 #include "cpsw_mdio.h"
 
index f85cdcb97ebf4d0b943ba3194953b694a7dea290..c2e755f2b1e343de5817e207e9dfabe9979df8ac 100644 (file)
@@ -15,6 +15,8 @@
 #include <command.h>
 #include <tsec.h>
 #include <fsl_mdio.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/processor.h>
 #include <asm/io.h>
index c56836641b1852626f2ff03a413bf1e57d3cd50b..cfdd1137bea741ab73ba8756c9ffab8cf2d818f9 100644 (file)
@@ -16,6 +16,7 @@
 #include <asm/io.h>
 #include <pci.h>
 #include <miiphy.h>
+#include <linux/delay.h>
 
 /* some kernel function compatible define */
 
index 072421062b637eee13ce60a8e4cebff5dfc1e97c..af8d99cefbef46ff061f41f557665e8c616aac38 100644 (file)
@@ -15,7 +15,9 @@
 #include <config.h>
 #include <common.h>
 #include <console.h>
+#include <log.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include "vsc7385.h"
 
index f17839c70ff0bf029afce94ffddb402a043d8d0c..c438dab5619fe06cc5d4d333c291fe32cc934f1f 100644 (file)
@@ -5,6 +5,9 @@
  *  Driver for the Vitesse VSC9953 L2 Switch
  */
 
+#include <common.h>
+#include <command.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/fsl_serdes.h>
 #include <fm_eth.h>
@@ -14,6 +17,7 @@
 #include <malloc.h>
 #include <vsc9953.h>
 #include <ethsw.h>
+#include <linux/delay.h>
 
 static struct vsc9953_info vsc9953_l2sw = {
                .port[0] = VSC9953_PORT_INFO_INITIALIZER(0),
index b0450fff5663301aa83fe42c5f19ceaaa1a40819..d0683db80d88413ea95c765a9fb8b3fe613edb76 100644 (file)
@@ -9,12 +9,14 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
+#include <log.h>
 #include <net.h>
 #include <malloc.h>
 #include <asm/io.h>
 #include <phy.h>
 #include <miiphy.h>
 #include <wait_bit.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 4b49290f0e4efb36329168b946b9e8d99d2d949d..9bdb6798b6708a38519c7b07bd353137cdd5a9ce 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <net.h>
 #include <config.h>
 #include <dm.h>
@@ -16,6 +17,7 @@
 #include <phy.h>
 #include <miiphy.h>
 #include <fdtdec.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/kernel.h>
 #include <asm/io.h>
index a158824fc9fdefc6093ca2dd8527d042caaab9c1..412daf7d58b2f331d85bf3f0002499a4c0a689d6 100644 (file)
 #include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
+#include <log.h>
 #include <net.h>
 #include <netdev.h>
 #include <config.h>
 #include <console.h>
 #include <malloc.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <phy.h>
 #include <miiphy.h>
@@ -26,6 +28,7 @@
 #include <asm/arch/hardware.h>
 #include <asm/arch/sys_proto.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
 #include <linux/err.h>
 #include <linux/errno.h>
 
index 2d88efdb619ba6500a76631ac52842f4ddfe945d..277e31e1f3973de54198312d9884693d85a49bd5 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <blk.h>
 #include <errno.h>
 #include <dm.h>
 #include <dm/device.h>
index ef4382da1a1f17f9d9ebebd52dbbc83dfceb178d..0357aba7f1162cd98ade940ce8acbac197cd65a9 100644 (file)
@@ -5,9 +5,11 @@
  */
 
 #include <common.h>
+#include <blk.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <memalign.h>
 #include <pci.h>
index 268edb3f8fbe94dd47b68639755c8c954534a90e..5fb35a19effee90916af91c2ceef37240b144be3 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <pch.h>
 
 #define GPIO_BASE      0x44
index fd61f1632824edf5e63dd4720df35e4288ba8044..3bd011518b3ad013e0cba9da740f18b9593a136f 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <pch.h>
 
 #define GPIO_BASE      0x48
index 6fc26884e24bfe36502d2eaa6a227e77599b0747..6d8c22aacf25937fee18acb115c4f6ae4a5591a2 100644 (file)
@@ -197,4 +197,12 @@ config PCIE_MEDIATEK
          Say Y here if you want to enable Gen2 PCIe controller,
          which could be found on MT7623 SoC family.
 
+config PCIE_ROCKCHIP
+       bool "Enable Rockchip PCIe driver"
+       select DM_PCI
+       default y if ROCKCHIP_RK3399
+       help
+         Say Y here if you want to enable PCIe controller support on
+         Rockchip SoCs.
+
 endif
index c051ecc9f39d1a6cfd79679a31f72412288ad76e..955351c5c2cbf9c2f3e5f5d258f841e135a04093 100644 (file)
@@ -43,3 +43,4 @@ obj-$(CONFIG_PCI_PHYTIUM) += pcie_phytium.o
 obj-$(CONFIG_PCIE_INTEL_FPGA) += pcie_intel_fpga.o
 obj-$(CONFIG_PCI_KEYSTONE) += pcie_dw_ti.o
 obj-$(CONFIG_PCIE_MEDIATEK) += pcie_mediatek.o
+obj-$(CONFIG_PCIE_ROCKCHIP) += pcie_rockchip.o pcie_rockchip_phy.o
index ab5e49941f30e8ac471a5efc318f79180c8ffb41..1d09c5ac4f6b146b37a01c98464d6b0036ddb9b2 100644 (file)
@@ -5,8 +5,11 @@
 
 #include <common.h>
 #include <env.h>
+#include <init.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/fsl_serdes.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index d678e0b599c0c6511f63a665bd88681121af66d4..711b930d0f9fb4d5018e91b5589f25148ff27602 100644 (file)
@@ -30,6 +30,8 @@
 #include <asm/io.h>
 #include <asm-generic/gpio.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/ioport.h>
 
 /* PCIe core registers */
index 9486e1cb96e86daf5264c53e5ba76b035b53dcb3..a52064341e0d2dad299e2d9f5ed77558eb4e60c1 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <linux/libfdt.h>
 #include <pci.h>
 #include <dm/lists.h>
index 014d8704788b3eaa3dc9778e3e89eb16ad5d65f6..e76abc1f84c1a98942b644e4dec9221ed78b0d2e 100644 (file)
@@ -11,6 +11,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <pci.h>
+#include <linux/bitops.h>
 
 /* AHB-PCI Bridge PCI communication registers */
 #define RCAR_AHBPCI_PCICOM_OFFSET      0x800
index 30eff67dca222d6c98e56da9e21dfae68ccfbcde..df7b37a5924b8e07207c54550f85d50ccb990ca2 100644 (file)
@@ -22,6 +22,7 @@
 #include <errno.h>
 #include <pci.h>
 #include <wait_bit.h>
+#include <linux/bitops.h>
 
 #define PCIECAR                        0x000010
 #define PCIECCTLR              0x000018
index 7f46e901fb236d6309403bfd447655ca1224f7f0..9ab3539a49cae58c093d644c7a7f1cb93a275e1e 100644 (file)
@@ -7,6 +7,8 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <init.h>
+#include <log.h>
 #include <malloc.h>
 #include <pci.h>
 #include <asm/io.h>
@@ -15,6 +17,7 @@
 #if defined(CONFIG_X86) && defined(CONFIG_HAVE_FSP)
 #include <asm/fsp/fsp_support.h>
 #endif
+#include <linux/delay.h>
 #include "pci_internal.h"
 
 DECLARE_GLOBAL_DATA_PTR;
index e8285bf93639e8fed480091898cec553a155654f..664e8379eb550c717740017885789a5c6221a158 100644 (file)
@@ -16,6 +16,8 @@
 
 #include <common.h>
 #include <init.h>
+#include <log.h>
+#include <linux/delay.h>
 
 #include <command.h>
 #include <env.h>
index 28667bde8da79d6167296072ea6ed898010dd40f..3f46b7697d7caa7ad3c78f4d9bf3ffc031d0d641 100644 (file)
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <pci.h>
 
 /* the user can define CONFIG_SYS_PCI_CACHE_LINE_SIZE to avoid problems */
index 86903166101b6732bae0d19c82c69a0ff50d7fae..c0a53dcc929a27835ff5199e3c86045ca9a6f0de 100644 (file)
@@ -14,6 +14,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <pci.h>
 
 void pciauto_region_init(struct pci_region *res)
index b566705c9d974b672e937bbcc8e6e1c46002cd53..8b67cfa92b41b3e4850adbdd51c3861ab8ff55e1 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #include <errno.h>
+#include <log.h>
 #include <pci.h>
 
 /*
index 6c15bdfc034ee5ac4a97a100684e5acc9292ab21..9dddca8efe07a14873cad62049fa5aa620b3eba1 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <pci.h>
 #include <dm/device-internal.h>
index 736befdc3b5b89cc55b604ecd6c94f73f765ed4a..32fac878a672df09445210c5e4ec33902327d73e 100644 (file)
@@ -7,6 +7,8 @@
  * Macpaul Lin, Andes Technology Corporation <macpaul@andestech.com>
  */
 #include <common.h>
+#include <init.h>
+#include <log.h>
 #include <malloc.h>
 #include <pci.h>
 
index 55f4800781cba79205bece5c9b14acb6e595ddba..80f11fedd16898fd35bdc7bf1e615a0029bf14fd 100644 (file)
@@ -10,6 +10,8 @@
 
 #include <common.h>
 #include <gt64120.h>
+#include <init.h>
+#include <log.h>
 #include <pci.h>
 #include <pci_gt64120.h>
 
index 8dff68dbd0e9df1823dd1e5a116c1126cd514af6..6576f53f52a5def81b4895ebc73453fbcc879349 100644 (file)
@@ -5,6 +5,7 @@
  *
  */
 #include <common.h>
+#include <asm/bitops.h>
 #include <asm/cpm_85xx.h>
 #include <pci.h>
 #include <dm.h>
index 504eb65c271047fd67a48f1e288c9cf520cfea74..04838200a8deb62f121cc25318326ff00dbc26de 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <msc01.h>
 #include <pci.h>
 #include <pci_msc01.h>
index 483a87db7dd621cffd4600dbda7d19db7e9dc165..c9afe7515014dfdae4a5bbff3a93672f1d1d3b7d 100644 (file)
@@ -11,6 +11,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
@@ -19,6 +20,7 @@
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
+#include <linux/bitops.h>
 #include <linux/errno.h>
 #include <linux/ioport.h>
 #include <linux/mbus.h>
index 6b17f18bc075a45826a5638f8fcd79d2303257a5..6a9bc499781ae63de6c557058c6c4f913a2beb8b 100644 (file)
 
 #include <common.h>
 #include <bios_emul.h>
+#include <bootstage.h>
 #include <dm.h>
 #include <errno.h>
 #include <init.h>
+#include <log.h>
 #include <malloc.h>
 #include <pci.h>
 #include <pci_rom.h>
index fa4c47659787e5b47ac20503ed8073f976a5e1f2..8745f286bd4ab590173f1dd4e4894b9e814afee0 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <pci.h>
 
 #define FDT_DEV_INFO_CELLS     4
index 4500e8bb2964b77645911dcb8e6bb0015070efef..aac9be055e2cb1db40ba2c5a73f997adae358af3 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <linux/delay.h>
 
 #include <asm/processor.h>
 #include <asm/io.h>
index 2f48b9671934927b17786e8397fca5748398c2f7..e110550c71c8a43ca20a307a113b7d061e52bf16 100644 (file)
@@ -11,6 +11,8 @@
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <asm/pci.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 /* Register addresses and such */
 #define SH7751_BCR1    (vu_long *)0xFF800000
index 722b5e7cf2856ce00da9dcdcf0b112fc7302334d..06d711a6cb9ec32748351fee29fef6a8b26acffe 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <linux/delay.h>
 
 #include <pci.h>
 #include <asm/processor.h>
index 96d308f7bfd2462f5433b496036631eee616cc41..82f5c59d9173e834e84de8cd6abad512e4ce53b6 100644 (file)
 #include <clk.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <pci.h>
 #include <pci_tegra.h>
 #include <power-domain.h>
 #include <reset.h>
+#include <linux/delay.h>
 
 #include <asm/io.h>
 #include <asm/gpio.h>
index 1f216e1c6803a1cbe2ee869cc4d487a062147a4e..c773f8d28d2e099ec6a8ea539b8fbc2bb1609e0b 100644 (file)
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <pci.h>
 #include <asm/io.h>
 #include <asm-generic/gpio.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index f62264cbba752ddb968fb80e5c3db99e85134d23..742dd93633e6ebebdc2d223cd1967ccceba8924c 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <pci.h>
 #include <generic-phy.h>
 #include <power-domain.h>
@@ -13,6 +14,8 @@
 #include <asm/io.h>
 #include <asm-generic/gpio.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index dc994b748ad532dd19ef0ca5e9eb7da3569b55ea..ab33459e28e0df5c1601cd97ac43115b02e80aa4 100644 (file)
@@ -14,6 +14,7 @@
 #include <asm/fsl_pci.h>
 #include <asm/fsl_serdes.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include "pcie_fsl.h"
 #include <dm/device_compat.h>
 
index f34a157902fc837acee71137eefbd9859895ac54..cbf12371a0f70c516321cc3d43e5b6eba3a8444e 100644 (file)
@@ -11,6 +11,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <log.h>
 #include <malloc.h>
 #include <pci.h>
 #include <asm/arch/clock.h>
@@ -19,6 +20,7 @@
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <dm.h>
+#include <linux/delay.h>
 #include <linux/sizes.h>
 #include <errno.h>
 #include <asm/arch/sys_proto.h>
index 6a9f29c5c805b3a69c87506ab524e43feacdb437..aa1903e547ce83d54e225ba74f50113f8a810006 100644 (file)
@@ -11,6 +11,8 @@
 #include <pci.h>
 #include <asm/io.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 #define RP_TX_REG0                     0x2000
 #define RP_TX_CNTRL                    0x2004
index 8b313e927861f5118113ac1ff9fceb1457dd81c7..39b6d40802500a4b95ec1d3cbd6bf2a75a9ac2df 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/arch/fsl_serdes.h>
 #include <pci.h>
 #include <asm/io.h>
index ec6acbb138d960d0b3ace2018607a429d78659c8..25a3c3870cb1d484fb2ae91d900edc1268c88472 100644 (file)
@@ -6,6 +6,8 @@
  */
 
 #include <common.h>
+#include <init.h>
+#include <log.h>
 #include <pci.h>
 #include <asm/arch/fsl_serdes.h>
 #include <asm/io.h>
index b010a6300cbf81964feae7596edab5363a02e184..c11c691b864b462df53ed32a0d7172de38572388 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/soc.h>
 #include "pcie_layerscape_fixup_common.h"
index cec61fa7d65552b9eb4e3bfac6e7affdf23dbc1f..428bfcab09f297273685fc4c0d859f1a8d8022c0 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/arch/fsl_serdes.h>
 #include <pci.h>
 #include <asm/io.h>
index 27c2d09332c31d7b5ad78af66d6b79d5c0bda038..d298a2b81091b94c4534d1e8ac0940a8893838b7 100644 (file)
@@ -10,6 +10,7 @@
 #define _PCIE_LAYERSCAPE_GEN4_H_
 #include <pci.h>
 #include <dm.h>
+#include <linux/bitops.h>
 
 #ifndef CONFIG_SYS_PCI_MEMORY_SIZE
 #define CONFIG_SYS_PCI_MEMORY_SIZE             (4 * 1024 * 1024 * 1024ULL)
index bfe197e7d83f4de4cdd72507dcb1e6fac2b4e6ac..1975004e5981d5bb98f91f42b6bf750b0581b697 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <pci.h>
 #include <asm/arch/fsl_serdes.h>
 #include <asm/io.h>
index d8a32d53f63289906645e3c6bf010314dafd79bc..6e6375cec095a686875ef47d08f55846577a4567 100644 (file)
 #include <clk.h>
 #include <dm.h>
 #include <generic-phy.h>
+#include <log.h>
 #include <malloc.h>
 #include <pci.h>
 #include <reset.h>
 #include <asm/io.h>
 #include <dm/devres.h>
+#include <linux/bitops.h>
 #include <linux/iopoll.h>
 #include <linux/list.h>
 
diff --git a/drivers/pci/pcie_rockchip.c b/drivers/pci/pcie_rockchip.c
new file mode 100644 (file)
index 0000000..82a8396
--- /dev/null
@@ -0,0 +1,491 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Rockchip AXI PCIe host controller driver
+ *
+ * Copyright (c) 2016 Rockchip, Inc.
+ * Copyright (c) 2020 Amarula Solutions(India)
+ * Copyright (c) 2020 Jagan Teki <jagan@amarulasolutions.com>
+ * Copyright (c) 2019 Patrick Wildt <patrick@blueri.se>
+ * Copyright (c) 2018 Mark Kettenis <kettenis@openbsd.org>
+ *
+ * Bits taken from Linux Rockchip PCIe host controller.
+ */
+
+#include <common.h>
+#include <clk.h>
+#include <dm.h>
+#include <dm/device_compat.h>
+#include <pci.h>
+#include <power-domain.h>
+#include <power/regulator.h>
+#include <reset.h>
+#include <syscon.h>
+#include <asm/io.h>
+#include <asm-generic/gpio.h>
+#include <asm/arch-rockchip/clock.h>
+#include <linux/iopoll.h>
+
+#include "pcie_rockchip.h"
+
+DECLARE_GLOBAL_DATA_PTR;
+
+static int rockchip_pcie_off_conf(pci_dev_t bdf, uint offset)
+{
+       unsigned int bus = PCI_BUS(bdf);
+       unsigned int dev = PCI_DEV(bdf);
+       unsigned int func = PCI_FUNC(bdf);
+
+       return (bus << 20) | (dev << 15) | (func << 12) | (offset & ~0x3);
+}
+
+static int rockchip_pcie_rd_conf(const struct udevice *udev, pci_dev_t bdf,
+                                uint offset, ulong *valuep,
+                                enum pci_size_t size)
+{
+       struct rockchip_pcie *priv = dev_get_priv(udev);
+       unsigned int bus = PCI_BUS(bdf);
+       unsigned int dev = PCI_DEV(bdf);
+       int where = rockchip_pcie_off_conf(bdf, offset);
+       ulong value;
+
+       if (bus == priv->first_busno && dev == 0) {
+               value = readl(priv->apb_base + PCIE_RC_NORMAL_BASE + where);
+               *valuep = pci_conv_32_to_size(value, offset, size);
+               return 0;
+       }
+
+       if ((bus == priv->first_busno + 1) && dev == 0) {
+               value = readl(priv->axi_base + where);
+               *valuep = pci_conv_32_to_size(value, offset, size);
+               return 0;
+       }
+
+       *valuep = pci_get_ff(size);
+
+       return 0;
+}
+
+static int rockchip_pcie_wr_conf(struct udevice *udev, pci_dev_t bdf,
+                                uint offset, ulong value,
+                                enum pci_size_t size)
+{
+       struct rockchip_pcie *priv = dev_get_priv(udev);
+       unsigned int bus = PCI_BUS(bdf);
+       unsigned int dev = PCI_DEV(bdf);
+       int where = rockchip_pcie_off_conf(bdf, offset);
+       ulong old;
+
+       if (bus == priv->first_busno && dev == 0) {
+               old = readl(priv->apb_base + PCIE_RC_NORMAL_BASE + where);
+               value = pci_conv_size_to_32(old, value, offset, size);
+               writel(value, priv->apb_base + PCIE_RC_NORMAL_BASE + where);
+               return 0;
+       }
+
+       if ((bus == priv->first_busno + 1) && dev == 0) {
+               old = readl(priv->axi_base + where);
+               value = pci_conv_size_to_32(old, value, offset, size);
+               writel(value, priv->axi_base + where);
+               return 0;
+       }
+
+       return 0;
+}
+
+static int rockchip_pcie_atr_init(struct rockchip_pcie *priv)
+{
+       struct udevice *ctlr = pci_get_controller(priv->dev);
+       struct pci_controller *hose = dev_get_uclass_priv(ctlr);
+       u64 addr, size, offset;
+       u32 type;
+       int i, region;
+
+       /* Use region 0 to map PCI configuration space. */
+       writel(25 - 1, priv->apb_base + PCIE_ATR_OB_ADDR0(0));
+       writel(0, priv->apb_base + PCIE_ATR_OB_ADDR1(0));
+       writel(PCIE_ATR_HDR_CFG_TYPE0 | PCIE_ATR_HDR_RID,
+              priv->apb_base + PCIE_ATR_OB_DESC0(0));
+       writel(0, priv->apb_base + PCIE_ATR_OB_DESC1(0));
+
+       for (i = 0; i < hose->region_count; i++) {
+               if (hose->regions[i].flags == PCI_REGION_SYS_MEMORY)
+                       continue;
+
+               if (hose->regions[i].flags == PCI_REGION_IO)
+                       type = PCIE_ATR_HDR_IO;
+               else
+                       type = PCIE_ATR_HDR_MEM;
+
+               /* Only support identity mappings. */
+               if (hose->regions[i].bus_start !=
+                   hose->regions[i].phys_start)
+                       return -EINVAL;
+
+               /* Only support mappings aligned on a region boundary. */
+               addr = hose->regions[i].bus_start;
+               if (addr & (PCIE_ATR_OB_REGION_SIZE - 1))
+                       return -EINVAL;
+
+               /* Mappings should lie between AXI and APB regions. */
+               size = hose->regions[i].size;
+               if (addr < (u64)priv->axi_base + PCIE_ATR_OB_REGION0_SIZE)
+                       return -EINVAL;
+               if (addr + size > (u64)priv->apb_base)
+                       return -EINVAL;
+
+               offset = addr - (u64)priv->axi_base - PCIE_ATR_OB_REGION0_SIZE;
+               region = 1 + (offset / PCIE_ATR_OB_REGION_SIZE);
+               while (size > 0) {
+                       writel(32 - 1,
+                              priv->apb_base + PCIE_ATR_OB_ADDR0(region));
+                       writel(0, priv->apb_base + PCIE_ATR_OB_ADDR1(region));
+                       writel(type | PCIE_ATR_HDR_RID,
+                              priv->apb_base + PCIE_ATR_OB_DESC0(region));
+                       writel(0, priv->apb_base + PCIE_ATR_OB_DESC1(region));
+
+                       addr += PCIE_ATR_OB_REGION_SIZE;
+                       size -= PCIE_ATR_OB_REGION_SIZE;
+                       region++;
+               }
+       }
+
+       /* Passthrough inbound translations unmodified. */
+       writel(32 - 1, priv->apb_base + PCIE_ATR_IB_ADDR0(2));
+       writel(0, priv->apb_base + PCIE_ATR_IB_ADDR1(2));
+
+       return 0;
+}
+
+static int rockchip_pcie_init_port(struct udevice *dev)
+{
+       struct rockchip_pcie *priv = dev_get_priv(dev);
+       struct rockchip_pcie_phy *phy = pcie_get_phy(priv);
+       struct rockchip_pcie_phy_ops *ops = phy_get_ops(phy);
+       u32 cr, val, status;
+       int ret;
+
+       if (dm_gpio_is_valid(&priv->ep_gpio))
+               dm_gpio_set_value(&priv->ep_gpio, 0);
+
+       ret = reset_assert(&priv->aclk_rst);
+       if (ret) {
+               dev_err(dev, "failed to assert aclk reset (ret=%d)\n", ret);
+               return ret;
+       }
+
+       ret = reset_assert(&priv->pclk_rst);
+       if (ret) {
+               dev_err(dev, "failed to assert pclk reset (ret=%d)\n", ret);
+               return ret;
+       }
+
+       ret = reset_assert(&priv->pm_rst);
+       if (ret) {
+               dev_err(dev, "failed to assert pm reset (ret=%d)\n", ret);
+               return ret;
+       }
+
+       ret = ops->init(phy);
+       if (ret) {
+               dev_err(dev, "failed to init phy (ret=%d)\n", ret);
+               goto err_exit_phy;
+       }
+
+       ret = reset_assert(&priv->core_rst);
+       if (ret) {
+               dev_err(dev, "failed to assert core reset (ret=%d)\n", ret);
+               goto err_exit_phy;
+       }
+
+       ret = reset_assert(&priv->mgmt_rst);
+       if (ret) {
+               dev_err(dev, "failed to assert mgmt reset (ret=%d)\n", ret);
+               goto err_exit_phy;
+       }
+
+       ret = reset_assert(&priv->mgmt_sticky_rst);
+       if (ret) {
+               dev_err(dev, "failed to assert mgmt-sticky reset (ret=%d)\n",
+                       ret);
+               goto err_exit_phy;
+       }
+
+       ret = reset_assert(&priv->pipe_rst);
+       if (ret) {
+               dev_err(dev, "failed to assert pipe reset (ret=%d)\n", ret);
+               goto err_exit_phy;
+       }
+
+       udelay(10);
+
+       ret = reset_deassert(&priv->pm_rst);
+       if (ret) {
+               dev_err(dev, "failed to deassert pm reset (ret=%d)\n", ret);
+               goto err_exit_phy;
+       }
+
+       ret = reset_deassert(&priv->aclk_rst);
+       if (ret) {
+               dev_err(dev, "failed to deassert aclk reset (ret=%d)\n", ret);
+               goto err_exit_phy;
+       }
+
+       ret = reset_deassert(&priv->pclk_rst);
+       if (ret) {
+               dev_err(dev, "failed to deassert pclk reset (ret=%d)\n", ret);
+               goto err_exit_phy;
+       }
+
+       /* Select GEN1 for now */
+       cr = PCIE_CLIENT_GEN_SEL_1;
+       /* Set Root complex mode */
+       cr |= PCIE_CLIENT_CONF_ENABLE | PCIE_CLIENT_MODE_RC;
+       writel(cr, priv->apb_base + PCIE_CLIENT_CONFIG);
+
+       ret = ops->power_on(phy);
+       if (ret) {
+               dev_err(dev, "failed to power on phy (ret=%d)\n", ret);
+               goto err_power_off_phy;
+       }
+
+       ret = reset_deassert(&priv->mgmt_sticky_rst);
+       if (ret) {
+               dev_err(dev, "failed to deassert mgmt-sticky reset (ret=%d)\n",
+                       ret);
+               goto err_power_off_phy;
+       }
+
+       ret = reset_deassert(&priv->core_rst);
+       if (ret) {
+               dev_err(dev, "failed to deassert core reset (ret=%d)\n", ret);
+               goto err_power_off_phy;
+       }
+
+       ret = reset_deassert(&priv->mgmt_rst);
+       if (ret) {
+               dev_err(dev, "failed to deassert mgmt reset (ret=%d)\n", ret);
+               goto err_power_off_phy;
+       }
+
+       ret = reset_deassert(&priv->pipe_rst);
+       if (ret) {
+               dev_err(dev, "failed to deassert pipe reset (ret=%d)\n", ret);
+               goto err_power_off_phy;
+       }
+
+       /* Enable Gen1 training */
+       writel(PCIE_CLIENT_LINK_TRAIN_ENABLE,
+              priv->apb_base + PCIE_CLIENT_CONFIG);
+
+       if (dm_gpio_is_valid(&priv->ep_gpio))
+               dm_gpio_set_value(&priv->ep_gpio, 1);
+
+       ret = readl_poll_sleep_timeout
+                       (priv->apb_base + PCIE_CLIENT_BASIC_STATUS1,
+                       status, PCIE_LINK_UP(status), 20, 500 * 1000);
+       if (ret) {
+               dev_err(dev, "PCIe link training gen1 timeout!\n");
+               goto err_power_off_phy;
+       }
+
+       /* Initialize Root Complex registers. */
+       writel(PCIE_LM_VENDOR_ROCKCHIP, priv->apb_base + PCIE_LM_VENDOR_ID);
+       writel(PCI_CLASS_BRIDGE_PCI << 16,
+              priv->apb_base + PCIE_RC_BASE + PCI_CLASS_REVISION);
+       writel(PCIE_LM_RCBARPIE | PCIE_LM_RCBARPIS,
+              priv->apb_base + PCIE_LM_RCBAR);
+
+       if (dev_read_bool(dev, "aspm-no-l0s")) {
+               val = readl(priv->apb_base + PCIE_RC_PCIE_LCAP);
+               val &= ~PCIE_RC_PCIE_LCAP_APMS_L0S;
+               writel(val, priv->apb_base + PCIE_RC_PCIE_LCAP);
+       }
+
+       /* Configure Address Translation. */
+       ret = rockchip_pcie_atr_init(priv);
+       if (ret) {
+               dev_err(dev, "PCIE-%d: ATR init failed\n", dev->seq);
+               goto err_power_off_phy;
+       }
+
+       return 0;
+
+err_power_off_phy:
+       ops->power_off(phy);
+err_exit_phy:
+       ops->exit(phy);
+       return ret;
+}
+
+static int rockchip_pcie_set_vpcie(struct udevice *dev)
+{
+       struct rockchip_pcie *priv = dev_get_priv(dev);
+       int ret;
+
+       if (!IS_ERR(priv->vpcie3v3)) {
+               ret = regulator_set_enable(priv->vpcie3v3, true);
+               if (ret) {
+                       dev_err(dev, "failed to enable vpcie3v3 (ret=%d)\n",
+                               ret);
+                       return ret;
+               }
+       }
+
+       ret = regulator_set_enable(priv->vpcie1v8, true);
+       if (ret) {
+               dev_err(dev, "failed to enable vpcie1v8 (ret=%d)\n", ret);
+               goto err_disable_3v3;
+       }
+
+       ret = regulator_set_enable(priv->vpcie0v9, true);
+       if (ret) {
+               dev_err(dev, "failed to enable vpcie0v9 (ret=%d)\n", ret);
+               goto err_disable_1v8;
+       }
+
+       return 0;
+
+err_disable_1v8:
+       regulator_set_enable(priv->vpcie1v8, false);
+err_disable_3v3:
+       if (!IS_ERR(priv->vpcie3v3))
+               regulator_set_enable(priv->vpcie3v3, false);
+       return ret;
+}
+
+static int rockchip_pcie_parse_dt(struct udevice *dev)
+{
+       struct rockchip_pcie *priv = dev_get_priv(dev);
+       int ret;
+
+       priv->axi_base = dev_read_addr_name(dev, "axi-base");
+       if (!priv->axi_base)
+               return -ENODEV;
+
+       priv->apb_base = dev_read_addr_name(dev, "apb-base");
+       if (!priv->axi_base)
+               return -ENODEV;
+
+       ret = gpio_request_by_name(dev, "ep-gpios", 0,
+                                  &priv->ep_gpio, GPIOD_IS_OUT);
+       if (ret) {
+               dev_err(dev, "failed to find ep-gpios property\n");
+               return ret;
+       }
+
+       ret = reset_get_by_name(dev, "core", &priv->core_rst);
+       if (ret) {
+               dev_err(dev, "failed to get core reset (ret=%d)\n", ret);
+               return ret;
+       }
+
+       ret = reset_get_by_name(dev, "mgmt", &priv->mgmt_rst);
+       if (ret) {
+               dev_err(dev, "failed to get mgmt reset (ret=%d)\n", ret);
+               return ret;
+       }
+
+       ret = reset_get_by_name(dev, "mgmt-sticky", &priv->mgmt_sticky_rst);
+       if (ret) {
+               dev_err(dev, "failed to get mgmt-sticky reset (ret=%d)\n", ret);
+               return ret;
+       }
+
+       ret = reset_get_by_name(dev, "pipe", &priv->pipe_rst);
+       if (ret) {
+               dev_err(dev, "failed to get pipe reset (ret=%d)\n", ret);
+               return ret;
+       }
+
+       ret = reset_get_by_name(dev, "pm", &priv->pm_rst);
+       if (ret) {
+               dev_err(dev, "failed to get pm reset (ret=%d)\n", ret);
+               return ret;
+       }
+
+       ret = reset_get_by_name(dev, "pclk", &priv->pclk_rst);
+       if (ret) {
+               dev_err(dev, "failed to get pclk reset (ret=%d)\n", ret);
+               return ret;
+       }
+
+       ret = reset_get_by_name(dev, "aclk", &priv->aclk_rst);
+       if (ret) {
+               dev_err(dev, "failed to get aclk reset (ret=%d)\n", ret);
+               return ret;
+       }
+
+       ret = device_get_supply_regulator(dev, "vpcie3v3-supply",
+                                         &priv->vpcie3v3);
+       if (ret && ret != -ENOENT) {
+               dev_err(dev, "failed to get vpcie3v3 supply (ret=%d)\n", ret);
+               return ret;
+       }
+
+       ret = device_get_supply_regulator(dev, "vpcie1v8-supply",
+                                         &priv->vpcie1v8);
+       if (ret) {
+               dev_err(dev, "failed to get vpcie1v8 supply (ret=%d)\n", ret);
+               return ret;
+       }
+
+       ret = device_get_supply_regulator(dev, "vpcie0v9-supply",
+                                         &priv->vpcie0v9);
+       if (ret) {
+               dev_err(dev, "failed to get vpcie0v9 supply (ret=%d)\n", ret);
+               return ret;
+       }
+
+       return 0;
+}
+
+static int rockchip_pcie_probe(struct udevice *dev)
+{
+       struct rockchip_pcie *priv = dev_get_priv(dev);
+       struct udevice *ctlr = pci_get_controller(dev);
+       struct pci_controller *hose = dev_get_uclass_priv(ctlr);
+       int ret;
+
+       priv->first_busno = dev->seq;
+       priv->dev = dev;
+
+       ret = rockchip_pcie_parse_dt(dev);
+       if (ret)
+               return ret;
+
+       ret = rockchip_pcie_phy_get(dev);
+       if (ret)
+               return ret;
+
+       ret = rockchip_pcie_set_vpcie(dev);
+       if (ret)
+               return ret;
+
+       ret = rockchip_pcie_init_port(dev);
+       if (ret)
+               return ret;
+
+       dev_info(dev, "PCIE-%d: Link up (Bus%d)\n",
+                dev->seq, hose->first_busno);
+
+       return 0;
+}
+
+static const struct dm_pci_ops rockchip_pcie_ops = {
+       .read_config    = rockchip_pcie_rd_conf,
+       .write_config   = rockchip_pcie_wr_conf,
+};
+
+static const struct udevice_id rockchip_pcie_ids[] = {
+       { .compatible = "rockchip,rk3399-pcie" },
+       { }
+};
+
+U_BOOT_DRIVER(rockchip_pcie) = {
+       .name                   = "rockchip_pcie",
+       .id                     = UCLASS_PCI,
+       .of_match               = rockchip_pcie_ids,
+       .ops                    = &rockchip_pcie_ops,
+       .probe                  = rockchip_pcie_probe,
+       .priv_auto_alloc_size   = sizeof(struct rockchip_pcie),
+};
diff --git a/drivers/pci/pcie_rockchip.h b/drivers/pci/pcie_rockchip.h
new file mode 100644 (file)
index 0000000..c3a0a28
--- /dev/null
@@ -0,0 +1,142 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Rockchip PCIe Headers
+ *
+ * Copyright (c) 2016 Rockchip, Inc.
+ * Copyright (c) 2020 Amarula Solutions(India)
+ * Copyright (c) 2020 Jagan Teki <jagan@amarulasolutions.com>
+ * Copyright (c) 2019 Patrick Wildt <patrick@blueri.se>
+ *
+ */
+
+#define HIWORD_UPDATE(mask, val)        (((mask) << 16) | (val))
+#define HIWORD_UPDATE_BIT(val)          HIWORD_UPDATE(val, val)
+
+#define ENCODE_LANES(x)                 ((((x) >> 1) & 3) << 4)
+#define PCIE_CLIENT_BASE                0x0
+#define PCIE_CLIENT_CONFIG              (PCIE_CLIENT_BASE + 0x00)
+#define PCIE_CLIENT_CONF_ENABLE         HIWORD_UPDATE_BIT(0x0001)
+#define PCIE_CLIENT_LINK_TRAIN_ENABLE   HIWORD_UPDATE_BIT(0x0002)
+#define PCIE_CLIENT_MODE_RC             HIWORD_UPDATE_BIT(0x0040)
+#define PCIE_CLIENT_GEN_SEL_1           HIWORD_UPDATE(0x0080, 0)
+#define PCIE_CLIENT_BASIC_STATUS1      0x0048
+#define PCIE_CLIENT_LINK_STATUS_UP     GENMASK(21, 20)
+#define PCIE_CLIENT_LINK_STATUS_MASK   GENMASK(21, 20)
+#define PCIE_LINK_UP(x) \
+       (((x) & PCIE_CLIENT_LINK_STATUS_MASK) == PCIE_CLIENT_LINK_STATUS_UP)
+#define PCIE_RC_NORMAL_BASE            0x800000
+#define PCIE_LM_BASE                   0x900000
+#define PCIE_LM_VENDOR_ID              (PCIE_LM_BASE + 0x44)
+#define PCIE_LM_VENDOR_ROCKCHIP                0x1d87
+#define PCIE_LM_RCBAR                  (PCIE_LM_BASE + 0x300)
+#define PCIE_LM_RCBARPIE               BIT(19)
+#define PCIE_LM_RCBARPIS               BIT(20)
+#define PCIE_RC_BASE                   0xa00000
+#define PCIE_RC_CONFIG_DCR             (PCIE_RC_BASE + 0x0c4)
+#define PCIE_RC_CONFIG_DCR_CSPL_SHIFT  18
+#define PCIE_RC_CONFIG_DCR_CPLS_SHIFT  26
+#define PCIE_RC_PCIE_LCAP              (PCIE_RC_BASE + 0x0cc)
+#define PCIE_RC_PCIE_LCAP_APMS_L0S     BIT(10)
+#define PCIE_ATR_BASE                  0xc00000
+#define PCIE_ATR_OB_ADDR0(i)           (PCIE_ATR_BASE + 0x000 + (i) * 0x20)
+#define PCIE_ATR_OB_ADDR1(i)           (PCIE_ATR_BASE + 0x004 + (i) * 0x20)
+#define PCIE_ATR_OB_DESC0(i)           (PCIE_ATR_BASE + 0x008 + (i) * 0x20)
+#define PCIE_ATR_OB_DESC1(i)           (PCIE_ATR_BASE + 0x00c + (i) * 0x20)
+#define PCIE_ATR_IB_ADDR0(i)           (PCIE_ATR_BASE + 0x800 + (i) * 0x8)
+#define PCIE_ATR_IB_ADDR1(i)           (PCIE_ATR_BASE + 0x804 + (i) * 0x8)
+#define PCIE_ATR_HDR_MEM               0x2
+#define PCIE_ATR_HDR_IO                        0x6
+#define PCIE_ATR_HDR_CFG_TYPE0         0xa
+#define PCIE_ATR_HDR_CFG_TYPE1         0xb
+#define PCIE_ATR_HDR_RID               BIT(23)
+
+#define PCIE_ATR_OB_REGION0_SIZE       (32 * 1024 * 1024)
+#define PCIE_ATR_OB_REGION_SIZE                (1 * 1024 * 1024)
+
+/*
+ * The higher 16-bit of this register is used for write protection
+ * only if BIT(x + 16) set to 1 the BIT(x) can be written.
+ */
+#define HIWORD_UPDATE_MASK(val, mask, shift) \
+               ((val) << (shift) | (mask) << ((shift) + 16))
+
+#define PHY_CFG_DATA_SHIFT    7
+#define PHY_CFG_ADDR_SHIFT    1
+#define PHY_CFG_DATA_MASK     0xf
+#define PHY_CFG_ADDR_MASK     0x3f
+#define PHY_CFG_RD_MASK       0x3ff
+#define PHY_CFG_WR_ENABLE     1
+#define PHY_CFG_WR_DISABLE    1
+#define PHY_CFG_WR_SHIFT      0
+#define PHY_CFG_WR_MASK       1
+#define PHY_CFG_PLL_LOCK      0x10
+#define PHY_CFG_CLK_TEST      0x10
+#define PHY_CFG_CLK_SCC       0x12
+#define PHY_CFG_SEPE_RATE     BIT(3)
+#define PHY_CFG_PLL_100M      BIT(3)
+#define PHY_PLL_LOCKED        BIT(9)
+#define PHY_PLL_OUTPUT        BIT(10)
+#define PHY_LANE_IDLE_OFF     0x1
+#define PHY_LANE_IDLE_MASK    0x1
+#define PHY_LANE_IDLE_A_SHIFT 3
+#define PHY_LANE_IDLE_B_SHIFT 4
+#define PHY_LANE_IDLE_C_SHIFT 5
+#define PHY_LANE_IDLE_D_SHIFT 6
+
+#define PCIE_PHY_CONF          0xe220
+#define PCIE_PHY_STATUS                0xe2a4
+#define PCIE_PHY_LANEOFF       0xe214
+
+struct rockchip_pcie_phy {
+       void *reg_base;
+       struct clk refclk;
+       struct reset_ctl phy_rst;
+       struct rockchip_pcie_phy_ops *ops;
+};
+
+struct rockchip_pcie_phy_ops {
+       int (*init)(struct rockchip_pcie_phy *phy);
+       int (*exit)(struct rockchip_pcie_phy *phy);
+       int (*power_on)(struct rockchip_pcie_phy *phy);
+       int (*power_off)(struct rockchip_pcie_phy *phy);
+};
+
+struct rockchip_pcie {
+       fdt_addr_t axi_base;
+       fdt_addr_t apb_base;
+       int first_busno;
+       struct udevice *dev;
+       struct rockchip_pcie_phy rk_phy;
+       struct rockchip_pcie_phy *phy;
+
+       /* resets */
+       struct reset_ctl core_rst;
+       struct reset_ctl mgmt_rst;
+       struct reset_ctl mgmt_sticky_rst;
+       struct reset_ctl pipe_rst;
+       struct reset_ctl pm_rst;
+       struct reset_ctl pclk_rst;
+       struct reset_ctl aclk_rst;
+
+       /* gpio */
+       struct gpio_desc ep_gpio;
+
+       /* vpcie regulators */
+       struct udevice *vpcie12v;
+       struct udevice *vpcie3v3;
+       struct udevice *vpcie1v8;
+       struct udevice *vpcie0v9;
+};
+
+int rockchip_pcie_phy_get(struct udevice *dev);
+
+inline struct rockchip_pcie_phy *pcie_get_phy(struct rockchip_pcie *pcie)
+{
+       return pcie->phy;
+}
+
+inline
+struct rockchip_pcie_phy_ops *phy_get_ops(struct rockchip_pcie_phy *phy)
+{
+       return (struct rockchip_pcie_phy_ops *)phy->ops;
+}
diff --git a/drivers/pci/pcie_rockchip_phy.c b/drivers/pci/pcie_rockchip_phy.c
new file mode 100644 (file)
index 0000000..47f5d6c
--- /dev/null
@@ -0,0 +1,205 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Rockchip PCIe PHY driver
+ *
+ * Copyright (c) 2016 Rockchip, Inc.
+ * Copyright (c) 2020 Amarula Solutions(India)
+ */
+
+#include <common.h>
+#include <clk.h>
+#include <dm.h>
+#include <dm/device_compat.h>
+#include <reset.h>
+#include <syscon.h>
+#include <asm/gpio.h>
+#include <asm/io.h>
+#include <linux/iopoll.h>
+#include <asm/arch-rockchip/clock.h>
+
+#include "pcie_rockchip.h"
+
+DECLARE_GLOBAL_DATA_PTR;
+
+static void phy_wr_cfg(struct rockchip_pcie_phy *phy, u32 addr, u32 data)
+{
+       u32 reg;
+
+       reg = HIWORD_UPDATE_MASK(data, PHY_CFG_DATA_MASK, PHY_CFG_DATA_SHIFT);
+       reg |= HIWORD_UPDATE_MASK(addr, PHY_CFG_ADDR_MASK, PHY_CFG_ADDR_SHIFT);
+       writel(reg, phy->reg_base + PCIE_PHY_CONF);
+
+       udelay(1);
+
+       reg = HIWORD_UPDATE_MASK(PHY_CFG_WR_ENABLE,
+                                PHY_CFG_WR_MASK,
+                                PHY_CFG_WR_SHIFT);
+       writel(reg, phy->reg_base + PCIE_PHY_CONF);
+
+       udelay(1);
+
+       reg = HIWORD_UPDATE_MASK(PHY_CFG_WR_DISABLE,
+                                PHY_CFG_WR_MASK,
+                                PHY_CFG_WR_SHIFT);
+       writel(reg, phy->reg_base + PCIE_PHY_CONF);
+}
+
+static int rockchip_pcie_phy_power_on(struct rockchip_pcie_phy *phy)
+{
+       int ret = 0;
+       u32 reg, status;
+
+       ret = reset_deassert(&phy->phy_rst);
+       if (ret) {
+               dev_err(dev, "failed to assert phy reset\n");
+               return ret;
+       }
+
+       reg = HIWORD_UPDATE_MASK(PHY_CFG_PLL_LOCK,
+                                PHY_CFG_ADDR_MASK,
+                                PHY_CFG_ADDR_SHIFT);
+       writel(reg, phy->reg_base + PCIE_PHY_CONF);
+
+       reg = HIWORD_UPDATE_MASK(!PHY_LANE_IDLE_OFF,
+                                PHY_LANE_IDLE_MASK,
+                                PHY_LANE_IDLE_A_SHIFT);
+       writel(reg, phy->reg_base + PCIE_PHY_LANEOFF);
+
+       ret = -EINVAL;
+       ret = readl_poll_sleep_timeout(phy->reg_base + PCIE_PHY_STATUS,
+                                      status,
+                                      status & PHY_PLL_LOCKED,
+                                      20 * 1000,
+                                      50);
+       if (ret) {
+               dev_err(&phy->dev, "pll lock timeout!\n");
+               goto err_pll_lock;
+       }
+
+       phy_wr_cfg(phy, PHY_CFG_CLK_TEST, PHY_CFG_SEPE_RATE);
+       phy_wr_cfg(phy, PHY_CFG_CLK_SCC, PHY_CFG_PLL_100M);
+
+       ret = -ETIMEDOUT;
+       ret = readl_poll_sleep_timeout(phy->reg_base + PCIE_PHY_STATUS,
+                                      status,
+                                      !(status & PHY_PLL_OUTPUT),
+                                      20 * 1000,
+                                      50);
+       if (ret) {
+               dev_err(&phy->dev, "pll output enable timeout!\n");
+               goto err_pll_lock;
+       }
+
+       reg = HIWORD_UPDATE_MASK(PHY_CFG_PLL_LOCK,
+                                PHY_CFG_ADDR_MASK,
+                                PHY_CFG_ADDR_SHIFT);
+       writel(reg, phy->reg_base + PCIE_PHY_CONF);
+
+       ret = -EINVAL;
+       ret = readl_poll_sleep_timeout(phy->reg_base + PCIE_PHY_STATUS,
+                                      status,
+                                      status & PHY_PLL_LOCKED,
+                                      20 * 1000,
+                                      50);
+       if (ret) {
+               dev_err(&phy->dev, "pll relock timeout!\n");
+               goto err_pll_lock;
+       }
+
+       return 0;
+
+err_pll_lock:
+       reset_assert(&phy->phy_rst);
+       return ret;
+}
+
+static int rockchip_pcie_phy_power_off(struct rockchip_pcie_phy *phy)
+{
+       int ret;
+       u32 reg;
+
+       reg = HIWORD_UPDATE_MASK(PHY_LANE_IDLE_OFF,
+                                PHY_LANE_IDLE_MASK,
+                                PHY_LANE_IDLE_A_SHIFT);
+       writel(reg, phy->reg_base + PCIE_PHY_LANEOFF);
+
+       ret = reset_assert(&phy->phy_rst);
+       if (ret) {
+               dev_err(dev, "failed to assert phy reset\n");
+               return ret;
+       }
+
+       return 0;
+}
+
+static int rockchip_pcie_phy_init(struct rockchip_pcie_phy *phy)
+{
+       int ret;
+
+       ret = clk_enable(&phy->refclk);
+       if (ret) {
+               dev_err(dev, "failed to enable refclk clock\n");
+               return ret;
+       }
+
+       ret = reset_assert(&phy->phy_rst);
+       if (ret) {
+               dev_err(dev, "failed to assert phy reset\n");
+               goto err_reset;
+       }
+
+       return 0;
+
+err_reset:
+       clk_disable(&phy->refclk);
+       return ret;
+}
+
+static int rockchip_pcie_phy_exit(struct rockchip_pcie_phy *phy)
+{
+       clk_disable(&phy->refclk);
+
+       return 0;
+}
+
+static struct rockchip_pcie_phy_ops pcie_phy_ops = {
+       .init = rockchip_pcie_phy_init,
+       .power_on = rockchip_pcie_phy_power_on,
+       .power_off = rockchip_pcie_phy_power_off,
+       .exit = rockchip_pcie_phy_exit,
+};
+
+int rockchip_pcie_phy_get(struct udevice *dev)
+{
+       struct rockchip_pcie *priv = dev_get_priv(dev);
+       struct rockchip_pcie_phy *phy_priv = &priv->rk_phy;
+       ofnode phy_node;
+       u32 phandle;
+       int ret;
+
+       phandle = dev_read_u32_default(dev, "phys", 0);
+       phy_node = ofnode_get_by_phandle(phandle);
+       if (!ofnode_valid(phy_node)) {
+               dev_err(dev, "failed to found pcie-phy\n");
+               return -ENODEV;
+       }
+
+       phy_priv->reg_base = syscon_get_first_range(ROCKCHIP_SYSCON_GRF);
+
+       ret = clk_get_by_index_nodev(phy_node, 0, &phy_priv->refclk);
+       if (ret) {
+               dev_err(dev, "failed to get refclk clock phandle\n");
+               return ret;
+       }
+
+       ret = reset_get_by_index_nodev(phy_node, 0, &phy_priv->phy_rst);
+       if (ret) {
+               dev_err(dev, "failed to get phy reset phandle\n");
+               return ret;
+       }
+
+       phy_priv->ops = &pcie_phy_ops;
+       priv->phy = phy_priv;
+
+       return 0;
+}
index 05787ae1448671de899a8ec1d6186da694ac222b..713ad49d0458430c26e83441b03a55616e90930a 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <dm.h>
 #include <pci.h>
+#include <linux/bitops.h>
 
 #include <asm/io.h>
 
index 91630d35c3f085c19e8c16c3617ba684c863c0b5..8a659c36aa2493a289601e9f97ac5dcb1655bc8f 100644 (file)
@@ -14,6 +14,7 @@
 #include <common.h>
 #include <pci_ep.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 /*
  * Local Management Registers
index 612c428cf56888bda0362ca2e6f7c8542378b4c5..b4bae22c2cf4f6b8f52f71f55cd970ca3cba9832 100644 (file)
@@ -13,6 +13,7 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/device.h>
 #include <generic-phy.h>
 #include <phy-sun4i-usb.h>
@@ -22,6 +23,8 @@
 #include <asm/arch/clock.h>
 #include <asm/arch/cpu.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 
 #define REG_ISCR                       0x00
index 2de343de290bfcc31cc586947a8c11b3e03d5833..d29344ddb484ec55f472df7c73118c0cb7d0d23a 100644 (file)
 #include <clk.h>
 #include <dm.h>
 #include <generic-phy.h>
+#include <log.h>
 #include <malloc.h>
 #include <power-domain.h>
 #include <reset.h>
 #include <asm/io.h>
 #include <dm/device.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 /* USBH Setup register */
 #define USBH_SETUP_REG         0x00
index ed9f02b375cf57ff8b0704fd3f3dbd10bf786806..8d28292726ce905d963b3750a791483c662d908f 100644 (file)
 #include <clk.h>
 #include <dm.h>
 #include <generic-phy.h>
+#include <log.h>
 #include <malloc.h>
 #include <reset.h>
 #include <asm/io.h>
 #include <dm/device.h>
+#include <linux/bitops.h>
 
 #define USBH_SETUP_PORT1_EN    BIT(0)
 
index f0fda0290e9032cd4879752d81b69f69197f9031..501b97f3e213f42e367b317019425833251d545c 100644 (file)
 #include <common.h>
 #include <dm.h>
 #include <generic-phy.h>
+#include <log.h>
 #include <malloc.h>
 #include <reset.h>
 #include <asm/io.h>
 #include <dm/device.h>
+#include <linux/bitops.h>
 
 /* USBH Swap Control register */
 #define USBH_SWAP_REG          0x00
index 53d1f45bb96f933610d2bbacb7b0c9da44d438d1..99fdd33499adf92f060bab4bf272664909b4794d 100644 (file)
 #include <clk.h>
 #include <dm.h>
 #include <generic-phy.h>
+#include <log.h>
 #include <malloc.h>
 #include <power-domain.h>
 #include <reset.h>
 #include <asm/io.h>
 #include <dm/device.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 /* USBH PLL Control register */
 #define USBH_PLL_REG           0x18
index 14ac6bbbb20732bfa495aecc493bc636f4761b59..9faf50100339311f5a380dd85f2f6fb3ae81f253 100644 (file)
@@ -6,10 +6,13 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/device.h>
 #include <generic-phy.h>
 #include <asm/io.h>
 #include <asm/arch/psc_defs.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 /* USB PHY control register offsets */
 #define USB_PHY_CTL_UTMI               0x0000
index 3b2902f362af440b952491e19902578e17be7725..dc188c44e0d63351f6bb6d90097288f8462515d1 100644 (file)
@@ -5,9 +5,11 @@
 
 #include <common.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
+#include <linux/delay.h>
 
 #include "comphy_a3700.h"
 
index 244beef18ddaaa252c5b9dc98d0a6bfb91620b7a..27bff27ff7ecde49bd9b973cb51855064b03bb2e 100644 (file)
@@ -8,10 +8,11 @@
 #include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <asm/io.h>
 #include <dm/device_compat.h>
 #include <linux/err.h>
 #include <linux/errno.h>
-#include <asm/io.h>
+#include <linux/libfdt.h>
 
 #include "comphy_core.h"
 
index 9998c07a4738920fbcf93d7e1e43bec2bc62be13..15e80049def6c88074206052e9a79daf6a0111c4 100644 (file)
@@ -5,9 +5,11 @@
 
 #include <common.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
+#include <linux/delay.h>
 
 #include "comphy_core.h"
 #include "comphy_hpipe.h"
index c67ba997629adf9b2a9556f22e2de4204ef44607..98327557a89980a65ab9555a73434bc04e6db54f 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 
 #include "comphy_core.h"
index c23bc87d0f816faa1b5ffabaf3d91e38756fa75f..a1e621975867cdfbe9ac90cbe7368dfa51de828c 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/io.h>
 #include <bitfield.h>
@@ -15,6 +16,7 @@
 #include <errno.h>
 #include <generic-phy.h>
 #include <regmap.h>
+#include <linux/delay.h>
 #include <power/regulator.h>
 #include <reset.h>
 #include <clk.h>
index 82655f26dd6e1a40efa2a11affb1ff6ee0729cd5..4e9696fd59083c0097e6e2026b94b0b93d4c2b39 100644 (file)
@@ -17,6 +17,7 @@
 #include <reset.h>
 #include <bitfield.h>
 #include <generic-phy.h>
+#include <linux/delay.h>
 
 #include <linux/bitops.h>
 #include <linux/compat.h>
index 88c2ec69b22ed167c1173c588ef601cae7f1b2e4..d1beebee43e840c2381d80ee9bda96ed48c17525 100644 (file)
@@ -15,6 +15,7 @@
 #include <power/regulator.h>
 #include <regmap.h>
 #include <reset.h>
+#include <linux/bitops.h>
 
 #define REG_CONFIG                                     0x00
        #define REG_CONFIG_CLK_EN                       BIT(0)
index b4f4c3c76b97d7b9b764406fc5ae843cc4a0e2ec..2267bd08c2c719e1c7eb165ce54e3614f584cf2c 100644 (file)
@@ -15,6 +15,7 @@
 #include <errno.h>
 #include <generic-phy.h>
 #include <regmap.h>
+#include <linux/delay.h>
 #include <power/regulator.h>
 #include <clk.h>
 #include <linux/usb/otg.h>
index 2c90738fca0f1dac640a1165d4d8a60a675cdf41..4efaddd701cc365905911b881d21969716cbfef3 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <generic-phy.h>
+#include <linux/bitops.h>
 #include <usb/ehci-ci.h>
 #include <usb/ulpi.h>
 #include <asm/io.h>
index 1e7c5f334b1ef548b687ff90fe69dd6047637bab..4c0818f6e8da3588985e1ed4f39bbf33fdaf5b31 100644 (file)
 #include <common.h>
 #include <dm.h>
 #include <generic-phy.h>
+#include <log.h>
 #include <reset.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
+#include <linux/delay.h>
 
 #define OFS_U2_PHY_AC0                 0x800
 #define USBPLL_FBDIV_S                 16
index 160a386801e902cc230e583cb39d074d9f8ed72f..0793b97dd51aa94adfbe44c270553ece1f119e8c 100644 (file)
@@ -13,6 +13,7 @@
 #include <generic-phy.h>
 #include <regmap.h>
 #include <syscon.h>
+#include <linux/bitops.h>
 #include <linux/err.h>
 
 #define OMAP_USB2_CALIBRATE_FALSE_DISCONNECT   BIT(0)
index 034b47932da354b461a2d884fd89aafd524a6faf..d025188eae983d42d8f91cc2a44df4e653d649ee 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
 #include <asm/arch/hardware.h>
index 81525a48b70a03f3b3a25c2669ec7255edcd3a4b..1e65c24356e35bc8cad600b8b20cb5589300bbd0 100644 (file)
@@ -14,6 +14,8 @@
 #include <asm/io.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 #include <dt-bindings/phy/phy.h>
 
index e93130aee610abfc8d3192fffb956cc7822bda4c..18da86e4bea520b97160537998f4a587b0e30ffd 100644 (file)
@@ -18,6 +18,7 @@
 #include <asm/io.h>
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
+#include <linux/delay.h>
 #include <power/regulator.h>
 
 #define USBHS_LPSTS                    0x02
index 6ba37213cb8cd8413ab89f2d599b51ed368dd8d0..464b0735e87a3295e0e81323b7b12702691e014e 100644 (file)
@@ -9,12 +9,14 @@
 #include <dm.h>
 #include <fdtdec.h>
 #include <generic-phy.h>
+#include <log.h>
 #include <reset.h>
 #include <syscon.h>
 #include <usb.h>
 #include <asm/io.h>
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
+#include <linux/delay.h>
 #include <power/regulator.h>
 
 /* USBPHYC registers */
index 0b2b2410b27ed77d05c1b763a995e63da6ddaf45..6907c1afb395c1222a729de72d33eb6f0abd647f 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/device.h>
 #include <dm/device_compat.h>
 #include <dm/lists.h>
@@ -19,6 +20,8 @@
 #include <power-domain.h>
 #include <regmap.h>
 #include <syscon.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 
 #define CMU_R07C               0x7c
index 1fded5ebf42f9d7856415a7aa4ac49cfc8bbf6bb..db7f39cd0b4598ad14aedb9bb6eebdd8c82c9d81 100644 (file)
@@ -8,6 +8,7 @@
 #include <dm.h>
 #include <dm/devres.h>
 #include <generic-phy.h>
+#include <log.h>
 
 static inline struct phy_ops *phy_dev_ops(struct udevice *dev)
 {
@@ -117,7 +118,7 @@ int generic_phy_init(struct phy *phy)
 {
        struct phy_ops const *ops;
 
-       if (!phy)
+       if (!generic_phy_valid(phy))
                return 0;
        ops = phy_dev_ops(phy->dev);
 
@@ -128,7 +129,7 @@ int generic_phy_reset(struct phy *phy)
 {
        struct phy_ops const *ops;
 
-       if (!phy)
+       if (!generic_phy_valid(phy))
                return 0;
        ops = phy_dev_ops(phy->dev);
 
@@ -139,7 +140,7 @@ int generic_phy_exit(struct phy *phy)
 {
        struct phy_ops const *ops;
 
-       if (!phy)
+       if (!generic_phy_valid(phy))
                return 0;
        ops = phy_dev_ops(phy->dev);
 
@@ -150,7 +151,7 @@ int generic_phy_power_on(struct phy *phy)
 {
        struct phy_ops const *ops;
 
-       if (!phy)
+       if (!generic_phy_valid(phy))
                return 0;
        ops = phy_dev_ops(phy->dev);
 
@@ -161,7 +162,7 @@ int generic_phy_power_off(struct phy *phy)
 {
        struct phy_ops const *ops;
 
-       if (!phy)
+       if (!generic_phy_valid(phy))
                return 0;
        ops = phy_dev_ops(phy->dev);
 
index ec597da84e3d335ff275965c617712d3bc85b322..2a20f7601c02eb5f0bb18a3ea4645592e08872d7 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <bitfield.h>
 #include <dm.h>
index 7fc36319cbad0650daee62b91812af9dcef8e742..3f49851bcaba7b31627ae8ed2fdbbfa6dccef4b6 100644 (file)
@@ -12,6 +12,8 @@
 #include <asm/arch/sys_proto.h>
 #include <syscon.h>
 #include <regmap.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 
 /* PLLCTRL Registers */
index a6e9c0d933d6db8a7a17cf6d663ef32906b13fc0..05ef24864f2e91554bafd3523141b332ec74a8b6 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/pinctrl.h>
 #include <asm/arch/scu_ast2500.h>
index 5e154a9f19ba49bfc00676b8a9de5bacf5967f7a..a0625d7c835c9b03d42d91d17eed0c3e94f8d0ca 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <asm/io.h>
 #include <dm/pinctrl.h>
 #include <mach/ar71xx_regs.h>
index 3166167d71bcc165a67fe5d366a8fd9d46b036ed..c9f9608c92e8790b3b183dc841ecd9fb23411468 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <asm/io.h>
 #include <dm/pinctrl.h>
 #include <mach/ar71xx_regs.h>
index eb720f09f8e4180c16f717b41870d2cb0c6c9e46..f44af6cf9ad66de4c916fe671550221cb4ee07eb 100644 (file)
@@ -14,6 +14,7 @@
 #include <config.h>
 #include <errno.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/pinctrl.h>
 #include <dm/root.h>
 #include <dm/device-internal.h>
index e280054f94574ce2db198be4aca53dd17dd94727..ba8206350eaef7202e343034641a1b9625a700bd 100644 (file)
@@ -19,6 +19,7 @@
 #include <common.h>
 #include <dm.h>
 #include <irq.h>
+#include <log.h>
 #include <malloc.h>
 #include <p2sb.h>
 #include <spl.h>
index bd80435ffaeb3e9b8c8dab375e1202fb0de6c1cd..c14176d4a77bf7734fe4074554f11ddfcd882d4b 100644 (file)
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <dm.h>
 #include <dt-structs.h>
+#include <log.h>
 #include <p2sb.h>
 #include <asm/intel_pinctrl.h>
 #include <asm-generic/gpio.h>
index c7351f32bb60d60c1644f6795a881db6666e1051..5fdc150295e459e210747235e4369190ccc10c34 100644 (file)
@@ -11,6 +11,7 @@
 #include <dm/pinctrl.h>
 #include <asm/io.h>
 #include <asm-generic/gpio.h>
+#include <linux/bitops.h>
 
 #include "pinctrl-mtk-common.h"
 
index b5d74068c571acef669cbcf04fce56ac74ddae48..c6cb941d0a95b6a4c08cd3213b9d9e3f7c3d1d64 100644 (file)
@@ -4,6 +4,7 @@
  * Copyright (C) 2017 Xingyu Chen <xingyu.chen@amlogic.com>
  */
 
+#include <log.h>
 #include <asm/gpio.h>
 #include <common.h>
 #include <dm.h>
index b37b517fe57b69ef2a8edc0abfa8df43c68b65b4..159f3406a203e59649c13810d561bb15c7cf5c38 100644 (file)
@@ -3,10 +3,12 @@
  * (C) Copyright 2016 - Beniamino Galvani <b.galvani@gmail.com>
  */
 
+#include <log.h>
 #include <asm/gpio.h>
 #include <common.h>
 #include <dm.h>
 #include <dm/pinctrl.h>
+#include <linux/bitops.h>
 #include <linux/io.h>
 #include "pinctrl-meson-gx.h"
 
index 7fbe2810a2923784faf275652571220c7b413a8e..d4539b02d881ae47a04be0136a2fc555643e2701 100644 (file)
@@ -5,14 +5,17 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <dm/device-internal.h>
 #include <dm/device_compat.h>
 #include <dm/lists.h>
 #include <dm/pinctrl.h>
 #include <fdt_support.h>
+#include <linux/bitops.h>
 #include <linux/err.h>
 #include <linux/io.h>
+#include <linux/libfdt.h>
 #include <linux/sizes.h>
 #include <asm/gpio.h>
 
index 90c54b45c3e345b7d0f3253a328a1a4525e5d7a5..307ed1db8750ccc613b4fa36248570460136d6d5 100644 (file)
@@ -21,6 +21,7 @@
 #include <dm/root.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <linux/bitops.h>
 #include <linux/io.h>
 #include "mscc-common.h"
 
index 6e0bcae991282f683e740b45ac67bd1fea0e02d7..2dee79af17ebaf1cae4424b34ffd381ecf68093a 100644 (file)
@@ -32,6 +32,8 @@
 #include <asm/gpio.h>
 #include <asm/system.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
+#include <linux/libfdt.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 0b9c9e1d6a90ce6a95f43f8da748900cd00e7a67..2206e958ec7017a94556d8fa3875d96e87deec34 100644 (file)
@@ -9,11 +9,13 @@
 #include <fdtdec.h>
 #include <errno.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/pinctrl.h>
 #include <dm/root.h>
 #include <asm/system.h>
 #include <asm/io.h>
 #include <asm/arch-armada8k/soc-info.h>
+#include <linux/bitops.h>
 #include "pinctrl-mvebu.h"
 
 #define AP_EMMC_PHY_CTRL_REG           0x100
index 474c38a0497601c0aed35f178fbf951f10fa2321..48c7bde375269a066ebc0145c5e64db99210b685 100644 (file)
@@ -8,6 +8,7 @@
 #include <mapmem.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
+#include <linux/bitops.h>
 #include <linux/io.h>
 #include <linux/err.h>
 #include <dm.h>
index 8d61dfe863941d807cf56be6f1b04407ba7c9d61..a403114f21cb5cf0ea9833d0726109c32dd208b0 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <linux/io.h>
index 0c43686e01cc5895912ac2a399ea19d8b691bfa8..801d14253c10ae771e6f76d53ca9e9d5c26e0f63 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <dm.h>
 #include <dm/pinctrl.h>
+#include <linux/bitops.h>
 #include <linux/io.h>
 #include <linux/err.h>
 #include <mach/atmel_pio4.h>
index 27f274ff022416a6d66e895b92a0239fedefc5fe..b3fa124cfbf3363977ffed8412c3d9cfd4f6de0b 100644 (file)
@@ -8,8 +8,10 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/pinctrl.h>
 #include <asm/hardware.h>
+#include <linux/bitops.h>
 #include <linux/io.h>
 #include <linux/err.h>
 #include <mach/at91_pio.h>
index 3ee75fbbeea1740c8d02242f2a25fe58fee8eed4..ac0119d1988b3d17d773424b14cc3a9429c5b203 100644 (file)
@@ -7,7 +7,9 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/pinctrl.h>
+#include <linux/bitops.h>
 
 static const char * const sandbox_pins[] = {
        "SCL",
index f0cd845fea5468f0d04abc20b2ae09532070075c..8e942a8280239b5aafb2c57eeb2eace9a3c0cd29 100644 (file)
@@ -14,6 +14,8 @@
 #include <syscon.h>
 #include <asm/io.h>
 #include <dm/pinctrl.h>
+#include <linux/bug.h>
+#include <linux/libfdt.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index b0e43ae0a16e53f3d29a7b26c6b7f929eafdc678..a3240ccd5a0f456dc9bb70726a59008740d8a67d 100644 (file)
@@ -15,6 +15,8 @@
 #include <dm/lists.h>
 #include <dm/pinctrl.h>
 #include <linux/bitfield.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <power/regulator.h>
 
 /* STMFX pins = GPIO[15:0] + aGPIO[7:0] */
index 06f1518c78ff9ed68cf28e2238f26e9236cdd6fb..911af1297b8af651d79dd14acfde52a6167d80bd 100644 (file)
@@ -7,8 +7,10 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <asm/io.h>
 #include <dm/pinctrl.h>
+#include <linux/bitops.h>
 #include <mach/pic32.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index 9926235b52e0067626e332cc3f2c0d272bfd698e..fc241fdcdef9d89cc4bbb37b3f867eb7f8a2e868 100644 (file)
@@ -1,6 +1,7 @@
 #include <common.h>
 #include <dm.h>
 #include <hwspinlock.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/arch/gpio.h>
 #include <asm/gpio.h>
@@ -8,7 +9,9 @@
 #include <dm/device_compat.h>
 #include <dm/lists.h>
 #include <dm/pinctrl.h>
+#include <linux/bitops.h>
 #include <linux/err.h>
+#include <linux/libfdt.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 7e4530d684c724fd4c5230f169d10dc966fb26d8..5055780bf75eb3fb5ccd5edc439f5729e2191771 100644 (file)
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <dm/lists.h>
 #include <dm/pinctrl.h>
+#include <linux/bitops.h>
 #include <linux/io.h>
 #include <linux/err.h>
 
index 5313f2f509888cfa618099cf1f57384d4d97235c..de22e49ebef4bcc4930ce9dcc6774a6874ea80a7 100644 (file)
@@ -15,6 +15,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <dm/pinctrl.h>
+#include <linux/bitops.h>
 #include <linux/kernel.h>
 
 #include "sh_pfc.h"
index ab64f4f0c86796080fd19968b74591a88ec968c9..1179afd2e7b266cbfca0fc36ced03ddaf21bac53 100644 (file)
@@ -17,6 +17,8 @@
 #include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <dm/pinctrl.h>
+#include <linux/bitops.h>
+#include <linux/bug.h>
 #include <linux/io.h>
 #include <linux/sizes.h>
 
index 1cfb881e586aadb8aa6a78c02baa14078557e528..db3d5133582c927be492e61b6e97c6864f8473bb 100644 (file)
@@ -672,4 +672,5 @@ extern const struct sh_pfc_soc_info r8a77995_pinmux_info;
  */
 #define RCAR_GP_PIN(bank, pin)         (((bank) * 32) + (pin))
 
+#include <linux/bug.h>
 #endif /* __SH_PFC_H */
index bb56ae9fb343a59d2517f85819a36155e432e214..617721a6264cb48d1b5e3f3608ac565abeb33d9c 100644 (file)
@@ -5,9 +5,11 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/pinctrl.h>
 #include <regmap.h>
 #include <syscon.h>
+#include <linux/bitops.h>
 
 #include "pinctrl-rockchip.h"
 
index 28c905129ba1aabbdf6d26bd64a99eeb50accc82..d49e3007cea25109ecdbc783e0a5ce1c6510d520 100644 (file)
@@ -8,6 +8,7 @@
 #include <dm/pinctrl.h>
 #include <regmap.h>
 #include <syscon.h>
+#include <linux/bitops.h>
 
 #include "pinctrl-rockchip.h"
 
index 3eb4d952bb5f1a94dc39b707fc0180fe9b8481cd..a175d6c07f1f31ee4d8ffad05d75163a0922395e 100644 (file)
@@ -8,6 +8,7 @@
 #include <dm/pinctrl.h>
 #include <regmap.h>
 #include <syscon.h>
+#include <linux/bitops.h>
 
 #include "pinctrl-rockchip.h"
 
index 043764fc92093b4c64e5a3f0938af3779b9bd55f..afde80985450624bbf3ca6cd9aca48648d09ace1 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/pinctrl.h>
 #include <regmap.h>
 #include <syscon.h>
index c5e4fe30a7bf0e508d750ede7ff19b2ce1d48d76..85bc0ef0f31748471707d2073dbcbb975847fc0f 100644 (file)
@@ -5,9 +5,11 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/pinctrl.h>
 #include <regmap.h>
 #include <syscon.h>
+#include <linux/bitops.h>
 
 #include "pinctrl-rockchip.h"
 
index 7ae147f304b48ee679f93ef911f2032a8f3ca7d0..faaa2ce1f705275d73ff5b99810b43deaabbc47a 100644 (file)
@@ -5,8 +5,10 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/pinctrl.h>
 #include <regmap.h>
+#include <linux/bitops.h>
 
 #include "pinctrl-rockchip.h"
 
index abd57e54a5b359e1933f18f42d440c87800002a3..db2b10a6906adfb786271b1f5d947fbf91fba650 100644 (file)
@@ -5,9 +5,11 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/pinctrl.h>
 #include <regmap.h>
 #include <syscon.h>
+#include <linux/bitops.h>
 
 #include "pinctrl-rockchip.h"
 
index 8d37a6f945730e4b93f795832ccc23a9e246537e..f9160f26c78e97c7671326cff90f1658e49d4f49 100644 (file)
@@ -5,9 +5,11 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/pinctrl.h>
 #include <regmap.h>
 #include <syscon.h>
+#include <linux/bitops.h>
 
 #include "pinctrl-rockchip.h"
 
index 6cb7bb45d94757708f0a14741b0b71c05664b016..7a6059959ef176890997bb27757df5c4a907cc31 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/pinctrl.h>
 #include <regmap.h>
 #include <syscon.h>
index 75634e9f4d4d49841a14cecc1f9a676499b41cff..d04c1afb090a8dc6db6c1e1d4fcae179e6864e61 100644 (file)
@@ -5,9 +5,11 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/pinctrl.h>
 #include <regmap.h>
 #include <syscon.h>
+#include <linux/bitops.h>
 
 #include "pinctrl-rockchip.h"
 
index 0fd0416b18049047ec0a7ec47125e5b73f19cf0f..ec1cb9b652f3d2b7edb83cdad0c9f0daaf34a744 100644 (file)
@@ -5,10 +5,13 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/pinctrl.h>
 #include <regmap.h>
 #include <syscon.h>
 #include <fdtdec.h>
+#include <linux/bitops.h>
+#include <linux/libfdt.h>
 
 #include "pinctrl-rockchip.h"
 
index 5edc7cbd7421b63db789cbf0929cf5281ffcc877..d969c200826c046e708bde1f8cfe4c8c5f78f3e7 100644 (file)
@@ -6,6 +6,7 @@
 #ifndef __DRIVERS_PINCTRL_ROCKCHIP_H
 #define __DRIVERS_PINCTRL_ROCKCHIP_H
 
+#include <linux/bitops.h>
 #include <linux/types.h>
 
 /**
index 54610a3e9014625c26658b9a1241583e608309c7..22334329ed4cc60cbad952f35fa36bd0be7e2a60 100644 (file)
@@ -5,9 +5,11 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/pinctrl.h>
 #include <regmap.h>
 #include <syscon.h>
+#include <linux/bitops.h>
 
 #include "pinctrl-rockchip.h"
 
index abeba965c4996197ec159ec6c0a46ad6c468e24b..8545b9d0707885aa831e98ea60d41d78a2f97640 100644 (file)
@@ -7,6 +7,8 @@
 #include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
+#include <linux/bug.h>
 #include <linux/io.h>
 #include <linux/err.h>
 #include <linux/kernel.h>
index 8f83ecae7dbabcd31a21f6e3f3beedf0544d1707..5951835d6e855eb3ecbe6a03cb15d064853a037f 100644 (file)
@@ -8,6 +8,7 @@
 #define __PINCTRL_UNIPHIER_H__
 
 #include <linux/bitops.h>
+#include <linux/bug.h>
 #include <linux/build_bug.h>
 #include <linux/kernel.h>
 #include <linux/types.h>
index dfff335e54e29c0c4b8aaae415ed43488fba04dd..5ed6fcca262abeb6e6af473ba8a82913a5f27ead 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <pci.h>
 #include <asm/test.h>
 #include <power/acpi_pmc.h>
index 7fbbf97b45411da0453cd8cf7b0c195a7d099679..48a6c663bd2f76f2979f1dfa9c2ee814ef1d289b 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <asm/io.h>
 #include <power/acpi_pmc.h>
 
index 361be6c31c7139515529c7013a56e26446de4b8f..d6e36125c12cfb6f7862a1747fe6db1109f0c090 100644 (file)
@@ -79,7 +79,7 @@ int axp_init(void)
        return 0;
 }
 
-int do_poweroff(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_poweroff(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        pmic_bus_write(AXP152_SHUTDOWN, AXP152_POWEROFF);
 
index 67b420910c9b39c36bf76164aa66ac202dbe8995..ade531940b930020df5927abddcd1df83a9650bf 100644 (file)
@@ -8,6 +8,7 @@
 #include <command.h>
 #include <asm/arch/pmic_bus.h>
 #include <axp_pmic.h>
+#include <linux/delay.h>
 
 #ifdef CONFIG_AXP_ALDO3_VOLT_SLOPE_08
 #  define AXP209_VRC_SLOPE AXP209_VRC_LDO3_800uV_uS
@@ -229,7 +230,7 @@ int axp_init(void)
        return 0;
 }
 
-int do_poweroff(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_poweroff(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        pmic_bus_write(AXP209_SHUTDOWN, AXP209_POWEROFF);
 
index c440047d36fe50669b820d499c39e28908ccd462..3446fe7365d2f16321a5c103f3835b87fdc22c79 100644 (file)
@@ -264,7 +264,7 @@ int axp_get_sid(unsigned int *sid)
        return 0;
 }
 
-int do_poweroff(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_poweroff(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        pmic_bus_write(AXP221_SHUTDOWN, AXP221_SHUTDOWN_POWEROFF);
 
index 7de92f4f614c338d7f3f6b74f8491cf47fb25177..6323492b66d12960e078a1181ed57420c88fb448 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <errno.h>
 #include <asm/arch/gpio.h>
 #include <asm/arch/pmic_bus.h>
@@ -219,7 +220,7 @@ int axp_init(void)
        return pmic_bus_init();
 }
 
-int do_poweroff(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_poweroff(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        pmic_bus_write(AXP809_SHUTDOWN, AXP809_SHUTDOWN_POWEROFF);
 
index 834919ddd4c189af7d16d5e956eb1903315153d4..0531707c8aa710f61d93a562c801b35d317d4ce5 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <errno.h>
 #include <asm/arch/gpio.h>
 #include <asm/arch/pmic_bus.h>
@@ -255,7 +256,7 @@ int axp_init(void)
        return 0;
 }
 
-int do_poweroff(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_poweroff(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        pmic_bus_write(AXP818_SHUTDOWN, AXP818_SHUTDOWN_POWEROFF);
 
index 450b1dfa28f7be8970d9e42f863e03b4170cc707..54b2bf91e5c2c876a6095ff1716ee2e9cf840775 100644 (file)
@@ -6,6 +6,8 @@
 
 #include <common.h>
 #include <console.h>
+#include <log.h>
+#include <linux/delay.h>
 #include <power/pmic.h>
 #include <power/battery.h>
 #include <power/max8997_pmic.h>
index bb21cd7ff82fb9ebb54e484f7ec3c4fdd1c49522..1172970d1e0b261e9e38008c8146028e22000263 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <power/pmic.h>
 #include <power/battery.h>
 #include <power/max77693_pmic.h>
index a6426bee27f94599df2cbe731ec171b24d690158..a494bfa8c9de71b6ae5f8654ee9d9d046eaddab2 100644 (file)
@@ -8,6 +8,7 @@
 #include <malloc.h>
 #include <power-domain-uclass.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 #define MAX_DOMAINS    32
 
index 7ba4056e2d5b48595656f998fa00f8f0ddc7ab9a..889b65a47ff86af2b97e6d699f2bf52812424845 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <power-domain-uclass.h>
 #include <asm/io.h>
index 571146e19d2696c4ee8db64f30a9d952f9d96f8a..6461ab23d629fd46ef264c726c15667da1bc3927 100644 (file)
@@ -6,6 +6,7 @@
 #define DEBUG
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <power-domain-uclass.h>
 #include <asm/arch/power-domain.h>
index 7082c80bfab09d4befc99b8a5571a6aa5082e000..8349a9c15822e70cce7c9bf7c0cd71594aa4db63 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <power-domain-uclass.h>
 #include <regmap.h>
@@ -14,6 +15,8 @@
 #include <clk.h>
 #include <dt-bindings/power/meson-g12a-power.h>
 #include <dt-bindings/power/meson-sm1-power.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 
 /* AO Offsets */
index 12cdfcdd1f51c4b47711022ec7596a828237d251..a41b230448fca23af2b198050c0fb1d26cda29dd 100644 (file)
@@ -8,12 +8,15 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <power-domain-uclass.h>
 #include <regmap.h>
 #include <syscon.h>
 #include <reset.h>
 #include <clk.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 
 enum {
index 3ff7ca1befadada704108779c14a2fe5e28abde3..fae4749012bdc03f907accfd5e3e093378e078ef 100644 (file)
@@ -13,6 +13,7 @@
 #include <syscon.h>
 #include <asm/io.h>
 #include <asm/processor.h>
+#include <linux/bitops.h>
 #include <linux/err.h>
 #include <linux/iopoll.h>
 
index 2b7a1cb8fe3becceaae0d251ea85984166fdc238..c2c7c3bd507fcfb6bb2ae6ab2fa4ca5e32254004 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <power-domain.h>
 #include <power-domain-uclass.h>
index 3a834a9f1ee5fd658ad26497b9e19614d1e25e9b..4d9a2006e6601e1c1e2a358a360c59f849685189 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <power-domain-uclass.h>
 #include <asm/io.h>
index e87244197f8fccc82fccfdaab0cd535e1010851d..707735cf85161240847b4702694e0a6dd73ef94a 100644 (file)
@@ -5,10 +5,12 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <misc.h>
 #include <power-domain-uclass.h>
 #include <asm/arch-tegra/bpmp_abi.h>
+#include <linux/bitops.h>
 
 #define UPDATE BIT(0)
 #define ON     BIT(1)
index a5866703ae37899d9a69d0d32d6cf72755ff8470..7ee121dfb26bae43a0ddcc746aeb6f72bd40440e 100644 (file)
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <power-domain-uclass.h>
 #include <dm/device_compat.h>
index 6a662677a7cb0133ef37b5f355ceee2cb9a9054c..4fba7b527c6b8be96ede822692f4ae771ae26d84 100644 (file)
@@ -20,6 +20,7 @@
 #include <common.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <tmu.h>
 #include <asm/arch/tmu.h>
 #include <asm/arch/power.h>
index 8cfdf654f7486214e638f30dc5fa0ee30c5dc59e..a395d587a86f414f336bc0ff79728267b233538a 100644 (file)
@@ -5,6 +5,8 @@
  */
 
 #include <common.h>
+#include <log.h>
+#include <linux/delay.h>
 #include <power/pmic.h>
 #include <power/max17042_fg.h>
 #include <i2c.h>
index 0de9ee712d0910058d4dc18596d234935d521b8c..983a6d4a2bde6d815f18fe5c1b2950a328eed5dc 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <power/pmic.h>
 #include <power/max77693_fg.h>
 #include <i2c.h>
index 0eb26d29d4724bc8c30d2bd43ff793d865ad19ce..36ee44b9a2c9dd690c487f4a76370c15fae0a225 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <power/pmic.h>
 #include <power/power_chrg.h>
 #include <power/max77693_muic.h>
index c3bd6c499036f1ce0b7cce827f8e18f3d0a53da9..e32a9722a408dfcc186d619de5df95041257a79a 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <power/pmic.h>
 #include <power/max77693_pmic.h>
 #include <i2c.h>
index 566be5f39e5da9c8931829ee480096c7ab38632b..354817a037808d6dd3692b755793fb9e9fce6e52 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <command.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 #define PWRAP_BASE             0x1000d000
 #define PWRAP_WACS2_CMD                0x9c
@@ -17,7 +18,7 @@
 #define RTC_BBPU_KEY           (0x43 << 8)
 #define RTC_WRTGR              0x003c
 
-int do_poweroff(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_poweroff(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        u32 addr, val;
 
index 186fa907e18bc07731c591896d40626c54ba7428..8f0f5a6d96e5ca63449d95ca174a8ff40df264a2 100644 (file)
@@ -8,6 +8,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <linux/libfdt.h>
 #include <power/act8846_pmic.h>
 #include <power/pmic.h>
index 54adcbf50f5515ade7af71612bf7608cb462360e..3aa3cce945e72dddaa043d671d518682c8de14a9 100644 (file)
@@ -10,6 +10,7 @@
 #include <errno.h>
 #include <fdtdec.h>
 #include <i2c.h>
+#include <log.h>
 #include <dm/lists.h>
 #include <power/as3722.h>
 #include <power/pmic.h>
index 2e0429827347629f2135957e654b2eb3757778b1..31c9139c646da487e9f5678d48490a7b84276c3c 100644 (file)
@@ -7,6 +7,7 @@
 #include <errno.h>
 #include <dm.h>
 #include <i2c.h>
+#include <log.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 #include <power/bd71837.h>
index abda7a5a40446451b097e88be851b1452222af55..25101d18f74b25f3f892630e1cad7572e662e76e 100644 (file)
@@ -9,6 +9,7 @@
 #include <errno.h>
 #include <dm.h>
 #include <i2c.h>
+#include <log.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 #include <power/da9063_pmic.h>
index a5f855ce2a3187470c33f727f825d8fee48233f9..4d1e686d274a3051a9bfc913770fc095493016d1 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/device-internal.h>
 #include <dm/device_compat.h>
 #include <dm/lists.h>
index 86d7b89b1f02e8032bf317432a4b3373027d1563..404fe008fe6b9161c93056b6234324257b2c19a3 100644 (file)
@@ -8,6 +8,7 @@
 #include <errno.h>
 #include <dm.h>
 #include <i2c.h>
+#include <log.h>
 #include <malloc.h>
 #include <power/pmic.h>
 #include <power/sandbox_pmic.h>
index 4ae4043b943727d209bb1fb29bfef98664f6a720..2b1260ec6b1ff7290c392f218e626804ee87db81 100644 (file)
@@ -9,6 +9,7 @@
 #include <errno.h>
 #include <dm.h>
 #include <i2c.h>
+#include <log.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 #include <power/lp873x.h>
index 3e5fc608d28b23768b26206ebbd4dc0a45c95070..f4a4bd03d70408bdede08ac5896df733f22006ff 100644 (file)
@@ -9,6 +9,7 @@
 #include <errno.h>
 #include <dm.h>
 #include <i2c.h>
+#include <log.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 #include <power/lp87565.h>
index 8e3a8cf870bae55d7c9aae33d674763104ec886d..9f02c0b6f6fb1f99e026dfb7db3fbccd6d5b1943 100644 (file)
@@ -9,6 +9,7 @@
 #include <errno.h>
 #include <dm.h>
 #include <i2c.h>
+#include <log.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 #include <power/max77686_pmic.h>
index 241ab35b630a2d84c1a5e354d1de299d259998e3..969ce902395f55b8145be13458ebca49a3f93f0d 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <power/pmic.h>
 #include <power/power_chrg.h>
 #include <power/max8997_muic.h>
index 36be119b6cff84e030b4066d073984a03305ac11..6080cbff0beee21d9d479a611b251caa4b5add46 100644 (file)
@@ -9,6 +9,7 @@
 #include <errno.h>
 #include <dm.h>
 #include <i2c.h>
+#include <log.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 #include <power/palmas.h>
index 77986c47d752304734ad239348dd8f0fc5ef9296..0c9d9a366e8ec699f187e5149572a06c05403c26 100644 (file)
@@ -8,6 +8,7 @@
 #include <errno.h>
 #include <dm.h>
 #include <i2c.h>
+#include <log.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 #include <power/pca9450.h>
index db630f3ad0e64d64c1ccb3bb103038fc5064473a..65c4456977cc69971fb1dff699d18013458d6402 100644 (file)
@@ -9,6 +9,7 @@
 #include <errno.h>
 #include <dm.h>
 #include <i2c.h>
+#include <log.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 #include <power/pfuze100_pmic.h>
index db68c766f5d738e27041d8692b35c8d72902fe1a..7770171917d7513e73fc1b8e9d03fda96910f663 100644 (file)
@@ -8,6 +8,7 @@
 #include <fdtdec.h>
 #include <errno.h>
 #include <dm.h>
+#include <log.h>
 #include <vsprintf.h>
 #include <dm/lists.h>
 #include <dm/device-internal.h>
index 6443c9ffc98c21697330d0b543764d1a19457fb9..80b9078cf8f0732e0f798040c33aa1976d3623f0 100644 (file)
@@ -5,6 +5,7 @@
  */
 #include <asm/io.h>
 #include <common.h>
+#include <linux/delay.h>
 #include <power/pmic.h>
 #include <power/max8997_muic.h>
 #include <power/hi6553_pmic.h>
index 87c438ea0476fe8305c763b4ae2eb14569a4ddf9..1d834ff7130494706982528129b4f7192243f7c4 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <power/pmic.h>
 #include <power/max8997_pmic.h>
 #include <i2c.h>
index 489af59b417a859135759108d873f24f29d104bc..e03ddc98d7309b874c087bab0735ac489cb85713 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <i2c.h>
+#include <log.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 #include <power/tps65910_pmic.h>
index 52e6d9d8c0e88484545d025728f16538ed04558d..195884bde9c0c8a9e3480df533f68ee9f8a4afd8 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <power/rk8xx_pmic.h>
 #include <power/pmic.h>
 
index f238396d368301365b0646e8dfae2faeb2060f79..d9a8298ebbbd68868a79de4a7afd973c9218dd0d 100644 (file)
@@ -8,6 +8,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <linux/libfdt.h>
 #include <power/rn5t567_pmic.h>
 #include <power/pmic.h>
index f2aab6c457012f2387a753591216a4162033af6b..1ba1640a8df3531dcd6fcc14ae76eb2fdafdcde8 100644 (file)
@@ -9,6 +9,7 @@
 #include <errno.h>
 #include <dm.h>
 #include <i2c.h>
+#include <log.h>
 #include <power/pmic.h>
 #include <power/s2mps11.h>
 
index b5ddd4930e3146d100c5bd26ba0df2e1aaeeb633..db6d0357ee4cb26fa867838702f012fd57e73e68 100644 (file)
@@ -8,6 +8,7 @@
 #include <errno.h>
 #include <dm.h>
 #include <i2c.h>
+#include <log.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 #include <power/s5m8767.h>
index 5b1d19f3e0b70e6d57786cec2658c4825655853b..b81df0dff1a5867c7bbb34893a08da62734dfb49 100644 (file)
@@ -9,6 +9,7 @@
 #include <errno.h>
 #include <fdtdec.h>
 #include <i2c.h>
+#include <log.h>
 #include <power/pmic.h>
 #include <power/tps65090.h>
 
index 7b3416ae6ec8d9f3a5ebaa4eff087cdb2a1d7664..3dfc1918d5b24d608d3eb241ed18640ec55b0ad6 100644 (file)
@@ -9,6 +9,7 @@
 #include <errno.h>
 #include <dm.h>
 #include <i2c.h>
+#include <log.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 #include <power/tps65941.h>
index 095d8a51bef062c76712c96e5df574a422110a47..eeed8e24a90b24c84c9125822b14b9ae739d4bfd 100644 (file)
@@ -10,6 +10,8 @@
  */
 
 #include <common.h>
+#include <command.h>
+#include <log.h>
 #include <malloc.h>
 #include <linux/types.h>
 #include <linux/list.h>
@@ -120,7 +122,8 @@ static void pmic_list_names(void)
        }
 }
 
-static int do_pmic(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_pmic(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        u32 ret, reg, val;
        char *cmd, *name;
index 9ecd358100aa7c7b85e52b879a580621de7a982f..e286dd108f31af2cbdd8aacd9d337b8a69cd7ffb 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <power/pmic.h>
 #include <dialog_pmic.h>
 #include <errno.h>
index b30f223a5c208e467382a2d2c695870f65c613a1..5a0455e1195a6b0cb452600abec3f9aaf6f434b8 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <linux/types.h>
 #include <power/pmic.h>
 #include <i2c.h>
index a0703c9e05983f95e28ee8d8284cf8977b5b2530..0fee9bf00b6bd914afd7f7e0ae4b5fc80ca69d12 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <power/as3722.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
index 575429aa2d306c46e13533ebe6d13fdf71c62562..931d753e34453e44f38e455100fd34bb1b9113fb 100644 (file)
@@ -7,6 +7,8 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
+#include <linux/bitops.h>
 #include <power/bd71837.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
index 8990be113eaa980dba0d2d73d54fe6127e773eaf..5055e39cb79708498bc18efca5b62f812a9664ef 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <linux/bitops.h>
 #include <power/da9063_pmic.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
index 24a9b67586b6b39ea5fae4ba966a4a0c97eced5f..b407f555fe3dd9e6b88da0aefa12df9ef5d647a9 100644 (file)
@@ -9,7 +9,9 @@
 #include <dm.h>
 #include <fdtdec.h>
 #include <i2c.h>
+#include <log.h>
 #include <asm/gpio.h>
+#include <linux/bitops.h>
 #include <power/fan53555.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
index 763e671d54e936114b1732ee07e8cfc7cf4c909a..f9f9659621c2cf06f05938e29f1ccbfe807cbc46 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <errno.h>
 #include <dm.h>
+#include <log.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 
index ec1dcb64b3de00b2a592e9a08ae817e723d8cd1d..cf3fbae79de83993ae4ecc81e9365d8d3bbc4c28 100644 (file)
@@ -10,6 +10,7 @@
 #include <errno.h>
 #include <dm.h>
 #include <i2c.h>
+#include <log.h>
 #include <asm/gpio.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
index f438dea8fc1c619c953faf4a5dd7c8d77315e4ae..4ea6c346d7c73a1e7ba10cce587e3dd7d4df4aa1 100644 (file)
@@ -11,6 +11,7 @@
 #include <errno.h>
 #include <dm.h>
 #include <i2c.h>
+#include <log.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 #include <power/lp87565.h>
index 60255eeab02f72f8401d18310da03ca8eff3b0c9..28a9a1470b11df5a30a9a6af1ff06ff5a53eca48 100644 (file)
@@ -7,6 +7,8 @@
 #include <common.h>
 #include <errno.h>
 #include <dm.h>
+#include <log.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
index d6d35f3a39d6ffffcb747e11d768afed94dd76ca..b56843046f273691956eb60e38fcce9339c01d7f 100644 (file)
@@ -10,6 +10,7 @@
 #include <errno.h>
 #include <dm.h>
 #include <i2c.h>
+#include <log.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 #include <power/pfuze100_pmic.h>
index 4030144dd3618a544429809211c7e074c55eba08..f8706227058fec66b2eecdf058d73ac3d8a407e9 100644 (file)
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <pwm.h>
 #include <dm/device_compat.h>
 #include <power/regulator.h>
index c9d26344d78028eb599078d18b4a484c58c89bd6..7dcb3171928c4d6b515f005e38f029848a73ac83 100644 (file)
@@ -7,7 +7,9 @@
 #include <common.h>
 #include <errno.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/uclass-internal.h>
+#include <linux/delay.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 
index 33b73b7c2f5eeb20feef6bee4ea3b22834f94ef3..16d9412cd52d1f78c202404161815302be6e8e8d 100644 (file)
@@ -6,6 +6,8 @@
 
 #include "regulator_common.h"
 #include <common.h>
+#include <log.h>
+#include <linux/delay.h>
 #include <power/regulator.h>
 
 int regulator_common_ofdata_to_platdata(struct udevice *dev,
index e99331f6c964bb286862144d8d16ff98954e3e0d..a08e2151f93bae5802741a3ea78713c9163ff6cf 100644 (file)
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <power/rk8xx_pmic.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
index 67d1f9689de38ea50bf3166d0e9fbf0abe39da04..a6b4f158ef76aef02918586e352ccd156f8bfd30 100644 (file)
@@ -9,6 +9,7 @@
 #include <errno.h>
 #include <dm.h>
 #include <i2c.h>
+#include <linux/delay.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 #include <power/s2mps11.h>
index 08a10f05b412f3fdf89faa9dd3872d4cfbc4b097..250773514f5825184560a78cb187ff06f18c73a8 100644 (file)
@@ -11,6 +11,7 @@
 #include <dm.h>
 #include <asm/io.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
 #include <linux/iopoll.h>
 #include <linux/kernel.h>
 #include <power/regulator.h>
index 1e3f96f3a0894b62b78865f6c0b9358c907cf026..3e342f48086bd48b12c10714f0a1a455ba8cab75 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <linux/delay.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 #include <power/stpmic1.h>
index 0bcf1a61ea676dba450bb5b6a1d114590ccfaa87..9e45627a74244947d61e7275acc3a215c0b62997 100644 (file)
@@ -6,6 +6,8 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
+#include <linux/delay.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 #include <power/tps65090.h>
index 12e66ebd43f088ead63b46d11a22242c1e24150c..171afd34a5f1db65b1e3af965e806e91ebaaa8b0 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 #include <power/tps65910_pmic.h>
index a00ef58129cf188975d47e073aea8654e03d3d3e..150c72d7ec4a0f0a4efab815ed3623b928919ae6 100644 (file)
@@ -11,6 +11,8 @@
 #include <errno.h>
 #include <dm.h>
 #include <i2c.h>
+#include <log.h>
+#include <linux/delay.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 #include <power/tps65941.h>
index 19680e2e76deb72335f5e6ec6d909702dc2ce3d7..49b28a5e6bf6d25d32a0e5723d91d31731a54695 100644 (file)
@@ -5,9 +5,11 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <tps6586x.h>
 #include <asm/io.h>
 #include <i2c.h>
+#include <linux/delay.h>
 
 static struct udevice *tps6586x_dev;
 
index 42c9001518bff67a4fdbaabd48632ff08f449e59..b0d5cba2c49a9268d314f0ad670babf714ccae9c 100644 (file)
@@ -22,7 +22,9 @@
  *     Syed Mohammed Khasim <khasim at ti.com>
  */
 
+#include <command.h>
 #include <twl4030.h>
+#include <linux/delay.h>
 
 /*
  * Power Reset
@@ -172,7 +174,7 @@ void twl4030_power_mmc_init(int dev_index)
 }
 
 #ifdef CONFIG_CMD_POWEROFF
-int do_poweroff(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_poweroff(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        twl4030_power_off();
 
index 103960d48d2421ce8dfce5cda5524a5c386a717d..60a5aaaf19fa4c4618173ef1950fa60cffc32318 100644 (file)
@@ -4,6 +4,7 @@
  * Texas Instruments, <www.ti.com>
  */
 #include <config.h>
+#include <linux/delay.h>
 
 #include <twl6030.h>
 
index 1c829d286bdd25ac98c0b7f42c99fbdfb1c70cc3..fed1583796af59fde7a07c4d24a3c17f15aba2f1 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <pwm.h>
 #include <asm/io.h>
 #include <asm/arch/clk.h>
index 8d8f3e6f9f98603ed5b07d2e23ce42eff079319d..f5b9544cb8ddbe102928e45533bac41d32de0733 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <div64.h>
 #include <dm.h>
+#include <log.h>
 #include <pwm.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/io.h>
index 46888e9077c8af4d1a02774f020c924dad9fc375..911da1d426146d4a42b3fb92828a42b4ca81ec11 100644 (file)
@@ -8,11 +8,13 @@
 #include <clk.h>
 #include <div64.h>
 #include <dm.h>
+#include <log.h>
 #include <pwm.h>
 #include <regmap.h>
 #include <syscon.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/pwm.h>
+#include <linux/bitops.h>
 #include <power/regulator.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index 8a55e4f461628fbf4c943258b925ff0ac9511178..56215dbf6c22304fdf07b2d7416d5013a1be6ee0 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <div64.h>
 #include <dm.h>
+#include <log.h>
 #include <pwm.h>
 #include <regmap.h>
 #include <syscon.h>
index 02c3650ec63b8fa5d36441da4d15fd454213391d..5e98d0fc2c7b4fa129b9dd51fed5b4575c1f3043 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <pwm.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
index fbad124b51cf461b2796a62514367693dbc4c470..61ca4760c85203606c067efed17fcf537457874b 100644 (file)
@@ -781,7 +781,7 @@ struct qe_firmware_info *qe_get_firmware_info(void)
        return qe_firmware_uploaded ? &qe_firmware_info : NULL;
 }
 
-static int qe_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int qe_cmd(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        ulong addr;
 
index 69cdf9444a6f522042bcddd577ab5998eeca658d..849f191d6d10b1280c8482adb784378315fa0b3d 100644 (file)
@@ -6,8 +6,10 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <net.h>
 #include <malloc.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <linux/immap_qe.h>
index 94253797946117304b3f4d9b275529dbbf512d5b..69c22dd5e26177c18288b4b7a24933a70af8477d 100644 (file)
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <net.h>
 #include <malloc.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/immap_qe.h>
 #include <asm/io.h>
@@ -875,7 +876,7 @@ void marvell_phy_interface_mode(struct eth_device *dev, phy_interface_t type,
                        uec_phy_write(mii_info, 0x04, 0x01e1);
                        uec_phy_write(mii_info, 0x00, 0x9140);
                        uec_phy_write(mii_info, 0x00, 0x1000);
-                       udelay (100000);
+                       mdelay(100);
                        uec_phy_write(mii_info, 0x00, 0x2900);
                        uec_phy_write(mii_info, 0x14, 0x0cd2);
                        uec_phy_write(mii_info, 0x00, 0xa100);
@@ -884,13 +885,13 @@ void marvell_phy_interface_mode(struct eth_device *dev, phy_interface_t type,
                        uec_phy_write(mii_info, 0x04, 0x05e1);
                        uec_phy_write(mii_info, 0x00, 0xa100);
                        uec_phy_write(mii_info, 0x00, 0x2100);
-                       udelay (1000000);
+                       mdelay(1000);
                } else if (speed == SPEED_10) {
                        uec_phy_write(mii_info, 0x14, 0x8e40);
                        uec_phy_write(mii_info, 0x1b, 0x800b);
                        uec_phy_write(mii_info, 0x14, 0x0c82);
                        uec_phy_write(mii_info, 0x00, 0x8100);
-                       udelay (1000000);
+                       mdelay(1000);
                }
        }
 
index ac15e94f008a98d7df861c403bae7154fe51bf7c..765a2141d130d4fc87b3bd7a0ba4288b6c577a44 100644 (file)
@@ -7,8 +7,12 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <init.h>
+#include <log.h>
 #include <ram.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 
 /* SDRAM Command Code */
index 8cf74861a8a4e8fa5b487eeceddeb4f45a344599..8bbd8cfa83653c57b65b9f328448dc391ff72f32 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <log.h>
 #include <ram.h>
 #include <asm/io.h>
 #include <power-domain.h>
index 94a7c91b2b740034e0ce0badc771a08ba1cd7b2c..c87f186291e76938d8806c73384c9470037dab18 100644 (file)
@@ -11,6 +11,7 @@
 #define __K3_AM654_DDRSS_H
 
 /* DDRSS subsystem wrapper logic registers */
+#include <linux/bitops.h>
 #define DDRSS_SS_ID_REV_REG            0x00000000
 #define DDRSS_SS_CTL_REG               0x00000004
 #define DDRSS_V2H_CTL_REG              0x00000020
index 352483c4d7419519c70b1a34a56e0080fddd498b..d647a8a2090c4dece054cc41ec7f86703321c322 100644 (file)
@@ -9,6 +9,7 @@
 #include <clk.h>
 #include <dm.h>
 #include <hang.h>
+#include <log.h>
 #include <ram.h>
 #include <asm/io.h>
 #include <power-domain.h>
index b413f499d034f253502dca1cd631fca4fbeb36cf..b3a68cb07879967afe9c6f73945454709e7baed8 100644 (file)
@@ -12,6 +12,8 @@
 #include <dm.h>
 #include <ram.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 /* EMI */
 #define EMI_CONA                       0x000
index 46449d3d1229eb22ad5c08cfd91567fb1846241b..a226bac2cc34138a24d8c28cacf5b3ac2c890396 100644 (file)
@@ -7,7 +7,9 @@
 #include <common.h>
 #include <dm.h>
 #include <init.h>
+#include <log.h>
 #include <ram.h>
+#include <asm/bitops.h>
 #include <dt-bindings/memory/mpc83xx-sdram.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index 2d82a176db7c569b70927edfb27bd296a3e3f722..92457a1fa427c80e2e919dfc099d44d1deb50611 100644 (file)
@@ -7,6 +7,7 @@
 #include <clk.h>
 #include <dm.h>
 #include <hang.h>
+#include <log.h>
 #include <dt-bindings/memory/rk3368-dmc.h>
 #include <dt-structs.h>
 #include <ram.h>
@@ -19,6 +20,8 @@
 #include <asm/arch-rockchip/ddr_rk3368.h>
 #include <asm/arch-rockchip/sdram.h>
 #include <asm/arch-rockchip/sdram_rk3288.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 
 struct dram_info {
index 1839cebb677476197fb8346c627829b4c5096d1f..331d85fba269d8f586325e1d6ca4fb70511ae2c1 100644 (file)
@@ -8,6 +8,7 @@
 #include <asm/io.h>
 #include <asm/arch-rockchip/sdram.h>
 #include <asm/arch-rockchip/sdram_pctl_px30.h>
+#include <linux/delay.h>
 
 /*
  * rank = 1: cs0
index 5de73770a8c0bc48abbc9388e0a4bdecc389a88e..f7f6de1ba98bb322a377e5db9008f5a74da83556 100644 (file)
@@ -9,6 +9,7 @@
 #include <asm/arch-rockchip/sdram.h>
 #include <asm/arch-rockchip/sdram_common.h>
 #include <asm/arch-rockchip/sdram_phy_px30.h>
+#include <linux/delay.h>
 
 static void sdram_phy_dll_bypass_set(void __iomem *phy_base, u32 freq)
 {
index 729255493af408cd76b4fd841f15dc25c1739166..fd5763d0a0df9f1688eb849371b0c06c0bcd7dc5 100644 (file)
@@ -6,6 +6,8 @@
 #include <common.h>
 #include <debug_uart.h>
 #include <dm.h>
+#include <init.h>
+#include <log.h>
 #include <ram.h>
 #include <syscon.h>
 #include <asm/io.h>
@@ -15,6 +17,7 @@
 #include <asm/arch-rockchip/hardware.h>
 #include <asm/arch-rockchip/sdram.h>
 #include <asm/arch-rockchip/sdram_px30.h>
+#include <linux/delay.h>
 
 struct dram_info {
 #ifdef CONFIG_TPL_BUILD
index 8486653c6fb19fefc52cb70ca0535b04f4d737e3..0162955aae0535e24b4397835e585538304ab8d1 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <ram.h>
 #include <syscon.h>
 #include <asm/arch-rockchip/clock.h>
index 9b5eb38eccd423d7bf6c62116e0185bcb3a1b066..7aedb4fbac712f4543708d287316ae71ff0ba54b 100644 (file)
@@ -12,6 +12,8 @@
 #include <dt-structs.h>
 #include <errno.h>
 #include <hang.h>
+#include <init.h>
+#include <log.h>
 #include <ram.h>
 #include <regmap.h>
 #include <syscon.h>
@@ -23,6 +25,7 @@
 #include <asm/arch-rockchip/pmu_rk3188.h>
 #include <asm/arch-rockchip/sdram.h>
 #include <asm/arch-rockchip/sdram_rk3288.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 
 struct chan_info {
index 223f048161e0ba00905a94f96cda114da7c3fe32..094693ce24749992ffcaad258ba3c55b1ed68b8b 100644 (file)
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <dt-structs.h>
 #include <errno.h>
+#include <init.h>
 #include <ram.h>
 #include <regmap.h>
 #include <syscon.h>
@@ -19,6 +20,7 @@
 #include <asm/arch-rockchip/uart.h>
 #include <asm/arch-rockchip/sdram.h>
 #include <asm/types.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index 9f6f5551471bfcf0286749b4a54855bdb15b21c7..64d704ef267372a8e8add19d787b86f0ca266bd0 100644 (file)
@@ -12,6 +12,8 @@
 #include <dt-structs.h>
 #include <errno.h>
 #include <hang.h>
+#include <init.h>
+#include <log.h>
 #include <ram.h>
 #include <regmap.h>
 #include <syscon.h>
@@ -23,6 +25,7 @@
 #include <asm/arch-rockchip/pmu_rk3288.h>
 #include <asm/arch-rockchip/sdram.h>
 #include <asm/arch-rockchip/sdram_rk3288.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <power/regulator.h>
 #include <power/rk8xx_pmic.h>
index 8329f4a352f04d2d44e2a3ce3f8872941ad72c68..3f3926f9e4c63d7d4d999f206647be6abc030827 100644 (file)
@@ -7,6 +7,8 @@
 #include <debug_uart.h>
 #include <dm.h>
 #include <dt-structs.h>
+#include <init.h>
+#include <log.h>
 #include <ram.h>
 #include <regmap.h>
 #include <syscon.h>
@@ -17,6 +19,7 @@
 #include <asm/arch-rockchip/sdram.h>
 #include <asm/arch-rockchip/sdram_rk3328.h>
 #include <asm/arch-rockchip/uart.h>
+#include <linux/delay.h>
 
 struct dram_info {
 #ifdef CONFIG_TPL_BUILD
index d69ef01d0806031ca17d954aa3eedee3b1c3a3bd..60a1ab8b5169ea38f734a554ab67324812530cef 100644 (file)
@@ -9,6 +9,8 @@
 #include <clk.h>
 #include <dm.h>
 #include <dt-structs.h>
+#include <init.h>
+#include <log.h>
 #include <ram.h>
 #include <regmap.h>
 #include <syscon.h>
@@ -20,6 +22,7 @@
 #include <asm/arch-rockchip/hardware.h>
 #include <asm/arch-rockchip/sdram.h>
 #include <asm/arch-rockchip/sdram_rk3399.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <time.h>
 
index 2d03333b1b6dcd1646a31cd37556c7f6072dbb00..3fddf4df9615370c739c9eb18549afc063d4bc0d 100644 (file)
@@ -7,9 +7,13 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <init.h>
+#include <log.h>
 #include <ram.h>
 #include <asm/io.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 #define MEM_MODE_MASK  GENMASK(2, 0)
 #define SWP_FMC_OFFSET 10
index 11b14ae6520f911268297eb9f1dab4c11395372c..bf3a4c97a411dc2513683663e8cfb7a7f3a13e87 100644 (file)
@@ -5,11 +5,14 @@
 
 #include <common.h>
 #include <clk.h>
+#include <log.h>
 #include <ram.h>
 #include <reset.h>
 #include <timer.h>
 #include <asm/io.h>
 #include <asm/arch/ddr.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/iopoll.h>
 #include "stm32mp1_ddr.h"
 #include "stm32mp1_ddr_regs.h"
index afd93c518eb597754c8013b82f246b35cc415246..3c8885a965770864ebea9b9bfe2b28f72fcde993 100644 (file)
@@ -7,6 +7,7 @@
 #define _RAM_STM32MP1_DDR_REGS_H
 
 /* DDR3/LPDDR2/LPDDR3 Controller (DDRCTRL) registers */
+#include <linux/bitops.h>
 struct stm32mp1_ddrctl {
        u32 mstr ;              /* 0x0 Master*/
        u32 stat;               /* 0x4 Operating Mode Status*/
index 805c9ddaadc3760c85a93024c9d91dfc2598aabb..38390c0d552cd5120669278819a19cafd46a55bc 100644 (file)
@@ -4,9 +4,11 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <console.h>
 #include <cli.h>
 #include <clk.h>
+#include <log.h>
 #include <malloc.h>
 #include <ram.h>
 #include <reset.h>
@@ -150,7 +152,7 @@ static bool stm32mp1_check_step(enum stm32mp1_ddr_interact_step step,
 static void stm32mp1_do_info(struct ddr_info *priv,
                             struct stm32mp1_ddr_config *config,
                             enum stm32mp1_ddr_interact_step step,
-                            int argc, char * const argv[])
+                            int argc, char *const argv[])
 {
        unsigned long value;
        static char *ddr_name;
@@ -223,7 +225,7 @@ static void stm32mp1_do_info(struct ddr_info *priv,
 }
 
 static bool stm32mp1_do_freq(struct ddr_info *priv,
-                            int argc, char * const argv[])
+                            int argc, char *const argv[])
 {
        unsigned long ddrphy_clk;
 
@@ -246,7 +248,7 @@ static bool stm32mp1_do_freq(struct ddr_info *priv,
 
 static void stm32mp1_do_param(enum stm32mp1_ddr_interact_step step,
                              const struct stm32mp1_ddr_config *config,
-                             int argc, char * const argv[])
+                             int argc, char *const argv[])
 {
        switch (argc) {
        case 1:
@@ -266,7 +268,7 @@ static void stm32mp1_do_param(enum stm32mp1_ddr_interact_step step,
 }
 
 static void stm32mp1_do_print(struct ddr_info *priv,
-                             int argc, char * const argv[])
+                             int argc, char *const argv[])
 {
        switch (argc) {
        case 1:
@@ -281,7 +283,7 @@ static void stm32mp1_do_print(struct ddr_info *priv,
 }
 
 static int stm32mp1_do_step(enum stm32mp1_ddr_interact_step step,
-                           int argc, char * const argv[])
+                           int argc, char *const argv[])
 {
        int i;
        unsigned long value;
index 8bcd8612618a8b3f7fdc58260ffa4399db66497c..9022679703b4079099c91de84880486964532042 100644 (file)
@@ -7,6 +7,7 @@
 #include <clk.h>
 #include <dm.h>
 #include <init.h>
+#include <log.h>
 #include <ram.h>
 #include <regmap.h>
 #include <syscon.h>
index 12298cf327362c0a4f352f59a9691ced7d2e3039..bacdd74705d6d0972abcfe22db228953cad635e1 100644 (file)
@@ -5,6 +5,8 @@
 #include <common.h>
 #include <console.h>
 #include <init.h>
+#include <log.h>
+#include <rand.h>
 #include <watchdog.h>
 #include <asm/io.h>
 #include <linux/log2.h>
index 3013b7b6676ce8868272d04029a82ad4897a042e..a8d6892bb095e58c82a3034ac4482b72ccccc076 100644 (file)
@@ -5,10 +5,13 @@
 #include <common.h>
 #include <console.h>
 #include <clk.h>
+#include <log.h>
 #include <ram.h>
+#include <rand.h>
 #include <reset.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/iopoll.h>
 
 #include "stm32mp1_ddr_regs.h"
index 88430299c9281ea5703df6421958b5494658e669..54209fccb3e2649e9e0c176eb5a3d81b3498ce79 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <remoteproc.h>
 #include <errno.h>
 #include <mailbox.h>
index f2e033aa741e14f83d8e33d4bfffbc9c5eba8d59..c464ecebb77e64942a598114162bc753e56cc2e5 100644 (file)
@@ -6,7 +6,9 @@
 #include <cpu_func.h>
 #include <dm.h>
 #include <elf.h>
+#include <log.h>
 #include <remoteproc.h>
+#include <asm/cache.h>
 #include <dm/device_compat.h>
 #include <linux/compat.h>
 
index c8a41a63327bca0710c73adbcfc4e8d8d00e8f05..9640a81e53472911614f18f617a325957f6f6db3 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <malloc.h>
 #include <remoteproc.h>
 #include <asm/io.h>
index eeee49c4ddc9d9a5673eaa0870a0ae4d060d8f9d..2b58b27947c03fed67599f3139955c19d8283631 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <remoteproc.h>
 #include <asm/io.h>
 
index e9dce0d173a14f559910f0d9f47880c8f1510b46..33b574b1bd3d47d3607a28bfc80830a873aa31d6 100644 (file)
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <regmap.h>
 #include <remoteproc.h>
 #include <reset.h>
index 1fc8193ad93fc290f992a7437a23ff842e236019..3361555c5367afafb8c6fb3389540b7360e30403 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <remoteproc.h>
 #include <errno.h>
index c01b29d90f1b07b9dce8ed73e1c771efa86e31e5..1a7f1f8a005f300b04efd14a5da1de7b66788ac2 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <remoteproc.h>
 #include <errno.h>
index f9660d451137ce6cea5596f8d2c37f8be84f8092..350450d1fb44c75fb2fe067e99ec540a32a7d980 100644 (file)
@@ -8,6 +8,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <remoteproc.h>
 #include <mach/psc_defs.h>
 
index d1d44f372812f6d2ff32f7f0f82c41cfd7a047b1..beb5cd8fa8c8a4efb19e1df3b644534139116b61 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <misc.h>
 #include <reset.h>
 #include <reset-uclass.h>
index c1f1e7f70bf4fa5aefbb9839f8e153047b31ac0d..156703e084301b93b26f936e32006e4db445298c 100644 (file)
@@ -9,9 +9,12 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <reset-uclass.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 #define MAX_RESETS     32
 
index a678b8f745696719df6566fa249791accdfd89a6..139bc5d73e0b679c807af2e61c29db5541eeecac 100644 (file)
@@ -3,12 +3,14 @@
  * Copyright (c) 2019, Linaro Limited
  */
 
+#include <log.h>
 #include <malloc.h>
 #include <asm/io.h>
 #include <common.h>
 #include <dm.h>
 #include <dt-bindings/reset/ti-syscon.h>
 #include <reset-uclass.h>
+#include <linux/bitops.h>
 
 struct hisi_reset_priv {
        void __iomem *base;
index f9a432a7a2c3a6ccf59614cad1e74cb9fde99e37..0c8f276293db325ba8765cd4cb1f853ad7ed85de 100644 (file)
@@ -6,9 +6,11 @@
  * Author: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
  */
 
+#include <log.h>
 #include <asm/io.h>
 #include <common.h>
 #include <dm.h>
+#include <linux/bitops.h>
 #include <linux/iopoll.h>
 #include <reset-uclass.h>
 
index a61855e9edfd6c50046a4e280ad4a13e9410887a..96916b644ad1a7a7da924a51ed440d48c8514c3f 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright (c) 2017, Impinj, Inc.
  */
 
+#include <log.h>
 #include <malloc.h>
 #include <asm/io.h>
 #include <common.h>
@@ -10,6 +11,8 @@
 #include <dt-bindings/reset/imx7-reset.h>
 #include <dt-bindings/reset/imx8mq-reset.h>
 #include <reset-uclass.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 struct imx7_reset_priv {
        void __iomem *base;
index 6d17f52ac78b6de7ee249de58923dae757d56a1e..97d3d5759274a2bcf10d65a4609ac50ffaefe2c2 100644 (file)
@@ -8,11 +8,13 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <dm/lists.h>
 #include <regmap.h>
 #include <reset-uclass.h>
 #include <syscon.h>
+#include <linux/bitops.h>
 #include <linux/err.h>
 
 struct mediatek_reset_priv {
index 70f96355b376aed6564c09b7302cc2daf40893b1..4e3327898e226028fa95542acb8921934257c1e6 100644 (file)
@@ -8,9 +8,11 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <reset-uclass.h>
 #include <regmap.h>
+#include <linux/bitops.h>
 
 #define REG_COUNT      8
 #define BITS_PER_REG   32
index 677de0a6f91bf0bded4f4c96795ae23164561c84..bc20e3335c5caa395e6c7257598dee058561f720 100644 (file)
@@ -8,8 +8,10 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <reset-uclass.h>
+#include <linux/bitops.h>
 #include <linux/io.h>
 
 struct mtmips_reset_priv {
index 100afc8103b7e3ff838880a146dc764fd6e02e48..809255565086177e989b4465f6cf7455d854b648 100644 (file)
@@ -5,8 +5,10 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <reset-uclass.h>
+#include <linux/bitops.h>
 #include <linux/io.h>
 #include <asm/arch-rockchip/hardware.h>
 #include <dm/lists.h>
index c0930a624b73a4559dfb6cce000dd0ebce00e74a..830eda9430ecf8718c1cfee768e44a8f32638a24 100644 (file)
@@ -14,6 +14,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <dm/lists.h>
 #include <dm/of_access.h>
index f21bf3b1ae0813fa22940672d30d0549b90a00a1..05f7f599ce306837450e91122d6e1d968aaec5e4 100644 (file)
@@ -7,10 +7,12 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <reset-uclass.h>
 #include <asm/io.h>
 #include <dm/lists.h>
+#include <linux/bitops.h>
 #include <linux/log2.h>
 #include <asm/arch/ccu.h>
 
index f5d82b56810b22f985d976f3b46278df948eb206..95cd3885876d7da2b8798bb4e5aaa5d8c2884ae6 100644 (file)
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <reset-uclass.h>
 #include <dm/device_compat.h>
index 8ec8e462e62ddf94c191b74621d06b552869c59a..5e38ce5c0669488e9c916a8b9957fc38d46a2762 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <malloc.h>
 #include <reset.h>
 #include <reset-uclass.h>
index 348f3886d1046310fbe3d85567ddbeaad620db68..06079d2a9ce822c15b60657edbac95c6a0d8672c 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <reset-uclass.h>
 #include <dm/device_compat.h>
index ae79be0730dab90b4624f567d34f77adc5a3c1cf..9bc4a7e0ded5d52124fef291cfbd5e707037094b 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <reset.h>
 #include <asm/io.h>
index bdf53a3de9f8a3c9da6a7ace481a6d707c869ef7..7a6f7f676cc48e3459aab4548adcfe34434b329a 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <reset-uclass.h>
 #include <asm/io.h>
index 31b3e48e0e9eed16e8e2a7eed8e7fb67657a6a37..ac3a99f9bffd17801bd59fec545fae3e2d721f3f 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <wait_bit.h>
 #include <dm.h>
@@ -13,6 +14,7 @@
 #include <regmap.h>
 #include <syscon.h>
 #include <dt-bindings/reset/stih407-resets.h>
+#include <linux/bitops.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 5dda522a4eb7fedab2238a4312a9e235812915c1..64a11cfcfc0a61329c0cf8e0e8d392505f4c7571 100644 (file)
@@ -7,10 +7,12 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <reset-uclass.h>
 #include <stm32_rcc.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 /* reset clear offset for STM32MP RCC */
 #define RCC_CL 0x4
index 23c6facff27cb14bcdb92fd058dff48e6fccd34f..a33d4533a82b9cc65fae8739e6f66072ccc7cfce 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <reset-uclass.h>
 #include <asm/arch/clock.h>
index e85f42b3a3461dcbaf0d1cebd101aad39c3054b5..c60a03f0bfa3daab341d012a2f2f1bdf8a5a3f0f 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <misc.h>
 #include <reset-uclass.h>
index 47fb140077daf609bfc13f1352d7f1e2839af7d4..c6a834b67c56e17f3eba28eaba328762f5356397 100644 (file)
@@ -6,6 +6,7 @@
 #include <asm/io.h>
 #include <common.h>
 #include <dm.h>
+#include <linux/bitops.h>
 #include <linux/iopoll.h>
 #include <linux/string.h>
 #include <rng.h>
index cd0b0ac77b6af0b38ac0b35bcab41e5003593cc2..cc5e1f6e25b67af9cbe6aa9afb2a52691940e323 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <rand.h>
 #include <rng.h>
 
 #include <linux/string.h>
index e0f0a66c6e7319b40f858cfc135ab0d43ccd2f25..7ef7ff9756d4fd5e748c79f11ed90f44068e266e 100644 (file)
@@ -6,8 +6,11 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <log.h>
 #include <reset.h>
 #include <rng.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 #include <asm/io.h>
 #include <linux/iopoll.h>
index b6930bd839476b8b46982c5945c19e1ad977e06d..c446e7a735fd49033b619e989fc7531b0b690ae3 100644 (file)
@@ -5,9 +5,11 @@
  */
 #include <common.h>
 #include <command.h>
+#include <log.h>
 #include <rtc.h>
 #include <asm/io.h>
 #include <asm/davinci_rtc.h>
+#include <linux/delay.h>
 
 int rtc_get(struct rtc_time *tmp)
 {
index b94163f7486baa1a4c0b01364f915fd6290c5283..189607c3e02a54f6f4d50fe48985fe47a2e1be0b 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <command.h>
 #include <rtc.h>
+#include <linux/delay.h>
 
 /* GPP Pins */
 #define DATA           0x200
index 02d617e09c92df3f678bc21e7f5f553b7056b4ed..36d615812b2ab5e0137729aea84c75899602d82a 100644 (file)
@@ -18,6 +18,7 @@
 #include <command.h>
 #include <rtc.h>
 #include <spi.h>
+#include <linux/delay.h>
 
 #define        RTC_SECONDS             0x00
 #define        RTC_MINUTES             0x01
@@ -71,7 +72,7 @@ int rtc_get (struct rtc_time *tmp)
 
        /* Now we can enable the DS1306 RTC */
        immap->im_cpm.cp_pbdat |= PB_SPI_CE;
-       udelay (10);
+       udelay(10);
 
        /* Shift out the address (0) of the time in the Clock Chip */
        soft_spi_send (0);
@@ -105,7 +106,7 @@ int rtc_get (struct rtc_time *tmp)
 
        /* Now we can disable the DS1306 RTC */
        immap->im_cpm.cp_pbdat &= ~PB_SPI_CE;   /* Disable DS1306 Chip */
-       udelay (10);
+       udelay(10);
 
        rtc_calc_weekday(tmp);  /* Determine the day of week */
 
@@ -127,7 +128,7 @@ int rtc_set (struct rtc_time *tmp)
 
        /* Now we can enable the DS1306 RTC */
        immap->im_cpm.cp_pbdat |= PB_SPI_CE;    /* Enable DS1306 Chip */
-       udelay (10);
+       udelay(10);
 
        /* First disable write protect in the clock chip control register */
        soft_spi_send (0x8F);   /* send address of the control register */
@@ -135,11 +136,11 @@ int rtc_set (struct rtc_time *tmp)
 
        /* Now disable the DS1306 to terminate the write */
        immap->im_cpm.cp_pbdat &= ~PB_SPI_CE;
-       udelay (10);
+       udelay(10);
 
        /* Now enable the DS1306 to initiate a new write */
        immap->im_cpm.cp_pbdat |= PB_SPI_CE;
-       udelay (10);
+       udelay(10);
 
        /* Next, send the address of the clock time write registers */
        soft_spi_send (0x80);   /* send address of the first time register */
@@ -156,11 +157,11 @@ int rtc_set (struct rtc_time *tmp)
 
        /* Now we can disable the Clock chip to terminate the burst write */
        immap->im_cpm.cp_pbdat &= ~PB_SPI_CE;   /* Disable DS1306 Chip */
-       udelay (10);
+       udelay(10);
 
        /* Now we can enable the Clock chip to initiate a new write */
        immap->im_cpm.cp_pbdat |= PB_SPI_CE;    /* Enable DS1306 Chip */
-       udelay (10);
+       udelay(10);
 
        /* First we Enable write protect in the clock chip control register */
        soft_spi_send (0x8F);   /* send address of the control register */
@@ -168,7 +169,7 @@ int rtc_set (struct rtc_time *tmp)
 
        /* Now disable the DS1306 */
        immap->im_cpm.cp_pbdat &= ~PB_SPI_CE;   /*  Disable DS1306 Chip */
-       udelay (10);
+       udelay(10);
 
        /* Set standard MPC8xx clock to the same time so Linux will
         * see the time even if it doesn't have a DS1306 clock driver.
@@ -204,7 +205,7 @@ static void init_spi (void)
        immap->im_cpm.cp_pbdir |= (PB_SPIMOSI | PB_SPI_CE | PB_SPISCK);
 
        immap->im_cpm.cp_pbdir &= ~PB_SPIMISO;  /* Make MISO pin an input */
-       udelay (10);
+       udelay(10);
 }
 
 /* ------------------------------------------------------------------------- */
@@ -227,10 +228,10 @@ static void soft_spi_send (unsigned char n)
                        immap->im_cpm.cp_pbdat |= PB_SPIMOSI;   /* Set MOSI to 1 */
                else
                        immap->im_cpm.cp_pbdat &= ~PB_SPIMOSI;  /* Set MOSI to 0 */
-               udelay (10);
+               udelay(10);
 
                immap->im_cpm.cp_pbdat &= ~PB_SPISCK;   /* Lower SCK */
-               udelay (10);
+               udelay(10);
 
                bitpos >>= 1;   /* Shift for next bit position */
        }
@@ -253,11 +254,11 @@ static unsigned char soft_spi_read (void)
        /* Read 8 bits here */
        for (i = 0; i < 8; i++) {       /* Do 8 bits in loop */
                immap->im_cpm.cp_pbdat |= PB_SPISCK;    /* Raise SCK */
-               udelay (10);
+               udelay(10);
                if (immap->im_cpm.cp_pbdat & PB_SPIMISO)        /* Get a bit of data */
                        spi_byte |= bitpos;     /* Set data accordingly */
                immap->im_cpm.cp_pbdat &= ~PB_SPISCK;   /* Lower SCK */
-               udelay (10);
+               udelay(10);
                bitpos >>= 1;   /* Shift for next bit position */
        }
 
index a33f47525f787e95c2c7b83f647ff1ea30771b2a..17344d4d4ff2d5bafc13b160cf0c2a24c79d0ac4 100644 (file)
@@ -16,6 +16,7 @@
 #include <common.h>
 #include <command.h>
 #include <dm.h>
+#include <log.h>
 #include <rtc.h>
 #include <i2c.h>
 
index af94bcfdf44918c26817e24b19a1bf042c657666..4986c96f8623964e1f71c6b0db183a130c7acaf8 100644 (file)
@@ -14,6 +14,7 @@
 #include <common.h>
 #include <command.h>
 #include <dm.h>
+#include <log.h>
 #include <rtc.h>
 #include <i2c.h>
 
index eb5ce73a7613f0b22f5a13699a21b77fcc92a4cf..5b72e86768a1560528438d122ba287ba6c7c9e0a 100644 (file)
@@ -17,6 +17,7 @@
 #include <common.h>
 #include <command.h>
 #include <dm.h>
+#include <log.h>
 #include <rtc.h>
 #include <i2c.h>
 
index e3b3579c4aad8f8f4f052162572fd0f4f6e0f806..0a30e0eabb4585e44f195f8a51dc1e2d9ec66fd9 100644 (file)
@@ -9,6 +9,7 @@
 #include <i2c.h>
 #include <rtc.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
 
 /*
  * RTC register addresses
index b68ea223f7f8fc5a1fc85c1ce61e90e3ae6f14f8..67c2b6e320a78bf624754fb61948b0da244b077d 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <log.h>
 #include <rtc.h>
 #include <asm/io.h>
 
index d4b33e59d6966835b2e4a6212eb6eb472d43ac66..a010af411bbd5f1023aede023cd52d78495d7425 100644 (file)
@@ -16,6 +16,7 @@
 #include <common.h>
 #include <dm.h>
 #include <i2c.h>
+#include <log.h>
 #include <os.h>
 #include <rtc.h>
 #include <asm/rtc.h>
index 39920f1a7a916ce990e00a4b60a4338d8b68abab..e3a1393266c3f4f4129cf8ca25a60b8c4ad05604 100644 (file)
@@ -16,6 +16,7 @@
 #include <command.h>
 #include <linux/compat.h>
 #include <rtc.h>
+#include <linux/delay.h>
 
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
index 960348bb3eaa9471fdc30f6525ec71c9a8183c22..706b7188cf83e2c83544350569169022094bcfaa 100644 (file)
@@ -13,6 +13,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <log.h>
 #include <rtc.h>
 #include <i2c.h>
 
@@ -109,9 +110,9 @@ int rtc_get (struct rtc_time *tmp)
        tmp->tm_yday = 0;
        tmp->tm_isdst= 0;
 
-       debug ( "Get DATE: %4d-%02d-%02d (wday=%d)  TIME: %2d:%02d:%02d\n",
-               tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday,
-               tmp->tm_hour, tmp->tm_min, tmp->tm_sec);
+       debug("Get DATE: %4d-%02d-%02d (wday=%d)  TIME: %2d:%02d:%02d\n",
+             tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday,
+             tmp->tm_hour, tmp->tm_min, tmp->tm_sec);
 
        return rel;
 }
@@ -120,9 +121,9 @@ int rtc_set (struct rtc_time *tmp)
 {
        uchar data[RTC_REG_CNT];
 
-       debug ( "Set DATE: %4d-%02d-%02d (wday=%d)  TIME: %2d:%02d:%02d\n",
-               tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday,
-               tmp->tm_hour, tmp->tm_min, tmp->tm_sec);
+       debug("Set DATE: %4d-%02d-%02d (wday=%d)  TIME: %2d:%02d:%02d\n",
+             tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday,
+             tmp->tm_hour, tmp->tm_min, tmp->tm_sec);
 
        data[RTC_SEC_ADDR]    = bin2bcd(tmp->tm_sec) &  0x7F;/*just in case*/
        data[RTC_MIN_ADDR]    = bin2bcd(tmp->tm_min);
index 532d2105e12c79c871ae654a09159c8639e83292..692042b93519ee4e6b07141b4f01c7654357deb7 100644 (file)
@@ -18,6 +18,7 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
+#include <log.h>
 #include <rtc.h>
 #include <i2c.h>
 
index f52e1291a98139372cb947eab6741c17f519eb94..94a6b523aab3630582575dddc7c9151a66a03e80 100644 (file)
@@ -19,6 +19,7 @@
 #include <common.h>
 #include <command.h>
 #include <dm.h>
+#include <log.h>
 #include <rtc.h>
 #include <i2c.h>
 
index b35186579a5fa582528d5a81944f22898bb3e3d2..11928839dcfc958e2f6da430792bb0e3467a3912 100644 (file)
@@ -14,6 +14,7 @@
 #include <command.h>
 #include <rtc.h>
 #include <i2c.h>
+#include <linux/delay.h>
 
 #ifndef        CONFIG_SYS_I2C_RTC_ADDR
 #define        CONFIG_SYS_I2C_RTC_ADDR 0x50
index 94a065379c91d7d4ba9d9373d8c1185c0832e684..6f49505d4eb7cd014765528457b014287140de30 100644 (file)
@@ -13,6 +13,7 @@
 #include <dm.h>
 #include <rtc.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include "mvrtc.h"
 
 /* This RTC does not support century, so we assume 20 */
index b34ed63bf051f9d4f4fbbd36a16ae1549b495b7c..c423960b3434bcf3c747411e0924e26d9f5ed830 100644 (file)
@@ -9,6 +9,7 @@
 #include <command.h>
 #include <dm.h>
 #include <i2c.h>
+#include <log.h>
 #include <rtc.h>
 
 #define PCF2127_REG_CTRL1      0x00
index 84f2b231c23778ced44450844ff73d040bbaca95..19faefba7c8ff112cc41044fedeedcd74bd4a959 100644 (file)
@@ -13,6 +13,7 @@
 #include <common.h>
 #include <command.h>
 #include <dm.h>
+#include <log.h>
 #include <rtc.h>
 #include <i2c.h>
 
index 8bf04f26a375c50f68c14061c98b97e4ae9954c2..1b6717232c791eb842a0d709a3ddf23a943942af 100644 (file)
@@ -10,6 +10,7 @@
 #include <command.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <rtc.h>
 #include <asm/io.h>
 #include <asm/types.h>
index 5211d0758689cf2b889f7ae887ef7664e938dc76..c987494b669dfee5f63a4684437ebb29e4ece69a 100644 (file)
@@ -21,6 +21,7 @@
 #include <common.h>
 #include <command.h>
 #include <dm.h>
+#include <log.h>
 #include <rtc.h>
 #include <i2c.h>
 
index a0a238aeddaddc41325a1e5580fcac2b77fcb3b5..926cca234e849bea544c111d0ae3b4e89320587e 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <rtc.h>
 
 int dm_rtc_get(struct udevice *dev, struct rtc_time *time)
index 87c4320d5f4f8cc07233d5d750ea47161783432d..3afe5b2fdd678568b847c3606cd925f38d65897a 100644 (file)
 #include <dm.h>
 #include <eeprom.h>
 #include <i2c.h>
+#include <log.h>
 #include <rtc.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 #define RTC_RV3029_PAGE_LEN             7
 
index 2ab40f08336f2dd9879f1b1f45c531dc508a0d83..acd50c656483a114c4ed19c8e3148624690ea3be 100644 (file)
 #include <common.h>
 #include <command.h>
 #include <dm.h>
+#include <log.h>
 #include <rtc.h>
 #include <i2c.h>
+#include <linux/bitops.h>
 
 /*
  * RTC register addresses
index 82c5185e2e5e2edb09b1beb8a3b1a454b5c7e43f..d513561b8202547897f6c1955572b0e13531f1e5 100644 (file)
@@ -21,6 +21,7 @@
 #include <dm.h>
 #include <i2c.h>
 #include <rtc.h>
+#include <linux/bitops.h>
 
 /*---------------------------------------------------------------------*/
 /* #undef DEBUG_RTC */
index 3bfe481403d9c3a60b9e17a381c8a627a94ee48b..80f55c86233a7ad8c1184416a755f805e42962c9 100644 (file)
@@ -23,6 +23,7 @@
 #include <i2c.h>
 #include <linux/bitrev.h>
 #include <rtc.h>
+#include <linux/delay.h>
 
 #define S35390A_CHIP_ADDR      0x30
 
index 3e12f57ce0b7ba819f5ce1bb8edd635ee282ba4c..f9db318af1dcea4d231e5d86a4c9d2192818a655 100644 (file)
@@ -9,6 +9,7 @@
 #include <rtc.h>
 #include <asm/io.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
 #include <linux/iopoll.h>
 
 #define STM32_RTC_TR           0x00
index ed6aaa5237779a8fe2411b91315dd00afbea98cc..ce23427b1744e3261a8f56549090f66324932c18 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <log.h>
 #include <rtc.h>
 #include <i2c.h>
 
index 69de6a53d56a3d226f8f44f56f1aa345283ec4e6..0ab1d441f40c2a4f7c39a1badf609cdb3bbf0111 100644 (file)
@@ -5,8 +5,12 @@
  */
 
 #include <common.h>
+#include <blk.h>
+#include <bootstage.h>
 #include <dm.h>
 #include <env.h>
+#include <log.h>
+#include <part.h>
 #include <pci.h>
 #include <scsi.h>
 #include <dm/device-internal.h>
index 86c3de4e455d9cf86fe69d34aee400b9c7c59cd9..7a86161a0dfd219d9c58c08cac236b5f64f670b0 100644 (file)
@@ -9,6 +9,7 @@
 #include <errno.h>
 #include <serial.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 /* data register */
 #define ALTERA_JTAG_RVALID     BIT(15) /* Read valid */
index 436cf2331df952cc92e0ca0e9486ab96f0401f42..f88a293d56098ba5aba2aa9171b32e4cbd6c7bbd 100644 (file)
@@ -9,6 +9,7 @@
 #include <errno.h>
 #include <serial.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 /* status register */
 #define ALTERA_UART_TMT                BIT(5)  /* tx empty */
index 98d209072d1f4b9efb109c1a06b362ff954f35d4..71cb31ff75ed2c12cb4961818cc136d892d7b9d5 100644 (file)
@@ -14,6 +14,7 @@
 #include <serial.h>
 #include <debug_uart.h>
 #include <linux/compiler.h>
+#include <linux/delay.h>
 
 #include <asm/io.h>
 #ifdef CONFIG_DM_SERIAL
index 6415d2e1e552e18cb03b8240a3d999b9268dec01..cca798d7e484e45bb33038ecae36ac87f256ba1a 100644 (file)
@@ -9,6 +9,7 @@
 #include <clk.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <ns16550.h>
 #include <reset.h>
 #include <serial.h>
index 7703c674929ceae005cf7e71d41f88fc9475f68c..a0af0e6bfde265952e2126c7087f4b9053c9417b 100644 (file)
@@ -15,6 +15,7 @@
 #include <dm/lists.h>
 #include <dm/device-internal.h>
 #include <dm/of_access.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index baeaeaac8ea2fa236503358f2162776c6c96b55a..da017dc5b3e3d8bed0263d1c8b753c47e2520196 100644 (file)
@@ -12,6 +12,7 @@
 #include <post.h>
 #include <linux/compiler.h>
 #include <errno.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 897ea5d6dc2700f728568edb16c782ea1e21239e..382c3b3d34a3cc6960a784585a907bd59c17f168 100644 (file)
@@ -13,6 +13,7 @@
 #include <asm/addrspace.h>
 #include <asm/types.h>
 #include <dm/pinctrl.h>
+#include <linux/bitops.h>
 #include <mach/ar71xx_regs.h>
 
 #define AR933X_UART_DATA_REG            0x00
index febb5ceea2a53bcce4342a86e48407400de583f2..0102b10ed25abd2a72150dee82f0c19339bac3b9 100644 (file)
@@ -23,6 +23,7 @@
 #include <serial.h>
 #include <dm/platform_data/serial_bcm283x_mu.h>
 #include <dm/pinctrl.h>
+#include <linux/bitops.h>
 #include <linux/compiler.h>
 
 struct bcm283x_mu_regs {
index 4f227bfe0ad92f66834f620bf784fabe1698b740..cc20673efeffec6a9aef206e3e94d25771c965a2 100644 (file)
@@ -11,6 +11,7 @@
 #include <watchdog.h>
 #include <asm/io.h>
 #include <serial.h>
+#include <linux/bitops.h>
 #include <linux/compiler.h>
 
 /* Register definitions */
index dd3e511fc91d65f378fc2edd4e741cb343f50638..b152e1025879608d98ba05e2626ce5fe471e5150 100644 (file)
@@ -11,6 +11,7 @@
 #include <efi_api.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <linux/compiler.h>
 #include <asm/io.h>
 #include <serial.h>
index 3b53f5a97bbb4140a4a325e6cb3ebc07b575b48d..0c63c41270eb43172df11e7fe32f3c943a531f7a 100644 (file)
@@ -8,10 +8,12 @@
 #include <clk.h>
 #include <dm.h>
 #include <fsl_lpuart.h>
+#include <log.h>
 #include <watchdog.h>
 #include <asm/io.h>
 #include <serial.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
 #include <linux/compiler.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/clock.h>
index b3dad77aa28c21b2ae9494549e96366dbc869a3e..439057b1b9afcb20323ec5fac87a9a0304614aba 100644 (file)
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <linux/bitops.h>
 #include <linux/compiler.h>
 #include <serial.h>
 
index e63f2306f0340ae95652e6f17555a6888b90577d..778a04d87e0cc7dde746884fd7c395c8136f7d2a 100644 (file)
@@ -11,6 +11,7 @@
 #include <div64.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <serial.h>
 #include <watchdog.h>
 #include <asm/io.h>
index 4d4d919358616c7f337993526a6b8cef7b8ec7c9..f7997fc788fca7ab180cba48fae7280858121b28 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <dm.h>
 #include <dt-structs.h>
+#include <log.h>
 #include <ns16550.h>
 #include <serial.h>
 #include <clk.h>
index bb60ca2d9b81b03727ebe2c9d900961e447924e0..2651a45a7f3c312a4c83961a483610df5a161183 100644 (file)
@@ -14,6 +14,7 @@
 #include <serial.h>
 #include <asm/io.h>
 #include <asm/types.h>
+#include <linux/bitops.h>
 
 /* UART Registers */
 #define        OWL_UART_CTL                    (0x0000)
index bac506ed79d558037f990e173aacd14551748764..a492063e39c227d55886aa6fee50d2a05cd94653 100644 (file)
@@ -9,6 +9,7 @@
 #include <malloc.h>
 #include <serial.h>
 #include <wait_bit.h>
+#include <linux/bitops.h>
 #include <mach/pic32.h>
 #include <dt-bindings/clock/microchip,clock.h>
 
index acfcc2954a9e60ff81bece443b450d788e529fa2..5f45d58e5800bc0bd79af480ecb754b5bb2c76db 100644 (file)
@@ -15,6 +15,7 @@
 #include <serial.h>
 #include <linux/compiler.h>
 #include <dm/platform_data/serial_sh.h>
+#include <linux/delay.h>
 #include "serial_sh.h"
 
 DECLARE_GLOBAL_DATA_PTR;
index 5a02f0c8feb5b5e46b010cee702791716d8055ff..fcc47fb348fd00d7ae9af7e8d0f1d434430b7ee3 100644 (file)
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <watchdog.h>
 #include <asm/io.h>
 #include <linux/compiler.h>
index c972f1e9af5f8fa9d4a6fcd0ae2b3e72f8b687b1..5fbbfac82078debf6ef55b9f38215d8508954082 100644 (file)
@@ -8,8 +8,10 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <serial.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 016082814f6a7be333ebd6249fc036bf876c4e60..e77b90670a3944ab817b571992fe84653c4e9a9a 100644 (file)
@@ -7,11 +7,14 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <log.h>
 #include <reset.h>
 #include <serial.h>
 #include <watchdog.h>
 #include <asm/io.h>
 #include <asm/arch/stm32.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include "serial_stm32.h"
 #include <dm/device_compat.h>
 
index 7b0c53145e8b722cec880625f9a99d652a2dc0a8..57376518880a069033e40afb5f5d8b534d77033d 100644 (file)
@@ -7,6 +7,7 @@
 #ifndef _SERIAL_STM32_
 #define _SERIAL_STM32_
 
+#include <linux/bitops.h>
 #define CR1_OFFSET(x)  (x ? 0x0c : 0x00)
 #define CR3_OFFSET(x)  (x ? 0x14 : 0x08)
 #define BRR_OFFSET(x)  (x ? 0x08 : 0x0c)
index 1be777bd3bb8b7d1bd1144ab9e833c9a6efdc291..f29a9a0b569c549732b3fb7ece637b65f5e92c49 100644 (file)
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <dm.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 #include <linux/compiler.h>
 #include <serial.h>
 
index 0dd6cec82a65516b126f119c519ec19a0d5ef586..0e71cada1bbadf4b24a385371d8d7fb22a352c67 100644 (file)
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <watchdog.h>
 #include <asm/io.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
 #include <linux/compiler.h>
 #include <serial.h>
 #include <linux/err.h>
index 5557fd29ce6cd5ef3147ad1c601c39243a24e162..2557269bc546f49ad9d24d9328e832f89c1e728e 100644 (file)
@@ -13,6 +13,7 @@
 #include <dm/of_access.h>
 #include <dm/of_addr.h>
 #include <asm/io.h>
+#include <linux/bug.h>
 #include <linux/err.h>
 #include <linux/ioport.h>
 #include <linux/io.h>
index c5661c52facc70056d85fedce624605f297ebca9..ecc4b8b5a06f29784edfb62e57dd2b98465413ce 100644 (file)
@@ -7,6 +7,8 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <log.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <malloc.h>
 #include <asm/bitops.h>
@@ -15,6 +17,7 @@
 #include <dm/devres.h>
 #include <dm/read.h>
 #include <dm/uclass.h>
+#include <linux/bitops.h>
 #include <linux/compat.h>
 #include <linux/dma-mapping.h>
 #include <linux/err.h>
index 7907e6f9773edd1fd5ae029cebaf5d832df7d7c4..2ece1a8f64701b02ef865bed66c26c1cf74f79f1 100644 (file)
@@ -9,6 +9,7 @@
 #include <errno.h>
 #include <common.h>
 #include <asm/ti-common/keystone_serdes.h>
+#include <linux/bitops.h>
 
 #define SERDES_CMU_REGS(x)             (0x0000 + (0x0c00 * (x)))
 #define SERDES_LANE_REGS(x)            (0x0200 + (0x200 * (x)))
index 3d577401bdde1cea273f469a1ea0bbce42b1448c..adb0b2b104da1661f2c734c44d8093f9b3160916 100644 (file)
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <dm.h>
 #include <i2s.h>
+#include <log.h>
 #include <time.h>
 #include <asm/io.h>
 #include "broadwell_i2s.h"
index 572ef693cc01a54e143089fe8c4be6a51654017c..4154d2939981a097b856874a7f8931c851e9ceca 100644 (file)
 #include <common.h>
 #include <dm.h>
 #include <hda_codec.h>
+#include <log.h>
 #include <pci.h>
 #include <sound.h>
 #include <asm/io.h>
 #include <dt-bindings/sound/azalia.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 /**
  * struct hda_regs - HDA registers
index 101046f9c20152017f57e19c020988a6c715317f..bc3c1e85f8cfb7020132d8d63c6d5e6a9b92080f 100644 (file)
 #include <common.h>
 #include <dm.h>
 #include <hda_codec.h>
+#include <log.h>
 #include <pch.h>
 #include <sound.h>
+#include <linux/bitops.h>
 
 static int bd82x6x_azalia_probe(struct udevice *dev)
 {
index 332254d5aa57bb0aa2130464c8ec821403c861b5..5b4c489f4b1a901dc161dec46cde5024d59c3f9e 100644 (file)
@@ -14,6 +14,7 @@
 #include <dm.h>
 #include <i2c.h>
 #include <i2s.h>
+#include <log.h>
 #include <sound.h>
 #include <asm/gpio.h>
 #include "maxim_codec.h"
index 127d2bda30598ebbf1b32c650a24ccb736440c1b..b1307a7362317a10486f7ff78982772e4e93dbf0 100644 (file)
@@ -9,6 +9,7 @@
 #define _MAX98088_H
 
 /* MAX98088 Registers Definition */
+#include <linux/bitops.h>
 #define M98088_REG_IRQ_STATUS          0x00
 #define M98088_REG_MIC_STATUS          0x01
 #define M98088_REG_JACK_STAUS          0x02
index 5505c3516667a49a7a2dec75c8e0c355f639cd93..d23955d6e10e408e27b62e23a3dddeedf21d2557 100644 (file)
 #include <dm.h>
 #include <i2c.h>
 #include <i2s.h>
+#include <log.h>
 #include <sound.h>
 #include <asm/gpio.h>
+#include <linux/delay.h>
 #include "maxim_codec.h"
 #include "max98090.h"
 
index 9e08e96670e17e17c920cf6cf4791c0a2d14b63b..5037f9516fa163d73e648a6000776f6f7028d773 100644 (file)
@@ -13,6 +13,7 @@
 #include <div64.h>
 #include <fdtdec.h>
 #include <i2c.h>
+#include <log.h>
 #include <sound.h>
 #include <asm/gpio.h>
 #include "i2s.h"
index 5480dce1080b0049266d67b85ded007921d91894..31e67ee67247d62931297b78d8b61f0acacc202f 100644 (file)
@@ -9,6 +9,7 @@
 #include <div64.h>
 #include <i2c.h>
 #include <i2s.h>
+#include <log.h>
 #include <sound.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
index e5df8ca0d2b2e8f3e795bbf490b6304201749472..4e9e68aaac8165f3009dc6f586eb2ae6a297820c 100644 (file)
 #include <common.h>
 #include <dm.h>
 #include <i2s.h>
+#include <log.h>
 #include <sound.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 struct rk_i2s_regs {
        u32 txcr;               /* I2S_TXCR, 0x00 */
index a092dbc4458c62f2a98e7537490b485f497341f0..94058e603d7d3fc5bc73e049543759d6c85cd11a 100644 (file)
@@ -11,6 +11,7 @@
 #include <clk.h>
 #include <dm.h>
 #include <i2s.h>
+#include <log.h>
 #include <misc.h>
 #include <sound.h>
 #include <asm/arch-rockchip/periph.h>
index 64776055d9f9188ebec5063180b8433402b74c9a..16aa9dfc5b2b3bb5700be88b685a789ec22bb100 100644 (file)
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <i2c.h>
 #include "rt5677.h"
+#include <log.h>
 
 struct rt5677_priv {
        struct udevice *dev;
index 104584073af4f2c8db5b9b1bab8709fd6c9bf3b7..aa1d6bb209bbb53b8c6a520a2a2a40ef67267e09 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <dm.h>
 #include <i2s.h>
+#include <log.h>
 #include <sound.h>
 #include <asm/arch/clk.h>
 #include <asm/arch/pinmux.h>
index b6952675bdec047e41fd285070b89e20e9a004c5..473cedf7e9749994d5667d9bd54872da5f36cdbd 100644 (file)
@@ -8,6 +8,7 @@
 #include <audio_codec.h>
 #include <dm.h>
 #include <i2s.h>
+#include <log.h>
 #include <sound.h>
 #include <asm/gpio.h>
 #include <asm/arch/power.h>
index 9034a8385a8c78b1e868070585a5499728d662ca..0686add3c8b351edd1c57a1c45dc6423267b4024 100644 (file)
@@ -9,6 +9,7 @@
 #include <audio_codec.h>
 #include <dm.h>
 #include <i2s.h>
+#include <log.h>
 #include <sound.h>
 #include <asm/sdl.h>
 
index d9b3a38f18c7ea903a211db887647eb19465d123..92f4b0b924bab790b20c64b7604ef9d2bf9172be 100644 (file)
@@ -7,8 +7,10 @@
 #include <common.h>
 #include <dm.h>
 #include <i2s.h>
+#include <log.h>
 #include <malloc.h>
 #include <sound.h>
+#include <linux/delay.h>
 
 #define SOUND_BITS_IN_BYTE 8
 
index dd3f9db4f7547da4b45491eb44e8dd906062e504..b0eab233916b14e6b771ca34a9f7ad0df2883bcd 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <sound.h>
 
 void sound_create_square_wave(uint sample_rate, unsigned short *data, int size,
index c71fce9bb1c7fb88414e330577c2f2f456a4bd6c..26d457255c94802f646814867433f159015d5604 100644 (file)
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <dm.h>
 #include <i2s.h>
+#include <log.h>
 #include <misc.h>
 #include <asm/io.h>
 #include <asm/arch-tegra/tegra_ahub.h>
index 8022dbba6426bb63a3ea44bd53943620f56c53c2..5cf82250da2029fc74e478be0db6856c8e4b16ab 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <dm.h>
 #include <i2s.h>
+#include <log.h>
 #include <misc.h>
 #include <sound.h>
 #include <asm/io.h>
index 7c2ed53f5a7fc771b7e4cad9303c89e6d2c375ed..aef6a2eb147555506e8b8d0db862dc5cb3056c32 100644 (file)
@@ -10,6 +10,7 @@
 #include <audio_codec.h>
 #include <dm.h>
 #include <i2s.h>
+#include <log.h>
 #include <misc.h>
 #include <sound.h>
 #include <asm/gpio.h>
index b290c4e8791c262165aacc56d95689122271a615..367e14454170a4c3f0508bb195e917b289850c6e 100644 (file)
@@ -10,6 +10,7 @@
 #include <fdtdec.h>
 #include <i2c.h>
 #include <i2s.h>
+#include <log.h>
 #include <sound.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
index e24deb4f71fac4f3fbc8f81a7b496ac7b9849ee7..3aa7a40b77e93d87bfc6f292374ecc03ca2c02bf 100644 (file)
@@ -9,10 +9,12 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <fdtdec.h>
 #include <spi.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 #define ALTERA_SPI_STATUS_RRDY_MSK     BIT(7)
 #define ALTERA_SPI_CONTROL_SSO_MSK     BIT(10)
index e0cc323444056d164c4d5c95393e0cffb338c6f4..328b16c277f32540a65b73e22ee730e68153cc99 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <clk.h>
+#include <log.h>
 #include <malloc.h>
 #include <spi.h>
 #include <asm/io.h>
index a6c3939db547dc9354e46e46c178411e7cab1892..9320a8be685bf928f77c96c925574ad74da342a8 100644 (file)
@@ -17,6 +17,7 @@
 #include <errno.h>
 #include <fdtdec.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
 #include <linux/err.h>
 #include <linux/io.h>
 #include <linux/iopoll.h>
index 76b8556c98aeea16bdc0c5ddf26303b859c4b41a..6167bd164bb0accdd4106ea9dfd11e234f0852fa 100644 (file)
@@ -3,6 +3,7 @@
  */
 
 /* Register offsets */
+#include <linux/bitops.h>
 #define ATMEL_SPI_CR                   0x0000
 #define ATMEL_SPI_MR                   0x0004
 #define ATMEL_SPI_RDR                  0x0008
index f88702df4dc293c64ddf2e30287b7404d901f9bf..f30a8a42bd459289302ae9b5b2dc8e58aede6dff 100644 (file)
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <spi.h>
 #include <reset.h>
 #include <wait_bit.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 #define HSSPI_PP                       0
 
index 719f53d08e06ce9824252bef05ae9a9f9364cc0b..acc1a493c4ebf075c92b983cafe2d689db131f4a 100644 (file)
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <spi.h>
 #include <reset.h>
index 994a5948f1ee99568d17031f1e57b7a78749a00d..1e8574920907ad8bff6401c2a3fc8b57518953d8 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <clk.h>
+#include <log.h>
 #include <asm-generic/io.h>
 #include <dm.h>
 #include <fdtdec.h>
index 0a5af05614307b816f6065e83f3aa40d0340e314..f9675f75a40121be76c805833a0aa45895f76221 100644 (file)
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <dma.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <wait_bit.h>
 #include <spi.h>
index 923ff6f3114e1c08a29f1413249323b151e04bac..dd9c77281f116cee3b1a1332362c38d9a386b88c 100644 (file)
@@ -15,6 +15,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/platform_data/spi_coldfire.h>
 #include <spi.h>
 #include <malloc.h>
index 4d2c106440b3af635446305aceac10c05b03ce69..97ac97b1a5db4d4608810f07022df9130c3bf1d6 100644 (file)
@@ -9,12 +9,15 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <spi.h>
 #include <malloc.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
 #include <dm.h>
 #include <dm/platform_data/spi_davinci.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 /* SPIGCR0 */
 #define SPIGCR0_SPIENA_MASK    0x1
index 2dc16736a3ec577e4a6bf4adecb3ab7a56e8a8bc..c9b14f90292ec2898dce6471385d6ac390b7138a 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm-generic/gpio.h>
 #include <clk.h>
 #include <dm.h>
@@ -19,6 +20,7 @@
 #include <fdtdec.h>
 #include <reset.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
 #include <linux/compat.h>
 #include <linux/iopoll.h>
 #include <asm/io.h>
index d682a11013a4b35753666ae426423e952590f3ff..746686a18afa783b595daf9ca54a5e48e4005646 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <spi.h>
 #include <fdtdec.h>
@@ -18,6 +19,7 @@
 #include <asm/arch/pinmux.h>
 #include <asm/arch/spi.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index a68a51945e4e474ae0e131032cbdc85fd765a160..1cdb2331104a39011bdb973f22711abac9cc2a85 100644 (file)
@@ -13,6 +13,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <common.h>
+#include <log.h>
 #include <spi.h>
 #include <malloc.h>
 #include <asm/io.h>
@@ -21,6 +22,8 @@
 #include <asm/arch/clock.h>
 #endif
 #include <fsl_dspi.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 7444ae1a068bce1cc3eddc64a922d5ab831dfc33..50d194f614b1bd6d6f4e0ca4f07c9c1c39f6171e 100644 (file)
@@ -7,6 +7,9 @@
  */
 
 #include <common.h>
+#include <log.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 #include <malloc.h>
 #include <spi.h>
index ee2c8b67dc91f6bf5bb46f7c02d33166324aa41e..e715f9838f1ff1dcd362d7ef1a8dfef2866ee246 100644 (file)
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
+#include <linux/libfdt.h>
+#include <linux/sizes.h>
+#include <linux/iopoll.h>
 #include <dm.h>
 #include <linux/iopoll.h>
 #include <linux/sizes.h>
index a9d7715a556a5356d4526f6f33148a0ca19bd5df..74050628463c1de2622a42c9c9f9bcf81957f9cd 100644 (file)
@@ -8,10 +8,12 @@
 #define LOG_CATEGORY   UCLASS_SPI
 
 #include <common.h>
+#include <bootstage.h>
 #include <div64.h>
 #include <dm.h>
 #include <dt-structs.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <pch.h>
 #include <pci.h>
@@ -23,6 +25,8 @@
 #include <asm/fast_spi.h>
 #include <asm/io.h>
 #include <asm/mtrr.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/sizes.h>
 
 #include "ich.h"
index d7f1ffdf37ddd97c50d5861e3a52acd359c3bd95..23c7827740bb9b33a0d5f8b495c3e733dcaf327a 100644 (file)
@@ -8,6 +8,7 @@
 #ifndef _ICH_H_
 #define _ICH_H_
 
+#include <linux/bitops.h>
 struct ich7_spi_regs {
        uint16_t spis;
        uint16_t spic;
index 38fe4143f5abfefbef34a3bec1e0e11261e33a1f..01fcf6bef5a472d3e62c9a43fafb9e4fe7a7855f 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <spi.h>
 #include <asm/io.h>
index 3d551694cb08ae184cc70fd578c437806dc28040..2cdc0186825d2ac771928977dee3e93e67b223a2 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <spi.h>
 #include <clk.h>
 #include <dm.h>
@@ -15,6 +16,7 @@
 #include <errno.h>
 #include <asm/io.h>
 #include <linux/bitfield.h>
+#include <linux/bitops.h>
 
 /* register map */
 #define REG_CMD                        0x00
index b020ce2b9d77fa905ee0212ca8556bb75b92fa4c..0026ad23e376e4d7c8b47e9d3b62a5c2592e276d 100644 (file)
@@ -20,6 +20,7 @@
 #include <dm.h>
 #include <mpc8xx.h>
 #include <spi.h>
+#include <linux/delay.h>
 
 #include <asm/cpm_8xx.h>
 #include <asm/io.h>
index e48debb045107f6e93f3917fb48974aff5ed6c3f..811b5d44fb272330cb3a3a1cc6c915143748ada1 100644 (file)
@@ -8,11 +8,14 @@
 #include <clk.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <spi.h>
 #include <asm/mpc8xxx_spi.h>
 #include <asm-generic/gpio.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 enum {
        SPI_EV_NE = BIT(31 - 22),       /* Receiver Not Empty */
index c3c7b804267b6143837ff7af38140369e800c819..0454410ee9bb5150ac22d273da132c27ca4e98ef 100644 (file)
@@ -8,11 +8,13 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <spi.h>
 #include <dm.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 #include <linux/delay.h>
 
 struct mscc_bb_priv {
index 90e85c6b446b846cb3afde5d31556d33c29282c2..3a0738eb2b72e89c524d4a070a67f20cf1772add 100644 (file)
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <log.h>
 #include <spi.h>
 #include <wait_bit.h>
+#include <linux/bitops.h>
 #include <linux/io.h>
 
 #define MT7621_RX_FIFO_LEN     32
index 1469771619e4b4580129e6016a2e1df00ed70178..2302e62be4f246474df050a7a6edf256ca28b383 100644 (file)
@@ -7,12 +7,14 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <spi.h>
 #include <clk.h>
 #include <wait_bit.h>
 #include <asm/io.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 4d1317c36464cb2f9e732e601baab2c4209206a8..f52ebf4d67c47d3cd83b5b902676f6e110fb496f 100644 (file)
@@ -5,9 +5,12 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <spi.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
index 3ca30887fbed4e3f3b4306c32589c9aae6379005..0da4a80d712fa3269250214820d0359211586676 100644 (file)
 
 #include <common.h>
 #include <cpu_func.h>
+#include <log.h>
 #include <malloc.h>
 #include <memalign.h>
 #include <spi.h>
+#include <asm/cache.h>
+#include <linux/bitops.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
index 22a5c0e3c72e77991196ee6865c251ab9a68678e..c507437f2e7de95b2f5d38d30ea38f526e180345 100644 (file)
@@ -40,6 +40,7 @@
 #include <spi-mem.h>
 #include <dm.h>
 #include <clk.h>
+#include <linux/bitops.h>
 #include <linux/kernel.h>
 #include <linux/sizes.h>
 #include <linux/iopoll.h>
index ff4c700645c3c81b3dbb9a4d482f4cc62bbf2712..6a615d1498e3f03994b0f0735bf4d67d74b802d3 100644 (file)
@@ -21,6 +21,7 @@
 #include <spi.h>
 #include <malloc.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 4ec6683de190bc7b972c486d1c5cdacbfaf11f3b..52e9eff743c83c2db3362284053a5cf9c4865d1f 100644 (file)
@@ -9,6 +9,8 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <log.h>
+#include <linux/bitops.h>
 #include <linux/compat.h>
 #include <malloc.h>
 #include <spi.h>
index bb2e7748fe44b290b1af657acd22bdac7d5b6ed2..3ea59b8fb82a4d961032dec9cb4d928d1a9fa7bf 100644 (file)
@@ -12,6 +12,8 @@
 #include <dm/of_access.h>
 #include <dt-structs.h>
 #include <errno.h>
+#include <linux/bitops.h>
+#include <linux/bug.h>
 #include <linux/errno.h>
 #include <spi.h>
 #include <wait_bit.h>
index 95eeb8307ad245905b8c7b066cac500b49d4c62b..833cb04922ebb97e6d2dc74549c28ac23370de74 100644 (file)
 #include <dm.h>
 #include <dt-structs.h>
 #include <errno.h>
+#include <log.h>
 #include <spi.h>
 #include <time.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/clock.h>
index 6b610ff8231989c5cf06ffd8de3d116b54816eb6..b0a46c886815925027c5c3cf5a790083f1ebcd16 100644 (file)
@@ -12,6 +12,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <spi.h>
 #include <spi_flash.h>
index 5ae203d8d4f87c734933e934b9871e120f28fa70..2839dd1cebd5be592a4a3ecda6f3ca399235a8ea 100644 (file)
@@ -13,6 +13,7 @@
 #include <wait_bit.h>
 #include <asm/arch/rmobile.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 /* SH QSPI register bit masks <REG>_<BIT> */
 #define SPCR_MSTR      0x08
index c58fd0ebc43812c8d5f64dc828fa4accf2bc42ac..4ecfe60115b83bbad925305847e969306971327a 100644 (file)
@@ -10,6 +10,7 @@
 #include <malloc.h>
 #include <spi.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include "sh_spi.h"
 
 static void sh_spi_write(unsigned long data, unsigned long *reg)
index b80f810bd157ae464bd39a94f0d9bdab6f66b86b..e8d7758da03b998e8bce5e8a50ee597302112418 100644 (file)
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <malloc.h>
 #include <spi.h>
 #include <asm/gpio.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 83dde4806e050de8ab618851a9627401ff8603b3..765f05fe54290cad20fffb093aa3831771622175 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
  */
 
+#include <log.h>
 #include <malloc.h>
 #include <spi.h>
 #include <spi-mem.h>
index ffbe20c5b1e6c7b282128a3546cfd7fe0d2993d5..d344701aebb93fe319dd06c1676ea4bab281f633 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #ifndef __UBOOT__
+#include <log.h>
 #include <dm/devres.h>
 #include <linux/dmaengine.h>
 #include <linux/pm_runtime.h>
index 4cab0391f7d12cdbee03f64e3c1ae47c13ffed88..0e0ce25abb91a3c38cb8c1280e9a205b4493a14e 100644 (file)
@@ -13,6 +13,7 @@
 #include <spi-mem.h>
 #include <wait_bit.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 #include <linux/log2.h>
 #include <clk.h>
 
index c59fee10a89e2020ddba975531696f51020b8961..d2dccd67e5bd221c7541903155c8ed60c5049d59 100644 (file)
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <log.h>
 #include <spi.h>
 #include <errno.h>
 #include <fdt_support.h>
 #include <reset.h>
 #include <wait_bit.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
 
 #include <asm/bitops.h>
 #include <asm/gpio.h>
index 4a02d95a34a9b388443f02bc4a88f977705eef61..cffd9cf0b0e7d7c5ebd0d3d684ff88b0bb669595 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <spi.h>
 #include <dm/device-internal.h>
index 6857a87dc5f5f8050f5075fbf3fba98244e3c88d..001f0703e3cba2be692c47c8fb1deff5c47d7346 100644 (file)
@@ -9,9 +9,12 @@
 
 #include <common.h>
 #include <clk.h>
+#include <log.h>
 #include <reset.h>
 #include <spi-mem.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/iopoll.h>
 #include <linux/ioport.h>
 #include <linux/sizes.h>
index ebf2b98fcd45955e71f11956bb89b72a269c5fc7..4a0833b6fa949cb00b89af3d6f20b0562086cd93 100644 (file)
@@ -8,10 +8,13 @@
 #include <clk.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <reset.h>
 #include <spi.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 #include <asm/io.h>
 #include <asm/gpio.h>
index bb34b20f545531d28e6b50b13cbeb1b80116e4ce..0e8198c5a022665220c3fe4d69ef48728edbd300 100644 (file)
@@ -7,11 +7,14 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <time.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch-tegra/clk_rst.h>
 #include <spi.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include "tegra_spi.h"
 
 /* COMMAND1 */
index 0e68d33be65ec9eac39966feb24f5b90f50d9d42..22a0304bfcb5938a676e0a797ca4ebc9a9803ef8 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <time.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
@@ -16,6 +17,8 @@
 #include <asm/arch-tegra/clk_rst.h>
 #include <spi.h>
 #include <fdtdec.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include "tegra_spi.h"
 
 DECLARE_GLOBAL_DATA_PTR;
index ae2fc3e76dce7e99d5f101d4adc41ab6a4579d25..3679cf06a00662b50e38779b9e621a38afbae6d9 100644 (file)
@@ -7,12 +7,15 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <time.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch-tegra/clk_rst.h>
 #include <spi.h>
 #include <fdtdec.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include "tegra_spi.h"
 
 DECLARE_GLOBAL_DATA_PTR;
index 6e540e97df419f6a3548d75c686d1283685e3f04..ae16b45dcb47f249dbcc09e353ad5cf7bfb5473f 100644 (file)
@@ -8,12 +8,15 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <time.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch-tegra/clk_rst.h>
 #include <spi.h>
 #include <fdtdec.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include "tegra_spi.h"
 
 DECLARE_GLOBAL_DATA_PTR;
index e3750b0b171f5e673db06dd308da107b87a2da7f..0db0de8f1bf1aa963a69c712a1be695bc8eeb107 100644 (file)
@@ -7,6 +7,8 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <log.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/arch/omap.h>
 #include <malloc.h>
@@ -17,6 +19,7 @@
 #include <asm/omap_gpio.h>
 #include <asm/omap_common.h>
 #include <asm/ti-common/ti-edma3.h>
+#include <linux/bitops.h>
 #include <linux/err.h>
 #include <linux/kernel.h>
 #include <regmap.h>
index 153fbb2889a1e2261b9be794fd62ab7fb7acc4f3..114bd8abd7a63cd4353b2fde3e9f739b12b84e6c 100644 (file)
@@ -7,9 +7,12 @@
 #include <clk.h>
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <time.h>
 #include <dm/device_compat.h>
 #include <linux/bitfield.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/io.h>
 #include <spi.h>
 #include <wait_bit.h>
index 2b5f2cf54838251c7e4a277629e4d4c371b60596..05768eef721277e310ab33532d684e682e4a1c7b 100644 (file)
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <spi.h>
 #include <asm/io.h>
 #include <wait_bit.h>
+#include <linux/bitops.h>
 
 /*
  * [0]: http://www.xilinx.com/support/documentation
index 9ad1927a5d51f0bcdf783096fe73086c2de8e0f1..db473da6ea8c1656f55e82f6241c5cddc19498c2 100644 (file)
@@ -8,9 +8,11 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <spi.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 0b2b2f481037e02f06e00e55ba0fe1d8cd239d6b..3e66b34ebbb331212bc33bc24b2b0a8ca09077ae 100644 (file)
@@ -8,10 +8,13 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <spi.h>
 #include <time.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 02b78df843715ad8357e0061d352bce3e6a3987b..c3a5b3e3015a326af1d9b44d6407bab381a08f5d 100644 (file)
@@ -7,7 +7,9 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <log.h>
 #include <asm/arch/sys_proto.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <clk.h>
 #include <dm.h>
@@ -17,6 +19,7 @@
 #include <ubi_uboot.h>
 #include <wait_bit.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
 #include <linux/err.h>
 
 #define GQSPI_GFIFO_STRT_MODE_MASK     BIT(29)
index e7fcfcd4d1fb7e47c631d3aa242510bd3fb4850c..3877b9bc1258c2ec57930555366855bdb87088ac 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <sysreset.h>
 #include <dm/device_compat.h>
 #include <linux/err.h>
index 51fdb1055e3b36c17933c45d1716222adfe98a0e..995240f0cbc03bb8a49808a48c4032b6d8bb496a 100644 (file)
@@ -7,8 +7,10 @@
 #define LOG_CATEGORY UCLASS_SYSRESET
 
 #include <common.h>
+#include <command.h>
 #include <cpu_func.h>
 #include <hang.h>
+#include <log.h>
 #include <sysreset.h>
 #include <dm.h>
 #include <errno.h>
@@ -16,6 +18,7 @@
 #include <dm/device-internal.h>
 #include <dm/lists.h>
 #include <dm/root.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 
 int sysreset_request(struct udevice *dev, enum sysreset_t type)
@@ -111,7 +114,7 @@ void reset_cpu(ulong addr)
 }
 
 
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        printf("resetting ...\n");
 
@@ -121,7 +124,7 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 }
 
 #if IS_ENABLED(CONFIG_SYSRESET_CMD_POWEROFF)
-int do_poweroff(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_poweroff(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int ret;
 
index d0336a1ce559291b0baffb00c7fd501e0483a6c8..ee941c7770621a4e4fd115c7af023344ad48f5a0 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <sysreset.h>
 #include <wdt.h>
 #include <asm/io.h>
index ed9a49ad08c8e168073217d7e2eb8be2ed98a272..d7280eeda86bdbbb2199b3864a46fd2c1764b901 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <sysreset.h>
 #include <asm/gpio.h>
 
index 9092764e0b1cdba9a170103820c24461f8eb29c5..456f006bc1264f28b9d8de659f56f3f069cff370 100644 (file)
@@ -5,9 +5,12 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <dm.h>
+#include <log.h>
 #include <sysreset.h>
 #include <wait_bit.h>
+#include <linux/delay.h>
 
 #include "sysreset_mpc83xx.h"
 
index 3390b7bdc2c67b2e54304feac68a0fb3c90586fd..178bcb227ff878862c1f8abe8c1e0b0b94a2d56a 100644 (file)
@@ -10,6 +10,7 @@
 #include <sysreset.h>
 #include <asm/io.h>
 #include <asm/arch/reset_manager.h>
+#include <linux/bitops.h>
 
 struct socfpga_sysreset_data {
        void __iomem *rstmgr_base;
index 9996716f13d6016ebaa490352f3e7fd56b22d1f3..3482d2a07875049fb13a624031275aebaa01f973 100644 (file)
@@ -10,6 +10,7 @@
 #include <syscon.h>
 #include <sysreset.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 1fb3c16a14134446c4c1f88231f952aa10fb93b6..112e216883447a31dc9e34674fc2e820413f91b1 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <tee.h>
 #include <dm/device-internal.h>
index da13121a0900603193f7a0f415c26dfd757aa2c2..83ec753802acc0e99d016bad41f349ef221f9df2 100644 (file)
@@ -7,10 +7,13 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <thermal.h>
 #include <dm/device-internal.h>
 #include <dm/device.h>
 #include <asm/arch/sci/sci.h>
+#include <linux/delay.h>
+#include <linux/libfdt.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -58,13 +61,15 @@ int imx_sc_thermal_get_temp(struct udevice *dev, int *temp)
                return ret;
 
        while (cpu_temp >= pdata->alert) {
-               printf("CPU Temperature (%dC) has beyond alert (%dC), close to critical (%dC)",
+               printf("CPU Temperature (%dC) beyond alert (%dC), close to critical (%dC)",
                       cpu_temp, pdata->alert, pdata->critical);
                puts(" waiting...\n");
                mdelay(pdata->polling_delay);
                ret = read_temperature(dev, &cpu_temp);
                if (ret)
                        return ret;
+               if (cpu_temp >= pdata->alert && !pdata->alert)
+                       break;
        }
 
        *temp = cpu_temp / 1000;
index e50b85bd594ef447396c51586e47edd1064e5cdf..101bd5ef2d743f39a5b49627a55e10bfac9e7466 100644 (file)
@@ -9,12 +9,14 @@
 #include <common.h>
 #include <div64.h>
 #include <fuse.h>
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/sys_proto.h>
 #include <dm.h>
 #include <errno.h>
 #include <malloc.h>
+#include <linux/delay.h>
 #include <linux/math64.h>
 #include <thermal.h>
 #include <imx_thermal.h>
index 6f504f7cc4d28d6c2429364f85d8047ca315f2e0..6ca9501eb173eb46c8337bd9b42c2960adafc456 100644 (file)
@@ -12,6 +12,7 @@
 #include <errno.h>
 #include <timer.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 /* control register */
 #define ALTERA_TIMER_CONT      BIT(1)  /* Continuous mode */
index 009af2f9298c7c2172c17e68e11c4bf5fc58968e..70511697fef74345b3b64f571a0063c9acaba6ea 100644 (file)
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <timer.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 #define AT91_PIT_VALUE         0xfffff
 #define AT91_PIT_PITEN         BIT(24)         /* Timer Enabled */
index ed48a145f2ce509a0c6f8da45a346790dc86b140..e6b6dfe3765c3bec2c96a2662556fe221bb3e550 100644 (file)
@@ -4,10 +4,13 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
 #include <dm.h>
 #include <errno.h>
+#include <init.h>
 #include <timer.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 #include <linux/err.h>
 
 #define CNT_CNTRL_RESET                BIT(4)
index 72cb58b69346f8dbed574e005ecee13b62ca3dbb..ad8bb28e8b39d7989df7b4f4ccb5b9bb7ad9faae 100644 (file)
@@ -9,10 +9,13 @@
 #include <clk.h>
 #include <dm.h>
 #include <irq_func.h>
+#include <log.h>
 #include <status_led.h>
 #include <time.h>
 #include <timer.h>
 #include <watchdog.h>
+#include <asm/ptrace.h>
+#include <linux/bitops.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index e99135e5becded143c518bae58b20da28060f241..69ed521811d2a777d4eae9860b3442b54213d8cd 100644 (file)
@@ -11,6 +11,7 @@
 #include <dm.h>
 #include <timer.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 #define MTK_GPT4_CTRL  0x40
 #define MTK_GPT4_CLK   0x44
index 8648f1f1df90135581a98aea6a0c8b87eb2f6f0e..7ff921385a3305144a1bdf5b3bc3ec60963ff38e 100644 (file)
@@ -16,6 +16,7 @@
 #include <dm.h>
 #include <timer.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 #define MTU_NUM_TIMERS         4
 
index a13fb7116569a0f2addf0a588288cd379eea8ffe..700c349f371631e6a38c47b6f3f3a97cee631a16 100644 (file)
@@ -11,6 +11,7 @@
 #include <timer.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
+#include <linux/bitops.h>
 
 /* Timer register bits */
 #define TCLR_START                     BIT(0)  /* Start=1 */
index 48a5055b05e12e65d2154245981edef10f329fc5..bea97159ebe748d80922d16abd118663eb4c64b1 100644 (file)
@@ -11,6 +11,7 @@
 #include <dm.h>
 #include <clk.h>
 #include <timer.h>
+#include <linux/bitops.h>
 
 #define OSTM_CMP       0x00
 #define OSTM_CNT       0x04
index 54956e557a16e74e2de3b9a8791a7703da31ec72..7a5a48425277d47078e80b18b34cfd92647be2bf 100644 (file)
@@ -4,7 +4,10 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
 #include <dm.h>
+#include <init.h>
+#include <log.h>
 #include <dm/ofnode.h>
 #include <mapmem.h>
 #include <asm/arch-rockchip/timer.h>
index 76d99a2b86597416863ae8f7a0ebe79237539154..c57fa3f557044a2823997ce0750887baeeef0d0b 100644 (file)
@@ -10,6 +10,7 @@
 #include <fdtdec.h>
 #include <timer.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
 
 #include <asm/io.h>
 
index b619200f00fa47e14498e82d6f1c78140213adcb..14dde950a1834ccf9d22cf2a2ee1e5c0a4ca7c29 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <init.h>
 #include <dm/lists.h>
 #include <dm/device-internal.h>
 #include <dm/root.h>
index 43cb2d820e89e1a7c2f0e55525ed4a152e39f2d2..93c959ff44452c8e4bc5f834e5e7d9962e9a2382 100644 (file)
@@ -7,7 +7,9 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <time.h>
 #include <timer.h>
@@ -17,6 +19,7 @@
 #include <asm/ibmpc.h>
 #include <asm/msr.h>
 #include <asm/u-boot-x86.h>
+#include <linux/delay.h>
 
 #define MAX_NUM_FREQS  9
 
index b67051af26aff35fd96066473ac4e1ce9884d942..1942c07c605ca3797d5d178f6dd7e83323dabdc3 100644 (file)
 #include <dm.h>
 #include <i2c.h>
 #include <irq.h>
+#include <log.h>
 #include <spl.h>
 #include <tpm-v2.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <asm/arch/iomap.h>
 #include <asm/arch/pm.h>
+#include <linux/delay.h>
 
 enum {
        TIMEOUT_INIT_MS         = 30000, /* Very long timeout for TPM init */
index 71d580700623d07c64db2a7cd37d999b34af827d..6ea795bc0c982b42ec5ceaf8dedb60bdc23b7030 100644 (file)
@@ -6,6 +6,8 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
+#include <linux/delay.h>
 #include <linux/unaligned/be_byteshift.h>
 #include <tpm-v1.h>
 #include <tpm-v2.h>
index 4b79d4ada0823b4b63353187c8675e9dabcc09df..3197e0ebcd3d0c6d7fe868c96e99007a80a358ff 100644 (file)
@@ -15,6 +15,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <tpm-v2.h>
 #include <tee.h>
 
index 522988795c0822a1300aadcf431e11e0f2f40009..41a15bd49fb1871499598d62e569890e27b162a8 100644 (file)
@@ -9,6 +9,7 @@
 #include <tpm-v2.h>
 #include <asm/state.h>
 #include <asm/unaligned.h>
+#include <linux/bitops.h>
 #include <u-boot/crc.h>
 
 /* Hierarchies */
index 713111f6c3ea7299e395352a956c02a083d00f67..36016de4a60a6b012582d0714de4621081123fa9 100644 (file)
@@ -19,6 +19,8 @@
 #include <log.h>
 #include <spi.h>
 #include <tpm-v2.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/compiler.h>
 #include <linux/types.h>
index 2079ea913e4428d88e03a962c00e5a667aecbba5..d9e4877c5c267ec5da4a25f70a769581e33c09cd 100644 (file)
@@ -10,6 +10,7 @@
 #include <tpm-v1.h>
 #include <i2c.h>
 #include <asm/unaligned.h>
+#include <linux/delay.h>
 
 #include "tpm_internal.h"
 
index b5fe43ee50f7f68b95bb4b32232b919382000589..f47813e76d097b0279b8d433b285a1b55fea5dd6 100644 (file)
@@ -23,7 +23,9 @@
 #include <dm.h>
 #include <fdtdec.h>
 #include <i2c.h>
+#include <log.h>
 #include <tpm-v1.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/compiler.h>
 #include <linux/types.h>
index 30194bce07814a5867eca1ace5d42a8f13ca8c96..2dd374cf77d18bb75fc4518d99ab54bff44b9c39 100644 (file)
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <mapmem.h>
 #include <tpm-v1.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 #define PREFIX "lpc_tpm: "
 
index 0d380375eb33c6b108b6c1ba78499da463766599..a253ee150270925f6f324a782f770f8106e76c8d 100644 (file)
 #include <dm.h>
 #include <fdtdec.h>
 #include <i2c.h>
+#include <log.h>
 #include <tpm-v1.h>
 #include <errno.h>
+#include <linux/delay.h>
 #include <linux/types.h>
 #include <asm/unaligned.h>
 
index f6087e7633822aad580eb33612bd0334fc17dc65..ef54e3b7b293077daa62c344fec321356bd95569 100644 (file)
 #include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <spi.h>
 #include <tpm-v1.h>
 #include <errno.h>
+#include <linux/delay.h>
 #include <linux/types.h>
 #include <asm/unaligned.h>
 #include <linux/compat.h>
index 41ee6a60c9644fb1cc85aa4bf31ff22ae2bbb533..1a7bb7bed8a777803bdbb26f862e3ae7ba82de70 100644 (file)
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <ufs.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
 #include <linux/err.h>
 
 #include "ufs.h"
index 4990fba6ebb278d5abfb727e0f6b0366ae3ba2ab..d875269760c187e9da2f73a42a504e7236afda68 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
 #include <linux/err.h>
 
 #define UFS_SS_CTRL             0x4
index 24e1bc2a19c2c4309dd2b4d36198f1c9ba8bcfd3..87b4e5fc5605e9ba9a4dadc7381b67228f1375bb 100644 (file)
@@ -11,6 +11,7 @@
 #include <charset.h>
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <dm/lists.h>
@@ -18,6 +19,8 @@
 #include <malloc.h>
 #include <hexdump.h>
 #include <scsi.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 #include <linux/dma-mapping.h>
 
index 652cd5cb17ad9265b76bff036f348473be9eb4e5..cd7b2113ace828b8909cc0d2140a399b89b1b30d 100644 (file)
@@ -10,6 +10,7 @@
 #include <clk.h>
 #include <dm.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
 #include <linux/io.h>
 #include <linux/usb/otg.h>
 #include <malloc.h>
index ce846488a89c8725ea3eb10b15b16e9f9fee39d2..ea86a250608be21aecfc18d46f748f7190ba669e 100644 (file)
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/device-internal.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <dm/lists.h>
+#include <linux/bug.h>
 #include <linux/kernel.h>
 #include <linux/io.h>
 #include <usb.h>
index 815b93f2fb4030d5cdec089cc99334028588ae7e..fffda7b43a49d8f75e6410d4175c4cecbd7e1b38 100644 (file)
@@ -9,6 +9,7 @@
 #ifndef __LINUX_CDNS3_DRD
 #define __LINUX_CDNS3_DRD
 
+#include <linux/bitops.h>
 #include <linux/types.h>
 #include <linux/usb/otg.h>
 #include "core.h"
index 1957a3b91d5d8bfd4549c5fc1662713047f27ceb..a08c6945590f292e87f4ff71d2ccc1518ae3df44 100644 (file)
  */
 
 #include <cpu_func.h>
+#include <asm/cache.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/usb/composite.h>
 #include <linux/iopoll.h>
 
index caed27c32f9216aeba9f27f895a898cfd4a1b595..8f81d17ec8e34f9d44903c1e8b4d1c02483db218 100644 (file)
@@ -59,6 +59,8 @@
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/usb/gadget.h>
 #include <linux/compat.h>
index 3d5242b331d030a75cbcb32ab9b63a539e930e33..8803fa48bd39999d48f5f22a328c7f7500a040bc 100644 (file)
@@ -11,6 +11,7 @@
  */
 #ifndef __LINUX_CDNS3_GADGET
 #define __LINUX_CDNS3_GADGET
+#include <linux/bitops.h>
 #include <linux/usb/gadget.h>
 
 /*
index 6debfff513c7b07f1c2d220f8a5757723dc0468f..0759ec774abb372d3bfcbf1c26f9bd8f38ccec32 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <usb.h>
 #include <asm/io.h>
 #include <hwconfig.h>
index 0972e458eb02e2c027de88d009e619f1c190b114..8d418c9412bb78b6196489dee62adee7611b38f8 100644 (file)
@@ -19,6 +19,8 @@
 #include <dwc3-uboot.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
+#include <linux/bug.h>
+#include <linux/delay.h>
 #include <linux/dma-mapping.h>
 #include <linux/err.h>
 #include <linux/ioport.h>
index 7f45a9c459794c616fb6c853f9ee2032cf54ae0a..2b4c51a406192f13ccc2c68c7344fc944796a3ce 100644 (file)
@@ -17,6 +17,7 @@
 #ifndef __DRIVERS_USB_DWC3_CORE_H
 #define __DRIVERS_USB_DWC3_CORE_H
 
+#include <linux/bitops.h>
 #include <linux/ioport.h>
 
 #include <linux/usb/ch9.h>
index 175866cf4debdccfa11f81cc0d03cb48ada89a4a..484e7a7b8c8bf6be176fd4d4d86923aabee73774 100644 (file)
@@ -9,11 +9,13 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <log.h>
 #include <asm-generic/io.h>
 #include <dm.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
 #include <dwc3-uboot.h>
+#include <linux/bitops.h>
 #include <linux/usb/ch9.h>
 #include <linux/usb/gadget.h>
 #include <malloc.h>
index de964d6c10eacb778ccf984d8fd59c01a4d15620..6567502cdd1fd4e19265127bbe965fa5d5d4bd71 100644 (file)
@@ -7,12 +7,14 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm-generic/io.h>
 #include <dm.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
 #include <dwc3-uboot.h>
 #include <generic-phy.h>
+#include <linux/delay.h>
 #include <linux/usb/ch9.h>
 #include <linux/usb/gadget.h>
 #include <malloc.h>
index 4af58941d823c9ace8652a0766bb42c3e1b09ec9..385bed3e34c48e180572c1a4e7a479abd0f064a0 100644 (file)
@@ -15,6 +15,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <dm/device_compat.h>
+#include <linux/bug.h>
 #include <linux/kernel.h>
 #include <linux/list.h>
 
index e445c705f18e32643cbd20037273a56711285f0a..2aec874e1ded23de5eedd23f5c756acbd35fe227 100644 (file)
 
 #include <common.h>
 #include <cpu_func.h>
+#include <log.h>
 #include <malloc.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <linux/bug.h>
+#include <linux/delay.h>
 #include <linux/dma-mapping.h>
 #include <linux/list.h>
 
index 677061458cc49c86f9f356192eb9d1bd246638c1..abbd413689016d1a0b5ad60776b789045dbfcec8 100644 (file)
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <asm/arch/power.h>
 #include <asm/arch/xhci-exynos.h>
+#include <linux/delay.h>
 
 void exynos5_usb3_phy_init(struct exynos_usb3_phy *phy)
 {
index 6b0166a1e0603388c4bdce369d7b1b1ce44f05d9..f8ab06482c9257e2632a2ad9e178c20a3b0992ab 100644 (file)
@@ -21,6 +21,8 @@
 #include <ti-usb-phy-uboot.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/ioport.h>
 #include <asm/io.h>
 #include <asm/arch/sys_proto.h>
index 399d1d3c17a6714e14aff77569d73cb4f1aeb6fb..9c305f46e944ec5a7eee2346ebe0a49a8f535342 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <os.h>
 #include <scsi.h>
 #include <usb.h>
index 7f150340c2b5d302f9258c1e0bdb42ff3d14f74e..21bf3bda48d2d4226e703b054b2b2bb5fc19e8ab 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <usb.h>
 #include <dm/device-internal.h>
 
index 32bc9a16983f64c8057e1c861a7a3ad20735adbd..f562fb7eca2ffbb5adc8fadbfb56cd073413a383 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <os.h>
 #include <scsi.h>
 #include <usb.h>
index 50da6bda8e4eda036aae71bdd04727840a6fa49a..e3419e2fd47993ea392ea8e90cf26fda908d1758 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <usb.h>
 #include <dm/device-internal.h>
 
index 3a8ec0bf2dd785a52499a63930f28f838e1d5297..db75ae2498c2da36933fd4fcaf6bb780bb3f7952 100644 (file)
@@ -7,9 +7,12 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
+#include <net.h>
 #include <usb.h>
 #include <malloc.h>
 #include <memalign.h>
+#include <linux/delay.h>
 #include <linux/mii.h>
 #include "usb_ether.h"
 
index 00706bea86f2a2e63466d40dec5a9dcb12b30b64..381bef2bed8d7bd51920cbf44056e60b452f8218 100644 (file)
@@ -7,8 +7,10 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <usb.h>
 #include <net.h>
+#include <linux/delay.h>
 #include <linux/mii.h>
 #include "usb_ether.h"
 #include <malloc.h>
index 418139d43a84c59a61284c40c14b6fb9410d2147..46b92e8d68bd325e81e6dc36f5aa94c98d01d3ce 100644 (file)
@@ -4,7 +4,9 @@
  */
 
 #include <dm.h>
+#include <log.h>
 #include <usb.h>
+#include <linux/bitops.h>
 #include <linux/mii.h>
 #include "usb_ether.h"
 #include "lan7x.h"
index e8ee6650bc4ad31bb89d143e1c8d7add6677c126..e34ad2603fbb594765db1a0fa5da7b98eb44d651 100644 (file)
@@ -4,7 +4,10 @@
  */
 
 #include <dm.h>
+#include <log.h>
+#include <net.h>
 #include <usb.h>
+#include <linux/bitops.h>
 #include "usb_ether.h"
 #include "lan7x.h"
 
index 21786e1bdfc65dfb4866f044d6757cbac634bba8..0a283619ae53199d640731eaf3666dcce020ef98 100644 (file)
@@ -4,9 +4,11 @@
  */
 
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <miiphy.h>
 #include <memalign.h>
+#include <net.h>
 #include <usb.h>
 #include <linux/ethtool.h>
 #include <linux/mii.h>
index 7af610be37029f454ad2096b2c4d7206089907bd..f71e8c7268c601da476c442f2bdf7492299f6099 100644 (file)
@@ -4,7 +4,11 @@
  */
 
 #include <console.h>
+#include <time.h>
 #include <watchdog.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
+#include <linux/errno.h>
 
 /* USB Vendor Requests */
 #define USB_VENDOR_REQUEST_WRITE_REGISTER      0xA0
@@ -122,6 +126,10 @@ int lan7x_write_reg(struct usb_device *udev, u32 index, u32 data);
 
 int lan7x_read_reg(struct usb_device *udev, u32 index, u32 *data);
 
+/*
+ * FIXME: Code should not be in header files. Nive this to a file common to
+ * the two drivers.
+ */
 static inline int lan7x_wait_for_bit(struct usb_device *udev,
                                     const char *prefix, const u32 reg,
                                     const u32 mask, const bool set,
index 75c45ee0ae8b19675778019a3a1ec46fb9d3eb31..0cb7dbc8fb863c47747571e1f5df8de41ab614d9 100644 (file)
@@ -12,6 +12,9 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
+#include <net.h>
+#include <linux/delay.h>
 #include <linux/mii.h>
 #include <malloc.h>
 #include <memalign.h>
index e5f73e3d4c0af4743c16c12e8ae27b187830e457..d9908ecc156210f4a82bbf02d62880fcc7c47fd1 100644 (file)
@@ -7,9 +7,12 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <memalign.h>
+#include <net.h>
 #include <usb.h>
+#include <linux/delay.h>
 #include <linux/mii.h>
 #include <linux/bitops.h>
 #include "usb_ether.h"
@@ -708,9 +711,9 @@ static void r8152b_enter_oob(struct r8152 *tp)
 
        rtl_rx_vlan_en(tp, false);
 
-       ocp_data = ocp_read_word(tp, MCU_TYPE_PLA, PAL_BDC_CR);
+       ocp_data = ocp_read_word(tp, MCU_TYPE_PLA, PLA_BDC_CR);
        ocp_data |= ALDPS_PROXY_MODE;
-       ocp_write_word(tp, MCU_TYPE_PLA, PAL_BDC_CR, ocp_data);
+       ocp_write_word(tp, MCU_TYPE_PLA, PLA_BDC_CR, ocp_data);
 
        ocp_data = ocp_read_byte(tp, MCU_TYPE_PLA, PLA_OOB_CTRL);
        ocp_data |= NOW_IS_OOB | DIS_MCU_CLROOB;
@@ -841,9 +844,9 @@ static void r8153_enter_oob(struct r8152 *tp)
 
        rtl_rx_vlan_en(tp, false);
 
-       ocp_data = ocp_read_word(tp, MCU_TYPE_PLA, PAL_BDC_CR);
+       ocp_data = ocp_read_word(tp, MCU_TYPE_PLA, PLA_BDC_CR);
        ocp_data |= ALDPS_PROXY_MODE;
-       ocp_write_word(tp, MCU_TYPE_PLA, PAL_BDC_CR, ocp_data);
+       ocp_write_word(tp, MCU_TYPE_PLA, PLA_BDC_CR, ocp_data);
 
        ocp_data = ocp_read_byte(tp, MCU_TYPE_PLA, PLA_OOB_CTRL);
        ocp_data |= NOW_IS_OOB | DIS_MCU_CLROOB;
index b6df535a8324fde1e92ac14d75c9694a242ae0f7..c7f62b8b3ed0bdad57dc53e85288ed445faa67a9 100644 (file)
@@ -7,6 +7,7 @@
 #ifndef _RTL8152_ETH_H
 #define _RTL8152_ETH_H
 
+#include <linux/bitops.h>
 #define R8152_BASE_NAME                "r8152"
 
 #define PLA_IDR                        0xc000
@@ -21,7 +22,7 @@
 #define PLA_TEREDO_CFG         0xc0bc
 #define PLA_MAR                        0xcd00
 #define PLA_BACKUP             0xd000
-#define PAL_BDC_CR             0xd1a0
+#define PLA_BDC_CR             0xd1a0
 #define PLA_TEREDO_TIMER       0xd2cc
 #define PLA_REALWOW_TIMER      0xd2e8
 #define PLA_LEDSEL             0xdd90
 #define TEREDO_RS_EVENT_MASK   0x00fe
 #define OOB_TEREDO_EN          0x0001
 
-/* PAL_BDC_CR */
+/* PLA_BDC_CR */
 #define ALDPS_PROXY_MODE       0x0001
 
 /* PLA_CONFIG34 */
index 4bf4066d7a49bdadd52eb07da43cacf7ddbef670..3ebbd533cc0d791580ecd12a91c46d7edb746bdd 100644 (file)
@@ -6,6 +6,8 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include "usb_ether.h"
 #include "r8152.h"
 
index 25f69a061b47ff248f1605488a4f505e39d519cd..d3532df141fa246fbbe2f747edac073beaef5e39 100644 (file)
@@ -9,10 +9,13 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <memalign.h>
+#include <net.h>
 #include <usb.h>
 #include <asm/unaligned.h>
+#include <linux/delay.h>
 #include <linux/mii.h>
 #include "usb_ether.h"
 
index 3aca9ac265d1399ce7566a40796f6780729b3e4c..e368ecda0d70b259254e555adda359a14426ed5f 100644 (file)
@@ -6,8 +6,11 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
+#include <net.h>
 #include <usb.h>
+#include <asm/cache.h>
 #include <dm/device-internal.h>
 
 #include "usb_ether.h"
index 13dec517f62a74ce54418774db0f0656cf68dc4a..1feed417d68ec069d4f988daf2a6d53c4657c34e 100644 (file)
@@ -15,6 +15,7 @@
 
 #include <common.h>
 #include <dm/devres.h>
+#include <linux/bug.h>
 #include <linux/err.h>
 #include <linux/errno.h>
 #include <asm/io.h>
index dffa5117f9c94d391cd5a84680f1d5cb4842b6d7..7d51821497b46987ad4dca3b53705d81b68b4229 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <linux/bitops.h>
 #include <linux/errno.h>
 #include <asm/gpio.h>
 #include <asm/hardware.h>
index 3ecb669507bd9f7b5f9dd35d2bc520c63c738606..c89cd57c253d8ecfd83c54bcef2a2dcc9877e7b2 100644 (file)
@@ -8,6 +8,7 @@
 #include <asm/io.h>
 #include <asm/arch/sysmap.h>
 #include <asm/kona-common/clk.h>
+#include <linux/delay.h>
 
 #include "dwc2_udc_otg_priv.h"
 #include "bcm_udc_otg.h"
index d9cfff3a29f85cfba6d16b42f5f1bfbd2237fd87..cdbdbcc5cac1caf357ee881070001aaf333bdd6e 100644 (file)
@@ -14,6 +14,8 @@
 #include <net.h>
 #include <malloc.h>
 #include <asm/byteorder.h>
+#include <asm/cache.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <asm/unaligned.h>
index b2b279358e1d0c4d13339cb7539090248100d025..91ed7fcec5af57e5506923a8601bbb2e6f2080f6 100644 (file)
@@ -7,8 +7,10 @@
  */
 #undef DEBUG
 
+#include <log.h>
 #include <dm/devres.h>
 #include <linux/bitops.h>
+#include <linux/bug.h>
 #include <linux/usb/composite.h>
 
 #define USB_BUFSIZ     4096
index 7e1e51db967ca0635cfccd27d52b131933e14d1c..3781d25fd6de19e641e7b2a80aa3ccf8984b3514 100644 (file)
@@ -15,6 +15,7 @@
  *     Bruce Balden <balden@lineo.com>
  */
 
+#include <log.h>
 #include <malloc.h>
 #include <serial.h>
 #include <usbdevice.h>
index 70c5c678c3bea9644b1de783a8a5aea2dfe7b597..7fc5d27d436f837c35458ba4384473ce77907676 100644 (file)
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <serial.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 #include <env.h>
 #include <usbdevice.h>
index 9f21af2923d7e5a3968a2482e7d91ca2c1636be0..eaa5dcb9b138a93e16e9cef66e337ff9ade4917f 100644 (file)
 #include <clk.h>
 #include <dm.h>
 #include <generic-phy.h>
+#include <log.h>
 #include <malloc.h>
 #include <reset.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
+#include <linux/bug.h>
+#include <linux/delay.h>
 
 #include <linux/errno.h>
 #include <linux/list.h>
index c4338af0d733b0cb2645c7ce634b6f360797b37a..7f8e9564b9e5d5259d4728420a7e4941d5f95916 100644 (file)
@@ -18,6 +18,7 @@
  */
 
 #include <common.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/list.h>
 #include <malloc.h>
index 434db5ba39ad4b1d12b6ebf8776fcdd7fb7f69fa..2eda5c372062291cadc51e214c7045e000462140 100644 (file)
@@ -11,6 +11,7 @@
 #define __ASM_ARCH_REGS_USB_OTG_HS_H
 
 /* USB2.0 OTG Controller register */
+#include <linux/bitops.h>
 struct dwc2_usbotg_phy {
        u32 phypwr;
        u32 phyclk;
index d4fbb75cc9bcb318ca9bcc05fd8afea17b652de0..1c0505eb28c19148f3d0aaa1df6200e83de53865 100644 (file)
@@ -19,6 +19,8 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <log.h>
+#include <linux/bug.h>
 
 static u8 clear_feature_num;
 int clear_feature_flag;
index 8533abfd9301835caa591727ae6395f2d8e67460..6f04523f15e9b1037efa14a8518f197f8443c6c6 100644 (file)
@@ -10,6 +10,8 @@
 #include <common.h>
 #include <console.h>
 #include <env.h>
+#include <log.h>
+#include <part.h>
 #include <linux/errno.h>
 #include <linux/netdevice.h>
 #include <linux/usb/ch9.h>
index a4a57ba5f59492df1df325d4b08d97c492de382b..4bedc7d3a190ea7c6d1b54f810fecb2c62fe420f 100644 (file)
@@ -17,6 +17,7 @@
 #include <env.h>
 #include <errno.h>
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 
 #include <linux/usb/ch9.h>
index fc27dbe8de4996e6488adf0b436cf2d036317cc1..384c0f6f6e272870bb5923450983f7efc7ce9a16 100644 (file)
@@ -9,11 +9,13 @@
  * Copyright 2014 Linaro, Ltd.
  * Rob Herring <robh@kernel.org>
  */
+#include <command.h>
 #include <config.h>
 #include <common.h>
 #include <env.h>
 #include <errno.h>
 #include <fastboot.h>
+#include <log.h>
 #include <malloc.h>
 #include <linux/usb/ch9.h>
 #include <linux/usb/gadget.h>
index 5250fc8b264d7eb35027f173eaaadc7706eb69a0..439a31c2556b38c76486bee632e5412c9608b988 100644 (file)
 
 #include <config.h>
 #include <hexdump.h>
+#include <log.h>
 #include <malloc.h>
 #include <common.h>
 #include <console.h>
 #include <g_dnl.h>
 #include <dm/devres.h>
+#include <linux/bug.h>
 
 #include <linux/err.h>
 #include <linux/usb/ch9.h>
index 1cfeabcd31ae7c318cb9a7136bd87e4e9560a5fd..9ae02ae78c1e6fcd1441e54484b7d614b8566737 100644 (file)
@@ -4,12 +4,15 @@
  *
  * Eddie Cai <eddie.cai.linux@gmail.com>
  */
+#include <command.h>
 #include <config.h>
 #include <common.h>
 #include <env.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <memalign.h>
+#include <part.h>
 #include <linux/usb/ch9.h>
 #include <linux/usb/gadget.h>
 #include <linux/usb/composite.h>
index 1732a3acf10056495a1ccb3504e28418154664b2..f2fe89d2a6c407f0dd948c68fb15478532ca4546 100644 (file)
@@ -20,6 +20,7 @@
 #include <common.h>
 #include <console.h>
 #include <env.h>
+#include <log.h>
 #include <malloc.h>
 
 #include <linux/usb/ch9.h>
index ee646fdd5ce721db7799da7d37f916904c69ff6e..88fc87f2e907c8ef33e225a96421f62a4de6402c 100644 (file)
 #include <errno.h>
 #include <common.h>
 #include <console.h>
+#include <init.h>
+#include <log.h>
 #include <malloc.h>
 #include <memalign.h>
 #include <version.h>
+#include <linux/delay.h>
 #include <linux/usb/ch9.h>
 #include <linux/usb/gadget.h>
 #include <linux/usb/composite.h>
index 0866ef653173b7a5dd87325eafbc44906e8f32d3..af43433d88d625fe073460d30c4fec405a052096 100644 (file)
 #include <command.h>
 #include <config.h>
 #include <cpu_func.h>
+#include <log.h>
 #include <net.h>
 #include <malloc.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/types.h>
 #include <linux/usb/ch9.h>
index 7a51b53f248923f3dc56bc4cefef7ecf9a931d56..86fdd16b012576dbe409a621b31989285a6885a8 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 
 #include <mmc.h>
index 6e1e57f9fdae889e704fbeef3ec77c5ba43b702c..d19ac1d035318d2d31c6a0bd4c634b098350e70c 100644 (file)
 
 #include <common.h>
 #include <errno.h>
+#include <log.h>
 #include <asm/byteorder.h>
 #include <asm/system.h>
 #include <asm/mach-types.h>
 #include <asm/unaligned.h>
 #include <dm/devres.h>
+#include <linux/bug.h>
 #include <linux/compat.h>
 #include <malloc.h>
 #include <asm/io.h>
 #include <asm/arch/pxa.h>
+#include <linux/delay.h>
 
 #include <linux/usb/ch9.h>
 #include <linux/usb/gadget.h>
index 15c43782b807e033b74b0c0a53bf379043e9d095..ba362b8f2582a59582b9a1cb6d1b6692c4eacf65 100644 (file)
@@ -13,6 +13,7 @@
 #include <asm/byteorder.h>
 #include <asm/io.h>
 #include <usbdevice.h>
+#include <linux/delay.h>
 #include <usb/pxa27x_udc.h>
 #include <usb/udc.h>
 
index eec639f8c07fa1b28bbf4335fa14922937b6127b..13c327ea38adfac959743e84f06d5807d5478937 100644 (file)
@@ -19,6 +19,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <net.h>
 #include <malloc.h>
 #include <linux/types.h>
index f40779b13a20cac1f7679a81f7a7f4cb8f641ae6..5674e8fe494050d30af2ad16813ee3b309d42906 100644 (file)
@@ -268,6 +268,7 @@ struct interrupt_data {
 struct device_attribute { int i; };
 #define ETOOSMALL      525
 
+#include <log.h>
 #include <usb_mass_storage.h>
 #include <dm/device_compat.h>
 
index f25ed2dab06800cf954d86752ac0dbf33fa14956..cefe9d83b1dc860f6616ac5e36ae5282c3b82f5f 100644 (file)
 #include <dm.h>
 #include <errno.h>
 #include <generic-phy.h>
+#include <log.h>
 #include <malloc.h>
 #include <memalign.h>
 #include <phys2bus.h>
 #include <usb.h>
 #include <usbroothubdes.h>
 #include <wait_bit.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <dm/device_compat.h>
+#include <linux/delay.h>
 #include <power/regulator.h>
 #include <reset.h>
 
index 99d4e29414aa43f3c0d24cf9e7b2612db9a69cfc..a72ab2016870628e9dabe6e82975374d2381a03f 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <dm.h>
 #include <errno.h>
index 85a8adf8065b2f52533ac708c59bf170b5d72d35..2ce9f27b862e69e82ce3a9168441532c13556efd 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <usb.h>
 #include "ehci.h"
index 67eec0e0bb64ffe6cb080b6ac1ec0f9e23ac2a3f..f9083d9a64ac6d6be08ca3e3db2152ce6114cd51 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <usb.h>
 #include <asm/io.h>
index fabc662eb610b4acc83b838b0ee9dc9f0831be7b..0b0b2137c76304854b67ae57285a6ea83572fcb6 100644 (file)
@@ -9,6 +9,8 @@
 #include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <log.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <malloc.h>
 #include <usb.h>
index a01da4da7624df3c6976b1d67503e5aef68dea94..b61b5382df41d1e6e233b0f282a63d06b005f73d 100644 (file)
@@ -7,8 +7,10 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <usb.h>
+#include <linux/delay.h>
 #include <usb/fusbh200.h>
 #include <usb/fotg210.h>
 
index ced295ef0fa40166228b1360f6f4b8364fb3352e..ac6c5b58452ee2fe82c23a0aed280d0afb8225cd 100644 (file)
@@ -9,9 +9,11 @@
 
 #include <common.h>
 #include <env.h>
+#include <log.h>
 #include <pci.h>
 #include <usb.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include <usb/ehci-ci.h>
 #include <hwconfig.h>
 #include <fsl_usb.h>
index 0643681846139f461bf4abc144421b8e2d43c92c..304a3437d56cb60dcea097e44f1bafb5d719f184 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <clk.h>
+#include <log.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <dm/ofnode.h>
index a2a85db1e7b6b6e5de026e747de983b552e8c3e0..f79f06320bfb4c24953914faa53ad6ad3b0096af 100644 (file)
@@ -10,7 +10,9 @@
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <asm/byteorder.h>
+#include <asm/cache.h>
 #include <asm/unaligned.h>
 #include <usb.h>
 #include <asm/io.h>
@@ -19,6 +21,7 @@
 #include <watchdog.h>
 #include <dm/device_compat.h>
 #include <linux/compiler.h>
+#include <linux/delay.h>
 
 #include "ehci.h"
 
index 5a9bd549e37feca9add2b537f6ea9c2feab9507a..8fe685af26aa328cae7228c2cb1700b79ad19211 100644 (file)
@@ -6,8 +6,10 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <usb.h>
+#include <linux/delay.h>
 #include "ehci.h"
 #include <linux/mbus.h>
 #include <asm/arch/cpu.h>
index 0b32728c5749882fca70833a251e1c4bdb449b01..212b3623325d4ebda9aa797457de6547e031e601 100644 (file)
@@ -5,9 +5,11 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <usb.h>
 #include <errno.h>
 #include <linux/compiler.h>
+#include <linux/delay.h>
 #include <usb/ehci-ci.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
index 04eb3c006d45425bfc298770b3733aafc38f9d7c..24f8ad7af84a229527ac75811e443af0e994e778 100644 (file)
@@ -5,10 +5,12 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <usb.h>
 #include <errno.h>
 #include <wait_bit.h>
 #include <linux/compiler.h>
+#include <linux/delay.h>
 #include <usb/ehci-ci.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
index 4941cb94575b965e795994042d5761f28a4524e3..d0b7ac512e804783e5e11ed9f7f514693b38e01e 100644 (file)
@@ -8,6 +8,7 @@
 #include <usb.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
+#include <linux/delay.h>
 #include <usb/ehci-ci.h>
 #include <errno.h>
 
index 8e8f6d4928976896d7dba6ab726cd8c5bfd20501..824c620e63873c4067061de7aad40857a71060e6 100644 (file)
@@ -10,6 +10,7 @@
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 #include <errno.h>
+#include <linux/delay.h>
 
 #include "ehci.h"
 
index ab459c8cc927cb1a954c2ee21de03b296d84698e..93ab83941de23f58b4e3149dcc1ccd41a7634688 100644 (file)
  */
 
 #include <common.h>
+#include <log.h>
 #include <usb.h>
+#include <linux/delay.h>
 #include <usb/ulpi.h>
 #include <errno.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
 #include <asm/arch/ehci.h>
 #include <asm/ehci-omap.h>
+#include <dm.h>
+#include <dm/device-internal.h>
+#include <dm/lists.h>
+#include <power/regulator.h>
 
 #include "ehci.h"
 
@@ -177,9 +183,17 @@ int omap_ehci_hcd_stop(void)
  * Based on "drivers/usb/host/ehci-omap.c" from Linux 3.1
  * See there for additional Copyrights.
  */
+#if !CONFIG_IS_ENABLED(DM_USB) || !CONFIG_IS_ENABLED(OF_CONTROL)
+
 int omap_ehci_hcd_init(int index, struct omap_usbhs_board_data *usbhs_pdata,
                       struct ehci_hccr **hccr, struct ehci_hcor **hcor)
 {
+       *hccr = (struct ehci_hccr *)(OMAP_EHCI_BASE);
+       *hcor = (struct ehci_hcor *)(OMAP_EHCI_BASE + 0x10);
+#else
+int omap_ehci_hcd_init(int index, struct omap_usbhs_board_data *usbhs_pdata)
+{
+#endif
        int ret;
        unsigned int i, reg = 0, rev = 0;
 
@@ -286,9 +300,114 @@ int omap_ehci_hcd_init(int index, struct omap_usbhs_board_data *usbhs_pdata,
                if (is_ehci_phy_mode(usbhs_pdata->port_mode[i]))
                        omap_ehci_soft_phy_reset(i);
 
-       *hccr = (struct ehci_hccr *)(OMAP_EHCI_BASE);
-       *hcor = (struct ehci_hcor *)(OMAP_EHCI_BASE + 0x10);
-
        debug("OMAP EHCI init done\n");
        return 0;
 }
+
+#if CONFIG_IS_ENABLED(DM_USB)
+
+static struct omap_usbhs_board_data usbhs_bdata = {
+       .port_mode[0] = OMAP_USBHS_PORT_MODE_UNUSED,
+       .port_mode[1] = OMAP_USBHS_PORT_MODE_UNUSED,
+       .port_mode[2] = OMAP_USBHS_PORT_MODE_UNUSED,
+};
+
+static void omap_usbhs_set_mode(u8 index, const char *mode)
+{
+       if (!strcmp(mode, "ehci-phy"))
+               usbhs_bdata.port_mode[index] = OMAP_EHCI_PORT_MODE_PHY;
+       else if (!strcmp(mode, "ehci-tll"))
+               usbhs_bdata.port_mode[index] = OMAP_EHCI_PORT_MODE_TLL;
+       else if (!strcmp(mode, "ehci-hsic"))
+               usbhs_bdata.port_mode[index] = OMAP_EHCI_PORT_MODE_HSIC;
+}
+
+static int omap_usbhs_probe(struct udevice *dev)
+{
+       u8 i;
+       const char *mode;
+       char prop[11];
+
+       /* Go through each port portX-mode to determing phy mode */
+       for (i = 0; i < OMAP_HS_USB_PORTS; i++) {
+               snprintf(prop, sizeof(prop), "port%d-mode", i + 1);
+               mode = dev_read_string(dev, prop);
+
+               /* If the portX-mode exists, set the mode */
+               if (mode)
+                       omap_usbhs_set_mode(i, mode);
+       }
+
+       return omap_ehci_hcd_init(0, &usbhs_bdata);
+}
+
+static const struct udevice_id omap_usbhs_dt_ids[] = {
+       { .compatible = "ti,usbhs-host" },
+       { }
+};
+
+U_BOOT_DRIVER(usb_omaphs_host) = {
+       .name   = "usbhs-host",
+       .id     = UCLASS_SIMPLE_BUS,
+       .of_match = omap_usbhs_dt_ids,
+       .probe  = omap_usbhs_probe,
+       .flags  = DM_FLAG_ALLOC_PRIV_DMA,
+};
+
+struct ehci_omap_priv_data {
+       struct ehci_ctrl ctrl;
+       struct omap_ehci *ehci;
+#ifdef CONFIG_DM_REGULATOR
+       struct udevice *vbus_supply;
+#endif
+       enum usb_init_type init_type;
+       int portnr;
+       struct phy phy[OMAP_HS_USB_PORTS];
+       int nports;
+};
+
+static int ehci_usb_ofdata_to_platdata(struct udevice *dev)
+{
+       struct usb_platdata *plat = dev_get_platdata(dev);
+
+       plat->init_type = USB_INIT_HOST;
+
+       return 0;
+}
+
+static int omap_ehci_probe(struct udevice *dev)
+{
+       struct usb_platdata *plat = dev_get_platdata(dev);
+       struct ehci_omap_priv_data *priv = dev_get_priv(dev);
+       struct ehci_hccr *hccr;
+       struct ehci_hcor *hcor;
+
+       priv->ehci = (struct omap_ehci *)devfdt_get_addr(dev);
+       priv->portnr = dev->seq;
+       priv->init_type = plat->init_type;
+
+       hccr = (struct ehci_hccr *)&priv->ehci->hccapbase;
+       hcor = (struct ehci_hcor *)&priv->ehci->usbcmd;
+
+       return ehci_register(dev, hccr, hcor, NULL, 0, USB_INIT_HOST);
+}
+
+static const struct udevice_id omap_ehci_dt_ids[] = {
+       { .compatible = "ti,ehci-omap" },
+       { }
+};
+
+U_BOOT_DRIVER(usb_omap_ehci) = {
+       .name   = "omap-ehci",
+       .id     = UCLASS_USB,
+       .of_match = omap_ehci_dt_ids,
+       .probe = omap_ehci_probe,
+       .ofdata_to_platdata = ehci_usb_ofdata_to_platdata,
+       .platdata_auto_alloc_size = sizeof(struct usb_platdata),
+       .priv_auto_alloc_size = sizeof(struct ehci_omap_priv_data),
+       .remove = ehci_deregister,
+       .ops    = &ehci_usb_ops,
+       .flags  = DM_FLAG_ALLOC_PRIV_DMA,
+};
+
+#endif
index 04e7c5e37f8796370a680829746b05c932288dd4..7dd5c33c13dfed461a4e4d989d65b0e7f2c09200 100644 (file)
@@ -7,6 +7,8 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <init.h>
+#include <log.h>
 #include <pci.h>
 #include <usb.h>
 #include <asm/io.h>
index 4868581066f421b4d43222a20cd8227900827adb..130b73dfe49d91dead1a0d83539594a80063c008 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <asm/io.h>
 #include <asm/arch/ehci-rmobile.h>
+#include <linux/delay.h>
 #include "ehci.h"
 
 #if defined(CONFIG_R8A7740)
index f93ffa8d9f8ed453be8edcaba5aa0f451c54c4fd..3e87e0c7fd8a776b102b387ba97e8db728d909da 100644 (file)
@@ -9,8 +9,10 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
 #include <usb.h>
+#include <linux/delay.h>
 #include "ehci.h"
 #include <asm/arch/hardware.h>
 #include <asm/arch/spr_misc.h>
index 702f3b567025cce5fb57f544b5543ef3d9bb57ad..d81f4a03f1493bfdfde48dd045863200e7cc752d 100644 (file)
@@ -7,6 +7,8 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <asm-generic/gpio.h>
index a16cf135e318ab5e323b455c07c464c1733e397a..562207d3d26c2c9ab0242d50b12a52db6ed45569 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <usb.h>
 #include <errno.h>
 #include <linux/compiler.h>
@@ -18,6 +19,7 @@
 #include <asm/arch/crm_regs.h>
 #include <asm/mach-imx/iomux-v3.h>
 #include <asm/mach-imx/regs-usbphy.h>
+#include <linux/delay.h>
 #include <usb/ehci-ci.h>
 #include <linux/libfdt.h>
 #include <fdtdec.h>
index 66c1d61dbf28109f3ed82a9a9387311e6e87c182..8e0755423a9673137e60c0c9a4cb270e4c89dbff 100644 (file)
@@ -298,4 +298,5 @@ extern struct dm_usb_ops ehci_usb_ops;
 int ehci_setup_phy(struct udevice *dev, struct phy *phy, int index);
 int ehci_shutdown_phy(struct udevice *dev, struct phy *phy);
 
+#include <linux/bitops.h>
 #endif /* USB_EHCI_H */
index 04d5fdb2a8676796b3f5d67deefdcdb90612d420..631711a9e8fa617cbe37b42953fe46cc96f7ab67 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <dm/ofnode.h>
index c94960f2cc7059239e3693da2f43359f1223f89f..c62d8feecce1faca101386372d65274fb5d4b158 100644 (file)
@@ -32,6 +32,8 @@
 #include <asm/byteorder.h>
 #include <dm.h>
 #include <errno.h>
+#include <asm/cache.h>
+#include <linux/delay.h>
 
 #if defined(CONFIG_PCI_OHCI)
 # include <pci.h>
index 34a4b00dda56ded00b9fd52bd2f047e91984a461..afb9e29f7886a761aa53d9621c516fcedf4c5024 100644 (file)
@@ -10,6 +10,8 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <init.h>
+#include <log.h>
 #include <wait_bit.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
index 8fc9d211db516a89dc69084679f49011160160c6..37aa2c55f2410a2c243c931dba66b7c2897b6e58 100644 (file)
@@ -8,9 +8,11 @@
 #include <common.h>
 #include <console.h>
 #include <dm.h>
+#include <log.h>
 #include <usb.h>
 #include <asm/io.h>
 #include <dm/device_compat.h>
+#include <linux/delay.h>
 #include <linux/iopoll.h>
 #include <power/regulator.h>
 
index b6110d6b3f44deff42f1b3707b6da44c788d4faa..625d4938cceeda36ab66c5f254686b9506d977f7 100644 (file)
@@ -8,6 +8,7 @@
 #ifndef __R8A66597_H__
 #define __R8A66597_H__
 
+#include <linux/bitops.h>
 #define SYSCFG0                0x00
 #define SYSCFG1                0x02
 #define SYSSTS0                0x04
index e08da6130bd5ca7d53f71c688c4250d41aad79ee..7c823f241a85004fbfb54e2c8a33af17c4c90122 100644 (file)
@@ -21,6 +21,7 @@
 #include <common.h>
 #include <mpc8xx.h>
 #include <usb.h>
+#include <linux/delay.h>
 #include "sl811.h"
 
 #include "../../../board/kup/common/kup.h"
index 28ee4b093b64820250ae7e72e7997cac9ff04eaf..beb62ebc0c24cc788cbfa1c7677823721fc1d188 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <usb.h>
 #include <dm/root.h>
 
index 5e423012dfd8faa3af5e17cf2413f612c483b638..cb79dfbbd5b9aaedbfc49b217f0cab36dcb9e0b3 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <memalign.h>
 #include <usb.h>
 #include <dm/device-internal.h>
index 8a40f6644708bbb261f4fe2ad8a1b5d9cf613a40..5d66e5881f3240a2ac4f7c1918aa870490d58f34 100644 (file)
@@ -14,6 +14,7 @@
 #include <asm/arch/cpu.h>
 #include <asm/arch/armada100.h>
 #include <asm/arch/utmi-armada100.h>
+#include <linux/delay.h>
 
 static int utmi_phy_init(void)
 {
index 563db1a4260508a4100be763cac8de624a19ad8e..27f84102db380c3f02d2c6ecab44a56c6564e2ee 100644 (file)
 #include <common.h>
 #include <dm.h>
 #include <generic-phy.h>
+#include <log.h>
 #include <usb.h>
 #include <dwc3-uboot.h>
+#include <linux/delay.h>
 
 #include <usb/xhci.h>
 #include <asm/io.h>
@@ -19,7 +21,7 @@
 #include <linux/usb/otg.h>
 
 struct xhci_dwc3_platdata {
-       struct phy_bulk *usb_phys;
+       struct phy_bulk phys;
 };
 
 void dwc3_set_mode(struct dwc3 *dwc3_reg, u32 mode)
@@ -124,7 +126,7 @@ static int xhci_dwc3_probe(struct udevice *dev)
        hcor = (struct xhci_hcor *)((uintptr_t)hccr +
                        HC_LENGTH(xhci_readl(&(hccr)->cr_capbase)));
 
-       ret = dwc3_setup_phy(dev, plat->usb_phys);
+       ret = dwc3_setup_phy(dev, &plat->phys);
        if (ret && (ret != -ENOTSUPP))
                return ret;
 
@@ -167,7 +169,7 @@ static int xhci_dwc3_remove(struct udevice *dev)
 {
        struct xhci_dwc3_platdata *plat = dev_get_platdata(dev);
 
-       dwc3_shutdown_phy(dev, plat->usb_phys);
+       dwc3_shutdown_phy(dev, &plat->phys);
 
        return xhci_deregister(dev);
 }
index 25c30c24f09a3e9d27d30850d3ea7c1e0e63c435..1705accbde1ccfb6993237c4713283bfe845b97b 100644 (file)
@@ -15,6 +15,8 @@
 #include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <log.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <malloc.h>
 #include <usb.h>
index 9e0c1b76e4489bc6a5c1d1365e64fe14cba539ea..d8fb2c53450ec597e5fd7b6575edb92d872a4452 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <usb.h>
 #include <linux/errno.h>
 #include <linux/compat.h>
index 93450ee3b7495d7102e69068671ae3dd8a4d8141..2d968aafb03eddb1948ec3308d87df146a98fdf7 100644 (file)
 #include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
+#include <log.h>
 #include <asm/byteorder.h>
 #include <usb.h>
 #include <malloc.h>
 #include <asm/cache.h>
+#include <linux/bug.h>
 #include <linux/errno.h>
 
 #include <usb/xhci.h>
index 2b871046ae6d3ca4109663153c411d74a9e95236..5fb74848c256ec4e5e3d145fdca1e4104a219d03 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <usb.h>
 #include <power/regulator.h>
 #include <asm/gpio.h>
index 25b195f7d1a58e41f4a14150198b6d965fc620cc..501129d769a2f99d0809a9e12917a1d4ea52de7d 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <usb.h>
 #include <linux/errno.h>
 #include <asm/omap_common.h>
index c1f60da54168a014b528890e0313f6e6002c5f50..9fb6d2f763532bb17ce2e735dd972c74d20a178d 100644 (file)
@@ -7,6 +7,8 @@
 
 #include <common.h>
 #include <dm.h>
+#include <init.h>
+#include <log.h>
 #include <pci.h>
 #include <usb.h>
 #include <usb/xhci.h>
index d86584b847d48bd17b848ddba168c81116ae5b43..4964697f27bc528e0dd41a8bffcba67768313fdd 100644 (file)
@@ -9,10 +9,12 @@
 #include <clk.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <malloc.h>
 #include <usb.h>
 #include <wait_bit.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
 
 #include <usb/xhci.h>
 #include "xhci-rcar-r8a779x_usb3_v3.h"
index 3cd6c8a0dcb4ea5561a4572fd6ab72dfce5a249c..86aeaab412e8105da251ea0d6c46e04f99a951c9 100644 (file)
 
 #include <common.h>
 #include <cpu_func.h>
+#include <log.h>
 #include <asm/byteorder.h>
 #include <usb.h>
 #include <asm/unaligned.h>
+#include <linux/bug.h>
 #include <linux/errno.h>
 
 #include <usb/xhci.h>
index b67722fe45f5daabe89d8f063010b8e987f2752c..1c2bf04df329ef15156a0c4e743c1a8570717dba 100644 (file)
@@ -5,6 +5,7 @@
  */
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <usb.h>
 #include <watchdog.h>
index c370eb639428dbce514ad3d719d81f13e8c134a4..ebd29545715b95205f1bfc45a35b002f7ee9b126 100644 (file)
 #include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
+#include <log.h>
 #include <asm/byteorder.h>
 #include <usb.h>
 #include <malloc.h>
 #include <watchdog.h>
 #include <asm/cache.h>
 #include <asm/unaligned.h>
+#include <linux/bitops.h>
+#include <linux/bug.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <usb/xhci.h>
 
index 6e5be90fe531bd6b8a9df385fb61f13572884a5b..0a52e09e19f153cd0a40c66f147da4a5062c6449 100644 (file)
@@ -26,6 +26,8 @@
 #else
 #include <common.h>
 #include <asm/omap_musb.h>
+#include <linux/bug.h>
+#include <linux/delay.h>
 #include "linux-compat.h"
 #endif
 
index 2ddcf33b5f022ae665cc553643410f6a0efd0b6c..67488ddb504945cd8f0073a4daa5f31905d59107 100644 (file)
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/device-internal.h>
 #include <dm/device_compat.h>
 #include <dm/lists.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/da8xx-usb.h>
+#include <linux/delay.h>
 #include <linux/usb/otg.h>
 #include <asm/omap_musb.h>
 #include <generic-phy.h>
index f366ae58e877e6c5e80e803f7bd91e5d88d141c2..733b197f593d93d9b7706853fd19074af6bedbb4 100644 (file)
@@ -2,6 +2,7 @@
 #define __LINUX_COMPAT_H__
 
 #include <malloc.h>
+#include <linux/delay.h>
 #include <linux/list.h>
 #include <linux/compat.h>
 
index 131fd7dd79faba77ec101042923f512b4420033c..c281c38a2880ff5032f7e7967e522430006325ae 100644 (file)
@@ -14,6 +14,7 @@
 #include <dm.h>
 #include <dm/lists.h>
 #include <dm/root.h>
+#include <linux/delay.h>
 #include <linux/usb/musb.h>
 #include <usb.h>
 #include "linux-compat.h"
index f678aa48265da17474ba361f4e51a765df92b671..961de99795e91da4555a4bc957aa719b27925058 100644 (file)
@@ -65,6 +65,7 @@
  */
 
 #ifndef __UBOOT__
+#include <log.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <linux/module.h>
@@ -80,6 +81,8 @@
 #else
 #include <common.h>
 #include <usb.h>
+#include <linux/bitops.h>
+#include <linux/bug.h>
 #include <linux/errno.h>
 #include <linux/usb/ch9.h>
 #include <linux/usb/gadget.h>
index 35d2123dddeeb78a04fea121d46d3820ee8f2085..8ba98d8c0e8804cbd29c80db0bd157b0294e8ad3 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #ifndef __UBOOT__
+#include <log.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <linux/kernel.h>
@@ -22,6 +23,7 @@
 #include <linux/slab.h>
 #else
 #include <common.h>
+#include <linux/bug.h>
 #include <linux/usb/ch9.h>
 #include "linux-compat.h"
 #endif
index 79e8222e3b3f7766ea6117154601e545dacb85de..93f43ba4714ba93fbb9620c28372a59899126fa0 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #ifndef __UBOOT__
+#include <log.h>
 #include <dm/device_compat.h>
 #include <linux/kernel.h>
 #include <linux/list.h>
index b98f0ed40ee0ee059294d9070e81d9e9a50fb9e8..5fa013659c5cb6d0bd47ee5056cb7e9a6cb6cd11 100644 (file)
@@ -23,6 +23,7 @@
 #else
 #include <common.h>
 #include <usb.h>
+#include <linux/bug.h>
 #include "linux-compat.h"
 #include "usb-compat.h"
 #endif
index 72f14b93438780411e7d2cd334443db9f8b51925..988071a61d11e813f096178e34e8db2ca3add384 100644 (file)
@@ -2,6 +2,7 @@
 #include <console.h>
 #include <malloc.h>
 #include <watchdog.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/errno.h>
 #include <linux/usb/ch9.h>
index 0d34dcfc5d18ce53562b2f8a0a8add42cf5e1d2b..da63cc2c22435ab13d02f11a81280780490c0bf4 100644 (file)
@@ -10,6 +10,7 @@
  */
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <serial.h>
 #include <dm/device-internal.h>
 #include <dm/device_compat.h>
index c7867fef8acb4354015b463f6b39b675d1ff42f9..74a841af4603f34d02cdf58ee7999f6ac48541cd 100644 (file)
@@ -11,6 +11,8 @@
 
 #include <common.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/usb/musb.h>
 #include "linux-compat.h"
 #include "musb_core.h"
index 98bf73697872e7129a5be9d50fd36a1bfc8441d9..53c336fc3f5c6e7af70f58974c5eece71a1736f9 100644 (file)
@@ -19,6 +19,7 @@
 #include <clk.h>
 #include <dm.h>
 #include <generic-phy.h>
+#include <log.h>
 #include <malloc.h>
 #include <phy-sun4i-usb.h>
 #include <reset.h>
@@ -29,6 +30,8 @@
 #include <dm/device_compat.h>
 #include <dm/lists.h>
 #include <dm/root.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/usb/musb.h>
 #include "linux-compat.h"
 #include "musb_core.h"
index 608facefa3de72584aa9013e80d1542248010df3..f4f26d86b3ff83bae7f747b29aef55e201e8f53b 100644 (file)
@@ -9,6 +9,7 @@
 #include <command.h>
 #include <console.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <linux/usb/otg.h>
 #include <dm/device-internal.h>
index 0617364f3584b311025acdbe35a020a3a6d8b64c..f945f1f5e2c584c830c4f8a1a9e0678ef6420cb0 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include <common.h>
+#include <linux/delay.h>
 
 #include "am35x.h"
 
index c6d47bef56a94b428fb192fdd90b78577ee2e124..147b2eb929fbd73cc91b2a9423b408a22f013bfb 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <linux/bitops.h>
 
 #include "musb_core.h"
 struct musb_regs *musbr;
index adcd319b6d0b865f57a2201716603cd03d9f1756..afbc648883bc7df79a1148f95321094391622d5f 100644 (file)
@@ -8,7 +8,9 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <usb.h>
+#include <linux/delay.h>
 #include "musb_hcd.h"
 
 /* MSC control transfers */
index 4d7723621d0b3b08c902c3a86acfe11856eec8d8..d901f8777c2c4682033d462f99cb472d2dd0f416 100644 (file)
@@ -41,6 +41,7 @@
 #include <hang.h>
 #include <serial.h>
 #include <usbdevice.h>
+#include <linux/delay.h>
 #include <usb/udc.h>
 #include "../gadget/ep0.h"
 #include "musb_core.h"
index 9209942430a42118183f21a31151d9fdb5392631..be733f39b23fa37c54786a9e85f2a28bc471e1e8 100644 (file)
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <usb.h>
 #include <dm/device_compat.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/omap_common.h>
 #include <asm/arch/cpu.h>
index ec998901ab9b82446771228ba2f479d63d417f46..f1cf9160d5657545dc4375f0cdfd47b5b68a9a3e 100644 (file)
@@ -5,7 +5,10 @@
 
 #include <common.h>
 #include <hang.h>
+#include <log.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 #include "../gadget/dwc2_udc_otg_priv.h"
 
index d2945d1417b1f4fab31722cb5f6fb303744af614..676868bead36833428496ef032b02bfc2dc4f4bb 100644 (file)
@@ -24,6 +24,7 @@
  */
 
 #include <twl4030.h>
+#include <linux/delay.h>
 
 /* Defines for bits in registers */
 #define OPMODE_MASK            (3 << 3)
index 67cdebc0fccf35cea317fe60fd73586d0ed14bb2..8b930e3fa919bf1a510952724be8da624c664e83 100644 (file)
@@ -8,7 +8,9 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include <usb/ulpi.h>
 
 #define OMAP_ULPI_WR_OPSEL     (2 << 22)
index a2158c9bb85cba9e9b9c41060381a1221f3c931e..3bb152be8939f433a4273631a64ca97c1210be01 100644 (file)
@@ -15,6 +15,7 @@
 
 #include <common.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 #include <usb/ulpi.h>
 
 /* ULPI viewport control bits */
index e0fb43f89bf590cf70b3502e6fa148cdc01ba66d..dd0da0e841e5c82c2942fc823b20a6baec5cdd7a 100644 (file)
@@ -21,6 +21,8 @@
 
 #include <common.h>
 #include <exports.h>
+#include <log.h>
+#include <linux/delay.h>
 #include <usb/ulpi.h>
 
 #define ULPI_ID_REGS_COUNT     4
index 0f066df451bcaaa59ed407288c9018b117aef64a..2707ff59c7d3f01de5b270eb72afb9c422919221 100644 (file)
@@ -14,6 +14,7 @@
 #include <common.h>
 #include <dm.h>
 #include <lcd.h>
+#include <log.h>
 #include <video.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/hardware.h>
@@ -21,6 +22,7 @@
 #include <asm/arch/sys_proto.h>
 #include <asm/io.h>
 #include <asm/utils.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include "am335x-fb.h"
 
index fc2f431b9c96285518e011dff5f1c7bf6a1b51e6..b050c4292f6454bdc0918d7accdf959878abbd0c 100644 (file)
@@ -11,6 +11,7 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <linux/delay.h>
 #include "anx98xx-edp.h"
 #include "anx9804.h"
 
index 64269c30bd7c8c847cd5a468321e85de230aa0f7..ece36d41eee22c6d3a9c61a95aa42d8fee144630 100644 (file)
@@ -6,6 +6,7 @@
 
 /* Registers at i2c address 0x38 */
 
+#include <linux/bitops.h>
 #define ANX9804_HDCP_CONTROL_0_REG                             0x01
 
 #define ANX9804_SYS_CTRL1_REG                                  0x80
index 6fce033636906d724ef9abc087aff4096277c99d..c4da2e3ae7f2772549bcc2a14f1a244fb731a693 100644 (file)
@@ -16,6 +16,7 @@
  */
 
 #include <common.h>
+#include <linux/delay.h>
 
 #include <command.h>
 #include <bios_emul.h>
index 62acccedf377ee1ba6d823f7129bb8fae9262c5c..35a56a8eab2ec1438603eb966ac7f6c1a2848476 100644 (file)
@@ -7,7 +7,9 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <log.h>
 #include <malloc.h>
+#include <part.h>
 #include <asm/io.h>
 #include <asm/arch/gpio.h>
 #include <asm/arch/clk.h>
@@ -18,6 +20,7 @@
 #include <video.h>
 #include <wait_bit.h>
 #include <atmel_hlcdc.h>
+#include <linux/bug.h>
 
 #if defined(CONFIG_LCD_LOGO)
 #include <bmp_logo.h>
index bd2e9c0c9bf5a569c1023ab258258937ed717c50..ae8ec26468f029cfd36cd3d17ba5b02210ac6041 100644 (file)
@@ -9,6 +9,8 @@
 #include <atmel_lcd.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <log.h>
+#include <part.h>
 #include <video.h>
 #include <asm/io.h>
 #include <asm/arch/gpio.h>
@@ -16,6 +18,7 @@
 #include <lcd.h>
 #include <bmp_layout.h>
 #include <atmel_lcdc.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index fb1525b478c4efd3f6f516ce08124f83986a05ae..67fed7f224a309701aadcac10364ed478c1df73d 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <dm.h>
 #include <backlight.h>
+#include <log.h>
 #include <asm/gpio.h>
 
 struct gpio_backlight_priv {
index 1d2eda084c87619cd3546da691e099185e08ee77..0888cb00197178cdf59fc295c3f1f8690b938bc8 100644 (file)
@@ -5,9 +5,11 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <video.h>
 #include <asm/arch/mbox.h>
 #include <asm/arch/msg.h>
+#include <asm/cache.h>
 
 static int bcm2835_video_probe(struct udevice *dev)
 {
index 3e3f0e2ce6b23ec1ae00cf6ba6dfb5ba18c46187..1c5270ff05ce92c407ce501806231028ca4d9d65 100644 (file)
@@ -8,7 +8,9 @@
 #include <errno.h>
 #include <i2c.h>
 #include <edid.h>
+#include <log.h>
 #include <video_bridge.h>
+#include <linux/delay.h>
 #include "../anx98xx-edp.h"
 
 #define DP_MAX_LINK_RATE               0x001
index 3c5bf7b659b007432e837608a0e3c72fce006b21..8399c6f74cf8a4a3dce6e3478387d805315447bb 100644 (file)
@@ -8,7 +8,9 @@
 #include <dm.h>
 #include <errno.h>
 #include <i2c.h>
+#include <log.h>
 #include <video_bridge.h>
+#include <linux/delay.h>
 #include <power/regulator.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index 59f0649646ea65440ef2ffc625f66d3f032bb198..4760f04108f7e46e6e183f11d580352aa63a8b0a 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <video_bridge.h>
 
 static int ptn3460_attach(struct udevice *dev)
index 5fecb4cfd565b439265bceb206f0606cd11eb158..389b02cdcba2c75a81b9a6cacd23fa66900dd075 100644 (file)
@@ -8,7 +8,9 @@
 #include <dm.h>
 #include <errno.h>
 #include <edid.h>
+#include <log.h>
 #include <video_bridge.h>
+#include <linux/delay.h>
 
 int video_bridge_set_backlight(struct udevice *dev, int percent)
 {
index c23421d25be7057556d542510cef875be7367c4c..8e8fe9d9b392439746f509bed63b2c622ae04d74 100644 (file)
@@ -7,8 +7,10 @@
 
 #include <common.h>
 #include <bios_emul.h>
+#include <bootstage.h>
 #include <dm.h>
 #include <init.h>
+#include <log.h>
 #include <vbe.h>
 #include <video.h>
 #include <asm/cpu.h>
@@ -18,6 +20,7 @@
 #include <asm/arch/cpu.h>
 #include <asm/arch/iomap.h>
 #include <asm/arch/pch.h>
+#include <linux/delay.h>
 #include "i915_reg.h"
 
 struct broadwell_igd_priv {
index e87c66d515fa524829e0658c06a7198b5dec8e38..2a72d23eb87b83b046a781a14fbcad345eb25ee6 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <bmp_layout.h>
+#include <log.h>
 #include <asm/io.h>
 
 vu_char  *vcxk_bws      = ((vu_char *) (CONFIG_SYS_VCXK_BASE));
index 5442bac4c6f3f294b8c9ac60855a035b04177ab6..6495e22b1aae8173fc92b9e1f92500d36b33a037 100644 (file)
  */
 
 #include <common.h>
+#include <command.h>
 #include <cpu_func.h>
 #include <env.h>
 #include <fdtdec.h>
 #include <gzip.h>
+#include <log.h>
 #include <version.h>
 #include <malloc.h>
 #include <video.h>
@@ -1710,7 +1712,8 @@ static void logo_black(void)
                        1);
 }
 
-static int do_clrlogo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_clrlogo(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        if (argc != 1)
                return cmd_usage(cmdtp);
index 6d7661db89d7e3020e84f171e2f3bee014cf24d1..5f7f03904b396e3a1cc0353419abfaff161d6b21 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <video.h>
 #include <video_console.h>
index 5fb68865ef4631adffba5be54598ed35ef6d2360..4984dda8477df7c9b0832464384726558bc04e5b 100644 (file)
  */
 
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 #include <memalign.h>
 #include <video_fb.h>
+#include <linux/delay.h>
 #include <linux/list.h>
 #include <linux/fb.h>
 
index bf74d6adf204053930c7d8c0a7251ca1dddc8724..c4fbb182944673f8616a336200a359d055aca7f8 100644 (file)
@@ -7,9 +7,11 @@
 
 #include <common.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <asm/io.h>
 #include <i2c.h>
 #include <media_bus_format.h>
+#include <linux/delay.h>
 #include "dw_hdmi.h"
 
 struct tmds_n_cts {
index 5dd75e7ec82c6d7d6f548597f5a3dbb9eb481e81..b7bfbb5e5011bf6302e569b05f487f59ea5096c3 100644 (file)
@@ -20,6 +20,8 @@
 #include <asm/arch/gpio.h>
 #include <dm/device-internal.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/iopoll.h>
 #include <video_bridge.h>
 
index 653cb4726521bffb2feedd990d29a8a8bb408517..47441a35a64fcfb9e2c0547892e0196974f9bcfe 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <dm.h>
 #include <efi_api.h>
+#include <log.h>
 #include <vbe.h>
 #include <video.h>
 
index 2781f6f55ba1abf79e3f0a3bc4f809f1d4d38169..749bde862e0db62dba07b57c457fbce2bd8f5b01 100644 (file)
@@ -10,6 +10,8 @@
 #include <common.h>
 #include <display.h>
 #include <fdtdec.h>
+#include <log.h>
+#include <linux/delay.h>
 #include <linux/libfdt.h>
 #include <malloc.h>
 #include <video_bridge.h>
index 802703750f4c52f3c1f086b0b0e04d5fcd932bc1..ae500a702804d0b3367f3860fb0d64e50d93bb6a 100644 (file)
@@ -7,6 +7,8 @@
 
 #include <config.h>
 #include <common.h>
+#include <log.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/dp_info.h>
index 8a8c846262b9cb9716a14522562affb7e8a391af..d5b13a6723f0f47366219bb72cd7d36b48d793e9 100644 (file)
@@ -12,6 +12,7 @@
 #include <div64.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <linux/libfdt.h>
 #include <panel.h>
 #include <video.h>
index ad5ef93e01f9e3e6be98b3dec85db27d32f67cd4..042aa9a5b9ebcbaf82fbe893255d2558d77a43fd 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 #include <fdtdec.h>
 #include <dm/devres.h>
index adf3d968b6d33d51d6ec703da5085ad02c8150cd..ab7d61afc88b45d9e9ee2bf43c6758a4fb729af9 100644 (file)
@@ -8,6 +8,8 @@
 
 #include <common.h>
 #include <lcd.h>
+#include <log.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <asm/arch/dsim.h>
 #include <asm/arch/mipi_dsim.h>
index 1b6e71dfaf853a8736811b8089793b7a2f395e5b..8111acd9a0b592c31b0ff2011baef92c3a0add76 100644 (file)
@@ -11,6 +11,7 @@
 #include <asm/arch/mipi_dsim.h>
 #include <asm/arch/power.h>
 #include <asm/arch/cpu.h>
+#include <linux/delay.h>
 
 #include "exynos_mipi_dsi_lowlevel.h"
 #include "exynos_mipi_dsi_common.h"
index 7bc4bc60418d228daa05406d72c8b41a085c1d73..5cbe50d4cbd2be61309de7a652f4d07e3dc8bb19 100644 (file)
@@ -7,7 +7,9 @@
  */
 #include <common.h>
 #include <errno.h>
+#include <log.h>
 #include <spi.h>
+#include <linux/delay.h>
 
 #define TAG_READ       0x80
 #define TAG_WRITE      0x00
index 076e9ea0193eb831975144f9faface1e1655d459..e9d05c93946a8d069abf75703eff1da323a26458 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <init.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <common.h>
 #include <dm.h>
index a57abd23f73b42ba117d6379f9a52738ffc6c899..c6c8df6a96e267b29406b8fb005573f8bb847ba8 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <malloc.h>
+#include <linux/delay.h>
 
 #include <asm/gpio.h>
 #include <errno.h>
index 0af7c2bf44a964cad3c38ea0d1d6c81f2fd8ebc4..f02fd13d28ca8bc573fef26ef69b4fc389d12e3d 100644 (file)
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <display.h>
 #include <dm.h>
+#include <log.h>
 #include <regmap.h>
 #include <video_osd.h>
 #include <asm/gpio.h>
index cbe1984e4f7579a3c20fb054b78a449a2dd2a85f..5908b23acc9b4b6f1e1257c371351455a2decf5a 100644 (file)
@@ -12,6 +12,8 @@
 
 /* #define DEBUG */
 #include <common.h>
+#include <log.h>
+#include <linux/delay.h>
 #include <linux/types.h>
 #include <linux/err.h>
 #include <asm/io.h>
index 5c7722962d7b448e42f42fa52ad79535cc5ab14d..c2f00bff18d278f2a9fb4284310f50cf0d91cb0c 100644 (file)
@@ -13,6 +13,8 @@
 /* #define DEBUG */
 
 #include <common.h>
+#include <log.h>
+#include <linux/delay.h>
 #include <linux/types.h>
 #include <linux/errno.h>
 #include <asm/io.h>
index c64be38e49267720e146cb4343be696b326d7496..4044473f99841b4c9309ec93b4ed2ed2814b16e3 100644 (file)
@@ -11,6 +11,9 @@
  */
 
 #include <common.h>
+#include <log.h>
+#include <part.h>
+#include <asm/cache.h>
 #include <linux/errno.h>
 #include <asm/global_data.h>
 #include <linux/string.h>
index 6b986e935838c785315f5b4ed6ddab87a52f26a3..4c57e311d163b67a116d4fc35e30b70e1de55872 100644 (file)
@@ -8,6 +8,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <pci_rom.h>
 #include <vbe.h>
 #include <asm/intel_regs.h>
@@ -16,6 +17,7 @@
 #include <asm/pci.h>
 #include <asm/arch/pch.h>
 #include <asm/arch/sandybridge.h>
+#include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 93aea05ff847322921468c0dac8af76de76a989b..a36bc2f06cb3d46cbcb0c760ad3a961f86a10d8e 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <spi.h>
+#include <linux/delay.h>
 
 static const unsigned char SEQ_USER_SETTING[] = {
        0xF0, 0x5A, 0x5A
index 997e854ef8f9c3c4cbfd0b23b8c2b6d656d75bc1..45df9c13474e23b8a12881f939fe5729cb55b896 100644 (file)
@@ -6,13 +6,16 @@
  */
 #include <common.h>
 #include <backlight.h>
+#include <command.h>
 #include <display.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/read.h>
 #include <dm/uclass-internal.h>
 #include <errno.h>
 #include <spi.h>
 #include <asm/gpio.h>
+#include <linux/delay.h>
 
 #define PWR_ON_DELAY_MSECS  120
 
@@ -208,8 +211,8 @@ static int lg4573_spi_startup(struct spi_slave *slave)
        return 0;
 }
 
-static int do_lgset(cmd_tbl_t *cmdtp, int flag, int argc,
-                      char * const argv[])
+static int do_lgset(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[])
 {
        struct spi_slave *slave;
        struct udevice *dev;
index 84fafe4341020a0d1934c3b07e77bbee691395f9..9bc4bbb85d39ad1d128474e7075c7609fec4412c 100644 (file)
@@ -14,6 +14,7 @@
 #include <display.h>
 #include <dm.h>
 #include <errno.h>
+#include <linux/delay.h>
 
 #include "axi.h"
 #include "logicore_dp_dpcd.h"
index 87a75a9ca2abbeb05f2e9c676ebdc274e0e66c2a..1e6da0e1e25fe4cf4bf22cba1b1b65b65e3446f9 100644 (file)
@@ -18,6 +18,7 @@
 #include <fdt_support.h>
 #include <clk.h>
 #include <dm/device_compat.h>
+#include <linux/delay.h>
 #include <linux/sizes.h>
 
 #define MALIDP_CORE_ID         0x0018
index 301c1f0df17964b7761c9f4ca08732c65a99ac37..04e435f913c7a1649ddaa5c5fe9e6a449a06bb59 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include <common.h>
+#include <linux/delay.h>
 
 #include <asm/io.h>
 #include <env.h>
@@ -79,7 +80,7 @@ static void gdc_sw_reset (void)
        GraphicDevice *dev = &mb862xx;
 
        HOST_WR_REG (GC_SRST, 0x1);
-       udelay (500);
+       udelay(500);
        video_hw_init ();
 }
 
@@ -222,9 +223,9 @@ unsigned int pci_video_init (void)
 
        /* Setup clocks and memory mode for Coral-P(A) */
        HOST_WR_REG(GC_CCF, CONFIG_SYS_MB862xx_CCF);
-       udelay (200);
+       udelay(200);
        HOST_WR_REG(GC_MMR, CONFIG_SYS_MB862xx_MMR);
-       udelay (100);
+       udelay(100);
        return dev->frameAdrs;
 }
 
index ae2e6288f3a3662fa721b07acae0636fac5305c1..7b2ff94eba585bacd949c1318c9ce5ebcedcee8d 100644 (file)
@@ -8,10 +8,12 @@
 #include <display.h>
 #include <dm.h>
 #include <edid.h>
+#include <log.h>
 #include <asm/io.h>
 #include <dw_hdmi.h>
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
+#include <linux/bitops.h>
 #include <power/regulator.h>
 #include <clk.h>
 #include <linux/delay.h>
index b13beb1f75af74fa8c86627cceb60015d28607b9..d507e59c0642e20327c09a81c62d0ffdd4ecbed2 100644 (file)
@@ -24,6 +24,7 @@
  * Bit 0 RW sw_reset_core: connects to IP's ~irstz. 1=Apply reset;
  *     0=Release from reset. Default 1.
  */
+#include <linux/bitops.h>
 #define HDMITX_TOP_SW_RESET                     (0x000)
 
 /*
index 8edf451f13f2f9793b2f8f054a5f628903f97357..b367276f23734b0421856491d20443cf43248258 100644 (file)
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <asm/io.h>
 #include <linux/bitfield.h>
+#include <linux/bitops.h>
 
 #include "meson_vpu.h"
 
index 39e8ec86395691d602cf1ded9f77d91448830afa..f6a5d1ac8ce0d847a22aedbf9c5954d3fd3f1082 100644 (file)
@@ -7,6 +7,7 @@
 #define __MESON_REGISTERS_H
 
 /* Shift all registers by 2 */
+#include <linux/bitops.h>
 #define _REG(reg)      ((reg) << 2)
 
 #define writel_bits(mask, val, addr) \
index 01bfa4bcb8d618fd83d7d19d856819e0092d3bd9..cd1e69040f75686c62656c7358504b7fcfd56da8 100644 (file)
@@ -9,7 +9,9 @@
 #include <common.h>
 #include <dm.h>
 #include <edid.h>
+#include <linux/bitops.h>
 #include "meson_vpu.h"
+#include <log.h>
 #include <linux/iopoll.h>
 #include <linux/math64.h>
 
index 89e859b02a76b335af74763b413b22e2d743d313..e7366dd2fdeaaee91041bf42ded707a677a53059 100644 (file)
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <edid.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <asm/io.h>
 #include "meson_vpu.h"
 
index ed47192bf639b93f2a9a17cbf59912a91a28cf84..4868839ff7df63026941a4874ef0a87e52dcebcb 100644 (file)
@@ -11,6 +11,8 @@
 #include <dm.h>
 #include <efi_loader.h>
 #include <fdt_support.h>
+#include <log.h>
+#include <part.h>
 #include <linux/sizes.h>
 #include <asm/arch/mem.h>
 #include <dm/device-internal.h>
index 8408c59eaa103c7caf375eceb90d6c276468f45c..c9808e1c63176a7e2c846ab13bb88ec73760fd0c 100644 (file)
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <dm.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 #include "meson_vpu.h"
 
index 3ff5b28ae2fd9206bbf63d21fedef9faa7642948..f3cb2bfb480c9611ae8bb322e05114051ae2d9e4 100644 (file)
@@ -7,8 +7,11 @@
 
 #include <common.h>
 #include <dm.h>
+#include <part.h>
 #include <video.h>
+#include <asm/cache.h>
 #include <dm/device_compat.h>
+#include <linux/delay.h>
 #include <linux/mbus.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
index a984443ef9d7c1222d3b01df5bb4a860b9220b81..9b42ca8d03f0560e186a5a47144d54fc7e9851b4 100644 (file)
@@ -7,8 +7,10 @@
  */
 #include <common.h>
 #include <env.h>
+#include <log.h>
 #include <malloc.h>
 #include <video_fb.h>
+#include <linux/delay.h>
 
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/clock.h>
index 12d00b468948d87084238a26848e3b7aabca0e17..6589a2a09d234dbd6b7d0718427083fe2c27192d 100644 (file)
@@ -8,7 +8,10 @@
 #include <clk.h>
 #include <dm.h>
 #include <env.h>
+#include <log.h>
+#include <asm/cache.h>
 #include <dm/device_compat.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <malloc.h>
 #include <video.h>
index 650ed0723932ebcae0af53c7c2b03c018d91540f..b1f2dd403ef21f993dce214e2f2d688af2a6a15f 100644 (file)
@@ -14,6 +14,7 @@
 #include <panel.h>
 #include <asm/gpio.h>
 #include <dm/device_compat.h>
+#include <linux/delay.h>
 #include <power/regulator.h>
 
 #define OTM8009A_BACKLIGHT_DEFAULT     240
index 742579aba71940bdcf991da560de801c27a15108..468a5703bdbd5acc2e76f48d25a3e64d80032848 100644 (file)
@@ -9,9 +9,11 @@
 #include <common.h>
 #include <dm.h>
 #include <backlight.h>
+#include <log.h>
 #include <malloc.h>
 #include <pwm.h>
 #include <asm/gpio.h>
+#include <linux/delay.h>
 #include <power/regulator.h>
 
 /**
index 92d6e3d4676ba3f0353fab5cb70f9f6285170183..67f5266164fa7b75f9c8f4d5ccf032b13bf8aef5 100644 (file)
@@ -11,6 +11,7 @@
 /************************************************************************/
 
 #include <common.h>
+#include <log.h>
 #include <asm/arch/pxa-regs.h>
 #include <asm/io.h>
 #include <lcd.h>
index 853dbc52d61268ef0ab6e74a2a690e53cc19fa73..9169280fb8bcba3a14c41ed4e604777724c1523b 100644 (file)
@@ -14,6 +14,7 @@
 #include <panel.h>
 #include <asm/gpio.h>
 #include <dm/device_compat.h>
+#include <linux/delay.h>
 #include <power/regulator.h>
 
 /*** Manufacturer Command Set ***/
index 51eb41540bc2a1f7b8bab9d86ef90e4c76854ce5..f835f4d517a521cf5518892b3321210544c9cf1a 100644 (file)
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <dw_hdmi.h>
 #include <edid.h>
+#include <log.h>
 #include <malloc.h>
 #include <regmap.h>
 #include <syscon.h>
index 71d3faf169dec23b4e9801a91736ddcbac3a1b80..b232ff0b76b26f3938e81b5769e31e6f47cb9224 100644 (file)
@@ -8,6 +8,7 @@
 #include <clk.h>
 #include <display.h>
 #include <dm.h>
+#include <log.h>
 #include <panel.h>
 #include <regmap.h>
 #include "rk_mipi.h"
index 0f91dab1f255f4bb897085c3b9337d7176e2b1b7..25ef25b870b03b77e730d3c7f34a151f5055979b 100644 (file)
@@ -15,6 +15,7 @@
 #include <asm/arch-rockchip/clock.h>
 #include <asm/arch-rockchip/grf_rk3288.h>
 #include <asm/arch-rockchip/hardware.h>
+#include <linux/delay.h>
 #include "rk_vop.h"
 
 DECLARE_GLOBAL_DATA_PTR;
index cfaa37797eda6f1f3bd70a5cf21a64999e0e1083..113708d97e5af0e6d0abef03664d760f4c14844c 100644 (file)
@@ -8,6 +8,7 @@
 #include <clk.h>
 #include <display.h>
 #include <dm.h>
+#include <log.h>
 #include <panel.h>
 #include <regmap.h>
 #include "rk_mipi.h"
index 1d5b3931a65bfa166d3c96d6a9eaa94cd09c37a9..d5a7aa8ac1b3108adc2762f09ec031190f1ffb6a 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <display.h>
 #include <dm.h>
+#include <log.h>
 #include <regmap.h>
 #include <video.h>
 #include <asm/arch-rockchip/hardware.h>
index 99b16cd95edc021fe96f9481d31807a3497340c9..92188be92757662541e1d100dfd4b97069d85b99 100644 (file)
@@ -9,6 +9,7 @@
 #include <display.h>
 #include <dm.h>
 #include <edid.h>
+#include <log.h>
 #include <malloc.h>
 #include <panel.h>
 #include <regmap.h>
@@ -20,6 +21,7 @@
 #include <asm/arch-rockchip/grf_rk3288.h>
 #include <asm/arch-rockchip/hardware.h>
 #include <dt-bindings/clock/rk3288-cru.h>
+#include <linux/delay.h>
 
 #define MAX_CR_LOOP 5
 #define MAX_EQ_LOOP 5
index 5b44a7e8c97d76a756d38d86bae651ec956cf27e..f27cdf8ed4b34886b108ded718c3a0e10efadc61 100644 (file)
@@ -11,6 +11,7 @@
 #include <dm.h>
 #include <dw_hdmi.h>
 #include <edid.h>
+#include <log.h>
 #include <regmap.h>
 #include <syscon.h>
 #include <asm/gpio.h>
index c92c2e3c6c0eaaa9de020d96ec3b60b3bb4386d0..04f795a213c0960344419ebd72271739dbda1a0c 100644 (file)
@@ -7,6 +7,7 @@
 #include <display.h>
 #include <dm.h>
 #include <edid.h>
+#include <log.h>
 #include <panel.h>
 #include <regmap.h>
 #include <syscon.h>
index f1c21bb8d7e436d1743f77675afbaf783f59df4e..f811913ce5e2c388c19c577f9747487804393d5f 100644 (file)
@@ -8,6 +8,7 @@
 #include <clk.h>
 #include <display.h>
 #include <dm.h>
+#include <log.h>
 #include <panel.h>
 #include <regmap.h>
 #include "rk_mipi.h"
index e1bd656beed5359f49f70bcfa59cfbecccf7642a..9032eb430e7f63a2c0661cf4edb7bc6d98c77ed9 100644 (file)
@@ -9,6 +9,7 @@
 #include <display.h>
 #include <dm.h>
 #include <edid.h>
+#include <log.h>
 #include <regmap.h>
 #include <syscon.h>
 #include <video.h>
@@ -19,6 +20,7 @@
 #include <asm/arch-rockchip/vop_rk3288.h>
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
+#include <linux/bitops.h>
 #include <linux/err.h>
 #include <power/regulator.h>
 #include "rk_vop.h"
index 9c7b5f6ab3808b6ed97f00f90d417aef86a80db9..497258f3de92b68d5b04877dc781cb91706cc7f4 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <asm/arch/mipi_dsim.h>
+#include <linux/delay.h>
 
 #include "exynos/exynos_mipi_dsi_lowlevel.h"
 #include "exynos/exynos_mipi_dsi_common.h"
index 1196e6c671771d849b35b041da71a4ea574412af..20248e660750604577aa50d03b10f39c1127de49 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <video.h>
 #include <asm/sdl.h>
 #include <asm/state.h>
index 60075a6cf325d34bf3c0618248017193ff9591ad..54f0f88b4c9098f7eb1dbcebf7a2fbbb2276b5b0 100644 (file)
@@ -17,6 +17,7 @@
 #include <malloc.h>
 #include <asm/gpio.h>
 #include <spi.h>
+#include <linux/delay.h>
 
 struct scf0403_cmd {
        u16 cmd;
index 5722811117597c21a964b7f4c87504d80d00dfb8..6c624c376991aeb7f9a6de003b75a88ebaccd79f 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <backlight.h>
 #include <dm.h>
+#include <log.h>
 #include <panel.h>
 #include <asm/gpio.h>
 #include <power/regulator.h>
index 1679d20002434326b5ffe91576e8e8de2c218f32..0c5b40c30b8d015d0f58fa27f8165e16fc5142e0 100644 (file)
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <fdtdec.h>
 #include <fdt_support.h>
+#include <log.h>
 #include <video.h>
 
 static int simple_video_probe(struct udevice *dev)
index 83566bc6d66736789dd43bd275531b2710122282..4cdcbe7755ae86811b46ebd18acec1e663548c26 100644 (file)
@@ -14,6 +14,7 @@
 #include <mipi_display.h>
 #include <asm/arch/gpio.h>
 #include <asm/gpio.h>
+#include <linux/delay.h>
 
 #include "videomodes.h"
 #include "ssd2828.h"
index ded03b109c90fb911e1e96fac9ded79f79ccd36d..04796435f117dcf39ca205302087d4421ab6650c 100644 (file)
@@ -12,6 +12,7 @@
 #include <clk.h>
 #include <dm.h>
 #include <dsi_host.h>
+#include <log.h>
 #include <mipi_dsi.h>
 #include <panel.h>
 #include <reset.h>
@@ -22,6 +23,7 @@
 #include <dm/device-internal.h>
 #include <dm/device_compat.h>
 #include <dm/lists.h>
+#include <linux/bitops.h>
 #include <linux/iopoll.h>
 #include <power/regulator.h>
 
index be7e9bff01bce275a4451e96793a8d0dea524efa..2f3427a32ee68aae3a39314bfdcca86e8ee140ac 100644 (file)
@@ -9,6 +9,7 @@
 #include <clk.h>
 #include <display.h>
 #include <dm.h>
+#include <log.h>
 #include <panel.h>
 #include <reset.h>
 #include <video.h>
@@ -17,6 +18,7 @@
 #include <asm/arch/gpio.h>
 #include <dm/device-internal.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
 
 struct stm32_ltdc_priv {
        void __iomem *regs;
index 4cf3a0eb751264cd869c37ac8a2a043bf813566b..73033c3b858968ef242d3704bb6d8291f4dfd0e5 100644 (file)
@@ -8,6 +8,8 @@
  */
 
 #include <common.h>
+#include <log.h>
+#include <linux/delay.h>
 
 #include <asm/arch/clock.h>
 #include <asm/arch/lcdc.h>
index c6e7a3533886db3c712b4e5df29320dab36e254a..b657e163f06abbeee5b5585c02b63a2876129865 100644 (file)
@@ -12,6 +12,8 @@
 #include <efi_loader.h>
 #include <fdtdec.h>
 #include <fdt_support.h>
+#include <log.h>
+#include <part.h>
 #include <video.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
@@ -19,6 +21,7 @@
 #include <asm/arch/display2.h>
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
+#include <linux/bitops.h>
 #include "simplefb_common.h"
 
 DECLARE_GLOBAL_DATA_PTR;
index c4c1d1b8d3daba25577ecb0471f3c67703136e5c..f52aba4d21c098aab5c2c5b43e98583cd36ccec5 100644 (file)
@@ -11,6 +11,7 @@
 #include <efi_loader.h>
 #include <init.h>
 #include <time.h>
+#include <linux/delay.h>
 
 #include <asm/arch/clock.h>
 #include <asm/arch/display.h>
index c87c919a52a148233902fce0ea06d6f32b4c6721..01d4b7a11c96026a87b3b271cc8ea4cd431945b1 100644 (file)
 #include <dm.h>
 #include <dw_hdmi.h>
 #include <edid.h>
+#include <log.h>
 #include <time.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/lcdc.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 struct sunxi_dw_hdmi_priv {
        struct dw_hdmi hdmi;
index 619f5892f5862ad24b18ec9bb01dc3434d0f4ebd..49bf083a8d14bd475473bd1e7034dba5645400fb 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <display.h>
+#include <log.h>
 #include <video_bridge.h>
 #include <backlight.h>
 #include <dm.h>
index 01ed6193ea4b850ebf2a8a4829790449f87eb61a..191cda3ce763a40b65d0642b6996ed477bff959a 100644 (file)
@@ -9,6 +9,8 @@
 #include <dm.h>
 #include <display.h>
 #include <i2c.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 
 /*
  * TDA19988 uses paged registers. We encode the page# in the upper
index f4bae9fc3694743878eeaf966bb626d29c7818a6..1208d9128682e083452da34a3ff0d4b8c8e02429 100644 (file)
@@ -6,9 +6,12 @@
 #include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <panel.h>
+#include <part.h>
 #include <pwm.h>
 #include <video.h>
+#include <asm/cache.h>
 #include <asm/system.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
index f08f117cf8d6108c2720edfcbeee771829a5606f..6c2793226395acb2e131fd2cac07aceb91505060 100644 (file)
@@ -6,12 +6,15 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
 #include <dm.h>
 #include <edid.h>
 #include <errno.h>
 #include <display.h>
 #include <edid.h>
 #include <lcd.h>
+#include <log.h>
+#include <part.h>
 #include <video.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
@@ -19,6 +22,7 @@
 #include <asm/arch/pwm.h>
 #include <asm/arch-tegra/dc.h>
 #include <dm/uclass-internal.h>
+#include <linux/delay.h>
 #include "displayport.h"
 
 /* return in 1000ths of a Hertz */
index 73e0651fb9c120ae497ba54acc92e11542609f29..59758eb93614f1717bddee5bee2e0f7736e5b6d3 100644 (file)
@@ -9,9 +9,11 @@
 #include <dm.h>
 #include <div64.h>
 #include <errno.h>
+#include <log.h>
 #include <video_bridge.h>
 #include <asm/io.h>
 #include <asm/arch-tegra/dc.h>
+#include <linux/delay.h>
 #include "display.h"
 #include "edid.h"
 #include "sor.h"
index 8dc3df61aad14c88dce594740af221f0486478e0..49f33c15b5c69920af046f13c0c3ffb87f0488b7 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <panel.h>
 #include <syscon.h>
@@ -13,6 +14,7 @@
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch-tegra/dc.h>
+#include <linux/delay.h>
 #include "displayport.h"
 #include "sor.h"
 #include <linux/err.h>
index 8e0fc7f3ecf1cb90875fadda2f0445cc9580b934..d30e6db6f6fe63389029b55769a2c546b4fae5d0 100644 (file)
@@ -8,6 +8,8 @@
  */
 
 #include <common.h>
+#include <command.h>
+#include <log.h>
 #include <linux/ctype.h>
 #include <dm.h>
 #include <video.h>
@@ -623,7 +625,7 @@ void vidconsole_position_cursor(struct udevice *dev, unsigned col, unsigned row)
        priv->ycur = min_t(short, row, vid_priv->ysize - 1);
 }
 
-static int do_video_setcursor(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_video_setcursor(struct cmd_tbl *cmdtp, int flag, int argc,
                              char *const argv[])
 {
        unsigned int col, row;
@@ -641,7 +643,7 @@ static int do_video_setcursor(cmd_tbl_t *cmdtp, int flag, int argc,
        return 0;
 }
 
-static int do_video_puts(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_video_puts(struct cmd_tbl *cmdtp, int flag, int argc,
                         char *const argv[])
 {
        struct udevice *dev;
index 3d658e61d7c6ccba03164ca239b6962a85478fb2..bf396d109186c8ca06d07937d5449afff01b4127 100644 (file)
@@ -6,11 +6,13 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <mapmem.h>
 #include <stdio_dev.h>
 #include <video.h>
 #include <video_console.h>
+#include <asm/cache.h>
 #include <dm/lists.h>
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
index 876822802949505de2315a014c1d8769af9d4bc3..eb9636541d7c565f99c026c9142745c22e3e256b 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <bmp_layout.h>
 #include <dm.h>
+#include <log.h>
 #include <mapmem.h>
 #include <splash.h>
 #include <video.h>
index 23f281cd6eb2f9af135ba69097773c68313e334f..2636cbedfe27d98de1ffe107b12e9431629b144b 100644 (file)
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <virtio_types.h>
 #include <virtio.h>
 #include <dm/lists.h>
+#include <linux/bug.h>
 
 static const char *const virtio_drv_name[VIRTIO_ID_MAX_NUM] = {
        [VIRTIO_ID_NET]         = VIRTIO_NET_DRV_NAME,
index e793e34e836640c283ecb524d4dfe1e71b0fa50a..992118c60758470c05c19cb3ac4b5ff1d67a4c00 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <blk.h>
 #include <dm.h>
+#include <part.h>
 #include <virtio_types.h>
 #include <virtio.h>
 #include <virtio_ring.h>
index 60ece133abe51eeb9bce6c03c95c682a46e678c9..b951ea3257b19af9cbfefcd13a795bf986bfda65 100644 (file)
@@ -9,9 +9,11 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <virtio_types.h>
 #include <virtio.h>
 #include <virtio_ring.h>
+#include <linux/bug.h>
 #include <linux/compat.h>
 #include <linux/err.h>
 #include <linux/io.h>
index b3408828a5926d07d8063e035764c30fdbc348ae..b446674cccef8913df1f6ee4ce24975687b3a11e 100644 (file)
@@ -12,6 +12,7 @@
 /* Control registers */
 
 /* Magic value ("virt" string) - Read Only */
+#include <linux/bitops.h>
 #define VIRTIO_MMIO_MAGIC_VALUE                0x000
 
 /* Virtio device version - Read Only */
index d9be2601bbab450afcb68f3331ed4ce1708a7065..fa7f2429f1f18d9a850d52e2c9c59314037c3b41 100644 (file)
@@ -8,10 +8,12 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <virtio_types.h>
 #include <virtio.h>
 #include <virtio_ring.h>
 #include <dm/device.h>
+#include <linux/bug.h>
 #include <linux/compat.h>
 #include <linux/err.h>
 #include <linux/io.h>
index 4673f4ab550a68d33bd26b8651e7bb7b14a0e980..2e5bbade00219cc0d22b4b879cdecf1a6e6fa266 100644 (file)
@@ -8,11 +8,14 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <virtio_types.h>
 #include <virtio.h>
 #include <virtio_ring.h>
 #include <dm/device.h>
+#include <linux/bug.h>
 #include <linux/compat.h>
+#include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/io.h>
 #include "virtio_pci.h"
index 45c48a927a5f08ce647bdeb8f6a7ac0b2256ced0..7f1cbc59329ef3b7b14e257ca4eb86b03dea5b72 100644 (file)
@@ -8,10 +8,12 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <virtio_types.h>
 #include <virtio.h>
 #include <virtio_ring.h>
+#include <linux/bug.h>
 #include <linux/compat.h>
 
 int virtqueue_add(struct virtqueue *vq, struct virtio_sg *sgs[],
index 4edffa6f31aede5615932d0c54fec00c7c6b3086..fc3e19cfaeebd31cc9f5c3b8b3bf3504d05bd11d 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <rng.h>
 #include <virtio_types.h>
 #include <virtio.h>
index 61f6a9600831974709a420c8fb784d1be9379d6f..2a2abb9d499c621ded216a6309cafceb879d5697 100644 (file)
@@ -10,6 +10,7 @@
 #include <virtio_types.h>
 #include <virtio.h>
 #include <virtio_ring.h>
+#include <linux/bug.h>
 #include <linux/compat.h>
 #include <linux/err.h>
 #include <linux/io.h>
index 7b0579344c838fd89d5a8b72a07b434124c147af..d515b4c536607c4199664259d7bc60a93697c37a 100644 (file)
@@ -12,6 +12,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <w1.h>
 #include <w1-eeprom.h>
 
index 08715c6a666a431550644cfaf0cc014e712deeba..5bf08653a90225223c047f3a75d5b64540793b74 100644 (file)
@@ -21,6 +21,8 @@
 #include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/io.h>
 #include <w1.h>
 
index 5e5d6b3f6c1500d782895c1a6f43f6b2e0c3e493..45ad47a5d6bdb6e5c57834c1ff676be8b3824d89 100644 (file)
@@ -9,7 +9,9 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <w1.h>
+#include <linux/delay.h>
 
 #include <asm/gpio.h>
 
index 042b3b5ce0a026156c4a6b49056e1a221fea8e62..9478c93e9b0c9aecefdc45fd01f3bb15efe71ed6 100644 (file)
@@ -12,6 +12,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <w1.h>
 #include <w1-eeprom.h>
 
index fe2f6be5a74dbe1c7326c42a4f602e3c6eeff93c..7e11465a570c48dbffa90de0f0ddc9f73bbeaed8 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <wdt.h>
 #include <asm/io.h>
 #include <asm/arch/wdt.h>
index 48433cc1589a62680b1fb866fd7c5d03ccb0b185..18756e34dfab0293b4449f3a9af6ce4e79536c4d 100644 (file)
@@ -14,6 +14,7 @@
  * write to this register. Inform Linux to it too
  */
 
+#include <log.h>
 #include <asm/io.h>
 #include <asm/arch/at91_wdt.h>
 #include <common.h>
index 9f14e7d77745219e205ee88641b539dd27c1cba5..ee77f49a9445011736f0d7be1ef568e4b6c9b1d0 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <wdt.h>
 #include <clk.h>
 #include <asm/io.h>
index 5bf02605a884c9432e61e665310e189d70173822..2abd5524f61d5347329c0841461cdb60c27fa7dd 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <wdt.h>
 #include <clk.h>
 #include <div64.h>
index 1024a04596ff291407d02c5a904a82fbf816fcc1..12f09a7a3920694e6709afb5fbd58aaf8badc503 100644 (file)
@@ -10,6 +10,7 @@
 #include <wdt.h>
 #include <asm/io.h>
 #include <asm/utils.h>
+#include <linux/bitops.h>
 
 #define DW_WDT_CR      0x00
 #define DW_WDT_TORR    0x04
index 076d801f5d4e567931b49edc5e8aa94af3bad64e..6aed41642de5ff4097450ad805f971017fc47c09 100644 (file)
@@ -14,6 +14,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <watchdog.h>
 #include <asm/io.h>
 #include <faraday/ftwdt010_wdt.h>
index 38866141e4a96f81c63a1ea4b6cf6d27c9a212aa..1cd8866ef8d83317f08747b9a2bf693d687d2942 100644 (file)
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <dm.h>
 #include <wdt.h>
+#include <linux/bitops.h>
 #include <linux/io.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index b3c597e1d03621b72e95a28582902cc3e81b0971..a636cff354d8594ab06ed2df9293b0606890dc46 100644 (file)
@@ -11,6 +11,7 @@
 #include <hang.h>
 #include <wdt.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 #define MTK_WDT_MODE                   0x00
 #define MTK_WDT_LENGTH                 0x04
index 5199d914edd9d2d5e2c5036c3d649ef0662ea80c..ed8b2199c292ae3ac59365e1d556acc0050bdca8 100644 (file)
@@ -37,6 +37,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <watchdog.h>
 #include <asm/arch/hardware.h>
 #include <asm/io.h>
index 885821d562ea1ae49eec315a33a6b22144648081..d33e2ac3dc19005dd045df17df40e262a47b9d94 100644 (file)
@@ -15,7 +15,9 @@
 #include <common.h>
 #include <dm.h>
 #include <clk.h>
+#include <log.h>
 #include <wdt.h>
+#include <linux/bitops.h>
 #include <linux/kernel.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
index 65fd2384f125404e92005df0898a7c40260816cf..23fef2147f8f43786181ad23d8aa8e064adfcf26 100644 (file)
@@ -5,6 +5,7 @@
  * Copyright 2019 NXP
  */
 
+#include <log.h>
 #include <asm/io.h>
 #include <common.h>
 #include <clk.h>
index 8093d0a9f467b68ddb25cee1982126944449e5ae..2d8bfc09a0d7b3c83a3fe64a9bb5c9c16d74289c 100644 (file)
@@ -6,9 +6,11 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <log.h>
 #include <syscon.h>
 #include <wdt.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 #include <linux/iopoll.h>
 
 /* IWDG registers */
index ba265cf223d8c5b07bd792437a64e8314a5da006..358a9b90fddbd6daa2abd7618ce81d5d43995c06 100644 (file)
@@ -4,6 +4,7 @@
  */
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <wdt.h>
 #include <div64.h>
 #include <asm/scu.h>
index 4cdb7bd64cdf4267628fb869e244a7f5df245d19..e632f077f342bb5e279adfd12348639bcd831bc7 100644 (file)
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <hang.h>
+#include <log.h>
 #include <time.h>
 #include <wdt.h>
 #include <dm/device-internal.h>
index 5580764da7ce8d88fe1a6f8c65af28668f94447b..ea4311c8ce1a9631e313a66b55cd49dd8f22822f 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <wdt.h>
 #include <linux/err.h>
 #include <linux/io.h>
index ed94e83ec1e81b96426edfea153b40bd52ae27c4..ca7fef682b72c233c6deb4cd53dc87d25041740a 100644 (file)
@@ -604,6 +604,13 @@ config DELAY_ENVIRONMENT
          later by U-Boot code. With CONFIG_OF_CONTROL this is instead
          controlled by the value of /config/load-environment.
 
+config ENV_ACCESS_IGNORE_FORCE
+       bool "Block forced environment operations"
+       default n
+       help
+         If defined, don't allow the -f switch to env set override variable
+         access flags.
+
 if SPL_ENV_SUPPORT
 config SPL_ENV_IS_NOWHERE
        bool "SPL Environment is not stored"
index 1fd1bd01d3bb159aa1c4bcad1d317996b658231b..088b2aebb42c531b3a026320e60a502d250342ba 100644 (file)
@@ -8,9 +8,11 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
 #include <command.h>
 #include <env.h>
 #include <env_internal.h>
+#include <log.h>
 #include <sort.h>
 #include <linux/stddef.h>
 #include <search.h>
index 9237bb9c742a5242940cd6248751bc5d4eef86fa..dcc25c030b239944ccea2c05e4ed4a93b1ecdcc7 100644 (file)
--- a/env/env.c
+++ b/env/env.c
@@ -7,6 +7,9 @@
 #include <common.h>
 #include <env.h>
 #include <env_internal.h>
+#include <log.h>
+#include <linux/bitops.h>
+#include <linux/bug.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 911e19c6d3d7e9f54fdbe3b634b2c6d4f4954769..8e90bb71b75681a14e3240bd3508576ef3863e32 100644 (file)
@@ -19,6 +19,7 @@
  */
 
 #include <common.h>
+#include <part.h>
 
 #include <command.h>
 #include <env.h>
@@ -45,7 +46,7 @@ static int env_ext4_save(void)
 {
        env_t   env_new;
        struct blk_desc *dev_desc = NULL;
-       disk_partition_t info;
+       struct disk_partition info;
        int dev, part;
        int err;
        const char *ifname = env_ext4_get_intf();
@@ -87,7 +88,7 @@ static int env_ext4_load(void)
 {
        ALLOC_CACHE_ALIGN_BUFFER(char, buf, CONFIG_ENV_SIZE);
        struct blk_desc *dev_desc = NULL;
-       disk_partition_t info;
+       struct disk_partition info;
        int dev, part;
        int err;
        loff_t off;
index cf2e5e2b26e90b1f05bcf70a98c7d70cdaff6edf..35a1955e634330e6b5bb5160b809b5bec20f4a66 100644 (file)
--- a/env/fat.c
+++ b/env/fat.c
@@ -7,17 +7,18 @@
  */
 
 #include <common.h>
-
 #include <command.h>
 #include <env.h>
 #include <env_internal.h>
-#include <linux/stddef.h>
+#include <part.h>
 #include <malloc.h>
 #include <memalign.h>
 #include <search.h>
 #include <errno.h>
 #include <fat.h>
 #include <mmc.h>
+#include <asm/cache.h>
+#include <linux/stddef.h>
 
 #ifdef CONFIG_SPL_BUILD
 /* TODO(sjg@chromium.org): Figure out why this is needed */
@@ -32,7 +33,7 @@ static int env_fat_save(void)
 {
        env_t __aligned(ARCH_DMA_MINALIGN) env_new;
        struct blk_desc *dev_desc = NULL;
-       disk_partition_t info;
+       struct disk_partition info;
        int dev, part;
        int err;
        loff_t size;
@@ -78,7 +79,7 @@ static int env_fat_load(void)
 {
        ALLOC_CACHE_ALIGN_BUFFER(char, buf, CONFIG_ENV_SIZE);
        struct blk_desc *dev_desc = NULL;
-       disk_partition_t info;
+       struct disk_partition info;
        int dev, part;
        int err;
 
index e05f7ef74b9ba0de90c9e92f38ab83dd0b7e6bf9..3198147c380834e8560347e271ef8122f74ccd92 100644 (file)
@@ -14,6 +14,7 @@
 #include <env.h>
 #include <env_internal.h>
 #include <flash.h>
+#include <log.h>
 #include <linux/stddef.h>
 #include <malloc.h>
 #include <search.h>
index 251ad07d7c08f2a309667e986c5a662008c3666f..a8b661db80af45766811d7620c1b5b5d6dca23e7 100644 (file)
--- a/env/mmc.c
+++ b/env/mmc.c
@@ -27,7 +27,7 @@ DECLARE_GLOBAL_DATA_PTR;
 #if CONFIG_IS_ENABLED(OF_CONTROL)
 static inline int mmc_offset_try_partition(const char *str, s64 *val)
 {
-       disk_partition_t info;
+       struct disk_partition info;
        struct blk_desc *desc;
        int len, i, ret;
 
index 64c57f2cdf98661e04d577197c131f9279d0aa3f..23de5a3495b9a40227b41b2d1b4a2387bd077929 100644 (file)
--- a/env/sf.c
+++ b/env/sf.c
 #include <dm.h>
 #include <env.h>
 #include <env_internal.h>
+#include <flash.h>
 #include <malloc.h>
 #include <spi.h>
 #include <spi_flash.h>
 #include <search.h>
 #include <errno.h>
+#include <uuid.h>
+#include <asm/cache.h>
 #include <dm/device-internal.h>
 #include <u-boot/crc.h>
 
index e7523786b41dbc21b8fa2545baf092d621593d58..d586174ce8c92a820f45f6153e9dcc0b879e93bf 100644 (file)
@@ -24,7 +24,7 @@ void  test_dump_sig(struct api_signature *);
 
 static char buf[BUF_SZ];
 
-int main(int argc, char * const argv[])
+int main(int argc, char *const argv[])
 {
        int rv = 0, h, i, j, devs_no;
        struct api_signature *sig = NULL;
index 769dcc7038523b464c6ff0aa0a2b430f042a53cf..3aa222866ff50bbf5f6f37866348e282b30659af 100644 (file)
@@ -10,7 +10,9 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <hang.h>
+#include <linux/delay.h>
 #include <linux/types.h>
 #include <api_public.h>
 
@@ -31,7 +33,7 @@ void __udelay(unsigned long usec)
        ub_udelay(usec);
 }
 
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        ub_reset();
        return 0;
index b7bd243730bb0ce69ab8701dbfaec0566a849a00..9c74f4994b95422159c0bcd5c49fc6cd04c2e18a 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <exports.h>
 #include <spi.h>
+#include <linux/delay.h>
 
 #define CMD_ID    0x9f
 #define CMD_STAT  0xd7
@@ -115,7 +116,7 @@ static char *getline(void)
        }
 }
 
-int atmel_df_pow2(int argc, char * const argv[])
+int atmel_df_pow2(int argc, char *const argv[])
 {
        /* Print the ABI version */
        app_startup(argv);
index 1f61bb477720dd13394b31b18aa928ca428c4a51..263cd9ca079da8d4a16542eda8d3952507b32335 100644 (file)
@@ -7,7 +7,7 @@
 #include <common.h>
 #include <exports.h>
 
-int hello_world (int argc, char * const argv[])
+int hello_world(int argc, char *const argv[])
 {
        int i;
 
index 5ffefc8f36bf0b47231dc8572718f6e37b8fb448..bf7e93064309f2ef6b8fbf8bedc133da0a9b01b1 100644 (file)
@@ -12,6 +12,7 @@
 
 #include <common.h>
 #include <exports.h>
+#include <linux/delay.h>
 #include "../drivers/net/smc91111.h"
 
 #ifndef SMC91111_EEPROM_INIT
@@ -31,7 +32,7 @@ void print_MAC (struct eth_device *dev);
 int read_eeprom_reg (struct eth_device *dev, int reg);
 void print_macaddr (struct eth_device *dev);
 
-int smc91111_eeprom (int argc, char * const argv[])
+int smc91111_eeprom(int argc, char *const argv[])
 {
        int c, i, j, done, line, reg, value, start, what;
        char input[50];
@@ -237,7 +238,7 @@ void copy_from_eeprom (struct eth_device *dev)
                CTL_RELOAD, CTL_REG);
        i = 100;
        while ((SMC_inw (dev, CTL_REG) & CTL_RELOAD) && --i)
-               udelay (100);
+               udelay(100);
        if (i == 0) {
                printf ("Timeout Refreshing EEPROM registers\n");
        } else {
@@ -318,7 +319,7 @@ int read_eeprom_reg (struct eth_device *dev, int reg)
                CTL_RELOAD, CTL_REG);
        timeout = 100;
        while ((SMC_inw (dev, CTL_REG) & CTL_RELOAD) && --timeout)
-               udelay (100);
+               udelay(100);
        if (timeout == 0) {
                printf ("Timeout Reading EEPROM register %02x\n", reg);
                return 0;
@@ -341,7 +342,7 @@ int write_eeprom_reg (struct eth_device *dev, int value, int reg)
                CTL_STORE, CTL_REG);
        timeout = 100;
        while ((SMC_inw (dev, CTL_REG) & CTL_STORE) && --timeout)
-               udelay (100);
+               udelay(100);
        if (timeout == 0) {
                printf ("Timeout Writing EEPROM register %02x\n", reg);
                return 0;
index 270588bcf5ea66d4bb2ba65785dbb6b6e1a37c2a..9bd9a6efa30c55518bca310eff6ed8f6f30036df 100644 (file)
@@ -17,6 +17,7 @@
 #include <common.h>
 #include <console.h>
 #include <exports.h>
+#include <net.h>
 #include <linux/ctype.h>
 #include <linux/types.h>
 #include "../drivers/net/smc911x.h"
@@ -465,7 +466,7 @@ static char *getline(void)
 /**
  *     smc911x_eeprom - our application's main() function
  */
-int smc911x_eeprom(int argc, char * const argv[])
+int smc911x_eeprom(int argc, char *const argv[])
 {
        /* Avoid initializing on stack as gcc likes to call memset() */
        struct eth_device dev;
index 0827bde35e581b27b9b7d081fef35ae296c4f698..5fb460454f23a9d629efeca5a7a78a78701893fb 100644 (file)
@@ -2,6 +2,8 @@
 #include <exports.h>
 #include <linux/compiler.h>
 
+struct cmd_tbl;
+
 #define FO(x) offsetof(struct jt_funcs, x)
 
 #if defined(CONFIG_X86)
index cb7e18274221463528149ea9ad4c7569e2c21031..de16217d0dd35d1edf667b9b458a567b0c6804d8 100644 (file)
@@ -8,6 +8,7 @@
 #include "btrfs.h"
 #include <config.h>
 #include <malloc.h>
+#include <uuid.h>
 #include <linux/time.h>
 
 struct btrfs_info btrfs_info;
@@ -74,7 +75,8 @@ static int readdir_callback(const struct btrfs_root *root,
        return 0;
 }
 
-int btrfs_probe(struct blk_desc *fs_dev_desc, disk_partition_t *fs_partition)
+int btrfs_probe(struct blk_desc *fs_dev_desc,
+               struct disk_partition *fs_partition)
 {
        btrfs_blk_desc = fs_dev_desc;
        btrfs_part_info = fs_partition;
index 986d078679784bd3e143c834e96ebba8ad15a930..25a8cf6a8792873eb1cfcd55c77288fe3199540d 100644 (file)
@@ -36,7 +36,7 @@ static inline u64 btrfs_name_hash(const char *name, int len)
 
 /* dev.c */
 extern struct blk_desc *btrfs_blk_desc;
-extern disk_partition_t *btrfs_part_info;
+extern struct disk_partition *btrfs_part_info;
 
 int btrfs_devread(u64, int, void *);
 
index 0c9a659f8fffc1036d9b6673190ef0e6e9728dab..2e5be6506721871f5464f18a4d618a8d0f8669a7 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "btrfs.h"
+#include <log.h>
 #include <malloc.h>
 
 struct chunk_map_item {
index b1884fc15ee000110fa03c7b73767a4db8e50697..59e4a94cb2e5ec6a813feab746c7fec900f6472c 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "btrfs.h"
+#include <log.h>
 #include <malloc.h>
 #include <linux/lzo.h>
 #include <linux/zstd.h>
index 7fae383f1509b3d079f082cc841dbbab153846d9..28f98d43ada42971165b4c048b48eba75d812cbb 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "btrfs.h"
+#include <log.h>
 #include <malloc.h>
 #include <memalign.h>
 
index ada3800f1e1835850c409f8f4eb49649929b47de..1e5b83235ad5f8674857fc2ec8e76149355b1620 100644 (file)
@@ -6,11 +6,12 @@
  */
 
 #include <common.h>
+#include <blk.h>
 #include <compiler.h>
 #include <fs_internal.h>
 
 struct blk_desc *btrfs_blk_desc;
-disk_partition_t *btrfs_part_info;
+struct disk_partition *btrfs_part_info;
 
 int btrfs_devread(u64 address, int byte_len, void *buf)
 {
index b693a073fc0b9106719ca9fecca33125778a2c95..913a4d402e91d30ca19dc0b9a7bc6ff8d43c5f2b 100644 (file)
@@ -5,9 +5,12 @@
  * 2017 Marek Behun, CZ.NIC, marek.behun@nic.cz
  */
 
-#include "btrfs.h"
+#include <common.h>
+#include <log.h>
 #include <memalign.h>
+#include <part.h>
 #include <linux/compat.h>
+#include "btrfs.h"
 
 #define BTRFS_SUPER_FLAG_SUPP  (BTRFS_HEADER_FLAG_WRITTEN      \
                                 | BTRFS_HEADER_FLAG_RELOC      \
index 228f599d44bbca3e7c067ab5ae86ce9981e10a5e..7ef48bbc064c46a87fbb6156843de518e53e61ce 100644 (file)
@@ -25,6 +25,7 @@
  */
 
 #include <common.h>
+#include <flash.h>
 #include <malloc.h>
 #include <asm/byteorder.h>
 #include <linux/stat.h>
index 29076880bccc200efa5404ac3f23880eaedc9cfe..168443de1ff7b36b68287048bb555f5355c2af0d 100644 (file)
 #include <ext4fs.h>
 #include <ext_common.h>
 #include "ext4_common.h"
+#include <log.h>
 
 lbaint_t part_offset;
 
 static struct blk_desc *ext4fs_blk_desc;
-static disk_partition_t *part_info;
+static struct disk_partition *part_info;
 
-void ext4fs_set_blk_dev(struct blk_desc *rbdd, disk_partition_t *info)
+void ext4fs_set_blk_dev(struct blk_desc *rbdd, struct disk_partition *info)
 {
        assert(rbdd->blksz == (1 << rbdd->log2blksz));
        ext4fs_blk_desc = rbdd;
index 5bf78b530a989108e9298f4c374f7794de10a9a5..c52cc400e1f2c0985234b0ec2352200f1d813d80 100644 (file)
  */
 
 #include <common.h>
+#include <blk.h>
 #include <ext_common.h>
 #include <ext4fs.h>
+#include <log.h>
 #include <malloc.h>
 #include <memalign.h>
+#include <part.h>
 #include <stddef.h>
 #include <linux/stat.h>
 #include <linux/time.h>
index 4dff1914d9eca9119714939669a6b53f54be66b4..beaee9c80bd66207faa00169cc94471039412490 100644 (file)
@@ -23,6 +23,7 @@
 #include <ext_common.h>
 #include <ext4fs.h>
 #include <malloc.h>
+#include <asm/cache.h>
 #include <linux/errno.h>
 #if defined(CONFIG_EXT4_WRITE)
 #include "ext4_journal.h"
index 0ceb73d9c916201327f89dcc04bfc546ac4bc4dc..1a340b4764c628108ea474fbc693a18cc983c749 100644 (file)
@@ -14,7 +14,9 @@
  */
 
 #include <common.h>
+#include <blk.h>
 #include <ext4fs.h>
+#include <log.h>
 #include <malloc.h>
 #include <ext_common.h>
 #include "ext4_common.h"
index 67aeba1339d84298fb2c9b4335b6be391322dec4..f22af45d1b9747368fdb8e864bd3a3432dea4f7c 100644 (file)
 
 
 #include <common.h>
+#include <blk.h>
+#include <log.h>
 #include <malloc.h>
 #include <memalign.h>
+#include <part.h>
 #include <linux/stat.h>
 #include <div64.h>
 #include "ext4_common.h"
index 966b427a974ec7e45aea0c90ae0d8c4849c241ca..4c89152ce4ad88004fd9e2a1fe0ce4b09afbd2b9 100644 (file)
  */
 
 #include <common.h>
+#include <blk.h>
 #include <ext_common.h>
 #include <ext4fs.h>
 #include "ext4_common.h"
 #include <div64.h>
 #include <malloc.h>
+#include <part.h>
+#include <uuid.h>
 
 int ext4fs_symlinknest;
 struct ext_filesystem ext_fs;
@@ -226,7 +229,7 @@ int ext4fs_read(char *buf, loff_t offset, loff_t len, loff_t *actread)
 }
 
 int ext4fs_probe(struct blk_desc *fs_dev_desc,
-                disk_partition_t *fs_partition)
+                struct disk_partition *fs_partition)
 {
        ext4fs_set_blk_dev(fs_dev_desc, fs_partition);
 
index 68ce658386780af4494ff309c4cd0136080484b3..7fd29470c1a4bee2b031e446398d474d3ffb166a 100644 (file)
 #include <exports.h>
 #include <fat.h>
 #include <fs.h>
+#include <log.h>
 #include <asm/byteorder.h>
 #include <part.h>
 #include <malloc.h>
 #include <memalign.h>
+#include <asm/cache.h>
 #include <linux/compiler.h>
 #include <linux/ctype.h>
 
@@ -35,7 +37,7 @@ static void downcase(char *str, size_t len)
 }
 
 static struct blk_desc *cur_dev;
-static disk_partition_t cur_part_info;
+static struct disk_partition cur_part_info;
 
 #define DOS_BOOT_MAGIC_OFFSET  0x1fe
 #define DOS_FS_TYPE_OFFSET     0x36
@@ -56,7 +58,7 @@ static int disk_read(__u32 block, __u32 nr_blocks, void *buf)
        return ret;
 }
 
-int fat_set_blk_dev(struct blk_desc *dev_desc, disk_partition_t *info)
+int fat_set_blk_dev(struct blk_desc *dev_desc, struct disk_partition *info)
 {
        ALLOC_CACHE_ALIGN_BUFFER(unsigned char, buffer, dev_desc->blksz);
 
@@ -87,7 +89,7 @@ int fat_set_blk_dev(struct blk_desc *dev_desc, disk_partition_t *info)
 
 int fat_register_device(struct blk_desc *dev_desc, int part_no)
 {
-       disk_partition_t info;
+       struct disk_partition info;
 
        /* First close any currently found FAT filesystem */
        cur_dev = NULL;
index 4f96699e36331427aa20e7134742d8f641bd99cf..59cc0bae948055acf7c9e77fe97f83e47b151de1 100644 (file)
@@ -9,9 +9,11 @@
 #include <command.h>
 #include <config.h>
 #include <fat.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/byteorder.h>
 #include <part.h>
+#include <asm/cache.h>
 #include <linux/ctype.h>
 #include <div64.h>
 #include <linux/math64.h>
diff --git a/fs/fs.c b/fs/fs.c
index 0c66d6047703c76402c3e838b9a2e625492b99d2..ad4caaeb1ec9c1f7f502df20d0dce92df6471b1a 100644 (file)
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -3,10 +3,13 @@
  * Copyright (c) 2012, NVIDIA CORPORATION.  All rights reserved.
  */
 
+#include <command.h>
 #include <config.h>
 #include <errno.h>
 #include <common.h>
 #include <env.h>
+#include <lmb.h>
+#include <log.h>
 #include <mapmem.h>
 #include <part.h>
 #include <ext4fs.h>
@@ -24,11 +27,11 @@ DECLARE_GLOBAL_DATA_PTR;
 
 static struct blk_desc *fs_dev_desc;
 static int fs_dev_part;
-static disk_partition_t fs_partition;
+static struct disk_partition fs_partition;
 static int fs_type = FS_TYPE_ANY;
 
 static inline int fs_probe_unsupported(struct blk_desc *fs_dev_desc,
-                                     disk_partition_t *fs_partition)
+                                     struct disk_partition *fs_partition)
 {
        printf("** Unrecognized filesystem type **\n");
        return -1;
@@ -135,7 +138,7 @@ struct fstype_info {
         */
        bool null_dev_desc_ok;
        int (*probe)(struct blk_desc *fs_dev_desc,
-                    disk_partition_t *fs_partition);
+                    struct disk_partition *fs_partition);
        int (*ls)(const char *dirname);
        int (*exists)(const char *filename);
        int (*size)(const char *filename, loff_t *size);
@@ -643,8 +646,8 @@ int fs_ln(const char *fname, const char *target)
        return ret;
 }
 
-int do_size(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
-               int fstype)
+int do_size(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[],
+           int fstype)
 {
        loff_t size;
 
@@ -662,8 +665,8 @@ int do_size(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
        return 0;
 }
 
-int do_load(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
-               int fstype)
+int do_load(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[],
+           int fstype)
 {
        unsigned long addr;
        const char *addr_str;
@@ -736,8 +739,8 @@ int do_load(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
        return 0;
 }
 
-int do_ls(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
-       int fstype)
+int do_ls(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[],
+         int fstype)
 {
        if (argc < 2)
                return CMD_RET_USAGE;
@@ -762,8 +765,8 @@ int file_exists(const char *dev_type, const char *dev_part, const char *file,
        return fs_exists(file);
 }
 
-int do_save(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
-               int fstype)
+int do_save(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[],
+           int fstype)
 {
        unsigned long addr;
        const char *filename;
@@ -804,8 +807,8 @@ int do_save(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
        return 0;
 }
 
-int do_fs_uuid(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
-               int fstype)
+int do_fs_uuid(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[],
+              int fstype)
 {
        int ret;
        char uuid[37];
@@ -829,7 +832,7 @@ int do_fs_uuid(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
        return CMD_RET_SUCCESS;
 }
 
-int do_fs_type(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_fs_type(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        struct fstype_info *info;
 
@@ -851,7 +854,7 @@ int do_fs_type(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return CMD_RET_SUCCESS;
 }
 
-int do_rm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
+int do_rm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[],
          int fstype)
 {
        if (argc != 4)
@@ -866,7 +869,7 @@ int do_rm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
        return 0;
 }
 
-int do_mkdir(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
+int do_mkdir(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[],
             int fstype)
 {
        int ret;
@@ -886,7 +889,7 @@ int do_mkdir(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
        return 0;
 }
 
-int do_ln(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
+int do_ln(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[],
          int fstype)
 {
        if (argc != 5)
index d369c43ca68a3d9d088102f64feb5023597e6b10..8b19811a639a1799b55c4fda7e02ac059a9fe611 100644 (file)
@@ -6,11 +6,13 @@
  */
 
 #include <common.h>
+#include <blk.h>
 #include <compiler.h>
+#include <log.h>
 #include <part.h>
 #include <memalign.h>
 
-int fs_devread(struct blk_desc *blk, disk_partition_t *partition,
+int fs_devread(struct blk_desc *blk, struct disk_partition *partition,
               lbaint_t sector, int byte_offset, int byte_len, char *buf)
 {
        unsigned block_len;
index 1115c8682e8189d29739c81ca020bd469c8b6e95..a98745c50ead3b181cef9e090f3103e30723a924 100644 (file)
 
 #include <common.h>
 #include <config.h>
+#include <flash.h>
 #include <malloc.h>
 #include <div64.h>
 #include <linux/compiler.h>
index c6b67795df5c44f93770064f9d8c7cc2551ce8e1..5d9c26489aab66a2222d672d415b654f8d932918 100644 (file)
 #include "reiserfs_private.h"
 
 static struct blk_desc *reiserfs_blk_desc;
-static disk_partition_t *part_info;
+static struct disk_partition *part_info;
 
 
-void reiserfs_set_blk_dev(struct blk_desc *rbdd, disk_partition_t *info)
+void reiserfs_set_blk_dev(struct blk_desc *rbdd, struct disk_partition *info)
 {
        reiserfs_blk_desc = rbdd;
        part_info = info;
index af47224b6c6aa623644658ffba83c865a774ef9f..4ae41d5b4db19b0bdf61ec42698a2eb0af503522 100644 (file)
@@ -7,8 +7,9 @@
 #include <fs.h>
 #include <malloc.h>
 #include <os.h>
+#include <sandboxfs.h>
 
-int sandbox_fs_set_blk_dev(struct blk_desc *rbdd, disk_partition_t *info)
+int sandbox_fs_set_blk_dev(struct blk_desc *rbdd, struct disk_partition *info)
 {
        /*
         * Only accept a NULL struct blk_desc for the sandbox, which is when
index 9eb5d3fed12c1e8df58d0afd98a878e8ac3c9702..514f15f58cf32798169ecc0824f5071a5294efbf 100644 (file)
@@ -20,6 +20,7 @@
 
 #include "ubifs.h"
 #ifndef __UBOOT__
+#include <log.h>
 #include <linux/writeback.h>
 #else
 #include <linux/err.h>
index 6835f86fec738ead9e737492b827565b35b1fbec..2ff8f1a5f9b1d234cf33e2737ee2cb353bceedfd 100644 (file)
@@ -16,6 +16,7 @@
  */
 
 #include <hexdump.h>
+#include <log.h>
 #include <dm/devres.h>
 
 #ifndef __UBOOT__
index f923d076525f19b4c32ce895ced911da3bc52ac6..6a4ada62c8216ebd062d665a33c4cb49c9ee34df 100644 (file)
@@ -41,6 +41,7 @@
  * good, and GC takes extra care when moving them.
  */
 #ifndef __UBOOT__
+#include <log.h>
 #include <dm/devres.h>
 #include <linux/slab.h>
 #include <linux/pagemap.h>
index 8148055f6781f17489fe82a737a07c7564c2ff0a..eb14b8954471e1995f4a2ce3daaeeed7d4dccc59 100644 (file)
@@ -59,6 +59,8 @@
  */
 
 #ifndef __UBOOT__
+#include <init.h>
+#include <log.h>
 #include <dm/devres.h>
 #include <linux/crc32.h>
 #include <linux/slab.h>
index 5cbb8aa1b2e91fee12e70c4fb7b387e5ad9bcd64..77ff52575eaaa4eef40b1cc1731931bf830e5900 100644 (file)
@@ -16,6 +16,7 @@
  */
 
 #ifdef __UBOOT__
+#include <log.h>
 #include <dm/devres.h>
 #include <linux/err.h>
 #endif
index a7c45dd5ecb045a58ce1ef6d7d83af7fac692875..a9e22abe6b401ecc4afb15c632dadbe23199c39f 100644 (file)
@@ -17,6 +17,7 @@
  */
 
 #ifdef __UBOOT__
+#include <log.h>
 #include <malloc.h>
 #include <linux/err.h>
 #endif
index ebfb1d4dd78e738e8daff0e70534881233c87881..62748b0210b2040b6b9811fce27eca7606e6b051 100644 (file)
@@ -33,6 +33,7 @@
 
 #include "ubifs.h"
 #ifndef __UBOOT__
+#include <log.h>
 #include <dm/devres.h>
 #include <linux/crc16.h>
 #include <linux/math64.h>
index aa5956c52e8d812bd1fd50988dc63b1e5456bad5..897d0014306c32b6e8427469db50d9ed51fa2fbb 100644 (file)
  */
 
 #ifndef __UBOOT__
+#include <log.h>
 #include <dm/devres.h>
 #include <linux/crc16.h>
 #include <linux/slab.h>
 #include <linux/random.h>
 #else
+#include <linux/bitops.h>
 #include <linux/compat.h>
 #include <linux/err.h>
 #include "crc16.h"
index 2740aaee8bec2a8e5ae2e195fd8c99056941d552..055c654ae805a548415f2cc18727623e1bae46ca 100644 (file)
@@ -12,6 +12,7 @@
 
 #include "ubifs.h"
 #ifdef __UBOOT__
+#include <log.h>
 #include <dm/devres.h>
 #include <linux/compat.h>
 #include <linux/err.h>
index a67b3eec93a69bd8add879eb355db493d6f353e3..6aa2890ff05c8ad7b031e009ce76675f1fe677f7 100644 (file)
@@ -7,6 +7,7 @@
  * Author: Adrian Hunter
  */
 
+#include <log.h>
 #include <dm/devres.h>
 #include <linux/err.h>
 #include "ubifs.h"
index 3388efe2b78ed340d8663402dc69f66d53ecd329..6b6884fb2098ac6361ce4755787c8636d9d26e3e 100644 (file)
@@ -36,6 +36,7 @@
  */
 
 #ifndef __UBOOT__
+#include <log.h>
 #include <dm/devres.h>
 #include <linux/crc32.h>
 #include <linux/slab.h>
index 3a9fa4130e0ea85101ae7e1b2ad69802a7a7100a..aa7f281ef6b5afed336b318981863976bac6aaf4 100644 (file)
@@ -21,6 +21,7 @@
  */
 
 #ifdef __UBOOT__
+#include <log.h>
 #include <dm/devres.h>
 #include <linux/compat.h>
 #include <linux/err.h>
index 599e1a35fbf42b776c30847386bc16b3f7b518a1..1d49285c7d35e7caace18e8f9c5245596cfa2a46 100644 (file)
@@ -16,6 +16,7 @@
 
 #include "ubifs.h"
 #ifndef __UBOOT__
+#include <log.h>
 #include <dm/devres.h>
 #include <linux/slab.h>
 #include <linux/random.h>
index 876a6ee6616b0eed2d7ff3d7371a528ed9fbf715..7a6e46df5d907ede2c41e7636d38eef053fa08f7 100644 (file)
@@ -17,6 +17,7 @@
 
 #ifdef __UBOOT__
 #include <hexdump.h>
+#include <log.h>
 #include <dm/devres.h>
 #include <linux/err.h>
 #endif
index b38513660b6a2ab757c22b6be1da8b27b922f540..e3a4c0bca27055791f7f4119b3e4b83d0d96fe1c 100644 (file)
@@ -15,6 +15,7 @@
  */
 
 #ifndef __UBOOT__
+#include <log.h>
 #include <dm/devres.h>
 #include <linux/init.h>
 #include <linux/slab.h>
 #include <common.h>
 #include <malloc.h>
 #include <memalign.h>
+#include <linux/bitops.h>
 #include <linux/bug.h>
 #include <linux/log2.h>
 #include <linux/stat.h>
 #include <linux/err.h>
 #include "ubifs.h"
 #include <ubi_uboot.h>
+#include <linux/stringify.h>
 #include <mtd/ubi-user.h>
 
 struct dentry;
index fc6fdaff8d19d37203e549134f309ca469902cf9..e8b8f168380464ae015f20d328a9b0ab43b3209d 100644 (file)
  */
 
 #ifndef __UBOOT__
+#include <log.h>
 #include <dm/devres.h>
 #include <linux/crc32.h>
 #include <linux/slab.h>
 #include <u-boot/crc.h>
 #else
+#include <linux/bitops.h>
+#include <linux/bug.h>
 #include <linux/compat.h>
 #include <linux/err.h>
 #include <linux/stat.h>
index dfa9e91903ddbbb7b41421e87c4a05998ea814c3..e4cd785b9f5feef1b53407e3e0642043712fe976 100644 (file)
@@ -16,6 +16,7 @@
  */
 
 #ifdef __UBOOT__
+#include <log.h>
 #include <dm/devres.h>
 #include <linux/err.h>
 #endif
index e097d284444959c857996b40d1b5b6bc6a515f23..70beb848e1b0bb16d86d0a388719ad4b1c17bbdf 100644 (file)
 #include <common.h>
 #include <env.h>
 #include <gzip.h>
+#include <log.h>
 #include <malloc.h>
 #include <memalign.h>
 #include "ubifs.h"
+#include <part.h>
 #include <dm/devres.h>
 #include <u-boot/zlib.h>
 
@@ -549,7 +551,7 @@ static unsigned long ubifs_findfile(struct super_block *sb, char *filename)
        return 0;
 }
 
-int ubifs_set_blk_dev(struct blk_desc *rbdd, disk_partition_t *info)
+int ubifs_set_blk_dev(struct blk_desc *rbdd, struct disk_partition *info)
 {
        if (rbdd) {
                debug("UBIFS cannot be used with normal block devices\n");
index 0d9d5cc4b1939efd7ae61a56be7790686a845669..81a4d964f3e92777ebba6fb2f9213ec74e51f34f 100644 (file)
@@ -15,6 +15,7 @@
 
 /* XXX U-BOOT XXX */
 #include <common.h>
+#include <linux/bug.h>
 #include <linux/errno.h>
 
 #include "yportenv.h"
index 251eba07921786010390cbbd6784beecdfe9d918..081391a1d0fe5867e5019cab5725f85db3be2c39 100644 (file)
@@ -17,6 +17,7 @@
 #ifndef __YPORTENV_H__
 #define __YPORTENV_H__
 
+#include <linux/bug.h>
 #include <linux/types.h>
 
 /* Definition of types */
index 3cdb9e03edc633f8faaea0a579cecdb90ebe84a9..251e7d1f74fc54c68596e65f553a97dfff7dbd09 100644 (file)
@@ -14,9 +14,9 @@
 #include <zfs_common.h>
 
 static struct blk_desc *zfs_blk_desc;
-static disk_partition_t *part_info;
+static struct disk_partition *part_info;
 
-void zfs_set_blk_dev(struct blk_desc *rbdd, disk_partition_t *info)
+void zfs_set_blk_dev(struct blk_desc *rbdd, struct disk_partition *info)
 {
        zfs_blk_desc = rbdd;
        part_info = info;
index 4331c16064ca2b7c0416fb902d35f225f1f420d9..1fec96cd5ce5a67171d1c66e1b0974870704571d 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 #include <linux/stat.h>
 #include <linux/time.h>
index 0dee05f077a60509a1e021415da6d9b59265779c..1e9ba8610880cb3e3b128aee6080f9e945c31d64 100644 (file)
@@ -29,7 +29,7 @@
        EXPORT_FUNC(udelay, void, udelay, unsigned long)
        EXPORT_FUNC(get_timer, unsigned long, get_timer, unsigned long)
        EXPORT_FUNC(vprintf, int, vprintf, const char *, va_list)
-       EXPORT_FUNC(do_reset, int, do_reset, cmd_tbl_t *,
+       EXPORT_FUNC(do_reset, int, do_reset, struct cmd_tbl *,
                    int , int , char * const [])
        EXPORT_FUNC(env_get, char  *, env_get, const char*)
        EXPORT_FUNC(env_set, int, env_set, const char *, const char *)
index 3681c5c8ed91039de7fb4a708e026376d39ec9d9..fe9b29f3f82d5d22bb34e09d580b26b7dd559f91 100644 (file)
@@ -13,6 +13,8 @@
 #ifndef __ACPI_TABLE_H__
 #define __ACPI_TABLE_H__
 
+#include <linux/bitops.h>
+
 #define RSDP_SIG               "RSD PTR "      /* RSDP pointer signature */
 #define OEM_ID                 "U-BOOT"        /* U-Boot */
 #define OEM_TABLE_ID           "U-BOOTBL"      /* U-Boot Table */
index 810906d22b3b0950cae008d30e98e4fdf624c8da..0941eb6b9cc4556f491f2d68793cd019be05854d 100644 (file)
@@ -6,7 +6,8 @@
 #ifndef __ANDROID_AB_H
 #define __ANDROID_AB_H
 
-#include <common.h>
+struct blk_desc;
+struct disk_partition;
 
 /* Android standard boot slot names are 'a', 'b', 'c', ... */
 #define BOOT_SLOT_NAME(slot_num) ('a' + (slot_num))
@@ -29,6 +30,6 @@
  * @param[in] part_info Place to store the partition information
  * @return The slot number (>= 0) on success, or a negative on error
  */
-int ab_select_slot(struct blk_desc *dev_desc, disk_partition_t *part_info);
+int ab_select_slot(struct blk_desc *dev_desc, struct disk_partition *part_info);
 
 #endif /* __ANDROID_AB_H */
index 859f41a0d41bed97f9341c637763f7a9a398453d..e16c2f31d9d2a5895ddd854e03805e5e40752c3a 100644 (file)
@@ -8,6 +8,7 @@
 #define _ASM_GENERIC_GPIO_H_
 
 #include <dm/ofnode.h>
+#include <linux/bitops.h>
 
 struct ofnode_phandle_args;
 
index cc94d39069e11b4f9d3fe06eed68457191256335..6f749736f1819dc1c2788b2aae6877ffe2feadd9 100644 (file)
@@ -23,6 +23,7 @@
 
 #ifndef __ASSEMBLY__
 
+#include <asm/types.h>
 #include <linux/types.h>
 
 typedef struct bd_info {
index 3a7d40e5f091d4cbe15945d4995623fd26e48336..fd5454c55b4b83234a0e53bcbe8eadee1f1fabcd 100644 (file)
@@ -177,6 +177,6 @@ struct bl2_to_bl31_params_mem {
        struct entry_point_info bl31_ep_info;
 };
 
-#endif /*__ASSEMBLY__*/
+#endif /*__ASSEMBLY__ */
 
 #endif /* __BL_COMMON_H__ */
index 18278f829e41c7c2c8e0cfc1018e225c6374936c..a8d7090f79442b0df8fd4f28b06c3c78dcacb4fa 100644 (file)
@@ -38,7 +38,7 @@ struct mmc_part {
        int dev_num;
        struct mmc *mmc;
        struct blk_desc *mmc_blk;
-       disk_partition_t info;
+       struct disk_partition info;
 };
 
 enum mmc_io_type {
index 3754c7f2b2ab22dc90fc66873e64a7441929e759..f7a719caf0abdc2a96a88e3a0ff509666ba7bdb0 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _TYPE_BEDBUG_H
 #define _TYPE_BEDBUG_H
 
+struct cmd_tbl;
+
 /* Supporting routines */
 int bedbug_puts (const char *);
 int bedbug_init(void);
@@ -15,7 +17,8 @@ typedef struct {
        int current_bp;
        struct pt_regs *regs;
 
-       void (*do_break) (cmd_tbl_t *, int, int, char * const []);
+       void (*do_break)(struct cmd_tbl *cmd, int flags, int argc,
+                        char *const argv[]);
        void (*break_isr) (struct pt_regs *);
        int (*find_empty) (void);
        int (*set) (int, unsigned long);
index 579a69c856dac6affb982e2973a199dd1f31793a..d3ceeedccda681b884f63422d0a49dc4804562c0 100644 (file)
@@ -36,6 +36,7 @@
  * tables which describe all bitfields in all registers.
  */
 
+#include <linux/bitops.h>
 #include <linux/types.h>
 
 /* Produces a mask of set bits covering a range of a uint value */
index 6f541bb2bae484ae594d022b496ef44f3d0bd932..abcd4bedbbbd3fae6620f39525c616ecb1b721cf 100644 (file)
@@ -679,7 +679,7 @@ const char *blk_get_if_type_name(enum if_type if_type);
  * @cur_devnump: Current device number for this interface type
  * @return 0 if OK, CMD_RET_ERROR on error
  */
-int blk_common_cmd(int argc, char * const argv[], enum if_type if_type,
+int blk_common_cmd(int argc, char *const argv[], enum if_type if_type,
                   int *cur_devnump);
 
 #endif
index edeeacb0df6f48f61c9b262cd746c89bbd317ea4..1e7f29e1341d7573cca6f9c752cb7d8edbc70d82 100644 (file)
@@ -7,9 +7,10 @@
 #ifndef _BOOTM_H
 #define _BOOTM_H
 
-#include <command.h>
 #include <image.h>
 
+struct cmd_tbl;
+
 #define BOOTM_ERR_RESET                (-1)
 #define BOOTM_ERR_OVERLAP              (-2)
 #define BOOTM_ERR_UNIMPLEMENTED        (-3)
  * @return 1 on error. On success the OS boots so this function does
  * not return.
  */
-typedef int boot_os_fn(int flag, int argc, char * const argv[],
+typedef int boot_os_fn(int flag, int argc, char *const argv[],
                        bootm_headers_t *images);
 
 extern boot_os_fn do_bootm_linux;
 extern boot_os_fn do_bootm_vxworks;
 
-int do_bootelf(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
+int do_bootelf(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
 void lynxkdi_boot(image_header_t *hdr);
 
 boot_os_fn *bootm_os_get_boot_func(int os);
@@ -46,16 +47,17 @@ boot_os_fn *bootm_os_get_boot_func(int os);
 int bootm_host_load_images(const void *fit, int cfg_noffset);
 #endif
 
-int boot_selected_os(int argc, char * const argv[], int state,
+int boot_selected_os(int argc, char *const argv[], int state,
                     bootm_headers_t *images, boot_os_fn *boot_fn);
 
 ulong bootm_disable_interrupts(void);
 
 /* This is a special function used by booti/bootz */
-int bootm_find_images(int flag, int argc, char * const argv[]);
+int bootm_find_images(int flag, int argc, char *const argv[]);
 
-int do_bootm_states(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
-                   int states, bootm_headers_t *images, int boot_progress);
+int do_bootm_states(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[], int states, bootm_headers_t *images,
+                   int boot_progress);
 
 void arch_preboot_os(void);
 
index 82f0307ef1eb69baf4d7a152e1fc27cc675b2dde..f507271375f2882a3d14753523bf0019a76607ff 100644 (file)
@@ -199,11 +199,11 @@ enum bootstage_id {
        BOOTSTAGE_ID_ACCUM_DECOMP,
        BOOTSTAGE_ID_ACCUM_OF_LIVE,
        BOOTSTAGE_ID_FPGA_INIT,
-       BOOTSTATE_ID_ACCUM_DM_SPL,
-       BOOTSTATE_ID_ACCUM_DM_F,
-       BOOTSTATE_ID_ACCUM_DM_R,
-       BOOTSTATE_ID_ACCUM_FSP_M,
-       BOOTSTATE_ID_ACCUM_FSP_S,
+       BOOTSTAGE_ID_ACCUM_DM_SPL,
+       BOOTSTAGE_ID_ACCUM_DM_F,
+       BOOTSTAGE_ID_ACCUM_DM_R,
+       BOOTSTAGE_ID_ACCUM_FSP_M,
+       BOOTSTAGE_ID_ACCUM_FSP_S,
        BOOTSTAGE_ID_ACCUM_MMAP_SPI,
 
        /* a few spare for the user, from here */
index 5be61e3264ddd6e4b5c3f57da22762782727661d..a7605e15897039c059e29d8fdd26551a33daa959 100644 (file)
@@ -8,7 +8,11 @@
 #ifndef __U_BOOT_BTRFS_H__
 #define __U_BOOT_BTRFS_H__
 
-int btrfs_probe(struct blk_desc *, disk_partition_t *);
+struct blk_desc;
+struct disk_partition;
+
+int btrfs_probe(struct blk_desc *fs_dev_desc,
+               struct disk_partition *fs_partition);
 int btrfs_ls(const char *);
 int btrfs_exists(const char *);
 int btrfs_size(const char *, loff_t *);
index d1063774ce567dff15b6823b6ae10fdf72ba773d..b9b5ec1afa045eaf20826b16e893fb1f611edc28 100644 (file)
@@ -27,7 +27,7 @@
  * Monitor Command Table
  */
 
-struct cmd_tbl_s {
+struct cmd_tbl {
        char            *name;          /* Command Name                 */
        int             maxargs;        /* maximum number of arguments  */
                                        /*
@@ -38,54 +38,57 @@ struct cmd_tbl_s {
                                         * repeatable property different for
                                         * the main command and sub-commands.
                                         */
-       int             (*cmd_rep)(struct cmd_tbl_s *cmd, int flags, int argc,
-                                  char * const argv[], int *repeatable);
+       int             (*cmd_rep)(struct cmd_tbl *cmd, int flags, int argc,
+                                  char *const argv[], int *repeatable);
                                        /* Implementation function      */
-       int             (*cmd)(struct cmd_tbl_s *, int, int, char * const []);
+       int             (*cmd)(struct cmd_tbl *cmd, int flags, int argc,
+                              char *const argv[]);
        char            *usage;         /* Usage message        (short) */
 #ifdef CONFIG_SYS_LONGHELP
        char            *help;          /* Help  message        (long)  */
 #endif
 #ifdef CONFIG_AUTO_COMPLETE
        /* do auto completion on the arguments */
-       int             (*complete)(int argc, char * const argv[], char last_char, int maxv, char *cmdv[]);
+       int             (*complete)(int argc, char *const argv[],
+                                   char last_char, int maxv, char *cmdv[]);
 #endif
 };
 
-typedef struct cmd_tbl_s       cmd_tbl_t;
-
-
 #if defined(CONFIG_CMD_RUN)
-extern int do_run(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
+extern int do_run(struct cmd_tbl *cmdtp, int flag, int argc,
+                 char *const argv[]);
 #endif
 
 /* common/command.c */
-int _do_help (cmd_tbl_t *cmd_start, int cmd_items, cmd_tbl_t * cmdtp, int
-             flag, int argc, char * const argv[]);
-cmd_tbl_t *find_cmd(const char *cmd);
-cmd_tbl_t *find_cmd_tbl (const char *cmd, cmd_tbl_t *table, int table_len);
-int complete_subcmdv(cmd_tbl_t *cmdtp, int count, int argc,
-                    char * const argv[], char last_char, int maxv,
+int _do_help(struct cmd_tbl *cmd_start, int cmd_items, struct cmd_tbl *cmdtp,
+            int flag, int argc, char *const argv[]);
+struct cmd_tbl *find_cmd(const char *cmd);
+struct cmd_tbl *find_cmd_tbl(const char *cmd, struct cmd_tbl *table,
+                            int table_len);
+int complete_subcmdv(struct cmd_tbl *cmdtp, int count, int argc,
+                    char *const argv[], char last_char, int maxv,
                     char *cmdv[]);
 
-extern int cmd_usage(const cmd_tbl_t *cmdtp);
+extern int cmd_usage(const struct cmd_tbl *cmdtp);
 
 /* Dummy ->cmd and ->cmd_rep wrappers. */
-int cmd_always_repeatable(cmd_tbl_t *cmdtp, int flag, int argc,
-                         char * const argv[], int *repeatable);
-int cmd_never_repeatable(cmd_tbl_t *cmdtp, int flag, int argc,
-                        char * const argv[], int *repeatable);
-int cmd_discard_repeatable(cmd_tbl_t *cmdtp, int flag, int argc,
-                          char * const argv[]);
-
-static inline bool cmd_is_repeatable(cmd_tbl_t *cmdtp)
+int cmd_always_repeatable(struct cmd_tbl *cmdtp, int flag, int argc,
+                         char *const argv[], int *repeatable);
+int cmd_never_repeatable(struct cmd_tbl *cmdtp, int flag, int argc,
+                        char *const argv[], int *repeatable);
+int cmd_discard_repeatable(struct cmd_tbl *cmdtp, int flag, int argc,
+                          char *const argv[]);
+
+static inline bool cmd_is_repeatable(struct cmd_tbl *cmdtp)
 {
        return cmdtp->cmd_rep == cmd_always_repeatable;
 }
 
 #ifdef CONFIG_AUTO_COMPLETE
-extern int var_complete(int argc, char * const argv[], char last_char, int maxv, char *cmdv[]);
-extern int cmd_auto_complete(const char *const prompt, char *buf, int *np, int *colp);
+extern int var_complete(int argc, char *const argv[], char last_char, int maxv,
+                       char *cmdv[]);
+extern int cmd_auto_complete(const char *const prompt, char *buf, int *np,
+                            int *colp);
 #endif
 
 /**
@@ -97,14 +100,15 @@ extern int cmd_auto_complete(const char *const prompt, char *buf, int *np, int *
  *        1 (CMD_RET_FAILURE) if an error is found
  *        -1 (CMD_RET_USAGE) if 'usage' error is found
  */
-int cmd_process_error(cmd_tbl_t *cmdtp, int err);
+int cmd_process_error(struct cmd_tbl *cmdtp, int err);
 
 /*
  * Monitor Command
  *
  * All commands use a common argument format:
  *
- * void function (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
+ * void function(struct cmd_tbl *cmdtp, int flag, int argc,
+ *              char *const argv[]);
  */
 
 #if defined(CONFIG_CMD_MEMORY) || \
@@ -117,36 +121,42 @@ extern int cmd_get_data_size(char* arg, int default_size);
 #endif
 
 #ifdef CONFIG_CMD_BOOTD
-extern int do_bootd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
+extern int do_bootd(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[]);
 #endif
 #ifdef CONFIG_CMD_BOOTM
-extern int do_bootm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
-extern int bootm_maybe_autostart(cmd_tbl_t *cmdtp, const char *cmd);
+extern int do_bootm(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[]);
+extern int bootm_maybe_autostart(struct cmd_tbl *cmdtp, const char *cmd);
 #else
-static inline int bootm_maybe_autostart(cmd_tbl_t *cmdtp, const char *cmd)
+static inline int bootm_maybe_autostart(struct cmd_tbl *cmdtp, const char *cmd)
 {
        return 0;
 }
 #endif
 
-extern int do_bootz(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
+extern int do_bootz(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[]);
 
-extern int do_booti(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
+extern int do_booti(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[]);
 
-extern int common_diskboot(cmd_tbl_t *cmdtp, const char *intf, int argc,
+extern int common_diskboot(struct cmd_tbl *cmdtp, const char *intf, int argc,
                           char *const argv[]);
 
-extern int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
-extern int do_poweroff(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
+extern int do_reset(struct cmd_tbl *cmdtp, int flag, int argc,
+                   char *const argv[]);
+extern int do_poweroff(struct cmd_tbl *cmdtp, int flag, int argc,
+                      char *const argv[]);
 
 extern unsigned long do_go_exec(ulong (*entry)(int, char * const []), int argc,
-                               char * const argv[]);
+                               char *const argv[]);
 
 #if defined(CONFIG_CMD_NVEDIT_EFI)
-extern int do_env_print_efi(cmd_tbl_t *cmdtp, int flag, int argc,
-                           char * const argv[]);
-extern int do_env_set_efi(cmd_tbl_t *cmdtp, int flag, int argc,
-                         char * const argv[]);
+extern int do_env_print_efi(struct cmd_tbl *cmdtp, int flag, int argc,
+                           char *const argv[]);
+extern int do_env_set_efi(struct cmd_tbl *cmdtp, int flag, int argc,
+                         char *const argv[]);
 #endif
 
 /*
@@ -177,10 +187,10 @@ enum command_ret_t {
  *                     number of ticks the command took to complete.
  * @return 0 if the command succeeded, 1 if it failed
  */
-int cmd_process(int flag, int argc, char * const argv[],
-                              int *repeatable, unsigned long *ticks);
+int cmd_process(int flag, int argc, char *const argv[], int *repeatable,
+               unsigned long *ticks);
 
-void fixup_cmdtable(cmd_tbl_t *cmdtp, int size);
+void fixup_cmdtable(struct cmd_tbl *cmdtp, int size);
 
 /**
  * board_run_command() - Fallback function to execute a command
@@ -254,10 +264,11 @@ int run_command_list(const char *cmd, int len, int flag);
 #endif
 
 #define U_BOOT_SUBCMDS_DO_CMD(_cmdname)                                        \
-       static int do_##_cmdname(cmd_tbl_t *cmdtp, int flag, int argc,  \
-                                char * const argv[], int *repeatable)  \
+       static int do_##_cmdname(struct cmd_tbl *cmdtp, int flag,       \
+                                int argc, char *const argv[],          \
+                                int *repeatable)                       \
        {                                                               \
-               cmd_tbl_t *subcmd;                                      \
+               struct cmd_tbl *subcmd;                                 \
                                                                        \
                _cmdname##_subcmds_reloc();                             \
                                                                        \
@@ -280,7 +291,7 @@ int run_command_list(const char *cmd, int len, int flag);
 
 #ifdef CONFIG_AUTO_COMPLETE
 #define U_BOOT_SUBCMDS_COMPLETE(_cmdname)                              \
-       static int complete_##_cmdname(int argc, char * const argv[],   \
+       static int complete_##_cmdname(int argc, char *const argv[],    \
                                       char last_char, int maxv,        \
                                       char *cmdv[])                    \
        {                                                               \
@@ -294,7 +305,7 @@ int run_command_list(const char *cmd, int len, int flag);
 #endif
 
 #define U_BOOT_SUBCMDS(_cmdname, ...)                                  \
-       static cmd_tbl_t _cmdname##_subcmds[] = { __VA_ARGS__ };        \
+       static struct cmd_tbl _cmdname##_subcmds[] = { __VA_ARGS__ };   \
        U_BOOT_SUBCMDS_RELOC(_cmdname)                                  \
        U_BOOT_SUBCMDS_DO_CMD(_cmdname)                                 \
        U_BOOT_SUBCMDS_COMPLETE(_cmdname)
@@ -312,18 +323,18 @@ int run_command_list(const char *cmd, int len, int flag);
                 _cmd, _usage, _CMD_HELP(_help) _CMD_COMPLETE(_comp) }
 
 #define U_BOOT_CMD_COMPLETE(_name, _maxargs, _rep, _cmd, _usage, _help, _comp) \
-       ll_entry_declare(cmd_tbl_t, _name, cmd) =                       \
+       ll_entry_declare(struct cmd_tbl, _name, cmd) =                  \
                U_BOOT_CMD_MKENT_COMPLETE(_name, _maxargs, _rep, _cmd,  \
                                                _usage, _help, _comp);
 
 #define U_BOOT_CMDREP_COMPLETE(_name, _maxargs, _cmd_rep, _usage,      \
                               _help, _comp)                            \
-       ll_entry_declare(cmd_tbl_t, _name, cmd) =                       \
+       ll_entry_declare(struct cmd_tbl, _name, cmd) =                  \
                U_BOOT_CMDREP_MKENT_COMPLETE(_name, _maxargs, _cmd_rep, \
                                             _usage, _help, _comp)
 
 #else
-#define U_BOOT_SUBCMD_START(name)      static cmd_tbl_t name[] = {};
+#define U_BOOT_SUBCMD_START(name)      static struct cmd_tbl name[] = {};
 #define U_BOOT_SUBCMD_END
 
 #define _CMD_REMOVE(_name, _cmd)                                       \
index 0ef8505fc79326359b59a4b52cb10f413e749b1f..f0679ac70544fdf2f89812b8f2c9ff4d8334cf39 100644 (file)
 #include <config.h>
 #include <errno.h>
 #include <time.h>
-#include <asm-offsets.h>
-#include <linux/bitops.h>
-#include <linux/bug.h>
-#include <linux/delay.h>
 #include <linux/types.h>
 #include <linux/printk.h>
 #include <linux/string.h>
-#include <linux/stringify.h>
-#include <asm/ptrace.h>
 #include <stdarg.h>
 #include <stdio.h>
 #include <linux/kernel.h>
-#include <part.h>
-#include <flash.h>
-#include <image.h>
-#include <log.h>
 #include <asm/u-boot.h> /* boot information for Linux kernel */
 #include <asm/global_data.h>   /* global data used for startup functions */
-#include <init.h>
 #include <display_options.h>
-#include <uuid.h>
 #include <vsprintf.h>
-#include <net.h>
-#include <bootstage.h>
 #endif /* __ASSEMBLY__ */
 
 /* Pull in stuff for the build system */
index 4f522dbeccb2208b12d63640a5c9e2fe9a802847..3922241be005c234230d850c4c0f6ce5d52e3dd2 100644 (file)
@@ -6,6 +6,8 @@
 #ifndef __CONFIG_FSL_CHAIN_TRUST_H
 #define __CONFIG_FSL_CHAIN_TRUST_H
 
+#include <linux/stringify.h>
+
 #ifdef CONFIG_CHAIN_OF_TRUST
 
 #ifndef CONFIG_EXTRA_ENV
index 67639458b416d5dcc4a8e130ae8bd4cd8e274fda..a515bf9530bc44ccaed84ed36e465fad8f673308 100644 (file)
@@ -6,6 +6,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 /*
  * B4860 QDS board configuration file
  */
index 62ad50bad5442774f7523397d5a2136bf855ad68..9a8cba6b7c931935f9e23c2173251c5ba53e1bc5 100644 (file)
@@ -10,6 +10,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 #ifdef CONFIG_SPIFLASH
 #define CONFIG_RAMBOOT_SPIFLASH
 #define CONFIG_RESET_VECTOR_ADDRESS    0x110bfffc
index f110cac2741d93dd67726b77dfd8869bf4ac3156..8261f4811cc251e68d36cd4ef2f265fdbd8a85c2 100644 (file)
@@ -13,6 +13,8 @@
 #ifndef _M52277EVB_H
 #define _M52277EVB_H
 
+#include <linux/stringify.h>
+
 /*
  * High Level Configuration Options
  * (easy to change)
index e79a7e98dc2597fd364371361eec2181a82d6dd8..69e3fbae78d71f42a6c5daa9052906d541fd1bf5 100644 (file)
@@ -6,6 +6,8 @@
 #ifndef _M5253DEMO_H
 #define _M5253DEMO_H
 
+#include <linux/stringify.h>
+
 #define CONFIG_MCFTMR
 
 #define CONFIG_MCFUART
index 6297aea143d2041d6a3f13ccd7aa9714d6be4203..f94cc02905d771e578e6547eac91322b7e0313c8 100644 (file)
@@ -13,6 +13,8 @@
 #ifndef _M5373EVB_H
 #define _M5373EVB_H
 
+#include <linux/stringify.h>
+
 /*
  * High Level Configuration Options
  * (easy to change)
index cdf169f6a79a73d66a461588a183f30a3c0869ba..2866bfd85ff6279d6c8bd13bdb298c7088f7d4b8 100644 (file)
@@ -13,6 +13,8 @@
 #ifndef _M54418TWR_H
 #define _M54418TWR_H
 
+#include <linux/stringify.h>
+
 /*
  * High Level Configuration Options
  * (easy to change)
index 8d0b1db73e5b4715ce4557971c27dfcb6a95b6f4..ec4284216f9f0c550248d989fdcb30155dafc1b5 100644 (file)
@@ -13,6 +13,8 @@
 #ifndef _M54451EVB_H
 #define _M54451EVB_H
 
+#include <linux/stringify.h>
+
 /*
  * High Level Configuration Options
  * (easy to change)
index 6e43522fda314046d3209378506b395ef91d0502..291adeaf0dab3c98002897d2a091bf1734ead08b 100644 (file)
@@ -13,6 +13,8 @@
 #ifndef _M54455EVB_H
 #define _M54455EVB_H
 
+#include <linux/stringify.h>
+
 /*
  * High Level Configuration Options
  * (easy to change)
index f55e9a09950919da8aeb668f6437124dc0699e05..788a325b64183bd05dd02b0c90a40299bd6f5ad0 100644 (file)
@@ -8,6 +8,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 /*
  * High Level Configuration Options
  */
index 68298533430c8b51f3ba49b68b530fd472ac912f..d8485f6fbd6374fd8fda9f3af140ed159997175c 100644 (file)
@@ -9,6 +9,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 /*
  * High Level Configuration Options
  */
index 382c39ccb4cd8b1f699f620712a04cca9ce0f153..029d2f1ec3ebbd3701b0a7a5e56388c1bc238877 100644 (file)
@@ -18,6 +18,7 @@
 #define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_TEXT_BASE    /* start of monitor */
 #endif
 
+#include <linux/stringify.h>
 #define CONFIG_PCI_INDIRECT_BRIDGE
 
 /*
index 289cd9a8600ab65e949543b0525391a1e2570222..ff18d108726000f80056d991b182253096357002 100644 (file)
@@ -9,6 +9,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 /*
  * High Level Configuration Options
  */
index 90046fd1ee3bb1dabc4524775c4812b919394536..dd517639ea45812ccc68189d0013c254f529adcb 100644 (file)
@@ -52,6 +52,7 @@
 #define CONFIG_SYS_USB_HOST    /* use the EHCI USB controller */
 #endif
 
+#include <linux/stringify.h>
 #define CONFIG_RTC_DS1337
 #define CONFIG_SYS_I2C
 
index 21bd9f09c17f90fc6cfc9733d8d3c0f843b32c58..8c2297a9105400108d68e5ccc248480d3479a9a9 100644 (file)
@@ -8,6 +8,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 /*
  * High Level Configuration Options
  */
index fb115e23457865f17d1a58b421c3d9f57bf5a8be..340574a98526d1c1837a003ed19923d0e3de9908 100644 (file)
@@ -10,6 +10,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 #include "../board/freescale/common/ics307_clk.h"
 
 #ifdef CONFIG_SDCARD
index 2092e3da15927d404682d8db2d2d1400c5fabd67..c9f193fc4672ba70035b3de8ffc107246ec08a6e 100644 (file)
@@ -22,6 +22,7 @@
 #define CONFIG_INTERRUPTS              /* enable pci, srio, ddr interrupts */
 
 #ifndef __ASSEMBLY__
+#include <linux/stringify.h>
 extern unsigned long get_board_sys_clk(unsigned long dummy);
 #endif
 #define CONFIG_SYS_CLK_FREQ    get_board_sys_clk(0) /* sysclk for MPC85xx */
index 6e44a072db88a1c4747e48c94daf0166e7989a1a..de2bfd8f2f4a6ae05079b242212b18ff6c30b602 100644 (file)
@@ -27,6 +27,7 @@
 #define CONFIG_FSL_VIA
 
 #ifndef __ASSEMBLY__
+#include <linux/stringify.h>
 extern unsigned long get_clock_freq(void);
 #endif
 #define CONFIG_SYS_CLK_FREQ    get_clock_freq() /* sysclk for MPC85xx */
index 866049febf2c533514eae01254b7707731063f51..97d8cc48edf74dc67b52489e3f86580e4aecd694 100644 (file)
@@ -17,6 +17,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/delay.h>
+
 /* High Level Configuration Options */
 #define CONFIG_CPM2            1       /* has CPM2 */
 
index 65da3d7009b47283409f8fb9247ce31e309a0bde..3243f39df4b56278ab0a30a69e0bdf1b8e8e286e 100644 (file)
@@ -10,6 +10,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 #include "../board/freescale/common/ics307_clk.h"
 
 #ifndef CONFIG_RESET_VECTOR_ADDRESS
index f3d603c634849d44e4318c2b8c5f997d7c56695b..eb85141702985751f3679e105c8da571bbcc94e6 100644 (file)
@@ -10,6 +10,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 /* High Level Configuration Options */
 #define CONFIG_LINUX_RESET_VEC 0x100   /* Reset vector used by Linux */
 
index e97d780cea097aa85e6a80ad0a5d3f3c77fb3173..edbeeefdd4a9eeac6e8cc250fefe83f93e65c74f 100644 (file)
@@ -15,6 +15,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 /* High Level Configuration Options */
 #define CONFIG_LINUX_RESET_VEC 0x100   /* Reset vector used by Linux */
 #define CONFIG_ADDR_MAP                1       /* Use addr map */
index f578e0bd8752ae459af77e6e8a993b0b714856f4..8f709a6cac54a08cb6f6e78d8d48c5cece52b502 100644 (file)
@@ -11,6 +11,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 #include <asm/config_mpc85xx.h>
 #define CONFIG_NAND_FSL_IFC
 
index e99d509a36b214e706455cde6f0e62cb5e5ad66c..2b761078bc783cf8fa9033e4b75a5a788c704a84 100644 (file)
@@ -8,6 +8,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 #include "../board/freescale/common/ics307_clk.h"
 
 #ifdef CONFIG_SDCARD
index 2f3831e2599281a7bbe0d20dd618fce2bdfe6c00..6bf3cd595083aca161cd2c72758830dc235c9ad8 100644 (file)
@@ -9,6 +9,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 #ifndef CONFIG_SYS_MONITOR_BASE
 #define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_TEXT_BASE    /* start of monitor */
 #endif
index 09427776e28157f8686342da257edaa075eb4de9..59404cbaf93d0ae69376b83332020b6b7420a45f 100644 (file)
@@ -56,6 +56,7 @@
 
 #ifndef __ASSEMBLY__
 unsigned long get_board_sys_clk(unsigned long dummy);
+#include <linux/stringify.h>
 #endif
 #define CONFIG_SYS_CLK_FREQ    get_board_sys_clk(0)
 
index 5f358c13eae695547dd662026df253e93886a60e..53ae961837a485beb8611206a092603767fd458f 100644 (file)
@@ -11,6 +11,8 @@
 #ifndef __T1024QDS_H
 #define __T1024QDS_H
 
+#include <linux/stringify.h>
+
 /* High Level Configuration Options */
 #define CONFIG_SYS_BOOK3E_HV           /* Category E.HV supported */
 #define CONFIG_ENABLE_36BIT_PHYS
index c96d6e5f35e07b1986090e648ba8418668901be3..f5d9657444de185886014465bed96694e40addfd 100644 (file)
@@ -11,6 +11,8 @@
 #ifndef __T1024RDB_H
 #define __T1024RDB_H
 
+#include <linux/stringify.h>
+
 /* High Level Configuration Options */
 #define CONFIG_SYS_BOOK3E_HV           /* Category E.HV supported */
 #define CONFIG_ENABLE_36BIT_PHYS
index ca6ae776fa41659fb7d1c1342324f8e390f06b08..7ad018b6d7156b3925c3e8457ac30abbc44d8b6f 100644 (file)
@@ -24,6 +24,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 /*
  * T1040 QDS board configuration file
  */
index aa7bf7d1193c50734f0b0598371dc8319dacffe6..4237dfcd6c9f2cffa1138ee2f7ec0af26c93a40a 100644 (file)
@@ -7,6 +7,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 /*
  * T104x RDB board configuration file
  */
index aed2e87a1a1186d9279320e917cea3baa88be8e5..c54f7f53e575eaae6c5c674247128494c7cece3d 100644 (file)
@@ -11,6 +11,8 @@
 #ifndef __T208xQDS_H
 #define __T208xQDS_H
 
+#include <linux/stringify.h>
+
 #define CONFIG_ICS307_REFCLK_HZ 25000000  /* ICS307 ref clk freq */
 #if defined(CONFIG_ARCH_T2080)
 #define CONFIG_FSL_SATA_V2
index 619b287258f7185a38dcad2db01b3da38106a424..70eafc3e288ea2b05aff7498b3b9ab7b6a63f350 100644 (file)
@@ -11,6 +11,8 @@
 #ifndef __T2080RDB_H
 #define __T2080RDB_H
 
+#include <linux/stringify.h>
+
 #define CONFIG_ICS307_REFCLK_HZ 25000000  /* ICS307 ref clk freq */
 #define CONFIG_FSL_SATA_V2
 
index 5f91a52bbe9bf5021d30e210e8be4d2064665815..d92af7202bc29bcaa5e910c605d3f1d29d7f7ddd 100644 (file)
@@ -9,6 +9,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 #define CONFIG_FSL_SATA_V2
 #define CONFIG_PCIE4
 
index f051998b0fffb1a9d0d3d5e57eafa10f4e8d1b90..fcfd3b0b4b88126161084abd52eea81c48d389d3 100644 (file)
@@ -10,6 +10,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 #define CONFIG_FSL_SATA_V2
 #define CONFIG_PCIE4
 
index 5086077afb5a67bc8e1b85a1d8a6f96fbd6f3dc6..cfc9567332e94d584a07ab4c8894aded759b4182 100644 (file)
@@ -13,6 +13,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 /*** Arcturus FirmWare Environment */
 
 #define MAX_SERIAL_SIZE 15
index 034eb07eaa99c32cb98cec4b3701d5924c0597e9..6f03058a785e68defb4facaf776fbe5f95843189 100644 (file)
@@ -8,6 +8,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 #include "mx6_common.h"
 
 #undef CONFIG_DISPLAY_BOARDINFO
index c26cf89f5ff7f526174ff77b4fbf12d4267bd82a..cecd485e20554ef8fa9680bc2a329739e0fb4d8c 100644 (file)
@@ -9,6 +9,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 #define CONFIG_ENV_VERSION     10
 #define CONFIG_BOARD_NAME apf27
 
index 85bfacb7acc09c997071c1ff4248e62be692614e..51ecf4173b3cfa5e47c309aec792715ee276e698 100644 (file)
@@ -10,6 +10,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 /*
  * SoC must be defined first, before hardware.h is included.
  * In this case SoC is defined in boards.cfg.
                 AT91_WDT_MR_WDD(0xfff))
 
 #endif
+#include <linux/stringify.h>
 #endif
 
 /* NAND flash */
index 7ee569521e648928e46fd0cf87c62aefa19a921e..706217fef9a4d013f23c0a1feff7a8303dc0a847 100644 (file)
@@ -63,9 +63,6 @@
        "bootargs_mmc=root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait\0"
 
 /* Ethernet */
-#define CONFIG_KS8851_MLL
-#define CONFIG_KS8851_MLL_BASEADDR     0x30000000 /* use NCS2 */
-
 #define CONFIG_SYS_LOAD_ADDR           0x22000000 /* load address */
 
 /* USB host */
index ba5eb7a4a8aa724627af87c78eb9b446c7347b1a..5f6bf62524a9f6efda8dde9065708ee7865114ad 100644 (file)
@@ -15,6 +15,7 @@
 
 #ifndef __ASSEMBLY__
 
+#include <linux/stringify.h>
 #include <linux/types.h>
 
 struct bcmstb_boot_parameters {
@@ -129,7 +130,6 @@ extern phys_addr_t prior_stage_fdt_address;
 #define CONFIG_CMD_ASKENV
 #define CONFIG_CMD_CACHE
 #define CONFIG_CMD_EXT2
-#define CONFIG_CMD_MMC
 
 /*
  * Flash configuration.
index 3019b97d9299f78c55ac94c37661d1899d2b1bf8..68931c1358e3b9f50e926bb3c1ecb060b8215e45 100644 (file)
@@ -13,6 +13,7 @@
 
 #include <configs/bur_cfg_common.h>
 #include <configs/bur_am335x_common.h>
+#include <linux/stringify.h>
 /* ------------------------------------------------------------------------- */
 /* memory */
 #define CONFIG_SYS_MALLOC_LEN          (5 * 1024 * 1024)
index 4bff349a03287f6d5c7c558729e08f2546945038..5aa68d1d4695b7a311febc7d892f4752fe4d3299 100644 (file)
@@ -14,6 +14,7 @@
 
 #include <configs/bur_cfg_common.h>
 #include <configs/bur_am335x_common.h>
+#include <linux/stringify.h>
 /* ------------------------------------------------------------------------- */
 #define CONFIG_BOARD_TYPES
 
index 006663373bafcc6a400ebf91f4677ab289de13c4..9db011358eba178c050fb61572514fee71aef221 100644 (file)
@@ -13,6 +13,7 @@
 
 #include <configs/bur_cfg_common.h>
 #include <configs/bur_am335x_common.h>
+#include <linux/stringify.h>
 /* ------------------------------------------------------------------------- */
 #if !defined(CONFIG_AM335X_LCD)
 #define CONFIG_AM335X_LCD
index bd4456aa02e94f6c6ae3cc8091d31fa5ab356aaa..fccc9b18c0a8de7374aecb8d1d771fc765f68d9c 100644 (file)
@@ -12,6 +12,8 @@
 #ifndef __CONFIG_CGTQMX6EVAL_H
 #define __CONFIG_CGTQMX6EVAL_H
 
+#include <linux/stringify.h>
+
 #include "mx6_common.h"
 
 #define CONFIG_MACH_TYPE       4122
index 53ff830e8190225215a015b0395f0c6ffcf1dca0..459e0d9d5ed13ff6ca0f52a8440033073d07050c 100644 (file)
@@ -6,6 +6,8 @@
 #ifndef _CONFIG_CLEARFOG_H
 #define _CONFIG_CLEARFOG_H
 
+#include <linux/stringify.h>
+
 /*
  * High Level Configuration Options (easy to change)
  */
index 03bb1701f9d957c3822b6009562172f19d28224c..da9226e2fbedafaca45d94853a4a89c8d81f3cb7 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <asm/arch/imx-regs.h>
 #include <linux/sizes.h>
+#include <linux/stringify.h>
 
 #define CONFIG_REMAKE_ELF
 
index 2d649e6e219f09599e33b55b84083e2992035e32..3d248ef4eff04705d64501e28543d677a693b8f1 100644 (file)
@@ -8,6 +8,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 #include "mx6_common.h"
 
 #undef CONFIG_DISPLAY_BOARDINFO
index 5fbe77320189f19eb920df73da77e03141aaca8b..34d268e0610cbcc746f30938ba3113344ddebb7c 100644 (file)
@@ -26,6 +26,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 #ifdef CONFIG_SDCARD
 #define CONFIG_RAMBOOT_SDCARD
 #endif
index 091f3c07d1d2c940ca95d20f736226fcbd42b574..a49f9056c588b85a4aa7efcbee4c87d1f057a132 100644 (file)
@@ -10,6 +10,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 #include "../board/freescale/common/ics307_clk.h"
 
 #ifdef CONFIG_RAMBOOT_PBL
index 9ab92e699dc49fbc3af8a8f4f35a8bc6b99715bc..052e6018a3fd637ea5d1b1ed69ff7f46d80c8367 100644 (file)
@@ -6,6 +6,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 #if !defined(CONFIG_ARCH_P5020) && !defined(CONFIG_ARCH_P5040)
 #error Must call Cyrus CONFIG with a specific CPU enabled.
 #endif
index 15d6884ca5d4df28a0753089dc48b9e23d2305c9..d933f79e34e3f2c36f4b1e9b1843f6df082403c3 100644 (file)
@@ -7,6 +7,7 @@
 #define __DART_6UL_H
 
 #include <linux/sizes.h>
+#include <linux/stringify.h>
 #include "mx6_common.h"
 
 /* SPL options */
index fe63bcaaa6204ba429fb30bf07454478adba33b0..f7b96e48258e0350e740366a72d1a45924c8432c 100644 (file)
@@ -8,6 +8,8 @@
 #ifndef __EL6Q_COMMON_CONFIG_H
 #define __EL6Q_COMMON_CONFIG_H
 
+#include <linux/stringify.h>
+
 #define CONFIG_BOARD_NAME              EL6Q
 
 #include "mx6_common.h"
index 5ae2b427cad285a7b1dbfa802ecb48494e8d45e4..bb34a9e83b004eecaaf8382ec4f313eb077c5104 100644 (file)
@@ -14,6 +14,7 @@
 
 #include <asm/arch/cpu.h>              /* get chip and board defs */
 #include <linux/sizes.h>
+#include <linux/stringify.h>
 
 #define CONFIG_SKIP_LOWLEVEL_INIT
 
index f5ee65cb8a02a90f105b2157893ed326f928f906..78d213624825b63a51ea4e82690060a45cc72378 100644 (file)
@@ -9,6 +9,10 @@
 #ifndef __CONFIG_H__
 #define __CONFIG_H__
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 /* ARM asynchronous clock */
 #define CONFIG_SYS_AT91_SLOW_CLOCK     32768
 #define CONFIG_SYS_AT91_MAIN_CLOCK     12000000        /* 12 MHz crystal */
index f0ca8e2f16174db5da38d0000da0a62866563916..671c3d291d3acf7d979c445f2f3921c698ca239b 100644 (file)
@@ -7,6 +7,7 @@
 #define _CONFIG_HELIOS4_H
 
 #include <linux/sizes.h>
+#include <linux/stringify.h>
 
 /*
  * High Level Configuration Options (easy to change)
index bf1feb8708cef8afe380548ad39d383460ff9f6d..76c4ee9777282225ba9b52a5305c71e422ff484b 100644 (file)
@@ -8,6 +8,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 /*
  * High Level Configuration Options
  */
index 3274ff64377b13ec0c9973e22eef4a1872cc1fdc..bcd8aee7c323ce62a3e8fea274f39ec4a55c8cc7 100644 (file)
@@ -11,6 +11,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 /*
  * High Level Configuration Options
  */
index 69b7f3378eba636bb8419ca0a393df83adf74bdf..72ae89c5f6e3ffe6c5b7fcbb3f0a08b63570eaf8 100644 (file)
@@ -10,6 +10,7 @@
 #define __IMX6_ENGICAM_CONFIG_H
 
 #include <linux/sizes.h>
+#include <linux/stringify.h>
 #include "mx6_common.h"
 
 /* Size of malloc() pool */
index 5982522ecaf857eb6ec4e31c7dcbecc4832039b2..901a1bed6dd1ceb5c639227b6c71827157165b1e 100644 (file)
@@ -7,6 +7,7 @@
 #define __IMX8MM_EVK_H
 
 #include <linux/sizes.h>
+#include <linux/stringify.h>
 #include <asm/arch/imx-regs.h>
 
 #ifdef CONFIG_SECURE_BOOT
index 395ddf5816b58158ac6dd58f5a6b3b889a961b37..a07440c73ba88cda96b5b4b464b38b90c0974f57 100644 (file)
@@ -7,6 +7,7 @@
 #define __IMX8MN_EVK_H
 
 #include <linux/sizes.h>
+#include <linux/stringify.h>
 #include <asm/arch/imx-regs.h>
 
 #ifdef CONFIG_SECURE_BOOT
index 80e57389614d0853c4d9dff53c7dc041f510086f..b346154fb3f7a3242886ad81ab67d7d611315472 100644 (file)
@@ -7,6 +7,7 @@
 #define __IMX8MP_EVK_H
 
 #include <linux/sizes.h>
+#include <linux/stringify.h>
 #include <asm/arch/imx-regs.h>
 
 #ifdef CONFIG_SECURE_BOOT
index 724d572c228f065c20e2b6cfd2c5e87f8650e67e..94183269cd678773522cdab066bd9e1bc4859d8e 100644 (file)
@@ -7,6 +7,7 @@
 #define __IMX8M_EVK_H
 
 #include <linux/sizes.h>
+#include <linux/stringify.h>
 #include <asm/arch/imx-regs.h>
 
 #define CONFIG_SPL_MAX_SIZE            (124 * 1024)
 
 #define CONFIG_IMX_BOOTAUX
 
-#define CONFIG_CMD_MMC
-
 #define CONFIG_SYS_FSL_USDHC_NUM       2
 #define CONFIG_SYS_FSL_ESDHC_ADDR       0
 
index 4fa48c05785726f97c50e6c82c9b8734bb55342c..72edbc74ec1988a8a6b2b54eb1659f9056132eae 100644 (file)
 
 #define CONFIG_IMX_BOOTAUX
 
-#define CONFIG_CMD_MMC
-
 #define CONFIG_SYS_FSL_USDHC_NUM       2
 #define CONFIG_SYS_FSL_ESDHC_ADDR       0
 
index 22d80f1747b310aa3263557b8a2ba5c6597ac233..d7dd3e21a39bc73ca8abe5e9b30e785fd3fb2f14 100644 (file)
@@ -7,6 +7,7 @@
 #define __IMX8QM_MEK_H
 
 #include <linux/sizes.h>
+#include <linux/stringify.h>
 #include <asm/arch/imx-regs.h>
 
 #ifdef CONFIG_SPL_BUILD
index b59641e37fc2cfd7ed84903779da6cf9431f4fe9..eebb8dc0117a674b5cb1783b215aa6f4c1df67f5 100644 (file)
@@ -7,6 +7,7 @@
 #define __IMX8QM_ROM7720_H
 
 #include <linux/sizes.h>
+#include <linux/stringify.h>
 #include <asm/arch/imx-regs.h>
 #define CONFIG_REMAKE_ELF
 
 #define CONFIG_FEC_XCV_TYPE            RGMII
 #define FEC_QUIRK_ENET_MAC
 
+#include <linux/stringify.h>
 #endif /* __IMX8QM_ROM7720_H */
index 341e93e61e747610662c630a4c3fd81130c8100f..a2046e1bebaf957d496eedd8985a4b2eeba5f1c8 100644 (file)
@@ -7,6 +7,7 @@
 #define __IMX8QXP_MEK_H
 
 #include <linux/sizes.h>
+#include <linux/stringify.h>
 #include <asm/arch/imx-regs.h>
 
 #ifdef CONFIG_SPL_BUILD
index e690d8f39da45b571435b95ea0b8138e21ba1aab..e9e3981060ba6732a2ac1ca0031c80a8e251ae1f 100644 (file)
@@ -7,6 +7,8 @@
 #ifndef __CONFIG_KEYMILE_H
 #define __CONFIG_KEYMILE_H
 
+#include <linux/stringify.h>
+
 /*
  * Miscellaneous configurable options
  */
index dfb78c50f4b1102edbbe9905c636de6a7d7f69fe..451baf8b80230c503bd123db0d2e93d0d13ff91a 100644 (file)
@@ -1,6 +1,7 @@
 /*
  * Internal Definitions
  */
+#include <linux/stringify.h>
 #define BOOTFLASH_START        0xF0000000
 
 /*
index fa9d7b5dfa0e0d4465f7b86225fe45bc6f4f1502..79edfa728a54e3471e405ca8972f5f55d234ccc5 100644 (file)
 
 #ifndef __ASSEMBLY__
 #include <asm/arch/gpio.h>
+#include <linux/delay.h>
+#include <linux/stringify.h>
 extern void __set_direction(unsigned pin, int high);
 void set_sda(int state);
 void set_scl(int state);
index fa7d5896f58a7c68cef91a22db8c26ad7e8eba37..f9a125fcb06a18fa1f2e5a2b127e41d754c7fd96 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <asm/arch/imx-regs.h>
 #include <linux/sizes.h>
+#include <linux/stringify.h>
 #include "mx6_common.h"
 
 /* SPL options */
index e9baa2a8b66c663707fea25aeb267259353d6e16..3bea9a9186860c637190bc7c155e920259994dcf 100644 (file)
 #define CONFIG_LAYERSCAPE_NS_ACCESS
 
 /* Size of malloc() pool */
-#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128 * 1024)
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 1024 * 1024)
 
 /*SPI device */
-#if defined(CONFIG_QSPI_BOOT) || defined(CONFIG_TFABOOT)
 #define CONFIG_SYS_FMAN_FW_ADDR                0x400d0000
-#define CONFIG_SPI_FLASH_SPANSION
-#define CONFIG_FSL_SPI_INTERFACE
-#define CONFIG_SF_DATAFLASH
-
-#define QSPI0_AMBA_BASE                0x40000000
-#define CONFIG_SPI_FLASH_SPANSION
-
-#define FSL_QSPI_FLASH_SIZE            SZ_64M
-#define FSL_QSPI_FLASH_NUM             2
-
-/*
- * Environment
- */
-#define CONFIG_ENV_OVERWRITE
-#endif
+#define CONFIG_SYS_FSL_QSPI_BASE       0x40000000
 
 /* SATA */
 #define CONFIG_SCSI_AHCI_PLAT
index 97d3eb2f3d330ac7d4ae50af0ce1b2cf89d08dde..1ea6548015d726fce91d476f85e3c86ce6e9f7aa 100644 (file)
@@ -34,9 +34,6 @@
        func(DHCP, dhcp, na)
 #endif
 
-#undef FSL_QSPI_FLASH_SIZE
-#define FSL_QSPI_FLASH_SIZE            SZ_16M
-
 /*  MMC  */
 #ifdef CONFIG_MMC
 #define CONFIG_SYS_FSL_MMC_HAS_CAPBLT_VS33
index c9d116d4d56d517be0eec68d7bb1c8353856a0c0..8fb75650e2cbca38d53ced4efb67e18b00a9fa07 100644 (file)
@@ -15,9 +15,6 @@
 #define CONFIG_SYS_SDRAM_SIZE          0x40000000
 #define CONFIG_CMD_MEMINFO
 
-
-/* ENV */
-#define CONFIG_SYS_FSL_QSPI_BASE       0x40000000
 /*
  * I2C IO expander
  */
index 912345b2ef34f6efcc0bb3d2dd850919b7a09492..6e94a2a4c9aa688693d030d4d8162d56bf2676ae 100644 (file)
 /*
  * MMC
  */
-#define CONFIG_CMD_MMC
 
 /* SATA */
 #define CONFIG_SCSI_AHCI_PLAT
 /* SPI */
 #if defined(CONFIG_QSPI_BOOT) || defined(CONFIG_SD_BOOT_QSPI)
 #define CONFIG_SPI_FLASH_SPANSION
-
-/* QSPI */
-#define QSPI0_AMBA_BASE                        0x40000000
-#define FSL_QSPI_FLASH_SIZE            (1 << 24)
-#define FSL_QSPI_FLASH_NUM             2
-#define CONFIG_SPI_FLASH_SPANSION
 #endif
 
 /* DM SPI */
index 031bc6f172fe3b325feeff9e00f4b0c4c4755ef9..e069467b53ea88ea6e135bc9b60047918fdbfe7b 100644 (file)
@@ -363,20 +363,9 @@ unsigned long get_board_ddr_clk(void);
  * MMC
  */
 
-/* SPI */
-#if defined(CONFIG_QSPI_BOOT) || defined(CONFIG_SD_BOOT_QSPI)
-/* QSPI */
-#define QSPI0_AMBA_BASE                        0x40000000
-#define FSL_QSPI_FLASH_SIZE            (1 << 24)
-#define FSL_QSPI_FLASH_NUM             2
-
-/* DSPI */
-
 /* DM SPI */
 #if defined(CONFIG_FSL_DSPI) || defined(CONFIG_FSL_QSPI)
 #define CONFIG_DM_SPI_FLASH
-#define CONFIG_SPI_FLASH_DATAFLASH
-#endif
 #endif
 
 /*
index cb56037a412d66f69692dd3f6e63d2385cff12bd..53a10ba4dd6b34369e325b0ed0f013d004a7a948 100644 (file)
  * MMC
  */
 
-/* SPI */
-#if defined(CONFIG_QSPI_BOOT) || defined(CONFIG_SD_BOOT_QSPI)
-/* QSPI */
-#define QSPI0_AMBA_BASE                        0x40000000
-#define FSL_QSPI_FLASH_SIZE            (1 << 24)
-#define FSL_QSPI_FLASH_NUM             2
-
-/* DSPI */
-#endif
-
 /* DM SPI */
 #if defined(CONFIG_FSL_DSPI) || defined(CONFIG_FSL_QSPI)
 #define CONFIG_DM_SPI_FLASH
index 95bf5fa1024999ab5f01195848dcba903e245d87..46baeb0d0dd577d9973318bcaa19f1481df94879 100644 (file)
@@ -376,16 +376,6 @@ unsigned long get_board_ddr_clk(void);
 #define VDD_MV_MIN                     819
 #define VDD_MV_MAX                     1212
 
-/* QSPI device */
-#if defined(CONFIG_TFABOOT) || \
-       (defined(CONFIG_QSPI_BOOT) || defined(CONFIG_SD_BOOT_QSPI))
-#ifdef CONFIG_FSL_QSPI
-#define CONFIG_SPI_FLASH_SPANSION
-#define FSL_QSPI_FLASH_SIZE            (1 << 24)
-#define FSL_QSPI_FLASH_NUM             2
-#endif
-#endif
-
 /*
  * Miscellaneous configurable options
  */
index 4ccd3b05609e379d2b940276d664912f72f7a04d..44e7fc3a72c340ea2af1956b5d33493577645fbc 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0+ */
 /*
- * Copyright 2019 NXP
+ * Copyright 2019-2020 NXP
  */
 
 #ifndef __LS1046AFRWY_H__
 /*
  * Environment
  */
-#define CONFIG_ENV_OVERWRITE
-
 #define CONFIG_SYS_MMC_ENV_DEV         0
-
 #define CONFIG_SYS_FSL_QSPI_BASE       0x40000000
 
+#ifndef CONFIG_SPL_BUILD
+#undef BOOT_TARGET_DEVICES
+#define BOOT_TARGET_DEVICES(func) \
+       func(MMC, mmc, 0) \
+       func(USB, usb, 0) \
+       func(DHCP, dhcp, na)
+#endif
+
 /* FMan */
 #ifdef CONFIG_SYS_DPAA_FMAN
 #define CONFIG_FMAN_ENET
 
 #endif
 
-/* QSPI device */
-#ifdef CONFIG_FSL_QSPI
-#define FSL_QSPI_FLASH_SIZE            SZ_64M
-#define FSL_QSPI_FLASH_NUM             1
-#endif
-
 #undef CONFIG_BOOTCOMMAND
 #define QSPI_NOR_BOOTCOMMAND "run distro_bootcmd; run qspi_bootcmd; "  \
                           "env exists secureboot && esbc_halt;;"
index ff0d5fad9c2fc852588ea2dc43ac97371da86e47..969d2c540bafccdbc6ae2ea0924b2918e08126b0 100644 (file)
@@ -41,16 +41,6 @@ unsigned long get_board_ddr_clk(void);
 #define CONFIG_SPI_FLASH_EON           /* cs2 */
 #endif
 
-/* QSPI */
-#if defined(CONFIG_TFABOOT) || \
-       defined(CONFIG_QSPI_BOOT) || defined(CONFIG_SD_BOOT_QSPI)
-#ifdef CONFIG_FSL_QSPI
-#define CONFIG_SPI_FLASH_SPANSION
-#define FSL_QSPI_FLASH_SIZE            (1 << 24)
-#define FSL_QSPI_FLASH_NUM             2
-#endif
-#endif
-
 #ifdef CONFIG_SYS_DPAA_FMAN
 #define RGMII_PHY1_ADDR                0x1
 #define RGMII_PHY2_ADDR                0x2
@@ -419,16 +409,7 @@ unsigned long get_board_ddr_clk(void);
 /*
  * Environment
  */
-#define CONFIG_ENV_OVERWRITE
-
-#ifdef CONFIG_TFABOOT
 #define CONFIG_SYS_MMC_ENV_DEV         0
-#else
-#ifdef CONFIG_NAND_BOOT
-#elif defined(CONFIG_SD_BOOT)
-#define CONFIG_SYS_MMC_ENV_DEV         0
-#endif
-#endif
 
 #define CONFIG_CMDLINE_TAG
 
index 1093761992488bd087eff52b1c75747f0dd630c3..fe8108dae037c935c14d3790a0d6e4cb1637ee70 100644 (file)
 /*
  * Environment
  */
-#ifndef SPL_NO_ENV
-#define CONFIG_ENV_OVERWRITE
-#endif
-
-#ifdef CONFIG_TFABOOT
 #define CONFIG_SYS_MMC_ENV_DEV         0
-
 #define CONFIG_SYS_FSL_QSPI_BASE        0x40000000
-#else
-#if defined(CONFIG_SD_BOOT)
-#define CONFIG_SYS_MMC_ENV_DEV         0
-#endif
-#endif
 
 #define AQR105_IRQ_MASK                        0x80000000
 /* FMan */
 
 #endif
 
-/* QSPI device */
-#ifndef SPL_NO_QSPI
-#ifdef CONFIG_FSL_QSPI
-#define CONFIG_SPI_FLASH_SPANSION
-#define FSL_QSPI_FLASH_SIZE            (1 << 26)
-#define FSL_QSPI_FLASH_NUM             2
-#endif
-#endif
-
 #ifndef SPL_NO_MISC
 #undef CONFIG_BOOTCOMMAND
 #ifdef CONFIG_TFABOOT
index ab5b396e1a5991933ee5c96b650cfc883ab174c1..a7373429ba73fd23bb305c81f8eb1ddb0db2d9b6 100644 (file)
 #endif
 
 /* Link Definitions */
-#ifdef CONFIG_TFABOOT
-#define CONFIG_SYS_FSL_QSPI_BASE       0x20000000
-#else
-#ifdef CONFIG_QSPI_BOOT
 #define CONFIG_SYS_FSL_QSPI_BASE       0x20000000
-#endif
-#endif
 
 #define CONFIG_SKIP_LOWLEVEL_INIT
 
index 3bfd1d2a86aa259c35317127c900ddf14d83849a..2bc910a3fc85e3134462e05a8fe16a41be5f1c99 100644 (file)
@@ -358,14 +358,6 @@ unsigned long get_board_ddr_clk(void);
 #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      3
 #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  5
 
-/* QSPI device */
-#if defined(CONFIG_TFABOOT) || \
-       defined(CONFIG_QSPI_BOOT) || defined(CONFIG_SD_BOOT_QSPI)
-#define FSL_QSPI_FLASH_SIZE            (1 << 26)
-#define FSL_QSPI_FLASH_NUM             2
-
-#endif
-
 #ifdef CONFIG_FSL_DSPI
 #define CONFIG_SPI_FLASH_STMICRO
 #define CONFIG_SPI_FLASH_SST
index dec1ff9d7d41152bfd8c6ef6033522fe1a4bdfa1..475207358f759335305d2d84aa952099dda42786 100644 (file)
@@ -8,16 +8,7 @@
 
 #include "ls1088a_common.h"
 
-#ifdef CONFIG_TFABOOT
 #define CONFIG_SYS_MMC_ENV_DEV         0
-#else
-#if defined(CONFIG_QSPI_BOOT)
-#elif defined(CONFIG_SD_BOOT)
-#define CONFIG_SYS_MMC_ENV_DEV         0
-#else
-#define CONFIG_ENV_IS_IN_FLASH
-#endif
-#endif /* CONFIG_TFABOOT */
 
 #if defined(CONFIG_TFABOOT) || \
        defined(CONFIG_QSPI_BOOT) || defined(CONFIG_SD_BOOT_QSPI)
 #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      3
 #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  5
 
-#ifndef SPL_NO_QSPI
-/* QSPI device */
-#if defined(CONFIG_TFABOOT) || \
-       defined(CONFIG_QSPI_BOOT) || defined(CONFIG_SD_BOOT_QSPI)
-#define FSL_QSPI_FLASH_SIZE            (1 << 26)
-#define FSL_QSPI_FLASH_NUM             2
-#endif
-#endif
-
 #define CONFIG_CMD_MEMINFO
 
 #ifdef CONFIG_SPL_BUILD
index 8ab892b5c3fa7094748b9695739c778ad64384b1..751325ad6998f9a2df0e69f5197cc8d2d669a111 100644 (file)
@@ -276,7 +276,6 @@ unsigned long get_board_ddr_clk(void);
 #define I2C_MUX_CH_DEFAULT      0x8
 
 /* SPI */
-#if defined(CONFIG_FSL_QSPI) || defined(CONFIG_FSL_DSPI)
 #ifdef CONFIG_FSL_DSPI
 #define CONFIG_SPI_FLASH_STMICRO
 #define CONFIG_SPI_FLASH_SST
@@ -285,8 +284,6 @@ unsigned long get_board_ddr_clk(void);
 
 #ifdef CONFIG_FSL_QSPI
 #define CONFIG_SPI_FLASH_SPANSION
-#define FSL_QSPI_FLASH_SIZE            (1 << 26) /* 64MB */
-#define FSL_QSPI_FLASH_NUM             4
 #endif
 /*
  * Verify QSPI when boot from NAND, QIXIS brdcfg9 need configure.
@@ -295,8 +292,6 @@ unsigned long get_board_ddr_clk(void);
  */
 #define FSL_QIXIS_BRDCFG9_QSPI         0x1
 
-#endif
-
 /*
  * MMC
  */
index c1819d22a84ff6293f6ea905337bb00a617feac4..006a4c97fb1b4de4321accb901c719e2b5a38033 100644 (file)
@@ -273,13 +273,9 @@ unsigned long get_board_sys_clk(void);
 #define I2C_MUX_CH_DEFAULT      0x8
 
 /* SPI */
-#if defined(CONFIG_FSL_QSPI) || defined(CONFIG_FSL_DSPI)
-#ifdef CONFIG_FSL_DSPI
+#if defined(CONFIG_FSL_DSPI)
 #define CONFIG_SPI_FLASH_STMICRO
 #endif
-#define FSL_QSPI_FLASH_SIZE            SZ_64M  /* 64MB */
-#define FSL_QSPI_FLASH_NUM             2
-#endif
 
 /*
  * RTC configuration
@@ -321,11 +317,15 @@ unsigned long get_board_sys_clk(void);
 #include <config_distro_bootcmd.h>
 
 #ifdef CONFIG_TFABOOT
-#define QSPI_MC_INIT_CMD                       \
-       "env exists secureboot && "             \
-       "esbc_validate 0x20640000 && "          \
-       "esbc_validate 0x20680000;"             \
-       "fsl_mc start mc 0x20a00000 0x20e00000 \0"
+#define QSPI_MC_INIT_CMD                               \
+       "sf probe 0:0; "                                \
+       "sf read 0x80640000 0x640000 0x80000; "         \
+       "env exists secureboot && "                     \
+       "esbc_validate 0x80640000 && "                  \
+       "esbc_validate 0x80680000; "                    \
+       "sf read 0x80a00000 0xa00000 0x300000; "        \
+       "sf read 0x80e00000 0xe00000 0x100000; "        \
+       "fsl_mc start mc 0x80a00000 0x80e00000 \0"
 #define SD_MC_INIT_CMD                         \
        "mmcinfo;mmc read 0x80a00000 0x5000 0x1200;" \
        "mmc read 0x80e00000 0x7000 0x800;"     \
@@ -342,11 +342,15 @@ unsigned long get_board_sys_clk(void);
        "fsl_mc start mc 0x580a00000 0x580e00000 \0"
 #else
 #ifdef CONFIG_QSPI_BOOT
-#define MC_INIT_CMD                            \
-       "mcinitcmd=env exists secureboot && "   \
-       "esbc_validate 0x20640000 && "          \
-       "esbc_validate 0x20680000;"             \
-       "fsl_mc start mc 0x20a00000 0x20e00000 \0"
+#define MC_INIT_CMD                                    \
+       "mcinitcmd=sf probe 0:0; "                      \
+       "sf read 0x80640000 0x640000 0x80000; "         \
+       "env exists secureboot && "                     \
+       "esbc_validate 0x80640000 && "                  \
+       "esbc_validate 0x80680000; "                    \
+       "sf read 0x80a00000 0xa00000 0x300000; "        \
+       "sf read 0x80e00000 0xe00000 0x100000; "        \
+       "fsl_mc start mc 0x80a00000 0x80e00000 \0"
 #elif defined(CONFIG_SD_BOOT)
 #define MC_INIT_CMD                             \
        "mcinitcmd=mmcinfo;mmc read 0x80000000 0x5000 0x800;" \
@@ -500,10 +504,13 @@ unsigned long get_board_sys_clk(void);
 
 #ifdef CONFIG_TFABOOT
 #define QSPI_NOR_BOOTCOMMAND                                           \
+                       "sf probe 0:0; "                                \
+                       "sf read 0x806c0000 0x6c0000 0x40000; "         \
                        "env exists mcinitcmd && env exists secureboot "\
-                       "&& esbc_validate 0x206C0000; "                 \
+                       "&& esbc_validate 0x806c0000; "                 \
+                       "sf read 0x80d00000 0xd00000 0x100000; "        \
                        "env exists mcinitcmd && "                      \
-                       "fsl_mc lazyapply dpl 0x20d00000; "             \
+                       "fsl_mc lazyapply dpl 0x80d00000; "             \
                        "run distro_bootcmd;run qspi_bootcmd; "         \
                        "env exists secureboot && esbc_halt;"
 
@@ -530,10 +537,13 @@ unsigned long get_board_sys_clk(void);
 #ifdef CONFIG_QSPI_BOOT
 /* Try to boot an on-QSPI kernel first, then do normal distro boot */
 #define CONFIG_BOOTCOMMAND                                             \
+                       "sf probe 0:0; "                                \
+                       "sf read 0x806c0000 0x6c0000 0x40000; "         \
                        "env exists mcinitcmd && env exists secureboot "\
-                       "&& esbc_validate 0x206C0000; "                 \
+                       "&& esbc_validate 0x806C0000; "                 \
+                       "sf read 0x80d00000 0xd00000 0x100000; "        \
                        "env exists mcinitcmd && "                      \
-                       "fsl_mc lazyapply dpl 0x20d00000; "             \
+                       "fsl_mc lazyapply dpl 0x80d00000; "             \
                        "run distro_bootcmd;run qspi_bootcmd; "         \
                        "env exists secureboot && esbc_halt;"
 #elif defined(CONFIG_SD_BOOT)
index 97578cdb823cb8e99cda90e78a4b313435071230..d6b21f11c39a695c350618aaea48388e46986416 100644 (file)
@@ -8,6 +8,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 /*
  * High Level Configuration Options
  */
index e3a00ed1cf4e9e61f7995a6af23719134a46933e..d61c90a431561585eef69bfce0d7e1328614ec4e 100644 (file)
@@ -16,6 +16,8 @@
 #ifndef _MV_COMMON_H
 #define _MV_COMMON_H
 
+#include <linux/stringify.h>
+
 /*
  * High Level Configuration Options (easy to change)
  */
index 07b1e06f4f4d77c3c758c25a70c59661ce441719..0715509ec8803da3f6fd54005f6f1da322148e5f 100644 (file)
@@ -6,6 +6,8 @@
 #ifndef __MX6_COMMON_H
 #define __MX6_COMMON_H
 
+#include <linux/stringify.h>
+
 #if (defined(CONFIG_MX6UL) || defined(CONFIG_MX6ULL))
 #define CONFIG_SC_TIMER_CLK 8000000 /* 8Mhz */
 #define COUNTER_FREQUENCY CONFIG_SC_TIMER_CLK
index e10e7688e9f7dba18037161ceada6c1c6288f530..2ccf44e57392a7025112fc6da42cf25cffabf5c2 100644 (file)
@@ -7,6 +7,8 @@
 #ifndef __MX6CUBOXI_CONFIG_H
 #define __MX6CUBOXI_CONFIG_H
 
+#include <linux/stringify.h>
+
 #include "mx6_common.h"
 
 #include "imx6_spl.h"
index cb0253c306caf0fef27b789339a46911d6b81fc6..6cea26a58ded49062382bf527ebae8cc40ee11e1 100644 (file)
@@ -8,6 +8,8 @@
 #ifndef __MX6QSABRE_COMMON_CONFIG_H
 #define __MX6QSABRE_COMMON_CONFIG_H
 
+#include <linux/stringify.h>
+
 #include "mx6_common.h"
 
 #define CONFIG_IMX_THERMAL
index 03c0c88e505dd9173dfd186b4b94a2da584113b7..61c637d26cf8002ed949fabc9b382f7373145089 100644 (file)
 #define CONFIG_MXC_USB_PORTSC          (PORT_PTS_UTMI | PORT_PTS_PTW)
 #endif
 
+#include <linux/stringify.h>
 #endif                         /* __CONFIG_H */
index 8633756dd0e3acff9a375c7d3f54b0bb6fa46bf7..3eea9de986d2a79c82e8b85b5c16f220294f899c 100644 (file)
@@ -8,6 +8,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 #include "mx6_common.h"
 
 #ifdef CONFIG_SPL
index 7927779cc84f53aafad430440c4c8553b389df8d..8466abf3d5192f0a4a12aecdf238716404d79f0d 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <asm/arch/imx-regs.h>
 #include <linux/sizes.h>
+#include <linux/stringify.h>
 #include "mx6_common.h"
 #include <asm/mach-imx/gpio.h>
 
index 7e3a5c7cf3bb81da52fd10ce8e1e6d8033e0a842..9cedb96a6b4f31a18fa6f82584e2e85356267345 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <asm/arch/imx-regs.h>
 #include <linux/sizes.h>
+#include <linux/stringify.h>
 #include "mx6_common.h"
 #include <asm/mach-imx/gpio.h>
 
index b6ded774cc401ea947a368a2f390d16eba441934..cc07e858d57eff316becb34cff23a737dc7b2d00 100644 (file)
@@ -9,6 +9,7 @@
 #define __MX7_COMMON_H
 
 #include <linux/sizes.h>
+#include <linux/stringify.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/mach-imx/gpio.h>
 
index a5ca5f9c4b256499bd70843e3939023f059f0da8..f3081f4f33f88df5f454ab06c70dc94cea036bec 100644 (file)
        DISTRO_BOOT_DEV_DHCP(func)
 
 #include <config_distro_bootcmd.h>
+#include <linux/stringify.h>
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
        "console=ttymxc1\0" \
index af278ded9a44be95e382b7e4bcb546d4cb30d47f..219e5d216bbcd196b7576e69479e399838424688 100644 (file)
@@ -10,6 +10,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 #if defined(CONFIG_TARGET_P1020MBG)
 #define CONFIG_BOARDNAME "P1020MBG-PC"
 #define CONFIG_VSC7385_ENET
index e99b41cc8849c6cfeb39998dece3b4f7c295cdde..d731f9c8fa70a899241354760f717d9c0559c99f 100644 (file)
@@ -9,6 +9,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 #if defined(CONFIG_TWR_P1025)
 #define CONFIG_BOARDNAME "TWR-P1025"
 #define CONFIG_SYS_LBC_LBCR    0x00080000      /* Conversion of LBC addr */
index 6aa77f1f5e9f0ad1ae6de3f9244a0f7c7af42d58..4ae955d9cac639ec8cd1c09aaaffa4c23cd894a8 100644 (file)
@@ -10,6 +10,7 @@
 #define __PCL063_ULL_H
 
 #include <linux/sizes.h>
+#include <linux/stringify.h>
 #include "mx6_common.h"
 
 /* SPL options */
index 0bfaaf784a6c5ab944afbf3f13ba199588366158..ba7aad8b05fda89dc367f6d96a145293da16139e 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <asm/arch/imx-regs.h>
 #include <linux/sizes.h>
+#include <linux/stringify.h>
 
 #define CONFIG_SKIP_LOWLEVEL_INIT
 
index b0e2f6ce33a9090b22d3aed6a862faf3465d1c67..8bfada75f7381e04bb54e87f2fca9abb37213bef 100644 (file)
        func(DHCP, dhcp, na)
 
 #include <config_distro_bootcmd.h>
+#include <linux/stringify.h>
 
 #define CONFIG_SYS_LOAD_ADDR           CONFIG_LOADADDR
 #define CONFIG_SYS_HZ                  1000
index 9a987f41500befaa447cd28ccdbccd9289cc8b9b..3ca3ec61126d651dadd86454a341ea2faad1294d 100644 (file)
        func(DHCP, dhcp, na)
 
 #include <config_distro_bootcmd.h>
+#include <linux/stringify.h>
 
 #define CONFIG_SYS_LOAD_ADDR           CONFIG_LOADADDR
 #define CONFIG_SYS_HZ                  1000
index a2f80cdd6711e9b1454c52cdff72fa7e1d4aaaf5..f4da38a7dbe56fda10421e568d9b20d4cbc5a5b7 100644 (file)
 
 #define CONFIG_IMX_BOOTAUX
 
-#define CONFIG_CMD_MMC
-
 #define CONFIG_SYS_FSL_USDHC_NUM       2
 #define CONFIG_SYS_FSL_ESDHC_ADDR      0
 
index 5f52c1e4f601844b340f0ebdacd7ecc581984c65..7a72cf6049986c0b08b49e7c4c040b0485ccd3a6 100644 (file)
@@ -6,6 +6,11 @@
 #ifndef __ROCKPRO64_RK3399_H
 #define __ROCKPRO64_RK3399_H
 
+#define ROCKCHIP_DEVICE_SETTINGS \
+       "stdin=serial,usbkbd\0" \
+       "stdout=serial,vidconsole\0" \
+       "stderr=serial,vidconsole\0"
+
 #include <configs/rk3399_common.h>
 
 #define CONFIG_SYS_MMC_ENV_DEV 0
index 5b1504d2dfe86145a36b12f67bb067b8f1786733..5821d21688f53af2815a903b95e1136c86c44700 100644 (file)
@@ -68,7 +68,6 @@
 #define CONFIG_SYS_FSL_ESDHC_ADDR      USDHC_BASE_ADDR
 #define CONFIG_SYS_FSL_ESDHC_NUM       1
 
-#define CONFIG_CMD_MMC
 /* #define CONFIG_CMD_EXT2 EXT2 Support */
 
 #if 0
        "run distro_bootcmd"
 
 #include <config_distro_bootcmd.h>
+#include <linux/stringify.h>
 
 /* Miscellaneous configurable options */
 #define CONFIG_SYS_PROMPT              "=> "
index 7fda63f71a5eb91451d64863b2082b4f492b0186..484a15df797b60ffc958aca415d224e39d09e6cc 100644 (file)
        BOOTENV \
        MEM_LAYOUT_ENV_SETTINGS
 
-#define CONFIG_GZIP_COMPRESSED
-#define CONFIG_BZIP2
-
 #ifndef CONFIG_SPL_BUILD
 #define CONFIG_SYS_IDE_MAXBUS          1
 #define CONFIG_SYS_ATA_IDE0_OFFSET     0
index f5462549a52654ec2505c8b08b238b3c0f5f294c..55c4bff28ae47acb3069c18dcdabd6f2ebe99550 100644 (file)
@@ -12,6 +12,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 /*
  * Top level Makefile configuration choices
  */
index 9b95054308410e7ec3e8221cc5d36d8673798d0d..be36e9f586922956324ab0a86cd00d7d29f0d313 100644 (file)
 
 /* Command line configuration */
 #define CONFIG_CMD_MII
-#define CONFIG_CMD_MMC
 #define CONFIG_CMD_CACHE
 
 #endif /* __CONFIG_H */
index b059100ccd420b7ace0ba3f3661ac219cf996b99..ad4c3c0786c11c89ff961b6c152a0f138afaf620 100644 (file)
@@ -7,6 +7,7 @@
 #define __CONFIG_SOCFPGA_SECU1_H__
 
 #include <asm/arch/base_addr_ac5.h>
+#include <linux/stringify.h>
 
 /* Call misc_init_r */
 #define CONFIG_MISC_INIT_R
index 0579a00d40a3b854836c0a426f7dbc63a660b14c..07c9745eba92b1e20fb490cf5b0852c478e53a81 100644 (file)
@@ -5,6 +5,8 @@
 #ifndef __CONFIG_SOCFPGA_COMMON_H__
 #define __CONFIG_SOCFPGA_COMMON_H__
 
+#include <linux/stringify.h>
+
 /*
  * High level configuration
  */
index 61f7b254b59a957dfc3c910678b690d43ac0e679..7237ec95e345e782752cb50b53fb6635b981091c 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <asm/arch/base_addr_s10.h>
 #include <asm/arch/handoff_s10.h>
+#include <linux/stringify.h>
 
 /*
  * U-Boot general configurations
index d5f710be592f0f05289e8a1152aec86b99c0248d..4ad3401c04def2ba27b0a7a661d22fbe53a5eed9 100644 (file)
@@ -8,6 +8,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 /*
  * High Level Configuration Options
  */
diff --git a/include/configs/suvd3.h b/include/configs/suvd3.h
deleted file mode 100644 (file)
index d747079..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright (C) 2006 Freescale Semiconductor, Inc.
- *                    Dave Liu <daveliu@freescale.com>
- *
- * Copyright (C) 2007 Logic Product Development, Inc.
- *                    Peter Barada <peterb@logicpd.com>
- *
- * Copyright (C) 2007 MontaVista Software, Inc.
- *                    Anton Vorontsov <avorontsov@ru.mvista.com>
- *
- * (C) Copyright 2010
- * Heiko Schocher, DENX Software Engineering, hs@denx.de.
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-/*
- * High Level Configuration Options
- */
-
-#define CONFIG_HOSTNAME                "suvd3"
-
-/* include common defines/options for all Keymile boards */
-#include "km/keymile-common.h"
-#include "km/km-powerpc.h"
-#include "km/km-mpc83xx.h"
-#include "km/km-mpc832x.h"
-
-#define CONFIG_SYS_MAMR        (MxMR_GPL_x4DIS | \
-                        0x0000c000 | \
-                        MxMR_WLFx_2X)
-#endif /* __CONFIG_H */
index 895cd0324e17b24f7b428c646f727cfb58310de7..13ab1cc4bf516c8eeae5ca5fdc30d3148256b44d 100644 (file)
@@ -9,6 +9,8 @@
 #define __CONFIG_H
 
 #include <linux/kconfig.h>
+#include <linux/stringify.h>
+
 /* SPL */
 /* #if defined(CONFIG_SPL_BUILD) */
 /* common IMX6 SPL configuration */
index 163cbbb54edd4abebdd04b3ddd4bf2367c6b67c0..54f472d59507e2e450ac70f5b12743dd3e2888c6 100644 (file)
@@ -70,6 +70,7 @@
        func(DHCP, dhcp, na)
 
 #include <config_distro_bootcmd.h>
+#include <linux/stringify.h>
 
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
index bdacd81885351a4c799036dfe652f18475fcd898..81b171ea1688f624dfc5fd70c5a2c9669aa1948f 100644 (file)
@@ -12,6 +12,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 /*
  * High Level Configuration Options
  */
index 739219e8f8ba0a78e9d87634ae141733cf44a0fc..0ef2de33cc8ad2da139031bf983a84bd2277134a 100644 (file)
@@ -9,6 +9,7 @@
 #define __CONFIG_H
 
 #include <asm/arch/imx-regs.h>
+#include <linux/stringify.h>
 
 #define CONFIG_SYS_FSL_CLK
 
index 9d2bd7b278283a70cf7e31dde86648fa53245995..2b0576e1e6e56cf4d42cb505823a77136fc6e8e3 100644 (file)
        func(DHCP, dhcp, na)
 
 #include <config_distro_bootcmd.h>
+#include <linux/stringify.h>
 
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
index fea07056b06192d95bfd1d3fd915248d7dc1a1a8..aecf2737f8aa27f0592649e7d4057d6b4fa2f546 100644 (file)
@@ -7,6 +7,7 @@
 #define __CONFIG_H__
 
 #include <asm/hardware.h>
+#include <linux/stringify.h>
 
 /* ARM asynchronous clock */
 #define CONFIG_SYS_AT91_SLOW_CLOCK  32768
index 6c9991fa039857af2ab7e3550e94624ad9d66f49..d3bb92964e04b300076413e0cd768b1df81baaf0 100644 (file)
@@ -51,6 +51,7 @@
 #define CONFIG_SYS_SCRATCH_VA  0xe0000000
 
 #ifndef __ASSEMBLY__
+#include <linux/stringify.h>
 extern unsigned long get_board_sys_clk(unsigned long dummy);
 #endif
 
index 6d847cb79398a5d01d8dbeb39ce0f41b950d8feb..7262c86908a23c27d875d37016fb165ffa8bf15a 100644 (file)
@@ -47,6 +47,7 @@
 #define CONFIG_VERY_BIG_RAM
 
 #ifndef __ASSEMBLY__
+#include <linux/stringify.h>
 extern unsigned long get_board_sys_clk(unsigned long dummy);
 extern unsigned long get_board_ddr_clk(unsigned long dummy);
 #endif
index 106269bae08b3edf970075c85a513c7e48ac681c..b9c9ac4ba8dfffe5c57aa59aeed198480e558bdc 100644 (file)
@@ -46,6 +46,7 @@
 #define CONFIG_VERY_BIG_RAM
 
 #ifndef __ASSEMBLY__
+#include <linux/stringify.h>
 extern unsigned long get_board_sys_clk(unsigned long dummy);
 extern unsigned long get_board_ddr_clk(unsigned long dummy);
 #endif
index f701f02bfef0b5258d1451e7d9c40084244e7771..8aa825daa4724e7c88ff2ade5c0ad8b2b3d88cef 100644 (file)
@@ -18,7 +18,7 @@
 int cpu_status(u32 nr);
 int cpu_reset(u32 nr);
 int cpu_disable(u32 nr);
-int cpu_release(u32 nr, int argc, char * const argv[]);
+int cpu_release(u32 nr, int argc, char *const argv[]);
 
 static inline int cpumask_next(int cpu, unsigned int mask)
 {
index 2f0e335ec09f6c2d922b8e1636a12b7361741a45..6fa450593605cbbbd50b9583b156b236c80ccbec 100644 (file)
@@ -159,20 +159,139 @@ struct dfu_entity {
 };
 
 #ifdef CONFIG_SET_DFU_ALT_INFO
+/**
+ * set_dfu_alt_info() - set dfu_alt_info environment variable
+ *
+ * If CONFIG_SET_DFU_ALT_INFO=y, this board specific function is called to set
+ * environment variable dfu_alt_info.
+ *
+ * @interface: dfu interface, e.g. "mmc" or "nand"
+ * @devstr:    device number as string
+ */
 void set_dfu_alt_info(char *interface, char *devstr);
 #endif
+
+/**
+ * dfu_alt_init() - initialize buffer for dfu entities
+ *
+ * @num:       number of entities
+ * @dfu:       on return allocated buffer
+ * Return:     0 on success
+ */
 int dfu_alt_init(int num, struct dfu_entity **dfu);
+
+/**
+ * dfu_alt_add() - add alternate to dfu entity buffer
+ *
+ * @dfu:       dfu entity
+ * @interface: dfu interface, e.g. "mmc" or "nand"
+ * @devstr:    device number as string
+ * @s:         string description of alternate
+ * Return:     0 on success
+ */
 int dfu_alt_add(struct dfu_entity *dfu, char *interface, char *devstr, char *s);
+
+/**
+ * dfu_config_entities() - initialize dfu entitities from envirionment
+ *
+ * Initialize the list of dfu entities from environment variable dfu_alt_info.
+ * The list must be freed by calling dfu_free_entities(). This function bypasses
+ * set_dfu_alt_info(). So typically you should use dfu_init_env_entities()
+ * instead.
+ *
+ * See function :c:func:`dfu_free_entities`
+ * See function :c:func:`dfu_init_env_entities`
+ *
+ * @s:         string with alternates
+ * @interface: interface, e.g. "mmc" or "nand"
+ * @devstr:    device number as string
+ * Return:     0 on success, a negative error code otherwise
+ */
 int dfu_config_entities(char *s, char *interface, char *devstr);
+
+/**
+ * dfu_free_entities() - free the list of dfu entities
+ *
+ * Free the internal list of dfu entities.
+ *
+ * See function :c:func:`dfu_init_env_entities`
+ */
 void dfu_free_entities(void);
+
+/**
+ * dfu_show_entities() - print DFU alt settings list
+ */
 void dfu_show_entities(void);
+
+/**
+ * dfu_get_alt_number() - get number of alternates
+ *
+ * Return: number of alternates in the dfu entities list
+ */
 int dfu_get_alt_number(void);
-const char *dfu_get_dev_type(enum dfu_device_type t);
-const char *dfu_get_layout(enum dfu_layout l);
+
+/**
+ * dfu_get_dev_type() - get string representation for dfu device type
+ *
+ * @type:      device type
+ * Return:     string representation for device type
+ */
+const char *dfu_get_dev_type(enum dfu_device_type type);
+
+/**
+ * dfu_get_layout() - get string describing layout
+ *
+ * Internally layouts are represented by enum dfu_device_type values. This
+ * function translates an enum value to a human readable string, e.g. DFU_FS_FAT
+ * is translated to "FAT".
+ *
+ * @layout:    layout
+ * Result:     string representation for the layout
+ */
+const char *dfu_get_layout(enum dfu_layout layout);
+
+/**
+ * dfu_get_entity() - get dfu entity for an alternate id
+ *
+ * @alt:       alternate id
+ * Return:     dfu entity
+ */
 struct dfu_entity *dfu_get_entity(int alt);
+
 char *dfu_extract_token(char** e, int *n);
+
+/**
+ * dfu_get_alt() - get alternate id for filename
+ *
+ * Environment variable dfu_alt_info defines the write destinations (alternates)
+ * for different filenames. This function get the index of the alternate for
+ * a filename. If an absolute filename is provided (starting with '/'), the
+ * directory path is ignored.
+ *
+ * @name:      filename
+ * Return:     id of the alternate or negative error number (-ENODEV)
+ */
 int dfu_get_alt(char *name);
+
+/**
+ * dfu_init_env_entities() - initialize dfu entitities from envirionment
+ *
+ * Initialize the list of dfu entities from environment variable dfu_alt_info.
+ * The list must be freed by calling dfu_free_entities().
+ * @interface and @devstr are used to select the relevant set of alternates
+ * from environment variable dfu_alt_info.
+ *
+ * If environment variable dfu_alt_info specifies the interface and the device,
+ * use NULL for @interface and @devstr.
+ *
+ * See function :c:func:`dfu_free_entities`
+ *
+ * @interface: interface, e.g. "mmc" or "nand"
+ * @devstr:    device number as string
+ * Return:     0 on success, a negative error code otherwise
+ */
 int dfu_init_env_entities(char *interface, char *devstr);
+
 unsigned char *dfu_get_buf(struct dfu_entity *dfu);
 unsigned char *dfu_free_buf(void);
 unsigned long dfu_get_buf_size(void);
@@ -183,29 +302,79 @@ unsigned long dfu_get_timeout(void);
 void dfu_set_timeout(unsigned long);
 #endif
 
+/**
+ * dfu_read() - read from dfu entity
+ *
+ * The block sequence number @blk_seq_num is a 16 bit counter that must be
+ * incremented with each call for the same dfu entity @de.
+ *
+ * @de:                        dfu entity
+ * @buf:               buffer
+ * @size:              size of buffer
+ * @blk_seq_num:       block sequence number
+ * Return:             0 for success, -1 for error
+ */
 int dfu_read(struct dfu_entity *de, void *buf, int size, int blk_seq_num);
+
+/**
+ * dfu_write() - write to dfu entity
+ *
+ * Write the contents of a buffer @buf to the dfu entity @de. After writing
+ * the last block call dfu_flush(). If a file is already loaded completely
+ * into memory it is preferable to use dfu_write_from_mem_addr() which takes
+ * care of blockwise transfer and flushing.
+ *
+ * The block sequence number @blk_seq_num is a 16 bit counter that must be
+ * incremented with each call for the same dfu entity @de.
+ *
+ * See function :c:func:`dfu_flush`
+ * See function :c:func:`dfu_write_from_mem_addr`
+ *
+ * @de:                        dfu entity
+ * @buf:               buffer
+ * @size:              size of buffer
+ * @blk_seq_num:       block sequence number
+ * Return:             0 for success, -1 for error
+ */
 int dfu_write(struct dfu_entity *de, void *buf, int size, int blk_seq_num);
+
+/**
+ * dfu_flush() - flush to dfu entity
+ *
+ * This function has to be called after writing the last block to the dfu
+ * entity @de.
+ *
+ * The block sequence number @blk_seq_num is a 16 bit counter that must be
+ * incremented with each call for the same dfu entity @de.
+ *
+ * See function :c:func:`dfu_write`
+ *
+ * @de:                        dfu entity
+ * @buf:               ignored
+ * @size:              ignored
+ * @blk_seq_num:       block sequence number of last write - ignored
+ * Return:             0 for success, -1 for error
+ */
 int dfu_flush(struct dfu_entity *de, void *buf, int size, int blk_seq_num);
 
 /**
- * dfu_initiated_callback - weak callback called on DFU transaction start
+ * dfu_initiated_callback() - weak callback called on DFU transaction start
  *
  * It is a callback function called by DFU stack when a DFU transaction is
  * initiated. This function allows to manage some board specific behavior on
  * DFU targets.
  *
- * @param dfu - pointer to the dfu_entity, which should be initialized
- *
+ * @dfu:       pointer to the dfu_entity, which should be initialized
  */
 void dfu_initiated_callback(struct dfu_entity *dfu);
+
 /**
- * dfu_flush_callback - weak callback called at the end of the DFU write
+ * dfu_flush_callback() - weak callback called at the end of the DFU write
  *
  * It is a callback function called by DFU stack after DFU manifestation.
  * This function allows to manage some board specific behavior on DFU targets
  *
- * @param dfu - pointer to the dfu_entity, which should be flushed
- *
+ * @dfu:       pointer to the dfu_entity, which should be flushed
  */
 void dfu_flush_callback(struct dfu_entity *dfu);
 
@@ -217,10 +386,11 @@ void dfu_transaction_cleanup(struct dfu_entity *dfu);
  *                  It should be NULL when not used.
  */
 extern struct dfu_entity *dfu_defer_flush;
+
 /**
- * dfu_get_defer_flush - get current value of dfu_defer_flush pointer
+ * dfu_get_defer_flush() - get current value of dfu_defer_flush pointer
  *
- * @return - value of the dfu_defer_flush pointer
+ * Return:     value of the dfu_defer_flush pointer
  */
 static inline struct dfu_entity *dfu_get_defer_flush(void)
 {
@@ -228,9 +398,9 @@ static inline struct dfu_entity *dfu_get_defer_flush(void)
 }
 
 /**
- * dfu_set_defer_flush - set the dfu_defer_flush pointer
+ * dfu_set_defer_flush() - set the dfu_defer_flush pointer
  *
- * @param dfu - pointer to the dfu_entity, which should be written
+ * @dfu:       pointer to the dfu_entity, which should be written
  */
 static inline void dfu_set_defer_flush(struct dfu_entity *dfu)
 {
@@ -238,16 +408,16 @@ static inline void dfu_set_defer_flush(struct dfu_entity *dfu)
 }
 
 /**
- * dfu_write_from_mem_addr - write data from memory to DFU managed medium
+ * dfu_write_from_mem_addr() - write data from memory to DFU managed medium
  *
  * This function adds support for writing data starting from fixed memory
  * address (like $loadaddr) to dfu managed medium (e.g. NAND, MMC, file system)
  *
- * @param dfu - dfu entity to which we want to store data
- * @param buf - fixed memory addres from where data starts
- * @param size - number of bytes to write
+ * @dfu:       dfu entity to which we want to store data
+ * @buf:       fixed memory address from where data starts
+ * @size:      number of bytes to write
  *
- * @return - 0 on success, other value on failure
+ * Return:     0 on success, other value on failure
  */
 int dfu_write_from_mem_addr(struct dfu_entity *dfu, void *buf, int size);
 
@@ -324,17 +494,17 @@ static inline int dfu_fill_entity_virt(struct dfu_entity *dfu, char *devstr,
 #endif
 
 /**
- * dfu_tftp_write - Write TFTP data to DFU medium
+ * dfu_tftp_write() - write TFTP data to DFU medium
  *
  * This function is storing data received via TFTP on DFU supported medium.
  *
- * @param dfu_entity_name - name of DFU entity to write
- * @param addr - address of data buffer to write
- * @param len - number of bytes
- * @param interface - destination DFU medium (e.g. "mmc")
- * @param devstring - instance number of destination DFU medium (e.g. "1")
+ * @dfu_entity_name:   name of DFU entity to write
+ * @addr:              address of data buffer to write
+ * @len:               number of bytes
+ * @interface:         destination DFU medium (e.g. "mmc")
+ * @devstring:         instance number of destination DFU medium (e.g. "1")
  *
- * @return 0 on success, otherwise error code
+ * Return:             0 on success, otherwise error code
  */
 #if CONFIG_IS_ENABLED(DFU_TFTP)
 int dfu_tftp_write(char *dfu_entity_name, unsigned int addr, unsigned int len,
index 5b247b5b0613a22f3b227ae1715f7cfbff0f989c..6ff591977b1445f46d1c80ab74b53c2821417c83 100644 (file)
@@ -9,6 +9,7 @@
 #ifndef _DMA_H_
 #define _DMA_H_
 
+#include <linux/bitops.h>
 #include <linux/errno.h>
 #include <linux/types.h>
 
index e2856f12683603739080492b679fd46ff21d7477..3989a9bb5369d3016e2e1299d6a44c2f60db8d56 100644 (file)
@@ -8,6 +8,7 @@
 #define __DWC3_STI_UBOOT_H_
 
 /* glue registers */
+#include <linux/bitops.h>
 #define CLKRST_CTRL            0x00
 #define AUX_CLK_EN             BIT(0)
 #define SW_PIPEW_RESET_N       BIT(4)
index f06720dc0d98eecc1f343b0362141899ebb1cf6c..d8a8355a0adaf4fa6606ca4864f109c84d4e2c74 100644 (file)
@@ -7,8 +7,10 @@
 #ifndef __DWMMC_HW_H
 #define __DWMMC_HW_H
 
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <mmc.h>
+#include <linux/bitops.h>
 
 #define DWMCI_CTRL             0x000
 #define        DWMCI_PWREN             0x004
index e12697a5d5b0113924db550b4720b21697b2729c..f986aad8777757c2e1deef4a9c0c847d37334f19 100644 (file)
@@ -196,6 +196,7 @@ enum efi_mem_type {
 #define EFI_MEMORY_MORE_RELIABLE \
                                ((u64)0x0000000000010000ULL)    /* higher reliability */
 #define EFI_MEMORY_RO          ((u64)0x0000000000020000ULL)    /* read-only */
+#define EFI_MEMORY_SP          ((u64)0x0000000000040000ULL)    /* specific-purpose memory (SPM) */
 #define EFI_MEMORY_RUNTIME     ((u64)0x8000000000000000ULL)    /* range requires runtime mapping */
 #define EFI_MEM_DESC_VERSION   1
 
index 77d6bf2660b9f38060f8b5a2db41f45d7d3f7506..759d9118758e7db4dc23a5e61ff7d28a06351945 100644 (file)
@@ -457,6 +457,7 @@ struct efi_device_path_acpi_path {
 #  define DEVICE_PATH_SUB_TYPE_MSG_USB         0x05
 #  define DEVICE_PATH_SUB_TYPE_MSG_MAC_ADDR    0x0b
 #  define DEVICE_PATH_SUB_TYPE_MSG_USB_CLASS   0x0f
+#  define DEVICE_PATH_SUB_TYPE_MSG_SATA                0x12
 #  define DEVICE_PATH_SUB_TYPE_MSG_NVME                0x17
 #  define DEVICE_PATH_SUB_TYPE_MSG_SD          0x1a
 #  define DEVICE_PATH_SUB_TYPE_MSG_MMC         0x1d
@@ -480,6 +481,13 @@ struct efi_device_path_usb {
        u8 usb_interface;
 } __packed;
 
+struct efi_device_path_sata {
+       struct efi_device_path dp;
+       u16 hba_port;
+       u16 port_multiplier_port;
+       u16 logical_unit_number;
+} __packed;
+
 struct efi_device_path_mac_addr {
        struct efi_device_path dp;
        struct efi_mac_addr mac;
index 75c20e4679507791119409562925b5077ff42b14..9533df26dc9e60bad72f0c21f47fa2ef1cd61439 100644 (file)
@@ -9,11 +9,15 @@
 #define _EFI_LOADER_H 1
 
 #include <common.h>
+#include <blk.h>
+#include <log.h>
 #include <part_efi.h>
 #include <efi_api.h>
 #include <image.h>
 #include <pe.h>
 
+struct blk_desc;
+
 static inline int guidcmp(const void *g1, const void *g2)
 {
        return memcmp(g1, g2, sizeof(efi_guid_t));
@@ -41,6 +45,10 @@ static inline void *guidcpy(void *dst, const void *src)
 #define U_BOOT_HOST_DEV_GUID \
        EFI_GUID(0xbbe4e671, 0x5773, 0x4ea1, \
                 0x9a, 0xab, 0x3a, 0x7d, 0xbf, 0x40, 0xc4, 0x82)
+/* GUID used as root for virtio devices */
+#define U_BOOT_VIRTIO_DEV_GUID \
+       EFI_GUID(0x63293792, 0xadf5, 0x9325, \
+                0xb9, 0x9f, 0x4e, 0x0e, 0x45, 0x5c, 0x1b, 0x1e)
 
 /* Use internal device tree when starting UEFI application */
 #define EFI_FDT_USE_INTERNAL NULL
index e7c51986df84d986e1b1ac4dd70cd29d4574b77d..b04e746d6176bd37abc30fe775d4dcf97742e886 100644 (file)
@@ -9,7 +9,7 @@
 #ifndef _ELF_H
 #define _ELF_H
 
-#ifndef __ASSEMBLER__
+#ifndef __ASSEMBLY__
 #include "compiler.h"
 
 /* This version doesn't work for 64-bit ABIs - Erik */
@@ -690,7 +690,7 @@ unsigned long elf_hash(const unsigned char *name);
 #define R_RISCV_64             2
 #define R_RISCV_RELATIVE       3
 
-#ifndef __ASSEMBLER__
+#ifndef __ASSEMBLY__
 int valid_elf_image(unsigned long addr);
 unsigned long load_elf64_image_phdr(unsigned long addr);
 unsigned long load_elf64_image_shdr(unsigned long addr);
index 56a8bae39a0a642967af3575a8a437d76549a424..a657927e06f5d4c275a8a7739dbaf5e534c170e8 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <env_callback.h>
+#include <linux/stringify.h>
 
 #ifdef DEFAULT_ENV_INSTANCE_EMBEDDED
 env_t embedded_environment __UBOOT_ENV_SECTION__(environment) = {
index 11a57af0a4bd17abac9eec18621bbb905018d235..a9d8f28d4679a731c6e4f61bec1056c659264ee3 100644 (file)
@@ -9,6 +9,8 @@
 #ifndef __TI_BOOT_H
 #define __TI_BOOT_H
 
+#include <linux/stringify.h>
+
 #ifndef CONSOLEDEV
 #define CONSOLEDEV "ttyS2"
 #endif
index fc0249022398b0c8837ae3d4d878df5de5e63f35..a7f21e73d7530972eefb3255d799ed45de30c82f 100644 (file)
@@ -5,10 +5,12 @@
  * Copyright (c) 2018, Heinrich Schuchardt <xypron.glpk@gmx.de>
  */
 
-static int do_exception(cmd_tbl_t *cmdtp, int flag, int argc,
-                       char * const argv[])
+#include <command.h>
+
+static int do_exception(struct cmd_tbl *cmdtp, int flag, int argc,
+                       char *const argv[])
 {
-       cmd_tbl_t *cp;
+       struct cmd_tbl *cp;
 
        if (argc != 2)
                return CMD_RET_USAGE;
@@ -25,12 +27,12 @@ static int do_exception(cmd_tbl_t *cmdtp, int flag, int argc,
        return CMD_RET_USAGE;
 }
 
-static int exception_complete(int argc, char * const argv[], char last_char,
+static int exception_complete(int argc, char *const argv[], char last_char,
                              int maxv, char *cmdv[])
 {
        int len = 0;
        int i = 0;
-       cmd_tbl_t *cmdtp;
+       struct cmd_tbl *cmdtp;
 
        switch (argc) {
        case 1:
index cbd16fc5185ea68675c323b511bb0bc7366c238c..b30055409164534b7d59e0a0e5f139271d49d254 100644 (file)
@@ -2,6 +2,7 @@
 #define __EXPORTS_H__
 
 #include <irq_func.h>
+#include <linux/delay.h>
 
 #ifndef __ASSEMBLY__
 #ifdef CONFIG_PHY_AQUANTIA
@@ -11,6 +12,7 @@
 
 #include <irq_func.h>
 
+struct cmd_tbl;
 struct spi_slave;
 
 /* Set up the jump table for use by the API */
index 34585d407d06d9aa861ace1144af627163b77554..cb5d9cc0a5c050dcc0fa33b22eb72c4a8555205d 100644 (file)
@@ -28,6 +28,8 @@
 #define __EXT4__
 #include <ext_common.h>
 
+struct disk_partition;
+
 #define EXT4_INDEX_FL          0x00001000 /* Inode uses hash tree index */
 #define EXT4_EXTENTS_FL                0x00080000 /* Inode uses extents */
 #define EXT4_EXT_MAGIC                 0xf30a
@@ -152,11 +154,11 @@ int ext4fs_exists(const char *filename);
 int ext4fs_size(const char *filename, loff_t *size);
 void ext4fs_free_node(struct ext2fs_node *node, struct ext2fs_node *currroot);
 int ext4fs_devread(lbaint_t sector, int byte_offset, int byte_len, char *buf);
-void ext4fs_set_blk_dev(struct blk_desc *rbdd, disk_partition_t *info);
+void ext4fs_set_blk_dev(struct blk_desc *rbdd, struct disk_partition *info);
 long int read_allocated_block(struct ext2_inode *inode, int fileblock,
                              struct ext_block_cache *cache);
 int ext4fs_probe(struct blk_desc *fs_dev_desc,
-                disk_partition_t *fs_partition);
+                struct disk_partition *fs_partition);
 int ext4_read_file(const char *filename, void *buf, loff_t offset, loff_t len,
                   loff_t *actread);
 int ext4_read_superblock(char *buffer);
index 1c10c50474840cbeccde7c97e7b7fa8e2a762940..bc3324172a082abb34faff16f025cb0fd335df8a 100644 (file)
@@ -19,7 +19,9 @@
 
 #ifndef __EXT_COMMON__
 #define __EXT_COMMON__
-#include <command.h>
+
+struct cmd_tbl;
+
 #define SECTOR_SIZE            0x200
 #define LOG2_SECTOR_SIZE       9
 
@@ -210,11 +212,11 @@ struct ext2_data {
 
 extern lbaint_t part_offset;
 
-int do_ext2ls(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
-int do_ext2load(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
-int do_ext4_load(cmd_tbl_t *cmdtp, int flag, int argc,
-                                       char *const argv[]);
-int do_ext4_ls(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]);
-int do_ext4_write(cmd_tbl_t *cmdtp, int flag, int argc,
-                               char *const argv[]);
+int do_ext2ls(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
+int do_ext2load(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
+int do_ext4_load(struct cmd_tbl *cmdtp, int flag, int argc,
+                char *const argv[]);
+int do_ext4_ls(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
+int do_ext4_write(struct cmd_tbl *cmdtp, int flag, int argc,
+                 char *const argv[]);
 #endif
index b4a43f82e5ec47fa04d2979ebeecd63cb15776a2..8801bd13508d7750baf16428ae647bb8c86f08fb 100644 (file)
@@ -11,6 +11,7 @@
 #define __FTPCI100_H
 
 /* AHB Control Registers */
+#include <linux/bitops.h>
 struct ftpci100_ahbc {
        unsigned int iosize;            /* 0x00 - I/O Space Size Signal */
        unsigned int prot;              /* 0x04 - AHB Protection */
index d3a359ab75b257e49874db1f550d0dc066108867..30726dab85d31396dfa36bc45c1f48906a8d6465 100644 (file)
@@ -12,6 +12,7 @@
 #ifndef __ASSEMBLY__
 
 /* sd controller register */
+#include <linux/bitops.h>
 struct ftsdc010_mmc {
        unsigned int    cmd;            /* 0x00 - command reg           */
        unsigned int    argu;           /* 0x04 - argument reg          */
index 3c979ced27a524b079be3e1c069affdcf000847b..e0e5eb339e10e9f898f3a9eac8efa3f453299ea6 100644 (file)
@@ -14,6 +14,7 @@
 #define __FTSDMC021_H
 
 #ifndef __ASSEMBLY__
+#include <linux/bitops.h>
 struct ftsdmc021 {
        unsigned int    tp1;            /* 0x00 - SDRAM Timing Parameter 1 */
        unsigned int    tp2;            /* 0x04 - SDRAM Timing Parameter 2 */
index bc139f8c88c8c7a785e016aa5f33cbdf936b0f6d..02742f92a5c879869c0fa9855b29dba724ac1858 100644 (file)
@@ -12,6 +12,8 @@
 #include <asm/byteorder.h>
 #include <fs.h>
 
+struct disk_partition;
+
 /* Maximum Long File Name length supported here is 128 UTF-16 code units */
 #define VFAT_MAXLEN_BYTES      256 /* Maximum LFN buffer in bytes */
 #define VFAT_MAXSEQ            9   /* Up to 9 of 13 2-byte UTF-16 entries */
@@ -193,7 +195,7 @@ int fat_size(const char *filename, loff_t *size);
 int file_fat_read_at(const char *filename, loff_t pos, void *buffer,
                     loff_t maxsize, loff_t *actread);
 int file_fat_read(const char *filename, void *buffer, int maxsize);
-int fat_set_blk_dev(struct blk_desc *rbdd, disk_partition_t *info);
+int fat_set_blk_dev(struct blk_desc *rbdd, struct disk_partition *info);
 int fat_register_device(struct blk_desc *dev_desc, int part_no);
 
 int file_fat_write(const char *filename, void *buf, loff_t offset, loff_t len,
index 95db001beee4afdf0e63bfdb5d20fab6ba9cd604..76ed7cd6be11c977d787f57a561ad7df52f67559 100644 (file)
@@ -6,17 +6,21 @@
 #ifndef _FB_MMC_H_
 #define _FB_MMC_H_
 
+struct blk_desc;
+struct disk_partition;
+
 /**
  * fastboot_mmc_get_part_info() - Lookup eMMC partion by name
  *
  * @part_name: Named partition to lookup
  * @dev_desc: Pointer to returned blk_desc pointer
- * @part_info: Pointer to returned disk_partition_t
+ * @part_info: Pointer to returned struct disk_partition
  * @response: Pointer to fastboot response buffer
  */
 int fastboot_mmc_get_part_info(const char *part_name,
                               struct blk_desc **dev_desc,
-                              disk_partition_t *part_info, char *response);
+                              struct disk_partition *part_info,
+                              char *response);
 
 /**
  * fastboot_mmc_flash_write() - Write image to eMMC for fastboot
index 166f29c55bbeb36ac7fa0ea6edaee6a66df8df3c..abd6d42671949a104d5ac79432a89f8c012b1fb3 100644 (file)
@@ -1155,6 +1155,11 @@ int fdtdec_set_carveout(void *blob, const char *node, const char *prop_name,
  */
 int fdtdec_setup(void);
 
+/**
+ * Perform board-specific early DT adjustments
+ */
+int fdtdec_board_setup(const void *fdt_blob);
+
 #if CONFIG_IS_ENABLED(MULTI_DTB_FIT)
 /**
  * fdtdec_resetup()  - Set up the device tree again
index 2655c72087fbea46cf3cf2a8c7ac7ad67c98044c..3bf6b22399ec920809a2d510174c9e997d9291ee 100644 (file)
@@ -84,20 +84,20 @@ typedef unsigned long flash_sect_t;
 
 /* Prototypes */
 
-extern unsigned long flash_init (void);
-extern void flash_print_info (flash_info_t *);
-extern int flash_erase (flash_info_t *, int, int);
-extern int flash_sect_erase (ulong addr_first, ulong addr_last);
-extern int flash_sect_protect (int flag, ulong addr_first, ulong addr_last);
-extern int flash_sect_roundb (ulong *addr);
-extern unsigned long flash_sector_size(flash_info_t *info, flash_sect_t sect);
-extern void flash_set_verbose(uint);
+unsigned long flash_init(void);
+void flash_print_info(flash_info_t *info);
+int flash_erase(flash_info_t *info, int s_first, int s_last);
+int flash_sect_erase(ulong addr_first, ulong addr_last);
+int flash_sect_protect(int flag, ulong addr_first, ulong addr_last);
+int flash_sect_roundb(ulong *addr);
+unsigned long flash_sector_size(flash_info_t *info, flash_sect_t sect);
+void flash_set_verbose(uint v);
 
 /* common/flash.c */
-extern void flash_protect (int flag, ulong from, ulong to, flash_info_t *info);
-extern int flash_write (char *, ulong, ulong);
-extern flash_info_t *addr2info (ulong);
-extern int write_buff (flash_info_t *info, uchar *src, ulong addr, ulong cnt);
+void flash_protect(int flag, ulong from, ulong to, flash_info_t *info);
+int flash_write(char *src, ulong addr, ulong cnt);
+flash_info_t *addr2info(ulong addr);
+int write_buff(flash_info_t *info, uchar *src, ulong addr, ulong cnt);
 
 /* drivers/mtd/cfi_mtd.c */
 #ifdef CONFIG_FLASH_CFI_MTD
index 37e35c21206e96a1dac5320f28295cc92a595e15..29f737b8c2198b1dbd6595b44f1a3f63596ed82c 100644 (file)
@@ -7,6 +7,8 @@
 
 #include <common.h>
 
+struct cmd_tbl;
+
 #define FS_TYPE_ANY    0
 #define FS_TYPE_FAT    1
 #define FS_TYPE_EXT    2
@@ -14,6 +16,8 @@
 #define FS_TYPE_UBIFS  4
 #define FS_TYPE_BTRFS  5
 
+struct blk_desc;
+
 /**
  * do_fat_fsload - Run the fatload command
  *
@@ -23,7 +27,8 @@
  * @argv: List of arguments
  * @return result (see enum command_ret_t)
  */
-int do_fat_fsload(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]);
+int do_fat_fsload(struct cmd_tbl *cmdtp, int flag, int argc,
+                 char *const argv[]);
 
 /**
  * do_ext2load - Run the ext2load command
@@ -34,7 +39,7 @@ int do_fat_fsload(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]);
  * @argv: List of arguments
  * @return result (see enum command_ret_t)
  */
-int do_ext2load(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]);
+int do_ext2load(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
 
 /*
  * Tell the fs layer which block device an partition to use for future
@@ -224,34 +229,34 @@ int fs_mkdir(const char *filename);
  * Common implementation for various filesystem commands, optionally limited
  * to a specific filesystem type via the fstype parameter.
  */
-int do_size(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
-               int fstype);
-int do_load(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
-               int fstype);
-int do_ls(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
-               int fstype);
+int do_size(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[],
+           int fstype);
+int do_load(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[],
+           int fstype);
+int do_ls(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[],
+         int fstype);
 int file_exists(const char *dev_type, const char *dev_part, const char *file,
                int fstype);
-int do_save(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
-               int fstype);
-int do_rm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
-               int fstype);
-int do_mkdir(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
-               int fstype);
-int do_ln(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
+int do_save(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[],
+           int fstype);
+int do_rm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[],
+         int fstype);
+int do_mkdir(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[],
+            int fstype);
+int do_ln(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[],
          int fstype);
 
 /*
  * Determine the UUID of the specified filesystem and print it. Optionally it is
  * possible to store the UUID directly in env.
  */
-int do_fs_uuid(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
-               int fstype);
+int do_fs_uuid(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[],
+              int fstype);
 
 /*
  * Determine the type of the specified filesystem and print it. Optionally it is
  * possible to store the type directly in env.
  */
-int do_fs_type(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
+int do_fs_type(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
 
 #endif /* _FS_H */
index 96d26032ac70726c9002e81bd2f5046e236b9081..3d4d25da960ecc82911b30e8473a9497e3c6ac16 100644 (file)
@@ -10,7 +10,7 @@
 
 #include <part.h>
 
-int fs_devread(struct blk_desc *, disk_partition_t *, lbaint_t, int, int,
+int fs_devread(struct blk_desc *, struct disk_partition *, lbaint_t, int, int,
               char *);
 
 #endif /* __U_BOOT_FS_INTERNAL_H__ */
index a4d7d85fce7d64c85365ed2bdeeb574d8894f934..6cbcd39f125c53bcf82e16dfcc93aeb1c3bc8bc4 100644 (file)
@@ -7,6 +7,7 @@
 #define __FSL_MC_H__
 
 #include <common.h>
+#include <linux/bitops.h>
 
 #define MC_CCSR_BASE_ADDR \
        ((struct mc_ccsr_registers __iomem *)0x8340000)
index 2476f40c56d6cc37dab08fefa7c59ea1bbb5e3a1..025d7a1e74b61f81b8fa02146ab8f2a759f187e1 100644 (file)
@@ -12,6 +12,8 @@
 
 #include <common_timing_params.h>
 
+struct cmd_tbl;
+
 #ifndef CONFIG_SYS_FSL_DDR_MAIN_NUM_CTRLS
 /* All controllers are for main memory */
 #define CONFIG_SYS_FSL_DDR_MAIN_NUM_CTRLS      CONFIG_SYS_NUM_DDR_CTLRS
@@ -120,7 +122,7 @@ unsigned long long fsl_ddr_interactive(fsl_ddr_info_t *pinfo, int var_is_set);
 void fsl_ddr_get_spd(generic_spd_eeprom_t *ctrl_dimms_spd,
                     unsigned int ctrl_num, unsigned int dimm_slots_per_ctrl);
 
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
 unsigned int check_fsl_memctl_config_regs(const fsl_ddr_cfg_regs_t *ddr);
 void board_add_ram_info(int use_default);
 
index 3edcc39f4e2ee338b582f8e5dd6049fad4435cd3..fd915335b2c26c9fdc6e73f5370ead00d756a5c1 100644 (file)
@@ -10,6 +10,7 @@
 #ifdef CONFIG_FSL_IFC
 #include <config.h>
 #include <common.h>
+#include <part.h>
 #ifdef CONFIG_ARM
 #include <asm/arch/soc.h>
 #endif
index 06951fccf469857c8ee83feb53ea2613bce13437..252d499e7b1a5c705ac6ae24621f42274279d943 100644 (file)
@@ -8,9 +8,10 @@
 
 #include <fsl_sec.h>
 #include <fsl_sec_mon.h>
-#include <command.h>
 #include <linux/types.h>
 
+struct cmd_tbl;
+
 #define WORD_SIZE 4
 
 /* Minimum and maximum size of RSA signature length in bits */
@@ -261,15 +262,14 @@ struct fsl_secboot_img_priv {
        uint32_t img_size;      /* ESBC Image Size */
 };
 
-int do_esbc_halt(cmd_tbl_t *cmdtp, int flag, int argc,
-                               char * const argv[]);
+int do_esbc_halt(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
 
 int fsl_secboot_validate(uintptr_t haddr, char *arg_hash_str,
        uintptr_t *img_addr_ptr);
-int fsl_secboot_blob_encap(cmd_tbl_t *cmdtp, int flag, int argc,
-       char * const argv[]);
-int fsl_secboot_blob_decap(cmd_tbl_t *cmdtp, int flag, int argc,
-       char * const argv[]);
+int fsl_secboot_blob_encap(struct cmd_tbl *cmdtp, int flag, int argc,
+                          char *const argv[]);
+int fsl_secboot_blob_decap(struct cmd_tbl *cmdtp, int flag, int argc,
+                          char *const argv[]);
 
 int fsl_check_boot_mode_secure(void);
 int fsl_setenv_chain_of_trust(void);
index 2e340673c38a601dc72beb7876123b6c7f1cfe9a..783acbb60d2a4b6ca76f9ca4d80a719426e1abb1 100644 (file)
@@ -7,6 +7,8 @@
 #ifndef __GZIP_H
 #define __GZIP_H
 
+struct blk_desc;
+
 /**
  * gzip_parse_header() - Parse a header from a gzip file
  *
index f4019a979189c62c86e65ade97337fcc634d293b..835962e7f661dae9356f4ae4258a6f44f6ff39b9 100644 (file)
@@ -6,6 +6,8 @@
 #ifndef _HASH_H
 #define _HASH_H
 
+struct cmd_tbl;
+
 /*
  * Maximum digest size for all algorithms we support. Having this value
  * avoids a malloc() or C99 local declaration in common/cmd_hash.c.
@@ -85,8 +87,8 @@ struct hash_algo {
  * @argc:              Number of arguments (arg 0 must be the command text)
  * @argv:              Arguments
  */
-int hash_command(const char *algo_name, int flags, cmd_tbl_t *cmdtp, int flag,
-                int argc, char * const argv[]);
+int hash_command(const char *algo_name, int flags, struct cmd_tbl *cmdtp,
+                int flag, int argc, char *const argv[]);
 
 /**
  * hash_block() - Hash a block according to the requested algorithm
index 059200115a8e030958350e439c3dc0f37e38c0dd..1d792db454a1c2ec6e056dc20794f93c01189e14 100644 (file)
@@ -16,6 +16,8 @@
 #ifndef _I2C_H_
 #define _I2C_H_
 
+#include <linker_lists.h>
+
 /*
  * For now there are essentially two parts to this file - driver model
  * here at the top, and the older code below (with CONFIG_SYS_I2C being
index de55b2fb573eb6a9f2a6da2523ebd990bb7f4142..ad81dad44429da7ab1b77fb8686ceb2fd2ce3ebb 100644 (file)
@@ -590,10 +590,10 @@ ulong genimg_get_kernel_addr(char * const img_addr);
 int genimg_get_format(const void *img_addr);
 int genimg_has_config(bootm_headers_t *images);
 
-int boot_get_fpga(int argc, char * const argv[], bootm_headers_t *images,
-               uint8_t arch, const ulong *ld_start, ulong * const ld_len);
-int boot_get_ramdisk(int argc, char * const argv[], bootm_headers_t *images,
-               uint8_t arch, ulong *rd_start, ulong *rd_end);
+int boot_get_fpga(int argc, char *const argv[], bootm_headers_t *images,
+                 uint8_t arch, const ulong *ld_start, ulong * const ld_len);
+int boot_get_ramdisk(int argc, char *const argv[], bootm_headers_t *images,
+                    uint8_t arch, ulong *rd_start, ulong *rd_end);
 
 /**
  * boot_get_loadable - routine to load a list of binaries to memory
@@ -616,8 +616,8 @@ int boot_get_ramdisk(int argc, char * const argv[], bootm_headers_t *images,
  *     0, if only valid images or no images are found
  *     error code, if an error occurs during fit_image_load
  */
-int boot_get_loadable(int argc, char * const argv[], bootm_headers_t *images,
-               uint8_t arch, const ulong *ld_start, ulong * const ld_len);
+int boot_get_loadable(int argc, char *const argv[], bootm_headers_t *images,
+                     uint8_t arch, const ulong *ld_start, ulong *const ld_len);
 #endif /* !USE_HOSTCC */
 
 int boot_get_setup_fit(bootm_headers_t *images, uint8_t arch,
@@ -726,7 +726,7 @@ int image_source_script(ulong addr, const char *fit_uname);
 int fit_get_node_from_config(bootm_headers_t *images, const char *prop_name,
                        ulong addr);
 
-int boot_get_fdt(int flag, int argc, char * const argv[], uint8_t arch,
+int boot_get_fdt(int flag, int argc, char *const argv[], uint8_t arch,
                 bootm_headers_t *images,
                 char **of_flat_tree, ulong *of_size);
 void boot_fdt_add_mem_rsv_regions(struct lmb *lmb, void *fdt_blob);
index b5acdd01bdb4cf0a3e45e583ad74ff7ceef8295d..41b74dc52d2ff1ee751bba9333d6f517e4f829e3 100644 (file)
@@ -8,6 +8,11 @@
 
 typedef int (*init_fnc_t)(void);
 
+#include <log.h>
+#ifdef CONFIG_EFI_APP
+#include <efi.h>
+#endif
+
 /*
  * To enable debugging. add #define DEBUG at the top of the including file.
  *
index b6ba742ad33929710be2f220bcd906ea7dec272c..616ce4451f15ad92c70466d7d9f3f43ab9bb1f4f 100644 (file)
@@ -55,7 +55,7 @@ extern int kgdb_getregs(struct pt_regs *, char *, int);
 extern void kgdb_putreg(struct pt_regs *, int, char *, int);
 extern void kgdb_putregs(struct pt_regs *, char *, int);
 extern int kgdb_trap(struct pt_regs *);
-extern void kgdb_breakpoint(int argc, char * const argv[]);
+void kgdb_breakpoint(int argc, char *const argv[]);
 
 /* these functions are provided by the platform serial driver */
 extern void kgdb_serial_init(void);
index a07c70fd485804c8544097d6ba52dbef395e96e5..6b509dce58a4fc6ffa1b0e70d938836da8014cb7 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _LINUX_BITOPS_H
 #define _LINUX_BITOPS_H
 
+#ifndef USE_HOSTCC
+
 #include <asm/types.h>
 #include <asm-generic/bitsperlong.h>
 #include <linux/compiler.h>
@@ -216,4 +218,6 @@ static inline void generic_clear_bit(int nr, volatile unsigned long *addr)
        *p &= ~mask;
 }
 
+#endif /* !USE_HOSTCC */
+
 #endif
index 171188a76f0c1d670472050f060ff0947ca696f5..712eeaef4ed915014fdb760fe09d0b545b5295c2 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef _LINUX_COMPAT_H_
 #define _LINUX_COMPAT_H_
 
+#include <log.h>
 #include <malloc.h>
 #include <linux/types.h>
 #include <linux/err.h>
index bd373b96172ba24ef2a72b9c54fb2cdadf19319d..66febc6b72125ce3f84d03c8ab2d24ffce670d73 100644 (file)
@@ -16,6 +16,7 @@
 #include <config.h>
 
 #include <dm/device.h>
+#include <linux/bitops.h>
 #include <linux/compat.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/flashchip.h>
index 34038b31f70214029381632eabcf6e2c3707e6eb..cfdf7ea29fc3dd7d3f0142d3d983e2526b6fce89 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <hexdump.h>
 #include <linux/bitops.h>
+#include <linux/bug.h>
 
 /**
  * Descriptor header, present in all types of descriptors
index 487dfe985957959be1c95b1b4f812ac1f91357a2..7b027f8bd4b7fed96d24803153ba1c5e4c43988e 100644 (file)
@@ -9,6 +9,7 @@
 #define __SOC_TI_K3_NAVSS_RINGACC_API_H_
 
 #include <dm/ofnode.h>
+#include <linux/bitops.h>
 
 /**
  * enum k3_nav_ring_mode - &struct k3_nav_ring_cfg mode
index 8c4863efe19167c019e539b77cf2856bab119e92..eb916ba10194bc51479be53d9665271cf95af4b1 100644 (file)
@@ -20,6 +20,7 @@
  * @firmware_revision: Firmware revision (not usually used).
  * @firmware_description: Firmware description (not usually used).
  */
+#include <linux/bitops.h>
 struct ti_sci_version_info {
        u8 abi_major;
        u8 abi_minor;
index cf32351134375bc4fd86d126b57f8d12a5dd2983..df65398c04e770d73cbb50d1c331d23f26fbbb0b 100644 (file)
@@ -9,10 +9,13 @@
 #ifndef __LOG_H
 #define __LOG_H
 
-#include <command.h>
+#include <stdio.h>
+#include <linker_lists.h>
 #include <dm/uclass-id.h>
 #include <linux/list.h>
 
+struct cmd_tbl;
+
 /** Log levels supported, ranging from most to least important */
 enum log_level_t {
        LOGL_EMERG = 0,         /* U-Boot is unstable */
@@ -413,7 +416,7 @@ enum log_fmt {
 };
 
 /* Handle the 'log test' command */
-int do_log_test(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]);
+int do_log_test(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
 
 /**
  * log_add_filter() - Add a new filter to a log device
index f4a63b47f33a2add60a91438c90c71710c130174..83c5163cf8e3d7b82f48f23710bcf97811d262ce 100644 (file)
@@ -16,6 +16,7 @@
 #define MIPI_DSI_H
 
 #include <mipi_display.h>
+#include <linux/bitops.h>
 
 struct mipi_dsi_host;
 struct mipi_dsi_device;
index 6a2e9739e00e6f5da69b32da37f2ba44e126e30b..82562193cc489cdfecab3136ef42f9123d041af3 100644 (file)
@@ -9,6 +9,7 @@
 #ifndef _MMC_H_
 #define _MMC_H_
 
+#include <linux/bitops.h>
 #include <linux/list.h>
 #include <linux/sizes.h>
 #include <linux/compiler.h>
index c2a185321abf0146c25f9bdd73eb0f6acbc7eaea..ea67868ea012ae29da036330186b7400f7f44180 100644 (file)
 #include <asm/e300.h>
 #endif
 
-/*
- * MPC83xx cpu provide RCR register to do reset thing specially
- */
-#define MPC83xx_RESET
-
 /*
  * System reset offset (PowerPC standard)
  */
index 82500eeb30f706ea3254cd98421212dcfeba6739..00a8ec0c78a3de8ea19604d694865d019cf2e4a6 100644 (file)
 #ifndef __NET_H__
 #define __NET_H__
 
+#include <linux/types.h>
 #include <asm/cache.h>
 #include <asm/byteorder.h>     /* for nton* / ntoh* stuff */
 #include <env.h>
+#include <log.h>
+#include <time.h>
 #include <linux/if_ether.h>
 #include <rand.h>
 
+struct bd_info;
+struct cmd_tbl;
+struct udevice;
+
 #define DEBUG_LL_STATE 0       /* Link local state machine changes */
 #define DEBUG_DEV_PKT 0                /* Packets or info directed to the device */
 #define DEBUG_NET_PKT 0                /* Packets on info on the network at large */
@@ -59,7 +66,7 @@ struct in_addr {
  * @argv: List of arguments
  * @return result (see enum command_ret_t)
  */
-int do_tftpb(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]);
+int do_tftpb(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
 
 /**
  * An incoming packet handler.
@@ -184,12 +191,12 @@ struct eth_device {
        phys_addr_t iobase;
        int state;
 
-       int (*init)(struct eth_device *, bd_t *);
+       int (*init)(struct eth_device *eth, struct bd_info *bd);
        int (*send)(struct eth_device *, void *packet, int length);
        int (*recv)(struct eth_device *);
        void (*halt)(struct eth_device *);
        int (*mcast)(struct eth_device *, const u8 *enetaddr, int join);
-       int (*write_hwaddr)(struct eth_device *);
+       int (*write_hwaddr)(struct eth_device *eth);
        struct eth_device *next;
        int index;
        void *priv;
@@ -242,7 +249,7 @@ static __always_inline void eth_halt_state_only(void)
 int eth_write_hwaddr(struct eth_device *dev, const char *base_name,
                     int eth_number);
 
-int usb_eth_initialize(bd_t *bi);
+int usb_eth_initialize(struct bd_info *bi);
 #endif
 
 int eth_initialize(void);              /* Initialize network subsystem */
index e2fece7aa1745d2176091759f1b2782dbc6329e5..80f1f96b4433a461d09923eaee6cb4f0f3cf1b48 100644 (file)
@@ -12,6 +12,7 @@
  * class_csr - block containing all the classifier control and status register.
  * Mapped on CBUS and accessible from all PE's and ARM.
  */
+#include <linux/bitops.h>
 #define CLASS_VERSION                  (CLASS_CSR_BASE_ADDR + 0x000)
 #define CLASS_TX_CTRL                  (CLASS_CSR_BASE_ADDR + 0x004)
 #define CLASS_INQ_PKTPTR               (CLASS_CSR_BASE_ADDR + 0x010)
index 53db8cc08f56ece46f56ae501d79a097c4b3b4cf..5dc21136877093a1fb6f43fcea3ab2cb3f10d6e0 100644 (file)
@@ -7,6 +7,7 @@
 #ifndef _EMAC_H_
 #define _EMAC_H_
 
+#include <linux/bitops.h>
 #define EMAC_IEVENT_REG                0x004
 #define EMAC_IMASK_REG         0x008
 #define EMAC_R_DES_ACTIVE_REG  0x010
index 36722c5e07145c9dfec0f2ba1811e18c2cdb37d6..aa4951ec0e0de4a1901cc04b0aca63edf694a4eb 100644 (file)
@@ -12,6 +12,7 @@
  * hif - PFE hif block control and status register.
  * Mapped on CBUS and accessible from all PE's and ARM.
  */
+#include <linux/bitops.h>
 #define HIF_VERSION            (HIF_BASE_ADDR + 0x00)
 #define HIF_TX_CTRL            (HIF_BASE_ADDR + 0x04)
 #define HIF_TX_CURR_BD_ADDR    (HIF_BASE_ADDR + 0x08)
index 1e1abe26caaa8e6bc29b16092234e54f2afea15c..cfe8f8ce8fc4e2ff7ffe5fc6ee45705ee5b16c55 100644 (file)
@@ -7,6 +7,7 @@
 #ifndef _TMU_CSR_H_
 #define _TMU_CSR_H_
 
+#include <linux/bitops.h>
 #define TMU_VERSION                    (TMU_CSR_BASE_ADDR + 0x000)
 #define TMU_INQ_WATERMARK              (TMU_CSR_BASE_ADDR + 0x004)
 #define TMU_PHY_INQ_PKTPTR             (TMU_CSR_BASE_ADDR + 0x008)
index 5da676bf8b64b37ab4a8845f04d782f364463516..c69fc69130cc44e7333d8e44ce4d7558edb2a6b3 100644 (file)
@@ -8,6 +8,7 @@
 #define _PFE_H_
 
 #include <elf.h>
+#include <linux/bitops.h>
 #include "cbus.h"
 
 #define PFE_RESET_WA
index 68b2e381b96662e6c78a2198570eead54d8ea8cd..116a2b2c1d1f5c60407c8d2cc3477ae27af4235d 100644 (file)
@@ -7,6 +7,7 @@
 #ifndef __PFE_ETH_H__
 #define __PFE_ETH_H__
 
+#include <linux/bitops.h>
 #include <linux/sizes.h>
 #include <asm/io.h>
 #include <miiphy.h>
index 3693527397eca90467aa1c3137e81f97811284f5..55be724d20f9a814a707adc20d25721ad16c6548 100644 (file)
@@ -54,7 +54,7 @@ struct block_drvr {
 #define PART_BOOTABLE                  ((int)BIT(0))
 #define PART_EFI_SYSTEM_PARTITION      ((int)BIT(1))
 
-typedef struct disk_partition {
+struct disk_partition {
        lbaint_t        start;  /* # of first block in partition        */
        lbaint_t        size;   /* number of blocks in partition        */
        ulong   blksz;          /* block size in bytes                  */
@@ -76,11 +76,11 @@ typedef struct disk_partition {
 #ifdef CONFIG_DOS_PARTITION
        uchar   sys_ind;        /* partition type                       */
 #endif
-} disk_partition_t;
+};
 
 struct disk_part {
        int partnum;
-       disk_partition_t gpt_part_info;
+       struct disk_partition gpt_part_info;
        struct list_head list;
 };
 
@@ -105,12 +105,14 @@ struct blk_desc *mg_disk_get_dev(int dev);
 int host_get_dev_err(int dev, struct blk_desc **blk_devp);
 
 /* disk/part.c */
-int part_get_info(struct blk_desc *dev_desc, int part, disk_partition_t *info);
+int part_get_info(struct blk_desc *dev_desc, int part,
+                 struct disk_partition *info);
 /**
  * part_get_info_whole_disk() - get partition info for the special case of
  * a partition occupying the entire disk.
  */
-int part_get_info_whole_disk(struct blk_desc *dev_desc, disk_partition_t *info);
+int part_get_info_whole_disk(struct blk_desc *dev_desc,
+                            struct disk_partition *info);
 
 void part_print(struct blk_desc *dev_desc);
 void part_init(struct blk_desc *dev_desc);
@@ -179,7 +181,7 @@ int blk_get_device_by_str(const char *ifname, const char *dev_str,
  */
 int blk_get_device_part_str(const char *ifname, const char *dev_part_str,
                            struct blk_desc **dev_desc,
-                           disk_partition_t *info, int allow_whole_dev);
+                           struct disk_partition *info, int allow_whole_dev);
 
 /**
  * part_get_info_by_name_type() - Search for a partition by name
@@ -194,7 +196,7 @@ int blk_get_device_part_str(const char *ifname, const char *dev_part_str,
  * otherwise error
  */
 int part_get_info_by_name_type(struct blk_desc *dev_desc, const char *name,
-                              disk_partition_t *info, int part_type);
+                              struct disk_partition *info, int part_type);
 
 /**
  * part_get_info_by_name() - Search for a partition by name
@@ -208,7 +210,7 @@ int part_get_info_by_name_type(struct blk_desc *dev_desc, const char *name,
  * otherwise error
  */
 int part_get_info_by_name(struct blk_desc *dev_desc,
-                             const char *name, disk_partition_t *info);
+                             const char *name, struct disk_partition *info);
 
 /**
  * Get partition info from dev number + part name, or dev number + part number.
@@ -229,7 +231,7 @@ int part_get_info_by_name(struct blk_desc *dev_desc,
 int part_get_info_by_dev_and_name_or_num(const char *dev_iface,
                                         const char *dev_part_str,
                                         struct blk_desc **dev_desc,
-                                        disk_partition_t *part_info);
+                                        struct disk_partition *part_info);
 
 /**
  * part_set_generic_name() - create generic partition like hda1 or sdb2
@@ -252,9 +254,9 @@ static inline struct blk_desc *blk_get_dev(const char *ifname, int dev)
 static inline struct blk_desc *mg_disk_get_dev(int dev) { return NULL; }
 
 static inline int part_get_info(struct blk_desc *dev_desc, int part,
-                               disk_partition_t *info) { return -1; }
+                               struct disk_partition *info) { return -1; }
 static inline int part_get_info_whole_disk(struct blk_desc *dev_desc,
-                                          disk_partition_t *info)
+                                          struct disk_partition *info)
 { return -1; }
 static inline void part_print(struct blk_desc *dev_desc) {}
 static inline void part_init(struct blk_desc *dev_desc) {}
@@ -263,10 +265,10 @@ static inline int blk_get_device_by_str(const char *ifname, const char *dev_str,
                                        struct blk_desc **dev_desc)
 { return -1; }
 static inline int blk_get_device_part_str(const char *ifname,
-                                          const char *dev_part_str,
-                                          struct blk_desc **dev_desc,
-                                          disk_partition_t *info,
-                                          int allow_whole_dev)
+                                         const char *dev_part_str,
+                                         struct blk_desc **dev_desc,
+                                         struct disk_partition *info,
+                                         int allow_whole_dev)
 { *dev_desc = NULL; return -1; }
 #endif
 
@@ -301,7 +303,7 @@ struct part_driver {
         * @info:       Returns partition information
         */
        int (*get_info)(struct blk_desc *dev_desc, int part,
-                       disk_partition_t *info);
+                       struct disk_partition *info);
 
        /**
         * print() - Print partition information
@@ -353,7 +355,7 @@ int write_gpt_table(struct blk_desc *dev_desc,
  */
 int gpt_fill_pte(struct blk_desc *dev_desc,
                 gpt_header *gpt_h, gpt_entry *gpt_e,
-                disk_partition_t *partitions, int parts);
+                struct disk_partition *partitions, int parts);
 
 /**
  * gpt_fill_header(): Fill the GPT header
@@ -379,7 +381,7 @@ int gpt_fill_header(struct blk_desc *dev_desc, gpt_header *gpt_h,
  * @return zero on success
  */
 int gpt_restore(struct blk_desc *dev_desc, char *str_disk_guid,
-               disk_partition_t *partitions, const int parts_count);
+               struct disk_partition *partitions, const int parts_count);
 
 /**
  * is_valid_gpt_buf() - Ensure that the Primary GPT information is valid
@@ -433,7 +435,7 @@ int gpt_verify_headers(struct blk_desc *dev_desc, gpt_header *gpt_head,
  * @return - '0' on success, otherwise error
  */
 int gpt_verify_partitions(struct blk_desc *dev_desc,
-                         disk_partition_t *partitions, int parts,
+                         struct disk_partition *partitions, int parts,
                          gpt_header *gpt_head, gpt_entry **gpt_pte);
 
 
index 0b44b66df9f1aaa259f9f06c6d3f5905e421d415..620566819ce3d937691699eb17e615eac74d1599 100644 (file)
@@ -7,6 +7,7 @@
 #ifndef __pch_h
 #define __pch_h
 
+#include <linux/bitops.h>
 #define PCH_RCBA               0xf0
 
 #define BIOS_CTRL_BIOSWE       BIT(0)
index 1493a677f048e6e8f5a90baa71c61def4b2f5dc8..d3567df326cfb9a212ac01beb0efd391a97cdef4 100644 (file)
@@ -6,6 +6,7 @@
 #ifndef __PMIC_STPMIC1_H_
 #define __PMIC_STPMIC1_H_
 
+#include <linux/bitops.h>
 #define STPMIC1_MAIN_CR                        0x10
 #define STPMIC1_BUCKS_MRST_CR          0x18
 #define STPMIC1_LDOS_MRST_CR           0x1a
index 9ada1af5ef047acc5be4abf383aae8596ac6093a..30183c5e71110be80fa97d077dba26dc2782409c 100644 (file)
@@ -7,6 +7,8 @@
 #ifndef __REGMAP_H
 #define __REGMAP_H
 
+#include <linux/delay.h>
+
 /**
  * DOC: Overview
  *
index de4150024cef1514d1d8903e57a110129a0e656b..b61bb6006791766b74f9ee5f1f2016263e8d507e 100644 (file)
@@ -18,6 +18,9 @@
 #define SECTOR_SIZE            0x200
 #define SECTOR_BITS            9
 
+struct blk_desc;
+struct disk_partition;
+
 /* Error codes */
 typedef enum
 {
@@ -62,7 +65,7 @@ typedef enum
 } reiserfs_error_t;
 
 
-void reiserfs_set_blk_dev(struct blk_desc *rbdd, disk_partition_t *info);
+void reiserfs_set_blk_dev(struct blk_desc *rbdd, struct disk_partition *info);
 extern int reiserfs_ls (char *dirname);
 extern int reiserfs_open (char *filename);
 extern int reiserfs_read (char *buf, unsigned len);
index 6e6e3c62ff9612c2e1458ad52bc58b5f8ac4b1d6..783dd5c88a7325c3ddccedce87c04acb0335adfd 100644 (file)
 #ifndef __SANDBOX_FS__
 #define __SANDBOX_FS__
 
-int sandbox_fs_set_blk_dev(struct blk_desc *rbdd, disk_partition_t *info);
+struct blk_desc;
+struct disk_partition;
+
+int sandbox_fs_set_blk_dev(struct blk_desc *rbdd, struct disk_partition *info);
 
 int sandbox_fs_read_at(const char *filename, loff_t pos, void *buffer,
                       loff_t maxsize, loff_t *actread);
index 61da958bf684faea91d3cfd042348304bef03f0f..96cb7266762ec3b27f8a57a16b3162744f4b7bbf 100644 (file)
@@ -6,6 +6,7 @@
  #ifndef _SCSI_H
  #define _SCSI_H
 
+#include <asm/cache.h>
 #include <linux/dma-direction.h>
 
 struct scsi_cmd {
index 0ef8c2ed62d815d5edde433d81e38525705d393a..94fc3ed56acefb605ec7bc0192a5d2557545a5dd 100644 (file)
@@ -9,6 +9,7 @@
 #ifndef __SDHCI_HW_H
 #define __SDHCI_HW_H
 
+#include <linux/bitops.h>
 #include <linux/types.h>
 #include <asm/io.h>
 #include <mmc.h>
index 8f87dc72ce7b8fd3985cb382a5e6064c16905711..bca36d3abc8426700d74c391f6213aa40f5c4df8 100644 (file)
@@ -84,7 +84,7 @@ int hmatch_r(const char *match, int last_idx, struct env_entry **retval,
 int hdelete_r(const char *key, struct hsearch_data *htab, int flag);
 
 ssize_t hexport_r(struct hsearch_data *htab, const char sep, int flag,
-                 char **resp, size_t size, int argc, char * const argv[]);
+                 char **resp, size_t size, int argc, char *const argv[]);
 
 /*
  * nvars: length of vars array
index 2b4929fc79d8bf44c9a27ef72731ad5c236e7ca8..5cc6d6e0087fa5b00eff5d9489ff4838cf2e0a6a 100644 (file)
@@ -10,6 +10,7 @@
 #define _SPI_H_
 
 #include <common.h>
+#include <linux/bitops.h>
 
 /* SPI mode flags */
 #define SPI_CPHA       BIT(0)                  /* clock phase */
index 90395fedb0fd35e0d2b5ceb52295dca81334580b..b31c9bb4ab2e275904436e5fe9bcaa9a67233cdf 100644 (file)
@@ -7,6 +7,7 @@
 #define        _SPL_H_
 
 #include <binman_sym.h>
+#include <linker_lists.h>
 
 /* Platform-specific defines */
 #include <linux/compiler.h>
@@ -26,6 +27,9 @@ struct image_header;
 #define MMCSD_MODE_FS          2
 #define MMCSD_MODE_EMMCBOOT    3
 
+struct blk_desc;
+struct image_header;
+
 /*
  * u_boot_first_phase() - check if this is the first U-Boot phase
  *
index 02bcd9e703820e0b7a6665969753f6fef29ce6e6..8207d0c02afb304465ff2d1f8fef54b9932fd92d 100644 (file)
@@ -6,6 +6,7 @@
 #ifndef __TEE_H
 #define __TEE_H
 
+#include <linux/bitops.h>
 #define TEE_UUID_LEN           16
 
 #define TEE_GEN_CAP_GP          BIT(0) /* GlobalPlatform compliant TEE */
index 121b30a3030e89750c410b3780a04040aebb565f..affa937da08c14f777ea395623f1c6cb28480769 100644 (file)
@@ -10,6 +10,7 @@
 #define _OPTEE_H
 
 #include <linux/errno.h>
+#include <image.h>
 
 #define OPTEE_MAGIC             0x4554504f
 #define OPTEE_VERSION           1
@@ -28,14 +29,16 @@ struct optee_header {
        uint32_t paged_size;
 };
 
-static inline uint32_t optee_image_get_entry_point(const image_header_t *hdr)
+static inline uint32_t
+optee_image_get_entry_point(const struct image_header *hdr)
 {
        struct optee_header *optee_hdr = (struct optee_header *)(hdr + 1);
 
        return optee_hdr->init_load_addr_lo;
 }
 
-static inline uint32_t optee_image_get_load_addr(const image_header_t *hdr)
+static inline uint32_t
+optee_image_get_load_addr(const struct image_header *hdr)
 {
        return optee_image_get_entry_point(hdr) - sizeof(struct optee_header);
 }
index 213e3cee77f2c374edbdf530a51deb2762a254a0..f120b3a82a079ea97573917038fc526158ec78ea 100644 (file)
@@ -7,6 +7,7 @@
 #ifndef __TEST_SUITES_H__
 #define __TEST_SUITES_H__
 
+struct cmd_tbl;
 struct unit_test;
 
 /**
@@ -23,18 +24,22 @@ struct unit_test;
  */
 int cmd_ut_category(const char *name, const char *prefix,
                    struct unit_test *tests, int n_ents,
-                   int argc, char * const argv[]);
+                   int argc, char *const argv[]);
 
-int do_ut_bloblist(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]);
-int do_ut_compression(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]);
-int do_ut_dm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
-int do_ut_env(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
-int do_ut_lib(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
-int do_ut_log(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
-int do_ut_optee(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
-int do_ut_overlay(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
-int do_ut_str(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]);
-int do_ut_time(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
-int do_ut_unicode(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
+int do_ut_bloblist(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[]);
+int do_ut_compression(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[]);
+int do_ut_dm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
+int do_ut_env(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
+int do_ut_lib(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
+int do_ut_log(struct cmd_tbl *cmdtp, int flag, int argc, char * const argv[]);
+int do_ut_optee(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
+int do_ut_overlay(struct cmd_tbl *cmdtp, int flag, int argc,
+                 char *const argv[]);
+int do_ut_str(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
+int do_ut_time(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
+int do_ut_unicode(struct cmd_tbl *cmdtp, int flag, int argc,
+                 char *const argv[]);
 
 #endif /* __TEST_SUITES_H__ */
index b05d719ed0d9dc3491717a92edac1efe9a9909b0..7ddd6e8872414e768b1449e58e09d33a2a774e04 100644 (file)
@@ -8,6 +8,7 @@
 #ifndef __TEST_UT_H
 #define __TEST_UT_H
 
+#include <command.h>
 #include <hexdump.h>
 #include <linux/err.h>
 
index 702cd6e93b8b5d2cd000b2edeb2c8f0bae6fa46a..e29b10b1766e1cc14c977f7f298def14f354981a 100644 (file)
@@ -7,6 +7,8 @@
 #ifndef __TPM_COMMON_H
 #define __TPM_COMMON_H
 
+#include <command.h>
+
 enum tpm_duration {
        TPM_SHORT = 0,
        TPM_MEDIUM = 1,
@@ -173,8 +175,8 @@ struct tpm_ops {
        U_BOOT_CMD_MKENT(cmd, 0, 1, do_tpm_ ## cmd, "", "")
 
 #define TPM_COMMAND_NO_ARG(cmd)                                \
-int do_##cmd(cmd_tbl_t *cmdtp, int flag,               \
-            int argc, char * const argv[])             \
+int do_##cmd(struct cmd_tbl *cmdtp, int flag,          \
+            int argc, char *const argv[])              \
 {                                                      \
        struct udevice *dev;                            \
        int rc;                                         \
@@ -263,20 +265,20 @@ int tpm_init(struct udevice *dev);
 /**
  * Retrieve the array containing all the v1 (resp. v2) commands.
  *
- * @return a cmd_tbl_t array.
+ * @return a struct cmd_tbl array.
  */
 #if defined(CONFIG_TPM_V1)
-cmd_tbl_t *get_tpm1_commands(unsigned int *size);
+struct cmd_tbl *get_tpm1_commands(unsigned int *size);
 #else
-static inline cmd_tbl_t *get_tpm1_commands(unsigned int *size)
+static inline struct cmd_tbl *get_tpm1_commands(unsigned int *size)
 {
        return NULL;
 }
 #endif
 #if defined(CONFIG_TPM_V2)
-cmd_tbl_t *get_tpm2_commands(unsigned int *size);
+struct cmd_tbl *get_tpm2_commands(unsigned int *size);
 #else
-static inline cmd_tbl_t *get_tpm2_commands(unsigned int *size)
+static inline struct cmd_tbl *get_tpm2_commands(unsigned int *size)
 {
        return NULL;
 }
index 45b7a4831d46a6b8903b6fe59c0e7f4f4cda0821..59ad4aecf42cfdaa37c8c963c74ddd935624cecf 100644 (file)
@@ -8,6 +8,7 @@
 #define __TPM_V1_H
 
 #include <tpm-common.h>
+#include <linux/bitops.h>
 
 /* Useful constants */
 enum {
index 015ce122266f378728a55c7088f9cb7421a934d0..b025779d59ff679c2748c7e5948cb0fda8bc2466 100644 (file)
 #ifndef __UBIFS_UBOOT_H__
 #define __UBIFS_UBOOT_H__
 
+struct blk_desc;
+struct disk_partition;
+
 int ubifs_init(void);
 int uboot_ubifs_mount(char *vol_name);
 void uboot_ubifs_umount(void);
 int ubifs_is_mounted(void);
 int ubifs_load(char *filename, u32 addr, u32 size);
 
-int ubifs_set_blk_dev(struct blk_desc *rbdd, disk_partition_t *info);
+int ubifs_set_blk_dev(struct blk_desc *rbdd, struct disk_partition *info);
 int ubifs_ls(const char *dir_name);
 int ubifs_exists(const char *filename);
 int ubifs_size(const char *filename, loff_t *size);
index 561dcc34baf735783e21f793a54b06d20b89046d..10a9c073ba1183547054b3cf5ec4bcebc60f85a0 100644 (file)
@@ -20,6 +20,8 @@
 #ifndef __VIRTIO_H__
 #define __VIRTIO_H__
 
+#include <linux/bitops.h>
+#include <linux/bug.h>
 #define VIRTIO_ID_NET          1 /* virtio net */
 #define VIRTIO_ID_BLOCK                2 /* virtio block */
 #define VIRTIO_ID_RNG          4 /* virtio rng */
index fe072da5164d012d6b6a509740ca235adea9d514..5d6fc7716c7b23c187c990c5abb1ffad5472764e 100644 (file)
@@ -11,6 +11,7 @@
 #include <config.h>
 #include <miiphy.h>
 #include <asm/types.h>
+#include <linux/bitops.h>
 
 #define VSC9953_OFFSET                 (CONFIG_SYS_CCSRBAR_DEFAULT + 0x800000)
 
index d90d862fb765c9bf48519c40d1b5de6753a84d98..c2585e61ced4889fc5ce52c074944eeb71dffa62 100644 (file)
@@ -9,6 +9,9 @@
 
 #include <efi_api.h>
 
+struct bootm_headers;
+struct cmd_tbl;
+
 /* Use Linux compatible standard DTB */
 #define VXWORKS_SYSFLG_STD_DTB 0x1
 
@@ -83,8 +86,8 @@ struct efi_gop_info {
        u32 fb_size;                    /* framebuffer size */
 };
 
-int do_bootvx(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
-void boot_prep_vxworks(bootm_headers_t *images);
-void boot_jump_vxworks(bootm_headers_t *images);
+int do_bootvx(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
+void boot_prep_vxworks(struct bootm_headers *images);
+void boot_jump_vxworks(struct bootm_headers *images);
 
 #endif
index 79da0811fe2cf6e5909f2ee288c211b77365804f..dc2ffeb2c249117a4ca7f4b7aeb84a31daedc476 100644 (file)
@@ -8,9 +8,11 @@
 #ifndef __WAIT_BIT_H
 #define __WAIT_BIT_H
 
-#include <common.h>
 #include <console.h>
+#include <log.h>
+#include <time.h>
 #include <watchdog.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 
index aea5abc76803e62dcaded7d384355c8463ab60f4..d2ccfbc62ef7cd14d5034120a7057a382c539862 100644 (file)
@@ -7,6 +7,7 @@
 #define _WDT_H_
 
 #include <dm.h>
+#include <log.h>
 #include <dm/read.h>
 
 /*
index 6fae63496105c2c58bd020437d63dc4f9e0d4ee4..a8911b6bf5744a8eb88ff7c47b5d733e2720c739 100644 (file)
@@ -25,6 +25,8 @@
 #ifndef _XYZMODEM_H_
 #define _XYZMODEM_H_
 
+#include <linux/delay.h>
+
 #define xyzModem_xmodem 1
 #define xyzModem_ymodem 2
 /* Don't define this until the protocol support is in place */
index bca3dff06e1a83e9ada821a8564e18e7d69c8502..027ba91b28740285a8a38962545f4568fec16859 100644 (file)
@@ -98,7 +98,7 @@ int zfs_close(zfs_file_t);
 int zfs_ls(device_t dev, const char *path,
                   int (*hook) (const char *, const struct zfs_dirhook_info *));
 int zfs_devread(int sector, int byte_offset, int byte_len, char *buf);
-void zfs_set_blk_dev(struct blk_desc *rbdd, disk_partition_t *info);
+void zfs_set_blk_dev(struct blk_desc *rbdd, struct disk_partition *info);
 void zfs_unmount(struct zfs_data *data);
 int lzjb_decompress(void *, void *, uint32_t, uint32_t);
 #endif
index 5214db99fba769b2ae8dbeba111cefacc7f2cced..a0a52ec4c1d355521cc51a30ed446f739f6a001e 100644 (file)
@@ -8,6 +8,7 @@
 #define _ZYNQMPPL_H_
 
 #include <xilinx.h>
+#include <linux/bitops.h>
 
 #define ZYNQMP_SIP_SVC_CSU_DMA_CHIPID          0xC2000018
 #define ZYNQMP_SIP_SVC_PM_FPGA_LOAD            0xC2000016
index c3f694afc063eb56e1d0db65b9425527130fd602..f18bf3778b9eae882b1703fff0912177663efb92 100644 (file)
@@ -424,6 +424,10 @@ config GZIP
        help
          This enables support for GZIP compression algorithm.
 
+config GZIP_COMPRESSED
+       bool
+       select ZLIB
+
 config BZIP2
        bool "Enable bzip2 decompression support"
        help
index 1c253af3bfd122ac448bc0daacb18701140db5e8..431776666e2b0b66b51df267dbdf829fc2086835 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <dm.h>
 #include <cpu.h>
+#include <log.h>
 #include <mapmem.h>
 #include <tables_csum.h>
 #include <version.h>
index ce53c9f1f372a3b416bd156e321a17cf79e6b48c..c998aecb3c74503a8fb70c50f4234f9d57621b3e 100644 (file)
--- a/lib/aes.c
+++ b/lib/aes.c
@@ -23,6 +23,7 @@
 
 #ifndef USE_HOSTCC
 #include <common.h>
+#include <log.h>
 #else
 #include <string.h>
 #endif
index 26175132f3293b27ce29a0e0a1440c5a55f0537b..b17651ed63d81f87cf1e902d9a0a3aec3064a1b4 100644 (file)
@@ -12,6 +12,7 @@
  */
 
 #include <common.h>
+#include <asm-offsets.h>
 
 #include <linux/kbuild.h>
 
index db222625dd0f6842166fae9cadc0578bb2c5df65..bcb0390eb41c238986f251ac887dd140a3149959 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #ifdef __UBOOT__
+#include <log.h>
 #include <linux/compat.h>
 #else
 #include <linux/export.h>
index 8945d8d4cf2ac7ccdb5c46f4826eb92f1f4c29e7..de66b1acba54d11e70a2831cb2f724817c6f4a6a 100644 (file)
--- a/lib/bch.c
+++ b/lib/bch.c
@@ -55,6 +55,7 @@
 
 #ifndef USE_HOSTCC
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 #include <ubi_uboot.h>
 #include <dm/devres.h>
index 6cf6dcfdad60558c45ef8c985a0c2d9eb2b0a609..fd7de24bd238a1a2b2916ba8998ea19ad257796a 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <binman.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 
 struct binman_info {
index 278552150222908beeb7e96e87b69890400d619e..36cf8436592b5a88d5f5c5cddeb0615539c5168e 100644 (file)
@@ -60,6 +60,7 @@
 --*/
 
 #include "bzlib_private.h"
+#include <log.h>
 
 /*---------------------------------------------*/
 /*--- Fallback O(N log(N)^2) sorting        ---*/
index 071e4fb8a6a97f14645576134e197d32b6205115..fa79c148dae4ea6818fbdce4a04baba7d121fb79 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 
 #include <circbuf.h>
index 7aa55092ac7062565a879408846d69df8e52f676..1d0532d0f2e0581912d626c85aac2647f7b81ece 100644 (file)
@@ -7,12 +7,14 @@
  * Written by David Howells (dhowells@redhat.com)
  */
 #ifndef __UBOOT__
+#include <log.h>
 #include <dm/devres.h>
 #include <keys/asymmetric-subtype.h>
 #include <keys/asymmetric-parser.h>
 #endif
 #include <crypto/public_key.h>
 #ifdef __UBOOT__
+#include <linux/bug.h>
 #include <linux/compat.h>
 #include <linux/ctype.h>
 #include <linux/err.h>
index 0ee207b6b1c8cf0588fe606c694146eb697f08c1..0b85fe8286c72fcf73d74f05909aeea090355a51 100644 (file)
@@ -7,6 +7,7 @@
 
 #define pr_fmt(fmt) "PKCS7: "fmt
 #ifdef __UBOOT__
+#include <log.h>
 #include <dm/devres.h>
 #include <linux/bitops.h>
 #include <linux/compat.h>
index 8b4821767aaacdbfa8087c0f8a04e0a893ddc705..e12ebbb3d0c533a169a66aacbfb2b70d23cc4cf2 100644 (file)
@@ -10,6 +10,7 @@
 #define pr_fmt(fmt) "PKEY: "fmt
 #ifdef __UBOOT__
 #include <dm/devres.h>
+#include <linux/bug.h>
 #include <linux/compat.h>
 #include <linux/err.h>
 #else
index 18f5407a076cdd48b35cb80a0dd7c830f7ef58e8..5f984b9dfdae7cd80e8cc4e59b70aa6377e44b67 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #define pr_fmt(fmt) "X.509: "fmt
+#include <log.h>
 #include <dm/devres.h>
 #include <linux/kernel.h>
 #ifndef __UBOOT__
index 29504833efb389a1ac2c50251416fd0af3e24e39..d55ab54df97bb3275b61733f49cac7677b920dc6 100644 (file)
@@ -8,7 +8,8 @@
 #include <div64.h>
 #include "dhry.h"
 
-static int do_dhry(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_dhry(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        ulong start, duration, vax_mips;
        u64 dhry_per_sec;
index 62933c92c4fb0638101e09fcaf78045c8a07e1dd..779d7521f69fdeab66d92e3dc736004eaefe306e 100644 (file)
@@ -17,6 +17,7 @@
  * or by defining a preprocessor macro in arch/include/asm/div64.h.
  */
 
+#include <linux/bitops.h>
 #include <linux/compat.h>
 #include <linux/kernel.h>
 #include <linux/math64.h>
index 7c64077d42e8b1188859d3fc6ce625795a34260a..b7e19c347509d887b6235fabf3359023836bab24 100644 (file)
@@ -13,6 +13,7 @@
 #include <debug_uart.h>
 #include <dm.h>
 #include <errno.h>
+#include <init.h>
 #include <malloc.h>
 #include <linux/err.h>
 #include <linux/types.h>
index 33e66fcad2e745ecd4ef862d865bf3d56ec4cd71..e7d8745ad858bc2ca0bb5274a0adc742d4ffbbfd 100644 (file)
@@ -28,6 +28,8 @@
  * iPXE uses the simple file protocol to load Grub or the Linux Kernel.
  */
 
+#include <common.h>
+#include <blk.h>
 #include <efi_driver.h>
 #include <malloc.h>
 #include <dm/device-internal.h>
index f8badadf66047a7053bafad9b8a17533dce733f8..04e4e457344afd307ebe36b8aa0049d4393fd692 100644 (file)
@@ -18,6 +18,7 @@
  */
 
 #include <efi_driver.h>
+#include <log.h>
 #include <malloc.h>
 
 /**
index 9ae9c25c51e5ace8308921dd26560b3f609b6995..585b2d2b6365027753fe09a2804fec0434a90a26 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <efi_loader.h>
+#include <log.h>
 #include <acpi/acpi_table.h>
 
 static const efi_guid_t acpi_guid = EFI_ACPI_TABLE_GUID;
index 2ea21448f03d195eeeaa4c8b033f41c901ad70d6..b112f5d81efdb99acbf8dc8d5ca5905cecd22fe6 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <charset.h>
+#include <log.h>
 #include <malloc.h>
 #include <efi_loader.h>
 #include <asm/unaligned.h>
index a3f11eaf6228db0c925654b6f2912b5a801adcf7..db349381965765ee2cc5e81ed687b990aa799d19 100644 (file)
@@ -9,6 +9,7 @@
 #include <div64.h>
 #include <efi_loader.h>
 #include <irq_func.h>
+#include <log.h>
 #include <malloc.h>
 #include <time.h>
 #include <linux/libfdt_env.h>
index f9349484a66572f22c02f1eb113072f4505a62f4..7ae14f342396ad2235e8b9b8edffb139d5451dc0 100644 (file)
@@ -8,6 +8,8 @@
 #include <common.h>
 #include <blk.h>
 #include <dm.h>
+#include <log.h>
+#include <net.h>
 #include <usb.h>
 #include <mmc.h>
 #include <nvme.h>
@@ -20,6 +22,9 @@
 #ifdef CONFIG_SANDBOX
 const efi_guid_t efi_guid_host_dev = U_BOOT_HOST_DEV_GUID;
 #endif
+#ifdef CONFIG_VIRTIO_BLK
+const efi_guid_t efi_guid_virtio_dev = U_BOOT_VIRTIO_DEV_GUID;
+#endif
 
 /* template END node: */
 static const struct efi_device_path END = {
@@ -453,6 +458,11 @@ __maybe_unused static unsigned int dp_size(struct udevice *dev)
                        return dp_size(dev->parent) +
                                sizeof(struct efi_device_path_sd_mmc_path);
 #endif
+#if defined(CONFIG_AHCI) || defined(CONFIG_SATA)
+               case UCLASS_AHCI:
+                       return dp_size(dev->parent) +
+                               sizeof(struct efi_device_path_sata);
+#endif
 #if defined(CONFIG_NVME)
                case UCLASS_NVME:
                        return dp_size(dev->parent) +
@@ -467,6 +477,16 @@ __maybe_unused static unsigned int dp_size(struct udevice *dev)
                          */
                        return dp_size(dev->parent)
                                + sizeof(struct efi_device_path_vendor) + 1;
+#endif
+#ifdef CONFIG_VIRTIO_BLK
+               case UCLASS_VIRTIO:
+                        /*
+                         * Virtio devices will be represented as a vendor
+                         * device node with an extra byte for the device
+                         * number.
+                         */
+                       return dp_size(dev->parent)
+                               + sizeof(struct efi_device_path_vendor) + 1;
 #endif
                default:
                        return dp_size(dev->parent);
@@ -545,6 +565,23 @@ __maybe_unused static void *dp_fill(void *buf, struct udevice *dev)
                        return &dp->vendor_data[1];
                        }
 #endif
+#ifdef CONFIG_VIRTIO_BLK
+               case UCLASS_VIRTIO: {
+                       struct efi_device_path_vendor *dp;
+                       struct blk_desc *desc = dev_get_uclass_platdata(dev);
+
+                       dp_fill(buf, dev->parent);
+                       dp = buf;
+                       ++dp;
+                       dp->dp.type = DEVICE_PATH_TYPE_HARDWARE_DEVICE;
+                       dp->dp.sub_type = DEVICE_PATH_SUB_TYPE_VENDOR;
+                       dp->dp.length = sizeof(*dp) + 1;
+                       memcpy(&dp->guid, &efi_guid_virtio_dev,
+                              sizeof(efi_guid_t));
+                       dp->vendor_data[0] = desc->devnum;
+                       return &dp->vendor_data[1];
+                       }
+#endif
 #ifdef CONFIG_IDE
                case UCLASS_IDE: {
                        struct efi_device_path_atapi *dp =
@@ -591,6 +628,22 @@ __maybe_unused static void *dp_fill(void *buf, struct udevice *dev)
                        return &sddp[1];
                        }
 #endif
+#if defined(CONFIG_AHCI) || defined(CONFIG_SATA)
+               case UCLASS_AHCI: {
+                       struct efi_device_path_sata *dp =
+                               dp_fill(buf, dev->parent);
+                       struct blk_desc *desc = dev_get_uclass_platdata(dev);
+
+                       dp->dp.type     = DEVICE_PATH_TYPE_MESSAGING_DEVICE;
+                       dp->dp.sub_type = DEVICE_PATH_SUB_TYPE_MSG_SATA;
+                       dp->dp.length   = sizeof(*dp);
+                       dp->hba_port = desc->devnum;
+                       /* default 0xffff implies no port multiplier */
+                       dp->port_multiplier_port = 0xffff;
+                       dp->logical_unit_number = desc->lun;
+                       return &dp[1];
+                       }
+#endif
 #if defined(CONFIG_NVME)
                case UCLASS_NVME: {
                        struct efi_device_path_nvme *dp =
@@ -693,7 +746,7 @@ static unsigned dp_part_size(struct blk_desc *desc, int part)
  */
 static void *dp_part_node(void *buf, struct blk_desc *desc, int part)
 {
-       disk_partition_t info;
+       struct disk_partition info;
 
        part_get_info(desc, part, &info);
 
@@ -1035,7 +1088,7 @@ efi_status_t efi_dp_from_name(const char *dev, const char *devnr,
 {
        int is_net;
        struct blk_desc *desc = NULL;
-       disk_partition_t fs_partition;
+       struct disk_partition fs_partition;
        int part = 0;
        char filename[32] = { 0 }; /* dp->str is u16[32] long */
        char *s;
index af1adbb71efebf40a2264ff3cf5e66087164a934..5ae4833fa78c7180b0634854c6182d8fe85a24d4 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <blk.h>
 #include <efi_loader.h>
 
 #define MAC_OUTPUT_LEN 22
@@ -148,6 +149,16 @@ static char *dp_msging(char *s, struct efi_device_path *dp)
 
                break;
        }
+       case DEVICE_PATH_SUB_TYPE_MSG_SATA: {
+               struct efi_device_path_sata *sdp =
+                       (struct efi_device_path_sata *) dp;
+
+               s += sprintf(s, "Sata(0x%x,0x%x,0x%x)",
+                            sdp->hba_port,
+                            sdp->port_multiplier_port,
+                            sdp->logical_unit_number);
+               break;
+       }
        case DEVICE_PATH_SUB_TYPE_MSG_NVME: {
                struct efi_device_path_nvme *ndp =
                        (struct efi_device_path_nvme *)dp;
index 0582e02158fc172179e0c407bccd505773d6c65f..670bf2b8ef0185961662d14db1a0a1fc3d51c0c7 100644 (file)
@@ -356,6 +356,7 @@ static efi_status_t efi_disk_add_dev(
                                struct efi_disk_obj **disk)
 {
        struct efi_disk_obj *diskobj;
+       struct efi_object *handle;
        efi_status_t ret;
 
        /* Don't add empty devices */
@@ -379,15 +380,25 @@ static efi_status_t efi_disk_add_dev(
                diskobj->dp = efi_dp_from_part(desc, part);
        }
        diskobj->part = part;
-       ret = efi_add_protocol(&diskobj->header, &efi_block_io_guid,
-                              &diskobj->ops);
-       if (ret != EFI_SUCCESS)
-               return ret;
-       ret = efi_add_protocol(&diskobj->header, &efi_guid_device_path,
-                              diskobj->dp);
+
+       /*
+        * Install the device path and the block IO protocol.
+        *
+        * InstallMultipleProtocolInterfaces() checks if the device path is
+        * already installed on an other handle and returns EFI_ALREADY_STARTED
+        * in this case.
+        */
+       handle = &diskobj->header;
+       ret = EFI_CALL(efi_install_multiple_protocol_interfaces(
+                       &handle, &efi_guid_device_path, diskobj->dp,
+                       &efi_block_io_guid, &diskobj->ops, NULL));
        if (ret != EFI_SUCCESS)
                return ret;
-       /* partitions or whole disk without partitions */
+
+       /*
+        * On partitions or whole disks without partitions install the
+        * simple file system protocol if a file system is available.
+        */
        if ((part || desc->part_type == PART_TYPE_UNKNOWN) &&
            efi_fs_exists(desc, part)) {
                diskobj->volume = efi_simple_file_system(desc, part,
@@ -424,7 +435,7 @@ static efi_status_t efi_disk_add_dev(
        /* Store first EFI system partition */
        if (part && !efi_system_partition.if_type) {
                int r;
-               disk_partition_t info;
+               struct disk_partition info;
 
                r = part_get_info(desc, part, &info);
                if (r)
@@ -459,7 +470,7 @@ int efi_disk_create_partitions(efi_handle_t parent, struct blk_desc *desc,
 {
        int disks = 0;
        char devname[32] = { 0 }; /* dp->str is u16[32] long */
-       disk_partition_t info;
+       struct disk_partition info;
        int part;
        struct efi_device_path *dp = NULL;
        efi_status_t ret;
@@ -600,7 +611,7 @@ bool efi_disk_is_system_part(efi_handle_t handle)
 {
        struct efi_handler *handler;
        struct efi_disk_obj *diskobj;
-       disk_partition_t info;
+       struct disk_partition info;
        efi_status_t ret;
        int r;
 
index 140116ddc4ace7ccd2e1916aad62b9a1bb47c498..19afa69f530bafeed8651bd5991727d138cd10a0 100644 (file)
@@ -8,9 +8,11 @@
 #include <common.h>
 #include <charset.h>
 #include <efi_loader.h>
+#include <log.h>
 #include <malloc.h>
 #include <mapmem.h>
 #include <fs.h>
+#include <part.h>
 
 /* GUID for file system information */
 const efi_guid_t efi_file_system_info_guid = EFI_FILE_SYSTEM_INFO_GUID;
@@ -634,7 +636,7 @@ static efi_status_t EFIAPI efi_file_getinfo(struct efi_file_handle *file,
                utf8_utf16_strcpy(&dst, filename);
        } else if (!guidcmp(info_type, &efi_file_system_info_guid)) {
                struct efi_file_system_info *info = buffer;
-               disk_partition_t part;
+               struct disk_partition part;
                efi_uintn_t required_size;
                int r;
 
index 1511e3bdb4220ce8a61be4ee4aa56b456ccad0f9..53f6d970f735248733c339bb1ea37e581e574d67 100644 (file)
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <efi_loader.h>
 #include <lcd.h>
+#include <log.h>
 #include <malloc.h>
 #include <video.h>
 
index c0cf1d91267dcf431a92cd2bbbf3c38bff2c57e0..44b8a2e09f0a543ae112a131a797a4b14347ec74 100644 (file)
@@ -11,6 +11,7 @@
 #include <malloc.h>
 #include <mapmem.h>
 #include <watchdog.h>
+#include <asm/cache.h>
 #include <linux/list_sort.h>
 #include <linux/sizes.h>
 
index 82d2595847a8cf0f86f18f6ef8f196d01c33a7d6..22f0123eca4790753d62af98ca67a2667488375f 100644 (file)
@@ -18,6 +18,7 @@
 #include <common.h>
 #include <efi_loader.h>
 #include <malloc.h>
+#include <net.h>
 
 static const efi_guid_t efi_net_guid = EFI_SIMPLE_NETWORK_PROTOCOL_GUID;
 static const efi_guid_t efi_pxe_base_code_protocol_guid =
index a1d0ec842c87bf60128a2bc8e0542ae79ce3da9e..caef4085b077c1bf22fc173a92eecdd7cd25537a 100644 (file)
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <efi_loader.h>
 #include <efi_rng.h>
+#include <log.h>
 #include <rng.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index a28b291927c4e301aa4bf052043d9a0cc33bb3a7..c0bd99b86746536508d18f51bf27b9282c069b05 100644 (file)
@@ -11,6 +11,7 @@
 #include <dm.h>
 #include <elf.h>
 #include <efi_loader.h>
+#include <log.h>
 #include <malloc.h>
 #include <rtc.h>
 #include <u-boot/crc.h>
index 26a7423203626d429aabdb515849afb060ee72f9..dd0c53fc23992fd1a476a135459bd412acaba14b 100644 (file)
@@ -135,6 +135,11 @@ efi_status_t efi_init_obj_list(void)
        /* On ARM switch from EL3 or secure mode to EL2 or non-secure mode */
        switch_to_non_secure_mode();
 
+       /* Initialize root node */
+       ret = efi_root_node_register();
+       if (ret != EFI_SUCCESS)
+               goto out;
+
 #ifdef CONFIG_PARTITIONS
        ret = efi_disk_register();
        if (ret != EFI_SUCCESS)
@@ -175,11 +180,6 @@ efi_status_t efi_init_obj_list(void)
        if (ret != EFI_SUCCESS)
                goto out;
 
-       /* Initialize root node */
-       ret = efi_root_node_register();
-       if (ret != EFI_SUCCESS)
-               goto out;
-
        /* Initialize EFI driver uclass */
        ret = efi_driver_init();
        if (ret != EFI_SUCCESS)
index a81488495e27f7f205a06719ea3d25abc6a6dbe5..719d3e8880ab8ef1fe6f1842f92d5bc5a864147f 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <efi_loader.h>
+#include <log.h>
 #include <mapmem.h>
 #include <smbios.h>
 
index 10892684d1b22bde8fbcfc47ecc239037064a3b0..0a43db56788abf2dcaace97c2b7199915e5eb7e7 100644 (file)
@@ -7,12 +7,15 @@
 
 #include <common.h>
 #include <efi_loader.h>
+#include <env.h>
 #include <env_internal.h>
 #include <hexdump.h>
 #include <malloc.h>
 #include <rtc.h>
 #include <search.h>
+#include <uuid.h>
 #include <crypto/pkcs7_parser.h>
+#include <linux/bitops.h>
 #include <linux/compat.h>
 #include <u-boot/crc.h>
 
@@ -883,8 +886,6 @@ static efi_status_t efi_set_variable_common(u16 *variable_name,
        u32 attr;
        efi_status_t ret = EFI_SUCCESS;
 
-       debug("%s: set '%s'\n", __func__, native_name);
-
        if (!variable_name || !*variable_name || !vendor ||
            ((attributes & EFI_VARIABLE_RUNTIME_ACCESS) &&
             !(attributes & EFI_VARIABLE_BOOTSERVICE_ACCESS))) {
index d98a854e6d1a81d97762ce6d2f9e8508a291c8ec..5eb297d285af89437a3de231e0352bb3ee01635e 100644 (file)
@@ -15,6 +15,7 @@
 
 #include <efi_selftest.h>
 #include "efi_selftest_disk_image.h"
+#include <asm/cache.h>
 
 /* Block size of compressed disk image */
 #define COMPRESSED_DISK_IMAGE_BLOCK_SIZE 8
index 42f51b652036ee31037226bc62f53f9e87515dfc..13f3ee6bc19fe59c553aa3a5bdff92d77797404b 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <efi_selftest.h>
+#include <net.h>
 #include <vsprintf.h>
 
 struct efi_simple_text_output_protocol *con_out;
index 9797ecaf42ee053c0f872e18369acf2bb86cf513..79f04678039f3a89b8a322ee27972c7c8d362d93 100644 (file)
@@ -15,6 +15,7 @@
  */
 
 #include <efi_selftest.h>
+#include <net.h>
 
 /*
  * MAC address for broadcasts
index 0a3b86078229f8ef8ce18e516fef00edabdb6cc8..1f2b763acc312a27490a11ecc3a2dd42e3dfced3 100644 (file)
@@ -9,7 +9,9 @@
 #include <dm.h>
 #include <hang.h>
 #include <init.h>
+#include <log.h>
 #include <malloc.h>
+#include <net.h>
 #include <dm/of_extra.h>
 #include <env.h>
 #include <errno.h>
@@ -1472,8 +1474,14 @@ int fdtdec_set_carveout(void *blob, const char *node, const char *prop_name,
        return 0;
 }
 
+__weak int fdtdec_board_setup(const void *fdt_blob)
+{
+       return 0;
+}
+
 int fdtdec_setup(void)
 {
+       int ret;
 #if CONFIG_IS_ENABLED(OF_CONTROL)
 # if CONFIG_IS_ENABLED(MULTI_DTB_FIT)
        void *fdt_blob;
@@ -1526,7 +1534,10 @@ int fdtdec_setup(void)
 # endif
 #endif
 
-       return fdtdec_prepare_fdt();
+       ret = fdtdec_prepare_fdt();
+       if (!ret)
+               ret = fdtdec_board_setup(gd->fdt_blob);
+       return ret;
 }
 
 #if CONFIG_IS_ENABLED(MULTI_DTB_FIT)
index 5775992ef3373f36b27bdf6b1d2e9c80044d6161..ddaca0087e19d97091677ea8ed8bcfab24f60c95 100644 (file)
@@ -9,6 +9,7 @@
 
 #ifndef USE_HOSTCC
 #include <common.h>
+#include <log.h>
 #include <linux/libfdt.h>
 #include <fdtdec.h>
 #else
index e8bfd1fb1ec3c2bdeda6f2e588cfdbf6b525196f..e0c6e0971cd979685fe65e442c4a74c9d0ff2b9c 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <fdtdec.h>
 #include <linux/libfdt.h>
 #include <malloc.h>
@@ -297,8 +298,8 @@ static int check_carveout(void)
        return 0;
 }
 
-static int do_test_fdtdec(cmd_tbl_t *cmdtp, int flag, int argc,
-                         char * const argv[])
+static int do_test_fdtdec(struct cmd_tbl *cmdtp, int flag, int argc,
+                         char *const argv[])
 {
        /* basic tests */
        CHECKOK(run_test("", "", ""));
index 9e6ccd692a39d43607eaf5afbd62bc95765d9e69..bee3b9261f3449c438c43fac77bac45cde127238 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <blk.h>
 #include <command.h>
 #include <console.h>
 #include <div64.h>
index f82f2463cf23a640082c78b6b54bf8069f8b03d5..b96dbe19be4dd52e0233e9d452f3201f6c57ad69 100644 (file)
@@ -13,6 +13,7 @@
  */
 
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <sort.h>
 
@@ -605,7 +606,7 @@ static int match_entry(struct env_entry *ep, int flag, int argc,
 
 ssize_t hexport_r(struct hsearch_data *htab, const char sep, int flag,
                 char **resp, size_t size,
-                int argc, char * const argv[])
+                int argc, char *const argv[])
 {
        struct env_entry *list[htab->size];
        char *res, *p;
index 036062139bb905f43703f0b24b9458c49deb7901..187ac28cd364b7f9a9e0d28ee88451ab959ef547 100644 (file)
 
 #include <config.h>
 #include <common.h>
+#include <blk.h>
 #include <image-sparse.h>
 #include <div64.h>
+#include <log.h>
 #include <malloc.h>
 #include <part.h>
 #include <sparse_format.h>
+#include <asm/cache.h>
 
 #include <linux/math64.h>
 
index dd859d3467ea74447ce7fb249f0d3a77138861fa..cb54e658c4878101075f334372672fdddab14c55 100644 (file)
@@ -7,6 +7,7 @@
 #include "avb_sha.h"
 #include "avb_util.h"
 #include "avb_version.h"
+#include <log.h>
 #include <malloc.h>
 
 #define NUM_GUIDS 3
index 86b8d1b99430e74841224674a95761016a8d863b..56a3a91fc23d166cfbcef4060ab4e9faed5073d2 100644 (file)
@@ -6,6 +6,7 @@
 #include "avb_descriptor.h"
 #include "avb_util.h"
 #include "avb_vbmeta_image.h"
+#include <log.h>
 #include <malloc.h>
 
 bool avb_descriptor_validate_and_byteswap(const AvbDescriptor* src,
index 58baf522fcb04c99e20047dc03c42ff4696b54cf..ae8e1dffa4ca963f0bb49291ef7d188dbe70e099 100644 (file)
@@ -14,6 +14,7 @@
 #include "avb_util.h"
 #include "avb_vbmeta_image.h"
 #include "avb_version.h"
+#include <log.h>
 #include <malloc.h>
 
 /* Maximum number of partitions that can be loaded with avb_slot_verify(). */
index 94773b77e7e332f9c44c9424c5fab6958cbb5659..8719ede15a75a5ebd2a429436e96e8fff4c83ad1 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include "avb_util.h"
+#include <log.h>
 #include <malloc.h>
 
 #include <stdarg.h>
index 89a6fd6ec96d5e10ae4b890d2cb1200ca4332ab9..c83426f59dc208fd51f53d1c3f447c52e955602b 100644 (file)
@@ -2,6 +2,7 @@
 #include <common.h>
 #include <malloc.h>
 #include <memalign.h>
+#include <asm/cache.h>
 #include <linux/compat.h>
 
 struct p_current cur = {
index beb7273fd30d955c4d247bb59c30ee9e695a2318..58e1e1614a573734b781ba6260727dfc8eae7839 100644 (file)
@@ -1,4 +1,5 @@
 #ifndef __UBOOT__
+#include <log.h>
 #include <dm/devres.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
index 07b9308adf29ff4d5773b8a663ec6e0bdaedd6a9..008bcc7930d11c118a4dd03eaa1bfb7372f0cacc 100644 (file)
--- a/lib/lmb.c
+++ b/lib/lmb.c
@@ -7,7 +7,9 @@
  */
 
 #include <common.h>
+#include <image.h>
 #include <lmb.h>
+#include <log.h>
 #include <malloc.h>
 
 #define LMB_ALLOC_ANYWHERE     0
index 2537cb8f8c631bb633ed4753f4a58ace752360f4..521258e623f5e65baddec622fa570926b42cb959 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <log.h>
 #include <watchdog.h>
 
 #ifdef CONFIG_LZMA
index 45dae2d576fdcfb8fdc27e2eb48080d1c5e1613e..36dc43a523fb33f7b80551f89ddb2e71a2a0e144 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include "membuff.h"
 
index 8af77829705db9f5b3fefc45c2027d4358e5b54c..0a8a557319cf69aa096518e6fdab9a7e18011bf6 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include <common.h>
+#include <net.h>
 
 struct in_addr string_to_ip(const char *s)
 {
index c49e95e38c7c79922a4f6e72aface9e0a7e500ba..05a45ed34af25b0aaecef8bb7124255eee1a4229 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <linux/libfdt.h>
 #include <of_live.h>
 #include <malloc.h>
index d4355c6d0337781f25f0fc157100653f26ce0831..e59b5766e7283f8f6c17a114576cead82ef8a710 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <image.h>
+#include <log.h>
 #include <malloc.h>
 #include <linux/libfdt.h>
 #include <tee/optee.h>
index 8e72c265a617e1f2223a008e5375829537b8c49b..58382ac4f4cc782c4d53e9d3ea8f9b6b57294309 100644 (file)
@@ -14,6 +14,7 @@
 #if !defined(CONFIG_PANIC_HANG)
 #include <command.h>
 #endif
+#include <linux/delay.h>
 
 static void panic_finish(void) __attribute__ ((noreturn));
 
index 84b191dae3eeb005cb81d62a443d0d5a1e6cec2c..fc90ce4d7cfd092c1ad71196226e0a03130cd11f 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <mapmem.h>
 #include <physmem.h>
 #include <linux/compiler.h>
index f63d4ef726841cd8e51c76988007db9e53a9ed16..2f18588dfccd2bd2179069197aa17c6d86fce431 100644 (file)
@@ -15,6 +15,7 @@
  * calculation, as well as to reduce the generated code size with
  * bcc and gcc. */
 
+#include <log.h>
 #include <linux/types.h>
 #include <common.h>
 #include <exports.h>
index 62b2557cc288eb3ab11abebfdf0db3c67f8421bd..a437cbe26f280d40c8e9e1f52dc61d1c314183dc 100644 (file)
@@ -6,6 +6,7 @@
 #ifndef USE_HOSTCC
 #include <common.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <asm/types.h>
 #include <asm/byteorder.h>
 #include <linux/errno.h>
index f7ae174cb059248bde4fd7b25115dedeeb424f8e..1d55b997e34cfd6864914308f9cb1b1525090cbc 100644 (file)
@@ -6,6 +6,7 @@
 #ifndef USE_HOSTCC
 #include <common.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/types.h>
 #include <asm/byteorder.h>
index 969c46a8591d3a408e7744f0f8bdfe8092efd425..e82a9e7635b1a1eafcd52130ddad33f156dad060 100644 (file)
@@ -20,6 +20,7 @@
 #include <stdlib.h>
 #include <string.h>
 #else
+#include <log.h>
 #include <common.h>
 #include <linux/ctype.h>
 #endif /* SLRE_TEST */
index 75de48f90032cc1f213fedd5ca57c263cd2b1c9d..65db0f6cda29367c6f4b2eee1666a18a3d578100 100644 (file)
@@ -5,13 +5,16 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
 #include <dm.h>
 #include <errno.h>
+#include <init.h>
 #include <time.h>
 #include <timer.h>
 #include <watchdog.h>
 #include <div64.h>
 #include <asm/io.h>
+#include <linux/delay.h>
 
 #ifndef CONFIG_WD_PERIOD
 # define CONFIG_WD_PERIOD      (10 * 1000 * 1000)      /* 10 seconds default */
@@ -181,7 +184,7 @@ void udelay(unsigned long usec)
        do {
                WATCHDOG_RESET();
                kv = usec > CONFIG_WD_PERIOD ? CONFIG_WD_PERIOD : usec;
-               __udelay (kv);
+               __udelay(kv);
                usec -= kv;
        } while(usec);
 }
index 86b4f413c2e3930edbbcb88eb58342026006e1e7..e4af87f76aa7aa13c47acd2109a42a755d7bef60 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <asm/unaligned.h>
 #include <tpm-common.h>
 #include "tpm-utils.h"
index b4498e6afc7ee6e38dd08617e6652e72f0c0e2b5..a846fe00dd3ef4cf4a6f74c3b041156982c9e89c 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <asm/unaligned.h>
 #include <u-boot/sha1.h>
 #include <tpm-common.h>
index f89592d6e2f33166e31b8e5975ac838e1548577f..5a039f65d139787f68df6e57bc4322f3b1ffddfb 100644 (file)
@@ -8,6 +8,7 @@
 #include <dm.h>
 #include <tpm-common.h>
 #include <tpm-v2.h>
+#include <linux/bitops.h>
 #include "tpm-utils.h"
 
 u32 tpm2_startup(struct udevice *dev, enum tpm2_startup_types mode)
index c1cb9df6aac60f064428dc2216c537017fa73034..e62d5ca2643f60b1aedee970af95e353a5d10b73 100644 (file)
@@ -4,8 +4,11 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <env.h>
+#include <rand.h>
 #include <time.h>
+#include <uuid.h>
 #include <linux/ctype.h>
 #include <errno.h>
 #include <common.h>
@@ -284,7 +287,7 @@ void gen_rand_uuid_str(char *uuid_str, int str_format)
 }
 
 #if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_CMD_UUID)
-int do_uuid(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_uuid(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        char uuid[UUID_STR_LEN + 1];
        int str_format;
index b4edee29b0dbe07e39cf1016d31fbc62c16beabb..de9ef902b96fff3a1044e430dd49e69fcedc4325 100644 (file)
@@ -19,6 +19,7 @@
 #include <div64.h>
 #include <hexdump.h>
 #include <stdarg.h>
+#include <uuid.h>
 #include <vsprintf.h>
 #include <linux/ctype.h>
 #include <linux/err.h>
index b49c3d3ced97098e8e445cf8a7adb99efd715968..1d06ed25722b4ba4c15044c025a4a4568deae819 100644 (file)
--- a/net/arp.c
+++ b/net/arp.c
  */
 
 #include <common.h>
+#include <env.h>
+#include <log.h>
+#include <net.h>
+#include <linux/delay.h>
 
 #include "arp.h"
 
index 505489140e8a099a71f409bf9e8b8d443ac8ba2c..de3dab4114d92b25bd0a58f2ea422add414fe9b9 100644 (file)
@@ -9,10 +9,15 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
 #include <command.h>
 #include <env.h>
 #include <efi_loader.h>
+#include <log.h>
 #include <net.h>
+#include <rand.h>
+#include <uuid.h>
+#include <linux/delay.h>
 #include <net/tftp.h>
 #include "bootp.h"
 #ifdef CONFIG_LED_STATUS
index 67d761d7c0f5f81e32b5f4e633b7f66dd076ce16..e35c4dca7c5030dc4e316eb315f8a56013b6fba1 100644 (file)
--- a/net/dns.c
+++ b/net/dns.c
@@ -25,6 +25,7 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
+#include <log.h>
 #include <net.h>
 #include <asm/unaligned.h>
 
index 48560d59f6608ff9da4c7c6312776d9047005a9e..7f89f65c92a3ad4ac1bcc61b23044c050631b205 100644 (file)
@@ -6,8 +6,10 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
 #include <dm.h>
 #include <env.h>
+#include <log.h>
 #include <net.h>
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
index ed26b1b69359aae191481f058db7e99fa8c329b5..58f899a02405597673450630eaffd2ab6d8365ba 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
 #include <dm.h>
 #include <env.h>
 #include <miiphy.h>
index 5d6b0d7d7f4599a640668b28bcfa462a8de4c987..35f8d398a65b43c1f3a1cf2c4419a191b8fb0518 100644 (file)
@@ -6,10 +6,13 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
 #include <command.h>
 #include <env.h>
+#include <log.h>
 #include <net.h>
 #include <phy.h>
+#include <linux/bug.h>
 #include <linux/errno.h>
 #include <net/pcap.h>
 #include "eth_internal.h"
index 8afc5529cd9624a00606978b9a8db67041905fe5..0c57fb9947df3a3e4c7a2a5ab4f12dc2f750ca32 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <fastboot.h>
 #include <net.h>
 #include <net/fastboot.h>
index 1986b9b9d3b63b03831daa5e5f6bc72958c64153..8aec3c79969b023e024820e0558072268a1e912e 100644 (file)
@@ -13,6 +13,7 @@
 
 #include <common.h>
 #include <env.h>
+#include <log.h>
 #include <net.h>
 #include <rand.h>
 #include "arp.h"
index e425207d6e40044f4a8a9c8f807ac012cba633fc..6674eb6bee783781fd4f540b202a94289d1c34c1 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <miiphy.h>
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
index 8e7872155a1383fd4a02ab74e66988e2fa967180..66ee2e19763aea2bf03343c16664ba7574fe9d37 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <miiphy.h>
 #include <dm/device-internal.h>
index 087d399a24bab0b2200aaf030cbd42992aa44373..37932919d049a7a834bb999e83f593f9b5d47a29 100644 (file)
--- a/net/net.c
+++ b/net/net.c
 
 
 #include <common.h>
+#include <bootstage.h>
 #include <command.h>
 #include <console.h>
 #include <env.h>
 #include <env_internal.h>
 #include <errno.h>
 #include <image.h>
+#include <log.h>
 #include <net.h>
 #include <net/fastboot.h>
 #include <net/tftp.h>
index 72e1018a3bdd54a01038e5ef2ef6e56fff9461ae..70d0e08bde9201a4aaa3e4f5cb02e43324dc0bc6 100644 (file)
--- a/net/nfs.c
+++ b/net/nfs.c
@@ -30,6 +30,7 @@
 #include <command.h>
 #include <flash.h>
 #include <image.h>
+#include <log.h>
 #include <net.h>
 #include <malloc.h>
 #include <mapmem.h>
index 633c942e67839f3157790ef3bd0001ac568d7df3..0e33660f6c5faf8db51940826491c256d7c685ba 100644 (file)
@@ -11,6 +11,8 @@
 
 #include "ping.h"
 #include "arp.h"
+#include <log.h>
+#include <net.h>
 
 static ushort ping_seq_number;
 
index c1d9fcaf251849ff164f0eb9ece3af3368d8d80d..a676a4253b5eab4d4ca64051d720bc0d065b822d 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <log.h>
 #include <net.h>
 #include <net/tftp.h>
 #include "nfs.h"
index 9c8ee34a4ed7838ced1fa01eda84dcc1b9735bcf..39d7664a2248942cf890038c9d2f1465743cf210 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <command.h>
 #include <dm.h>
+#include <log.h>
 #include <net.h>
 #include <rtc.h>
 
index be24e630754c2546ee6e77492a7e4cfa848c0dd5..180140e495b15482f9ac2c0fef87a0b87f6cf8da 100644 (file)
@@ -11,6 +11,8 @@
 #include <efi_loader.h>
 #include <env.h>
 #include <image.h>
+#include <lmb.h>
+#include <log.h>
 #include <mapmem.h>
 #include <net.h>
 #include <net/tftp.h>
index 16210c65abeff9491f7ca92a7b88ba08c1a32779..cc971a8909784c9d4be997a14e422716b4d631b5 100644 (file)
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <irq_func.h>
+#include <log.h>
 #include <mpc83xx.h>
 #include <watchdog.h>
 #include <asm/io.h>
index 8b7967cd9dc885726e24f4be6289f90242c1ed8c..3b378921fafc9a14a91c79991e8e10756c37f6bf 100644 (file)
@@ -22,6 +22,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <post.h>
 #include <i2c.h>
 
index 571394dc635695eb5733b00050b0c969a768a1b8..9cc48b1ccc4821e9af9d84c303b9608354239080 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 
 /* Memory test
  *
index 7807eb17acfef12e13b65d8b83da3909c4175341..f082e4c546cc051b3105e1f3aa77791fa699e226 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <irq_func.h>
+#include <log.h>
 
 /*
  * CPU test
index 696a60f70a7146a021ba95c59b724b9fe3746c6e..6687e0b75cac897decf160dc41309dd773dc45a6 100644 (file)
@@ -5,7 +5,9 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
 #include <env.h>
+#include <log.h>
 #include <malloc.h>
 #include <stdio_dev.h>
 #include <time.h>
index 6dde9bcdb1e04758764dd4367126d5bf34d48a62..61d025f053b2ecd64a4cb59c9345fef8aa380ae5 100644 (file)
@@ -415,7 +415,6 @@ CONFIG_ENABLE_36BIT_PHYS
 CONFIG_ENABLE_MMU
 CONFIG_ENABLE_MUST_CHECK
 CONFIG_ENABLE_WARN_DEPRECATED
-CONFIG_ENV_ACCESS_IGNORE_FORCE
 CONFIG_ENV_ADDR_FLEX
 CONFIG_ENV_CALLBACK_LIST_DEFAULT
 CONFIG_ENV_CALLBACK_LIST_STATIC
@@ -644,8 +643,6 @@ CONFIG_GPIO_LED_STUBS
 CONFIG_GREEN_LED
 CONFIG_GURNARD_FPGA
 CONFIG_GURNARD_SPLASH
-CONFIG_GZIP_COMPRESSED
-CONFIG_GZIP_COMPRESS_DEF_SZ
 CONFIG_G_DNL_THOR_PRODUCT_NUM
 CONFIG_G_DNL_THOR_VENDOR_NUM
 CONFIG_G_DNL_UMS_PRODUCT_NUM
@@ -942,8 +939,6 @@ CONFIG_KONA
 CONFIG_KONA_GPIO
 CONFIG_KONA_RESET_S
 CONFIG_KPROBES
-CONFIG_KS8851_MLL
-CONFIG_KS8851_MLL_BASEADDR
 CONFIG_KSNAV_NETCP_PDMA_CTRL_BASE
 CONFIG_KSNAV_NETCP_PDMA_RX_BASE
 CONFIG_KSNAV_NETCP_PDMA_RX_CH_NUM
@@ -1733,7 +1728,6 @@ CONFIG_STV0991_HZ
 CONFIG_STV0991_HZ_CLOCK
 CONFIG_ST_SMI
 CONFIG_SUNXI_MAX_FB_SIZE
-CONFIG_SUVD3
 CONFIG_SXNI855T
 CONFIG_SYSFLAGS_ADDR
 CONFIG_SYSFS
index be7187336615432d5659ab1cc90a2ac6cfaa7d7d..c090e6991ec2ce782bde71df5b19dc6f6f0ce56a 100644 (file)
@@ -879,3 +879,8 @@ err:
 
        return ret;
 }
+
+int fdt_overlay_apply_node(void *fdt, int target, void *fdto, int node)
+{
+       return overlay_apply_node(fdt, target, fdto, node);
+}
index fa63fffe28e96899f3a5fb80fbc4df52990a96a5..421f90ad93a1c92d594c55574a6ca8749bbc83a1 100644 (file)
@@ -2032,6 +2032,13 @@ int fdt_del_node(void *fdt, int nodeoffset);
  */
 int fdt_overlay_apply(void *fdt, void *fdto);
 
+/**
+ * fdt_overlay_apply_node - Merges a node into the base device tree
+ *
+ * See overlay_apply_node() for details.
+ */
+int fdt_overlay_apply_node(void *fdt, int target, void *fdto, int node);
+
 /**********************************************************************/
 /* Debugging / informational functions                                */
 /**********************************************************************/
index bdcca0291c7127a8c2e68542eca7d9960eaf74e4..4e537ee1b9c422d73af98e1ab67cda8a887cc943 100644 (file)
@@ -234,7 +234,8 @@ static int bloblist_test_checksum(struct unit_test_state *uts)
 
 BLOBLIST_TEST(bloblist_test_checksum, 0);
 
-int do_ut_bloblist(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_ut_bloblist(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        struct unit_test *tests = ll_entry_start(struct unit_test,
                                                 bloblist_test);
index bd20a69c55219baceae71dc1d5da5e9c168f0a13..cc9543c315c1eda35a6a64769e18d62cfa197e68 100644 (file)
@@ -9,11 +9,12 @@
 #include <test/suites.h>
 #include <test/test.h>
 
-static int do_ut_all(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
+static int do_ut_all(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[]);
 
 int cmd_ut_category(const char *name, const char *prefix,
                    struct unit_test *tests, int n_ents,
-                   int argc, char * const argv[])
+                   int argc, char *const argv[])
 {
        struct unit_test_state uts = { .fail_count = 0 };
        struct unit_test *test;
@@ -43,7 +44,7 @@ int cmd_ut_category(const char *name, const char *prefix,
        return uts.fail_count ? CMD_RET_FAILURE : 0;
 }
 
-static cmd_tbl_t cmd_ut_sub[] = {
+static struct cmd_tbl cmd_ut_sub[] = {
        U_BOOT_CMD_MKENT(all, CONFIG_SYS_MAXARGS, 1, do_ut_all, "", ""),
 #if defined(CONFIG_UT_DM)
        U_BOOT_CMD_MKENT(dm, CONFIG_SYS_MAXARGS, 1, do_ut_dm, "", ""),
@@ -79,7 +80,8 @@ static cmd_tbl_t cmd_ut_sub[] = {
 #endif
 };
 
-static int do_ut_all(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_ut_all(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        int i;
        int retval;
@@ -95,9 +97,9 @@ static int do_ut_all(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return any_fail;
 }
 
-static int do_ut(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_ut(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
-       cmd_tbl_t *cp;
+       struct cmd_tbl *cp;
 
        if (argc < 2)
                return CMD_RET_USAGE;
index 8e268e5ee523af975e4aa5836b09b903c2f24e41..9837d10eb5c95d8cb689d819367d2cb36e205f96 100644 (file)
@@ -7,12 +7,15 @@
 
 #include <common.h>
 #include <command.h>
+#include <env.h>
+#include <log.h>
 
 static const char test_cmd[] = "setenv list 1\n setenv list ${list}2; "
                "setenv list ${list}3\0"
                "setenv list ${list}4";
 
-static int do_ut_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_ut_cmd(struct cmd_tbl *cmdtp, int flag, int argc,
+                    char *const argv[])
 {
        printf("%s: Testing commands\n", __func__);
        run_command("env default -f -a", 0);
index 63f929fa4bd44cb1a8089dc14457e8ded7f36e8d..a2a4b9ff9e85270b23531c59a8210737dfe3f140 100644 (file)
@@ -7,6 +7,8 @@
 #include <bootm.h>
 #include <command.h>
 #include <gzip.h>
+#include <image.h>
+#include <log.h>
 #include <lz4.h>
 #include <malloc.h>
 #include <mapmem.h>
@@ -162,7 +164,7 @@ static int compress_using_bzip2(struct unit_test_state *uts,
 {
        /* There is no bzip2 compression in u-boot, so fake it. */
        ut_asserteq(in_size, strlen(plain));
-       ut_asserteq(0, memcmp(plain, in, in_size));
+       ut_asserteq_mem(plain, in, in_size);
 
        if (bzip2_compressed_size > out_max)
                return -1;
@@ -197,7 +199,7 @@ static int compress_using_lzma(struct unit_test_state *uts,
 {
        /* There is no lzma compression in u-boot, so fake it. */
        ut_asserteq(in_size,  strlen(plain));
-       ut_asserteq(0, memcmp(plain, in, in_size));
+       ut_asserteq_mem(plain, in, in_size);
 
        if (lzma_compressed_size > out_max)
                return -1;
@@ -231,7 +233,7 @@ static int compress_using_lzo(struct unit_test_state *uts,
 {
        /* There is no lzo compression in u-boot, so fake it. */
        ut_asserteq(in_size,  strlen(plain));
-       ut_asserteq(0, memcmp(plain, in, in_size));
+       ut_asserteq_mem(plain, in, in_size);
 
        if (lzo_compressed_size > out_max)
                return -1;
@@ -266,7 +268,7 @@ static int compress_using_lz4(struct unit_test_state *uts,
 {
        /* There is no lz4 compression in u-boot, so fake it. */
        ut_asserteq(in_size,  strlen(plain));
-       ut_asserteq(0, memcmp(plain, in, in_size));
+       ut_asserteq_mem(plain, in, in_size);
 
        if (lz4_compressed_size > out_max)
                return -1;
@@ -534,7 +536,8 @@ static int compression_test_bootm_none(struct unit_test_state *uts)
 }
 COMPRESSION_TEST(compression_test_bootm_none, 0);
 
-int do_ut_compression(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_ut_compression(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        struct unit_test *tests = ll_entry_start(struct unit_test,
                                                 compression_test);
index 176d207a5544da01843ccb3dc615aa52f248671f..4c46dd83a695bbc0d5b5afd312d7af9ad798eeb8 100644 (file)
@@ -218,20 +218,20 @@ static int dm_test_acpi_setup_base_tables(struct unit_test_state *uts)
 
        rsdp = buf + 16;
        ut_asserteq_ptr(rsdp, ctx.rsdp);
-       ut_assertok(memcmp(RSDP_SIG, rsdp->signature, sizeof(rsdp->signature)));
+       ut_asserteq_mem(RSDP_SIG, rsdp->signature, sizeof(rsdp->signature));
        ut_asserteq(sizeof(*rsdp), rsdp->length);
        ut_assertok(table_compute_checksum(rsdp, 20));
        ut_assertok(table_compute_checksum(rsdp, sizeof(*rsdp)));
 
        rsdt = PTR_ALIGN((void *)rsdp + sizeof(*rsdp), 16);
        ut_asserteq_ptr(rsdt, ctx.rsdt);
-       ut_assertok(memcmp("RSDT", rsdt->header.signature, ACPI_NAME_LEN));
+       ut_asserteq_mem("RSDT", rsdt->header.signature, ACPI_NAME_LEN);
        ut_asserteq(sizeof(*rsdt), rsdt->header.length);
        ut_assertok(table_compute_checksum(rsdt, sizeof(*rsdt)));
 
        xsdt = PTR_ALIGN((void *)rsdt + sizeof(*rsdt), 16);
        ut_asserteq_ptr(xsdt, ctx.xsdt);
-       ut_assertok(memcmp("XSDT", xsdt->header.signature, ACPI_NAME_LEN));
+       ut_asserteq_mem("XSDT", xsdt->header.signature, ACPI_NAME_LEN);
        ut_asserteq(sizeof(*xsdt), xsdt->header.length);
        ut_assertok(table_compute_checksum(xsdt, sizeof(*xsdt)));
 
index e234ab82e65b475f6d917bb0a5e6ba8ce55de1eb..e1155a51dd7e542484a8a1caa41d94be59d1d0ef 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <axi.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/test.h>
 #include <test/ut.h>
 #include <asm/axi.h>
@@ -65,11 +66,11 @@ static int dm_test_axi_store(struct unit_test_state *uts)
        /* Test writing */
        val = 0x55667788;
        axi_write(store, 0, &val, AXI_SIZE_32);
-       ut_asserteq(0, memcmp(data, tdata1, ARRAY_SIZE(tdata1)));
+       ut_asserteq_mem(data, tdata1, ARRAY_SIZE(tdata1));
 
        val = 0xaabbccdd;
        axi_write(store, 3, &val, AXI_SIZE_32);
-       ut_asserteq(0, memcmp(data + 3, tdata2, ARRAY_SIZE(tdata1)));
+       ut_asserteq_mem(data + 3, tdata2, ARRAY_SIZE(tdata1));
 
        return 0;
 }
index 9c71adc69d914977a9cb0460980c949a4ae3af91..94b2855b8e9efa9aa5736022c08aba9474ead81f 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <part.h>
 #include <usb.h>
 #include <asm/state.h>
 #include <dm/test.h>
index 0f267a192606f3f4d1c1430c604ff8667386b4e4..5472c65fad61206e1fa1da5174f5984b0e46d529 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/test.h>
 #include <board.h>
 #include <test/ut.h>
index 0817b7d3ec18a082534b39a85933ea440ed934ee..be0c27890706f1ffef472f13d78699a939fe8dac 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <bootcount.h>
+#include <log.h>
 #include <asm/test.h>
 #include <dm/test.h>
 #include <test/ut.h>
index 1ad45adb6059c7a574c2d5775f8b7b36e0ad3f7c..73eb3aede3d6752e8da19697c4df6fef6d0f1b35 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #ifdef CONFIG_SANDBOX
+#include <log.h>
 #include <os.h>
 #endif
 #include <dm.h>
index 003b78934f35d75fb64d01b40c4c0e221f88c20d..48fc3dd714ccd1a369d42641861b71decaadde81 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/clk.h>
 #include <dm/test.h>
index f74c4308439e6ba08d2d615bc5f5f38ffde1e560..6a930ae31ad5f49afbe0c9e4e8412ec9f1d6e0b0 100644 (file)
@@ -9,6 +9,7 @@
 #include <errno.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <malloc.h>
 #include <dm/device-internal.h>
 #include <dm/root.h>
index def9b64a282fd575f19d5805a7726b45de77ec2d..46683d884a4e35855f41df4e81c61f80276cb4db 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/test.h>
 #include <dm/uclass-internal.h>
 #include <cpu.h>
index cbd0972c9b48781a8cc063a6e4a4872a3b27be03..b5de0cb191ab41cdf38f03dba89353b10626147c 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <errno.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <dm/device-internal.h>
 #include <dm/devres.h>
index 12cba57a56f78bd838f7bf7cec4178a740a732ba..317ed4fe8c691b135737103f0faad5a1dfb85d7c 100644 (file)
@@ -30,8 +30,8 @@ static int dm_test_dma_m2m(struct unit_test_state *uts)
                src_buf[i] = i;
 
        ut_assertok(dma_memcpy(dst_buf, src_buf, len));
+       ut_asserteq_mem(src_buf, dst_buf, len);
 
-       ut_assertok(memcmp(src_buf, dst_buf, len));
        return 0;
 }
 DM_TEST(dm_test_dma_m2m, DM_TESTF_SCAN_FDT);
@@ -72,7 +72,7 @@ static int dm_test_dma(struct unit_test_state *uts)
 
        ut_assertok(dma_free(&dma_tx));
        ut_assertok(dma_free(&dma_rx));
-       ut_assertok(memcmp(src_buf, dst_buf, len));
+       ut_asserteq_mem(src_buf, dst_buf, len);
 
        return 0;
 }
@@ -117,7 +117,7 @@ static int dm_test_dma_rx(struct unit_test_state *uts)
 
        ut_assertok(dma_free(&dma_tx));
        ut_assertok(dma_free(&dma_rx));
-       ut_assertok(memcmp(src_buf, dst_buf, len));
+       ut_asserteq_mem(src_buf, dst_buf, len);
 
        return 0;
 }
index ad5354b4bfbf5586faed4df1aad6df7e405890c1..1fddcaabb093258bcf752879b1009ea2975f8646 100644 (file)
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <env.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <malloc.h>
 #include <net.h>
 #include <dm/test.h>
@@ -281,17 +282,17 @@ static int sb_check_arp_reply(struct udevice *dev, void *packet,
        ut_assert(arp_is_waiting());
 
        /* Validate response */
-       ut_assert(memcmp(eth->et_src, net_ethaddr, ARP_HLEN) == 0);
-       ut_assert(memcmp(eth->et_dest, priv->fake_host_hwaddr, ARP_HLEN) == 0);
+       ut_asserteq_mem(eth->et_src, net_ethaddr, ARP_HLEN);
+       ut_asserteq_mem(eth->et_dest, priv->fake_host_hwaddr, ARP_HLEN);
        ut_assert(eth->et_protlen == htons(PROT_ARP));
 
        ut_assert(arp->ar_hrd == htons(ARP_ETHER));
        ut_assert(arp->ar_pro == htons(PROT_IP));
        ut_assert(arp->ar_hln == ARP_HLEN);
        ut_assert(arp->ar_pln == ARP_PLEN);
-       ut_assert(memcmp(&arp->ar_sha, net_ethaddr, ARP_HLEN) == 0);
+       ut_asserteq_mem(&arp->ar_sha, net_ethaddr, ARP_HLEN);
        ut_assert(net_read_ip(&arp->ar_spa).s_addr == net_ip.s_addr);
-       ut_assert(memcmp(&arp->ar_tha, priv->fake_host_hwaddr, ARP_HLEN) == 0);
+       ut_asserteq_mem(&arp->ar_tha, priv->fake_host_hwaddr, ARP_HLEN);
        ut_assert(net_read_ip(&arp->ar_tpa).s_addr ==
                  string_to_ip("1.1.2.4").s_addr);
 
@@ -372,8 +373,8 @@ static int sb_check_ping_reply(struct udevice *dev, void *packet,
        ut_assert(arp_is_waiting());
 
        /* Validate response */
-       ut_assert(memcmp(eth->et_src, net_ethaddr, ARP_HLEN) == 0);
-       ut_assert(memcmp(eth->et_dest, priv->fake_host_hwaddr, ARP_HLEN) == 0);
+       ut_asserteq_mem(eth->et_src, net_ethaddr, ARP_HLEN);
+       ut_asserteq_mem(eth->et_dest, priv->fake_host_hwaddr, ARP_HLEN);
        ut_assert(eth->et_protlen == htons(PROT_IP));
 
        ut_assert(net_read_ip(&ip->ip_src).s_addr == net_ip.s_addr);
index 7c18e5c41190bbf6ba7d01234aaeb3f43b11f1f1..b5ee4e4f871da1595ea67fb0d55c9264cbef63b7 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <fdtdec.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <dm/root.h>
 #include <dm/test.h>
index cadbb43b9e0d5d93b2ae9596523eb89bcfd50a64..2025c4216d0d91722fe26f684d41cb1cd0563925 100644 (file)
@@ -51,10 +51,10 @@ static int dm_test_i2c_read_write(struct unit_test_state *uts)
        ut_assertok(uclass_get_device_by_seq(UCLASS_I2C, busnum, &bus));
        ut_assertok(i2c_get_chip(bus, chip, 1, &dev));
        ut_assertok(dm_i2c_read(dev, 0, buf, 5));
-       ut_assertok(memcmp(buf, "\0\0\0\0\0", sizeof(buf)));
+       ut_asserteq_mem(buf, "\0\0\0\0\0", sizeof(buf));
        ut_assertok(dm_i2c_write(dev, 2, (uint8_t *)"AB", 2));
        ut_assertok(dm_i2c_read(dev, 0, buf, 5));
-       ut_assertok(memcmp(buf, "\0\0AB\0", sizeof(buf)));
+       ut_asserteq_mem(buf, "\0\0AB\0", sizeof(buf));
 
        return 0;
 }
@@ -123,7 +123,7 @@ static int dm_test_i2c_bytewise(struct unit_test_state *uts)
        ut_assertok(uclass_get_device_by_seq(UCLASS_I2C, busnum, &bus));
        ut_assertok(i2c_get_chip(bus, chip, 1, &dev));
        ut_assertok(dm_i2c_read(dev, 0, buf, 5));
-       ut_assertok(memcmp(buf, "\0\0\0\0\0", sizeof(buf)));
+       ut_asserteq_mem(buf, "\0\0\0\0\0", sizeof(buf));
 
        /* Tell the EEPROM to only read/write one register at a time */
        ut_assertok(uclass_first_device(UCLASS_I2C_EMUL, &eeprom));
@@ -132,34 +132,34 @@ static int dm_test_i2c_bytewise(struct unit_test_state *uts)
 
        /* Now we only get the first byte - the rest will be 0xff */
        ut_assertok(dm_i2c_read(dev, 0, buf, 5));
-       ut_assertok(memcmp(buf, "\0\xff\xff\xff\xff", sizeof(buf)));
+       ut_asserteq_mem(buf, "\0\xff\xff\xff\xff", sizeof(buf));
 
        /* If we do a separate transaction for each byte, it works */
        ut_assertok(i2c_set_chip_flags(dev, DM_I2C_CHIP_RD_ADDRESS));
        ut_assertok(dm_i2c_read(dev, 0, buf, 5));
-       ut_assertok(memcmp(buf, "\0\0\0\0\0", sizeof(buf)));
+       ut_asserteq_mem(buf, "\0\0\0\0\0", sizeof(buf));
 
        /* This will only write A */
        ut_assertok(i2c_set_chip_flags(dev, 0));
        ut_assertok(dm_i2c_write(dev, 2, (uint8_t *)"AB", 2));
        ut_assertok(dm_i2c_read(dev, 0, buf, 5));
-       ut_assertok(memcmp(buf, "\0\xff\xff\xff\xff", sizeof(buf)));
+       ut_asserteq_mem(buf, "\0\xff\xff\xff\xff", sizeof(buf));
 
        /* Check that the B was ignored */
        ut_assertok(i2c_set_chip_flags(dev, DM_I2C_CHIP_RD_ADDRESS));
        ut_assertok(dm_i2c_read(dev, 0, buf, 5));
-       ut_assertok(memcmp(buf, "\0\0A\0\0\0", sizeof(buf)));
+       ut_asserteq_mem(buf, "\0\0A\0\0\0", sizeof(buf));
 
        /* Now write it again with the new flags, it should work */
        ut_assertok(i2c_set_chip_flags(dev, DM_I2C_CHIP_WR_ADDRESS));
        ut_assertok(dm_i2c_write(dev, 2, (uint8_t *)"AB", 2));
        ut_assertok(dm_i2c_read(dev, 0, buf, 5));
-       ut_assertok(memcmp(buf, "\0\xff\xff\xff\xff", sizeof(buf)));
+       ut_asserteq_mem(buf, "\0\xff\xff\xff\xff", sizeof(buf));
 
        ut_assertok(i2c_set_chip_flags(dev, DM_I2C_CHIP_WR_ADDRESS |
                                                DM_I2C_CHIP_RD_ADDRESS));
        ut_assertok(dm_i2c_read(dev, 0, buf, 5));
-       ut_assertok(memcmp(buf, "\0\0AB\0\0", sizeof(buf)));
+       ut_asserteq_mem(buf, "\0\0AB\0\0", sizeof(buf));
 
        /* Restore defaults */
        sandbox_i2c_eeprom_set_test_mode(eeprom, SIE_TEST_MODE_NONE);
index dc229aed6d00d16ea198263a8acbac9c6765fd04..ba1b54f27e272a25df5c392cda97e49f9a27ef8f 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/test.h>
 #include <misc.h>
 #include <test/ut.h>
index 4d4232adf1e7ceed98bb57a202c120819b73e678..26fd6acecb9a73b8b67655095808be13ab80c924 100644 (file)
@@ -25,24 +25,24 @@ static int dm_test_misc(struct unit_test_state *uts)
        ut_asserteq(5, misc_write(dev, 4, "WRITE", 5));
        ut_asserteq(9, misc_read(dev, 0, buf, 9));
 
-       ut_assertok(memcmp(buf, "TESTWRITE", 9));
+       ut_asserteq_mem(buf, "TESTWRITE", 9);
 
        /* Call tests */
 
        id = 0;
        ut_assertok(misc_call(dev, 0, &id, 4, buf, 16));
-       ut_assertok(memcmp(buf, "Zero", 4));
+       ut_asserteq_mem(buf, "Zero", 4);
 
        id = 2;
        ut_assertok(misc_call(dev, 0, &id, 4, buf, 16));
-       ut_assertok(memcmp(buf, "Two", 3));
+       ut_asserteq_mem(buf, "Two", 3);
 
        ut_assertok(misc_call(dev, 1, &id, 4, buf, 16));
-       ut_assertok(memcmp(buf, "Forty-two", 9));
+       ut_asserteq_mem(buf, "Forty-two", 9);
 
        id = 1;
        ut_assertok(misc_call(dev, 1, &id, 4, buf, 16));
-       ut_assertok(memcmp(buf, "Forty-one", 9));
+       ut_asserteq_mem(buf, "Forty-one", 9);
 
        /* IOCTL tests */
 
index 9ab0db1b66fee7f27489cd20311b6692d7e82491..49402b9c90298c59644f1fce3093ce5e1e2d5c37 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <mmc.h>
+#include <part.h>
 #include <dm/test.h>
 #include <test/ut.h>
 
index 07d5c7d7a6567b6541193170ec8c2c102c3aaada..1114f34cbf8dbb4bb6016f66f36815b922ed4e92 100644 (file)
@@ -2,6 +2,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <dm/of_extra.h>
 #include <dm/test.h>
 #include <test/ut.h>
index 6910690b3a9e645ac4e141a7faa6b031c9517c30..5739dfa0b8f2bcfdac86d2de20eda3135d15a8bf 100644 (file)
@@ -71,27 +71,29 @@ static int dm_test_osd_basics(struct unit_test_state *uts)
        ut_assertok(sandbox_osd_get_mem(dev, mem, memsize));
        split(mem, memsize / 2, text, colors);
 
-       ut_assertok(memcmp(text, "          "
-                                "          "
-                                "          "
-                                "          "
-                                "          "
-                                "          "
-                                "          "
-                                "          "
-                                "          "
-                                "          ", memsize / 2));
-
-       ut_assertok(memcmp(colors, "kkkkkkkkkk"
-                                  "kkkkkkkkkk"
-                                  "kkkkkkkkkk"
-                                  "kkkkkkkkkk"
-                                  "kkkkkkkkkk"
-                                  "kkkkkkkkkk"
-                                  "kkkkkkkkkk"
-                                  "kkkkkkkkkk"
-                                  "kkkkkkkkkk"
-                                  "kkkkkkkkkk", memsize / 2));
+       ut_asserteq_mem(text,
+                       "          "
+                       "          "
+                       "          "
+                       "          "
+                       "          "
+                       "          "
+                       "          "
+                       "          "
+                       "          "
+                       "          ", memsize / 2);
+
+       ut_asserteq_mem(colors,
+                       "kkkkkkkkkk"
+                       "kkkkkkkkkk"
+                       "kkkkkkkkkk"
+                       "kkkkkkkkkk"
+                       "kkkkkkkkkk"
+                       "kkkkkkkkkk"
+                       "kkkkkkkkkk"
+                       "kkkkkkkkkk"
+                       "kkkkkkkkkk"
+                       "kkkkkkkkkk", memsize / 2);
 
        print_mem(mem, 10, 10);
 
@@ -100,27 +102,29 @@ static int dm_test_osd_basics(struct unit_test_state *uts)
        ut_assertok(sandbox_osd_get_mem(dev, mem, memsize));
        split(mem, memsize / 2, text, colors);
 
-       ut_assertok(memcmp(text, "          "
-                                " Blah     "
-                                "          "
-                                "          "
-                                "          "
-                                "          "
-                                "          "
-                                "          "
-                                "          "
-                                "          ", memsize / 2));
-
-       ut_assertok(memcmp(colors, "kkkkkkkkkk"
-                                  "krrrrkkkkk"
-                                  "kkkkkkkkkk"
-                                  "kkkkkkkkkk"
-                                  "kkkkkkkkkk"
-                                  "kkkkkkkkkk"
-                                  "kkkkkkkkkk"
-                                  "kkkkkkkkkk"
-                                  "kkkkkkkkkk"
-                                  "kkkkkkkkkk", memsize / 2));
+       ut_asserteq_mem(text,
+                       "          "
+                       " Blah     "
+                       "          "
+                       "          "
+                       "          "
+                       "          "
+                       "          "
+                       "          "
+                       "          "
+                       "          ", memsize / 2);
+
+       ut_asserteq_mem(colors,
+                       "kkkkkkkkkk"
+                       "krrrrkkkkk"
+                       "kkkkkkkkkk"
+                       "kkkkkkkkkk"
+                       "kkkkkkkkkk"
+                       "kkkkkkkkkk"
+                       "kkkkkkkkkk"
+                       "kkkkkkkkkk"
+                       "kkkkkkkkkk"
+                       "kkkkkkkkkk", memsize / 2);
 
        print_mem(mem, 10, 10);
 
@@ -152,17 +156,19 @@ static int dm_test_osd_extended(struct unit_test_state *uts)
        ut_assertok(sandbox_osd_get_mem(dev, mem, memsize));
        split(mem, memsize / 2, text, colors);
 
-       ut_assertok(memcmp(text, "                    "
-                                "                    "
-                                "                    "
-                                "                    "
-                                "                    ", memsize / 2));
+       ut_asserteq_mem(text,
+                       "                    "
+                       "                    "
+                       "                    "
+                       "                    "
+                       "                    ", memsize / 2);
 
-       ut_assertok(memcmp(colors, "kkkkkkkkkkkkkkkkkkkk"
-                                  "kkkkkkkkkkkkkkkkkkkk"
-                                  "kkkkkkkkkkkkkkkkkkkk"
-                                  "kkkkkkkkkkkkkkkkkkkk"
-                                  "kkkkkkkkkkkkkkkkkkkk", memsize / 2));
+       ut_asserteq_mem(colors,
+                       "kkkkkkkkkkkkkkkkkkkk"
+                       "kkkkkkkkkkkkkkkkkkkk"
+                       "kkkkkkkkkkkkkkkkkkkk"
+                       "kkkkkkkkkkkkkkkkkkkk"
+                       "kkkkkkkkkkkkkkkkkkkk", memsize / 2);
 
        print_mem(mem, 20, 5);
 
@@ -192,17 +198,19 @@ static int dm_test_osd_extended(struct unit_test_state *uts)
 
        print_mem(mem, 20, 5);
 
-       ut_assertok(memcmp(text, "+---- OSD menu ----+"
-                                "|  *  Entry 1      |"
-                                "| (*) Entry 2      |"
-                                "|  *  Entry 3      |"
-                                "+------------------+", memsize / 2));
-
-       ut_assertok(memcmp(colors, "gggggggggggggggggggg"
-                                  "gkbbbbbbbbbbbkkkkkkg"
-                                  "gkbbbbbbbbbbbkkkkkkg"
-                                  "gkbbbbbbbbbbbkkkkkkg"
-                                  "gggggggggggggggggggg", memsize / 2));
+       ut_asserteq_mem(text,
+                       "+---- OSD menu ----+"
+                       "|  *  Entry 1      |"
+                       "| (*) Entry 2      |"
+                       "|  *  Entry 3      |"
+                        "+------------------+", memsize / 2);
+
+       ut_asserteq_mem(colors,
+                       "gggggggggggggggggggg"
+                       "gkbbbbbbbbbbbkkkkkkg"
+                       "gkbbbbbbbbbbbkkkkkkg"
+                       "gkbbbbbbbbbbbkkkkkkg"
+                       "gggggggggggggggggggg", memsize / 2);
 
        return 0;
 }
index 92455d94affac090642f6a5f914b5a576f24c68b..99f011955780bb4a0f7ad921b310145404a137a8 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <dm.h>
 #include <generic-phy.h>
+#include <log.h>
 #include <dm/test.h>
 #include <test/ut.h>
 
index b21f66732b9d14cb1f93ab1d5d1a166bd8a0bea7..809494d585eea4258ea2f5defc8ef5c043f6b448 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <mapmem.h>
 #include <regmap.h>
 #include <syscon.h>
index b967902493dd3a0005ae1eaf2dfc394f851edb9c..ca916eeebb67835703bac8594d62d4dc397463fe 100644 (file)
@@ -10,6 +10,7 @@
 #include <errno.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <malloc.h>
 #include <dm/device-internal.h>
 #include <dm/root.h>
index 40675962d87241e32df9ab18a0db156e9bce1710..9511c7dd6f5576b62de6cc1bb6e971c368c18e53 100644 (file)
@@ -223,7 +223,7 @@ static int dm_test_remoteproc_elf(struct unit_test_state *uts)
 
        /* Load firmware in loaded_firmware, and verify it */
        ut_assertok(rproc_elf32_load_image(dev, (ulong)valid_elf32, size));
-       ut_assertok(memcmp(loaded_firmware, valid_elf32, loaded_firmware_size));
+       ut_asserteq_mem(loaded_firmware, valid_elf32, loaded_firmware_size);
        ut_asserteq(rproc_elf_get_boot_addr(dev, (unsigned long)valid_elf32),
                    0x08000000);
        unmap_physmem(loaded_firmware, MAP_NOCACHE);
@@ -243,8 +243,8 @@ static int dm_test_remoteproc_elf(struct unit_test_state *uts)
                                               &rsc_addr, &rsc_size));
        ut_asserteq(rsc_addr, CONFIG_SYS_SDRAM_BASE);
        ut_asserteq(rsc_size, rsc_table_size);
-       ut_assertok(memcmp(loaded_firmware, valid_elf32 + shdr->sh_offset,
-                          shdr->sh_size));
+       ut_asserteq_mem(loaded_firmware, valid_elf32 + shdr->sh_offset,
+                       shdr->sh_size);
        unmap_physmem(loaded_firmware, MAP_NOCACHE);
 
        /* Invalid ELF Magic */
index 8370820428c38a476cd11c938523693d5514eb1e..871d6400a07346ca5d441408da95d29aed410291 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <reset.h>
 #include <dm/test.h>
index ce20e2d7c2ce16d8a43e43d260bc88bec7cda9f3..583ce9eddf0ecc9960449d202dc407e8c8eb6552 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <rng.h>
 #include <dm/test.h>
 #include <test/ut.h>
index 71887427647b1540ed6866ca32614a26c5a47ef1..88f86581cce77c446e98bef1e7c49f79a54e6982 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <dm.h>
 #include <i2c.h>
+#include <log.h>
 #include <rtc.h>
 #include <asm/io.h>
 #include <asm/test.h>
index c6be6ab7abd00d3864e2b80bfd7979690dcfdaa8..6237693cb804df563f041610231546dc0d80948b 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <serial.h>
 #include <dm.h>
 #include <dm/test.h>
index 7805af740ed5032f38c95dda016eb2c92858e897..55b8d1545fc59c1328a70bdf2f8a1e5098581265 100644 (file)
@@ -35,7 +35,7 @@ static int dm_test_spi_flash(struct unit_test_state *uts)
 
        dst = map_sysmem(0x20000 + full_size, full_size);
        ut_assertok(spi_flash_read_dm(dev, 0, size, dst));
-       ut_assertok(memcmp(src, dst, size));
+       ut_asserteq_mem(src, dst, size);
 
        /* Erase */
        ut_assertok(spi_flash_erase_dm(dev, 0, size));
@@ -48,7 +48,7 @@ static int dm_test_spi_flash(struct unit_test_state *uts)
                src[i] = i;
        ut_assertok(spi_flash_write_dm(dev, 0, size, src));
        ut_assertok(spi_flash_read_dm(dev, 0, size, dst));
-       ut_assertok(memcmp(src, dst, size));
+       ut_asserteq_mem(src, dst, size);
 
        /* Try the write-protect stuff */
        ut_assertok(uclass_first_device_err(UCLASS_SPI_EMUL, &emul));
index f1021f374b61e492cfc821c82c948f4d76f8b61c..06a1c69ac5cb2c3be1968440e8de47a52a2617e6 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <syscon.h>
 #include <regmap.h>
 #include <asm/test.h>
index d40f13d291559f9d4781b53cd42ceae3095d64e0..632e9960b0b08d190be3d59ac54bfae4026b16c5 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <dm/test.h>
 #include <sandboxtee.h>
index abb5b7115a33013f9743688b8d849e0696622fb1..ba85fa313e8e2cb8d1b42c13d155d40272c36c71 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <dm/test.h>
 #include <test/ut.h>
index 1128c420a304b089b5485ce5840c730feeb811fb..4fcae03dc5b26aa1506a86905c6728ff868e57fd 100644 (file)
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/io.h>
 #include <dm/test.h>
index d7dc8d1f915b1fee314cba1066d74b6763099040..53e5ca321fe98c980d83db74e416167b2c840f60 100644 (file)
@@ -8,6 +8,7 @@
 #include <console.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <asm/state.h>
 #include <dm/test.h>
@@ -200,7 +201,7 @@ static int dm_test_main(const char *test_name)
        return uts->fail_count ? CMD_RET_FAILURE : 0;
 }
 
-int do_ut_dm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_ut_dm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        const char *test_name = NULL;
 
index 25271c6ba0459ee1dd262909b67139d7ffd6e68b..b6d629a285ce9d13547518b919a4a943d71dbfe1 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <log.h>
 #include <malloc.h>
 #include <dm.h>
 #include <errno.h>
index e396c2a0ea1c3e7a34db4380fe2a73f2a981df19..a25c2c1482061d0f2f16c8ac19c73ea31a0ee551 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <console.h>
 #include <dm.h>
+#include <part.h>
 #include <usb.h>
 #include <asm/io.h>
 #include <asm/state.h>
index f72979fac4ee895598acac4fc4917673ca85bc59..0664e3f22b3ca825e8235d8f3091674a6c77ccaf 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <bzlib.h>
 #include <dm.h>
+#include <log.h>
 #include <malloc.h>
 #include <mapmem.h>
 #include <os.h>
index ad67dbe7929fdebc374c767f4d1a3c343d557d46..a440b1bfb0e2f3d51749f2c0f2aa67d104c1e885 100644 (file)
@@ -10,7 +10,7 @@
 #include <test/suites.h>
 #include <test/ut.h>
 
-int do_ut_env(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_ut_env(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        struct unit_test *tests = ll_entry_start(struct unit_test, env_test);
        const int n_ents = ll_entry_count(struct unit_test, env_test);
index 5242c4cc3edb7fb4105ec5787065f90cdec940bc..339cc19ba14a0ef3fd2af82f892345c0f06ff966 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <log.h>
 #include <search.h>
 #include <stdio.h>
 #include <test/env.h>
index c73e8d7b05a98c1b62377aeb819f1ac8f768ab35..f5c7bf3d3b00d7db9848636f14d8ac78ac28ccfb 100644 (file)
@@ -11,7 +11,7 @@
 #include <test/suites.h>
 #include <test/ut.h>
 
-int do_ut_lib(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_ut_lib(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        struct unit_test *tests = ll_entry_start(struct unit_test, lib_test);
        const int n_ents = ll_entry_count(struct unit_test, lib_test);
index 1336b54b11f214565d3852061fb1e2c938111352..a0fe0f6b339b7ed050f6b5d1799bdf5ab182d699 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <lmb.h>
+#include <log.h>
 #include <malloc.h>
 #include <dm/test.h>
 #include <test/ut.h>
index 8e246ab4ed972437313124f0302839b1ffa2c2e1..64234bef36cd741ee957ab46fe13644f1ddaec28 100644 (file)
@@ -11,6 +11,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <log.h>
 #include <test/lib.h>
 #include <test/test.h>
 #include <test/ut.h>
index fb8a0b17ba4aadfc9f5339224a9a9dd4dbb7cbda..cbc712f7eda3d19b06a1a93dfd053f2fcd65cf3c 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <command.h>
 #include <hexdump.h>
+#include <rand.h>
 #include <uboot_aes.h>
 #include <test/lib.h>
 #include <test/test.h>
index febc2c1252a2301a5b0d9c68332c95d0c444eda8..4245372d65f6374fdb9c08c020654004d36e1827 100644 (file)
@@ -7,6 +7,8 @@
  */
 
 #include <common.h>
+#include <command.h>
+#include <log.h>
 
 /* emit some sample log records in different ways, for testing */
 static int log_run(enum uclass_id cat, const char *file)
@@ -200,7 +202,7 @@ static int log_test(int testnum)
 }
 
 #ifdef CONFIG_LOG_TEST
-int do_log_test(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_log_test(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int testnum = 0;
        int ret;
index 855de47f337fef3bc247ddbc4658e1c9ea3bea27..c534add493e5c072dc9cd4c14edb8108d0dc0963 100644 (file)
@@ -7,10 +7,11 @@
 
 #include <common.h>
 #include <console.h>
+#include <log.h>
 #include <test/log.h>
 #include <test/suites.h>
 
-int do_ut_log(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_ut_log(struct cmd_tbl *cmdtp, int flag, int argc, char * const argv[])
 {
        struct unit_test *tests = ll_entry_start(struct unit_test, log_test);
        const int n_ents = ll_entry_count(struct unit_test, log_test);
index 092710326a8be2fb8a544ef668bea0a677dc6564..9fa4c91e0dd09b3a43e2aded7f24752be46879e2 100644 (file)
@@ -7,6 +7,7 @@
 #include <command.h>
 #include <errno.h>
 #include <fdt_support.h>
+#include <log.h>
 #include <malloc.h>
 #include <tee/optee.h>
 
@@ -91,7 +92,7 @@ static int optee_fdt_protected_memory(struct unit_test_state *uts)
 }
 OPTEE_TEST(optee_fdt_protected_memory, 0);
 
-int do_ut_optee(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_ut_optee(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        struct unit_test *tests = ll_entry_start(struct unit_test,
                                                 optee_test);
index d0083fd6bee32bdb83ac5c084889b8e15e63b5c2..c001fb183fe8ff89899ad8b8462da5bdc940cd90 100644 (file)
@@ -8,6 +8,8 @@
 #include <command.h>
 #include <errno.h>
 #include <fdt_support.h>
+#include <image.h>
+#include <log.h>
 #include <malloc.h>
 
 #include <linux/sizes.h>
@@ -209,7 +211,7 @@ static int fdt_overlay_stacked(struct unit_test_state *uts)
 }
 OVERLAY_TEST(fdt_overlay_stacked, 0);
 
-int do_ut_overlay(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_ut_overlay(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        struct unit_test *tests = ll_entry_start(struct unit_test,
                                                 overlay_test);
index a3b9974ad26c9a2b6855513665b10945aa99d78f..a456a449efab784cc4e9e9cb5aee86f78519b822 100644 (file)
@@ -7,9 +7,11 @@
 
 #include <common.h>
 #if CONFIG_IS_ENABLED(EFI_LOADER) && !defined(API_BUILD)
+#include <command.h>
 #include <efi_api.h>
 #endif
 #include <display_options.h>
+#include <log.h>
 #include <version.h>
 
 #define FAKE_BUILD_TAG "jenkins-u-boot-denx_uboot_dm-master-build-aarch64" \
@@ -68,7 +70,7 @@ static void efi_ut_print(void)
 #endif
 }
 
-static int do_ut_print(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_ut_print(struct cmd_tbl *cmdtp, int flag, int argc,
                       char *const argv[])
 {
        char big_str[400];
index 7c8015050add951a3d68125182c3495af1134522..ef1205dbbd0fedc62d784c87bf4b413fb61a12fa 100644 (file)
@@ -105,7 +105,7 @@ static int str_simple_strtoul(struct unit_test_state *uts)
 }
 STR_TEST(str_simple_strtoul, 0);
 
-int do_ut_str(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_ut_str(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        struct unit_test *tests = ll_entry_start(struct unit_test,
                                                 str_test);
index 40a19a50d93b92c580df34625adab8805c3ac022..80b82dbfd8331af9b7fd35edaa5cf8a437eb5c2f 100644 (file)
@@ -8,6 +8,7 @@
 #include <command.h>
 #include <errno.h>
 #include <time.h>
+#include <linux/delay.h>
 
 static int test_get_timer(void)
 {
@@ -117,7 +118,7 @@ static int test_udelay(void)
        return 0;
 }
 
-int do_ut_time(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_ut_time(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int ret = 0;
 
index d8b4aa9b4437de2fa55dc86a6bcf6a1f0074be18..26d96336f36b26b4923f6ff25f1943ca64ed46c2 100644 (file)
@@ -9,6 +9,7 @@
 #include <charset.h>
 #include <command.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <test/test.h>
 #include <test/suites.h>
@@ -66,8 +67,9 @@ static int unicode_test_u16_strdup(struct unit_test_state *uts)
        u16 *copy = u16_strdup(c4);
 
        ut_assert(copy != c4);
-       ut_assert(!memcmp(copy, c4, sizeof(c4)));
+       ut_asserteq_mem(copy, c4, sizeof(c4));
        free(copy);
+
        return 0;
 }
 UNICODE_TEST(unicode_test_u16_strdup);
@@ -79,7 +81,8 @@ static int unicode_test_u16_strcpy(struct unit_test_state *uts)
 
        r = u16_strcpy(copy, c1);
        ut_assert(r == copy);
-       ut_assert(!memcmp(copy, c1, sizeof(c1)));
+       ut_asserteq_mem(copy, c1, sizeof(c1));
+
        return 0;
 }
 UNICODE_TEST(unicode_test_u16_strcpy);
@@ -591,7 +594,7 @@ static int unicode_test_u16_strsize(struct unit_test_state *uts)
 }
 UNICODE_TEST(unicode_test_u16_strsize);
 
-int do_ut_unicode(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_ut_unicode(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        struct unit_test *tests = ll_entry_start(struct unit_test, unicode_test);
        const int n_ents = ll_entry_count(struct unit_test, unicode_test);
index b60fbfc8f8de1c9054cc8afa6b9dbe2f190f33b0..78c803c94478bd012cba8f7cc9fa263a45c5e600 100644 (file)
@@ -4,7 +4,6 @@
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  */
 
-#include <env.h>
 #include <stdint.h>
 
 /*
index 1b428c3b2fd4a803577c6429508c503d03b1b5c2..133780f5eaa51c7d75ce9b75b74178965f5eeb0d 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "imx8image.h"
+#include <image.h>
 
 static int p_idx;
 static int sector_size;
index fecb9d6e99c254e412db87a4a22eb4a4d6caca91..ea7d07a277e97ae9b6c5b473f2764bbdc63b6f04 100644 (file)
@@ -532,7 +532,7 @@ static int make_ftrace(void)
        return 0;
 }
 
-static int prof_tool(int argc, char * const argv[],
+static int prof_tool(int argc, char *const argv[],
                     const char *prof_fname, const char *map_fname,
                     const char *trace_config_fname)
 {
index 8f281f5901a4ab52c2b7f62d689eafdc6fc7b847..61c392e27d59dd3e8c054c0ee355ba1ec01dd7d7 100644 (file)
@@ -133,7 +133,7 @@ static int rkcommon_get_aligned_size(struct image_tool_params *params,
 
 int rkcommon_check_params(struct image_tool_params *params)
 {
-       int i;
+       int i, size;
 
        /*
         * If this is a operation (list or extract), the don't require
@@ -153,17 +153,17 @@ int rkcommon_check_params(struct image_tool_params *params)
                spl_params.boot_file += 1;
        }
 
-       spl_params.init_size =
-               rkcommon_get_aligned_size(params, spl_params.init_file);
-       if (spl_params.init_size < 0)
+       size = rkcommon_get_aligned_size(params, spl_params.init_file);
+       if (size < 0)
                return EXIT_FAILURE;
+       spl_params.init_size = size;
 
        /* Boot file is optional, and only for back-to-bootrom functionality. */
        if (spl_params.boot_file) {
-               spl_params.boot_size =
-                       rkcommon_get_aligned_size(params, spl_params.boot_file);
-               if (spl_params.boot_size < 0)
+               size = rkcommon_get_aligned_size(params, spl_params.boot_file);
+               if (size < 0)
                        return EXIT_FAILURE;
+               spl_params.boot_size = size;
        }
 
        if (spl_params.init_size > rkcommon_get_spl_size(params)) {