]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ARM: orion5x: reduce dependence of including platform file
authorLei Wen <leiwen@marvell.com>
Mon, 24 Oct 2011 16:27:32 +0000 (16:27 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Thu, 27 Oct 2011 19:56:33 +0000 (21:56 +0200)
For files like the drivers/serial/serial.c, it must include the
platform file, as the CONFIG_SYS_NS16550_COM1 must reference to
the definition in the platform definition files.

Include the platform definition file in the config file, so that it
would decouple the dependence for the driver files.

Signed-off-by: Lei Wen <leiwen@marvell.com>
arch/arm/cpu/arm926ejs/orion5x/cpu.c
arch/arm/cpu/arm926ejs/orion5x/dram.c
arch/arm/cpu/arm926ejs/orion5x/timer.c
arch/arm/include/asm/arch-orion5x/orion5x.h
common/cmd_ide.c
include/configs/edminiv2.h

index 05bd45c3f61927d56b3b0cee1181dc54e6989738..792b11dfc510e21f02b16af4e16a4914589365c5 100644 (file)
@@ -28,8 +28,9 @@
 #include <common.h>
 #include <netdev.h>
 #include <asm/cache.h>
+#include <asm/io.h>
 #include <u-boot/md5.h>
-#include <asm/arch/orion5x.h>
+#include <asm/arch/cpu.h>
 #include <hush.h>
 
 #define BUFLEN 16
index 5cc31a99f1482d7b2cb55a72b8cf8245e38005c2..c0f7ef157fe641ba05f8e414922f7db200570b75 100644 (file)
@@ -27,7 +27,7 @@
 
 #include <common.h>
 #include <config.h>
-#include <asm/arch/orion5x.h>
+#include <asm/arch/cpu.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 17df68f86a2d54f85b3f303df137e42bdf30995f..e39ecc245b476fd25ea4a030e9580af179570b43 100644 (file)
@@ -25,7 +25,7 @@
  */
 
 #include <common.h>
-#include <asm/arch/orion5x.h>
+#include <asm/io.h>
 
 #define UBOOT_CNTR     0       /* counter to use for uboot timer */
 
index 9aeef88f36eb4af372e563aba6d42765ac180800..18225b9b49624fa144cfd15f81858fab8720dd2d 100644 (file)
 #ifndef _ASM_ARCH_ORION5X_H
 #define _ASM_ARCH_ORION5X_H
 
-#ifndef __ASSEMBLY__
-#include <asm/types.h>
-#include <asm/io.h>
-#endif /* __ASSEMBLY__ */
-
 #if defined(CONFIG_FEROCEON)
-#include <asm/arch/cpu.h>
 
 /* SOC specific definations */
 #define ORION5X_REGISTER(x)                    (ORION5X_REGS_PHY_BASE + x)
index da5189c37e0d027bb255d5cc49db13a7e84b8ddf..d909c5499034b3f2d9ecadde8c7269f9c9c32d08 100644 (file)
 #include <mpc5xxx.h>
 #endif
 
-#ifdef CONFIG_ORION5X
-#include <asm/arch/orion5x.h>
-#elif defined CONFIG_KIRKWOOD
-#include <asm/arch/kirkwood.h>
-#endif
-
 #include <ide.h>
 #include <ata.h>
 
index f8affa80e6b6ed7f763659cb3bb73f01db85bfe0..88d32b27d6aa84e492b64763a0e5f328337117aa 100644 (file)
@@ -45,6 +45,7 @@
 #define CONFIG_88F5182         1       /* SOC Name */
 #define CONFIG_MACH_EDMINIV2   1       /* Machine type */
 
+#include <asm/arch/orion5x.h>
 /*
  * CLKs configurations
  */