summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBecky Bruce <becky.bruce@freescale.com>2008-05-15 21:29:04 -0500
committerWolfgang Denk <wd@denx.de>2008-06-03 18:01:24 +0200
commitc148f24c15743a02e855636e6bed013bd121f7f2 (patch)
tree337587fcd59f154390d81b8d0ca31b76a3405b28 /include
parent31d826722434931e1152a09d140187dcf72f8aac (diff)
downloadu-boot-imx-c148f24c15743a02e855636e6bed013bd121f7f2.zip
u-boot-imx-c148f24c15743a02e855636e6bed013bd121f7f2.tar.gz
u-boot-imx-c148f24c15743a02e855636e6bed013bd121f7f2.tar.bz2
PPC: Change lib_ppc/bat_rw.c to use high bats
Currently, this code only deals with BATs 0-3, which makes it useless on systems that support BATs 4-7. Add the support for these registers. Signed-off-by: Becky Bruce <Becky.bruce@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/asm-ppc/mmu.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/asm-ppc/mmu.h b/include/asm-ppc/mmu.h
index 4f78ca7..59f17de 100644
--- a/include/asm-ppc/mmu.h
+++ b/include/asm-ppc/mmu.h
@@ -140,7 +140,11 @@ extern void _tlbia(void); /* invalidate all TLB entries */
typedef enum {
IBAT0 = 0, IBAT1, IBAT2, IBAT3,
- DBAT0, DBAT1, DBAT2, DBAT3
+ DBAT0, DBAT1, DBAT2, DBAT3,
+#ifdef CONFIG_HIGH_BATS
+ IBAT4, IBAT5, IBAT6, IBAT7,
+ DBAT4, DBAT5, DBAT6, DBAT7
+#endif
} ppc_bat_t;
extern int read_bat(ppc_bat_t bat, unsigned long *upper, unsigned long *lower);