提交 5ff8b354 编写于 作者: L Lei Wen 提交者: Albert ARIBAUD

ARM: orion5x: reduce dependence of including platform file

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: NLei Wen <leiwen@marvell.com>
上级 93554271
......@@ -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
......
......@@ -27,7 +27,7 @@
#include <common.h>
#include <config.h>
#include <asm/arch/orion5x.h>
#include <asm/arch/cpu.h>
DECLARE_GLOBAL_DATA_PTR;
......
......@@ -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 */
......
......@@ -30,13 +30,7 @@
#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)
......
......@@ -46,12 +46,6 @@
#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>
......
......@@ -45,6 +45,7 @@
#define CONFIG_88F5182 1 /* SOC Name */
#define CONFIG_MACH_EDMINIV2 1 /* Machine type */
#include <asm/arch/orion5x.h>
/*
* CLKs configurations
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册