]> git.sur5r.net Git - u-boot/commitdiff
ARM: kirkwood: reduce dependence of including platform file
authorLei Wen <[leiwen@marvell.com]>
Tue, 18 Oct 2011 14:41:42 +0000 (20:11 +0530)
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>
16 files changed:
arch/arm/cpu/arm926ejs/kirkwood/cpu.c
arch/arm/cpu/arm926ejs/kirkwood/dram.c
arch/arm/cpu/arm926ejs/kirkwood/mpp.c
arch/arm/cpu/arm926ejs/kirkwood/timer.c
arch/arm/include/asm/arch-kirkwood/config.h
arch/arm/include/asm/arch-kirkwood/kirkwood.h
board/Marvell/guruplug/guruplug.c
board/Marvell/mv88f6281gtw_ge/mv88f6281gtw_ge.c
board/Marvell/openrd/openrd.c
board/Marvell/rd6281a/rd6281a.c
board/Marvell/sheevaplug/sheevaplug.c
board/keymile/km_arm/km_arm.c
drivers/gpio/kw_gpio.c
drivers/net/mvgbe.c
drivers/spi/kirkwood_spi.c
drivers/usb/host/ehci-kirkwood.c

index b4a4c0428f9bc98ef96b0ca27ea56b231145ed5e..8f04ddbb86e5b9deb3ae9de211e02953d0643af8 100644 (file)
@@ -26,6 +26,8 @@
 #include <netdev.h>
 #include <asm/cache.h>
 #include <u-boot/md5.h>
+#include <asm/io.h>
+#include <asm/arch/cpu.h>
 #include <asm/arch/kirkwood.h>
 #include <hush.h>
 
index 2441554ae3c011c1ae062734dc8369544adf431d..181b3e7bd303eb0155acf37796fb116dd4afcf76 100644 (file)
@@ -24,6 +24,8 @@
 
 #include <config.h>
 #include <common.h>
+#include <asm/io.h>
+#include <asm/arch/cpu.h>
 #include <asm/arch/kirkwood.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index b2f0ad55e3ca51db27ea17e98bfc054dcba4a354..3da6c98d11a3b90e2fa66da6c3255bb024fc9604 100644 (file)
@@ -10,6 +10,8 @@
  */
 
 #include <common.h>
+#include <asm/io.h>
+#include <asm/arch/cpu.h>
 #include <asm/arch/kirkwood.h>
 #include <asm/arch/mpp.h>
 
index b4f6cf87e05f07e237fbc2c2da65357787821735..a98f54c05bff1e0bc7430e1a1655a4962b479a89 100644 (file)
@@ -22,6 +22,7 @@
  */
 
 #include <common.h>
+#include <asm/io.h>
 #include <asm/arch/kirkwood.h>
 
 #define UBOOT_CNTR     0       /* counter to use for uboot timer */
index b393b1adfe9da2b8e33d5b752d613648d79409aa..f17f82d3f4d4535db909a5e1e4f431eb234dc308 100644 (file)
@@ -39,6 +39,7 @@
 #error "SOC Name not defined"
 #endif /* CONFIG_KW88F6281 */
 
+#include <asm/arch/kirkwood.h>
 #define CONFIG_ARM926EJS       1       /* Basic Architecture */
 
 #define CONFIG_MD5     /* get_random_hex on krikwood needs MD5 support */
index 3c843a0baa298595c9c4cbfc1972b04d47a70fb5..0035ed50a25902985c6b9bdd96343d31df9bdc4f 100644 (file)
 #ifndef _ASM_ARCH_KIRKWOOD_H
 #define _ASM_ARCH_KIRKWOOD_H
 
-#ifndef __ASSEMBLY__
-#include <asm/types.h>
-#include <asm/io.h>
-#endif /* __ASSEMBLY__ */
-
 #if defined (CONFIG_FEROCEON_88FR131) || defined (CONFIG_SHEEVA_88SV131)
-#include <asm/arch/cpu.h>
 
 /* SOC specific definations */
 #define INTREG_BASE                    0xd0000000
