am33xx: Add required includes to some omap/am33xx code
authorTom Rini <trini@ti.com>
Thu, 14 Mar 2013 11:15:25 +0000 (11:15 +0000)
committerTom Rini <trini@ti.com>
Sun, 24 Mar 2013 16:49:11 +0000 (12:49 -0400)
- In arch/arm/cpu/armv7/omap-common/timer.c,
  drivers/mtd/nand/omap_gpmc.c and drivers/net/cpsw.c add #include files
  that the driver needs but had been relying on <config.h> to bring in.
- In arch/arm/cpu/armv7/omap-common/lowlevel_init.S add <config.h>
- In am335x_evm.h and pcm051.h don't globally include
  <asm/arch/hardware.h> and <asm/arch/cpu.h> but just <asm/arch/omap.h>
  as that is the only include which defines things the config uses.

Cc: Lars Poeschel <poeschel@lemonage.de>
Signed-off-by: Tom Rini <trini@ti.com>
arch/arm/cpu/armv7/omap-common/lowlevel_init.S
arch/arm/cpu/armv7/omap-common/timer.c
arch/arm/include/asm/arch-am33xx/sys_proto.h
drivers/mtd/nand/omap_gpmc.c
drivers/net/cpsw.c
include/configs/am335x_evm.h
include/configs/pcm051.h

index 358107776d54337a898f383eb5c68d00acf9f992..b933fe843703d8c71f32e32187f5efd8f0e00dc4 100644 (file)
@@ -26,6 +26,7 @@
  * MA 02111-1307 USA
  */
 
+#include <config.h>
 #include <asm/arch/omap.h>
 #include <asm/arch/spl.h>
 #include <linux/linkage.h>
index 36bea5f94c118c8adeb69e83eb99800107c41921..507f6873e91d27f8a56e67fffc7ea073c793de21 100644 (file)
@@ -34,6 +34,7 @@
 
 #include <common.h>
 #include <asm/io.h>
+#include <asm/arch/cpu.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 97ab60d1b2bae9e2ab52d7ea97d3e0d1a1f20e9e..0910a9451a0b22ea7cbdba68e82639651a845bf4 100644 (file)
@@ -34,6 +34,8 @@ void setup_clocks_for_console(void);
 void ddr_pll_config(unsigned int ddrpll_M);
 
 void sdelay(unsigned long);
+
+struct gpmc_cs;
 void gpmc_init(void);
 void enable_gpmc_cs_config(const u32 *gpmc_config, struct gpmc_cs *cs, u32 base,
                        u32 size);
index cee394ece4b7699bc3932c367f436aeb2debc885..bbf5443ec8af0b7c0c0f4a517dea1a750e6a11e3 100644 (file)
@@ -25,6 +25,7 @@
 #include <asm/io.h>
 #include <asm/errno.h>
 #include <asm/arch/mem.h>
+#include <asm/arch/cpu.h>
 #include <asm/arch/omap_gpmc.h>
 #include <linux/mtd/nand_ecc.h>
 #include <linux/compiler.h>
index 93f8417a4ce8efe2e70953a4505cf80131181404..7a36850198f40020ebc33765084f36f734e68b08 100644 (file)
@@ -24,6 +24,7 @@
 #include <asm/errno.h>
 #include <asm/io.h>
 #include <phy.h>
+#include <asm/arch/cpu.h>
 
 #define BITMASK(bits)          (BIT(bits) - 1)
 #define PHY_REG_MASK           0x1f
index 92daff5e00ef328f4ebb16cd93e9870426116a5d..b7c443c573f0284a88b1fe582c656ce582044591 100644 (file)
@@ -18,8 +18,7 @@
 
 #define CONFIG_AM33XX
 
-#include <asm/arch/cpu.h>
-#include <asm/arch/hardware.h>
+#include <asm/arch/omap.h>
 
 #define CONFIG_DMA_COHERENT
 #define CONFIG_DMA_COHERENT_SIZE       (1 << 20)
index 63ab12329b489389743060fd6f764238b972ab8f..d0ea74e0b48dfcf06cd36283f4289b60c6f72678 100644 (file)
@@ -21,8 +21,7 @@
 
 #define CONFIG_AM33XX
 
-#include <asm/arch/cpu.h>
-#include <asm/arch/hardware.h>
+#include <asm/arch/omap.h>
 
 #define CONFIG_DMA_COHERENT
 #define CONFIG_DMA_COHERENT_SIZE       (1 << 20)