]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
ARM: pantheon: reduce dependence of including platform file
authorLei Wen <[leiwen@marvell.com]>
Tue, 18 Oct 2011 13:51:33 +0000 (19:21 +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>
arch/arm/cpu/arm926ejs/pantheon/cpu.c
arch/arm/cpu/arm926ejs/pantheon/dram.c
arch/arm/cpu/arm926ejs/pantheon/timer.c
arch/arm/include/asm/arch-pantheon/config.h
arch/arm/include/asm/arch-pantheon/pantheon.h

index 8b2eafa40b466dc5f058643ce4a9cd1a09644911..efc9395b9604fc799581ec39049fc0051c009c38 100644 (file)
@@ -23,8 +23,8 @@
  */
 
 #include <common.h>
+#include <asm/arch/cpu.h>
 #include <asm/arch/pantheon.h>
-#include <asm/io.h>
 
 #define UARTCLK14745KHZ        (APBC_APBCLK | APBC_FNCLK | APBC_FNCLKSEL(1))
 #define SET_MRVL_ID    (1<<8)
index bbca7eef16dd8b8fdaf1a6d2be0633014ed6e371..a3d719e5cfe3ab4197e9da57779a7bec7fe0c3e6 100644 (file)
@@ -23,6 +23,7 @@
  */
 
 #include <common.h>
+#include <asm/io.h>
 #include <asm/arch/pantheon.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index c71162a8be697abedf379296de0f7ed0bd456edf..17045b1c2f688e423e39254125a4032e89f652fa 100644 (file)
@@ -23,6 +23,7 @@
  */
 
 #include <common.h>
+#include <asm/arch/cpu.h>
 #include <asm/arch/pantheon.h>
 
 /*
index 5658592f838f5cf3421dc24edabe7e4bfa947f7a..fd23c97b37172dae994737def88d9a7a07796c35 100644 (file)
@@ -25,6 +25,8 @@
 #ifndef _PANTHEON_CONFIG_H
 #define _PANTHEON_CONFIG_H
 
+#include <asm/arch/pantheon.h>
+
 #define CONFIG_ARM926EJS       1       /* Basic Architecture */
 
 #define CONFIG_SYS_TCLK                (14745600)      /* NS16550 clk config */
index e4ed087b0cfa06e06486b87d11a3a62c6f015599..c7fe646128ec1b8a41137c7f1d0fd8382aa27649 100644 (file)
 #ifndef _PANTHEON_H
 #define _PANTHEON_H
 
-#ifndef __ASSEMBLY__
-#include <asm/types.h>
-#include <asm/io.h>
-#endif /* __ASSEMBLY__ */
-
-#include <asm/arch/cpu.h>
-
 /* Common APB clock register bit definitions */
 #define APBC_APBCLK     (1<<0)  /* APB Bus Clock Enable */
 #define APBC_FNCLK      (1<<1)  /* Functional Clock Enable */