diff options
author | Stefan Roese <sr@denx.de> | 2008-08-12 20:39:27 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2008-08-12 20:39:27 +0200 |
commit | 9939ffd5fbf1f5aff4d8172531d4fc33797c62c8 (patch) | |
tree | 40e9295368c82a9c7f2b09e7b1fb76c2c44df0ce /lib_ppc/bat_rw.c | |
parent | 1c7015100a620582224f25eb057573a0fe147648 (diff) | |
parent | cd82919e6c8a73b363a26f34b734923844e52d1c (diff) | |
download | u-boot-imx-9939ffd5fbf1f5aff4d8172531d4fc33797c62c8.zip u-boot-imx-9939ffd5fbf1f5aff4d8172531d4fc33797c62c8.tar.gz u-boot-imx-9939ffd5fbf1f5aff4d8172531d4fc33797c62c8.tar.bz2 |
Merge branch 'master' of /home/stefan/git/u-boot/u-boot into next
Diffstat (limited to 'lib_ppc/bat_rw.c')
-rw-r--r-- | lib_ppc/bat_rw.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib_ppc/bat_rw.c b/lib_ppc/bat_rw.c index 8546333..a40b377 100644 --- a/lib_ppc/bat_rw.c +++ b/lib_ppc/bat_rw.c @@ -25,9 +25,12 @@ #include <common.h> #include <asm/processor.h> #include <asm/mmu.h> +#include <asm/io.h> int write_bat (ppc_bat_t bat, unsigned long upper, unsigned long lower) { + sync(); + switch (bat) { case DBAT0: mtspr (DBAT0L, lower); @@ -99,6 +102,9 @@ int write_bat (ppc_bat_t bat, unsigned long upper, unsigned long lower) return (-1); } + sync(); + isync(); + return (0); } |