treewide: convert bd_t to struct bd_info by coccinelle
Subsystems (32)
PATCH 1/3 treewide: convert bd_t to struct bd_info by coccinelle
The Linux coding style guide (Documentation/process/coding-style.rst) clearly says:
It's a **mistake** to use typedef for structures and pointers.
Besides, using typedef for structures is annoying when you try to make headers self-contained.
Let's say you have the following function declaration in a header:
void foo(bd_t *bd);
This is not self-contained since bd_t is not defined.
To tell the compiler what 'bd_t' is, you need to include <asm/u-boot.h>
#include <asm/u-boot.h> void foo(bd_t *bd);
Then, the include direcective pulls in more bloat needlessly.
If you use 'struct bd_info' instead, it is enough to put a forward declaration as follows:
struct bd_info; void foo(struct bd_info *bd);
Right, typedef'ing bd_t is a mistake.
I used coccinelle to generate this commit.
The semantic patch that makes this change is as follows:
<smpl>
@@
typedef bd_t;
@@
-bd_t
+struct bd_info
</smpl>
---
arch/arm/cpu/arm1136/mx35/generic.c | 4 +- arch/arm/cpu/arm926ejs/mx25/generic.c | 4 +- arch/arm/cpu/arm926ejs/mx27/generic.c | 4 +- arch/arm/cpu/arm926ejs/mxs/mxs.c | 2 +- arch/arm/cpu/arm926ejs/mxs/spl_boot.c | 2 +- arch/arm/cpu/armv7/ls102xa/cpu.c | 4 +- arch/arm/cpu/armv7/ls102xa/fdt.c | 2 +- arch/arm/cpu/armv7/vf610/generic.c | 4 +- arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 4 +- arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 2 +- arch/arm/cpu/armv8/s32v234/generic.c | 2 +- arch/arm/include/asm/arch-mx27/mxcmmc.h | 2 +- arch/arm/include/asm/arch-mx31/sys_proto.h | 2 +- arch/arm/include/asm/arch-mx6/litesom.h | 2 +- arch/arm/include/asm/arch-mxs/sys_proto.h | 3 +- arch/arm/lib/bootm-fdt.c | 2 +- arch/arm/lib/bootm.c | 11 +-- arch/arm/lib/cache-cp15.c | 2 +- .../mach-davinci/include/mach/sdmmc_defs.h | 2 +- arch/arm/mach-imx/cpu.c | 4 +- arch/arm/mach-imx/imx8/ahab.c | 2 +- arch/arm/mach-imx/imx8/fdt.c | 4 +- arch/arm/mach-imx/imx8m/soc.c | 2 +- arch/arm/mach-imx/mx6/litesom.c | 2 +- arch/arm/mach-imx/mx6/module_fuse.c | 2 +- arch/arm/mach-kirkwood/cpu.c | 4 +- arch/arm/mach-lpc32xx/cpu.c | 2 +- arch/arm/mach-meson/board-common.c | 4 +- arch/arm/mach-mvebu/cpu.c | 2 +- arch/arm/mach-omap2/am33xx/board.c | 2 +- arch/arm/mach-omap2/am33xx/fdt.c | 6 +- arch/arm/mach-omap2/fdt-common.c | 8 +- arch/arm/mach-omap2/omap-cache.c | 2 +- arch/arm/mach-omap2/omap3/emac.c | 2 +- arch/arm/mach-omap2/omap5/fdt.c | 16 ++-- arch/arm/mach-orion5x/cpu.c | 2 +- arch/arm/mach-rmobile/emac.c | 2 +- arch/arm/mach-stm32mp/fdt.c | 2 +- arch/arm/mach-tegra/dt-setup.c | 2 +- arch/arm/mach-uniphier/fdt-fixup.c | 4 +- arch/m68k/cpu/mcf523x/cpu.c | 2 +- arch/m68k/cpu/mcf52x2/cpu.c | 2 +- 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 | 10 +-- arch/nds32/lib/bootm.c | 24 +++--- arch/powerpc/cpu/mpc83xx/cpu.c | 4 +- arch/powerpc/cpu/mpc83xx/fdt.c | 2 +- arch/powerpc/cpu/mpc83xx/interrupts.c | 2 +- arch/powerpc/cpu/mpc83xx/pci.c | 2 +- arch/powerpc/cpu/mpc85xx/cpu.c | 2 +- arch/powerpc/cpu/mpc85xx/ether_fcc.c | 4 +- arch/powerpc/cpu/mpc85xx/fdt.c | 2 +- arch/powerpc/cpu/mpc86xx/fdt.c | 2 +- arch/powerpc/cpu/mpc8xx/cpu.c | 2 +- arch/powerpc/cpu/mpc8xx/fdt.c | 2 +- arch/powerpc/cpu/mpc8xxx/cpu.c | 2 +- arch/powerpc/lib/bootm.c | 16 ++-- arch/sh/cpu/sh4/cpu.c | 2 +- arch/x86/lib/bootm.c | 2 +- board/AndesTech/adp-ae3xx/adp-ae3xx.c | 2 +- board/AndesTech/adp-ag101p/adp-ag101p.c | 2 +- board/AndesTech/ax25-ae350/ax25-ae350.c | 2 +- board/Arcturus/ucp1020/spl.c | 6 +- board/Arcturus/ucp1020/ucp1020.c | 4 +- board/BuR/common/bur_common.h | 2 +- board/BuR/common/common.c | 2 +- board/CZ.NIC/turris_mox/turris_mox.c | 2 +- board/CarMediaLab/flea3/flea3.c | 2 +- board/Marvell/db-88f6720/db-88f6720.c | 2 +- board/Marvell/db-88f6820-amc/db-88f6820-amc.c | 2 +- board/Marvell/db-88f6820-gp/db-88f6820-gp.c | 2 +- board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c | 2 +- board/Marvell/gplugd/gplugd.c | 2 +- board/abilis/tb100/tb100.c | 2 +- board/advantech/dms-ba16/dms-ba16.c | 4 +- board/advantech/imx8qm_rom7720_a1/spl.c | 2 +- board/amazon/kc1/kc1.c | 2 +- board/armltd/integrator/integrator.c | 2 +- board/armltd/vexpress/vexpress_common.c | 4 +- board/armltd/vexpress/vexpress_tc2.c | 2 +- board/armltd/vexpress64/vexpress64.c | 2 +- board/atmel/at91rm9200ek/at91rm9200ek.c | 2 +- board/atmel/at91sam9261ek/at91sam9261ek.c | 2 +- board/atmel/at91sam9n12ek/at91sam9n12ek.c | 2 +- board/bachmann/ot1200/ot1200.c | 4 +- board/barco/platinum/platinum.c | 4 +- board/barco/titanium/titanium.c | 4 +- board/birdland/bav335x/board.c | 2 +- board/bluegiga/apx4devkit/apx4devkit.c | 4 +- board/bluewater/gurnard/gurnard.c | 4 +- board/bluewater/snapper9260/snapper9260.c | 2 +- board/bosch/shc/board.c | 2 +- board/boundary/nitrogen6x/nitrogen6x.c | 2 +- board/broadcom/bcm23550_w1d/bcm23550_w1d.c | 2 +- board/broadcom/bcm28155_ap/bcm28155_ap.c | 2 +- board/broadcom/bcm_ep/board.c | 2 +- board/calao/usb_a9263/usb_a9263.c | 2 +- board/cavium/thunderx/thunderx.c | 2 +- board/ccv/xpress/xpress.c | 4 +- board/cirrus/edb93xx/edb93xx.c | 2 +- board/compulab/cl-som-imx7/cl-som-imx7.c | 4 +- board/compulab/cl-som-imx7/spl.c | 2 +- board/compulab/cm_fx6/cm_fx6.c | 4 +- board/compulab/cm_fx6/spl.c | 2 +- board/compulab/cm_t335/cm_t335.c | 2 +- board/compulab/cm_t35/cm_t35.c | 4 +- board/compulab/cm_t43/cm_t43.c | 2 +- board/compulab/cm_t54/cm_t54.c | 6 +- board/congatec/cgtqmx6eval/cgtqmx6eval.c | 4 +- board/corscience/tricorder/tricorder.c | 2 +- board/creative/xfi3/xfi3.c | 4 +- board/cssi/MCR3000/MCR3000.c | 2 +- board/davinci/da8xxevm/da850evm.c | 2 +- board/davinci/da8xxevm/omapl138_lcdk.c | 2 +- board/dhelectronics/dh_imx6/dh_imx6_spl.c | 2 +- board/dhelectronics/dh_stm32mp1/board.c | 2 +- board/egnite/ethernut5/ethernut5.c | 4 +- board/el/el6x/el6x.c | 4 +- board/embest/mx6boards/mx6boards.c | 4 +- board/esd/meesc/meesc.c | 2 +- board/esd/vme8349/vme8349.c | 4 +- board/freescale/b4860qds/b4860qds.c | 2 +- board/freescale/b4860qds/b4860qds.h | 2 +- board/freescale/b4860qds/eth_b4860qds.c | 2 +- board/freescale/b4860qds/pci.c | 2 +- board/freescale/b4860qds/spl.c | 6 +- board/freescale/bsc9131rdb/bsc9131rdb.c | 2 +- board/freescale/bsc9132qds/bsc9132qds.c | 4 +- board/freescale/c29xpcie/c29xpcie.c | 4 +- board/freescale/c29xpcie/spl.c | 6 +- board/freescale/common/cds_pci_ft.c | 2 +- board/freescale/common/p_corenet/pci.c | 2 +- board/freescale/corenet_ds/corenet_ds.c | 2 +- board/freescale/corenet_ds/corenet_ds.h | 2 +- board/freescale/corenet_ds/eth_hydra.c | 2 +- board/freescale/corenet_ds/eth_p4080.c | 2 +- board/freescale/corenet_ds/eth_superhydra.c | 2 +- board/freescale/imx8mq_evk/spl.c | 2 +- board/freescale/imx8qm_mek/imx8qm_mek.c | 2 +- board/freescale/imx8qxp_mek/imx8qxp_mek.c | 2 +- board/freescale/ls1012afrdm/ls1012afrdm.c | 2 +- board/freescale/ls1012aqds/ls1012aqds.c | 2 +- board/freescale/ls1012ardb/ls1012ardb.c | 2 +- board/freescale/ls1021aiot/ls1021aiot.c | 4 +- board/freescale/ls1021aqds/eth.c | 2 +- board/freescale/ls1021aqds/ls1021aqds.c | 2 +- board/freescale/ls1021atsn/ls1021atsn.c | 4 +- board/freescale/ls1021atwr/ls1021atwr.c | 4 +- board/freescale/ls1028a/ls1028a.c | 4 +- board/freescale/ls1043aqds/eth.c | 2 +- board/freescale/ls1043aqds/ls1043aqds.c | 2 +- board/freescale/ls1043ardb/eth.c | 2 +- board/freescale/ls1043ardb/ls1043ardb.c | 2 +- board/freescale/ls1046afrwy/eth.c | 2 +- board/freescale/ls1046afrwy/ls1046afrwy.c | 2 +- board/freescale/ls1046aqds/eth.c | 2 +- board/freescale/ls1046aqds/ls1046aqds.c | 2 +- board/freescale/ls1046ardb/eth.c | 2 +- board/freescale/ls1046ardb/ls1046ardb.c | 2 +- board/freescale/ls1088a/eth_ls1088aqds.c | 2 +- board/freescale/ls1088a/eth_ls1088ardb.c | 2 +- board/freescale/ls1088a/ls1088a.c | 2 +- board/freescale/ls2080a/ls2080a.c | 4 +- board/freescale/ls2080aqds/eth.c | 2 +- board/freescale/ls2080aqds/ls2080aqds.c | 2 +- board/freescale/ls2080ardb/eth_ls2080rdb.c | 2 +- board/freescale/ls2080ardb/ls2080ardb.c | 2 +- board/freescale/lx2160a/eth_lx2160aqds.c | 2 +- board/freescale/lx2160a/eth_lx2160ardb.c | 2 +- board/freescale/lx2160a/lx2160a.c | 2 +- board/freescale/m5253demo/m5253demo.c | 2 +- board/freescale/mpc8308rdb/mpc8308rdb.c | 6 +- board/freescale/mpc8313erdb/mpc8313erdb.c | 2 +- board/freescale/mpc8315erdb/mpc8315erdb.c | 6 +- board/freescale/mpc8323erdb/mpc8323erdb.c | 2 +- board/freescale/mpc832xemds/mpc832xemds.c | 2 +- board/freescale/mpc8349emds/mpc8349emds.c | 2 +- board/freescale/mpc8349itx/mpc8349itx.c | 2 +- board/freescale/mpc837xemds/mpc837xemds.c | 14 ++-- board/freescale/mpc837xemds/pci.c | 2 +- board/freescale/mpc837xemds/pci.h | 2 +- board/freescale/mpc837xerdb/mpc837xerdb.c | 4 +- board/freescale/mpc8536ds/mpc8536ds.c | 4 +- board/freescale/mpc8541cds/mpc8541cds.c | 2 +- board/freescale/mpc8544ds/mpc8544ds.c | 4 +- board/freescale/mpc8548cds/mpc8548cds.c | 4 +- board/freescale/mpc8555cds/mpc8555cds.c | 2 +- board/freescale/mpc8568mds/mpc8568mds.c | 2 +- board/freescale/mpc8569mds/mpc8569mds.c | 15 ++-- board/freescale/mpc8572ds/mpc8572ds.c | 4 +- board/freescale/mpc8610hpcd/mpc8610hpcd.c | 4 +- board/freescale/mpc8641hpcn/mpc8641hpcn.c | 4 +- board/freescale/mx23evk/mx23evk.c | 2 +- board/freescale/mx25pdk/mx25pdk.c | 2 +- board/freescale/mx28evk/mx28evk.c | 4 +- board/freescale/mx31pdk/mx31pdk.c | 2 +- board/freescale/mx35pdk/mx35pdk.c | 4 +- board/freescale/mx51evk/mx51evk.c | 2 +- board/freescale/mx53ard/mx53ard.c | 4 +- board/freescale/mx53evk/mx53evk.c | 2 +- board/freescale/mx53loco/mx53loco.c | 2 +- board/freescale/mx53smd/mx53smd.c | 2 +- board/freescale/mx6qarm2/mx6qarm2.c | 4 +- board/freescale/mx6sabreauto/mx6sabreauto.c | 2 +- board/freescale/mx6sabresd/mx6sabresd.c | 2 +- board/freescale/mx6slevk/mx6slevk.c | 2 +- .../freescale/mx6sxsabreauto/mx6sxsabreauto.c | 2 +- board/freescale/mx6sxsabresd/mx6sxsabresd.c | 2 +- .../mx6ul_14x14_evk/mx6ul_14x14_evk.c | 2 +- board/freescale/mx7ulp_evk/mx7ulp_evk.c | 2 +- board/freescale/p1010rdb/p1010rdb.c | 6 +- board/freescale/p1010rdb/spl.c | 6 +- board/freescale/p1022ds/p1022ds.c | 4 +- board/freescale/p1022ds/spl.c | 6 +- board/freescale/p1023rdb/p1023rdb.c | 4 +- board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c | 4 +- board/freescale/p1_p2_rdb_pc/spl.c | 6 +- board/freescale/p1_twr/p1_twr.c | 4 +- board/freescale/p2041rdb/eth.c | 2 +- board/freescale/p2041rdb/p2041rdb.c | 4 +- board/freescale/qemu-ppce500/qemu-ppce500.c | 4 +- board/freescale/s32v234evb/s32v234evb.c | 2 +- board/freescale/t102xqds/eth_t102xqds.c | 2 +- board/freescale/t102xqds/pci.c | 2 +- board/freescale/t102xqds/spl.c | 6 +- board/freescale/t102xqds/t102xqds.c | 2 +- board/freescale/t102xqds/t102xqds.h | 2 +- board/freescale/t102xrdb/eth_t102xrdb.c | 2 +- board/freescale/t102xrdb/pci.c | 2 +- board/freescale/t102xrdb/spl.c | 6 +- board/freescale/t102xrdb/t102xrdb.c | 2 +- board/freescale/t102xrdb/t102xrdb.h | 2 +- board/freescale/t1040qds/eth.c | 2 +- board/freescale/t1040qds/pci.c | 2 +- board/freescale/t1040qds/t1040qds.c | 2 +- board/freescale/t1040qds/t1040qds.h | 2 +- board/freescale/t104xrdb/eth.c | 2 +- board/freescale/t104xrdb/pci.c | 2 +- board/freescale/t104xrdb/spl.c | 6 +- board/freescale/t104xrdb/t104xrdb.c | 2 +- board/freescale/t104xrdb/t104xrdb.h | 2 +- board/freescale/t208xqds/eth_t208xqds.c | 2 +- board/freescale/t208xqds/pci.c | 2 +- board/freescale/t208xqds/spl.c | 6 +- board/freescale/t208xqds/t208xqds.c | 2 +- board/freescale/t208xqds/t208xqds.h | 2 +- board/freescale/t208xrdb/eth_t208xrdb.c | 2 +- board/freescale/t208xrdb/pci.c | 2 +- board/freescale/t208xrdb/spl.c | 6 +- board/freescale/t208xrdb/t208xrdb.c | 2 +- board/freescale/t208xrdb/t208xrdb.h | 2 +- board/freescale/t4qds/eth.c | 2 +- board/freescale/t4qds/pci.c | 2 +- board/freescale/t4qds/spl.c | 6 +- board/freescale/t4qds/t4240emu.c | 2 +- board/freescale/t4qds/t4240qds.c | 2 +- board/freescale/t4qds/t4qds.h | 2 +- board/freescale/t4rdb/eth.c | 2 +- board/freescale/t4rdb/pci.c | 2 +- board/freescale/t4rdb/spl.c | 6 +- board/freescale/t4rdb/t4240rdb.c | 2 +- board/freescale/t4rdb/t4rdb.h | 2 +- board/freescale/vf610twr/vf610twr.c | 2 +- board/gateworks/gw_ventana/common.c | 2 +- board/gateworks/gw_ventana/gw_ventana.c | 6 +- board/gdsys/mpc8308/gazerbeam.c | 2 +- board/gdsys/mpc8308/hrcon.c | 4 +- board/gdsys/mpc8308/strider.c | 4 +- board/gdsys/p1022/controlcenterd.c | 4 +- board/ge/bx50v3/bx50v3.c | 2 +- board/ge/mx53ppd/mx53ppd.c | 2 +- board/google/imx8mq_phanbell/spl.c | 2 +- board/grinn/liteboard/board.c | 2 +- board/gumstix/duovero/duovero.c | 4 +- board/gumstix/pepper/board.c | 2 +- board/highbank/highbank.c | 4 +- board/hisilicon/hikey/hikey.c | 2 +- board/ids/ids8313/ids8313.c | 2 +- board/imgtec/boston/dt.c | 2 +- board/imgtec/ci20/ci20.c | 4 +- board/imgtec/malta/malta.c | 2 +- board/inversepath/usbarmory/usbarmory.c | 2 +- board/isee/igep003x/board.c | 4 +- board/isee/igep00x0/common.c | 2 +- board/isee/igep00x0/igep00x0.c | 4 +- board/keymile/common/common.c | 2 +- board/keymile/km83xx/km83xx.c | 2 +- board/keymile/kmp204x/eth.c | 2 +- board/keymile/kmp204x/kmp204x.c | 2 +- board/keymile/kmp204x/kmp204x.h | 2 +- board/keymile/kmp204x/pci.c | 2 +- board/kmc/kzm9g/kzm9g.c | 2 +- board/kobol/helios4/helios4.c | 2 +- board/kosagi/novena/novena_spl.c | 2 +- board/l+g/vinco/vinco.c | 4 +- board/laird/wb45n/wb45n.c | 2 +- board/laird/wb50n/wb50n.c | 2 +- board/lg/sniper/sniper.c | 2 +- board/liebherr/display5/display5.c | 2 +- board/liebherr/display5/spl.c | 2 +- board/liebherr/mccmon6/spl.c | 2 +- board/liebherr/xea/xea.c | 2 +- board/logicpd/am3517evm/am3517evm.c | 2 +- board/logicpd/zoom1/zoom1.c | 4 +- board/menlo/m53menlo/m53menlo.c | 4 +- board/mini-box/picosam9g45/picosam9g45.c | 4 +- board/mpc8308_p1m/mpc8308_p1m.c | 4 +- board/nokia/rx51/rx51.c | 2 +- board/nvidia/p2371-2180/p2371-2180.c | 2 +- board/nvidia/p2771-0000/p2771-0000.c | 2 +- board/nvidia/p3450-0000/p3450-0000.c | 2 +- board/olimex/mx23_olinuxino/mx23_olinuxino.c | 2 +- board/overo/common.c | 2 +- board/overo/overo.c | 2 +- board/phytec/pcl063/spl.c | 2 +- board/phytec/pcm058/pcm058.c | 4 +- board/phytec/pfla02/pfla02.c | 6 +- board/phytec/phycore_am335x_r2/board.c | 2 +- board/ppcag/bg0900/bg0900.c | 2 +- board/qemu-mips/qemu-mips.c | 2 +- .../dragonboard410c/dragonboard410c.c | 2 +- board/quipos/cairo/cairo.c | 2 +- board/raspberrypi/rpi/rpi.c | 2 +- board/renesas/MigoR/migo_r.c | 2 +- board/renesas/blanche/blanche.c | 2 +- board/renesas/r2dplus/r2dplus.c | 2 +- board/renesas/r7780mp/r7780mp.c | 2 +- board/renesas/rcar-common/common.c | 2 +- board/renesas/sh7752evb/sh7752evb.c | 2 +- board/renesas/sh7753evb/sh7753evb.c | 2 +- board/renesas/sh7757lcr/sh7757lcr.c | 2 +- board/ronetix/pm9261/pm9261.c | 2 +- board/ronetix/pm9263/pm9263.c | 2 +- board/ronetix/pm9g45/pm9g45.c | 2 +- board/samsung/arndale/arndale.c | 2 +- board/samsung/common/board.c | 2 +- board/samsung/goni/goni.c | 2 +- board/samsung/smdkc100/smdkc100.c | 2 +- board/samsung/smdkv310/smdkv310.c | 4 +- board/sandbox/sandbox.c | 2 +- board/sandisk/sansa_fuze_plus/sfp.c | 4 +- board/sbc8349/sbc8349.c | 2 +- board/sbc8548/sbc8548.c | 4 +- board/sbc8641d/sbc8641d.c | 2 +- board/schulercontrol/sc_sps_1/sc_sps_1.c | 4 +- board/seco/mx6quq7/mx6quq7.c | 4 +- board/siemens/capricorn/board.c | 2 +- board/siemens/corvus/board.c | 2 +- board/siemens/draco/board.c | 2 +- board/siemens/pxm2/board.c | 2 +- board/siemens/rut/board.c | 2 +- board/siemens/smartweb/smartweb.c | 2 +- board/siemens/taurus/taurus.c | 2 +- board/silica/pengwyn/board.c | 2 +- board/sks-kinkel/sksimx6/sksimx6.c | 4 +- board/socrates/socrates.c | 2 +- board/softing/vining_2000/vining_2000.c | 2 +- board/solidrun/clearfog/clearfog.c | 2 +- board/spear/spear300/spear300.c | 2 +- board/spear/spear310/spear310.c | 2 +- board/spear/spear320/spear320.c | 2 +- board/spear/spear600/spear600.c | 2 +- board/spear/x600/x600.c | 2 +- board/st/stm32mp1/stm32mp1.c | 2 +- board/st/stv0991/stv0991.c | 2 +- board/sunxi/board.c | 4 +- board/tcl/sl50/board.c | 2 +- board/technexion/pico-imx6/pico-imx6.c | 2 +- board/technexion/pico-imx6/spl.c | 2 +- board/technexion/pico-imx6ul/pico-imx6ul.c | 2 +- board/technexion/pico-imx6ul/spl.c | 2 +- board/technexion/pico-imx7d/spl.c | 2 +- board/technexion/pico-imx8mq/spl.c | 2 +- board/technexion/tao3530/tao3530.c | 2 +- board/technologic/ts4600/ts4600.c | 2 +- board/technologic/ts4800/ts4800.c | 4 +- board/theadorable/theadorable.c | 2 +- board/ti/am335x/board.c | 2 +- board/ti/am3517crane/am3517crane.c | 2 +- board/ti/am43xx/board.c | 2 +- board/ti/am57xx/board.c | 6 +- board/ti/am65x/evm.c | 2 +- board/ti/beagle/beagle.c | 4 +- board/ti/dra7xx/evm.c | 4 +- board/ti/evm/evm.c | 6 +- board/ti/j721e/evm.c | 2 +- board/ti/ks2_evm/board.c | 4 +- board/ti/ks2_evm/board_k2g.c | 2 +- board/ti/omap5_uevm/evm.c | 4 +- board/ti/panda/panda.c | 4 +- board/ti/sdp4430/sdp.c | 4 +- board/ti/ti814x/evm.c | 4 +- board/ti/ti816x/evm.c | 2 +- board/timll/devkit8000/devkit8000.c | 4 +- board/toradex/apalis-imx8/apalis-imx8.c | 2 +- board/toradex/apalis-tk1/apalis-tk1.c | 2 +- board/toradex/apalis_imx6/apalis_imx6.c | 4 +- board/toradex/apalis_t30/apalis_t30.c | 2 +- .../toradex/colibri-imx6ull/colibri-imx6ull.c | 2 +- board/toradex/colibri-imx8x/colibri-imx8x.c | 2 +- board/toradex/colibri_imx6/colibri_imx6.c | 4 +- board/toradex/colibri_imx7/colibri_imx7.c | 2 +- board/toradex/colibri_pxa270/colibri_pxa270.c | 6 +- board/toradex/colibri_t20/colibri_t20.c | 2 +- board/toradex/colibri_t30/colibri_t30.c | 2 +- board/toradex/colibri_vf/colibri_vf.c | 2 +- board/toradex/common/tdx-common.c | 4 +- board/toradex/common/tdx-common.h | 2 +- board/toradex/verdin-imx8mm/verdin-imx8mm.c | 2 +- board/tqc/tqm834x/tqm834x.c | 2 +- board/tqc/tqma6/tqma6.c | 4 +- board/tqc/tqma6/tqma6_bb.h | 4 +- board/tqc/tqma6/tqma6_mba6.c | 2 +- board/tqc/tqma6/tqma6_wru4.c | 6 +- board/udoo/neo/neo.c | 4 +- board/udoo/udoo.c | 4 +- board/variscite/dart_6ul/dart_6ul.c | 2 +- board/variscite/dart_6ul/spl.c | 2 +- board/varisys/cyrus/cyrus.c | 2 +- board/varisys/cyrus/cyrus.h | 2 +- board/varisys/cyrus/eth.c | 2 +- board/varisys/cyrus/pci.c | 2 +- board/ve8313/ve8313.c | 2 +- board/vscom/baltos/board.c | 4 +- board/wandboard/spl.c | 2 +- board/warp/warp.c | 2 +- board/warp7/warp7.c | 2 +- board/xes/common/fsl_8xxx_pci.c | 2 +- board/xes/xpedite517x/xpedite517x.c | 4 +- board/xes/xpedite520x/xpedite520x.c | 4 +- board/xes/xpedite537x/xpedite537x.c | 4 +- board/xes/xpedite550x/xpedite550x.c | 4 +- cmd/bdinfo.c | 32 ++++---- common/board_f.c | 13 ++-- common/board_r.c | 4 +- common/bootm_os.c | 8 +- common/image.c | 8 +- common/spl/spl.c | 2 +- drivers/ddr/altera/sdram_agilex.c | 2 +- drivers/ddr/altera/sdram_s10.c | 2 +- drivers/ddr/altera/sdram_soc64.c | 4 +- drivers/ddr/altera/sdram_soc64.h | 4 +- drivers/mmc/davinci_mmc.c | 2 +- drivers/mmc/fsl_esdhc.c | 6 +- drivers/mmc/fsl_esdhc_imx.c | 6 +- drivers/mmc/mmc.c | 10 +-- drivers/mmc/mvebu_mmc.c | 2 +- drivers/mmc/mxcmmc.c | 4 +- drivers/mmc/mxsmmc.c | 3 +- drivers/net/armada100_fec.c | 2 +- drivers/net/at91_emac.c | 4 +- drivers/net/ax88180.c | 4 +- drivers/net/bcm-sf2-eth.c | 4 +- drivers/net/calxedaxgmac.c | 2 +- drivers/net/cs8900.c | 2 +- drivers/net/dc2114x.c | 10 +-- drivers/net/designware.c | 2 +- drivers/net/dm9000x.c | 4 +- drivers/net/dnet.c | 2 +- drivers/net/e1000.c | 4 +- drivers/net/eepro100.c | 10 +-- drivers/net/ep93xx_eth.c | 4 +- drivers/net/ethoc.c | 2 +- drivers/net/fec_mxc.c | 7 +- drivers/net/fec_mxc.h | 2 +- drivers/net/fm/eth.c | 2 +- drivers/net/fm/init.c | 2 +- drivers/net/fm/memac_phy.c | 2 +- drivers/net/fm/tgec_phy.c | 2 +- drivers/net/fsl-mc/mc.c | 4 +- drivers/net/fsl_mcdmafec.c | 2 +- drivers/net/fsl_mdio.c | 2 +- drivers/net/ftmac100.c | 4 +- drivers/net/ftmac110.c | 4 +- drivers/net/ks8851_mll.c | 2 +- drivers/net/lan91c96.c | 8 +- drivers/net/lpc32xx_eth.c | 2 +- drivers/net/macb.c | 2 +- drivers/net/mcffec.c | 2 +- drivers/net/mpc8xx_fec.c | 8 +- drivers/net/mvgbe.c | 2 +- drivers/net/natsemi.c | 6 +- drivers/net/ne2000_base.c | 2 +- drivers/net/ns8382x.c | 6 +- drivers/net/pcnet.c | 12 +-- drivers/net/rtl8139.c | 4 +- drivers/net/rtl8169.c | 4 +- drivers/net/sh_eth.c | 4 +- drivers/net/smc91111.c | 2 +- drivers/net/ti/cpsw.c | 2 +- drivers/net/tsec.c | 10 ++- drivers/net/uli526x.c | 6 +- drivers/net/vsc9953.c | 2 +- drivers/pci/pci-uclass.c | 2 +- drivers/pci/pcie_fsl_fixup.c | 4 +- drivers/pci/pcie_layerscape_fixup.c | 4 +- drivers/pci/pcie_layerscape_fixup_common.c | 2 +- drivers/pci/pcie_layerscape_fixup_common.h | 4 +- drivers/pci/pcie_layerscape_gen4_fixup.c | 4 +- drivers/qe/uec.c | 8 +- drivers/qe/uec.h | 6 +- drivers/usb/common/fsl-dt-fixup.c | 2 +- drivers/usb/eth/asix.c | 2 +- drivers/usb/eth/asix88179.c | 2 +- drivers/usb/eth/mcs7830.c | 2 +- drivers/usb/eth/r8152.c | 2 +- drivers/usb/eth/smsc95xx.c | 2 +- drivers/usb/gadget/ether.c | 4 +- drivers/video/cfb_console.c | 2 +- include/fdt_support.h | 18 ++--- include/fm_eth.h | 6 +- include/fsl-mc/fsl_mc.h | 4 +- include/fsl_esdhc.h | 10 +-- include/fsl_esdhc_imx.h | 10 +-- include/fsl_mdio.h | 2 +- include/image.h | 4 +- include/lmb.h | 3 +- include/mvebu_mmc.h | 2 +- include/net/pfe_eth/pfe_eth.h | 2 +- include/netdev.h | 74 ++++++++++--------- include/tsec.h | 5 +- include/vsc9953.h | 2 +- lib/fdtdec.c | 3 +- lib/lmb.c | 2 +- net/eth_legacy.c | 6 +- post/drivers/memory.c | 2 +- 528 files changed, 885 insertions(+), 866 deletions(-)
arch/arm/cpu/arm1136/mx35/generic.c +2 -2
@@ -439,7 +439,7 @@ int print_cpuinfo(void)* Initializes on-chip ethernet controllers. * to override, implement board_eth_init() */ -int cpu_eth_init (bd_t *bis) +int cpu_eth_init (struct bd_info *bis) {int rc = -ENODEV ;
@@ -455,7 +455,7 @@ int cpu_eth_init(bd_t *bis)* Initializes on-chip MMC controllers. * to override, implement board_mmc_init() */ -int cpu_mmc_init (bd_t *bis) +int cpu_mmc_init (struct bd_info *bis) {return fsl_esdhc_mmc_init (bis); }
arch/arm/cpu/arm926ejs/mx25/generic.c +2 -2
@@ -223,7 +223,7 @@ int print_cpuinfo(void)* Initializes on-chip ethernet controllers. * to override, implement board_eth_init() */ -int cpu_eth_init (bd_t *bis) +int cpu_eth_init (struct bd_info *bis) {struct ccm_regs *ccm = (struct ccm_regs *)IMX_CCM_BASE ;ulong val;
@@ -252,7 +252,7 @@ int get_clocks(void)* Initializes on-chip MMC controllers. * to override, implement board_mmc_init() */ -int cpu_mmc_init (bd_t *bis) +int cpu_mmc_init (struct bd_info *bis) {return fsl_esdhc_mmc_init (bis); }
arch/arm/cpu/arm926ejs/mx27/generic.c +2 -2
@@ -177,7 +177,7 @@ int print_cpuinfo (void) }#endif -int cpu_eth_init (bd_t *bis) +int cpu_eth_init (struct bd_info *bis) {#if defined(CONFIG_FEC_MXC )struct pll_regs *pll = (struct pll_regs *)IMX_PLL_BASE ;
@@ -195,7 +195,7 @@ int cpu_eth_init(bd_t *bis)* Initializes on-chip MMC controllers. * to override, implement board_mmc_init() */ -int cpu_mmc_init (bd_t *bis) +int cpu_mmc_init (struct bd_info *bis) {#ifdef CONFIG_MMC_MXC return mxc_mmc_init (bis);
arch/arm/cpu/arm926ejs/mxs/mxs.c +1 -1
@@ -203,7 +203,7 @@ int do_mx28_showclocks(struct cmd_tbl *cmdtp, int flag, int argc,* Initializes on-chip ethernet controllers. */ #if defined(CONFIG_MX28 ) && defined(CONFIG_CMD_NET ) -int cpu_eth_init (bd_t *bis) +int cpu_eth_init (struct bd_info *bis) {struct mxs_clkctrl_regs *clkctrl_regs = (struct mxs_clkctrl_regs *)MXS_CLKCTRL_BASE ;
arch/arm/cpu/arm926ejs/mxs/spl_boot.c +1 -1
@@ -22,7 +22,7 @@DECLARE_GLOBAL_DATA_PTR ; static gd_t gdata __section(".data");#ifdef CONFIG_SPL_SERIAL_SUPPORT -static bd_t bdata __section(".data"); +static struct bd_info bdata __section(".data");#endif /*
arch/arm/cpu/armv7/ls102xa/cpu.c +2 -2
@@ -293,13 +293,13 @@ int print_cpuinfo(void)#endif #ifdef CONFIG_FSL_ESDHC -int cpu_mmc_init (bd_t *bis) +int cpu_mmc_init (struct bd_info *bis) {return fsl_esdhc_mmc_init (bis); }#endif -int cpu_eth_init (bd_t *bis) +int cpu_eth_init (struct bd_info *bis) {#if defined(CONFIG_TSEC_ENET ) && !defined(CONFIG_DM_ETH )tsec_standard_init (bis);
arch/arm/cpu/armv7/ls102xa/fdt.c +1 -1
@@ -82,7 +82,7 @@ void ft_fixup_enet_phy_connect_type(void *fdt) } } -void ft_cpu_setup (void *blob,bd_t *bd) +void ft_cpu_setup (void *blob,struct bd_info *bd) {int off;int val;
arch/arm/cpu/armv7/vf610/generic.c +2 -2
@@ -341,7 +341,7 @@ int arch_misc_init(void) }#endif -int cpu_eth_init (bd_t *bis) +int cpu_eth_init (struct bd_info *bis) {int rc = -ENODEV ;
@@ -353,7 +353,7 @@ int cpu_eth_init(bd_t *bis) }#ifdef CONFIG_FSL_ESDHC_IMX -int cpu_mmc_init (bd_t *bis) +int cpu_mmc_init (struct bd_info *bis) {return fsl_esdhc_mmc_init (bis); }
arch/arm/cpu/armv8/fsl-layerscape/cpu.c +2 -2
@@ -1040,13 +1040,13 @@ int print_cpuinfo(void)#endif #ifdef CONFIG_FSL_ESDHC -int cpu_mmc_init (bd_t *bis) +int cpu_mmc_init (struct bd_info *bis) {return fsl_esdhc_mmc_init (bis); }#endif -int cpu_eth_init (bd_t *bis) +int cpu_eth_init (struct bd_info *bis) {int error =0 ;
arch/arm/cpu/armv8/fsl-layerscape/fdt.c +1 -1
@@ -438,7 +438,7 @@ __weak void fdt_fixup_ecam(void *blob) }#endif -void ft_cpu_setup (void *blob,bd_t *bd) +void ft_cpu_setup (void *blob,struct bd_info *bd) {struct ccsr_gur __iomem *gur = (void *)(CONFIG_SYS_FSL_GUTS_ADDR );unsigned int svr =gur_in32 (&gur->svr);
arch/arm/cpu/armv8/s32v234/generic.c +1 -1
@@ -333,7 +333,7 @@ int print_cpuinfo(void) }#endif -int cpu_eth_init (bd_t * bis) +int cpu_eth_init (struct bd_info * bis) {int rc = -ENODEV ;
arch/arm/include/asm/arch-mx27/mxcmmc.h +1 -1
@@ -6,6 +6,6 @@#ifndef ASM_ARCH_MXCMMC_H #define ASM_ARCH_MXCMMC_H -int mxc_mmc_init (bd_t *bis); +int mxc_mmc_init (struct bd_info *bis);#endif
arch/arm/include/asm/arch-mx31/sys_proto.h +1 -1
@@ -16,5 +16,5 @@ struct mxc_weimcs { };void mxc_setup_weimcs (int cs,const struct mxc_weimcs *weimcs); -int mxc_mmc_init (bd_t *bis); +int mxc_mmc_init (struct bd_info *bis);#endif
arch/arm/include/asm/arch-mx6/litesom.h +1 -1
@@ -6,7 +6,7 @@#ifndef __ARCH_ARM_MX6UL_LITESOM_H__#define __ARCH_ARM_MX6UL_LITESOM_H__ -int litesom_mmc_init (bd_t *bis); +int litesom_mmc_init (struct bd_info *bis);#ifdef CONFIG_SPL_BUILD void litesom_init_f (void );
arch/arm/include/asm/arch-mxs/sys_proto.h +2 -1
@@ -11,7 +11,8 @@#include <asm/mach-imx/sys_proto.h> -int mxsmmc_initialize (bd_t *bis,int id,int (*wp)(int ),int (*cd)(int )); +int mxsmmc_initialize (struct bd_info *bis,int id,int (*wp)(int ), +int (*cd)(int ));#ifdef CONFIG_SPL_BUILD
arch/arm/lib/bootm-fdt.c +1 -1
@@ -35,7 +35,7 @@ int arch_fixup_fdt(void *blob) {__maybe_unused int ret =0 ;#if defined(CONFIG_ARMV7_NONSEC ) || defined(CONFIG_OF_LIBFDT ) -bd_t *bd = gd->bd; +struct bd_info *bd = gd->bd;int bank;u64 start[CONFIG_NR_DRAM_BANKS ];u64 size[CONFIG_NR_DRAM_BANKS ];
arch/arm/lib/bootm.c +6 -5
@@ -124,7 +124,7 @@ static void announce_and_cleanup(int fake)cleanup_before_linux (); } -static void setup_start_tag (bd_t *bd) +static void setup_start_tag (struct bd_info *bd) { params = (struct tag *)bd->bi_boot_params;
@@ -138,7 +138,7 @@ static void setup_start_tag (bd_t *bd) params =tag_next (params); } -static void setup_memory_tags (bd_t *bd) +static void setup_memory_tags (struct bd_info *bd) {int i;
@@ -153,7 +153,7 @@ static void setup_memory_tags(bd_t *bd) } } -static void setup_commandline_tag (bd_t *bd,char *commandline) +static void setup_commandline_tag (struct bd_info *bd,char *commandline) {char *p;
@@ -178,7 +178,8 @@ static void setup_commandline_tag(bd_t *bd, char *commandline) params =tag_next (params); } -static void setup_initrd_tag (bd_t *bd,ulong initrd_start,ulong initrd_end) +static void setup_initrd_tag (struct bd_info *bd,ulong initrd_start, +ulong initrd_end) {/* an ATAG_INITRD node tells the kernel where the compressed * ramdisk can be found. ATAG_RDIMG is a better name, actually.
@@ -217,7 +218,7 @@ static void setup_revision_tag(struct tag **in_params) params =tag_next (params); } -static void setup_end_tag (bd_t *bd) +static void setup_end_tag (struct bd_info *bd) { params->hdr.tag =ATAG_NONE ; params->hdr.size =0 ;
arch/arm/lib/cache-cp15.c +1 -1
@@ -92,7 +92,7 @@ void mmu_set_region_dcache_behaviour(phys_addr_t start, size_t size,__weak void dram_bank_mmu_setup (int bank) { -bd_t *bd = gd->bd; +struct bd_info *bd = gd->bd;int i;/* bd->bi_dram is available only after relocation */
arch/arm/mach-davinci/include/mach/sdmmc_defs.h +1 -1
@@ -152,6 +152,6 @@ struct davinci_mmc { struct mmc_config cfg; }; -int davinci_mmc_init (bd_t *bis,struct davinci_mmc *host); +int davinci_mmc_init (struct bd_info *bis,struct davinci_mmc *host);#endif /* _SDMMC_DEFS_H */
arch/arm/mach-imx/cpu.c +2 -2
@@ -229,7 +229,7 @@ int print_cpuinfo(void) }#endif -int cpu_eth_init (bd_t *bis) +int cpu_eth_init (struct bd_info *bis) {int rc = -ENODEV ;
@@ -245,7 +245,7 @@ int cpu_eth_init(bd_t *bis)* Initializes on-chip MMC controllers. * to override, implement board_mmc_init() */ -int cpu_mmc_init (bd_t *bis) +int cpu_mmc_init (struct bd_info *bis) {return fsl_esdhc_mmc_init (bis); }
arch/arm/mach-imx/imx8/ahab.c +1 -1
@@ -26,7 +26,7 @@ DECLARE_GLOBAL_DATA_PTR;static inline bool check_in_dram (ulong addr) {int i; -bd_t *bd = gd->bd; +struct bd_info *bd = gd->bd;for (i =0 ; i <CONFIG_NR_DRAM_BANKS ; ++i) {if (bd->bi_dram[i].size) {
arch/arm/mach-imx/imx8/fdt.c +2 -2
@@ -228,7 +228,7 @@ static int config_smmu_fdt(void *blob)return 0 ; } -static int ft_add_optee_node (void *fdt,bd_t *bd) +static int ft_add_optee_node (void *fdt,struct bd_info *bd) {const char *path, *subpath;int offs;
@@ -278,7 +278,7 @@ static int ft_add_optee_node(void *fdt, bd_t *bd)return 0 ; } -int ft_system_setup (void *blob,bd_t *bd) +int ft_system_setup (void *blob,struct bd_info *bd) {int ret;int off;
arch/arm/mach-imx/imx8m/soc.c +1 -1
@@ -372,7 +372,7 @@ bool is_usb_boot(void) }#ifdef CONFIG_OF_SYSTEM_SETUP -int ft_system_setup (void *blob,bd_t *bd) +int ft_system_setup (void *blob,struct bd_info *bd) {int i =0 ;int rc;
arch/arm/mach-imx/mx6/litesom.c +1 -1
@@ -56,7 +56,7 @@ static struct fsl_esdhc_cfg emmc_cfg = {USDHC2_BASE_ADDR, 0, 8};#define EMMC_PWR_GPIO IMX_GPIO_NR(4, 10) -int litesom_mmc_init (bd_t *bis) +int litesom_mmc_init (struct bd_info *bis) {int ret;
arch/arm/mach-imx/mx6/module_fuse.c +1 -1
@@ -190,7 +190,7 @@ u32 check_module_fused(enum fuse_module_type module) }#ifdef CONFIG_OF_SYSTEM_SETUP -int ft_system_setup (void *blob,bd_t *bd) +int ft_system_setup (void *blob,struct bd_info *bd) {const char *status ="disabled" ;u32 i, reg;
arch/arm/mach-kirkwood/cpu.c +2 -2
@@ -272,7 +272,7 @@ int arch_misc_init(void)#endif /* CONFIG_ARCH_MISC_INIT */ #ifdef CONFIG_MVGBE -int cpu_eth_init (bd_t *bis) +int cpu_eth_init (struct bd_info *bis) {mvgbe_initialize (bis);return 0 ;
@@ -280,7 +280,7 @@ int cpu_eth_init(bd_t *bis)#endif #ifdef CONFIG_MVEBU_MMC -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {mvebu_mmc_init (bis);return 0 ;
arch/arm/mach-lpc32xx/cpu.c +1 -1
@@ -72,7 +72,7 @@ int print_cpuinfo(void)#endif #ifdef CONFIG_LPC32XX_ETH -int cpu_eth_init (bd_t *bis) +int cpu_eth_init (struct bd_info *bis) {lpc32xx_eth_initialize (bis);return 0 ;
arch/arm/mach-meson/board-common.c +2 -2
@@ -52,12 +52,12 @@ int dram_init(void)return 0 ; } -__weak int meson_ft_board_setup (void *blob,bd_t *bd) +__weak int meson_ft_board_setup (void *blob,struct bd_info *bd) {return 0 ; } -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {meson_init_reserved_memory (blob);
arch/arm/mach-mvebu/cpu.c +1 -1
@@ -525,7 +525,7 @@ int arch_misc_init(void)#endif /* CONFIG_ARCH_MISC_INIT */ #if defined(CONFIG_MMC_SDHCI_MV ) && !defined(CONFIG_DM_MMC ) -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {mv_sdh_init (MVEBU_SDIO_BASE ,0 ,0 ,SDHCI_QUIRK_32BIT_DMA_ADDR |SDHCI_QUIRK_WAIT_SEND_CMD );
arch/arm/mach-omap2/am33xx/board.c +1 -1
@@ -160,7 +160,7 @@ const struct gpio_bank *const omap_gpio_bank = gpio_bank_am33xx;#endif #if defined(CONFIG_MMC_OMAP_HS ) -int cpu_mmc_init (bd_t *bis) +int cpu_mmc_init (struct bd_info *bis) {int ret;
arch/arm/mach-omap2/am33xx/fdt.c +3 -3
@@ -14,7 +14,7 @@#ifdef CONFIG_TI_SECURE_DEVICE -static void ft_hs_fixups (void *fdt,bd_t *bd) +static void ft_hs_fixups (void *fdt,struct bd_info *bd) {/* Check we are running on an HS/EMU device type */ if (GP_DEVICE !=get_device_type ()) {
@@ -29,7 +29,7 @@ static void ft_hs_fixups(void *fdt, bd_t *bd) hang(); }#else -static void ft_hs_fixups (void *fdt,bd_t *bd) { } +static void ft_hs_fixups (void *fdt,struct bd_info *bd) { }#endif /* #ifdef CONFIG_TI_SECURE_DEVICE */ /*
@@ -37,7 +37,7 @@ static void ft_hs_fixups(void *fdt, bd_t *bd) { }* fixups should remain in the board files which is where * this function should be called from. */ -void ft_cpu_setup (void *fdt,bd_t *bd) +void ft_cpu_setup (void *fdt,struct bd_info *bd) {ft_hs_fixups (fdt, bd); }
arch/arm/mach-omap2/fdt-common.c +4 -4
@@ -21,7 +21,7 @@#define CONFIG_SECURE_RUNTIME_RESV_SRAM_SZ (0)#endif -int ft_hs_disable_rng (void *fdt,bd_t *bd) +int ft_hs_disable_rng (void *fdt,struct bd_info *bd) {const char *path;int offs;
@@ -69,7 +69,7 @@ static int fdt_pack_reg(const void *fdt, void *buf, u64 address, u64 size)return p - (char *)buf; } -int ft_hs_fixup_dram (void *fdt,bd_t *bd) +int ft_hs_fixup_dram (void *fdt,struct bd_info *bd) {const char *path, *subpath;int offs, len;
@@ -122,10 +122,10 @@ int ft_hs_fixup_dram(void *fdt, bd_t *bd) return 0; }#else -int ft_hs_fixup_dram (void *fdt,bd_t *bd) {return 0 ; } +int ft_hs_fixup_dram (void *fdt,struct bd_info *bd) {return 0 ; }#endif -int ft_hs_add_tee (void *fdt,bd_t *bd) +int ft_hs_add_tee (void *fdt,struct bd_info *bd) {const char *path, *subpath;int offs;
arch/arm/mach-omap2/omap-cache.c +1 -1
@@ -55,7 +55,7 @@ void enable_caches(void)void dram_bank_mmu_setup (int bank) { -bd_t *bd = gd->bd; +struct bd_info *bd = gd->bd;int i;u32 start = bd->bi_dram[bank].start >>MMU_SECTION_SHIFT ;
arch/arm/mach-omap2/omap3/emac.c +1 -1
@@ -15,7 +15,7 @@* Initializes on-chip ethernet controllers. * to override, implement board_eth_init() */ -int cpu_eth_init (bd_t *bis) +int cpu_eth_init (struct bd_info *bis) {u32 reset;
arch/arm/mach-omap2/omap5/fdt.c +8 -8
@@ -29,7 +29,7 @@ static u32 hs_irq_skip[] = { 118 /* One interrupt for Crypto DMA by secure world */ }; -static int ft_hs_fixup_crossbar (void *fdt,bd_t *bd) +static int ft_hs_fixup_crossbar (void *fdt,struct bd_info *bd) {const char *path;int offs;
@@ -93,7 +93,7 @@ static int ft_hs_fixup_crossbar(void *fdt, bd_t *bd)#if ((TI_OMAP5_SECURE_BOOT_RESV_SRAM_SZ !=0 ) || \ (CONFIG_SECURE_RUNTIME_RESV_SRAM_SZ !=0 )) -static int ft_hs_fixup_sram (void *fdt,bd_t *bd) +static int ft_hs_fixup_sram (void *fdt,struct bd_info *bd) {const char *path;int offs;
@@ -128,10 +128,10 @@ static int ft_hs_fixup_sram(void *fdt, bd_t *bd) return 0; }#else -static int ft_hs_fixup_sram (void *fdt,bd_t *bd) {return 0 ; } +static int ft_hs_fixup_sram (void *fdt,struct bd_info *bd) {return 0 ; }#endif -static void ft_hs_fixups (void *fdt,bd_t *bd) +static void ft_hs_fixups (void *fdt,struct bd_info *bd) {/* Check we are running on an HS/EMU device type */ if (GP_DEVICE !=get_device_type ()) {
@@ -148,7 +148,7 @@ static void ft_hs_fixups(void *fdt, bd_t *bd) hang(); }#else -static void ft_hs_fixups (void *fdt,bd_t *bd) +static void ft_hs_fixups (void *fdt,struct bd_info *bd) { }#endif /* #ifdef CONFIG_TI_SECURE_DEVICE */
@@ -255,7 +255,7 @@ static int ft_fixup_clocks(void *fdt, const char **names, u32 *rates, int num)return 0 ; } -static void ft_opp_clock_fixups (void *fdt,bd_t *bd) +static void ft_opp_clock_fixups (void *fdt,struct bd_info *bd) {const char **clk_names;u32 *clk_rates;
@@ -299,7 +299,7 @@ static void ft_opp_clock_fixups(void *fdt, bd_t *bd) } }#else -static void ft_opp_clock_fixups (void *fdt,bd_t *bd) { } +static void ft_opp_clock_fixups (void *fdt,struct bd_info *bd) { }#endif /* CONFIG_TARGET_DRA7XX_EVM || CONFIG_TARGET_AM57XX_EVM */ /*
@@ -307,7 +307,7 @@ static void ft_opp_clock_fixups(void *fdt, bd_t *bd) { }* fixups should remain in the board files which is where * this function should be called from. */ -void ft_cpu_setup (void *fdt,bd_t *bd) +void ft_cpu_setup (void *fdt,struct bd_info *bd) {ft_hs_fixups (fdt, bd);ft_opp_clock_fixups (fdt, bd);
arch/arm/mach-orion5x/cpu.c +1 -1
@@ -290,7 +290,7 @@ int arch_misc_init(void)#endif /* CONFIG_ARCH_MISC_INIT */ #ifdef CONFIG_MVGBE -int cpu_eth_init (bd_t *bis) +int cpu_eth_init (struct bd_info *bis) {mvgbe_initialize (bis);return 0 ;
arch/arm/mach-rmobile/emac.c +1 -1
@@ -11,7 +11,7 @@#include <linux/errno.h> #include <netdev.h> -int cpu_eth_init (bd_t *bis) +int cpu_eth_init (struct bd_info *bis) {int ret = -ENODEV ;#ifdef CONFIG_SH_ETHER
arch/arm/mach-stm32mp/fdt.c +1 -1
@@ -248,7 +248,7 @@ static void stm32_fdt_disable_optee(void *blob)* This function is called right before the kernel is booted. "blob" is the * device tree that will be passed to the kernel. */ -int ft_system_setup (void *blob,bd_t *bd) +int ft_system_setup (void *blob,struct bd_info *bd) {int ret =0 ;int soc;
arch/arm/mach-tegra/dt-setup.c +1 -1
@@ -10,7 +10,7 @@* This function is called right before the kernel is booted. "blob" is the * device tree that will be passed to the kernel. */ -int ft_system_setup (void *blob,bd_t *bd) +int ft_system_setup (void *blob,struct bd_info *bd) { const char *gpu_compats[] = {#if defined(CONFIG_TEGRA124 )
arch/arm/mach-uniphier/fdt-fixup.c +2 -2
@@ -18,7 +18,7 @@* The DRAM PHY requires 64 byte scratch area in each DRAM channel * for its dynamic PHY training feature. */ -static int uniphier_ld20_fdt_mem_rsv (void *fdt,bd_t *bd) +static int uniphier_ld20_fdt_mem_rsv (void *fdt,struct bd_info *bd) {unsigned long rsv_addr;const unsigned long rsv_size =64 ;
@@ -46,7 +46,7 @@ static int uniphier_ld20_fdt_mem_rsv(void *fdt, bd_t *bd)return 0 ; } -int ft_board_setup (void *fdt,bd_t *bd) +int ft_board_setup (void *fdt,struct bd_info *bd) {static const struct node_info nodes[] = { {"socionext,uniphier-denali-nand-v5a" ,MTD_DEV_TYPE_NAND },
arch/m68k/cpu/mcf523x/cpu.c +1 -1
@@ -108,7 +108,7 @@ int watchdog_init(void)* int board_eth_init(bd_t *bis) */ -int cpu_eth_init (bd_t *bis) +int cpu_eth_init (struct bd_info *bis) {return mcffec_initialize (bis); }
arch/m68k/cpu/mcf52x2/cpu.c +1 -1
@@ -423,7 +423,7 @@ int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])* int board_eth_init(bd_t *bis) */ -int cpu_eth_init (bd_t *bis) +int cpu_eth_init (struct bd_info *bis) {return mcffec_initialize (bis); }
arch/m68k/cpu/mcf532x/cpu.c +1 -1
@@ -149,7 +149,7 @@ int watchdog_init(void)* create a board-specific function called: * int board_eth_init(bd_t *bis) */ -int cpu_eth_init (bd_t *bis) +int cpu_eth_init (struct bd_info *bis) {return mcffec_initialize (bis); }
arch/m68k/cpu/mcf5445x/cpu.c +1 -1
@@ -112,7 +112,7 @@ int print_cpuinfo(void)* int board_eth_init(bd_t *bis) */ -int cpu_eth_init (bd_t *bis) +int cpu_eth_init (struct bd_info *bis) {return mcffec_initialize (bis); }
arch/m68k/cpu/mcf547x_8x/cpu.c +1 -1
@@ -139,7 +139,7 @@ int watchdog_init(void)* int board_eth_init(bd_t *bis) */ -int cpu_eth_init (bd_t *bis) +int cpu_eth_init (struct bd_info *bis) {#if defined(CONFIG_FSLDMAFEC )mcdmafec_initialize (bis);
arch/m68k/lib/bootm.c +5 -5
@@ -27,7 +27,7 @@ DECLARE_GLOBAL_DATA_PTR;#define LINUX_MAX_ARGS 256static ulong get_sp (void ); -static void set_clocks_in_mhz (bd_t *kbd); +static void set_clocks_in_mhz (struct bd_info *kbd);void arch_lmb_reserve (struct lmb *lmb) {
@@ -54,8 +54,8 @@ int do_bootm_linux(int flag, int argc, char *const argv[], bootm_headers_t *images) {int ret; -bd_t *kbd; -void (*kernel) (bd_t *,ulong ,ulong ,ulong ,ulong ); +struct bd_info *kbd; +void (*kernel) (struct bd_info *,ulong ,ulong ,ulong ,ulong );struct lmb *lmb = &images->lmb;/*
@@ -79,7 +79,7 @@ int do_bootm_linux(int flag, int argc, char *const argv[],if (ret) goto error; - kernel = (void (*)(bd_t *,ulong ,ulong ,ulong ,ulong ))images->ep; + kernel = (void (*)(struct bd_info *,ulong ,ulong ,ulong ,ulong ))images->ep;debug ("## Transferring control to Linux (at address %08lx) ...\n" , (ulong ) kernel);
@@ -112,7 +112,7 @@ static ulong get_sp (void)return sp; } -static void set_clocks_in_mhz (bd_t *kbd) +static void set_clocks_in_mhz (struct bd_info *kbd) {char *s;
arch/nds32/lib/bootm.c +13 -11
@@ -23,24 +23,25 @@ DECLARE_GLOBAL_DATA_PTR;defined (CONFIG_INITRD_TAG ) || \defined (CONFIG_SERIAL_TAG ) || \ defined(CONFIG_REVISION_TAG) -static void setup_start_tag (bd_t *bd); +static void setup_start_tag (struct bd_info *bd);# ifdef CONFIG_SETUP_MEMORY_TAGS -static void setup_memory_tags (bd_t *bd); +static void setup_memory_tags (struct bd_info *bd);# endif -static void setup_commandline_tag (bd_t *bd,char *commandline); +static void setup_commandline_tag (struct bd_info *bd,char *commandline);# ifdef CONFIG_INITRD_TAG -static void setup_initrd_tag (bd_t *bd,ulong initrd_start,ulong initrd_end); +static void setup_initrd_tag (struct bd_info *bd,ulong initrd_start, +ulong initrd_end);# endif -static void setup_end_tag (bd_t *bd); +static void setup_end_tag (struct bd_info *bd);static struct tag *params;#endif /* CONFIG_SETUP_MEMORY_TAGS || CONFIG_CMDLINE_TAG || CONFIG_INITRD_TAG */ int do_bootm_linux (int flag,int argc,char *argv[],bootm_headers_t *images) { -bd_t *bd = gd->bd; +struct bd_info *bd = gd->bd;char *s;int machid = bd->bi_arch_number;void (*theKernel)(int zero,int arch,uint params);
@@ -130,7 +131,7 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)defined (CONFIG_INITRD_TAG ) || \defined (CONFIG_SERIAL_TAG ) || \ defined(CONFIG_REVISION_TAG) -static void setup_start_tag (bd_t *bd) +static void setup_start_tag (struct bd_info *bd) { params = (struct tag *)bd->bi_boot_params;
@@ -145,7 +146,7 @@ static void setup_start_tag(bd_t *bd) }#ifdef CONFIG_SETUP_MEMORY_TAGS -static void setup_memory_tags (bd_t *bd) +static void setup_memory_tags (struct bd_info *bd) {int i;
@@ -161,7 +162,7 @@ static void setup_memory_tags(bd_t *bd) }#endif /* CONFIG_SETUP_MEMORY_TAGS */ -static void setup_commandline_tag (bd_t *bd,char *commandline) +static void setup_commandline_tag (struct bd_info *bd,char *commandline) {char *p;
@@ -189,7 +190,8 @@ static void setup_commandline_tag(bd_t *bd, char *commandline) }#ifdef CONFIG_INITRD_TAG -static void setup_initrd_tag (bd_t *bd,ulong initrd_start,ulong initrd_end) +static void setup_initrd_tag (struct bd_info *bd,ulong initrd_start, +ulong initrd_end) {/* an ATAG_INITRD node tells the kernel where the compressed * ramdisk can be found. ATAG_RDIMG is a better name, actually.
@@ -235,7 +237,7 @@ void setup_revision_tag(struct tag **in_params) }#endif /* CONFIG_REVISION_TAG */ -static void setup_end_tag (bd_t *bd) +static void setup_end_tag (struct bd_info *bd) { params->hdr.tag =ATAG_NONE ; params->hdr.size =0 ;
arch/powerpc/cpu/mpc83xx/cpu.c +2 -2
@@ -184,7 +184,7 @@ void watchdog_reset (void)* Initializes on-chip ethernet controllers. * to override, implement board_eth_init() */ -int cpu_eth_init (bd_t *bis) +int cpu_eth_init (struct bd_info *bis) {#if defined(CONFIG_UEC_ETH )uec_standard_init (bis);
@@ -201,7 +201,7 @@ int cpu_eth_init(bd_t *bis)* Initializes on-chip MMC controllers. * to override, implement board_mmc_init() */ -int cpu_mmc_init (bd_t *bis) +int cpu_mmc_init (struct bd_info *bis) {#ifdef CONFIG_FSL_ESDHC return fsl_esdhc_mmc_init (bis);
arch/powerpc/cpu/mpc83xx/fdt.c +1 -1
@@ -31,7 +31,7 @@ void fdt_fixup_muram (void *blob) }#endif -void ft_cpu_setup (void *blob,bd_t *bd) +void ft_cpu_setup (void *blob,struct bd_info *bd) {immap_t *immr = (immap_t *)CONFIG_SYS_IMMR ;int spridr = immr->sysconf.spridr;
arch/powerpc/cpu/mpc83xx/interrupts.c +1 -1
@@ -72,7 +72,7 @@ void timer_interrupt_cpu (struct pt_regs *regs)* irqinfo - print information about PCI devices */ -void do_irqinfo (struct cmd_tbl *cmdtp,bd_t *bd,int flag,int argc, +void do_irqinfo (struct cmd_tbl *cmdtp,struct bd_info *bd,int flag,int argc,char *const argv[]) { }
arch/powerpc/cpu/mpc83xx/pci.c +1 -1
@@ -185,7 +185,7 @@ void mpc83xx_pcislave_unlock(int bus)#endif #if defined(CONFIG_OF_LIBFDT ) -void ft_pci_setup (void *blob,bd_t *bd) +void ft_pci_setup (void *blob,struct bd_info *bd) {int nodeoffset;int tmp[2 ];
arch/powerpc/cpu/mpc85xx/cpu.c +1 -1
@@ -377,7 +377,7 @@ watchdog_reset(void)* Initializes on-chip MMC controllers. * to override, implement board_mmc_init() */ -int cpu_mmc_init (bd_t *bis) +int cpu_mmc_init (struct bd_info *bis) {#ifdef CONFIG_FSL_ESDHC return fsl_esdhc_mmc_init (bis);
arch/powerpc/cpu/mpc85xx/ether_fcc.c +2 -2
@@ -206,7 +206,7 @@ static int fec_recv(struct eth_device* dev) } -static int fec_init (struct eth_device * dev,bd_t *bis) +static int fec_init (struct eth_device * dev,struct bd_info *bis) {struct ether_fcc_info_s * info = dev->priv;int i;
@@ -418,7 +418,7 @@ static void fec_halt(struct eth_device* dev) } } -int fec_initialize (bd_t *bis) +int fec_initialize (struct bd_info *bis) {struct eth_device * dev;int i;
arch/powerpc/cpu/mpc85xx/fdt.c +1 -1
@@ -597,7 +597,7 @@ static void fdt_fixup_l2_switch(void *blob)#define fdt_fixup_l2_switch (x)#endif -void ft_cpu_setup (void *blob,bd_t *bd) +void ft_cpu_setup (void *blob,struct bd_info *bd) {int off;int val;
arch/powerpc/cpu/mpc86xx/fdt.c +1 -1
@@ -11,7 +11,7 @@extern void ft_fixup_num_cores (void *blob);extern void ft_srio_setup (void *blob); -void ft_cpu_setup (void *blob,bd_t *bd) +void ft_cpu_setup (void *blob,struct bd_info *bd) {#ifdef CONFIG_MP int off;
arch/powerpc/cpu/mpc8xx/cpu.c +1 -1
@@ -277,7 +277,7 @@ unsigned long get_tbclk(void)* Initializes on-chip ethernet controllers. * to override, implement board_eth_init() */ -int cpu_eth_init (bd_t *bis) +int cpu_eth_init (struct bd_info *bis) {#if defined(CONFIG_MPC8XX_FEC )fec_initialize (bis);
arch/powerpc/cpu/mpc8xx/fdt.c +1 -1
@@ -12,7 +12,7 @@DECLARE_GLOBAL_DATA_PTR ; -void ft_cpu_setup (void *blob,bd_t *bd) +void ft_cpu_setup (void *blob,struct bd_info *bd) {do_fixup_by_prop_u32 (blob,"device_type" ,"cpu" ,4 ,"timebase-frequency" ,get_tbclk (),1 );
arch/powerpc/cpu/mpc8xxx/cpu.c +1 -1
@@ -347,7 +347,7 @@ int fixup_cpu(void)* Initializes on-chip ethernet controllers. * to override, implement board_eth_init() */ -int cpu_eth_init (bd_t *bis) +int cpu_eth_init (struct bd_info *bis) {#if defined(CONFIG_ETHER_ON_FCC )fec_initialize (bis);
arch/powerpc/lib/bootm.c +8 -8
@@ -38,7 +38,7 @@ DECLARE_GLOBAL_DATA_PTR;static ulong get_sp (void );extern void ft_fixup_num_cores (void *blob); -static void set_clocks_in_mhz (bd_t *kbd); +static void set_clocks_in_mhz (struct bd_info *kbd);#ifndef CONFIG_SYS_LINUX_LOWMEM_MAX_SIZE #define CONFIG_SYS_LINUX_LOWMEM_MAX_SIZE (768*1024*1024)
@@ -46,13 +46,13 @@ static void set_clocks_in_mhz (bd_t *kbd);static void boot_jump_linux (bootm_headers_t *images) { -void (*kernel)(bd_t *,ulong r4,ulong r5,ulong r6, -ulong r7,ulong r8,ulong r9); +void (*kernel)(struct bd_info *,ulong r4,ulong r5,ulong r6, +ulong r7,ulong r8,ulong r9);#ifdef CONFIG_OF_LIBFDT char *of_flat_tree = images->ft_addr;#endif - kernel = (void (*)(bd_t *,ulong ,ulong ,ulong , + kernel = (void (*)(struct bd_info *,ulong ,ulong ,ulong ,ulong ,ulong ,ulong ))images->ep;debug ("## Transferring control to Linux (at address %08lx) ...\n" , (ulong )kernel);
@@ -84,7 +84,7 @@ static void boot_jump_linux(bootm_headers_t *images)*/ debug (" Booting using OF flat tree...\n" );WATCHDOG_RESET (); - (*kernel) ((bd_t *)of_flat_tree,0 ,0 ,EPAPR_MAGIC , + (*kernel) ((struct bd_info *)of_flat_tree,0 ,0 ,EPAPR_MAGIC ,env_get_bootm_mapsize (),0 ,0 );/* does not return */ }else
@@ -104,7 +104,7 @@ static void boot_jump_linux(bootm_headers_t *images)ulong cmd_end = images->cmdline_end;ulong initrd_start = images->initrd_start;ulong initrd_end = images->initrd_end; -bd_t *kbd = images->kbd; +struct bd_info *kbd = images->kbd;debug (" Booting using board info...\n" );WATCHDOG_RESET ();
@@ -200,7 +200,7 @@ static int boot_bd_t_linux(bootm_headers_t *images) {ulong of_size = images->ft_len;struct lmb *lmb = &images->lmb; -bd_t **kbd = &images->kbd; +struct bd_info **kbd = &images->kbd;int ret =0 ;
@@ -270,7 +270,7 @@ static ulong get_sp (void)return sp; } -static void set_clocks_in_mhz (bd_t *kbd) +static void set_clocks_in_mhz (struct bd_info *kbd) {char *s;
arch/sh/cpu/sh4/cpu.c +1 -1
@@ -36,7 +36,7 @@ int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])return 0 ; } -int cpu_eth_init (bd_t *bis) +int cpu_eth_init (struct bd_info *bis) {#ifdef CONFIG_SH_ETHER sh_eth_initialize (bis);
arch/x86/lib/bootm.c +1 -1
@@ -53,7 +53,7 @@ void bootm_announce_and_cleanup(void)#if defined(CONFIG_OF_LIBFDT ) && !defined(CONFIG_OF_NO_KERNEL )int arch_fixup_memory_node (void *blob) { -bd_t *bd = gd->bd; +struct bd_info *bd = gd->bd;int bank;u64 start[CONFIG_NR_DRAM_BANKS ];u64 size[CONFIG_NR_DRAM_BANKS ];
board/AndesTech/adp-ae3xx/adp-ae3xx.c +1 -1
@@ -59,7 +59,7 @@ int dram_init_banksize(void) }#if defined(CONFIG_FTMAC100 ) && !defined(CONFIG_DM_ETH ) -int board_eth_init (bd_t *bd) +int board_eth_init (struct bd_info *bd) {return ftmac100_initialize (bd); }
board/AndesTech/adp-ag101p/adp-ag101p.c +1 -1
@@ -66,7 +66,7 @@ int dram_init_banksize(void) }#if defined(CONFIG_FTMAC100 ) && !defined(CONFIG_DM_ETH ) -int board_eth_init (bd_t *bd) +int board_eth_init (struct bd_info *bd) {return ftmac100_initialize (bd); }
board/AndesTech/ax25-ae350/ax25-ae350.c +1 -1
@@ -43,7 +43,7 @@ int dram_init_banksize(void) }#if defined(CONFIG_FTMAC100 ) && !defined(CONFIG_DM_ETH ) -int board_eth_init (bd_t *bd) +int board_eth_init (struct bd_info *bd) {return ftmac100_initialize (bd); }
board/Arcturus/ucp1020/spl.c +3 -3
@@ -77,11 +77,11 @@ void board_init_r(gd_t *gd, ulong dest_addr) {/* Pointer is writable since we allocated a register for it */ gd = (gd_t *)CONFIG_SPL_GD_ADDR ; -bd_t *bd; +struct bd_info *bd;memset (gd,0 ,sizeof (gd_t)); - bd = (bd_t *)(CONFIG_SPL_GD_ADDR +sizeof (gd_t)); -memset (bd,0 ,sizeof (bd_t)); + bd = (struct bd_info *)(CONFIG_SPL_GD_ADDR +sizeof (gd_t)); +memset (bd,0 ,sizeof (struct bd_info )); gd->bd = bd; bd->bi_memstart =CONFIG_SYS_INIT_L2_ADDR ; bd->bi_memsize =CONFIG_SYS_L2_SIZE ;
board/Arcturus/ucp1020/ucp1020.c +2 -2
@@ -262,7 +262,7 @@ int last_stage_init(void)return 0 ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {struct fsl_pq_mdio_info mdio_info;struct tsec_info_struct tsec_info[4 ];
@@ -307,7 +307,7 @@ int board_eth_init(bd_t *bis) }#ifdef CONFIG_OF_BOARD_SETUP -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {phys_addr_t base;phys_size_t size;
board/BuR/common/bur_common.h +1 -1
@@ -22,7 +22,7 @@ void pmicsetup(u32 mpupll, unsigned int bus);void enable_uart0_pin_mux (void );void enable_i2c_pin_mux (void );void enable_board_pin_mux (void ); -int board_eth_init (bd_t *bis); +int board_eth_init (struct bd_info *bis);int brdefaultip_setup (int bus,int chip);
board/BuR/common/common.c +1 -1
@@ -246,7 +246,7 @@ void lcd_enable(void) }#endif /* CONFIG_LCD */ -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {int nodeoffset;
board/CZ.NIC/turris_mox/turris_mox.c +1 -1
@@ -700,7 +700,7 @@ static int remove_disabled_nodes(void *blob)return 0 ; } -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {int node, phandle, res;
board/CarMediaLab/flea3/flea3.c +1 -1
@@ -206,7 +206,7 @@ u32 get_board_rev(void)* called prior to booting kernel or by 'fdt boardsetup' command * */ -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {static const struct node_info nodes[] = { {"physmap-flash.0" ,MTD_DEV_TYPE_NOR , },/* NOR flash */
board/Marvell/db-88f6720/db-88f6720.c +1 -1
@@ -86,7 +86,7 @@ int checkboard(void)return 0 ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {cpu_eth_init (bis);/* Built in controller(s) come first */ return pci_eth_init (bis);
board/Marvell/db-88f6820-amc/db-88f6820-amc.c +1 -1
@@ -124,7 +124,7 @@ int checkboard(void)return 0 ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {cpu_eth_init (bis);/* Built in controller(s) come first */ return pci_eth_init (bis);
board/Marvell/db-88f6820-gp/db-88f6820-gp.c +1 -1
@@ -151,7 +151,7 @@ int checkboard(void)return 0 ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {cpu_eth_init (bis);/* Built in controller(s) come first */ return pci_eth_init (bis);
board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c +1 -1
@@ -83,7 +83,7 @@ int checkboard(void)return 0 ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {cpu_eth_init (bis);/* Built in controller(s) come first */ return pci_eth_init (bis);
board/Marvell/gplugd/gplugd.c +1 -1
@@ -94,7 +94,7 @@ int board_init(void) }#ifdef CONFIG_ARMADA100_FEC -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {struct armd1apmu_registers *apmu_regs = (struct armd1apmu_registers *)ARMD1_APMU_BASE ;
board/abilis/tb100/tb100.c +1 -1
@@ -15,7 +15,7 @@ void reset_cpu(ulong addr)writel (0x1 , (void *)CRM_SWRESET ); } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {if (designware_initialize (ETH0_BASE_ADDRESS ,0 ) >=0 )return 1 ;
board/advantech/dms-ba16/dms-ba16.c +2 -2
@@ -254,7 +254,7 @@ int board_mmc_getcd(struct mmc *mmc)return ret; } -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {int ret;int i;
@@ -452,7 +452,7 @@ int overwrite_console(void)return 1 ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {setup_iomux_enet ();setup_pcie ();
board/advantech/imx8qm_rom7720_a1/spl.c +1 -1
@@ -96,7 +96,7 @@ static iomux_cfg_t usdhc2_sd[] = { SC_P_USDHC2_CD_B | MUX_MODE_ALT(3) | MUX_PAD_CTRL(ESDHC_PAD_CTRL), }; -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {int i, ret;
board/amazon/kc1/kc1.c +1 -1
@@ -168,7 +168,7 @@ int fastboot_set_reboot_flag(void)return omap_reboot_mode_store ("b" ); } -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {return omap_mmc_init (1 ,0 ,0 ,-1 ,-1 ); }
board/armltd/integrator/integrator.c +1 -1
@@ -174,7 +174,7 @@ extern void dram_query(void); }#ifdef CONFIG_CMD_NET -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {int rc =0 ;#ifdef CONFIG_SMC91111
board/armltd/vexpress/vexpress_common.c +2 -2
@@ -64,7 +64,7 @@ int board_init(void)return 0 ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {int rc =0 ;#ifdef CONFIG_SMC911X
@@ -73,7 +73,7 @@ int board_eth_init(bd_t *bis)return rc; } -int cpu_mmc_init (bd_t *bis) +int cpu_mmc_init (struct bd_info *bis) {int rc =0 ; (void ) bis;
board/armltd/vexpress/vexpress_tc2.c +1 -1
@@ -36,7 +36,7 @@ bool armv7_boot_nonsec_default(void) }#ifdef CONFIG_OF_BOARD_SETUP -int ft_board_setup (void *fdt,bd_t *bd) +int ft_board_setup (void *fdt,struct bd_info *bd) {int offset, tmp, len;const struct fdt_property *prop;
board/armltd/vexpress64/vexpress64.c +1 -1
@@ -149,7 +149,7 @@ void reset_cpu(ulong addr)/* * Board specific ethernet initialization routine. */ -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {int rc =0 ;#ifdef CONFIG_SMC91111
board/atmel/at91rm9200ek/at91rm9200ek.c +1 -1
@@ -55,7 +55,7 @@ int dram_init (void) }#ifdef CONFIG_DRIVER_AT91EMAC -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {return at91emac_register (bis, (u32 )ATMEL_BASE_EMAC ); }
board/atmel/at91sam9261ek/at91sam9261ek.c +1 -1
@@ -265,7 +265,7 @@ int board_init(void) }#ifdef CONFIG_DRIVER_DM9000 -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {return dm9000_initialize (bis); }
board/atmel/at91sam9n12ek/at91sam9n12ek.c +1 -1
@@ -207,7 +207,7 @@ int board_init(void) }#ifdef CONFIG_KS8851_MLL -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {return ks8851_mll_initialize (0 ,CONFIG_KS8851_MLL_BASEADDR ); }
board/bachmann/ot1200/ot1200.c +2 -2
@@ -228,7 +228,7 @@ struct fsl_esdhc_cfg usdhc_cfg[2] = { {USDHC4_BASE_ADDR}, }; -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {int ret;u32 index =0 ;
@@ -281,7 +281,7 @@ static void backlight_lcd_off(void)gpio_direction_output (gpio,0 ); } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {uint32_t base =IMX_FEC_BASE ;struct mii_dev *bus =NULL ;
board/barco/platinum/platinum.c +2 -2
@@ -115,7 +115,7 @@ int board_mmc_getcd(struct mmc *mmc)return 0 ; } -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {imx_iomux_v3_setup_multiple_pads (usdhc3_pads,ARRAY_SIZE (usdhc3_pads)); usdhc_cfg[0 ].sdhc_clk =mxc_get_clock (MXC_ESDHC3_CLK );
@@ -163,7 +163,7 @@ int board_phy_config(struct phy_device *phydev)return platinum_phy_config (phydev); } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {return cpu_eth_init (bis); }
board/barco/titanium/titanium.c +2 -2
@@ -235,7 +235,7 @@ int board_mmc_getcd(struct mmc *mmc)return 0 ; } -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {/* * Only one USDHC controller on titianium
@@ -264,7 +264,7 @@ int board_phy_config(struct phy_device *phydev)return 0 ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {setup_iomux_enet ();
board/birdland/bav335x/board.c +1 -1
@@ -367,7 +367,7 @@ static struct cpsw_platform_data cpsw_data = { ((defined (CONFIG_DRIVER_TI_CPSW ) || \defined (CONFIG_USB_ETHER ) &&defined (CONFIG_USB_MUSB_GADGET )) && \ !defined(CONFIG_SPL_BUILD)) -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {int ecode, rv, n;uint8_t mac_addr[6 ];
board/bluegiga/apx4devkit/apx4devkit.c +2 -2
@@ -59,7 +59,7 @@ int board_init(void) }#ifdef CONFIG_CMD_MMC -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {return mxsmmc_initialize (bis,0 ,NULL ,NULL ); }
@@ -77,7 +77,7 @@ int fecmxc_mii_postcall(int phy)return 0 ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {int ret;struct eth_device *dev;
board/bluewater/gurnard/gurnard.c +2 -2
@@ -236,7 +236,7 @@ void gurnard_usb_init(void)#endif #ifdef CONFIG_GENERIC_ATMEL_MCI -int cpu_mmc_init (bd_t *bis) +int cpu_mmc_init (struct bd_info *bis) {return atmel_mci_init ((void *)ATMEL_BASE_MCI0 ); }
@@ -399,7 +399,7 @@ int board_late_init(void) }#ifndef CONFIG_DM_ETH -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {return macb_eth_initialize (0 , (void *)ATMEL_BASE_EMAC ,0 ); }
board/bluewater/snapper9260/snapper9260.c +1 -1
@@ -127,7 +127,7 @@ int board_init(void)return 0 ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {return macb_eth_initialize (0 , (void *)ATMEL_BASE_EMAC0 ,0x1f ); }
board/bosch/shc/board.c +1 -1
@@ -472,7 +472,7 @@ int board_late_init(void)#if defined(CONFIG_USB_ETHER ) && \ (!defined(CONFIG_SPL_BUILD ) || defined(CONFIG_SPL_USB_ETHER )) -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {return usb_eth_initialize (bis); }
board/boundary/nitrogen6x/nitrogen6x.c +1 -1
@@ -321,7 +321,7 @@ int board_phy_config(struct phy_device *phydev)return 0 ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {uint32_t base =IMX_FEC_BASE ;struct mii_dev *bus =NULL ;
board/broadcom/bcm23550_w1d/bcm23550_w1d.c +1 -1
@@ -76,7 +76,7 @@ int dram_init_banksize(void)/* * mmc_init - Initializes mmc */ -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {int ret =0 ;
board/broadcom/bcm28155_ap/bcm28155_ap.c +1 -1
@@ -83,7 +83,7 @@ int dram_init_banksize(void)/* * mmc_init - Initializes mmc */ -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {int ret =0 ;
board/broadcom/bcm_ep/board.c +1 -1
@@ -75,7 +75,7 @@ void smp_waitloop(unsigned previous_address)#endif #ifdef CONFIG_BCM_SF2_ETH -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {int rc =-1 ;printf ("Registering BCM sf2 eth\n" );
board/calao/usb_a9263/usb_a9263.c +1 -1
@@ -115,7 +115,7 @@ int dram_init(void)return 0 ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {int rc =0 ;
board/cavium/thunderx/thunderx.c +1 -1
@@ -116,7 +116,7 @@ void reset_cpu(ulong addr)/* * Board specific ethernet initialization routine. */ -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {int rc =0 ;
board/ccv/xpress/xpress.c +2 -2
@@ -178,7 +178,7 @@ int board_mmc_getcd(struct mmc *mmc)return 1 ; } -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {imx_iomux_v3_setup_multiple_pads (usdhc2_pads,ARRAY_SIZE (usdhc2_pads));
@@ -249,7 +249,7 @@ static iomux_v3_cfg_t const fec1_pads[] = {#define ENET_PHY_RESET_GPIO IMX_GPIO_NR(4, 17) -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {int ret;
board/cirrus/edb93xx/edb93xx.c +1 -1
@@ -121,7 +121,7 @@ int board_early_init_f(void)return 0 ; } -int board_eth_init (bd_t *bd) +int board_eth_init (struct bd_info *bd) {return ep93xx_eth_initialize (0 ,MAC_BASE ); }
board/compulab/cl-som-imx7/cl-som-imx7.c +2 -2
@@ -80,7 +80,7 @@ static struct fsl_esdhc_cfg cl_som_imx7_usdhc_cfg[3] = { {USDHC3_BASE_ADDR}, }; -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {int i, ret;/*
@@ -199,7 +199,7 @@ static int cl_som_imx7_handle_mac_address(char *env_var, uint eeprom_bus)#define CL_SOM_IMX7_FEC_DEV_ID_PRI 0 -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {/* set Ethernet MAC address environment */ cl_som_imx7_handle_mac_address ("ethaddr" ,CONFIG_SYS_I2C_EEPROM_BUS );
board/compulab/cl-som-imx7/spl.c +1 -1
@@ -23,7 +23,7 @@static struct fsl_esdhc_cfg cl_som_imx7_spl_usdhc_cfg = {USDHC1_BASE_ADDR ,0 ,4 }; -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {cl_som_imx7_usdhc1_pads_set (); cl_som_imx7_spl_usdhc_cfg.sdhc_clk =mxc_get_clock (MXC_ESDHC_CLK );
board/compulab/cm_fx6/cm_fx6.c +2 -2
@@ -458,7 +458,7 @@ static int handle_mac_address(char *env_var, uint eeprom_bus)#define SB_FX6_I2C_EEPROM_BUS 0#define NO_MAC_ADDR "No MAC address found for %s\n" -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {int err;
@@ -537,7 +537,7 @@ static const struct node_info nodes[] = { { "jedec,spi-nor", MTD_DEV_TYPE_NOR, }, }; -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {u32 baseboard_rev;int nodeoffset;
board/compulab/cm_fx6/spl.c +1 -1
@@ -356,7 +356,7 @@ static struct fsl_esdhc_cfg usdhc_cfg = { .max_bus_width = 4, }; -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {cm_fx6_set_usdhc_iomux ();
board/compulab/cm_t335/cm_t335.c +1 -1
@@ -128,7 +128,7 @@ static int handle_mac_address(void)#define AR8051_DEBUG_RGMII_CLK_DLY_REG 0x5#define AR8051_RGMII_TX_CLK_DLY 0x100 -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {int rv, n =0 ;const char *devname;
board/compulab/cm_t35/cm_t35.c +2 -2
@@ -387,7 +387,7 @@ int board_mmc_getcd(struct mmc *mmc)return !(val &1 ); } -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {return omap_mmc_init (0 ,0 ,0 ,-1 ,SB_T35_WP_GPIO ); }
@@ -455,7 +455,7 @@ static int handle_mac_address(void)* Description: initialize module and base-board Ethernet chips */ #define SB_T35_SMC911X_BASE (CONFIG_SMC911X_BASE + SZ_16M) -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {int rc =0 , rc1 =0 ;
board/compulab/cm_t43/cm_t43.c +1 -1
@@ -149,7 +149,7 @@ static void board_phy_init(void)mdelay (2 ); } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {int rv;
board/compulab/cm_t54/cm_t54.c +3 -3
@@ -102,7 +102,7 @@ uint mmc_get_env_part(struct mmc *mmc)#define SB_T54_CD_GPIO 228#define SB_T54_WP_GPIO 229 -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {int ret0, ret1;
@@ -123,7 +123,7 @@ int board_mmc_init(bd_t *bis)#ifdef CONFIG_USB_HOST_ETHER -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {uint8_t enetaddr[6 ];
@@ -177,7 +177,7 @@ static int handle_mac_address(void)return eth_env_set_enetaddr ("usbethaddr" , enetaddr); } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {return handle_mac_address (); }
board/congatec/cgtqmx6eval/cgtqmx6eval.c +2 -2
@@ -256,7 +256,7 @@ int power_init_board(void)return 0 ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {struct phy_device *phydev;struct mii_dev *bus;
@@ -446,7 +446,7 @@ int board_mmc_getcd(struct mmc *mmc)return ret; } -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {#ifndef CONFIG_SPL_BUILD s32 status =0 ;
board/corscience/tricorder/tricorder.c +1 -1
@@ -143,7 +143,7 @@ void set_muxconf_regs(void) }#if defined(CONFIG_MMC ) -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {return omap_mmc_init (0 ,0 ,0 ,-1 ,-1 ); }
board/creative/xfi3/xfi3.c +2 -2
@@ -57,7 +57,7 @@ static int xfi3_mmc_cd(int id) } } -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {int ret;
@@ -219,7 +219,7 @@ int board_init(void)return 0 ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {usb_eth_initialize (bis);return 0 ;
board/cssi/MCR3000/MCR3000.c +1 -1
@@ -55,7 +55,7 @@ static const uint cs1_dram_table_66[] = { 0xFFFFFC05, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, }; -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {const char *sync ="receive" ;
board/davinci/da8xxevm/da850evm.c +1 -1
@@ -453,7 +453,7 @@ int rmii_hw_init(void)/* * Initializes on-board ethernet controllers. */ -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {#ifdef CONFIG_DRIVER_TI_EMAC_USE_RMII /* Select RMII fucntion through the expander */
board/davinci/da8xxevm/omapl138_lcdk.c +1 -1
@@ -345,7 +345,7 @@ static struct davinci_mmc mmc_sd0 = { .voltages = MMC_VDD_32_33 | MMC_VDD_33_34, }; -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) { mmc_sd0.input_clk =clk_get (DAVINCI_MMCSD_CLKID );
board/dhelectronics/dh_imx6/dh_imx6_spl.c +1 -1
@@ -493,7 +493,7 @@ int board_mmc_getcd(struct mmc *mmc)return 1 ;/* eMMC/uSDHC4 is always present */ } -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {SETUP_IOMUX_PADS (usdhc4_pads); usdhc_cfg[0 ].esdhc_base =USDHC4_BASE_ADDR ;
board/dhelectronics/dh_stm32mp1/board.c +1 -1
@@ -662,7 +662,7 @@ enum env_location env_get_location(enum env_operation op, int prio) }#if defined(CONFIG_OF_BOARD_SETUP ) -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {return 0 ; }
board/egnite/ethernut5/ethernut5.c +2 -2
@@ -147,7 +147,7 @@ int board_init(void)/* * This is optionally called last during late initialization. */ -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {const char *devname;unsigned short mode;
@@ -180,7 +180,7 @@ int board_eth_init(bd_t *bis)#endif #ifdef CONFIG_GENERIC_ATMEL_MCI -int board_mmc_init (bd_t *bd) +int board_mmc_init (struct bd_info *bd) {at91_periph_clk_enable (ATMEL_ID_MCI );
board/el/el6x/el6x.c +2 -2
@@ -285,7 +285,7 @@ int board_mmc_getcd(struct mmc *mmc)return ret; } -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {#ifndef CONFIG_SPL_BUILD int ret;
@@ -370,7 +370,7 @@ int overwrite_console(void)return 1 ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {setup_iomux_enet ();enable_enet_clk (1 );
board/embest/mx6boards/mx6boards.c +2 -2
@@ -218,7 +218,7 @@ int board_mmc_getcd(struct mmc *mmc)return ret; } -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {int ret;int i;
@@ -512,7 +512,7 @@ int overwrite_console(void)return 1 ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {setup_iomux_enet ();
board/esd/meesc/meesc.c +1 -1
@@ -146,7 +146,7 @@ int dram_init_banksize(void)return 0 ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {int rc =0 ;#ifdef CONFIG_MACB
board/esd/vme8349/vme8349.c +2 -2
@@ -73,14 +73,14 @@ int checkboard(void) }#ifdef CONFIG_TARGET_CADDY2 -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {return pci_eth_init (bis); }#endif #if defined(CONFIG_OF_BOARD_SETUP ) -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {ft_cpu_setup (blob, bd);
board/freescale/b4860qds/b4860qds.c +1 -1
@@ -1196,7 +1196,7 @@ int misc_init_r(void)return 0 ; } -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {phys_addr_t base;phys_size_t size;
board/freescale/b4860qds/b4860qds.h +1 -1
@@ -7,6 +7,6 @@#define __CORENET_DS_H__void fdt_fixup_board_enet (void *blob); -void pci_of_setup (void *blob,bd_t *bd); +void pci_of_setup (void *blob,struct bd_info *bd);#endif
board/freescale/b4860qds/eth_b4860qds.c +1 -1
@@ -148,7 +148,7 @@ static void initialize_lane_to_slot(void)#endif /* #ifdef CONFIG_FMAN_ENET */ -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {#ifdef CONFIG_FMAN_ENET struct memac_mdio_info memac_mdio_info;
board/freescale/b4860qds/pci.c +1 -1
@@ -17,7 +17,7 @@ void pci_init_board(void)fsl_pcie_init_board (0 ); } -void pci_of_setup (void *blob,bd_t *bd) +void pci_of_setup (void *blob,struct bd_info *bd) {FT_FSL_PCI_SETUP ; }
board/freescale/b4860qds/spl.c +3 -3
@@ -82,10 +82,10 @@ void board_init_f(ulong bootflag)void board_init_r (gd_t *gd,ulong dest_addr) { -bd_t *bd; +struct bd_info *bd; - bd = (bd_t *)(gd +sizeof (gd_t)); -memset (bd,0 ,sizeof (bd_t)); + bd = (struct bd_info *)(gd +sizeof (gd_t)); +memset (bd,0 ,sizeof (struct bd_info )); gd->bd = bd; bd->bi_memstart =CONFIG_SYS_INIT_L3_ADDR ; bd->bi_memsize =CONFIG_SYS_L3_SIZE ;
board/freescale/bsc9131rdb/bsc9131rdb.c +1 -1
@@ -60,7 +60,7 @@ static const struct node_info nodes[] = { { "fsl,ifc-nand", MTD_DEV_TYPE_NAND, }, }; #endif -int ft_board_setup(void *blob, bd_t *bd) +int ft_board_setup(void *blob, struct bd_info *bd) { phys_addr_t base; phys_size_t size;
board/freescale/bsc9132qds/bsc9132qds.c +2 -2
@@ -230,7 +230,7 @@ int checkboard(void)return 0 ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {#ifdef CONFIG_TSEC_ENET struct fsl_pq_mdio_info mdio_info;
@@ -366,7 +366,7 @@ static const struct node_info nodes[] = { { "fsl,ifc-nand", MTD_DEV_TYPE_NAND, }, }; #endif -int ft_board_setup(void *blob, bd_t *bd) +int ft_board_setup(void *blob, struct bd_info *bd) { phys_addr_t base; phys_size_t size;
board/freescale/c29xpcie/c29xpcie.c +2 -2
@@ -86,7 +86,7 @@ void pci_init_board(void) }#endif /* ifdef CONFIG_PCI */ -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {#ifdef CONFIG_TSEC_ENET struct fsl_pq_mdio_info mdio_info;
@@ -131,7 +131,7 @@ void fdt_del_sec(void *blob, int offset) } } -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {phys_addr_t base;phys_size_t size;
board/freescale/c29xpcie/spl.c +3 -3
@@ -46,11 +46,11 @@ void board_init_r(gd_t *gd, ulong dest_addr) {/* Pointer is writable since we allocated a register for it */ gd = (gd_t *)CONFIG_SPL_GD_ADDR ; -bd_t *bd; +struct bd_info *bd;memset (gd,0 ,sizeof (gd_t)); - bd = (bd_t *)(CONFIG_SPL_GD_ADDR +sizeof (gd_t)); -memset (bd,0 ,sizeof (bd_t)); + bd = (struct bd_info *)(CONFIG_SPL_GD_ADDR +sizeof (gd_t)); +memset (bd,0 ,sizeof (struct bd_info )); gd->bd = bd; bd->bi_memstart =CONFIG_SYS_INIT_L2_ADDR ; bd->bi_memsize =CONFIG_SYS_L2_SIZE ;
board/freescale/common/cds_pci_ft.c +1 -1
@@ -64,7 +64,7 @@ static void cds_pci_fixup(void *blob) }#endif -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {ft_cpu_setup (blob, bd);#if defined(CONFIG_PCI ) && !defined(CONFIG_DM_PCI )
board/freescale/common/p_corenet/pci.c +1 -1
@@ -18,7 +18,7 @@ void pci_init_board(void)fsl_pcie_init_board (0 ); } -void pci_of_setup (void *blob,bd_t *bd) +void pci_of_setup (void *blob,struct bd_info *bd) {FT_FSL_PCI_SETUP ; }
board/freescale/corenet_ds/corenet_ds.c +1 -1
@@ -187,7 +187,7 @@ int misc_init_r(void)return 0 ; } -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {phys_addr_t base;phys_size_t size;
board/freescale/corenet_ds/corenet_ds.h +1 -1
@@ -7,6 +7,6 @@#define __CORENET_DS_H__void fdt_fixup_board_enet (void *blob); -void pci_of_setup (void *blob,bd_t *bd); +void pci_of_setup (void *blob,struct bd_info *bd);#endif
board/freescale/corenet_ds/eth_hydra.c +1 -1
@@ -363,7 +363,7 @@ void fdt_fixup_board_enet(void *fdt)#endif } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {#ifdef CONFIG_FMAN_ENET struct fsl_pq_mdio_info dtsec_mdio_info;
board/freescale/corenet_ds/eth_p4080.c +1 -1
@@ -288,7 +288,7 @@ void fdt_fixup_board_enet(void *fdt) } } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {#ifdef CONFIG_FMAN_ENET ccsr_gpio_t *pgpio = (void *)(CONFIG_SYS_MPC85xx_GPIO_ADDR);
board/freescale/corenet_ds/eth_superhydra.c +1 -1
@@ -415,7 +415,7 @@ void fdt_fixup_board_enet(void *fdt)* 0x36 | | | */ -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {#ifdef CONFIG_FMAN_ENET struct fsl_pq_mdio_info dtsec_mdio_info;
board/freescale/imx8mq_evk/spl.c +1 -1
@@ -111,7 +111,7 @@ static struct fsl_esdhc_cfg usdhc_cfg[2] = { {USDHC2_BASE_ADDR, 0, 4}, }; -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {int i, ret;/*
board/freescale/imx8qm_mek/imx8qm_mek.c +1 -1
@@ -110,7 +110,7 @@ void reset_cpu(ulong addr) }#ifdef CONFIG_OF_BOARD_SETUP -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {return 0 ; }
board/freescale/imx8qxp_mek/imx8qxp_mek.c +1 -1
@@ -134,7 +134,7 @@ void reset_cpu(ulong addr) }#ifdef CONFIG_OF_BOARD_SETUP -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {return 0 ; }
board/freescale/ls1012afrdm/ls1012afrdm.c +1 -1
@@ -184,7 +184,7 @@ int board_init(void)return 0 ; } -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {arch_fixup_fdt (blob);
board/freescale/ls1012aqds/ls1012aqds.c +1 -1
@@ -280,7 +280,7 @@ static void fdt_fsl_fixup_of_pfe(void *blob) }#ifdef CONFIG_OF_BOARD_SETUP -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {arch_fixup_fdt (blob);
board/freescale/ls1012ardb/ls1012ardb.c +1 -1
@@ -258,7 +258,7 @@ int esdhc_status_fixup(void *blob, const char *compat) }#endif -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {arch_fixup_fdt (blob);
board/freescale/ls1021aiot/ls1021aiot.c +2 -2
@@ -108,7 +108,7 @@ int dram_init(void) }#ifdef CONFIG_TSEC_ENET -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {struct fsl_pq_mdio_info mdio_info;struct tsec_info_struct tsec_info[4 ];
@@ -215,7 +215,7 @@ int misc_init_r(void) }#endif -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {ft_cpu_setup (blob, bd);
board/freescale/ls1021aqds/eth.c +1 -1
@@ -129,7 +129,7 @@ static int ls1021a_mdio_init(char *realbusname, char *fakebusname)return mdio_register (bus); } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {struct fsl_pq_mdio_info mdio_info;struct tsec_info_struct tsec_info[3 ];
board/freescale/ls1021aqds/ls1021aqds.c +1 -1
@@ -449,7 +449,7 @@ void board_sleep_prepare(void) }#endif -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {ft_cpu_setup (blob, bd);
board/freescale/ls1021atsn/ls1021atsn.c +2 -2
@@ -122,7 +122,7 @@ int dram_init(void)return 0 ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {return pci_eth_init (bis); }
@@ -253,7 +253,7 @@ void board_sleep_prepare(void) }#endif -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {ft_cpu_setup (blob, bd);
board/freescale/ls1021atwr/ls1021atwr.c +2 -2
@@ -239,7 +239,7 @@ int dram_init(void)return 0 ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {return pci_eth_init (bis); }
@@ -570,7 +570,7 @@ void board_sleep_prepare(void) }#endif -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {ft_cpu_setup (blob, bd);
board/freescale/ls1028a/ls1028a.c +2 -2
@@ -116,7 +116,7 @@ int board_init(void)return 0 ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {return pci_eth_init (bis); }
@@ -210,7 +210,7 @@ int esdhc_status_fixup(void *blob, const char *compat) }#ifdef CONFIG_OF_BOARD_SETUP -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {u64 base[CONFIG_NR_DRAM_BANKS ];u64 size[CONFIG_NR_DRAM_BANKS ];
board/freescale/ls1043aqds/eth.c +1 -1
@@ -294,7 +294,7 @@ void fdt_fixup_board_enet(void *fdt) } } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {#ifdef CONFIG_FMAN_ENET int i, idx, lane, slot, interface;
board/freescale/ls1043aqds/ls1043aqds.c +1 -1
@@ -560,7 +560,7 @@ int board_init(void) }#ifdef CONFIG_OF_BOARD_SETUP -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {u64 base[CONFIG_NR_DRAM_BANKS ];u64 size[CONFIG_NR_DRAM_BANKS ];
board/freescale/ls1043ardb/eth.c +1 -1
@@ -13,7 +13,7 @@#include "../common/fman.h" -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {#ifdef CONFIG_FMAN_ENET int i;
board/freescale/ls1043ardb/ls1043ardb.c +1 -1
@@ -271,7 +271,7 @@ void fdt_del_qe(void *blob) } } -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {u64 base[CONFIG_NR_DRAM_BANKS ];u64 size[CONFIG_NR_DRAM_BANKS ];
board/freescale/ls1046afrwy/eth.c +1 -1
@@ -14,7 +14,7 @@#include "../common/fman.h" -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {#ifdef CONFIG_FMAN_ENET struct memac_mdio_info dtsec_mdio_info;
board/freescale/ls1046afrwy/ls1046afrwy.c +1 -1
@@ -218,7 +218,7 @@ int misc_init_r(void) }#endif -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {u64 base[CONFIG_NR_DRAM_BANKS ];u64 size[CONFIG_NR_DRAM_BANKS ];
board/freescale/ls1046aqds/eth.c +1 -1
@@ -261,7 +261,7 @@ void fdt_fixup_board_enet(void *fdt) } } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {#ifdef CONFIG_FMAN_ENET int i, idx, lane, slot, interface;
board/freescale/ls1046aqds/ls1046aqds.c +1 -1
@@ -447,7 +447,7 @@ int board_init(void) }#ifdef CONFIG_OF_BOARD_SETUP -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {u64 base[CONFIG_NR_DRAM_BANKS ];u64 size[CONFIG_NR_DRAM_BANKS ];
board/freescale/ls1046ardb/eth.c +1 -1
@@ -14,7 +14,7 @@#include "../common/fman.h" -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {#ifdef CONFIG_FMAN_ENET int i;
board/freescale/ls1046ardb/ls1046ardb.c +1 -1
@@ -158,7 +158,7 @@ int misc_init_r(void) }#endif -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {u64 base[CONFIG_NR_DRAM_BANKS ];u64 size[CONFIG_NR_DRAM_BANKS ];
board/freescale/ls1088a/eth_ls1088aqds.c +1 -1
@@ -669,7 +669,7 @@ static void ls1088a_handle_phy_interface_rgmii(int dpmac_id) }#endif -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {int error =0 , i;#ifdef CONFIG_FSL_MC_ENET
board/freescale/ls1088a/eth_ls1088ardb.c +1 -1
@@ -19,7 +19,7 @@#include <fsl-mc/ldpaa_wriop.h> #ifndef CONFIG_DM_ETH -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {#if defined(CONFIG_FSL_MC_ENET )int i, interface;
board/freescale/ls1088a/ls1088a.c +1 -1
@@ -912,7 +912,7 @@ void fsl_fdt_fixup_flash(void *fdt)fdt_status_disabled (fdt, offset); } -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {int i;u16 mc_memory_bank =0 ;
board/freescale/ls2080a/ls2080a.c +2 -2
@@ -50,7 +50,7 @@ void detail_board_ddr_info(void)#endif } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {int error =0 ;
@@ -98,7 +98,7 @@ void board_quiesce_devices(void)#endif #ifdef CONFIG_OF_BOARD_SETUP -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {u64 base[CONFIG_NR_DRAM_BANKS ];u64 size[CONFIG_NR_DRAM_BANKS ];
board/freescale/ls2080aqds/eth.c +1 -1
@@ -895,7 +895,7 @@ void ls2080a_handle_phy_interface_xsgmii(int i)#endif #endif // !CONFIG_DM_ETH -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {#ifndef CONFIG_DM_ETH #if defined(CONFIG_FSL_MC_ENET ) && !defined(CONFIG_SPL_BUILD )
board/freescale/ls2080aqds/ls2080aqds.c +1 -1
@@ -324,7 +324,7 @@ void board_quiesce_devices(void)#endif #ifdef CONFIG_OF_BOARD_SETUP -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {u64 base[CONFIG_NR_DRAM_BANKS ];u64 size[CONFIG_NR_DRAM_BANKS ];
board/freescale/ls2080ardb/eth_ls2080rdb.c +1 -1
@@ -21,7 +21,7 @@DECLARE_GLOBAL_DATA_PTR ; -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {#ifndef CONFIG_DM_ETH #if defined(CONFIG_FSL_MC_ENET )
board/freescale/ls2080ardb/ls2080ardb.c +1 -1
@@ -416,7 +416,7 @@ void fsl_fdt_fixup_flash(void *fdt)fdt_status_disabled (fdt, offset); } -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {int i;u16 mc_memory_bank =0 ;
board/freescale/lx2160a/eth_lx2160aqds.c +1 -1
@@ -445,7 +445,7 @@ static inline void do_dpmac_config(int dpmac, const char *arg_dpmacid,#endif #endif /* !CONFIG_DM_ETH */ -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {#ifndef CONFIG_DM_ETH #if defined(CONFIG_FSL_MC_ENET )
board/freescale/lx2160a/eth_lx2160ardb.c +1 -1
@@ -39,7 +39,7 @@ static bool get_inphi_phy_id(struct mii_dev *bus, int addr, int devad)return false; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {#if defined(CONFIG_FSL_MC_ENET )struct memac_mdio_info mdio_info;
board/freescale/lx2160a/lx2160a.c +1 -1
@@ -649,7 +649,7 @@ void board_quiesce_devices(void)#endif #ifdef CONFIG_OF_BOARD_SETUP -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {int i;u16 mc_memory_bank =0 ;
board/freescale/m5253demo/m5253demo.c +1 -1
@@ -139,7 +139,7 @@ void ide_set_reset(int idereset)#ifdef CONFIG_DRIVER_DM9000 -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {return dm9000_initialize (bis); }
board/freescale/mpc8308rdb/mpc8308rdb.c +3 -3
@@ -52,7 +52,7 @@ void spi_cs_deactivate(struct spi_slave *slave)#endif /* CONFIG_MPC8XXX_SPI */ #ifdef CONFIG_FSL_ESDHC -int board_mmc_init (bd_t *bd) +int board_mmc_init (struct bd_info *bd) {return fsl_esdhc_mmc_init (bd); }
@@ -161,7 +161,7 @@ int misc_init_r(void)return 0 ; }#if defined(CONFIG_OF_BOARD_SETUP ) -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {ft_cpu_setup (blob, bd);fsl_fdt_fixup_dr_usb (blob, bd);
@@ -171,7 +171,7 @@ int ft_board_setup(void *blob, bd_t *bd) }#endif -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {int rv, num_if =0 ;
board/freescale/mpc8313erdb/mpc8313erdb.c +1 -1
@@ -118,7 +118,7 @@ int misc_init_r(void) }#if defined(CONFIG_OF_BOARD_SETUP ) -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {ft_cpu_setup (blob, bd);#ifdef CONFIG_PCI
board/freescale/mpc8315erdb/mpc8315erdb.c +3 -3
@@ -161,7 +161,7 @@ void pci_init_board(void) }#if defined(CONFIG_OF_BOARD_SETUP ) -void fdt_tsec1_fixup (void *fdt,bd_t *bd) +void fdt_tsec1_fixup (void *fdt,struct bd_info *bd) {const char disabled[] ="disabled" ;const char *path;
@@ -190,7 +190,7 @@ void fdt_tsec1_fixup(void *fdt, bd_t *bd)do_fixup_by_path (fdt, path,"status" , disabled,sizeof (disabled),1 ); } -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {ft_cpu_setup (blob, bd);#ifdef CONFIG_PCI
@@ -203,7 +203,7 @@ int ft_board_setup(void *blob, bd_t *bd) }#endif -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {cpu_eth_init (bis);/* Initialize TSECs first */ return pci_eth_init (bis);
board/freescale/mpc8323erdb/mpc8323erdb.c +1 -1
@@ -182,7 +182,7 @@ void pci_init_board(void) }#if defined(CONFIG_OF_BOARD_SETUP ) -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {ft_cpu_setup (blob, bd);#ifdef CONFIG_PCI
board/freescale/mpc832xemds/mpc832xemds.c +1 -1
@@ -160,7 +160,7 @@ int checkboard(void) }#if defined(CONFIG_OF_BOARD_SETUP ) -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {ft_cpu_setup (blob, bd);#ifdef CONFIG_PCI
board/freescale/mpc8349emds/mpc8349emds.c +1 -1
@@ -289,7 +289,7 @@ void spi_cs_deactivate(struct spi_slave *slave)#endif #if defined(CONFIG_OF_BOARD_SETUP ) -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {ft_cpu_setup (blob, bd);#ifdef CONFIG_PCI
board/freescale/mpc8349itx/mpc8349itx.c +1 -1
@@ -389,7 +389,7 @@ int misc_init_r(void) }#if defined(CONFIG_OF_BOARD_SETUP ) -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {ft_cpu_setup (blob, bd);#ifdef CONFIG_PCI
board/freescale/mpc837xemds/mpc837xemds.c +7 -7
@@ -64,7 +64,7 @@ int board_early_init_f(void) }#ifdef CONFIG_FSL_ESDHC -int board_mmc_init (bd_t *bd) +int board_mmc_init (struct bd_info *bd) {struct immap __iomem *im = (struct immap __iomem *)CONFIG_SYS_IMMR ;u8 *bcsr = (u8 *)CONFIG_SYS_BCSR ;
@@ -85,7 +85,7 @@ int board_mmc_init(bd_t *bd)#endif #if defined(CONFIG_TSEC1 ) || defined(CONFIG_TSEC2 ) -int board_eth_init (bd_t *bd) +int board_eth_init (struct bd_info *bd) {struct fsl_pq_mdio_info mdio_info;struct tsec_info_struct tsec_info[2 ];
@@ -141,7 +141,7 @@ int board_eth_init(bd_t *bd)return tsec_eth_init (bd, tsec_info, num); } -static void __ft_tsec_fixup (void *blob,bd_t *bd,const char *alias, +static void __ft_tsec_fixup (void *blob,struct bd_info *bd,const char *alias,int phy_addr) {const u32 *ph;
@@ -186,7 +186,7 @@ static void __ft_tsec_fixup(void *blob, bd_t *bd, const char *alias, } } -static void ft_tsec_fixup (void *blob,bd_t *bd) +static void ft_tsec_fixup (void *blob,struct bd_info *bd) {struct immap __iomem *im = (struct immap __iomem *)CONFIG_SYS_IMMR ;u32 rcwh =in_be32 (&im->reset.rcwh);
@@ -205,7 +205,7 @@ static void ft_tsec_fixup(void *blob, bd_t *bd) #endif }#else -static inline void ft_tsec_fixup (void *blob,bd_t *bd) {} +static inline void ft_tsec_fixup (void *blob,struct bd_info *bd) {}#endif /* defined(CONFIG_TSEC1) || defined(CONFIG_TSEC2) */ int board_early_init_r (void )
@@ -312,7 +312,7 @@ int board_pci_host_broken(void)return 0 ; } -static void ft_pci_fixup (void *blob,bd_t *bd) +static void ft_pci_fixup (void *blob,struct bd_info *bd) {const char *status ="broken (no arbiter)" ;int off;
@@ -335,7 +335,7 @@ static void ft_pci_fixup(void *blob, bd_t *bd)#endif #if defined(CONFIG_OF_BOARD_SETUP ) -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {ft_cpu_setup (blob, bd);ft_tsec_fixup (blob, bd);
board/freescale/mpc837xemds/pci.c +1 -1
@@ -137,7 +137,7 @@ skip_pci:mpc83xx_pcie_init (pex2 ?1 :2 , pcie_reg); } -void ft_pcie_fixup (void *blob,bd_t *bd) +void ft_pcie_fixup (void *blob,struct bd_info *bd) {const char *status ="disabled (PCIE1 is x2)" ;
board/freescale/mpc837xemds/pci.h +1 -1
@@ -1,6 +1,6 @@#ifndef __BOARD_MPC837XEMDS_PCI_H#define __BOARD_MPC837XEMDS_PCI_H -extern void ft_pcie_fixup (void *blob,bd_t *bd); +extern void ft_pcie_fixup (void *blob,struct bd_info *bd);#endif /* __BOARD_MPC837XEMDS_PCI_H */
board/freescale/mpc837xerdb/mpc837xerdb.c +2 -2
@@ -170,7 +170,7 @@ int board_early_init_f(void) }#ifdef CONFIG_FSL_ESDHC -int board_mmc_init (bd_t *bd) +int board_mmc_init (struct bd_info *bd) {struct immap __iomem *im = (struct immap __iomem *)CONFIG_SYS_IMMR ;char buffer[HWCONFIG_BUFFER_SIZE ] = {0 };
@@ -211,7 +211,7 @@ int misc_init_r(void)#if defined(CONFIG_OF_BOARD_SETUP ) -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {#ifdef CONFIG_PCI ft_pci_setup (blob, bd);
board/freescale/mpc8536ds/mpc8536ds.c +2 -2
@@ -226,7 +226,7 @@ int board_early_init_r(void)return 0 ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {#ifdef CONFIG_TSEC_ENET struct fsl_pq_mdio_info mdio_info;
@@ -274,7 +274,7 @@ int board_eth_init(bd_t *bis) }#if defined(CONFIG_OF_BOARD_SETUP ) -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {ft_cpu_setup (blob, bd);
board/freescale/mpc8541cds/mpc8541cds.c +1 -1
@@ -402,7 +402,7 @@ pci_init_board(void)#if defined(CONFIG_OF_BOARD_SETUP )void -ft_pci_setup (void *blob,bd_t *bd) +ft_pci_setup (void *blob,struct bd_info *bd) {int node, tmp[2 ];const char *path;
board/freescale/mpc8544ds/mpc8544ds.c +2 -2
@@ -261,7 +261,7 @@ int board_phy_config(struct phy_device *phydev) } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {#ifdef CONFIG_TSEC_ENET struct fsl_pq_mdio_info mdio_info;
@@ -306,7 +306,7 @@ int board_eth_init(bd_t *bis) }#if defined(CONFIG_OF_BOARD_SETUP ) -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {ft_cpu_setup (blob, bd);
board/freescale/mpc8548cds/mpc8548cds.c +2 -2
@@ -306,7 +306,7 @@ void configure_rgmii(void)return ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {#ifdef CONFIG_TSEC_ENET struct fsl_pq_mdio_info mdio_info;
@@ -356,7 +356,7 @@ int board_eth_init(bd_t *bis) }#if defined(CONFIG_OF_BOARD_SETUP ) && !defined(CONFIG_DM_PCI ) -void ft_pci_setup (void *blob,bd_t *bd) +void ft_pci_setup (void *blob,struct bd_info *bd) {FT_FSL_PCI_SETUP ; }
board/freescale/mpc8555cds/mpc8555cds.c +1 -1
@@ -403,7 +403,7 @@ pci_init_board(void)#if defined(CONFIG_OF_BOARD_SETUP )void -ft_pci_setup (void *blob,bd_t *bd) +ft_pci_setup (void *blob,struct bd_info *bd) {int node, tmp[2 ];const char *path;
board/freescale/mpc8568mds/mpc8568mds.c +1 -1
@@ -348,7 +348,7 @@ void pci_init_board(void)#endif /* CONFIG_PCI */ #if defined(CONFIG_OF_BOARD_SETUP ) -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {ft_cpu_setup (blob, bd);
board/freescale/mpc8569mds/mpc8569mds.c +8 -7
@@ -308,7 +308,8 @@ local_bus_init(void)out_be32 (&lbc->lcrr, (u32 )in_be32 (&lbc->lcrr)|0x00030000 ); } -static void fdt_board_disable_serial (void *blob,bd_t *bd,const char *alias) +static void fdt_board_disable_serial (void *blob,struct bd_info *bd, +const char *alias) {const char *status ="disabled" ;int off;
@@ -353,7 +354,7 @@ static int esdhc_disables_uart0(void)hwconfig_subarg_cmp ("esdhc" ,"mode" ,"4-bits" ); } -static void fdt_board_fixup_qe_uart (void *blob,bd_t *bd) +static void fdt_board_fixup_qe_uart (void *blob,struct bd_info *bd) {u8 *bcsr = (u8 *)CONFIG_SYS_BCSR_BASE ;const char *devtype ="serial" ;
@@ -400,7 +401,7 @@ static void fdt_board_fixup_qe_uart(void *blob, bd_t *bd)#ifdef CONFIG_FSL_ESDHC -int board_mmc_init (bd_t *bd) +int board_mmc_init (struct bd_info *bd) {struct ccsr_gur *gur = (struct ccsr_gur *)CONFIG_SYS_MPC85xx_GUTS_ADDR;u8 *bcsr = (u8 *)CONFIG_SYS_BCSR_BASE ;
@@ -441,7 +442,7 @@ int board_mmc_init(bd_t *bd)return fsl_esdhc_mmc_init (bd); } -static void fdt_board_fixup_esdhc (void *blob,bd_t *bd) +static void fdt_board_fixup_esdhc (void *blob,struct bd_info *bd) {const char *status ="disabled" ;int off =-1 ;
@@ -481,10 +482,10 @@ static void fdt_board_fixup_esdhc(void *blob, bd_t *bd) } }#else -static inline void fdt_board_fixup_esdhc (void *blob,bd_t *bd) {} +static inline void fdt_board_fixup_esdhc (void *blob,struct bd_info *bd) {}#endif -static void fdt_board_fixup_qe_usb (void *blob,bd_t *bd) +static void fdt_board_fixup_qe_usb (void *blob,struct bd_info *bd) {u8 *bcsr = (u8 *)CONFIG_SYS_BCSR_BASE ;
@@ -518,7 +519,7 @@ void pci_init_board(void)#endif /* CONFIG_PCI */ #if defined(CONFIG_OF_BOARD_SETUP ) -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {#if defined(CONFIG_SYS_UCC_RMII_MODE )int nodeoff, off, err;
board/freescale/mpc8572ds/mpc8572ds.c +2 -2
@@ -176,7 +176,7 @@ int board_early_init_r(void)return 0 ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {#ifdef CONFIG_TSEC_ENET struct fsl_pq_mdio_info mdio_info;
@@ -237,7 +237,7 @@ int board_eth_init(bd_t *bis) }#if defined(CONFIG_OF_BOARD_SETUP ) -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {phys_addr_t base;phys_size_t size;
board/freescale/mpc8610hpcd/mpc8610hpcd.c +2 -2
@@ -264,7 +264,7 @@ void pci_init_board(void) }#if defined(CONFIG_OF_BOARD_SETUP ) -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {ft_cpu_setup (blob, bd);
@@ -319,7 +319,7 @@ get_board_sys_clk(ulong dummy)return val; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {return pci_eth_init (bis); }
board/freescale/mpc8641hpcn/mpc8641hpcn.c +2 -2
@@ -125,7 +125,7 @@ void pci_init_board(void)#if defined(CONFIG_OF_BOARD_SETUP ) -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {int off;u64 *tmp;
@@ -229,7 +229,7 @@ get_board_sys_clk(ulong dummy)return val; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {/* Initialize TSECs */ cpu_eth_init (bis);
board/freescale/mx23evk/mx23evk.c +1 -1
@@ -65,7 +65,7 @@ static int mx23evk_mmc_wp(int id)return gpio_get_value (MX23_PAD_PWM4__GPIO_1_30 ); } -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {/* Configure WP as input */ gpio_direction_input (MX23_PAD_PWM4__GPIO_1_30 );
board/freescale/mx25pdk/mx25pdk.c +1 -1
@@ -163,7 +163,7 @@ int board_mmc_getcd(struct mmc *mmc)return !gpio_get_value (CARD_DETECT ); } -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {static const iomux_v3_cfg_t sdhc1_pads[] = {NEW_PAD_CTRL (MX25_PAD_SD1_CMD__SD1_CMD ,NO_PAD_CTRL ),
board/freescale/mx28evk/mx28evk.c +2 -2
@@ -83,7 +83,7 @@ static int mx28evk_mmc_wp(int id)return gpio_get_value (MX28_PAD_SSP1_SCK__GPIO_2_12 ); } -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {/* Configure WP as input */ gpio_direction_input (MX28_PAD_SSP1_SCK__GPIO_2_12 );
@@ -97,7 +97,7 @@ int board_mmc_init(bd_t *bis)#ifdef CONFIG_CMD_NET -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {struct mxs_clkctrl_regs *clkctrl_regs = (struct mxs_clkctrl_regs *)MXS_CLKCTRL_BASE ;
board/freescale/mx31pdk/mx31pdk.c +1 -1
@@ -109,7 +109,7 @@ int checkboard(void)return 0 ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {int rc =0 ;#ifdef CONFIG_SMC911X
board/freescale/mx35pdk/mx35pdk.c +2 -2
@@ -254,7 +254,7 @@ int board_late_init(void)return 0 ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {#if defined(CONFIG_SMC911X )int rc =smc911x_initialize (0 ,CONFIG_SMC911X_BASE );
@@ -268,7 +268,7 @@ int board_eth_init(bd_t *bis)struct fsl_esdhc_cfg esdhc_cfg = {MMC_SDHC1_BASE_ADDR }; -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {static const iomux_v3_cfg_t sdhc1_pads[] = {MX35_PAD_SD1_CMD__ESDHC1_CMD ,
board/freescale/mx51evk/mx51evk.c +1 -1
@@ -285,7 +285,7 @@ int board_mmc_getcd(struct mmc *mmc)return ret; } -int board_mmc_init(bd_t *bis) +int board_mmc_init(struct bd_info *bis) { static const iomux_v3_cfg_t sd1_pads[] = { NEW_PAD_CTRL(MX51_PAD_SD1_CMD__SD1_CMD, PAD_CTL_DSE_MAX |
board/freescale/mx53ard/mx53ard.c +2 -2
@@ -144,7 +144,7 @@ int board_mmc_getcd(struct mmc *mmc)#define SD_PAD_CTRL (PAD_CTL_HYS | PAD_CTL_PUS_47K_UP | \ PAD_CTL_DSE_HIGH) -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {static const iomux_v3_cfg_t sd1_pads[] = {NEW_PAD_CTRL (MX53_PAD_SD1_CMD__ESDHC1_CMD ,SD_CMD_PAD_CTRL ),
@@ -297,7 +297,7 @@ int board_init(void)return 0 ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {int rc = -ENODEV ;
board/freescale/mx53evk/mx53evk.c +1 -1
@@ -167,7 +167,7 @@ int board_mmc_getcd(struct mmc *mmc)#define SD_PAD_CTRL (PAD_CTL_HYS | PAD_CTL_PUS_47K_UP | \ PAD_CTL_DSE_HIGH) -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {static const iomux_v3_cfg_t sd1_pads[] = {NEW_PAD_CTRL (MX53_PAD_SD1_CMD__ESDHC1_CMD ,SD_CMD_PAD_CTRL ),
board/freescale/mx53loco/mx53loco.c +1 -1
@@ -124,7 +124,7 @@ int board_mmc_getcd(struct mmc *mmc)#define SD_PAD_CTRL (PAD_CTL_HYS | PAD_CTL_PUS_47K_UP | \ PAD_CTL_DSE_HIGH) -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {static const iomux_v3_cfg_t sd1_pads[] = {NEW_PAD_CTRL (MX53_PAD_SD1_CMD__ESDHC1_CMD ,SD_CMD_PAD_CTRL ),
board/freescale/mx53smd/mx53smd.c +1 -1
@@ -95,7 +95,7 @@ int board_mmc_getcd(struct mmc *mmc)#define SD_PAD_CTRL (PAD_CTL_HYS | PAD_CTL_PUS_47K_UP | \ PAD_CTL_DSE_HIGH) -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {static const iomux_v3_cfg_t sd1_pads[] = {NEW_PAD_CTRL (MX53_PAD_SD1_CMD__ESDHC1_CMD ,SD_CMD_PAD_CTRL ),
board/freescale/mx6qarm2/mx6qarm2.c +2 -2
@@ -130,7 +130,7 @@ int board_mmc_getcd(struct mmc *mmc)return ret; } -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {int ret;u32 index =0 ;
@@ -197,7 +197,7 @@ int fecmxc_mii_postcall(int phy)return 0 ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {struct eth_device *dev;int ret =cpu_eth_init (bis);
board/freescale/mx6sabreauto/mx6sabreauto.c +1 -1
@@ -275,7 +275,7 @@ int board_mmc_getcd(struct mmc *mmc)return !gpio_get_value (IMX_GPIO_NR (6 ,15 )); } -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {SETUP_IOMUX_PADS (usdhc3_pads);
board/freescale/mx6sabresd/mx6sabresd.c +1 -1
@@ -250,7 +250,7 @@ int board_mmc_getcd(struct mmc *mmc)return ret; } -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {struct src *psrc = (struct src *)SRC_BASE_ADDR ;unsigned reg =readl (&psrc->sbmr1) >>11 ;
board/freescale/mx6slevk/mx6slevk.c +1 -1
@@ -231,7 +231,7 @@ int board_mmc_getcd(struct mmc *mmc)return ret; } -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {struct src *src_regs = (struct src *)SRC_BASE_ADDR ;u32 val;
board/freescale/mx6sxsabreauto/mx6sxsabreauto.c +1 -1
@@ -95,7 +95,7 @@ static int setup_fec(void)return enable_fec_anatop_clock (1 ,ENET_125MHZ ); } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {int ret;
board/freescale/mx6sxsabresd/mx6sxsabresd.c +1 -1
@@ -141,7 +141,7 @@ static int setup_fec(void)return 0 ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {imx_iomux_v3_setup_multiple_pads (fec1_pads,ARRAY_SIZE (fec1_pads));setup_fec ();
board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c +1 -1
@@ -146,7 +146,7 @@ int board_mmc_getcd(struct mmc *mmc)return 1 ; } -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {imx_iomux_v3_setup_multiple_pads (usdhc2_pads,ARRAY_SIZE (usdhc2_pads)); usdhc_cfg[0 ].sdhc_clk =mxc_get_clock (MXC_ESDHC2_CLK );
board/freescale/mx7ulp_evk/mx7ulp_evk.c +1 -1
@@ -50,7 +50,7 @@ int board_init(void) }#if IS_ENABLED (CONFIG_OF_BOARD_SETUP ) -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {const char *path;int rc, nodeoff;
board/freescale/p1010rdb/p1010rdb.c +3 -3
@@ -484,7 +484,7 @@ int checkboard(void)return 0 ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {#ifdef CONFIG_TSEC_ENET struct fsl_pq_mdio_info mdio_info;
@@ -601,7 +601,7 @@ void fdt_disable_uart1(void *blob) } } -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {phys_addr_t base;phys_size_t size;
@@ -659,7 +659,7 @@ int ft_board_setup(void *blob, bd_t *bd)#endif #ifdef CONFIG_SDCARD -int board_mmc_init (bd_t *bis) +int board_mmc_init (struct bd_info *bis) {config_board_mux (MUX_TYPE_SDHC );return -1 ;
board/freescale/p1010rdb/spl.c +3 -3
@@ -63,11 +63,11 @@ void board_init_r(gd_t *gd, ulong dest_addr) {/* Pointer is writable since we allocated a register for it */ gd = (gd_t *)CONFIG_SPL_GD_ADDR ; -bd_t *bd; +struct bd_info *bd;memset (gd,0 ,sizeof (gd_t)); - bd = (bd_t *)(CONFIG_SPL_GD_ADDR +sizeof (gd_t)); -memset (bd,0 ,sizeof (bd_t)); + bd = (struct bd_info *)(CONFIG_SPL_GD_ADDR +sizeof (gd_t)); +memset (bd,0 ,sizeof (struct bd_info )); gd->bd = bd; bd->bi_memstart =CONFIG_SYS_INIT_L2_ADDR ; bd->bi_memsize =CONFIG_SYS_L2_SIZE ;
board/freescale/p1022ds/p1022ds.c +2 -2
@@ -286,7 +286,7 @@ int board_early_init_r(void)* 0, no ethernet devices found * >0, number of ethernet devices initialized */ -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {struct fsl_pq_mdio_info mdio_info;struct tsec_info_struct tsec_info[2 ];
@@ -334,7 +334,7 @@ static void ft_codec_setup(void *blob, const char *compatible) } } -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {phys_addr_t base;phys_size_t size;
board/freescale/p1022ds/spl.c +3 -3
@@ -77,11 +77,11 @@ void board_init_r(gd_t *gd, ulong dest_addr) {/* Pointer is writable since we allocated a register for it */ gd = (gd_t *)CONFIG_SPL_GD_ADDR ; -bd_t *bd; +struct bd_info *bd;memset (gd,0 ,sizeof (gd_t)); - bd = (bd_t *)(CONFIG_SPL_GD_ADDR +sizeof (gd_t)); -memset (bd,0 ,sizeof (bd_t)); + bd = (struct bd_info *)(CONFIG_SPL_GD_ADDR +sizeof (gd_t)); +memset (bd,0 ,sizeof (struct bd_info )); gd->bd = bd; bd->bi_memstart =CONFIG_SYS_INIT_L2_ADDR ; bd->bi_memsize =CONFIG_SYS_L2_SIZE ;
board/freescale/p1023rdb/p1023rdb.c +2 -2
@@ -100,7 +100,7 @@ unsigned long get_board_ddr_clk(ulong dummy)return gd->mem_clk; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {ccsr_gur_t *gur = (ccsr_gur_t *)CONFIG_SYS_MPC85xx_GUTS_ADDR;struct fsl_pq_mdio_info dtsec_mdio_info;
@@ -134,7 +134,7 @@ int board_eth_init(bd_t *bis) }#if defined(CONFIG_OF_BOARD_SETUP ) -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {phys_addr_t base;phys_size_t size;
board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c +2 -2
@@ -341,7 +341,7 @@ int board_early_init_r(void)return 0 ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {struct fsl_pq_mdio_info mdio_info;struct tsec_info_struct tsec_info[4 ];
@@ -452,7 +452,7 @@ static void fdt_board_fixup_qe_pins(void *blob)#endif #ifdef CONFIG_OF_BOARD_SETUP -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {phys_addr_t base;phys_size_t size;
board/freescale/p1_p2_rdb_pc/spl.c +3 -3
@@ -69,11 +69,11 @@ void board_init_r(gd_t *gd, ulong dest_addr) {/* Pointer is writable since we allocated a register for it */ gd = (gd_t *)CONFIG_SPL_GD_ADDR ; -bd_t *bd; +struct bd_info *bd;memset (gd,0 ,sizeof (gd_t)); - bd = (bd_t *)(CONFIG_SPL_GD_ADDR +sizeof (gd_t)); -memset (bd,0 ,sizeof (bd_t)); + bd = (struct bd_info *)(CONFIG_SPL_GD_ADDR +sizeof (gd_t)); +memset (bd,0 ,sizeof (struct bd_info )); gd->bd = bd; bd->bi_memstart =CONFIG_SYS_INIT_L2_ADDR ; bd->bi_memsize =CONFIG_SYS_L2_SIZE ;
board/freescale/p1_twr/p1_twr.c +2 -2
@@ -184,7 +184,7 @@ int board_early_init_r(void)return 0 ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {struct fsl_pq_mdio_info mdio_info;struct tsec_info_struct tsec_info[4 ];
@@ -264,7 +264,7 @@ static void fdt_board_fixup_qe_pins(void *blob)#endif #ifdef CONFIG_OF_BOARD_SETUP -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {phys_addr_t base;phys_size_t size;
board/freescale/p2041rdb/eth.c +1 -1
@@ -120,7 +120,7 @@ void board_ft_fman_fixup_port(void *fdt, char *compat, phys_addr_t addr, }#endif /* #ifdef CONFIG_FMAN_ENET */ -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {#ifdef CONFIG_FMAN_ENET struct fsl_pq_mdio_info dtsec_mdio_info;
board/freescale/p2041rdb/p2041rdb.c +2 -2
@@ -20,7 +20,7 @@#include <asm/fsl_liodn.h> #include <fm_eth.h> -extern void pci_of_setup (void *blob,bd_t *bd); +extern void pci_of_setup (void *blob,struct bd_info *bd);#include "cpld.h"
@@ -215,7 +215,7 @@ int misc_init_r(void)return 0 ; } -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {phys_addr_t base;phys_size_t size;
board/freescale/qemu-ppce500/qemu-ppce500.c +2 -2
@@ -240,13 +240,13 @@ static uint64_t get_linear_ram_size(void)panic ("Couldn't determine RAM size" ); } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {return pci_eth_init (bis); }#if defined(CONFIG_OF_BOARD_SETUP ) -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {FT_FSL_PCI_SETUP ;
board/freescale/s32v234evb/s32v234evb.c +1 -1
@@ -86,7 +86,7 @@ int board_mmc_getcd(struct mmc *mmc)return 1 ; } -int board_mmc_init (bd_t * bis) +int board_mmc_init (struct bd_info * bis) { esdhc_cfg[0 ].sdhc_clk =mxc_get_clock (MXC_USDHC_CLK );
board/freescale/t102xqds/eth_t102xqds.c +1 -1
@@ -252,7 +252,7 @@ static void initialize_lane_to_slot(void) } } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {#if defined(CONFIG_FMAN_ENET )int i, idx, lane, slot, interface;
board/freescale/t102xqds/pci.c +1 -1
@@ -17,7 +17,7 @@ void pci_init_board(void)fsl_pcie_init_board (0 ); } -void pci_of_setup (void *blob,bd_t *bd) +void pci_of_setup (void *blob,struct bd_info *bd) {FT_FSL_PCI_SETUP ; }
board/freescale/t102xqds/spl.c +3 -3
@@ -111,10 +111,10 @@ void board_init_f(ulong bootflag)void board_init_r (gd_t *gd,ulong dest_addr) { -bd_t *bd; +struct bd_info *bd; - bd = (bd_t *)(gd +sizeof (gd_t)); -memset (bd,0 ,sizeof (bd_t)); + bd = (struct bd_info *)(gd +sizeof (gd_t)); +memset (bd,0 ,sizeof (struct bd_info )); gd->bd = bd; bd->bi_memstart =CONFIG_SYS_INIT_L3_ADDR ; bd->bi_memsize =CONFIG_SYS_L3_SIZE ;
board/freescale/t102xqds/t102xqds.c +1 -1
@@ -451,7 +451,7 @@ void fdt_fixup_spi_mux(void *blob) } } -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {phys_addr_t base;phys_size_t size;
board/freescale/t102xqds/t102xqds.h +1 -1
@@ -8,7 +8,7 @@#define __T102x_QDS_H__void fdt_fixup_board_enet (void *blob); -void pci_of_setup (void *blob,bd_t *bd); +void pci_of_setup (void *blob,struct bd_info *bd);int select_i2c_ch_pca9547 (u8 ch,int bus_num);#endif
board/freescale/t102xrdb/eth_t102xrdb.c +1 -1
@@ -26,7 +26,7 @@#include <asm/fsl_serdes.h> #include "../common/fman.h" -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {#if defined(CONFIG_FMAN_ENET )int i, interface;
board/freescale/t102xrdb/pci.c +1 -1
@@ -18,7 +18,7 @@ void pci_init_board(void)fsl_pcie_init_board (0 ); } -void pci_of_setup (void *blob,bd_t *bd) +void pci_of_setup (void *blob,struct bd_info *bd) {FT_FSL_PCI_SETUP ; }
board/freescale/t102xrdb/spl.c +3 -3
@@ -98,10 +98,10 @@ void board_init_f(ulong bootflag)void board_init_r (gd_t *gd,ulong dest_addr) { -bd_t *bd; +struct bd_info *bd; - bd = (bd_t *)(gd +sizeof (gd_t)); -memset (bd,0 ,sizeof (bd_t)); + bd = (struct bd_info *)(gd +sizeof (gd_t)); +memset (bd,0 ,sizeof (struct bd_info )); gd->bd = bd; bd->bi_memstart =CONFIG_SYS_INIT_L3_ADDR ; bd->bi_memsize =CONFIG_SYS_L3_SIZE ;
board/freescale/t102xrdb/t102xrdb.c +1 -1
@@ -183,7 +183,7 @@ int misc_init_r(void)return 0 ; } -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {phys_addr_t base;phys_size_t size;
board/freescale/t102xrdb/t102xrdb.h +1 -1
@@ -7,7 +7,7 @@#define __T1024_RDB_H__void fdt_fixup_board_enet (void *blob); -void pci_of_setup (void *blob,bd_t *bd); +void pci_of_setup (void *blob,struct bd_info *bd);#ifdef CONFIG_TARGET_T1023RDB static u32 t1023rdb_ctrl (u32 ctrl_type);static void fdt_enable_nor (void *blob);
board/freescale/t1040qds/eth.c +1 -1
@@ -436,7 +436,7 @@ void t1040_handle_phy_interface_rgmii(int i)fm_info_set_mdio (i,mii_dev_for_muxval (mdio_mux[i])); } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {#ifdef CONFIG_FMAN_ENET struct memac_mdio_info memac_mdio_info;
board/freescale/t1040qds/pci.c +1 -1
@@ -17,7 +17,7 @@ void pci_init_board(void)fsl_pcie_init_board (0 ); } -void pci_of_setup (void *blob,bd_t *bd) +void pci_of_setup (void *blob,struct bd_info *bd) {FT_FSL_PCI_SETUP ; }
board/freescale/t1040qds/t1040qds.c +1 -1
@@ -255,7 +255,7 @@ int misc_init_r(void)return 0 ; } -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {phys_addr_t base;phys_size_t size;
board/freescale/t1040qds/t1040qds.h +1 -1
@@ -8,7 +8,7 @@#define __T1040_QDS_H__void fdt_fixup_board_enet (void *blob); -void pci_of_setup (void *blob,bd_t *bd); +void pci_of_setup (void *blob,struct bd_info *bd);int select_i2c_ch_pca9547 (u8 ch,int bus_bum);#endif
board/freescale/t104xrdb/eth.c +1 -1
@@ -16,7 +16,7 @@#include "../common/fman.h" -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {#ifdef CONFIG_FMAN_ENET struct memac_mdio_info memac_mdio_info;
board/freescale/t104xrdb/pci.c +1 -1
@@ -18,7 +18,7 @@ void pci_init_board(void)fsl_pcie_init_board (0 ); } -void pci_of_setup (void *blob,bd_t *bd) +void pci_of_setup (void *blob,struct bd_info *bd) {FT_FSL_PCI_SETUP ; }
board/freescale/t104xrdb/spl.c +3 -3
@@ -89,10 +89,10 @@ void board_init_f(ulong bootflag)void board_init_r (gd_t *gd,ulong dest_addr) { -bd_t *bd; +struct bd_info *bd; - bd = (bd_t *)(gd +sizeof (gd_t)); -memset (bd,0 ,sizeof (bd_t)); + bd = (struct bd_info *)(gd +sizeof (gd_t)); +memset (bd,0 ,sizeof (struct bd_info )); gd->bd = bd; bd->bi_memstart =CONFIG_SYS_INIT_L3_ADDR ; bd->bi_memsize =CONFIG_SYS_L3_SIZE ;
board/freescale/t104xrdb/t104xrdb.c +1 -1
@@ -129,7 +129,7 @@ int misc_init_r(void)return 0 ; } -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {phys_addr_t base;phys_size_t size;
board/freescale/t104xrdb/t104xrdb.h +1 -1
@@ -7,6 +7,6 @@#define __T104x_RDB_H__void fdt_fixup_board_enet (void *blob); -void pci_of_setup (void *blob,bd_t *bd); +void pci_of_setup (void *blob,struct bd_info *bd);#endif
board/freescale/t208xqds/eth_t208xqds.c +1 -1
@@ -525,7 +525,7 @@ static void initialize_lane_to_slot(void) } } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {#if defined(CONFIG_FMAN_ENET )int i, idx, lane, slot, interface;
board/freescale/t208xqds/pci.c +1 -1
@@ -18,7 +18,7 @@ void pci_init_board(void)fsl_pcie_init_board (0 ); } -void pci_of_setup (void *blob,bd_t *bd) +void pci_of_setup (void *blob,struct bd_info *bd) {FT_FSL_PCI_SETUP ; }
board/freescale/t208xqds/spl.c +3 -3
@@ -97,10 +97,10 @@ void board_init_f(ulong bootflag)void board_init_r (gd_t *gd,ulong dest_addr) { -bd_t *bd; +struct bd_info *bd; - bd = (bd_t *)(gd +sizeof (gd_t)); -memset (bd,0 ,sizeof (bd_t)); + bd = (struct bd_info *)(gd +sizeof (gd_t)); +memset (bd,0 ,sizeof (struct bd_info )); gd->bd = bd; bd->bi_memstart =CONFIG_SYS_INIT_L3_ADDR ; bd->bi_memsize =CONFIG_SYS_L3_SIZE ;
board/freescale/t208xqds/t208xqds.c +1 -1
@@ -461,7 +461,7 @@ int misc_init_r(void)return 0 ; } -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {phys_addr_t base;phys_size_t size;
board/freescale/t208xqds/t208xqds.h +1 -1
@@ -7,6 +7,6 @@#define __CORENET_DS_H__void fdt_fixup_board_enet (void *blob); -void pci_of_setup (void *blob,bd_t *bd); +void pci_of_setup (void *blob,struct bd_info *bd);#endif
board/freescale/t208xrdb/eth_t208xrdb.c +1 -1
@@ -25,7 +25,7 @@#include <fsl_dtsec.h> #include <asm/fsl_serdes.h> -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {#if defined(CONFIG_FMAN_ENET )int i, interface;
board/freescale/t208xrdb/pci.c +1 -1
@@ -18,7 +18,7 @@ void pci_init_board(void)fsl_pcie_init_board (0 ); } -void pci_of_setup (void *blob,bd_t *bd) +void pci_of_setup (void *blob,struct bd_info *bd) {FT_FSL_PCI_SETUP ; }
board/freescale/t208xrdb/spl.c +3 -3
@@ -67,10 +67,10 @@ void board_init_f(ulong bootflag)void board_init_r (gd_t *gd,ulong dest_addr) { -bd_t *bd; +struct bd_info *bd; - bd = (bd_t *)(gd +sizeof (gd_t)); -memset (bd,0 ,sizeof (bd_t)); + bd = (struct bd_info *)(gd +sizeof (gd_t)); +memset (bd,0 ,sizeof (struct bd_info )); gd->bd = bd; bd->bi_memstart =CONFIG_SYS_INIT_L3_ADDR ; bd->bi_memsize =CONFIG_SYS_L3_SIZE ;
board/freescale/t208xrdb/t208xrdb.c +1 -1
@@ -114,7 +114,7 @@ int misc_init_r(void)return 0 ; } -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {phys_addr_t base;phys_size_t size;
board/freescale/t208xrdb/t208xrdb.h +1 -1
@@ -7,6 +7,6 @@#define __CORENET_DS_H__void fdt_fixup_board_enet (void *blob); -void pci_of_setup (void *blob,bd_t *bd); +void pci_of_setup (void *blob,struct bd_info *bd);#endif
board/freescale/t4qds/eth.c +1 -1
@@ -487,7 +487,7 @@ static void initialize_qsgmiiphy_fix(void) } } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {#if defined(CONFIG_FMAN_ENET )int i, idx, lane, slot, interface;
board/freescale/t4qds/pci.c +1 -1
@@ -17,7 +17,7 @@ void pci_init_board(void)fsl_pcie_init_board (0 ); } -void pci_of_setup (void *blob,bd_t *bd) +void pci_of_setup (void *blob,struct bd_info *bd) {FT_FSL_PCI_SETUP ; }
board/freescale/t4qds/spl.c +3 -3
@@ -106,10 +106,10 @@ void board_init_f(ulong bootflag)void board_init_r (gd_t *gd,ulong dest_addr) { -bd_t *bd; +struct bd_info *bd; - bd = (bd_t *)(gd +sizeof (gd_t)); -memset (bd,0 ,sizeof (bd_t)); + bd = (struct bd_info *)(gd +sizeof (gd_t)); +memset (bd,0 ,sizeof (struct bd_info )); gd->bd = bd; bd->bi_memstart =CONFIG_SYS_INIT_L3_ADDR ; bd->bi_memsize =CONFIG_SYS_L3_SIZE ;
board/freescale/t4qds/t4240emu.c +1 -1
@@ -66,7 +66,7 @@ int misc_init_r(void)return 0 ; } -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {phys_addr_t base;phys_size_t size;
board/freescale/t4qds/t4240qds.c +1 -1
@@ -716,7 +716,7 @@ int misc_init_r(void)return 0 ; } -int ft_board_setup (void *blob,bd_t *bd) +int ft_board_setup (void *blob,struct bd_info *bd) {phys_addr_t base;phys_size_t size;
board/freescale/t4qds/t4qds.h +1 -1
@@ -7,6 +7,6 @@#define __CORENET_DS_H__void fdt_fixup_board_enet (void *blob); -void pci_of_setup (void *blob,bd_t *bd); +void pci_of_setup (void *blob,struct bd_info *bd);#endif
board/freescale/t4rdb/eth.c +1 -1
@@ -36,7 +36,7 @@ void fdt_fixup_board_enet(void *fdt)return ; } -int board_eth_init (bd_t *bis) +int board_eth_init (struct bd_info *bis) {#if defined(CONFIG_FMAN_ENET )int i, interface;
board/freescale/t4rdb/pci.c +1 -1
@@ -18,7 +18,7 @@ void pci_init_board(void)fsl_pcie_init_board (0 ); } -void pci_of_setup (void *blob,bd_t *bd) +void pci_of_setup (void *blob,struct bd_info *bd) {FT_FSL_PCI_SETUP ; }
board/freescale/t4rdb/spl.c +3 -3
@@ -70,10 +70,10 @@ void board_init_f(ulong bootflag)void board_init_r (gd_t *gd,ulong dest_addr) { -bd_t *bd; +struct bd_info *bd;
Lines of this file are not shown. View the raw message.
board/gateworks/gw_ventana/gw_ventana.c +3 -3
Lines of this file are not shown. View the raw message.
board/inversepath/usbarmory/usbarmory.c +1 -1
Lines of this file are not shown. View the raw message.
board/mini-box/picosam9g45/picosam9g45.c +2 -2
Lines of this file are not shown. View the raw message.
board/olimex/mx23_olinuxino/mx23_olinuxino.c +1 -1
Lines of this file are not shown. View the raw message.
board/qualcomm/dragonboard410c/dragonboard410c.c +1 -1
Lines of this file are not shown. View the raw message.
board/schulercontrol/sc_sps_1/sc_sps_1.c +2 -2
Lines of this file are not shown. View the raw message.
board/softing/vining_2000/vining_2000.c +1 -1
Lines of this file are not shown. View the raw message.
board/technexion/pico-imx6ul/pico-imx6ul.c +1 -1
Lines of this file are not shown. View the raw message.
board/toradex/apalis-imx8/apalis-imx8.c +1 -1
Lines of this file are not shown. View the raw message.
board/toradex/apalis_imx6/apalis_imx6.c +2 -2
Lines of this file are not shown. View the raw message.
board/toradex/colibri-imx6ull/colibri-imx6ull.c +1 -1
Lines of this file are not shown. View the raw message.
board/toradex/colibri-imx8x/colibri-imx8x.c +1 -1
Lines of this file are not shown. View the raw message.
board/toradex/colibri_imx6/colibri_imx6.c +2 -2
Lines of this file are not shown. View the raw message.
board/toradex/colibri_imx7/colibri_imx7.c +1 -1
Lines of this file are not shown. View the raw message.
board/toradex/colibri_pxa270/colibri_pxa270.c +3 -3
Lines of this file are not shown. View the raw message.
board/toradex/colibri_t20/colibri_t20.c +1 -1
Lines of this file are not shown. View the raw message.
board/toradex/colibri_t30/colibri_t30.c +1 -1
Lines of this file are not shown. View the raw message.
board/toradex/verdin-imx8mm/verdin-imx8mm.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/pci/pcie_layerscape_fixup_common.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/pci/pcie_layerscape_fixup_common.h +2 -2
Lines of this file are not shown. View the raw message.
drivers/pci/pcie_layerscape_gen4_fixup.c +2 -2
Lines of this file are not shown. View the raw message.
include/netdev.h +38 -36
74 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.25.1
Part of the diff is not shown here. View the raw message.
PATCH 2/3 treewide: convert bd_t to struct bd_info manually
Some code was not converted by coccinelle, somehow.
I manually fixed up the remaining, and comments, README docs.
---
arch/m68k/cpu/mcf523x/cpu.c | 2 +- arch/m68k/cpu/mcf52x2/cpu.c | 2 +- arch/m68k/cpu/mcf532x/cpu.c | 2 +- arch/m68k/cpu/mcf5445x/cpu.c | 2 +- arch/m68k/cpu/mcf547x_8x/cpu.c | 2 +- cmd/bootm.c | 2 +- doc/README.POST | 6 +++--- doc/README.arm-relocation | 4 ++-- doc/README.atmel_mci | 2 +- doc/README.console | 2 +- doc/README.generic-board | 2 +- doc/driver-model/ethernet.rst | 2 +- drivers/net/fec_mxc.c | 4 ++-- drivers/net/ldpaa_eth/ldpaa_eth.c | 2 +- drivers/net/smc911x.c | 2 +- 15 files changed, 19 insertions(+), 19 deletions(-)
arch/m68k/cpu/mcf523x/cpu.c +1 -1
@@ -105,7 +105,7 @@ int watchdog_init(void)#if defined(CONFIG_MCFFEC )/* Default initializations for MCFFEC controllers. To override, * create a board-specific function called: -* int board_eth_init(bd_t *bis) +* int board_eth_init(struct bd_info *bis) */ int cpu_eth_init (struct bd_info *bis)
arch/m68k/cpu/mcf52x2/cpu.c +1 -1
@@ -420,7 +420,7 @@ int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])#if defined(CONFIG_MCFFEC )/* Default initializations for MCFFEC controllers. To override, * create a board-specific function called: -* int board_eth_init(bd_t *bis) +* int board_eth_init(struct bd_info *bis) */ int cpu_eth_init (struct bd_info *bis)
arch/m68k/cpu/mcf532x/cpu.c +1 -1
@@ -147,7 +147,7 @@ int watchdog_init(void)#if defined(CONFIG_MCFFEC )/* Default initializations for MCFFEC controllers. To override, * create a board-specific function called: -* int board_eth_init(bd_t *bis) +* int board_eth_init(struct bd_info *bis) */ int cpu_eth_init (struct bd_info *bis) {
arch/m68k/cpu/mcf5445x/cpu.c +1 -1
@@ -109,7 +109,7 @@ int print_cpuinfo(void)#if defined(CONFIG_MCFFEC )/* Default initializations for MCFFEC controllers. To override, * create a board-specific function called: -* int board_eth_init(bd_t *bis) +* int board_eth_init(struct bd_info *bis) */ int cpu_eth_init (struct bd_info *bis)
arch/m68k/cpu/mcf547x_8x/cpu.c +1 -1
@@ -136,7 +136,7 @@ int watchdog_init(void)#if defined(CONFIG_FSLDMAFEC ) || defined(CONFIG_MCFFEC )/* Default initializations for MCFFEC controllers. To override, * create a board-specific function called: -* int board_eth_init(bd_t *bis) +* int board_eth_init(struct bd_info *bis) */ int cpu_eth_init (struct bd_info *bis)
cmd/bootm.c +1 -1
@@ -185,7 +185,7 @@ static char bootm_help_text[] ="\tfdt - relocate flat device tree\n" #endif"\tcmdline - OS specific command line processing/setup\n" -"\tbdt - OS specific bd_t processing\n" +"\tbdt - OS specific bd_info processing\n" "\tprep - OS specific prep before relocation or go\n"#if defined(CONFIG_TRACE )"\tfake - OS specific fake start without go\n"
doc/README.POST +3 -3
@@ -126,7 +126,7 @@ The following flags will be defined: The POST layer will export the following interface routines: - o) int post_run(bd_t *bd, char *name, int flags); + o) int post_run(struct bd_info *bd, char *name, int flags); This routine will run the test (or the group of tests) specified by the name and flag arguments. More specifically, if the name
@@ -175,7 +175,7 @@ struct post_test { char *cmd; char *desc; int flags; - int (*test)(bd_t *bd, int flags); + int (*test)(struct bd_info *bd, int flags); }; o) name
@@ -364,7 +364,7 @@ declaration/body: ... ... -int watchdog_post_test(bd_t *bd, int flags) +int watchdog_post_test(struct bd_info *bd, int flags) { unsigned long start_time;
doc/README.arm-relocation +2 -2
@@ -27,7 +27,7 @@ At board level: TODO: move also dram initialization there on boards where it is possible. - Setup of the the bd_t dram bank info is done in the new function + Setup of the bd_info dram bank info is done in the new function dram_init_banksize() called after bd is accessible. At lib level:
@@ -65,7 +65,7 @@ in f) could be saved. TODO -- fill in bd_t infos (check) +- fill in struct bd_info infos (check) - adapt all boards - maybe adapt CONFIG_SYS_TEXT_BASE (this must be checked from board maintainers)
doc/README.atmel_mci +1 -1
@@ -47,7 +47,7 @@ the board specific file need added: ... #ifdef CONFIG_GENERIC_ATMEL_MCI /* this is a weak define that we are overriding */ -int board_mmc_init(bd_t *bd) +int board_mmc_init(struct bd_info *bd) { /* Enable clock */ at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9260_ID_MCI);
doc/README.console +1 -1
@@ -62,7 +62,7 @@ U-Boot relocation (done in 'board_init_r' in arch/*/lib/board.c). HOW CAN I USE STANDARD FILE INTO APPLICATIONS? ---------------------------------------------- -Use the 'bd_mon_fnc' field of the bd_t structure passed to the +Use the 'bd_mon_fnc' field of the bd_info structure passed to the application to do everything you want with the console. But REMEMBER that that will work only if you have not overwritten any
doc/README.generic-board +1 -1
@@ -22,7 +22,7 @@ The main change is that the arch/<arch>/lib/board.c file is removed in favour of common/board_f.c (for pre-relocation init) and common/board_r.c (for post-relocation init). -Related to this, the global_data and bd_t structures now have a core set of +Related to this, the global_data and bd_info structures now have a core set of fields which are common to all architectures. Architecture-specific fields have been moved to separate structures.
doc/driver-model/ethernet.rst +1 -1
@@ -250,7 +250,7 @@ register function. The pseudo code would look something like: .. code-block:: c - int ape_register(bd_t *bis, int iobase) + int ape_register(struct bd_info *bis, int iobase) { struct ape_priv *priv; struct eth_device *dev;
drivers/net/fec_mxc.c +2 -2
@@ -588,7 +588,7 @@ static int fec_open(struct eth_device *edev)#ifdef CONFIG_DM_ETH static int fecmxc_init(struct udevice *dev)#else -static int fec_init(struct eth_device *dev, bd_t *bd) +static int fec_init(struct eth_device *dev, struct bd_info *bd)#endif {#ifdef CONFIG_DM_ETH
@@ -1105,7 +1105,7 @@ struct mii_dev *fec_get_miibus(ulong base_addr, int dev_id)int fec_probe (struct bd_info *bd,int dev_id,uint32_t base_addr, struct mii_dev *bus, struct phy_device *phydev)#else -static int fec_probe (bd_t *bd,int dev_id,uint32_t base_addr, +static int fec_probe (struct bd_info *bd,int dev_id,uint32_t base_addr, struct mii_dev *bus, int phy_id)#endif {
drivers/net/ldpaa_eth/ldpaa_eth.c +1 -1
@@ -514,7 +514,7 @@ static int ldpaa_eth_open(struct udevice *dev)struct eth_pdata *plat =dev_get_platdata (dev);struct ldpaa_eth_priv *priv =dev_get_priv (dev);#else -static int ldpaa_eth_open (struct eth_device *net_dev,bd_t *bd) +static int ldpaa_eth_open (struct eth_device *net_dev,struct bd_info *bd) {struct ldpaa_eth_priv *priv = (struct ldpaa_eth_priv *)net_dev->priv;#endif
drivers/net/smc911x.c +1 -1
@@ -435,7 +435,7 @@ static int smc911x_initialize_mii(struct smc911x_priv *priv) }#endif -static int smc911x_init (struct eth_device *dev,bd_t *bd) +static int smc911x_init (struct eth_device *dev,struct bd_info *bd) { struct smc911x_priv *priv = container_of(dev, struct smc911x_priv, dev);
Signature · 1 line
2.25.1
PATCH 2/3 treewide: convert bd_t to struct bd_info manually
Quoted 5 lines · Masahiro Yamada
Some code was not converted by coccinelle, somehow.
I manually fixed up the remaining, and comments, README docs.
Signed-off-by Masahiro Yamada <[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/20200717/3c93d552/attachment.sig>
PATCH 3/3 asm/u-boot.h: remove bd_t definitions
In reply to Masahiro YamadaAll the users of bd_t were converted to struct bd_info.
Remove the definitions.
---
arch/nds32/include/asm/u-boot.h | 5 ++--- arch/riscv/include/asm/u-boot.h | 5 ++--- include/asm-generic/u-boot.h | 4 ++-- 3 files changed, 6 insertions(+), 8 deletions(-)
arch/nds32/include/asm/u-boot.h +2 -3
@@ -21,8 +21,7 @@#include <asm/u-boot-nds32.h> - -typedef struct bd_info { +struct bd_info {unsigned long bi_arch_number;/* unique id for this board */ unsigned long bi_boot_params;/* where this board expects params */ unsigned long bi_memstart;/* start of DRAM memory */
@@ -37,7 +36,7 @@ typedef struct bd_info {unsigned long start;unsigned long size; } bi_dram[CONFIG_NR_DRAM_BANKS ]; -} bd_t; +};/* For image.h:image_check_target_arch() */ #define IH_ARCH_DEFAULT IH_ARCH_NDS32
arch/riscv/include/asm/u-boot.h +2 -3
@@ -20,8 +20,7 @@#include <asm/u-boot-riscv.h> - -typedef struct bd_info { +struct bd_info {unsigned long bi_boot_params;/* where this board expects params */ unsigned long bi_memstart;/* start of DRAM memory */ unsigned long bi_memsize;/* size of DRAM memory in bytes */
@@ -35,7 +34,7 @@ typedef struct bd_info {unsigned long start;unsigned long size; } bi_dram[CONFIG_NR_DRAM_BANKS ]; -} bd_t; +};/* For image.h:image_check_target_arch() */ #define IH_ARCH_DEFAULT IH_ARCH_RISCV
include/asm-generic/u-boot.h +2 -2
@@ -26,7 +26,7 @@#include <asm/types.h> #include <linux/types.h> -typedef struct bd_info { +struct bd_info {unsigned long bi_memstart;/* start of DRAM memory */ phys_size_t bi_memsize;/* size of DRAM memory in bytes */ unsigned long bi_flashstart;/* start of FLASH memory */
@@ -94,7 +94,7 @@ typedef struct bd_info {phys_size_t size; } bi_dram[CONFIG_NR_DRAM_BANKS];#endif /* CONFIG_NR_DRAM_BANKS */ -} bd_t; +};#endif /* __ASSEMBLY__ */
Signature · 1 line
2.25.1
PATCH 3/3 asm/u-boot.h: remove bd_t definitions
Quoted 5 lines · Masahiro Yamada
All the users of
bd_twere converted to structbd_info.Remove the definitions.
Signed-off-by Masahiro Yamada <[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/20200717/c949ad8b/attachment.sig>
PATCH 1/3 treewide: convert bd_t to struct bd_info by coccinelle
In reply to Masahiro YamadaQuoted 41 lines · Masahiro Yamada
The Linux coding style guide (
Documentation/process/coding-style.rst) clearly says:It's a **mistake** to use typedef for structures and pointers.
Besides, using typedef for structures is annoying when you try to make headers self-contained.
Let's say you have the following function declaration in a header:
void foo(bd_t *bd);This is not self-contained since
bd_tis not defined.To tell the compiler what '
bd_t' is, you need to include <asm/u-boot.h>#include <asm/u-boot.h> void foo(bd_t *bd);Then, the include direcective pulls in more bloat needlessly.
If you use 'struct
bd_info' instead, it is enough to put a forward declaration as follows:struct bd_info; void foo(struct bd_info *bd);Right, typedef'ing
bd_tis a mistake.I used coccinelle to generate this commit.
The semantic patch that makes this change is as follows:
<smpl>
@@
typedefbd_t;
@@
-bd_t
+structbd_info
</smpl>
Quoted 1 line
Signed-off-by Masahiro Yamada <[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/20200717/968ee277/attachment.sig>