diff options
author | Robby Cai <R63905@freescale.com> | 2010-12-13 15:47:28 +0800 |
---|---|---|
committer | Robby Cai <R63905@freescale.com> | 2010-12-13 17:45:03 +0800 |
commit | e595caa10fa849727280f4052d74536ba8fd0b39 (patch) | |
tree | ddc31dcdcb0d2716167295c6904ce6310392762c | |
parent | 814ad61319fdc49e8246722ae85daa5e5e68c929 (diff) |
ENGR00136875-1 Add function pgprot_writethru()
Added pgprot_writethru(), to set the buffer's cache property as
writethrough.
Signed-off-by: Robby Cai <R63905@freescale.com>
-rw-r--r-- | arch/arm/include/asm/pgtable.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/pgtable.h b/arch/arm/include/asm/pgtable.h index ab68cf1ef80f..7c4b3e714a9b 100644 --- a/arch/arm/include/asm/pgtable.h +++ b/arch/arm/include/asm/pgtable.h @@ -314,6 +314,8 @@ static inline pte_t pte_mkspecial(pte_t pte) { return pte; } __pgprot_modify(prot, L_PTE_MT_MASK, L_PTE_MT_UNCACHED) #define pgprot_writecombine(prot) \ __pgprot_modify(prot, L_PTE_MT_MASK, L_PTE_MT_BUFFERABLE) +#define pgprot_writethru(prot) \ + __pgprot_modify(prot, L_PTE_MT_MASK, L_PTE_MT_WRITETHROUGH) #ifdef CONFIG_ARM_DMA_MEM_BUFFERABLE #define pgprot_dmacoherent(prot) \ __pgprot_modify(prot, L_PTE_MT_MASK|L_PTE_EXEC, L_PTE_MT_BUFFERABLE) |