arm: Don't include common.h in header files
authorSimon Glass <sjg@chromium.org>
Sun, 10 May 2020 17:39:55 +0000 (11:39 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 18 May 2020 18:54:24 +0000 (14:54 -0400)
It is bad practice to include common.h in other header files since it can
bring in any number of superfluous definitions. It implies that some C
files don't include it and thus may be missing CONFIG options that are set
up by that file. The C files should include these themselves.

Update some header files in arch/arm to drop this.

Signed-off-by: Simon Glass <sjg@chromium.org>
80 files changed:
arch/arm/cpu/armv8/fwcall.c
arch/arm/include/asm/arch-am33xx/clk_synthesizer.h
arch/arm/include/asm/arch-am33xx/mux.h
arch/arm/include/asm/arch-am33xx/mux_am33xx.h
arch/arm/include/asm/arch-am33xx/mux_am43xx.h
arch/arm/include/asm/arch-am33xx/mux_ti816x.h
arch/arm/include/asm/arch-fsl-layerscape/clock.h
arch/arm/include/asm/arch-lpc32xx/dma.h
arch/arm/include/asm/arch-lpc32xx/i2c.h
arch/arm/include/asm/arch-ls102xa/clock.h
arch/arm/include/asm/arch-mx25/clock.h
arch/arm/include/asm/arch-mx31/clock.h
arch/arm/include/asm/arch-mx35/clock.h
arch/arm/include/asm/arch-mx5/clock.h
arch/arm/include/asm/arch-mx6/clock.h
arch/arm/include/asm/arch-mx7/clock.h
arch/arm/include/asm/arch-mx7ulp/clock.h
arch/arm/include/asm/arch-mx7ulp/pcc.h
arch/arm/include/asm/arch-mx7ulp/scg.h
arch/arm/include/asm/arch-omap4/clock.h
arch/arm/include/asm/arch-omap5/clock.h
arch/arm/include/asm/arch-omap5/dra7xx_iodelay.h
arch/arm/include/asm/arch-rk3308/cru_rk3308.h
arch/arm/include/asm/arch-rk3308/grf_rk3308.h
arch/arm/include/asm/arch-rockchip/cru_px30.h
arch/arm/include/asm/arch-rockchip/cru_rk3036.h
arch/arm/include/asm/arch-rockchip/cru_rk3128.h
arch/arm/include/asm/arch-rockchip/cru_rk322x.h
arch/arm/include/asm/arch-rockchip/cru_rk3328.h
arch/arm/include/asm/arch-rockchip/cru_rk3368.h
arch/arm/include/asm/arch-rockchip/cru_rk3399.h
arch/arm/include/asm/arch-rockchip/cru_rv1108.h
arch/arm/include/asm/arch-rockchip/grf_px30.h
arch/arm/include/asm/arch-rockchip/grf_rk3036.h
arch/arm/include/asm/arch-rockchip/grf_rk3128.h
arch/arm/include/asm/arch-rockchip/grf_rk322x.h
arch/arm/include/asm/arch-rockchip/grf_rk3368.h
arch/arm/include/asm/arch-rockchip/grf_rv1108.h
arch/arm/include/asm/arch-rockchip/sdram_rk3036.h
arch/arm/include/asm/arch-rockchip/sdram_rk322x.h
arch/arm/include/asm/arch-s32v234/clock.h
arch/arm/include/asm/arch-sunxi/rsb.h
arch/arm/include/asm/arch-tegra/ivc.h
arch/arm/include/asm/arch-tegra/tegra_mmc.h
arch/arm/include/asm/arch-vf610/clock.h
arch/arm/include/asm/dma-mapping.h
arch/arm/include/asm/emif.h
arch/arm/include/asm/mach-imx/iomux-v3.h
arch/arm/include/asm/mach-imx/sys_proto.h
arch/arm/include/asm/omap_common.h
arch/arm/include/asm/omap_sec_common.h
arch/arm/include/asm/psci.h
arch/arm/include/asm/system.h
arch/arm/mach-imx/ddrmc-vf610.c
arch/arm/mach-imx/mx7ulp/soc.c
arch/arm/mach-imx/sata.c
arch/arm/mach-omap2/am33xx/ddr.c
arch/arm/mach-omap2/omap4/sdram_elpida.c
arch/arm/mach-omap2/omap5/sdram.c
arch/arm/mach-rockchip/rk3036/rk3036.c
board/compulab/cm_t54/mux.c
board/el/el6x/el6x.c
board/embest/mx6boards/mx6boards.c
board/gateworks/gw_ventana/common.c
board/grinn/liteboard/board.c
board/overo/spl.c
board/sks-kinkel/sksimx6/sksimx6.c
board/solidrun/mx6cuboxi/mx6cuboxi.c
board/technexion/pico-imx6/spl.c
board/technexion/pico-imx7d/spl.c
board/udoo/udoo_spl.c
board/wandboard/spl.c
board/wandboard/wandboard.c
drivers/mtd/nand/raw/denali.c
drivers/mtd/nand/raw/denali_dt.c
drivers/usb/eth/lan7x.h
include/linux/compat.h
include/linux/mtd/rawnand.h
include/net.h
include/spl.h

index cbd35b7f4a2a89d19b02139fc4c15d0ce8e81265..4bffec9560a72d09aacc87511a596f46d8c0d209 100644 (file)
@@ -10,6 +10,7 @@
 #include <version.h>
 #include <asm/macro.h>
 #include <asm/psci.h>
+#include <asm/ptrace.h>
 #include <asm/system.h>
 
 /*
index 6579cc0c5d91455ecd4b22740c02bd8f16310d57..7bcafba6f0b56013f8e792c35315f08b1286b0cb 100644 (file)
@@ -10,8 +10,6 @@
 #ifndef __CLK_SYNTHESIZER_H
 #define __CLK_SYNTHESIZER_H
 
-#include <common.h>
-
 #define CLK_SYNTHESIZER_ID_REG         0x0
 #define CLK_SYNTHESIZER_XCSEL          0x05
 #define CLK_SYNTHESIZER_MUX_REG                0x14
index d8bf87258b5d2ec07227ddd1b815dfced2ccad5f..b16b18473361eff476d0c7285b71586a1060c70d 100644 (file)
@@ -16,7 +16,6 @@
 #ifndef _MUX_H_
 #define _MUX_H_
 
-#include <common.h>
 #include <asm/io.h>
 
 #ifdef CONFIG_AM33XX
index d5cab3e0834a479df4498ba3f77d4a187feda0ed..26bd4b46ffbe2e45d488df11c2f045622df0744a 100644 (file)
@@ -16,7 +16,6 @@
 #ifndef _MUX_AM33XX_H_
 #define _MUX_AM33XX_H_
 
-#include <common.h>
 #include <asm/io.h>
 
 #define MUX_CFG(value, offset) \
index 256c5e243f8be2f1cbec28ed957eead57fa0df8a..f74ae74ff163cb23fbd8c83765f8efcd2433d65e 100644 (file)
@@ -8,7 +8,6 @@
 #ifndef _MUX_AM43XX_H_
 #define _MUX_AM43XX_H_
 
-#include <common.h>
 #include <asm/io.h>
 
 #define MUX_CFG(value, offset) \
index e4e5a48ad67f7fdfbc10fa5f3b6d96159ef97a73..a6a8a988a0c4676071f4ef54d6231df113ce6895 100644 (file)
@@ -17,7 +17,6 @@
 #ifndef _MUX_TI816X_H_
 #define _MUX_TI816X_H_
 
-#include <common.h>
 #include <asm/io.h>
 
 #define MUX_CFG(value, offset)  \
index 95d6156476f4494affea3897b665ab6c77a83700..d5616914374a7d53a753027406629b7b12934a01 100644 (file)
@@ -8,8 +8,6 @@
 #ifndef __ASM_ARCH_FSL_LAYERSCAPE_CLOCK_H_
 #define __ASM_ARCH_FSL_LAYERSCAPE_CLOCK_H_
 
-#include <common.h>
-
 enum mxc_clock {
        MXC_ARM_CLK = 0,
        MXC_BUS_CLK,
index 877549124598ebcb5a8961cb86d9de1eb32519ea..d69e3c4664de4a57ebafc7f476fd387a95763d5f 100644 (file)
@@ -11,8 +11,6 @@
 #ifndef _LPC32XX_DMA_H
 #define _LPC32XX_DMA_H
 
-#include <common.h>
-
 /*
  * DMA linked list structure used with a channel's LLI register;
  * refer to UM10326, "LPC32x0 and LPC32x0/01 User manual" - Rev. 3
index 5301d4c1b0f6969d0079a07990983d33e7b0a3c6..f39b14001b67b83aa008fe14fd9ac8d8f7712a4f 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef _LPC32XX_I2C_H
 #define _LPC32XX_I2C_H
 
-#include <common.h>
 #include <asm/types.h>
 
 /* i2c register set */
index e66e57f7598cec1df4f1d23882595c60bbb2ac8e..01978c08f5e34bd820caff3ebff5367425389a05 100644 (file)
@@ -7,8 +7,6 @@
 #ifndef __ASM_ARCH_LS102XA_CLOCK_H_
 #define __ASM_ARCH_LS102XA_CLOCK_H_
 
-#include <common.h>
-
 enum mxc_clock {
        MXC_ARM_CLK = 0,
        MXC_UART_CLK,
index 7eec73163b3952ad7bee512c74ce929dba868e4b..3045b78d08f41e26431ada62b7bc683618658c6f 100644 (file)
@@ -9,8 +9,6 @@
 #ifndef __ASM_ARCH_CLOCK_H
 #define __ASM_ARCH_CLOCK_H
 
-#include <common.h>
-
 #ifdef CONFIG_MX25_HCLK_FREQ
 #define MXC_HCLK       CONFIG_MX25_HCLK_FREQ
 #else
index aafc2d690efa96c73a09423b93865c785bf6228d..e99e115f79e789d7bd8c5c6451392dc661c4f072 100644 (file)
@@ -7,8 +7,6 @@
 #ifndef __ASM_ARCH_CLOCK_H
 #define __ASM_ARCH_CLOCK_H
 
-#include <common.h>
-
 #define MXC_HCLK       CONFIG_MX31_HCLK_FREQ
 
 #define MXC_CLK32      CONFIG_MX31_CLK32
index 788534083c8e31a41578d3337607b5c827f52487..cb0b53a69f4df6b9ba7aa372f85752126da31025 100644 (file)
@@ -7,8 +7,6 @@
 #ifndef __ASM_ARCH_CLOCK_H
 #define __ASM_ARCH_CLOCK_H
 
-#include <common.h>
-
 #ifdef CONFIG_MX35_HCLK_FREQ
 #define MXC_HCLK       CONFIG_MX35_HCLK_FREQ
 #else
index 6f5ca5888aeaaa6d78230abfadf5dea024d50127..63a51042e1ebfa06c5f0ad6861b882253730935f 100644 (file)
@@ -7,8 +7,6 @@
 #ifndef __ASM_ARCH_CLOCK_H
 #define __ASM_ARCH_CLOCK_H
 
-#include <common.h>
-
 #ifdef CONFIG_SYS_MX5_HCLK
 #define MXC_HCLK       CONFIG_SYS_MX5_HCLK
 #else
index f7760541a4c1123108957b8e353348812e5a12ad..769917679e5a9e80ce808d08b07cdaf5e8bf3c03 100644 (file)
@@ -7,7 +7,7 @@
 #ifndef __ASM_ARCH_CLOCK_H
 #define __ASM_ARCH_CLOCK_H
 
-#include <common.h>
+#include <linux/types.h>
 
 #ifdef CONFIG_SYS_MX6_HCLK
 #define MXC_HCLK       CONFIG_SYS_MX6_HCLK
@@ -21,6 +21,8 @@
 #define MXC_CLK32      32768
 #endif
 
+struct cmd_tbl_s;
+
 enum mxc_clock {
        MXC_ARM_CLK = 0,
        MXC_PER_CLK,
@@ -80,5 +82,6 @@ void enable_thermal_clk(void);
 void mxs_set_lcdclk(u32 base_addr, u32 freq);
 void select_ldb_di_clock_source(enum ldb_di_clock clk);
 void enable_eim_clk(unsigned char enable);
-int do_mx6_showclocks(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
+int do_mx6_showclocks(struct cmd_tbl_s *cmdtp, int flag, int argc,
+                     char *const argv[]);
 #endif /* __ASM_ARCH_CLOCK_H */
index 984bd3f141a3d72e63287bbe038a17457ac69e50..48c7c3367a537fff580f7e23672b194099400158 100644 (file)
@@ -9,7 +9,6 @@
 #ifndef _ASM_ARCH_CLOCK_H
 #define _ASM_ARCH_CLOCK_H
 
-#include <common.h>
 #include <asm/arch/crm_regs.h>
 
 #ifdef CONFIG_SYS_MX7_HCLK
index eb02a20fdc52b2e32619cc19d5522ec54dd5b4f6..92d4463dff5fa2a7a19e6bea9e9d7ef6381b23fd 100644 (file)
@@ -6,7 +6,6 @@
 #ifndef _ASM_ARCH_CLOCK_H
 #define _ASM_ARCH_CLOCK_H
 
-#include <common.h>
 #include <asm/arch/pcc.h>
 #include <asm/arch/scg.h>
 
index dee3cfcdc00439d92f216cfd6056f33050500ae8..8f0d7006286d480c50bcaf4998afbe2e573ff9fe 100644 (file)
@@ -6,7 +6,6 @@
 #ifndef _ASM_ARCH_PCC_H
 #define _ASM_ARCH_PCC_H
 
-#include <common.h>
 #include <asm/arch/scg.h>
 
 /* PCC2 */
index b79bde338f4a119ed258cff97c6d96135fdc2a3d..3b5b7f6803ce10f2e419e5612469a6ad785d59a8 100644 (file)
@@ -6,8 +6,6 @@
 #ifndef _ASM_ARCH_SCG_H
 #define _ASM_ARCH_SCG_H
 
-#include <common.h>
-
 #ifdef CONFIG_CLK_DEBUG
 #define clk_debug(fmt, args...)        printf(fmt, ##args)
 #else
index 037045ca31424dc3fb76013961ac1a7ad308a0db..0a626fe647a293584dcb909d42fc0829511c96d9 100644 (file)
@@ -7,7 +7,6 @@
  */
 #ifndef _CLOCKS_OMAP4_H_
 #define _CLOCKS_OMAP4_H_
-#include <common.h>
 #include <asm/omap_common.h>
 
 /*
index e261bd43f26ddd1fc1676d8a872c75f72d71af85..87eb3f335ab061e6d9945c77bbc027bd7767409e 100644 (file)
@@ -8,7 +8,6 @@
  */
 #ifndef _CLOCKS_OMAP5_H_
 #define _CLOCKS_OMAP5_H_
-#include <common.h>
 #include <asm/omap_common.h>
 
 /*
index 09edfadc321bdebfcbf64f7c32c5e16a0d4f4873..ea2f113f98debb8b1a0d1342f8eb4f750e2620aa 100644 (file)
@@ -9,7 +9,6 @@
 #ifndef _DRA7_IODELAY_H_
 #define _DRA7_IODELAY_H_
 
-#include <common.h>
 #include <asm/arch/sys_proto.h>
 
 /* CONFIG_REG_0 */
index a14b64cdb3e077386cee6516efeb8c7d5dbe262f..86c906bb0edd933f9bcf76a526ff95b03ceed649 100644 (file)
@@ -5,8 +5,6 @@
 #ifndef _ASM_ARCH_CRU_RK3308_H
 #define _ASM_ARCH_CRU_RK3308_H
 
-#include <common.h>
-
 #define MHz            1000000
 #define OSC_HZ         (24 * MHz)
 
index 3e68626d3e9adbf5645f71f07c61d1f44304ba9a..a995bb950d975711f2a6776d75242fb5ac9620cb 100644 (file)
@@ -5,8 +5,6 @@
 #ifndef _ASM_ARCH_GRF_rk3308_H
 #define _ASM_ARCH_GRF_rk3308_H
 
-#include <common.h>
-
 struct rk3308_grf {
        unsigned int gpio0a_iomux;
        unsigned int reserved0;
index 798444ae49f5d2d7aefc9d8bb12388f9a0badc8f..732ca3704034728ec1c5abc3b146e0d6436655b8 100644 (file)
@@ -5,8 +5,6 @@
 #ifndef _ASM_ARCH_CRU_PX30_H
 #define _ASM_ARCH_CRU_PX30_H
 
-#include <common.h>
-
 #define MHz            1000000
 #define KHz            1000
 #define OSC_HZ         (24 * MHz)
index 4722522954072c5d8ad7c6f578ded70f2013d3c7..5db0407baa7571bf0bb8446b57cfc78de08aac49 100644 (file)
@@ -5,8 +5,6 @@
 #ifndef _ASM_ARCH_CRU_RK3036_H
 #define _ASM_ARCH_CRU_RK3036_H
 
-#include <common.h>
-
 #define OSC_HZ         (24 * 1000 * 1000)
 
 #define APLL_HZ                (600 * 1000000)
index b8565605cd8a6a7e67279c129fe253df463393b7..40a5ca7390e36d53f75539204aacb8efdb988987 100644 (file)
@@ -6,8 +6,6 @@
 #ifndef _ASM_ARCH_CRU_RK3128_H
 #define _ASM_ARCH_CRU_RK3128_H
 
-#include <common.h>
-
 #define MHz            1000000
 #define OSC_HZ         (24 * MHz)
 
index c87c830716dec2f334f834d5c2c597d0e65d94c6..ee12fa831f28fb4899c2606822400194e53c56fd 100644 (file)
@@ -5,8 +5,6 @@
 #ifndef _ASM_ARCH_CRU_RK322X_H
 #define _ASM_ARCH_CRU_RK322X_H
 
-#include <common.h>
-
 #define MHz            1000000
 #define OSC_HZ         (24 * MHz)
 
index 4bf69dbe08868c88c8ccbb7b4ea3d0e72dfa7a49..226744d67d9fdb16893a603a75676a8c36f23a08 100644 (file)
@@ -6,8 +6,6 @@
 #ifndef __ASM_ARCH_CRU_RK3328_H_
 #define __ASM_ARCH_CRU_RK3328_H_
 
-#include <common.h>
-
 struct rk3328_clk_priv {
        struct rk3328_cru *cru;
        ulong rate;
index 1fe1f01b9e5b99d4bfa8034e9ad15849e2811527..714cea85b4b9e4731e20bfc91b383743bc73b795 100644 (file)
@@ -6,9 +6,6 @@
 #ifndef _ASM_ARCH_CRU_RK3368_H
 #define _ASM_ARCH_CRU_RK3368_H
 
-#include <common.h>
-
-
 /* RK3368 clock numbers */
 enum rk3368_pll_id {
        APLLB,
index 789ca6aa28f2b971b3c7b5d66b44ae2c423228b2..d941a129f3e5fd88806e34b97c881a63887f0edc 100644 (file)
@@ -6,8 +6,6 @@
 #ifndef __ASM_ARCH_CRU_RK3399_H_
 #define __ASM_ARCH_CRU_RK3399_H_
 
-#include <common.h>
-
 /* Private data for the clock driver - used by rockchip_get_cru() */
 struct rk3399_clk_priv {
        struct rockchip_cru *cru;
index 7697e96a91ee72047d009878efbc87adc9e22c72..1db25afe264b3d1dea821f5b36fb8ebad8922285 100644 (file)
@@ -6,8 +6,6 @@
 #ifndef _ASM_ARCH_CRU_RV1108_H
 #define _ASM_ARCH_CRU_RV1108_H
 
-#include <common.h>
-
 #define OSC_HZ         (24 * 1000 * 1000)
 
 #define APLL_HZ                (600 * 1000000)
index 3d2a8770322ee71d3ce9d50b7893495fcea3480f..d51e29b19eeaf27b34c7208b8858eba6a004b14e 100644 (file)
@@ -5,8 +5,6 @@
 #ifndef _ASM_ARCH_GRF_px30_H
 #define _ASM_ARCH_GRF_px30_H
 
-#include <common.h>
-
 struct px30_grf {
        unsigned int gpio1al_iomux;
        unsigned int gpio1ah_iomux;
index 5f12ebf262fa17e74b437d0b630d78266e329b0b..08348d8228a1dd9c82f8ca0d749cc551e697a5c0 100644 (file)
@@ -5,8 +5,6 @@
 #ifndef _ASM_ARCH_GRF_RK3036_H
 #define _ASM_ARCH_GRF_RK3036_H
 
-#include <common.h>
-
 struct rk3036_grf {
        unsigned int reserved[0x2a];
        unsigned int gpio0a_iomux;
index 519b36ad2ad009fca7bc3189f635b59f1dee388e..fe07d69b4280bae5bd04007271a51f4ad5154c3d 100644 (file)
@@ -5,8 +5,6 @@
 #ifndef _ASM_ARCH_GRF_RK3128_H
 #define _ASM_ARCH_GRF_RK3128_H
 
-#include <common.h>
-
 struct rk3128_grf {
        unsigned int reserved[0x2a];
        unsigned int gpio0a_iomux;
index a99d13732d01364cf4e82b1333d3c7d3cefc1849..5f4d9d822495340ca3bd391c4bb16c0a03ee5943 100644 (file)
@@ -5,8 +5,6 @@
 #ifndef _ASM_ARCH_GRF_RK322X_H
 #define _ASM_ARCH_GRF_RK322X_H
 
-#include <common.h>
-
 struct rk322x_grf {
        unsigned int gpio0a_iomux;
        unsigned int gpio0b_iomux;
index b70b08fccecd7ade8db0f2b028ecf5762855665b..45e882b3c96cb7866937832122e0c0cbb9acad8d 100644 (file)
@@ -6,8 +6,6 @@
 #ifndef _ASM_ARCH_GRF_RK3368_H
 #define _ASM_ARCH_GRF_RK3368_H
 
-#include <common.h>
-
 struct rk3368_grf {
        u32 gpio1a_iomux;
        u32 gpio1b_iomux;
index 9f42fbde8dc1413198119426528151b1502c8d7e..92bbe34af68c3029d2e2c46224830323e6ebde5f 100644 (file)
@@ -5,8 +5,6 @@
 #ifndef _ASM_ARCH_GRF_RV1108_H
 #define _ASM_ARCH_GRF_RV1108_H
 
-#include <common.h>
-
 struct rv1108_grf {
        u32 reserved[4];
        u32 gpio1a_iomux;
index 5de3220d6f19a8d80be61063cd6fddca61c908ac..46298165fbcc2736c1e8bc8c27e3f5bc2753beef 100644 (file)
@@ -5,8 +5,6 @@
 #ifndef _ASM_ARCH_SDRAM_RK3036_H
 #define _ASM_ARCH_SDRAM_RK3036_H
 
-#include <common.h>
-
 struct rk3036_ddr_pctl {
        u32 scfg;
        u32 sctl;
index 336c5d7e8c406bb5fb256bd34afd78a9ad06bafe..99942e6aac23945653da556e89e3553b33ed762b 100644 (file)
@@ -5,8 +5,6 @@
 #ifndef _ASM_ARCH_SDRAM_RK322X_H
 #define _ASM_ARCH_SDRAM_RK322X_H
 
-#include <common.h>
-
 struct rk322x_sdram_channel {
        /*
         * bit width in address, eg:
index c60065444cc10648f358ef968ea8b057792975b1..70846094e89807a5f81e144ff0baf79a177760eb 100644 (file)
@@ -6,8 +6,6 @@
 #ifndef __ASM_ARCH_CLOCK_H
 #define __ASM_ARCH_CLOCK_H
 
-#include <common.h>
-
 enum mxc_clock {
        MXC_ARM_CLK = 0,
        MXC_BUS_CLK,
index 616b6e2a6495fe3be02caa8e9cfe7f1f3db2dc78..8c64a995f255fcc2acf7b014f899297597755e45 100644 (file)
@@ -11,7 +11,6 @@
 #ifndef __SUNXI_RSB_H
 #define __SUNXI_RSB_H
 
-#include <common.h>
 #include <asm/io.h>
 
 struct sunxi_rsb_reg {
index 53cb56d2713ee1f72b463ef5f913eb346d8ec77b..52c10b8fab3e74b1ec5686b22a6b7b7cd847b048 100644 (file)
@@ -6,8 +6,6 @@
 #ifndef _ASM_ARCH_TEGRA_IVC_H
 #define _ASM_ARCH_TEGRA_IVC_H
 
-#include <common.h>
-
 /*
  * Tegra IVC is a communication protocol that transfers fixed-size frames
  * bi-directionally and in-order between the local CPU and some remote entity.
index 70dcf4aa663b771edd760493cf8395c4fef74e74..d6a55764ba3774de0079eb6b8b971437de2c564b 100644 (file)
@@ -8,7 +8,6 @@
 #ifndef __TEGRA_MMC_H_
 #define __TEGRA_MMC_H_
 
-#include <common.h>
 #include <clk.h>
 #include <reset.h>
 #include <fdtdec.h>
index 72184fd60834db22d0d7b6489f6fc2340951abca..ec9786ce4fef08a128091fcdf081a63f688ba884 100644 (file)
@@ -6,8 +6,6 @@
 #ifndef __ASM_ARCH_CLOCK_H
 #define __ASM_ARCH_CLOCK_H
 
-#include <common.h>
-
 enum mxc_clock {
        MXC_ARM_CLK = 0,
        MXC_BUS_CLK,
index 8bb3fa2e0ee7a8508aabed7abbfbe0c7284481e5..8af1ea0aa4df83b9d8c61b0b031dae9e9659e666 100644 (file)
@@ -7,10 +7,10 @@
 #ifndef __ASM_ARM_DMA_MAPPING_H
 #define __ASM_ARM_DMA_MAPPING_H
 
-#include <common.h>
 #include <asm/cache.h>
 #include <cpu_func.h>
 #include <linux/dma-direction.h>
+#include <linux/kernel.h>
 #include <linux/types.h>
 #include <malloc.h>
 
index dc398efd32cf236d5eeac72ffcad3f26bf685fe5..35424345bf02b0953dce03c6b55bed3d3931d081 100644 (file)
@@ -13,7 +13,6 @@
 #ifndef _EMIF_H_
 #define _EMIF_H_
 #include <asm/types.h>
-#include <common.h>
 #include <asm/io.h>
 
 /* Base address */
index 06dbd8d943a41d4bf3d2fa8dcd7af6d4b1a7fcde..1de70933550fc561681577c22c392836c3d9b508 100644 (file)
@@ -10,7 +10,7 @@
 #ifndef __MACH_IOMUX_V3_H__
 #define __MACH_IOMUX_V3_H__
 
-#include <common.h>
+#include <linux/types.h>
 
 /*
  *     build IOMUX_PAD structure
index 927195f87ac1520cef62d057bcb164e8fac235c4..0bc705df17237054349e08575d156d475af316d4 100644 (file)
 #include <asm/io.h>
 #include <asm/mach-imx/regs-common.h>
 #include <asm/mach-imx/module_fuse.h>
-#include <common.h>
+#include <linux/bitops.h>
 #include "../arch-imx/cpu.h"
 
+struct bd_info;
+
 #define soc_rev() (get_cpu_rev() & 0xFF)
 #define is_soc_rev(rev) (soc_rev() == rev)
 
@@ -182,7 +184,7 @@ char nxp_board_rev_string(void);
  * Initializes on-chip ethernet controllers.
  * to override, implement board_eth_init()
  */
-int fecmxc_initialize(bd_t *bis);
+int fecmxc_initialize(struct bd_info *bis);
 u32 get_ahb_clk(void);
 u32 get_periph_clk(void);
 
index 54b7cd19bbf7c2bc0483ebfc68fdae0dc075438a..de8fc99d0478aa813b5037aa2969a92f2580ec15 100644 (file)
 
 #ifndef __ASSEMBLY__
 
-#include <common.h>
+#include <linux/types.h>
 
 #define NUM_SYS_CLKS   7
 
+struct bd_info;
+
 struct prcm_regs {
        /* cm1.ckgen */
        u32 cm_clksel_core;
@@ -683,9 +685,9 @@ void omap_die_id(unsigned int *die_id);
 void gpi2c_init(void);
 
 /* Common FDT Fixups */
-int ft_hs_disable_rng(void *fdt, bd_t *bd);
-int ft_hs_fixup_dram(void *fdt, bd_t *bd);
-int ft_hs_add_tee(void *fdt, bd_t *bd);
+int ft_hs_disable_rng(void *fdt, struct bd_info *bd);
+int ft_hs_fixup_dram(void *fdt, struct bd_info *bd);
+int ft_hs_add_tee(void *fdt, struct bd_info *bd);
 
 /* ABB */
 #define OMAP_ABB_NOMINAL_OPP           0
index f10a41f3048b63bc1f411359c73ef2ae29343a26..30f0a9f5cbc87cbfe6a48b5f02ade0958cc703a1 100644 (file)
@@ -8,8 +8,6 @@
 #ifndef        _OMAP_SEC_COMMON_H_
 #define        _OMAP_SEC_COMMON_H_
 
-#include <common.h>
-
 /*
  * Invoke secure ROM API on high-security (HS) device variants. It formats
  * the variable argument list into the format expected by the ROM code before
index 3ddcd95a26d0ff65d5dc19836bdec138c0acf3e2..ac0ab6253fb2ac457de72f6faf5619d8b6cabad7 100644 (file)
 #ifndef __ARM_PSCI_H__
 #define __ARM_PSCI_H__
 
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
+
 #define ARM_PSCI_VER_1_0               (0x00010000)
 #define ARM_PSCI_VER_0_2               (0x00000002)
 
index a3147fde146d9197b372b36ecfb9eab5931bb64d..1e3f574403a05ceb81cbdfd1ec88e8a811480566 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef __ASM_ARM_SYSTEM_H
 #define __ASM_ARM_SYSTEM_H
 
-#include <common.h>
 #include <linux/compiler.h>
 #include <asm/barriers.h>
 
 
 #ifndef __ASSEMBLY__
 
+struct pt_regs;
+
 u64 get_page_table_size(void);
 #define PGTABLE_SIZE   get_page_table_size()
 
index 461fba4d3f6ae380d7721849792b6bef500c4ff8..f25119a7d66eb9abfbb6f84be9289bb6056e2924 100644 (file)
@@ -6,6 +6,7 @@
  * Copyright 2013 Freescale Semiconductor, Inc.
  */
 
+#include <common.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux-vf610.h>
index 0d39dab7eaa7bc23b34b4a0fccc1bce18e171983..518d77ae5b6564c172e1ea1128618a9fa9cd0148 100644 (file)
@@ -2,6 +2,8 @@
 /*
  * Copyright (C) 2016 Freescale Semiconductor, Inc.
  */
+
+#include <common.h>
 #include <cpu_func.h>
 #include <init.h>
 #include <asm/io.h>
index b9f630952dfdeac939a3a644f9e068d3df8ce1a0..c4599aaf68f1dfffbe01c5b5278a35015290c376 100644 (file)
@@ -7,6 +7,7 @@
 #include <asm/arch/iomux.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
+#include <asm/arch/imx-regs.h>
 #include <asm/arch/sys_proto.h>
 
 int setup_sata(void)
index 3fd1d086ff142473fce73dd46952dc25a42dad40..8cacc1dea6c156f0df9c2332bd643ee7995e9a69 100644 (file)
@@ -5,6 +5,7 @@
  * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
  */
 
+#include <common.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/ddr_defs.h>
 #include <asm/arch/sys_proto.h>
index a29a264016ed2eeb77507e03739a2e20a608db3a..2a18cf0215d9f76a5320081a1652121021e52760 100644 (file)
@@ -9,6 +9,7 @@
  * Aneesh V <aneesh@ti.com>
  */
 
+#include <common.h>
 #include <asm/emif.h>
 #include <asm/arch/sys_proto.h>
 
index 6bf4cf4a75825867cff2eeac7b6ff35efd779184..786da45fac8321a8749581095b4390e8e6dd889a 100644 (file)
@@ -10,6 +10,7 @@
  * Sricharan R <r.sricharan@ti.com>
  */
 
+#include <common.h>
 #include <asm/emif.h>
 #include <asm/arch/sys_proto.h>
 
index e9ada6dea3c07e10785fb56756e6c56cbd0a9138..e0a6e4b0259d0db68a3a0cffb67b20807952ef51 100644 (file)
@@ -2,6 +2,8 @@
 /*
  * (C) Copyright 2019 Rockchip Electronics Co., Ltd
  */
+
+#include <common.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/grf_rk3036.h>
 #include <asm/arch-rockchip/hardware.h>
index 50d58217e47d8f0bf8539a9a397debdb7ce3a99f..ea90bc6e3420d2e3dedc98873aaf8f52814d83b3 100644 (file)
@@ -10,6 +10,7 @@
 #ifndef _CM_T54_MUX_DATA_H
 #define _CM_T54_MUX_DATA_H
 
+#include <common.h>
 #include <asm/arch/mux_omap5.h>
 #include <asm/arch/sys_proto.h>
 
index 9aa71b99419d83385cbaff9dd63d9111b6a95523..03e9364765d06c75aa20bcc021b46de3d5241dbb 100644 (file)
@@ -5,6 +5,7 @@
  * Based on other i.MX6 boards
  */
 
+#include <common.h>
 #include <init.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
index bf5c020af13bf226e6d3ba48c2d57032d9e68982..b644f273fe24917de367a9ad7a47a13a9b121df0 100644 (file)
@@ -12,6 +12,7 @@
  * Copyright (C) 2013 Jon Nettleton <jon.nettleton@gmail.com>.
  */
 
+#include <common.h>
 #include <init.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/sys_proto.h>
index 1240a9da174f7c7c1e4a72f638bc598b0ade28f7..64553c0617c1481dd21e245b13d7bad7cbc6e373 100644 (file)
@@ -5,6 +5,7 @@
  * Author: Tim Harvey <tharvey@gateworks.com>
  */
 
+#include <common.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/mx6-pins.h>
 #include <asm/arch/sys_proto.h>
index 5d71b639df08786c1b73139b0b437022442b0d85..df32e12037b527d4c541db25682491f226239912 100644 (file)
@@ -4,6 +4,7 @@
  * Copyright (C) 2016 Grinn
  */
 
+#include <common.h>
 #include <command.h>
 #include <init.h>
 #include <asm/arch/clock.h>
index d577e00fbca97e295363669fa13fab72e61e216b..91d8091d258998d8bfa5b73a951ac6154f987ca8 100644 (file)
@@ -11,6 +11,8 @@
  * (C) Copyright 2004-2008
  * Texas Instruments, <www.ti.com>
  */
+
+#include <common.h>
 #include <asm/io.h>
 #include <asm/arch/mem.h>
 #include <asm/arch/sys_proto.h>
index 59a07a9ffdea5a62ccbd4f67a7880fa91cd9cd69..fa2acf59a7a3b21c30acc5f0fc440d850c20d9d0 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright (C) 2016 Stefano Babic <sbabic@denx.de>
  */
 
+#include <common.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
index 6a96f9ecdb5315a45577e5b966c4b1f0a9ecffdf..13f77a3db2736fc188d56079d610c45213c59cf7 100644 (file)
@@ -13,6 +13,7 @@
  * Ported to SolidRun microSOM by Rabeeh Khoury <rabeeh@solid-run.com>
  */
 
+#include <common.h>
 #include <init.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
index 06ad0a8c32209e87c178ab0ebce74db38e4d0d60..bafe9ba6b7aa1145047ec4e184f6fba83ce87531 100644 (file)
@@ -6,6 +6,7 @@
  *        Fabio Estevam <festevam@gmail.com>
  */
 
+#include <common.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
index 6c432ca5a62c1f471d133c685a132d8e8ac6cffb..69db77412c50cf8f3eb37cc363ff76d749a01737 100644 (file)
@@ -5,6 +5,7 @@
  * Author: Richard Hu <richard.hu@technexion.com>
  */
 
+#include <common.h>
 #include <cpu_func.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
index b287fbf41066ed6ea1bd02708487a503900686be..1a3b136529e03a32e4a3a3bfd3ad5fbef511b359 100644 (file)
@@ -6,6 +6,7 @@
  * Based on board/wandboard/spl.c
  */
 
+#include <common.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
index dbd9d0286fd0da1528ce90f86e838441728cdf7b..250043a26d98b343cdcb98d71c05b2a64a7607a4 100644 (file)
@@ -5,6 +5,7 @@
  *         Richard Hu <hakahu@gmail.com>
  */
 
+#include <common.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
index fb2f3c1fd25270ebbd4aa5d4a57416022287f78e..9705a1d8e392c97bc48c75ce144670e527d8da12 100644 (file)
@@ -6,6 +6,7 @@
  * Author: Fabio Estevam <fabio.estevam@freescale.com>
  */
 
+#include <common.h>
 #include <init.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
index b525b1be54963c6fec2d2e1b4191aacbbf776ff9..3a09a8165c10903d54a513c8debf6fb96b50d4ed 100644 (file)
@@ -11,6 +11,8 @@
 #include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <linux/bitfield.h>
+#include <linux/delay.h>
+#include <linux/dma-direction.h>
 #include <linux/dma-mapping.h>
 #include <linux/err.h>
 #include <linux/errno.h>
index 41b93e660a0ac6e9e2bc116ba963af2c85e45260..2728e8098faa517476497f4b42e3394359b439ea 100644 (file)
@@ -7,6 +7,8 @@
 #include <clk.h>
 #include <dm.h>
 #include <dm/device_compat.h>
+#include <linux/bug.h>
+#include <linux/delay.h>
 #include <linux/io.h>
 #include <linux/ioport.h>
 #include <linux/printk.h>
index 7af610be37029f454ad2096b2c4d7206089907bd..35965e9645a10d2baf56a071c06c3f333237a272 100644 (file)
@@ -4,7 +4,10 @@
  */
 
 #include <console.h>
+#include <time.h>
 #include <watchdog.h>
+#include <linux/delay.h>
+#include <linux/errno.h>
 
 /* USB Vendor Requests */
 #define USB_VENDOR_REQUEST_WRITE_REGISTER      0xA0
@@ -122,6 +125,10 @@ int lan7x_write_reg(struct usb_device *udev, u32 index, u32 data);
 
 int lan7x_read_reg(struct usb_device *udev, u32 index, u32 *data);
 
+/*
+ * FIXME: Code should not be in header files. Nive this to a file common to
+ * the two drivers.
+ */
 static inline int lan7x_wait_for_bit(struct usb_device *udev,
                                     const char *prefix, const u32 reg,
                                     const u32 mask, const bool set,
index 171188a76f0c1d670472050f060ff0947ca696f5..712eeaef4ed915014fdb760fe09d0b545b5295c2 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef _LINUX_COMPAT_H_
 #define _LINUX_COMPAT_H_
 
+#include <log.h>
 #include <malloc.h>
 #include <linux/types.h>
 #include <linux/err.h>
index bd373b96172ba24ef2a72b9c54fb2cdadf19319d..66febc6b72125ce3f84d03c8ab2d24ffce670d73 100644 (file)
@@ -16,6 +16,7 @@
 #include <config.h>
 
 #include <dm/device.h>
+#include <linux/bitops.h>
 #include <linux/compat.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/flashchip.h>
index 82500eeb30f706ea3254cd98421212dcfeba6739..774ae2de63c5487bd828e6921a9b0d755282cc21 100644 (file)
 #include <asm/cache.h>
 #include <asm/byteorder.h>     /* for nton* / ntoh* stuff */
 #include <env.h>
+#include <log.h>
+#include <time.h>
 #include <linux/if_ether.h>
 #include <rand.h>
 
+struct cmd_tbl_s;
+
 #define DEBUG_LL_STATE 0       /* Link local state machine changes */
 #define DEBUG_DEV_PKT 0                /* Packets or info directed to the device */
 #define DEBUG_NET_PKT 0                /* Packets on info on the network at large */
@@ -59,7 +63,7 @@ struct in_addr {
  * @argv: List of arguments
  * @return result (see enum command_ret_t)
  */
-int do_tftpb(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]);
+int do_tftpb(struct cmd_tbl_s *cmdtp, int flag, int argc, char *const argv[]);
 
 /**
  * An incoming packet handler.
index 90395fedb0fd35e0d2b5ceb52295dca81334580b..5a67c826c26a6a683494dedc9b9d6c0aa6eb2dda 100644 (file)
@@ -26,6 +26,8 @@ struct image_header;
 #define MMCSD_MODE_FS          2
 #define MMCSD_MODE_EMMCBOOT    3
 
+struct image_header;
+
 /*
  * u_boot_first_phase() - check if this is the first U-Boot phase
  *