diff options
author | Stefan Roese <sr@denx.de> | 2007-07-16 08:53:51 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2007-07-16 08:53:51 +0200 |
commit | 5743a9207a370b90f09b20ebd61167c806b937f3 (patch) | |
tree | f8a56a22a08648873f5b255084f00d7083dcef83 /include/asm-ppc/mmu.h | |
parent | a2e1c7098cf9574386b0c96841dfc8ea5cc93578 (diff) |
ppc4xx: Add remove_tlb() function to remove a mem area from TLB setup
The new function remove_tlb() can be used to remove the TLB's used to
map a specific memory region. This is especially useful for the DDR(2)
setup routines which configure the SDRAM area temporarily as a cached
area (for speedup on auto-calibration and ECC generation) and later
need this area uncached for normal usage.
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/asm-ppc/mmu.h')
-rw-r--r-- | include/asm-ppc/mmu.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-ppc/mmu.h b/include/asm-ppc/mmu.h index 48fd982950..b3cfa9b372 100644 --- a/include/asm-ppc/mmu.h +++ b/include/asm-ppc/mmu.h @@ -645,6 +645,9 @@ void mttlb3(unsigned long index, unsigned long value); unsigned long mftlb1(unsigned long index); unsigned long mftlb2(unsigned long index); unsigned long mftlb3(unsigned long index); + +void program_tlb(u32 phys_addr, u32 virt_addr, u32 size, u32 tlb_word2_i_value); +void remove_tlb(u32 vaddr, u32 size); #endif /* __ASSEMBLY__ */ #endif /* CONFIG_440 */ |