drm/ssd130x: Set SPI .id_table to prevent an SPI core warning
[drm/drm-misc.git] / arch / csky / mm / highmem.c
blob4161df3c6c152f26c31613e7f909e78c3169fa6a
1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
4 #include <linux/module.h>
5 #include <linux/highmem.h>
6 #include <linux/smp.h>
7 #include <linux/memblock.h>
8 #include <asm/fixmap.h>
9 #include <asm/tlbflush.h>
10 #include <asm/cacheflush.h>
12 unsigned long highstart_pfn, highend_pfn;
14 void kmap_flush_tlb(unsigned long addr)
16 flush_tlb_one(addr);
18 EXPORT_SYMBOL(kmap_flush_tlb);
20 void __init kmap_init(void)
22 unsigned long vaddr;
23 pgd_t *pgd;
24 pmd_t *pmd;
25 pud_t *pud;
26 pte_t *pte;
28 vaddr = PKMAP_BASE;
29 fixrange_init(vaddr, vaddr + PAGE_SIZE*LAST_PKMAP, swapper_pg_dir);
31 pgd = swapper_pg_dir + pgd_index(vaddr);
32 pud = (pud_t *)pgd;
33 pmd = pmd_offset(pud, vaddr);
34 pte = pte_offset_kernel(pmd, vaddr);
35 pkmap_page_table = pte;