common: Further reduce the size of common.h
Subsystems (129)
PATCH v3 12/22 command: Remove the cmd_tbl_t typedef
In reply to Simon GlassWe should not use typedefs in U-Boot. They cannot be used as forward declarations which means that header files must include the full header to access them.
Drop the typedef and rename the struct to remove the _s suffix which is now not useful.
This requires quite a few header-file additions.
---
Changes in v3:
- Update imxrt1020-evk, etc.
Changes in v2: None
arch/arc/lib/bootm.c | 1 + arch/arc/lib/reset.c | 2 +- arch/arm/cpu/arm1136/mx35/generic.c | 5 +- arch/arm/cpu/arm926ejs/mxs/mxs.c | 4 +- arch/arm/cpu/arm926ejs/spear/cpu.c | 3 +- arch/arm/cpu/arm926ejs/spear/spr_misc.c | 3 +- arch/arm/cpu/armv7/vf610/generic.c | 5 +- .../armv8/fsl-layerscape/fsl_lsch3_serdes.c | 1 + arch/arm/cpu/armv8/fsl-layerscape/mp.c | 2 +- arch/arm/include/asm/arch-mx6/clock.h | 4 +- arch/arm/lib/bootm.c | 2 +- arch/arm/lib/cmd_boot.c | 2 +- arch/arm/lib/reset.c | 5 +- arch/arm/lib/semihosting.c | 4 +- arch/arm/mach-imx/cmd_bmode.c | 6 +- arch/arm/mach-imx/cmd_dek.c | 3 +- arch/arm/mach-imx/cmd_hdmidet.c | 4 +- arch/arm/mach-imx/cmd_nandbcb.c | 9 +- arch/arm/mach-imx/hab.c | 21 ++-- arch/arm/mach-imx/imx8/ahab.c | 13 +- arch/arm/mach-imx/imx8/snvs_security_sc.c | 13 +- arch/arm/mach-imx/imx8m/clock_imx8mq.c | 5 +- arch/arm/mach-imx/imx_bootaux.c | 3 +- arch/arm/mach-imx/mx5/clock.c | 4 +- arch/arm/mach-imx/mx6/clock.c | 4 +- arch/arm/mach-imx/mx7/clock.c | 4 +- arch/arm/mach-imx/mx7ulp/clock.c | 4 +- arch/arm/mach-keystone/cmd_clock.c | 7 +- arch/arm/mach-keystone/cmd_mon.c | 8 +- arch/arm/mach-keystone/cmd_poweroff.c | 2 +- arch/arm/mach-keystone/ddr3.c | 1 + arch/arm/mach-keystone/keystone.c | 1 + arch/arm/mach-meson/sm.c | 14 ++- arch/arm/mach-omap2/omap3/board.c | 4 +- arch/arm/mach-omap2/sec-common.c | 1 + arch/arm/mach-rockchip/boot_mode.c | 2 + arch/arm/mach-rockchip/cpu-info.c | 1 + arch/arm/mach-rockchip/rk3288/rk3288.c | 5 +- arch/arm/mach-socfpga/clock_manager.c | 4 +- arch/arm/mach-socfpga/misc.c | 4 +- arch/arm/mach-stm32mp/cmd_stm32key.c | 4 +- arch/arm/mach-tegra/cmd_enterrcm.c | 5 +- .../mach-uniphier/boot-device/boot-device.c | 4 +- arch/arm/mach-uniphier/dram/cmd_ddrmphy.c | 4 +- arch/arm/mach-uniphier/dram/cmd_ddrphy.c | 4 +- arch/arm/mach-uniphier/mmc-first-dev.c | 7 +- arch/arm/mach-zynqmp/mp.c | 2 +- arch/m68k/cpu/mcf5227x/cpu.c | 2 +- arch/m68k/cpu/mcf523x/cpu.c | 2 +- arch/m68k/cpu/mcf52x2/cpu.c | 14 +-- arch/m68k/cpu/mcf530x/cpu.c | 3 +- arch/m68k/cpu/mcf532x/cpu.c | 2 +- arch/m68k/cpu/mcf5445x/cpu.c | 2 +- arch/m68k/cpu/mcf547x_8x/cpu.c | 2 +- arch/m68k/lib/bootm.c | 3 +- arch/microblaze/cpu/interrupts.c | 2 +- arch/microblaze/cpu/spl.c | 3 +- arch/microblaze/lib/bootm.c | 2 +- arch/mips/cpu/cpu.c | 2 +- arch/mips/lib/bootm.c | 4 +- arch/mips/mach-ath79/ar934x/clk.c | 4 +- arch/nds32/cpu/n1213/ae3xx/cpu.c | 2 +- arch/nds32/cpu/n1213/ag101/cpu.c | 2 +- arch/nds32/lib/boot.c | 2 +- arch/nios2/cpu/cpu.c | 3 +- arch/nios2/cpu/interrupts.c | 2 +- arch/nios2/lib/bootm.c | 4 +- arch/powerpc/cpu/mpc83xx/cpu.c | 3 +- arch/powerpc/cpu/mpc83xx/ecc.c | 2 +- arch/powerpc/cpu/mpc83xx/interrupts.c | 4 +- arch/powerpc/cpu/mpc83xx/speed.c | 3 +- arch/powerpc/cpu/mpc85xx/cmd_errata.c | 3 +- arch/powerpc/cpu/mpc85xx/cpu.c | 2 +- arch/powerpc/cpu/mpc85xx/interrupts.c | 2 +- arch/powerpc/cpu/mpc85xx/mp.c | 2 +- arch/powerpc/cpu/mpc86xx/cpu.c | 2 +- arch/powerpc/cpu/mpc86xx/interrupts.c | 2 +- arch/powerpc/cpu/mpc86xx/mp.c | 2 +- arch/powerpc/cpu/mpc8xx/cpu.c | 2 +- arch/powerpc/cpu/mpc8xx/immap.c | 19 +-- arch/powerpc/lib/bootm.c | 4 +- arch/powerpc/lib/kgdb.c | 2 +- arch/riscv/lib/boot.c | 2 +- arch/riscv/lib/bootm.c | 4 +- arch/riscv/lib/reset.c | 2 +- arch/sh/cpu/sh4/cpu.c | 2 +- arch/sh/lib/bootm.c | 4 +- arch/sh/lib/zimageboot.c | 5 +- .../include/asm/arch-braswell/fsp/fsp_vpd.h | 2 + arch/x86/lib/bootm.c | 4 +- arch/x86/lib/cmd_boot.c | 2 +- arch/x86/lib/interrupts.c | 2 +- arch/x86/lib/zimage.c | 3 +- board/Arcturus/ucp1020/cmd_arc.c | 4 +- board/BuS/eb_cpu5282/eb_cpu5282.c | 2 +- board/LaCie/net2big_v2/net2big_v2.c | 3 +- board/LaCie/netspace_v2/netspace_v2.c | 2 +- board/Synology/ds414/cmd_syno.c | 9 +- .../imx8qm_rom7720_a1/imx8qm_rom7720_a1.c | 1 + board/amlogic/sei510/sei510.c | 1 + board/amlogic/sei610/sei610.c | 1 + board/aristainetos/aristainetos.c | 1 + board/bosch/guardian/board.c | 1 + board/boundary/nitrogen6x/nitrogen6x.c | 3 +- board/buffalo/lsxl/lsxl.c | 1 + board/cavium/thunderx/atf.c | 3 +- board/corscience/tricorder/tricorder-eeprom.c | 3 +- board/egnite/ethernut5/ethernut5_pwrman.c | 3 +- board/esd/vme8349/caddy.c | 3 +- board/freescale/c29xpcie/cpld.c | 2 +- board/freescale/common/cmd_esbc_validate.c | 8 +- board/freescale/common/ngpixis.c | 3 +- board/freescale/common/pixis.c | 10 +- board/freescale/common/qixis.c | 3 +- board/freescale/common/sys_eeprom.c | 2 +- board/freescale/common/vid.c | 9 +- board/freescale/imx8mm_evk/imx8mm_evk.c | 1 + board/freescale/imx8mm_evk/spl.c | 1 + board/freescale/imx8mn_evk/imx8mn_evk.c | 1 + board/freescale/imx8mn_evk/spl.c | 1 + board/freescale/imx8mp_evk/imx8mp_evk.c | 1 + board/freescale/imx8mp_evk/spl.c | 1 + board/freescale/imxrt1020-evk/imxrt1020-evk.c | 1 + board/freescale/ls1012ardb/ls1012ardb.c | 5 +- board/freescale/ls1021atwr/ls1021atwr.c | 13 +- board/freescale/ls1043ardb/cpld.c | 2 +- board/freescale/ls1046ardb/cpld.c | 2 +- board/freescale/p1010rdb/p1010rdb.c | 5 +- board/freescale/p2041rdb/cpld.c | 2 +- board/freescale/t102xrdb/cpld.c | 2 +- board/freescale/t102xrdb/t102xrdb.c | 4 +- board/freescale/t104xrdb/cpld.c | 2 +- board/freescale/t208xrdb/cpld.c | 2 +- board/freescale/t4qds/t4240qds.c | 4 +- board/freescale/t4rdb/cpld.c | 2 +- board/gardena/smart-gateway-mt7688/board.c | 3 +- board/gateworks/gw_ventana/eeprom.c | 4 +- board/gateworks/gw_ventana/gsc.c | 10 +- board/gdsys/a38x/controlcenterdc.c | 1 + board/gdsys/a38x/hydra.c | 3 +- board/gdsys/common/cmd_ioloop.c | 10 +- board/gdsys/common/osd.c | 10 +- board/gdsys/common/osd_cmd.c | 13 +- board/gdsys/mpc8308/gazerbeam.c | 1 + board/gdsys/p1022/controlcenterd.c | 2 +- board/google/chromebook_coral/coral.c | 1 + board/keymile/common/common.c | 12 +- board/mediatek/mt7622/mt7622_rfb.c | 1 + board/phytium/durian/durian.c | 1 + board/renesas/sh7752evb/sh7752evb.c | 3 +- board/renesas/sh7753evb/sh7753evb.c | 3 +- board/renesas/sh7757lcr/sh7757lcr.c | 5 +- board/renesas/stout/cpld.c | 4 +- board/renesas/ulcb/cpld.c | 4 +- board/rockchip/kylin_rk3036/kylin_rk3036.c | 1 + board/samsung/common/board.c | 1 + board/samsung/common/misc.c | 2 +- board/siemens/capricorn/board.c | 6 +- board/siemens/common/board.c | 9 +- board/siemens/draco/board.c | 5 +- board/siemens/taurus/taurus.c | 4 +- board/sifive/fu540/fu540.c | 1 + board/sks-kinkel/sksimx6/sksimx6.c | 1 + board/solidrun/clearfog/clearfog.c | 1 + board/st/common/cmd_stboard.c | 5 +- .../stm32f429-discovery/stm32f429-discovery.c | 1 + .../stm32f429-evaluation.c | 1 + .../stm32f469-discovery/stm32f469-discovery.c | 1 + board/synopsys/emsdp/emsdp.c | 11 +- board/synopsys/hsdk/hsdk.c | 22 ++-- board/syteco/zmx25/zmx25.c | 1 + board/technexion/pico-imx6/pico-imx6.c | 1 + board/theadorable/theadorable.c | 3 +- board/ti/j721e/evm.c | 1 + board/ti/sdp4430/cmd_bat.c | 2 +- board/toradex/apalis-tk1/apalis-tk1.c | 1 + board/toradex/apalis_imx6/do_fuse.c | 9 +- board/toradex/apalis_imx6/pf0100.c | 5 +- board/toradex/colibri_imx6/do_fuse.c | 9 +- board/toradex/colibri_imx6/pf0100.c | 5 +- board/toradex/common/tdx-cfg-block.c | 9 +- board/toradex/verdin-imx8mm/spl.c | 1 + board/varisys/common/sys_eeprom.c | 2 +- .../work_92105/work_92105_display.c | 6 +- board/xilinx/common/board.c | 1 + .../microblaze-generic/microblaze-generic.c | 1 + board/xilinx/versal/board.c | 1 + board/xilinx/zynq/cmds.c | 16 +-- board/xilinx/zynqmp/cmds.c | 23 ++-- board/xilinx/zynqmp/zynqmp.c | 3 +- cmd/ab_select.c | 5 +- cmd/abootimg.c | 31 ++--- cmd/acpi.c | 4 +- cmd/adc.c | 8 +- cmd/adtimg.c | 26 ++-- cmd/aes.c | 2 +- cmd/arm/exception.c | 14 +-- cmd/arm/exception64.c | 6 +- cmd/armflash.c | 2 +- cmd/avb.c | 40 +++--- cmd/axi.c | 22 ++-- cmd/bcb.c | 30 ++--- cmd/bdinfo.c | 28 ++--- cmd/bedbug.c | 24 ++-- cmd/bind.c | 5 +- cmd/binop.c | 3 +- cmd/blk_common.c | 3 +- cmd/blkcache.c | 17 +-- cmd/blob.c | 3 +- cmd/bmp.c | 12 +- cmd/boot.c | 4 +- cmd/bootcount.c | 16 +-- cmd/bootefi.c | 3 +- cmd/booti.c | 6 +- cmd/bootm.c | 23 ++-- cmd/bootmenu.c | 2 +- cmd/bootstage.c | 19 +-- cmd/bootz.c | 6 +- cmd/btrfs.c | 2 +- cmd/cache.c | 6 +- cmd/cbfs.c | 8 +- cmd/clk.c | 8 +- cmd/cls.c | 2 +- cmd/config.c | 3 +- cmd/conitrace.c | 4 +- cmd/console.c | 3 +- cmd/cpu.c | 12 +- cmd/cramfs.c | 5 +- cmd/cros_ec.c | 7 +- cmd/dataflash_mmc_mux.c | 3 +- cmd/date.c | 3 +- cmd/demo.c | 22 ++-- cmd/dfu.c | 3 +- cmd/diag.c | 2 +- cmd/disk.c | 2 +- cmd/dm.c | 22 ++-- cmd/echo.c | 3 +- cmd/eeprom.c | 4 +- cmd/efi.c | 9 +- cmd/efidebug.c | 68 +++++----- cmd/elf.c | 6 +- cmd/ethsw.c | 5 +- cmd/exit.c | 3 +- cmd/ext2.c | 7 +- cmd/ext4.c | 10 +- cmd/fastboot.c | 3 +- cmd/fat.c | 23 ++-- cmd/fdt.c | 4 +- cmd/fitupd.c | 3 +- cmd/flash.c | 9 +- cmd/fpga.c | 41 +++--- cmd/fpgad.c | 2 +- cmd/fs.c | 23 ++-- cmd/fs_uuid.c | 4 +- cmd/fuse.c | 3 +- cmd/gettime.c | 4 +- cmd/gpio.c | 3 +- cmd/gpt.c | 2 +- cmd/hash.c | 3 +- cmd/help.c | 9 +- cmd/host.c | 37 +++--- cmd/i2c.c | 61 +++++---- cmd/ide.c | 4 +- cmd/ini.c | 2 +- cmd/io.c | 4 +- cmd/iotrace.c | 6 +- cmd/irq.c | 6 +- cmd/itest.c | 3 +- cmd/jffs2.c | 8 +- cmd/led.c | 2 +- cmd/legacy_led.c | 2 +- cmd/license.c | 3 +- cmd/load.c | 11 +- cmd/log.c | 17 +-- cmd/lzmadec.c | 3 +- cmd/mac.c | 3 +- cmd/md5sum.c | 5 +- cmd/mdio.c | 3 +- cmd/mem.c | 60 +++++---- cmd/mfsl.c | 6 +- cmd/mii.c | 2 +- cmd/misc.c | 6 +- cmd/mmc.c | 111 +++++++++-------- cmd/mp.c | 2 +- cmd/mtd.c | 17 +-- cmd/mtdparts.c | 7 +- cmd/mvebu/bubt.c | 2 +- cmd/nand.c | 11 +- cmd/net.c | 38 +++--- cmd/nvedit.c | 62 +++++----- cmd/nvedit_efi.c | 12 +- cmd/nvme.c | 3 +- cmd/onenand.c | 33 +++-- cmd/osd.c | 27 ++-- cmd/part.c | 15 +-- cmd/pcap.c | 20 +-- cmd/pci.c | 2 +- cmd/pinmux.c | 17 +-- cmd/pmc.c | 12 +- cmd/pmic.c | 23 ++-- cmd/pxe.c | 19 +-- cmd/pxe_utils.c | 28 +++-- cmd/pxe_utils.h | 10 +- cmd/qfw.c | 19 +-- cmd/read.c | 2 +- cmd/reginfo.c | 4 +- cmd/regulator.c | 35 ++++-- cmd/reiser.c | 4 +- cmd/remoteproc.c | 14 +-- cmd/riscv/exception.c | 6 +- cmd/rng.c | 2 +- cmd/rockusb.c | 3 +- cmd/sata.c | 3 +- cmd/sb.c | 13 +- cmd/scsi.c | 6 +- cmd/setexpr.c | 3 +- cmd/sf.c | 15 +-- cmd/sha1sum.c | 2 +- cmd/smccc.c | 3 +- cmd/sound.c | 13 +- cmd/source.c | 3 +- cmd/spi.c | 2 +- cmd/spl.c | 15 +-- cmd/strings.c | 2 +- cmd/sysboot.c | 12 +- cmd/terminal.c | 2 +- cmd/test.c | 9 +- cmd/thordown.c | 3 +- cmd/ti/ddr3.c | 5 +- cmd/time.c | 3 +- cmd/tlv_eeprom.c | 2 +- cmd/tpm-common.c | 10 +- cmd/tpm-user-utils.h | 9 +- cmd/tpm-v1.c | 85 ++++++------- cmd/tpm-v2.c | 43 +++---- cmd/tpm_test.c | 11 +- cmd/trace.c | 8 +- cmd/tsi148.c | 2 +- cmd/ubi.c | 2 +- cmd/ubifs.c | 17 +-- cmd/ufs.c | 2 +- cmd/universe.c | 2 +- cmd/unlz4.c | 3 +- cmd/unzip.c | 7 +- cmd/usb.c | 5 +- cmd/usb_gadget_sdp.c | 3 +- cmd/usb_mass_storage.c | 4 +- cmd/version.c | 3 +- cmd/virtio.c | 3 +- cmd/w1.c | 2 +- cmd/wdt.c | 12 +- cmd/wol.c | 2 +- cmd/x86/exception.c | 6 +- cmd/x86/fsp.c | 8 +- cmd/x86/hob.c | 2 +- cmd/x86/mtrr.c | 6 +- cmd/ximg.c | 2 +- cmd/yaffs2.c | 28 ++--- cmd/zfs.c | 7 +- cmd/zip.c | 2 +- common/board_r.c | 4 +- common/bootm.c | 27 ++-- common/bootm_os.c | 46 +++---- common/cli.c | 4 +- common/cli_hush.c | 4 +- common/cli_readline.c | 1 + common/command.c | 75 +++++------ common/dfu.c | 1 + common/exports.c | 1 + common/flash.c | 8 +- common/hash.c | 4 +- common/image-fdt.c | 4 +- common/image.c | 13 +- common/kgdb.c | 2 +- common/lcd_console.c | 5 +- doc/README.commands | 12 +- doc/README.standalone | 2 +- drivers/clk/mpc83xx_clk.c | 4 +- drivers/ddr/fsl/interactive.c | 1 + drivers/firmware/psci.c | 3 +- drivers/gpio/pca953x.c | 8 +- drivers/gpio/tca642x.c | 8 +- drivers/misc/altera_sysid.c | 2 +- drivers/misc/ds4510.c | 6 +- drivers/misc/rockchip-efuse.c | 4 +- drivers/net/e1000.c | 5 +- drivers/net/e1000.h | 4 +- drivers/net/e1000_spi.c | 21 ++-- drivers/net/fsl-mc/mc.c | 3 +- drivers/net/pfe_eth/pfe_cmd.c | 15 +-- drivers/net/phy/b53.c | 7 +- drivers/net/phy/mv88e6352.c | 7 +- drivers/net/vsc9953.c | 1 + drivers/power/axp152.c | 2 +- drivers/power/axp209.c | 2 +- drivers/power/axp221.c | 2 +- drivers/power/axp809.c | 3 +- drivers/power/axp818.c | 3 +- drivers/power/mt6323.c | 2 +- drivers/power/power_core.c | 4 +- drivers/power/twl4030.c | 3 +- drivers/qe/qe.c | 2 +- drivers/ram/stm32mp1/stm32mp1_interactive.c | 11 +- drivers/sysreset/sysreset-uclass.c | 5 +- drivers/sysreset/sysreset_mpc83xx.c | 1 + drivers/usb/gadget/f_fastboot.c | 1 + drivers/usb/gadget/f_rockusb.c | 1 + drivers/video/cfb_console.c | 4 +- drivers/video/lg4573.c | 5 +- drivers/video/vidconsole-uclass.c | 5 +- examples/api/demo.c | 2 +- examples/api/libgenwrap.c | 3 +- examples/standalone/atmel_df_pow2.c | 2 +- examples/standalone/hello_world.c | 2 +- examples/standalone/smc91111_eeprom.c | 2 +- examples/standalone/smc911x_eeprom.c | 2 +- examples/standalone/stubs.c | 2 + fs/fs.c | 29 ++--- include/_exports.h | 2 +- include/bedbug/type.h | 5 +- include/blk.h | 2 +- include/bootm.h | 16 +-- include/command.h | 117 ++++++++++-------- include/cpu_func.h | 2 +- include/exception.h | 12 +- include/exports.h | 1 + include/ext_common.h | 18 +-- include/fs.h | 39 +++--- include/fsl_ddr.h | 4 +- include/fsl_validate.h | 14 +-- include/hash.h | 6 +- include/image.h | 14 +-- include/kgdb.h | 2 +- include/log.h | 6 +- include/net.h | 4 +- include/search.h | 2 +- include/test/suites.h | 29 +++-- include/test/ut.h | 1 + include/tpm-common.h | 16 +-- include/vxworks.h | 3 +- lib/dhry/cmd_dhry.c | 3 +- lib/efi_loader/efi_variable.c | 1 + lib/fdtdec_test.c | 5 +- lib/hashtable.c | 2 +- lib/uuid.c | 3 +- net/arp.c | 1 + net/fastboot.c | 1 + test/bloblist.c | 3 +- test/cmd_ut.c | 14 ++- test/command_ut.c | 4 +- test/compression.c | 3 +- test/dm/test-main.c | 2 +- test/env/cmd_ut_env.c | 2 +- test/lib/cmd_ut_lib.c | 2 +- test/log/log_test.c | 3 +- test/log/test-main.c | 2 +- test/optee/cmd_ut_optee.c | 2 +- test/overlay/cmd_ut_overlay.c | 2 +- test/print_ut.c | 3 +- test/str_ut.c | 2 +- test/time_ut.c | 2 +- test/unicode_ut.c | 2 +- tools/proftool.c | 2 +- 463 files changed, 1986 insertions(+), 1526 deletions(-)
arch/arc/lib/bootm.c +1 -0
@@ -5,6 +5,7 @@#include <common.h> #include <bootstage.h> +#include <env.h> #include <image.h> #include <irq_func.h> #include <lmb.h>
arch/arc/lib/reset.c +1 -1
@@ -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" );
arch/arm/cpu/arm1136/mx35/generic.c +3 -2
@@ -8,6 +8,7 @@#include <common.h> #include <clock_legacy.h> +#include <command.h> #include <div64.h> #include <init.h> #include <net.h>
@@ -379,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 );
arch/arm/cpu/arm926ejs/mxs/mxs.c +3 -1
@@ -10,6 +10,7 @@*/ #include <common.h> +#include <command.h> #include <cpu_func.h> #include <hang.h> #include <init.h>
@@ -187,7 +188,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 );
arch/arm/cpu/arm926ejs/spear/cpu.c +2 -1
@@ -5,6 +5,7 @@*/ #include <common.h> +#include <command.h> #include <init.h> #include <asm/io.h> #include <asm/arch/hardware.h>
@@ -81,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 )
arch/arm/cpu/arm926ejs/spear/spr_misc.c +2 -1
@@ -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;
arch/arm/cpu/armv7/vf610/generic.c +3 -2
@@ -5,6 +5,7 @@#include <common.h> #include <clock_legacy.h> +#include <command.h> #include <cpu_func.h> #include <init.h> #include <net.h>
@@ -240,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 );
arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c +1 -0
@@ -5,6 +5,7 @@*/ #include <common.h> +#include <env.h> #include <asm/io.h> #include <linux/errno.h> #include <asm/arch/fsl_serdes.h>
arch/arm/cpu/armv8/fsl-layerscape/mp.c +1 -1
@@ -260,7 +260,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 ();
arch/arm/include/asm/arch-mx6/clock.h +2 -2
@@ -21,7 +21,7 @@#define MXC_CLK32 32768#endif -struct cmd_tbl_s ; +struct cmd_tbl ;enum mxc_clock {MXC_ARM_CLK =0 ,
@@ -82,6 +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 (struct cmd_tbl_s *cmdtp,int flag,int argc, +int do_mx6_showclocks (struct cmd_tbl *cmdtp,int flag,int argc,char *const argv[]);#endif /* __ASM_ARCH_CLOCK_H */
arch/arm/lib/bootm.c +1 -1
@@ -422,7 +422,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 */
arch/arm/lib/cmd_boot.c +1 -1
@@ -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;
arch/arm/lib/reset.c +3 -2
@@ -21,6 +21,7 @@*/ #include <common.h> +#include <command.h> #include <cpu_func.h> #include <irq_func.h>
@@ -28,11 +29,11 @@ __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 ();
arch/arm/lib/semihosting.c +3 -1
@@ -13,6 +13,7 @@*/ #include <common.h> #include <command.h> +#include <env.h> #define SYSOPEN 0x01#define SYSCLOSE 0x02
@@ -180,7 +181,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;
arch/arm/mach-imx/cmd_bmode.c +3 -3
@@ -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);
arch/arm/mach-imx/cmd_dek.c +2 -1
@@ -54,7 +54,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;
arch/arm/mach-imx/cmd_hdmidet.c +3 -1
@@ -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 ;
arch/arm/mach-imx/cmd_nandbcb.c +5 -4
@@ -10,6 +10,7 @@*/ #include <common.h> +#include <command.h> #include <malloc.h> #include <nand.h> #include <dm/devres.h>
@@ -437,7 +438,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;
@@ -519,7 +520,7 @@ fcb_err:return CMD_RET_SUCCESS ; } -static int do_nandbcb_update (int argc,char *const argv[]) +static int do_nandbcb_update (int argc,char *const argv[]) {struct mtd_info *mtd;loff_t addr, offset, size, maxsize;
@@ -557,8 +558,8 @@ static int do_nandbcb_update(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 ;
arch/arm/mach-imx/hab.c +11 -10
@@ -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 ;
arch/arm/mach-imx/imx8/ahab.c +7 -6
@@ -4,6 +4,7 @@*/ #include <common.h> +#include <command.h> #include <errno.h> #include <asm/io.h> #include <asm/arch/sci/sci.h>
@@ -149,8 +150,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 +251,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 +298,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;
arch/arm/mach-imx/imx8/snvs_security_sc.c +7 -6
@@ -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;
arch/arm/mach-imx/imx8m/clock_imx8mq.c +3 -2
@@ -6,6 +6,7 @@*/ #include <common.h> +#include <command.h> #include <asm/arch/clock.h> #include <asm/arch/imx-regs.h> #include <asm/io.h>
@@ -755,8 +756,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;
arch/arm/mach-imx/imx_bootaux.c +2 -1
@@ -92,7 +92,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;
arch/arm/mach-imx/mx5/clock.c +3 -1
@@ -7,6 +7,7 @@*/ #include <common.h> +#include <command.h> #include <asm/io.h> #include <linux/errno.h> #include <asm/arch/imx-regs.h>
@@ -943,7 +944,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;
arch/arm/mach-imx/mx6/clock.c +3 -1
@@ -4,6 +4,7 @@*/ #include <common.h> +#include <command.h> #include <div64.h> #include <asm/io.h> #include <linux/errno.h>
@@ -1305,7 +1306,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 );
arch/arm/mach-imx/mx7/clock.c +3 -1
@@ -8,6 +8,7 @@#include <common.h> #include <clock_legacy.h> +#include <command.h> #include <div64.h> #include <asm/io.h> #include <linux/errno.h>
@@ -1100,7 +1101,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 );
arch/arm/mach-imx/mx7ulp/clock.c +3 -1
@@ -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;
arch/arm/mach-keystone/cmd_clock.c +4 -3
@@ -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;
arch/arm/mach-keystone/cmd_mon.c +4 -4
@@ -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 );
arch/arm/mach-keystone/cmd_poweroff.c +1 -1
@@ -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 );
arch/arm/mach-keystone/ddr3.c +1 -0
@@ -7,6 +7,7 @@*/ #include <cpu_func.h> +#include <env.h> #include <asm/io.h> #include <common.h> #include <asm/arch/msmc.h>
arch/arm/mach-keystone/keystone.c +1 -0
@@ -7,6 +7,7 @@*/ #include <common.h> +#include <env.h> #include <init.h> #include <asm/io.h> #include <asm/arch/psc_defs.h>
arch/arm/mach-meson/sm.c +8 -6
@@ -6,6 +6,8 @@*/ #include <common.h> +#include <command.h> +#include <env.h> #include <asm/arch/sm.h> #include <asm/cache.h> #include <linux/err.h>
@@ -117,7 +119,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;
@@ -153,8 +155,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 ;
@@ -181,15 +183,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 ;
arch/arm/mach-omap2/omap3/board.c +3 -1
@@ -16,6 +16,7 @@* */ #include <common.h> +#include <command.h> #include <dm.h> #include <init.h> #include <spl.h>
@@ -280,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 ;
arch/arm/mach-omap2/sec-common.c +1 -0
@@ -13,6 +13,7 @@*/ #include <common.h> +#include <command.h> #include <cpu_func.h> #include <hang.h> #include <init.h>
arch/arm/mach-rockchip/boot_mode.c +2 -0
@@ -5,6 +5,8 @@#include <common.h> #include <adc.h> +#include <command.h> +#include <env.h> #include <asm/io.h> #include <asm/arch-rockchip/boot_mode.h> #include <dm/device.h>
arch/arm/mach-rockchip/cpu-info.c +1 -0
@@ -5,6 +5,7 @@*/ #include <common.h> +#include <env.h> #include <init.h> #include <asm/io.h> #include <asm/arch-rockchip/clock.h>
arch/arm/mach-rockchip/rk3288/rk3288.c +3 -2
@@ -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;
arch/arm/mach-socfpga/clock_manager.c +3 -1
@@ -4,6 +4,7 @@*/ #include <common.h> +#include <command.h> #include <init.h> #include <wait_bit.h> #include <asm/io.h>
@@ -62,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 ;
arch/arm/mach-socfpga/misc.c +3 -1
@@ -4,6 +4,7 @@*/ #include <common.h> +#include <command.h> #include <cpu_func.h> #include <hang.h> #include <asm/cache.h>
@@ -178,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 ;
arch/arm/mach-stm32mp/cmd_stm32key.c +2 -2
@@ -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 ;
arch/arm/mach-tegra/cmd_enterrcm.c +3 -2
@@ -25,13 +25,14 @@*/ #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> -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 );
arch/arm/mach-uniphier/boot-device/boot-device.c +3 -1
@@ -5,6 +5,7 @@*/ #include <common.h> +#include <command.h> #include <spl.h> #include <stdio.h> #include <linux/io.h>
@@ -205,7 +206,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;
arch/arm/mach-uniphier/dram/cmd_ddrmphy.c +3 -1
@@ -5,6 +5,7 @@*/ #include <common.h> +#include <command.h> #include <stdio.h> #include <linux/io.h> #include <linux/printk.h>
@@ -291,7 +292,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;
arch/arm/mach-uniphier/dram/cmd_ddrphy.c +3 -1
@@ -6,6 +6,7 @@*/ #include <common.h> +#include <command.h> #include <stdio.h> #include <linux/io.h> #include <linux/printk.h>
@@ -261,7 +262,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;
arch/arm/mach-uniphier/mmc-first-dev.c +5 -2
@@ -5,6 +5,7 @@*/ #include <common.h> +#include <command.h> #include <env.h> #include <mmc.h> #include <linux/errno.h>
@@ -28,7 +29,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 +48,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;
arch/arm/mach-zynqmp/mp.c +1 -1
@@ -221,7 +221,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 );
arch/m68k/cpu/mcf5227x/cpu.c +1 -1
@@ -19,7 +19,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[]) {rcm_t *rcm = (rcm_t *) (MMAP_RCM );udelay (1000 );
arch/m68k/cpu/mcf523x/cpu.c +1 -1
@@ -21,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 ;
arch/m68k/cpu/mcf52x2/cpu.c +7 -7
@@ -27,7 +27,7 @@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 );
@@ -140,7 +140,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) {
@@ -175,7 +175,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 );
@@ -264,7 +264,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 );
@@ -354,7 +354,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 ;
@@ -373,7 +373,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 );
@@ -405,7 +405,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 );
arch/m68k/cpu/mcf530x/cpu.c +2 -1
@@ -5,13 +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 );
arch/m68k/cpu/mcf532x/cpu.c +1 -1
@@ -21,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[]) {rcm_t *rcm = (rcm_t *) (MMAP_RCM );
arch/m68k/cpu/mcf5445x/cpu.c +1 -1
@@ -21,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[]) {rcm_t *rcm = (rcm_t *) (MMAP_RCM );udelay (1000 );
arch/m68k/cpu/mcf547x_8x/cpu.c +1 -1
@@ -21,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 );
arch/m68k/lib/bootm.c +2 -1
@@ -49,7 +49,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;
arch/microblaze/cpu/interrupts.c +1 -1
@@ -187,7 +187,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;
arch/microblaze/cpu/spl.c +2 -1
@@ -6,6 +6,7 @@*/ #include <common.h> +#include <command.h> #include <image.h> #include <spl.h> #include <asm/io.h>
@@ -48,7 +49,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" );
arch/microblaze/lib/bootm.c +1 -1
@@ -108,7 +108,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" );
arch/mips/cpu/cpu.c +1 -1
@@ -21,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 ();
arch/mips/lib/bootm.c +2 -2
@@ -306,8 +306,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 )
arch/mips/mach-ath79/ar934x/clk.c +3 -1
@@ -5,6 +5,7 @@#include <common.h> #include <clock_legacy.h> +#include <command.h> #include <hang.h> #include <asm/io.h> #include <asm/addrspace.h>
@@ -319,7 +320,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 );
arch/nds32/cpu/n1213/ae3xx/cpu.c +1 -1
@@ -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" );
arch/nds32/cpu/n1213/ag101/cpu.c +1 -1
@@ -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 ();
arch/nds32/lib/boot.c +1 -1
@@ -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 ();
arch/nios2/cpu/cpu.c +2 -1
@@ -5,6 +5,7 @@*/ #include <common.h> +#include <command.h> #include <cpu.h> #include <cpu_func.h> #include <dm.h>
@@ -31,7 +32,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 */
arch/nios2/cpu/interrupts.c +1 -1
@@ -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;
arch/nios2/lib/bootm.c +3 -1
@@ -6,12 +6,14 @@#include <common.h> #include <cpu_func.h> +#include <env.h> #include <image.h> #include <irq_func.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" );
arch/powerpc/cpu/mpc83xx/cpu.c +1 -2
@@ -123,8 +123,7 @@ 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
arch/powerpc/cpu/mpc83xx/ecc.c +1 -1
@@ -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
arch/powerpc/cpu/mpc83xx/interrupts.c +2 -2
@@ -71,8 +71,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[]) { }
arch/powerpc/cpu/mpc83xx/speed.c +2 -1
@@ -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 ];
arch/powerpc/cpu/mpc85xx/cmd_errata.c +2 -1
@@ -129,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;
arch/powerpc/cpu/mpc85xx/cpu.c +1 -1
@@ -295,7 +295,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) || \
arch/powerpc/cpu/mpc85xx/interrupts.c +1 -1
@@ -102,7 +102,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 ; }
arch/powerpc/cpu/mpc85xx/mp.c +1 -1
@@ -140,7 +140,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;
arch/powerpc/cpu/mpc86xx/cpu.c +1 -1
@@ -107,7 +107,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;
arch/powerpc/cpu/mpc86xx/interrupts.c +1 -1
@@ -100,7 +100,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 ; }
arch/powerpc/cpu/mpc86xx/mp.c +1 -1
@@ -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 */
arch/powerpc/cpu/mpc8xx/cpu.c +1 -1
@@ -195,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;
arch/powerpc/cpu/mpc8xx/immap.c +12 -7
@@ -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;
arch/powerpc/lib/bootm.c +2 -2
@@ -232,8 +232,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;
arch/powerpc/lib/kgdb.c +1 -1
@@ -252,7 +252,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\
arch/riscv/lib/boot.c +1 -1
@@ -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 ();
arch/riscv/lib/bootm.c +2 -2
@@ -106,7 +106,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 */
@@ -128,7 +128,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);
arch/riscv/lib/reset.c +1 -1
@@ -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" );
arch/sh/cpu/sh4/cpu.c +1 -1
@@ -29,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 );
arch/sh/lib/bootm.c +3 -1
@@ -9,6 +9,7 @@#include <common.h> #include <command.h> +#include <env.h> #include <image.h> #include <asm/byteorder.h> #include <asm/zimage.h>
@@ -50,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;
arch/sh/lib/zimageboot.c +4 -1
@@ -10,11 +10,14 @@*/ #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;
arch/x86/include/asm/arch-braswell/fsp/fsp_vpd.h +2 -0
@@ -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 */
arch/x86/lib/bootm.c +2 -2
@@ -206,8 +206,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 )
arch/x86/lib/cmd_boot.c +1 -1
@@ -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;
arch/x86/lib/interrupts.c +1 -1
@@ -127,7 +127,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;
arch/x86/lib/zimage.c +2 -1
@@ -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 ;
board/Arcturus/ucp1020/cmd_arc.c +3 -1
@@ -9,6 +9,7 @@*/ #include <common.h> +#include <command.h> #include <cpu_func.h> #include <div64.h> #include <env.h>
@@ -376,7 +377,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 ;
board/BuS/eb_cpu5282/eb_cpu5282.c +1 -1
@@ -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;
board/LaCie/net2big_v2/net2big_v2.c +2 -1
@@ -246,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 ); }
board/LaCie/netspace_v2/netspace_v2.c +1 -1
@@ -110,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 ); }
board/Synology/ds414/cmd_syno.c +5 -4
@@ -6,6 +6,7 @@*/ #include <common.h> +#include <command.h> #include <div64.h> #include <env.h> #include <net.h>
@@ -21,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 ;
@@ -152,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;
@@ -195,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 ;
board/advantech/imx8qm_rom7720_a1/imx8qm_rom7720_a1.c +1 -0
@@ -6,6 +6,7 @@#include <common.h> #include <cpu_func.h> +#include <env.h> #include <errno.h> #include <init.h> #include <linux/libfdt.h>
board/amlogic/sei510/sei510.c +1 -0
@@ -6,6 +6,7 @@#include <common.h> #include <dm.h> +#include <env.h> #include <env_internal.h> #include <init.h> #include <net.h>
board/amlogic/sei610/sei610.c +1 -0
@@ -6,6 +6,7 @@#include <common.h> #include <dm.h> +#include <env.h> #include <env_internal.h> #include <init.h> #include <net.h>
board/aristainetos/aristainetos.c +1 -0
@@ -9,6 +9,7 @@* Author: Fabio Estevam <[email protected]> */ +#include <command.h> #include <image.h> #include <init.h> #include <asm/arch/clock.h>
board/bosch/guardian/board.c +1 -0
@@ -11,6 +11,7 @@#include <common.h> #include <cpsw.h> #include <dm.h> +#include <env.h> #include <env_internal.h> #include <errno.h> #include <i2c.h>
board/boundary/nitrogen6x/nitrogen6x.c +2 -1
@@ -5,6 +5,7 @@*/ #include <common.h> +#include <command.h> #include <env.h> #include <init.h> #include <net.h>
@@ -988,7 +989,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);
board/buffalo/lsxl/lsxl.c +1 -0
@@ -9,6 +9,7 @@#include <common.h> #include <bootstage.h> +#include <command.h> #include <env.h> #include <env_internal.h> #include <flash.h>
board/cavium/thunderx/atf.c +2 -1
@@ -4,6 +4,7 @@**/ #include <common.h> +#include <command.h> #include <asm/cache.h> #include <asm/io.h>
@@ -224,7 +225,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;
board/corscience/tricorder/tricorder-eeprom.c +2 -1
@@ -5,6 +5,7 @@* Andreas Bie?mann <[email protected]> */ #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 );
board/egnite/ethernut5/ethernut5_pwrman.c +2 -1
@@ -32,6 +32,7 @@* 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>
@@ -215,7 +216,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;
board/esd/vme8349/caddy.c +2 -1
@@ -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;
board/freescale/c29xpcie/cpld.c +1 -1
@@ -89,7 +89,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;
board/freescale/common/cmd_esbc_validate.c +4 -4
@@ -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;
board/freescale/common/ngpixis.c +2 -1
@@ -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;
board/freescale/common/pixis.c +6 -4
@@ -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 ;
board/freescale/common/qixis.c +2 -1
@@ -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;
board/freescale/common/sys_eeprom.c +1 -1
@@ -383,7 +383,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;
board/freescale/common/vid.c +4 -5
@@ -925,9 +925,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 +941,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 ;
board/freescale/imx8mm_evk/imx8mm_evk.c +1 -0
@@ -4,6 +4,7 @@*/ #include <common.h> +#include <env.h> #include <init.h> #include <miiphy.h> #include <netdev.h>
board/freescale/imx8mm_evk/spl.c +1 -0
@@ -4,6 +4,7 @@*/ #include <common.h> +#include <command.h> #include <cpu_func.h> #include <hang.h> #include <image.h>
board/freescale/imx8mn_evk/imx8mn_evk.c +1 -0
@@ -4,6 +4,7 @@*/ #include <common.h> +#include <env.h> #include <init.h> DECLARE_GLOBAL_DATA_PTR ;
board/freescale/imx8mn_evk/spl.c +1 -0
@@ -5,6 +5,7 @@*/ #include <common.h> +#include <command.h> #include <cpu_func.h> #include <hang.h> #include <image.h>
board/freescale/imx8mp_evk/imx8mp_evk.c +1 -0
@@ -4,6 +4,7 @@*/ #include <common.h> +#include <env.h> #include <errno.h> #include <init.h> #include <asm/mach-imx/iomux-v3.h>
board/freescale/imx8mp_evk/spl.c +1 -0
@@ -5,6 +5,7 @@*/ #include <common.h> +#include <command.h> #include <cpu_func.h> #include <hang.h> #include <image.h>
board/freescale/imxrt1020-evk/imxrt1020-evk.c +1 -0
@@ -6,6 +6,7 @@#include <common.h> #include <dm.h> +#include <init.h> #include <ram.h> #include <spl.h> #include <asm/io.h>
board/freescale/ls1012ardb/ls1012ardb.c +3 -2
@@ -4,6 +4,7 @@*/ #include <common.h> +#include <command.h> #include <fdt_support.h> #include <hang.h> #include <i2c.h>
@@ -394,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 ;
board/freescale/ls1021atwr/ls1021atwr.c +7 -6
@@ -6,6 +6,7 @@#include <common.h> #include <clock_legacy.h> +#include <command.h> #include <fdt_support.h> #include <i2c.h> #include <init.h>
@@ -612,8 +613,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 ;
@@ -633,8 +634,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 );
@@ -692,8 +693,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 ;
board/freescale/ls1043ardb/cpld.c +1 -1
@@ -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 ;
board/freescale/ls1046ardb/cpld.c +1 -1
@@ -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 ;
board/freescale/p1010rdb/p1010rdb.c +3 -2
@@ -5,6 +5,7 @@*/ #include <common.h> +#include <command.h> #include <image.h> #include <init.h> #include <net.h>
@@ -708,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 ;
board/freescale/p2041rdb/cpld.c +1 -1
@@ -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 ;
board/freescale/t102xrdb/cpld.c +1 -1
@@ -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 ;
board/freescale/t102xrdb/t102xrdb.c +2 -2
@@ -368,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 ;
board/freescale/t104xrdb/cpld.c +1 -1
@@ -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 ;
board/freescale/t208xrdb/cpld.c +1 -1
@@ -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 ;
board/freescale/t4qds/t4240qds.c +2 -2
@@ -902,9 +902,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;
board/freescale/t4rdb/cpld.c +1 -1
@@ -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 ;
board/gardena/smart-gateway-mt7688/board.c +2 -1
@@ -4,6 +4,7 @@*/ #include <common.h> +#include <command.h> #include <env.h> #include <env_internal.h> #include <flash.h>
@@ -206,7 +207,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;
board/gateworks/gw_ventana/eeprom.c +3 -1
@@ -5,6 +5,7 @@*/ #include <common.h> +#include <command.h> #include <errno.h> #include <hexdump.h> #include <i2c.h>
@@ -158,7 +159,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;
board/gateworks/gw_ventana/gsc.c +6 -4
@@ -5,6 +5,7 @@* Author: Tim Harvey <[email protected]> */ +#include <command.h> #include <linux/errno.h> #include <common.h> #include <i2c.h>
@@ -176,8 +177,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 +219,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 +259,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 );
board/gdsys/a38x/controlcenterdc.c +1 -0
@@ -5,6 +5,7 @@*/ #include <common.h> +#include <command.h> #include <dm.h> #include <init.h> #include <miiphy.h>
board/gdsys/a38x/hydra.c +2 -1
@@ -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 +
board/gdsys/common/cmd_ioloop.c +5 -5
@@ -264,7 +264,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 +321,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 +374,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 +440,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 +501,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;
board/gdsys/common/osd.c +6 -4
@@ -7,6 +7,7 @@#ifdef CONFIG_GDSYS_LEGACY_DRIVERS #include <common.h> +#include <command.h> #include <i2c.h> #include <malloc.h>
@@ -259,7 +260,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 +398,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 +451,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 +502,4 @@ U_BOOT_CMD( ") size_y(max. " __stringify(MAX_Y_CHARS) ")\n" ); -#endif /* CONFIG_GDSYS_LEGACY_DRIVERS */ +#endif /* CONFIG_GDSYS_LEGACY_DRIVERS */
board/gdsys/common/osd_cmd.c +7 -6
@@ -10,13 +10,14 @@*/ #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;
board/gdsys/mpc8308/gazerbeam.c +1 -0
@@ -7,6 +7,7 @@#include <common.h> #include <board.h> +#include <command.h> #include <dm.h> #include <env.h> #include <fdt_support.h>
board/gdsys/p1022/controlcenterd.c +1 -1
@@ -223,7 +223,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); }
board/google/chromebook_coral/coral.c +1 -0
@@ -4,6 +4,7 @@*/ #include <common.h> +#include <command.h> int arch_misc_init (void ) {
board/keymile/common/common.c +6 -6
@@ -157,8 +157,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 +203,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 +344,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 ;
board/mediatek/mt7622/mt7622_rfb.c +1 -0
@@ -6,6 +6,7 @@#include <common.h> #include <config.h> +#include <env.h> #include <init.h> DECLARE_GLOBAL_DATA_PTR ;
board/phytium/durian/durian.c +1 -0
@@ -6,6 +6,7 @@*/ #include <common.h> +#include <command.h> #include <cpu_func.h> #include <init.h> #include <asm/armv8/mmu.h>
board/renesas/sh7752evb/sh7752evb.c +2 -1
@@ -4,6 +4,7 @@*/ #include <common.h> +#include <command.h> #include <env.h> #include <flash.h> #include <init.h>
@@ -245,7 +246,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 ];
board/renesas/sh7753evb/sh7753evb.c +2 -1
@@ -4,6 +4,7 @@*/ #include <common.h> +#include <command.h> #include <env.h> #include <flash.h> #include <init.h>
@@ -261,7 +262,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 ];
board/renesas/sh7757lcr/sh7757lcr.c +3 -2
@@ -4,6 +4,7 @@*/ #include <common.h> +#include <command.h> #include <env.h> #include <flash.h> #include <init.h>
@@ -344,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;
@@ -363,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 ];
board/renesas/stout/cpld.c +3 -1
@@ -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;
board/renesas/ulcb/cpld.c +3 -1
@@ -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;
board/rockchip/kylin_rk3036/kylin_rk3036.c +1 -0
@@ -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>
board/samsung/common/board.c +1 -0
@@ -6,6 +6,7 @@#include <common.h> #include <cros_ec.h> +#include <env.h> #include <errno.h> #include <fdtdec.h> #include <hang.h>
board/samsung/common/misc.c +1 -1
@@ -262,7 +262,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;
board/siemens/capricorn/board.c +4 -2
@@ -6,7 +6,9 @@* */ #include <common.h> +#include <command.h> #include <dm.h> +#include <env.h> #include <errno.h> #include <init.h> #include <netdev.h>
@@ -411,7 +413,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 ;
@@ -432,7 +434,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 );
board/siemens/common/board.c +5 -4
@@ -10,6 +10,7 @@*/ #include <common.h> +#include <command.h> #include <env.h> #include <errno.h> #include <init.h>
@@ -151,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 );
@@ -167,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 )
@@ -251,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 ;
board/siemens/draco/board.c +3 -2
@@ -13,6 +13,7 @@*/ #include <common.h> +#include <command.h> #include <env.h> #include <errno.h> #include <init.h>
@@ -343,8 +344,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" );
board/siemens/taurus/taurus.c +2 -2
@@ -386,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 ;
board/sifive/fu540/fu540.c +1 -0
@@ -8,6 +8,7 @@#include <common.h> #include <dm.h> +#include <env.h> #include <init.h> #include <linux/delay.h> #include <linux/io.h>
board/sks-kinkel/sksimx6/sksimx6.c +1 -0
@@ -4,6 +4,7 @@*/ #include <common.h> +#include <command.h> #include <init.h> #include <net.h> #include <asm/arch/clock.h>
board/solidrun/clearfog/clearfog.c +1 -0
@@ -4,6 +4,7 @@*/ #include <common.h> +#include <env.h> #include <i2c.h> #include <init.h> #include <miiphy.h>
board/st/common/cmd_stboard.c +3 -2
@@ -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;
board/st/stm32f429-discovery/stm32f429-discovery.c +1 -0
@@ -12,6 +12,7 @@#include <common.h> #include <dm.h> +#include <env.h> #include <init.h> #include <asm/io.h>
board/st/stm32f429-evaluation/stm32f429-evaluation.c +1 -0
@@ -6,6 +6,7 @@#include <common.h> #include <dm.h> +#include <env.h> #include <init.h> #include <asm/io.h>
board/st/stm32f469-discovery/stm32f469-discovery.c +1 -0
@@ -6,6 +6,7 @@#include <common.h> #include <dm.h> +#include <env.h> #include <init.h> #include <asm/io.h>
board/synopsys/emsdp/emsdp.c +7 -4
@@ -4,6 +4,7 @@*/ #include <common.h> +#include <command.h> #include <cpu_func.h> #include <dwmmc.h> #include <init.h>
@@ -102,7 +103,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 );
@@ -118,13 +120,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));
board/synopsys/hsdk/hsdk.c +13 -9
@@ -5,6 +5,7 @@*/ #include <common.h> +#include <command.h> #include <config.h> #include <cpu_func.h> #include <env.h>
@@ -929,7 +930,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 +996,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 +1025,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 +1057,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 +1085,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 +1097,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 +1158,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 ;
board/syteco/zmx25/zmx25.c +1 -0
@@ -15,6 +15,7 @@*/ #include <common.h> #include <cpu_func.h> +#include <env.h> #include <init.h> #include <asm/gpio.h> #include <asm/io.h>
board/technexion/pico-imx6/pico-imx6.c +1 -0
@@ -6,6 +6,7 @@* Author: Fabio Estevam <[email protected]> */ +#include <env.h> #include <init.h> #include <net.h> #include <asm/arch/clock.h>
board/theadorable/theadorable.c +2 -1
@@ -4,6 +4,7 @@*/ #include <common.h> +#include <command.h> #include <console.h> #include <i2c.h> #include <init.h>
@@ -309,7 +310,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;
board/ti/j721e/evm.c +1 -0
@@ -8,6 +8,7 @@*/ #include <common.h> +#include <env.h> #include <fdt_support.h> #include <image.h> #include <init.h>
board/ti/sdp4430/cmd_bat.c +1 -1
@@ -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 )
board/toradex/apalis-tk1/apalis-tk1.c +1 -0
@@ -5,6 +5,7 @@#include <common.h> #include <dm.h> +#include <env.h> #include <init.h> #include <asm/arch-tegra/ap.h> #include <asm/gpio.h>
board/toradex/apalis_imx6/do_fuse.c +5 -4
@@ -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;
board/toradex/apalis_imx6/pf0100.c +3 -2
@@ -8,6 +8,7 @@*/ #include <common.h> +#include <command.h> #include <i2c.h> #include <asm/arch/imx-regs.h> #include <asm/arch/iomux.h>
@@ -261,8 +262,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..." );
board/toradex/colibri_imx6/do_fuse.c +5 -4
@@ -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;
board/toradex/colibri_imx6/pf0100.c +3 -2
@@ -8,6 +8,7 @@*/ #include <common.h> +#include <command.h> #include <i2c.h> #include <asm/arch/imx-regs.h> #include <asm/arch/iomux.h>
@@ -246,8 +247,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..." );
board/toradex/common/tdx-cfg-block.c +5 -4
@@ -5,6 +5,7 @@#include <common.h> #include "tdx-cfg-block.h" +#include <command.h> #include <asm/cache.h> #if defined(CONFIG_TARGET_APALIS_IMX6) || \
@@ -514,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;
@@ -643,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;
board/toradex/verdin-imx8mm/spl.c +1 -0
@@ -4,6 +4,7 @@*/ #include <common.h> +#include <command.h> #include <image.h> #include <init.h> #include <asm/arch/clock.h>
board/varisys/common/sys_eeprom.c +1 -1
@@ -306,7 +306,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;
board/work-microwave/work_92105/work_92105_display.c +4 -2
@@ -11,6 +11,7 @@*/ #include <common.h> +#include <command.h> #include <asm/arch/sys_proto.h> #include <asm/arch/cpu.h> #include <asm/arch/emc.h>
@@ -266,7 +267,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 +316,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;
board/xilinx/common/board.c +1 -0
@@ -5,6 +5,7 @@*/ #include <common.h> +#include <env.h> #include <asm/sections.h> #include <dm/uclass.h> #include <i2c.h>
board/xilinx/microblaze-generic/microblaze-generic.c +1 -0
@@ -12,6 +12,7 @@#include <common.h> #include <config.h> +#include <env.h> #include <init.h> #include <dm/lists.h> #include <fdtdec.h>
board/xilinx/versal/board.c +1 -0
@@ -6,6 +6,7 @@#include <common.h> #include <cpu_func.h> +#include <env.h> #include <fdtdec.h> #include <init.h> #include <malloc.h>
board/xilinx/zynq/cmds.c +9 -7
@@ -4,6 +4,7 @@*/ #include <common.h> +#include <command.h> #include <asm/io.h> #include <asm/arch/hardware.h> #include <asm/arch/sys_proto.h>
@@ -408,8 +409,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 +430,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 +470,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 +479,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)) {
board/xilinx/zynqmp/cmds.c +12 -11
@@ -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 ;
board/xilinx/zynqmp/zynqmp.c +2 -1
@@ -5,6 +5,7 @@*/ #include <common.h> +#include <command.h> #include <cpu_func.h> #include <debug_uart.h> #include <env.h>
@@ -415,7 +416,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 ;
cmd/ab_select.c +3 -2
@@ -6,10 +6,11 @@#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;
cmd/abootimg.c +16 -15
@@ -6,6 +6,7 @@#include <android_image.h> #include <common.h> +#include <command.h> #include <image.h> #include <mapmem.h>
@@ -15,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 ;
@@ -40,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;
@@ -62,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 ;
@@ -93,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;
@@ -140,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 ;
@@ -151,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;
@@ -170,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;
@@ -193,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 ;
@@ -209,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));
cmd/acpi.c +2 -2
@@ -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;
cmd/adc.c +4 -4
@@ -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 ];
cmd/adtimg.c +14 -12
@@ -5,6 +5,7 @@* Eugeniu Rosca <[email protected]> */ +#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 ]);
Lines of this file are not shown. View the raw message.
cmd/efidebug.c +34 -34
68 lines not on this page · raw message
cmd/fpga.c +21 -20
41 lines not on this page · raw message
cmd/i2c.c +37 -24
61 lines not on this page · raw message
cmd/mem.c +38 -22
60 lines not on this page · raw message
cmd/mmc.c +62 -49
111 lines not on this page · raw message
cmd/nvedit.c +32 -30
62 lines not on this page · raw message
cmd/tpm-v1.c +43 -42
85 lines not on this page · raw message
cmd/tpm-v2.c +22 -21
43 lines not on this page · raw message
common/bootm_os.c +23 -23
46 lines not on this page · raw message
common/command.c +39 -36
75 lines not on this page · raw message
drivers/ram/stm32mp1/stm32mp1_interactive.c +6 -5
Lines of this file are not shown. View the raw message.
include/command.h +64 -53
117 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.26.2.645.ge9eca65c58-goog
Part of the diff is not shown here. View the raw message.
PATCH v3 12/22 command: Remove the cmd_tbl_t typedef
Quoted 10 lines · Simon Glass
We should not use typedefs in U-Boot. They cannot be used as forward declarations which means that header files must include the full header to access them.
Drop the typedef and rename the struct to remove the _s suffix which is now not useful.
This requires quite a few header-file additions.
Signed-off-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200519/c20efcc0/attachment.sig>
PATCH v3 13/22 Fix some checkpatch warnings in calls to debug()
In reply to Simon GlassFix up some incorrect code style in calls to functions in the log.h header, mostly debug().
---
Changes in v3: None
Changes in v2:
- Split out code-style changes for log functions into a new patch
arch/powerpc/lib/bootm.c | 10 +++++----- board/freescale/mpc8568mds/mpc8568mds.c | 2 +- board/sbc8641d/sbc8641d.c | 2 +- cmd/flash.c | 19 +++++++++---------- cmd/source.c | 10 +++++----- common/flash.c | 6 +++--- drivers/rtc/m41t11.c | 12 ++++++------ 7 files changed, 30 insertions(+), 31 deletions(-)
arch/powerpc/lib/bootm.c +5 -5
@@ -53,8 +53,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 );
@@ -81,7 +81,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 );
@@ -105,7 +105,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 );
@@ -149,7 +149,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 ;
board/freescale/mpc8568mds/mpc8568mds.c +1 -1
@@ -303,7 +303,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 ;
board/sbc8641d/sbc8641d.c +1 -1
@@ -49,7 +49,7 @@ int dram_init(void) dram_size =fixed_sdram ();#endif -debug (" DDR: " ); +debug (" DDR: " ); gd->ram_size = dram_size;return 0 ;
cmd/flash.c +9 -10
@@ -411,13 +411,12 @@ 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 ); +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]); }
@@ -612,9 +611,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 )
cmd/source.c +5 -5
@@ -154,7 +154,7 @@ 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 ); }
@@ -170,16 +170,16 @@ static int do_source(struct cmd_tbl *cmdtp, int flag, int argc,/* 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@%08lx\n" , addr);
common/flash.c +3 -3
@@ -41,7 +41,7 @@ flash_protect(int flag, ulong from, ulong to, flash_info_t *info)debug ("%s %s: from 0x%08lX to 0x%08lX\n" , __func__, (flag &FLAG_PROTECT_SET ) ?"ON" : - (flag &FLAG_PROTECT_CLEAR ) ?"OFF" :"???" , + (flag &FLAG_PROTECT_CLEAR ) ?"OFF" :"???" , from, to);/* There is nothing to do if we have no data about the flash
@@ -67,7 +67,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 )
@@ -75,7 +75,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); } } }
drivers/rtc/m41t11.c +6 -6
@@ -109,9 +109,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 +120,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);
Signature · 1 line
2.26.2.645.ge9eca65c58-goog
PATCH v3 13/22 Fix some checkpatch warnings in calls to debug()
Quoted 4 lines · Simon Glass
Fix up some incorrect code style in calls to functions in the
log.hheader, mostlydebug().Signed-off-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200519/856fb611/attachment.sig>