diff options
author | Wolfgang Denk <wd@denx.de> | 2008-04-29 20:06:42 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-04-29 20:06:42 +0200 |
commit | 84666476841cef3ef6df5c5a2a110d43b0936999 (patch) | |
tree | 7db6eed156c8b285651f00155f7dd8407a7ab49d /board/netstal | |
parent | 3a427fd2ec3d980875a25327955c34a2de0b494c (diff) | |
parent | f4c4d21a885ccc222fd0acdf653b683249e85117 (diff) | |
download | u-boot-imx-84666476841cef3ef6df5c5a2a110d43b0936999.zip u-boot-imx-84666476841cef3ef6df5c5a2a110d43b0936999.tar.gz u-boot-imx-84666476841cef3ef6df5c5a2a110d43b0936999.tar.bz2 |
Merge branch 'master' of git://www.denx.de/git/u-boot-ppc4xx
Diffstat (limited to 'board/netstal')
-rw-r--r-- | board/netstal/hcu5/sdram.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/board/netstal/hcu5/sdram.c b/board/netstal/hcu5/sdram.c index 0b16b505..6b1b53a 100644 --- a/board/netstal/hcu5/sdram.c +++ b/board/netstal/hcu5/sdram.c @@ -34,11 +34,11 @@ #include <asm/processor.h> #include <asm/io.h> #include <asm/mmu.h> +#include <asm/cache.h> #include <ppc440.h> void hcu_led_set(u32 value); void dcbz_area(u32 start_address, u32 num_bytes); -void dflush(void); #define DDR_DCR_BASE 0x10 #define ddrcfga (DDR_DCR_BASE+0x0) /* DDR configuration address reg */ @@ -185,14 +185,14 @@ static void program_ecc(unsigned long start_address, unsigned long num_bytes) #endif sync(); - eieio(); puts(str); /* ECC bit set method for cached memory */ /* Fast method, no noticeable delay */ dcbz_area(start_address, num_bytes); - dflush(); + /* Write modified dcache lines back to memory */ + clean_dcache_range(start_address, start_address + num_bytes); blank_string(strlen(str)); /* Clear error status */ |