diff options
author | Tom Rini <trini@konsulko.com> | 2020-05-19 10:51:43 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-05-19 10:51:43 -0400 |
commit | c2279d784e35fa25ee3a9fa28a74a1ba545f8c1e (patch) | |
tree | 158fd30f3d06142f6a99cbae6ed8ccb0f3be567b /board/renesas | |
parent | ed9a3aa6452f57af65eb74f73bd2a54c3a2f4b03 (diff) | |
parent | cd93d625fd751d55c729c78b10f82109d56a5f1d (diff) |
Merge branch '2020-05-18-reduce-size-of-common.h'
Bring in the latest round of Simon's changes to reduce what's in
<common.h> overall.
Diffstat (limited to 'board/renesas')
33 files changed, 82 insertions, 6 deletions
diff --git a/board/renesas/MigoR/migo_r.c b/board/renesas/MigoR/migo_r.c index 767c45cc9c..f8bdb4d48a 100644 --- a/board/renesas/MigoR/migo_r.c +++ b/board/renesas/MigoR/migo_r.c @@ -10,6 +10,8 @@ */ #include <common.h> +#include <init.h> +#include <net.h> #include <netdev.h> #include <asm/io.h> #include <asm/processor.h> diff --git a/board/renesas/alt/alt.c b/board/renesas/alt/alt.c index a6d7cb48a2..279ed48721 100644 --- a/board/renesas/alt/alt.c +++ b/board/renesas/alt/alt.c @@ -9,6 +9,7 @@ #include <cpu_func.h> #include <env.h> #include <hang.h> +#include <init.h> #include <malloc.h> #include <dm.h> #include <dm/platform_data/serial_sh.h> @@ -16,6 +17,8 @@ #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> +#include <linux/delay.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> #include <asm/gpio.h> diff --git a/board/renesas/alt/alt_spl.c b/board/renesas/alt/alt_spl.c index dbb210584d..2de236fc29 100644 --- a/board/renesas/alt/alt_spl.c +++ b/board/renesas/alt/alt_spl.c @@ -7,11 +7,13 @@ #include <common.h> #include <cpu_func.h> +#include <init.h> #include <malloc.h> #include <dm/platform_data/serial_sh.h> #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> #include <asm/gpio.h> diff --git a/board/renesas/blanche/blanche.c b/board/renesas/blanche/blanche.c index c15387366c..5fa10878d2 100644 --- a/board/renesas/blanche/blanche.c +++ b/board/renesas/blanche/blanche.c @@ -8,6 +8,8 @@ #include <common.h> #include <cpu_func.h> +#include <init.h> +#include <net.h> #include <asm/arch/mmc.h> #include <asm/arch/rcar-mstp.h> #include <asm/arch/rmobile.h> @@ -22,6 +24,7 @@ #include <env.h> #include <hang.h> #include <i2c.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <malloc.h> #include <miiphy.h> diff --git a/board/renesas/condor/condor.c b/board/renesas/condor/condor.c index 6505beda81..91afcdd85a 100644 --- a/board/renesas/condor/condor.c +++ b/board/renesas/condor/condor.c @@ -9,6 +9,7 @@ #include <common.h> #include <cpu_func.h> #include <hang.h> +#include <init.h> #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> diff --git a/board/renesas/draak/draak.c b/board/renesas/draak/draak.c index 2f9364c484..c8f4b214a2 100644 --- a/board/renesas/draak/draak.c +++ b/board/renesas/draak/draak.c @@ -9,6 +9,7 @@ #include <common.h> #include <cpu_func.h> #include <hang.h> +#include <init.h> #include <malloc.h> #include <netdev.h> #include <dm.h> @@ -16,6 +17,7 @@ #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> #include <asm/gpio.h> diff --git a/board/renesas/eagle/eagle.c b/board/renesas/eagle/eagle.c index cf06a173e4..6228f22e01 100644 --- a/board/renesas/eagle/eagle.c +++ b/board/renesas/eagle/eagle.c @@ -9,6 +9,7 @@ #include <common.h> #include <cpu_func.h> #include <hang.h> +#include <init.h> #include <malloc.h> #include <netdev.h> #include <dm.h> diff --git a/board/renesas/ebisu/ebisu.c b/board/renesas/ebisu/ebisu.c index 81d7f8eafa..d164a36361 100644 --- a/board/renesas/ebisu/ebisu.c +++ b/board/renesas/ebisu/ebisu.c @@ -9,6 +9,7 @@ #include <common.h> #include <cpu_func.h> #include <hang.h> +#include <init.h> #include <malloc.h> #include <netdev.h> #include <dm.h> diff --git a/board/renesas/gose/gose.c b/board/renesas/gose/gose.c index eb6ee6f6a4..c6a93c25e6 100644 --- a/board/renesas/gose/gose.c +++ b/board/renesas/gose/gose.c @@ -9,6 +9,7 @@ #include <cpu_func.h> #include <env.h> #include <hang.h> +#include <init.h> #include <malloc.h> #include <dm.h> #include <dm/platform_data/serial_sh.h> @@ -16,6 +17,8 @@ #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> +#include <linux/delay.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> #include <asm/gpio.h> diff --git a/board/renesas/gose/gose_spl.c b/board/renesas/gose/gose_spl.c index 42a6758148..624ba5db04 100644 --- a/board/renesas/gose/gose_spl.c +++ b/board/renesas/gose/gose_spl.c @@ -7,11 +7,13 @@ #include <common.h> #include <cpu_func.h> +#include <init.h> #include <malloc.h> #include <dm/platform_data/serial_sh.h> #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> #include <asm/gpio.h> diff --git a/board/renesas/grpeach/grpeach.c b/board/renesas/grpeach/grpeach.c index ba904609ae..b92e01ca98 100644 --- a/board/renesas/grpeach/grpeach.c +++ b/board/renesas/grpeach/grpeach.c @@ -6,6 +6,7 @@ #include <common.h> #include <cpu_func.h> +#include <init.h> #include <asm/io.h> #include <asm/arch/sys_proto.h> diff --git a/board/renesas/koelsch/koelsch.c b/board/renesas/koelsch/koelsch.c index e09d3d0a63..1b3acc8fd1 100644 --- a/board/renesas/koelsch/koelsch.c +++ b/board/renesas/koelsch/koelsch.c @@ -10,6 +10,7 @@ #include <cpu_func.h> #include <env.h> #include <hang.h> +#include <init.h> #include <malloc.h> #include <dm.h> #include <dm/platform_data/serial_sh.h> @@ -17,6 +18,8 @@ #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> +#include <linux/delay.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> #include <asm/gpio.h> diff --git a/board/renesas/koelsch/koelsch_spl.c b/board/renesas/koelsch/koelsch_spl.c index b3530d7ce7..449bbfa7b8 100644 --- a/board/renesas/koelsch/koelsch_spl.c +++ b/board/renesas/koelsch/koelsch_spl.c @@ -7,11 +7,13 @@ #include <common.h> #include <cpu_func.h> +#include <init.h> #include <malloc.h> #include <dm/platform_data/serial_sh.h> #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> #include <asm/gpio.h> diff --git a/board/renesas/lager/lager.c b/board/renesas/lager/lager.c index 9ac9515925..36a35a9a9c 100644 --- a/board/renesas/lager/lager.c +++ b/board/renesas/lager/lager.c @@ -12,6 +12,7 @@ #include <env.h> #include <env_internal.h> #include <hang.h> +#include <init.h> #include <malloc.h> #include <netdev.h> #include <dm.h> @@ -19,6 +20,8 @@ #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> +#include <linux/delay.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> #include <asm/gpio.h> diff --git a/board/renesas/lager/lager_spl.c b/board/renesas/lager/lager_spl.c index d7db361b12..1ca857c2c3 100644 --- a/board/renesas/lager/lager_spl.c +++ b/board/renesas/lager/lager_spl.c @@ -7,11 +7,13 @@ #include <common.h> #include <cpu_func.h> +#include <init.h> #include <malloc.h> #include <dm/platform_data/serial_sh.h> #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> #include <asm/gpio.h> diff --git a/board/renesas/porter/porter.c b/board/renesas/porter/porter.c index 097710b479..793e02cb44 100644 --- a/board/renesas/porter/porter.c +++ b/board/renesas/porter/porter.c @@ -10,6 +10,7 @@ #include <cpu_func.h> #include <env.h> #include <hang.h> +#include <init.h> #include <malloc.h> #include <dm.h> #include <dm/platform_data/serial_sh.h> @@ -17,6 +18,8 @@ #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> +#include <linux/delay.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> #include <asm/gpio.h> diff --git a/board/renesas/porter/porter_spl.c b/board/renesas/porter/porter_spl.c index 026220d9e2..f10c6cffc2 100644 --- a/board/renesas/porter/porter_spl.c +++ b/board/renesas/porter/porter_spl.c @@ -7,11 +7,13 @@ #include <common.h> #include <cpu_func.h> +#include <init.h> #include <malloc.h> #include <dm/platform_data/serial_sh.h> #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> #include <asm/gpio.h> diff --git a/board/renesas/r2dplus/r2dplus.c b/board/renesas/r2dplus/r2dplus.c index f2da4686c3..e4d0967c14 100644 --- a/board/renesas/r2dplus/r2dplus.c +++ b/board/renesas/r2dplus/r2dplus.c @@ -7,6 +7,7 @@ #include <common.h> #include <ide.h> #include <init.h> +#include <net.h> #include <netdev.h> #include <asm/processor.h> #include <asm/io.h> diff --git a/board/renesas/r7780mp/r7780mp.c b/board/renesas/r7780mp/r7780mp.c index 8dbeeb6e68..120464ced4 100644 --- a/board/renesas/r7780mp/r7780mp.c +++ b/board/renesas/r7780mp/r7780mp.c @@ -7,6 +7,7 @@ #include <common.h> #include <ide.h> #include <init.h> +#include <net.h> #include <asm/processor.h> #include <asm/io.h> #include <asm/pci.h> diff --git a/board/renesas/rcar-common/common.c b/board/renesas/rcar-common/common.c index 37f8a46d7e..b9e8cb4ce7 100644 --- a/board/renesas/rcar-common/common.c +++ b/board/renesas/rcar-common/common.c @@ -9,8 +9,10 @@ #include <common.h> #include <dm.h> +#include <init.h> #include <dm/uclass-internal.h> #include <asm/arch/rmobile.h> +#include <linux/libfdt.h> #ifdef CONFIG_RCAR_GEN3 diff --git a/board/renesas/rcar-common/gen3-spl.c b/board/renesas/rcar-common/gen3-spl.c index d9741c1939..fd6e5054a6 100644 --- a/board/renesas/rcar-common/gen3-spl.c +++ b/board/renesas/rcar-common/gen3-spl.c @@ -7,8 +7,12 @@ #include <common.h> #include <cpu_func.h> +#include <image.h> +#include <init.h> +#include <log.h> #include <asm/io.h> #include <spl.h> +#include <linux/bitops.h> #define RCAR_CNTC_BASE 0xE6080000 #define CNTCR_EN BIT(0) diff --git a/board/renesas/salvator-x/salvator-x.c b/board/renesas/salvator-x/salvator-x.c index 91c3728571..947bdaefa8 100644 --- a/board/renesas/salvator-x/salvator-x.c +++ b/board/renesas/salvator-x/salvator-x.c @@ -9,6 +9,8 @@ #include <common.h> #include <cpu_func.h> +#include <image.h> +#include <init.h> #include <malloc.h> #include <netdev.h> #include <dm.h> @@ -16,6 +18,7 @@ #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> #include <asm/gpio.h> diff --git a/board/renesas/sh7752evb/sh7752evb.c b/board/renesas/sh7752evb/sh7752evb.c index 203eecf3d6..a005029b61 100644 --- a/board/renesas/sh7752evb/sh7752evb.c +++ b/board/renesas/sh7752evb/sh7752evb.c @@ -4,14 +4,18 @@ */ #include <common.h> +#include <command.h> #include <env.h> +#include <flash.h> #include <init.h> #include <malloc.h> +#include <net.h> #include <asm/processor.h> #include <asm/io.h> #include <asm/mmc.h> #include <spi.h> #include <spi_flash.h> +#include <linux/delay.h> int checkboard(void) { @@ -243,7 +247,7 @@ int board_late_init(void) } #ifdef CONFIG_DEPRECATED -int do_write_mac(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) +int do_write_mac(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { int i, ret; char mac_string[256]; diff --git a/board/renesas/sh7753evb/sh7753evb.c b/board/renesas/sh7753evb/sh7753evb.c index 0b118b2f65..3b4a3ce26a 100644 --- a/board/renesas/sh7753evb/sh7753evb.c +++ b/board/renesas/sh7753evb/sh7753evb.c @@ -4,14 +4,18 @@ */ #include <common.h> +#include <command.h> #include <env.h> +#include <flash.h> #include <init.h> #include <malloc.h> +#include <net.h> #include <asm/processor.h> #include <asm/io.h> #include <asm/mmc.h> #include <spi.h> #include <spi_flash.h> +#include <linux/delay.h> int checkboard(void) { @@ -259,7 +263,7 @@ int board_late_init(void) } #ifdef CONFIG_DEPRECATED -int do_write_mac(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) +int do_write_mac(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { int i, ret; char mac_string[256]; diff --git a/board/renesas/sh7757lcr/sh7757lcr.c b/board/renesas/sh7757lcr/sh7757lcr.c index e8d1fdd03f..5e76b9e7b4 100644 --- a/board/renesas/sh7757lcr/sh7757lcr.c +++ b/board/renesas/sh7757lcr/sh7757lcr.c @@ -4,9 +4,12 @@ */ #include <common.h> +#include <command.h> #include <env.h> +#include <flash.h> #include <init.h> #include <malloc.h> +#include <net.h> #include <asm/processor.h> #include <asm/io.h> #include <asm/mmc.h> @@ -342,7 +345,7 @@ int board_late_init(void) return 0; } -int do_sh_g200(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) +int do_sh_g200(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { struct gctrl_regs *gctrl = GCTRL_BASE; unsigned long graofst; @@ -361,7 +364,7 @@ U_BOOT_CMD( ); #ifdef CONFIG_DEPRECATED -int do_write_mac(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) +int do_write_mac(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { int i, ret; char mac_string[256]; diff --git a/board/renesas/sh7763rdp/sh7763rdp.c b/board/renesas/sh7763rdp/sh7763rdp.c index 9bc2c55986..73a53c1e5a 100644 --- a/board/renesas/sh7763rdp/sh7763rdp.c +++ b/board/renesas/sh7763rdp/sh7763rdp.c @@ -8,6 +8,7 @@ */ #include <common.h> +#include <init.h> #include <asm/io.h> #include <asm/processor.h> diff --git a/board/renesas/silk/silk.c b/board/renesas/silk/silk.c index e7cbd75776..171d06f317 100644 --- a/board/renesas/silk/silk.c +++ b/board/renesas/silk/silk.c @@ -10,6 +10,7 @@ #include <cpu_func.h> #include <env.h> #include <hang.h> +#include <init.h> #include <malloc.h> #include <dm.h> #include <dm/platform_data/serial_sh.h> @@ -17,6 +18,8 @@ #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> +#include <linux/delay.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> #include <asm/gpio.h> diff --git a/board/renesas/silk/silk_spl.c b/board/renesas/silk/silk_spl.c index a2c397f935..f10f84a3cc 100644 --- a/board/renesas/silk/silk_spl.c +++ b/board/renesas/silk/silk_spl.c @@ -7,11 +7,13 @@ #include <common.h> #include <cpu_func.h> +#include <init.h> #include <malloc.h> #include <dm/platform_data/serial_sh.h> #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> #include <asm/gpio.h> diff --git a/board/renesas/stout/cpld.c b/board/renesas/stout/cpld.c index e6c2051bd4..b56ed1703f 100644 --- a/board/renesas/stout/cpld.c +++ b/board/renesas/stout/cpld.c @@ -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; diff --git a/board/renesas/stout/stout.c b/board/renesas/stout/stout.c index 0a0ff5ff76..babcce9aa1 100644 --- a/board/renesas/stout/stout.c +++ b/board/renesas/stout/stout.c @@ -10,6 +10,7 @@ #include <common.h> #include <env.h> +#include <init.h> #include <malloc.h> #include <netdev.h> #include <dm.h> @@ -18,6 +19,8 @@ #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> +#include <linux/delay.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> #include <asm/gpio.h> diff --git a/board/renesas/stout/stout_spl.c b/board/renesas/stout/stout_spl.c index 8d01efce56..57c1fabaf3 100644 --- a/board/renesas/stout/stout_spl.c +++ b/board/renesas/stout/stout_spl.c @@ -7,11 +7,13 @@ #include <common.h> #include <cpu_func.h> +#include <init.h> #include <malloc.h> #include <dm/platform_data/serial_sh.h> #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> #include <asm/gpio.h> diff --git a/board/renesas/ulcb/cpld.c b/board/renesas/ulcb/cpld.c index 528675651d..a20a34a92a 100644 --- a/board/renesas/ulcb/cpld.c +++ b/board/renesas/ulcb/cpld.c @@ -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; diff --git a/board/renesas/ulcb/ulcb.c b/board/renesas/ulcb/ulcb.c index b91f940b48..07bc1ec719 100644 --- a/board/renesas/ulcb/ulcb.c +++ b/board/renesas/ulcb/ulcb.c @@ -7,6 +7,8 @@ */ #include <common.h> +#include <image.h> +#include <init.h> #include <malloc.h> #include <netdev.h> #include <dm.h> @@ -14,6 +16,7 @@ #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> #include <asm/gpio.h> |