mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
fbdev: add support for AVR32
Provide framebuffer page protection flags and definitions of fb_readl/fb_writel for AVR32. Signed-off-by: Haavard Skinnemoen <[email protected]> Cc: "Antonino A. Daplas" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
5a87ede945
commit
880169dd2e
2 changed files with 5 additions and 1 deletions
|
|
@ -1236,6 +1236,10 @@ fb_mmap(struct file *file, struct vm_area_struct * vma)
|
|||
pgprot_val(vma->vm_page_prot) |= _PAGE_NO_CACHE;
|
||||
#elif defined(__arm__) || defined(__sh__) || defined(__m32r__)
|
||||
vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot);
|
||||
#elif defined(__avr32__)
|
||||
vma->vm_page_prot = __pgprot((pgprot_val(vma->vm_page_prot)
|
||||
& ~_PAGE_CACHABLE)
|
||||
| (_PAGE_BUFFER | _PAGE_DIRTY));
|
||||
#elif defined(__ia64__)
|
||||
if (efi_range_is_wc(vma->vm_start, vma->vm_end - vma->vm_start))
|
||||
vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot);
|
||||
|
|
|
|||
Loading…
Reference in a new issue