From 3a197b2fe49d6fa03978e60af2394efe9c70b527 Mon Sep 17 00:00:00 2001 From: Haiying Wang Date: Wed, 21 Feb 2007 16:52:31 +0100 Subject: [PATCH v3] Add sync to ensure flash_write_cmd is fully finished Some CPUs like PPC, BLACKFIN need sync() to ensure cfi flash write command is fully finished. The sync() is defined in each CPU's io.h file. For those CPUs which do not need sync for now, a dummy sync() is defined in their io.h as well. Signed-off-by: Haiying Wang --- include/asm-mips/io.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/asm-mips') diff --git a/include/asm-mips/io.h b/include/asm-mips/io.h index 857fb03..cd4d5dc 100644 --- a/include/asm-mips/io.h +++ b/include/asm-mips/io.h @@ -447,4 +447,8 @@ extern void (*_dma_cache_inv)(unsigned long start, unsigned long size); #define dma_cache_wback(start,size) _dma_cache_wback(start,size) #define dma_cache_inv(start,size) _dma_cache_inv(start,size) +static inline void sync(void) +{ +} + #endif /* _ASM_IO_H */ -- cgit v1.1