aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-microblaze
diff options
context:
space:
mode:
authorHaiying Wang <Haiying.Wang@freescale.com>2007-02-21 16:52:31 +0100
committerStefan Roese <sr@denx.de>2007-02-21 16:52:31 +0100
commit3a197b2fe49d6fa03978e60af2394efe9c70b527 (patch)
tree829eea16bc1c69fbf27545788bb104cda033f3e8 /include/asm-microblaze
parentda04995c7dc6772013a9a0dc5c767f190c402478 (diff)
downloadu-boot-midas-3a197b2fe49d6fa03978e60af2394efe9c70b527.tar.gz
u-boot-midas-3a197b2fe49d6fa03978e60af2394efe9c70b527.tar.bz2
u-boot-midas-3a197b2fe49d6fa03978e60af2394efe9c70b527.zip
[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 <Haiying.Wang@freescale.com>
Diffstat (limited to 'include/asm-microblaze')
-rw-r--r--include/asm-microblaze/io.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-microblaze/io.h b/include/asm-microblaze/io.h
index 33590454cf..1c77ade4f1 100644
--- a/include/asm-microblaze/io.h
+++ b/include/asm-microblaze/io.h
@@ -125,4 +125,8 @@ io_outsl (unsigned long port, const void *src, unsigned long count)
#define ioremap_writethrough(physaddr, size) (physaddr)
#define ioremap_fullcache(physaddr, size) (physaddr)
+static inline void sync(void)
+{
+}
+
#endif /* __MICROBLAZE_IO_H__ */