index 1f0e67a7fe7c2db8ef619e8e387be76210555750..057c558682675fc09f33d4d4b2652cff73e54776 100644 (file)
@@ -24,6 +24,7 @@
 
 #include <common.h>
 #include <miiphy.h>
+#include <asm/arch/cpu.h>
 #include <asm/arch/kirkwood.h>
 #include <asm/arch/mpp.h>
 #include "guruplug.h"
index 80fd20b7f4b03027faeb519e13d047133fa79130..4c41f3b2ef7fd0d73f67212212199f82515b5a20 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <common.h>
 #include <netdev.h>
+#include <asm/arch/cpu.h>
 #include <asm/arch/kirkwood.h>
 #include <asm/arch/mpp.h>
 #include "mv88f6281gtw_ge.h"
index 87939decf3cc49878ed89f3968b97195c0cecb78..2a10e69fafd86591acdd6e4dd3c6e8ca85f011d8 100644 (file)
@@ -29,6 +29,7 @@
 
 #include <common.h>
 #include <miiphy.h>
+#include <asm/arch/cpu.h>
 #include <asm/arch/kirkwood.h>
 #include <asm/arch/mpp.h>
 #include "openrd.h"
index ecdea82d90915005a7e2badb21bb9251760bd37f..9c768bf59532b6a542a53a8f8a1473b6e99a4e54 100644 (file)
@@ -25,6 +25,7 @@
 #include <common.h>
 #include <miiphy.h>
 #include <netdev.h>
+#include <asm/arch/cpu.h>
 #include <asm/arch/kirkwood.h>
 #include <asm/arch/mpp.h>
 #include "rd6281a.h"
index d7dc80c1ba2980792cc1a720ab36c22d7d752422..71e679309863c6fc4467155ff3a6775e8818825e 100644 (file)
@@ -24,6 +24,7 @@
 
 #include <common.h>
 #include <miiphy.h>
+#include <asm/arch/cpu.h>
 #include <asm/arch/kirkwood.h>
 #include <asm/arch/mpp.h>
 #include "sheevaplug.h"
index 67f158c1eb248086dbefba33eaffce51928c8f86..6ef5e5da12c42f1f3b174219664c75dadcf6e930 100644 (file)
@@ -34,6 +34,7 @@
 #include <netdev.h>
 #include <miiphy.h>
 #include <asm/io.h>
+#include <asm/arch/cpu.h>
 #include <asm/arch/kirkwood.h>
 #include <asm/arch/mpp.h>
 
index 2de179e827afcd55a2eeeffa8fd664177dfb9bc4..51a826de3b9a161bef34d4a4f81b278c4bd7e936 100644 (file)
@@ -31,6 +31,7 @@
 
 #include <common.h>
 #include <asm/bitops.h>
+#include <asm/io.h>
 #include <asm/arch/kirkwood.h>
 #include <asm/arch/gpio.h>
 
index c701f43ad6f08277889ff55c6218b847770cc47b..c7f74467b9415f3499323f239b1fc0ddfba91014 100644 (file)
 #include <net.h>
 #include <malloc.h>
 #include <miiphy.h>
+#include <asm/io.h>
 #include <asm/errno.h>
 #include <asm/types.h>
+#include <asm/system.h>
 #include <asm/byteorder.h>
 
 #if defined(CONFIG_KIRKWOOD)
index a1c307059c3ee5993630eca3fb446c246ebdb584..6f502f05c468eea1a6646f919aacb5422e8448a2 100644 (file)
@@ -27,6 +27,7 @@
 #include <common.h>
 #include <malloc.h>
 #include <spi.h>
+#include <asm/io.h>
 #include <asm/arch/kirkwood.h>
 #include <asm/arch/spi.h>
 #include <asm/arch/mpp.h>
index 5570fc699de55daf79089b0f18c98a5dbb037015..6300587db02b37a9b4e809d10d6b9a3eb0e30720 100644 (file)
@@ -27,6 +27,7 @@
 #include <usb.h>
 #include "ehci.h"
 #include "ehci-core.h"
+#include <asm/arch/cpu.h>
 #include <asm/arch/kirkwood.h>
 
 #define rdl(off)       readl(KW_USB20_BASE + (off))