diff options
| author | Tom Rini <[email protected]> | 2019-12-02 22:05:35 -0500 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2019-12-02 22:05:35 -0500 |
| commit | a4ef0657e3075d0f951d78cc1398cb7e05af648a (patch) | |
| tree | 9a4387de5845e6fd1331f0af32bfd82fac9eb039 /cmd | |
| parent | 357040645f9f56b33909520483df9f840be7e181 (diff) | |
| parent | cb3ef6810a27c8ddf5db8694bcef9337f27d12ce (diff) | |
Merge branch '2019-12-02-master-imports'
- A large series of clean-ups to reduce common.h contents
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/bdinfo.c | 1 | ||||
| -rw-r--r-- | cmd/booti.c | 1 | ||||
| -rw-r--r-- | cmd/bootz.c | 1 | ||||
| -rw-r--r-- | cmd/cache.c | 1 | ||||
| -rw-r--r-- | cmd/disk.c | 1 | ||||
| -rw-r--r-- | cmd/eeprom.c | 1 | ||||
| -rw-r--r-- | cmd/efi.c | 1 | ||||
| -rw-r--r-- | cmd/elf.c | 1 | ||||
| -rw-r--r-- | cmd/fdc.c | 1 | ||||
| -rw-r--r-- | cmd/i2c.c | 3 | ||||
| -rw-r--r-- | cmd/irq.c | 1 | ||||
| -rw-r--r-- | cmd/load.c | 2 | ||||
| -rw-r--r-- | cmd/mem.c | 9 | ||||
| -rw-r--r-- | cmd/mp.c | 1 | ||||
| -rw-r--r-- | cmd/nvedit.c | 1 | ||||
| -rw-r--r-- | cmd/ti/ddr3.c | 1 | ||||
| -rw-r--r-- | cmd/ximg.c | 1 |
17 files changed, 20 insertions, 8 deletions
diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index ae6006f85ff..abd9151432e 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c @@ -10,6 +10,7 @@ #include <common.h> #include <command.h> #include <env.h> +#include <vsprintf.h> #include <linux/compiler.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/cmd/booti.c b/cmd/booti.c index 841eff10d13..d0671deb759 100644 --- a/cmd/booti.c +++ b/cmd/booti.c @@ -8,6 +8,7 @@ #include <bootm.h> #include <command.h> #include <image.h> +#include <irq_func.h> #include <lmb.h> #include <mapmem.h> #include <linux/kernel.h> diff --git a/cmd/bootz.c b/cmd/bootz.c index 0e75509ee96..74be62c2c5e 100644 --- a/cmd/bootz.c +++ b/cmd/bootz.c @@ -7,6 +7,7 @@ #include <common.h> #include <bootm.h> #include <command.h> +#include <irq_func.h> #include <lmb.h> #include <linux/compiler.h> diff --git a/cmd/cache.c b/cmd/cache.c index 2c687173a8b..27dcec09316 100644 --- a/cmd/cache.c +++ b/cmd/cache.c @@ -9,6 +9,7 @@ */ #include <common.h> #include <command.h> +#include <cpu_func.h> #include <linux/compiler.h> static int parse_argv(const char *); diff --git a/cmd/disk.c b/cmd/disk.c index 9e635c1172d..437c1753740 100644 --- a/cmd/disk.c +++ b/cmd/disk.c @@ -5,6 +5,7 @@ */ #include <common.h> #include <command.h> +#include <cpu_func.h> #include <part.h> int common_diskboot(cmd_tbl_t *cmdtp, const char *intf, int argc, diff --git a/cmd/eeprom.c b/cmd/eeprom.c index 19953df082f..4a1569baf31 100644 --- a/cmd/eeprom.c +++ b/cmd/eeprom.c @@ -22,6 +22,7 @@ #include <common.h> #include <config.h> #include <command.h> +#include <eeprom.h> #include <i2c.h> #include <eeprom_layout.h> diff --git a/cmd/efi.c b/cmd/efi.c index 919cb2fcfd5..ea239a01f0b 100644 --- a/cmd/efi.c +++ b/cmd/efi.c @@ -9,6 +9,7 @@ #include <efi.h> #include <errno.h> #include <malloc.h> +#include <sort.h> static const char *const type_name[] = { "reserved", diff --git a/cmd/elf.c b/cmd/elf.c index 538562fda58..32f12a72b9b 100644 --- a/cmd/elf.c +++ b/cmd/elf.c @@ -15,6 +15,7 @@ #include <common.h> #include <command.h> +#include <cpu_func.h> #include <elf.h> #include <env.h> #include <net.h> diff --git a/cmd/fdc.c b/cmd/fdc.c index 7bfaae0e381..7d4b8296374 100644 --- a/cmd/fdc.c +++ b/cmd/fdc.c @@ -11,6 +11,7 @@ #include <config.h> #include <command.h> #include <image.h> +#include <irq_func.h> #undef FDC_DEBUG diff --git a/cmd/i2c.c b/cmd/i2c.c index e0f8ece597c..43a76299b3c 100644 --- a/cmd/i2c.c +++ b/cmd/i2c.c @@ -76,6 +76,7 @@ #include <malloc.h> #include <asm/byteorder.h> #include <linux/compiler.h> +#include <u-boot/crc.h> /* Display values from last command. * Memory modify remembered values are different from display memory. @@ -768,7 +769,7 @@ static int do_i2c_crc (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[] #endif if (ret) err++; - crc = crc32 (crc, &byte, 1); + crc = crc32(crc, &byte, 1); addr++; } if (err > 0) diff --git a/cmd/irq.c b/cmd/irq.c index bcc718b4bc8..52d06b3eedb 100644 --- a/cmd/irq.c +++ b/cmd/irq.c @@ -6,6 +6,7 @@ #include <common.h> #include <config.h> #include <command.h> +#include <irq_func.h> static int do_interrupts(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) diff --git a/cmd/load.c b/cmd/load.c index 713fe56b555..3bfc1b41ece 100644 --- a/cmd/load.c +++ b/cmd/load.c @@ -10,10 +10,12 @@ #include <common.h> #include <command.h> #include <console.h> +#include <cpu_func.h> #include <env.h> #include <s_record.h> #include <net.h> #include <exports.h> +#include <serial.h> #include <xyzModem.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/cmd/mem.c b/cmd/mem.c index c6b8038fc9d..545534b1fc7 100644 --- a/cmd/mem.c +++ b/cmd/mem.c @@ -1212,16 +1212,11 @@ U_BOOT_CMD( #endif #ifdef CONFIG_CMD_MEMINFO -__weak void board_show_dram(phys_size_t size) -{ - puts("DRAM: "); - print_size(size, "\n"); -} - static int do_mem_info(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { - board_show_dram(gd->ram_size); + puts("DRAM: "); + print_size(gd->ram_size, "\n"); return 0; } @@ -5,6 +5,7 @@ #include <common.h> #include <command.h> +#include <cpu_func.h> static int cpu_status_all(void) { diff --git a/cmd/nvedit.c b/cmd/nvedit.c index 99a3bc57b15..b5da3759133 100644 --- a/cmd/nvedit.c +++ b/cmd/nvedit.c @@ -33,6 +33,7 @@ #include <errno.h> #include <malloc.h> #include <mapmem.h> +#include <u-boot/crc.h> #include <watchdog.h> #include <linux/stddef.h> #include <asm/byteorder.h> diff --git a/cmd/ti/ddr3.c b/cmd/ti/ddr3.c index 448a7f54a91..55130898c93 100644 --- a/cmd/ti/ddr3.c +++ b/cmd/ti/ddr3.c @@ -5,6 +5,7 @@ * Copyright (C) 2012-2017 Texas Instruments Incorporated, <www.ti.com> */ +#include <cpu_func.h> #include <asm/arch/hardware.h> #include <asm/cache.h> #include <asm/emif.h> diff --git a/cmd/ximg.c b/cmd/ximg.c index a9481004f03..22b2037a33f 100644 --- a/cmd/ximg.c +++ b/cmd/ximg.c @@ -13,6 +13,7 @@ */ #include <common.h> #include <command.h> +#include <cpu_func.h> #include <env.h> #include <gzip.h> #include <image.h> |
