diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2008-10-16 15:01:15 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-10-18 21:54:03 +0200 |
commit | 6d0f6bcf337c5261c08fabe12982178c2c489d76 (patch) | |
tree | ae13958ffa9c6b58c2ea97aac07a4ad2f04a350f /lib_ppc/cache.c | |
parent | 71edc271816ec82cf0550dd6980be2da3cc2ad9e (diff) | |
download | u-boot-imx-6d0f6bcf337c5261c08fabe12982178c2c489d76.zip u-boot-imx-6d0f6bcf337c5261c08fabe12982178c2c489d76.tar.gz u-boot-imx-6d0f6bcf337c5261c08fabe12982178c2c489d76.tar.bz2 |
rename CFG_ macros to CONFIG_SYS
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'lib_ppc/cache.c')
-rw-r--r-- | lib_ppc/cache.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib_ppc/cache.c b/lib_ppc/cache.c index 5bfb220..72c838e 100644 --- a/lib_ppc/cache.c +++ b/lib_ppc/cache.c @@ -30,11 +30,11 @@ void flush_cache (ulong start_addr, ulong size) #ifndef CONFIG_5xx ulong addr, end_addr = start_addr + size; - if (CFG_CACHELINE_SIZE) { - addr = start_addr & (CFG_CACHELINE_SIZE - 1); + if (CONFIG_SYS_CACHELINE_SIZE) { + addr = start_addr & (CONFIG_SYS_CACHELINE_SIZE - 1); for (addr = start_addr; addr < end_addr; - addr += CFG_CACHELINE_SIZE) { + addr += CONFIG_SYS_CACHELINE_SIZE) { asm ("dcbst 0,%0": :"r" (addr)); WATCHDOG_RESET(); } @@ -42,7 +42,7 @@ void flush_cache (ulong start_addr, ulong size) for (addr = start_addr; addr < end_addr; - addr += CFG_CACHELINE_SIZE) { + addr += CONFIG_SYS_CACHELINE_SIZE) { asm ("icbi 0,%0": :"r" (addr)); WATCHDOG_RESET(); } |