mx25: Place common functions into sys_proto.h
authorFabio Estevam <fabio.estevam@freescale.com>
Tue, 23 Oct 2012 06:34:52 +0000 (06:34 +0000)
committerStefano Babic <sbabic@denx.de>
Fri, 26 Oct 2012 14:28:07 +0000 (16:28 +0200)
imx-regs.h is meant to contain SoC register definitions.

Common SoC funtions should go to sys_proto.h instead.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
arch/arm/include/asm/arch-mx25/imx-regs.h
arch/arm/include/asm/arch-mx25/sys_proto.h
board/syteco/zmx25/zmx25.c

index 53aafe3075f4af9fbbea20f6a8a1e5444a95595a..738d4115e9e8046c034b25fdbccdf7c18a870c88 100644 (file)
 #if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__))
 #include <asm/types.h>
 
-#ifdef CONFIG_FEC_MXC
-extern void mx25_fec_init_pins(void);
-#endif
-
 /* Clock Control Module (CCM) registers */
 struct ccm_regs {
        u32 mpctl;      /* Core PLL Control */
index 6a01a7b04c864b0b4f38e893581eae2f3ff38381..46db341e8a330e7a9a218e7ee12e2ba4db54f624 100644 (file)
@@ -25,5 +25,8 @@
 #define _SYS_PROTO_H_
 
 void mx25_uart1_init_pins(void);
+#if defined CONFIG_FEC_MXC
+extern void mx25_fec_init_pins(void);
+#endif
 
 #endif
index fe5589d9314e2d3fc462989ebd42f09fcbe9a9c3..4f37c59d807011a73177594df805e98eaf47a90d 100644 (file)
@@ -33,6 +33,7 @@
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/imx25-pinmux.h>
+#include <asm/arch/sys_proto.h>
 
 DECLARE_GLOBAL_DATA_PTR;