diff options
author | Andy Fleming <afleming@freescale.com> | 2008-01-17 15:52:38 -0600 |
---|---|---|
committer | Andrew Fleming-AFLEMING <afleming@freescale.com> | 2008-01-17 15:52:38 -0600 |
commit | 6ea66a818de376ff599c40bdd6c361cfcba2fb6f (patch) | |
tree | 8d5d0843a6992b83fcf6a1841e8bbe3a7da375c6 /include/asm-ppc/mmu.h | |
parent | f188896c2f1594fe749fdb99bbc8c54023cfab3a (diff) | |
parent | 7dc358bb0de9e2fa341f3b4c914466b1f34b2d89 (diff) | |
download | u-boot-imx-6ea66a818de376ff599c40bdd6c361cfcba2fb6f.zip u-boot-imx-6ea66a818de376ff599c40bdd6c361cfcba2fb6f.tar.gz u-boot-imx-6ea66a818de376ff599c40bdd6c361cfcba2fb6f.tar.bz2 |
Merge branch 'kumar'
Diffstat (limited to 'include/asm-ppc/mmu.h')
-rw-r--r-- | include/asm-ppc/mmu.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/asm-ppc/mmu.h b/include/asm-ppc/mmu.h index 45a4764..ec1ca53 100644 --- a/include/asm-ppc/mmu.h +++ b/include/asm-ppc/mmu.h @@ -418,6 +418,37 @@ extern int write_bat(ppc_bat_t bat, unsigned long upper, unsigned long lower); #define BOOKE_PAGESZ_256GB 14 #define BOOKE_PAGESZ_1TB 15 +#ifdef CONFIG_E500 +#ifndef __ASSEMBLY__ +extern void set_tlb(u8 tlb, u32 epn, u64 rpn, + u8 perms, u8 wimge, + u8 ts, u8 esel, u8 tsize, u8 iprot); +extern void disable_tlb(u8 esel); +extern void invalidate_tlb(u8 tlb); +extern void init_tlbs(void); + +#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) +#define SET_TLB_ENTRY(_tlb, _epn, _rpn, _perms, _wimge, _ts, _esel, _sz, _iprot) \ + { .tlb = _tlb, .epn = _epn, .rpn = _rpn, .perms = _perms, \ + .wimge = _wimge, .ts = _ts, .esel = _esel, .tsize = _sz, .iprot = _iprot } + +struct fsl_e_tlb_entry { + u8 tlb; + u32 epn; + u64 rpn; + u8 perms; + u8 wimge; + u8 ts; + u8 esel; + u8 tsize; + u8 iprot; +}; + +extern struct fsl_e_tlb_entry tlb_table[]; +extern int num_tlb_entries; +#endif +#endif + #if defined(CONFIG_MPC86xx) #define LAWBAR_BASE_ADDR 0x00FFFFFF #define LAWAR_TRGT_IF 0x01F00000 |