[linux] porting cvitek asic chips.

1. update cv182x/cv183x configuration file
	2. update cv181x/cv180x configuration file
	3. update clk driver for cvitek
	4. update dma driver for cvitek
	5. update soc driver for cvitek
	6. porting cvitek ion driver from kernel-4.19
	7. compatible with riscv

Change-Id: Icff9fafe0ebe7d6bab824bbadb952e08bdc66c19
This commit is contained in:
wangliang.wang
2023-03-09 14:38:25 +08:00
committed by sam.xiang
parent 4bc998a131
commit 4f810186ab
2062 changed files with 544892 additions and 2134 deletions

View File

@ -24,6 +24,13 @@
#define _PAGE_DIRTY (1 << 7) /* Set by hardware on any write */
#define _PAGE_SOFT (1 << 8) /* Reserved for software */
/* T-HEAD C9xx extend */
#define _PAGE_SEC (1UL << 59) /* Security */
#define _PAGE_SHARE (1UL << 60) /* Shareable */
#define _PAGE_BUF (1UL << 61) /* Bufferable */
#define _PAGE_CACHE (1UL << 62) /* Cacheable */
#define _PAGE_SO (1UL << 63) /* Strong Order */
#define _PAGE_SPECIAL _PAGE_SOFT
#define _PAGE_TABLE _PAGE_PRESENT
@ -38,6 +45,9 @@
/* Set of bits to preserve across pte_modify() */
#define _PAGE_CHG_MASK (~(unsigned long)(_PAGE_PRESENT | _PAGE_READ | \
_PAGE_WRITE | _PAGE_EXEC | \
_PAGE_USER | _PAGE_GLOBAL))
_PAGE_USER | _PAGE_GLOBAL | \
_PAGE_SEC | _PAGE_SHARE | \
_PAGE_BUF | _PAGE_CACHE | \
_PAGE_SO ))
#endif /* _ASM_RISCV_PGTABLE_BITS_H */