Przeglądaj źródła

Moved sync() from board file to include/asm-m68k/io.h

Signed-off-by: TsiChungLiew <Tsi-Chung.Liew@freescale.com>
TsiChungLiew 17 lat temu
rodzic
commit
6fde84a44b
2 zmienionych plików z 7 dodań i 7 usunięć
  1. 0 7
      board/freescale/m5329evb/m5329evb.c
  2. 7 0
      include/asm-m68k/io.h

+ 0 - 7
board/freescale/m5329evb/m5329evb.c

@@ -87,10 +87,3 @@ int testdram(void)
 	return (0);
 }
 
-#ifdef CFG_FLASH_CFI
-void sync(void)
-{
-	/* This sync function is PowerPC intruction,
-	   coldfire does not have this instruction. Dummy function */
-}
-#endif				/* CFG_FLASH_CFI */

+ 7 - 0
include/asm-m68k/io.h

@@ -211,4 +211,11 @@ extern inline void out_be32(volatile unsigned *addr, int val)
 	*addr = val;
 }
 
+static inline void sync(void)
+{
+	/* This sync function is for PowerPC or other architecture instruction
+	 * ColdFire does not have this instruction. Dummy function, added for
+	 * compatibility (CFI driver)
+	 */
+}
 #endif				/* __ASM_M68K_IO_H__ */