[U-Boot] [PATCH v5 1/3] mx25: Introduce sys_proto.h

Fabio Estevam fabio.estevam at freescale.com
Mon Sep 5 20:02:41 CEST 2011


Create a sys_proto.h for MX25 as done on other MX25 processors.

Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
---
Changes since v4:
- Omit "extern" annotation in function prototype
Changes since v3:
- No changes. This patch was introduced in v4
 arch/arm/cpu/arm926ejs/mx25/generic.c      |    1 +
 arch/arm/include/asm/arch-mx25/imx-regs.h  |    4 ----
 arch/arm/include/asm/arch-mx25/sys_proto.h |   27 +++++++++++++++++++++++++++
 3 files changed, 28 insertions(+), 4 deletions(-)
 create mode 100644 arch/arm/include/asm/arch-mx25/sys_proto.h

diff --git a/arch/arm/cpu/arm926ejs/mx25/generic.c b/arch/arm/cpu/arm926ejs/mx25/generic.c
index 76e4b5c..3feb449 100644
--- a/arch/arm/cpu/arm926ejs/mx25/generic.c
+++ b/arch/arm/cpu/arm926ejs/mx25/generic.c
@@ -31,6 +31,7 @@
 #ifdef CONFIG_MXC_MMC
 #include <asm/arch/mxcmmc.h>
 #endif
+#include <asm/arch/sys_proto.h>
 
 /*
  *  get the system pll clock in Hz
diff --git a/arch/arm/include/asm/arch-mx25/imx-regs.h b/arch/arm/include/asm/arch-mx25/imx-regs.h
index 9e30f7c..33bdb01 100644
--- a/arch/arm/include/asm/arch-mx25/imx-regs.h
+++ b/arch/arm/include/asm/arch-mx25/imx-regs.h
@@ -34,10 +34,6 @@
 #define _IMX_REGS_H
 
 #ifndef __ASSEMBLY__
-#ifdef CONFIG_FEC_MXC
-extern void mx25_fec_init_pins(void);
-extern void imx_get_mac_from_fuse(unsigned char *mac);
-#endif
 
 /* Clock Control Module (CCM) registers */
 struct ccm_regs {
diff --git a/arch/arm/include/asm/arch-mx25/sys_proto.h b/arch/arm/include/asm/arch-mx25/sys_proto.h
new file mode 100644
index 0000000..1c59c7b
--- /dev/null
+++ b/arch/arm/include/asm/arch-mx25/sys_proto.h
@@ -0,0 +1,27 @@
+/*
+ * (C) Copyright 2009
+ * Stefano Babic, DENX Software Engineering, sbabic at denx.de.
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef _SYS_PROTO_H_
+#define _SYS_PROTO_H_
+
+#ifdef CONFIG_FEC_MXC
+void mx25_fec_init_pins(void);
+void imx_get_mac_from_fuse(unsigned char *mac);
+#endif		/* CONFIG_FEC_MXC */
+
+#endif		/* _SYS_PROTO_H_ */
-- 
1.7.1




More information about the U-Boot mailing list