소스 검색

mx25: Place common functions into sys_proto.h

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>
Fabio Estevam 12 년 전
부모
커밋
e100a3d52e
3개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 0 4
      arch/arm/include/asm/arch-mx25/imx-regs.h
  2. 3 0
      arch/arm/include/asm/arch-mx25/sys_proto.h
  3. 1 0
      board/syteco/zmx25/zmx25.c

+ 0 - 4
arch/arm/include/asm/arch-mx25/imx-regs.h

@@ -36,10 +36,6 @@
 #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 */

+ 3 - 0
arch/arm/include/asm/arch-mx25/sys_proto.h

@@ -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

+ 1 - 0
board/syteco/zmx25/zmx25.c

@@ -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;