mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
iommu/rockchip: fix v2 pte read/write permission bit
Change-Id: I9f799d5ef116b4a2ed62a39d62b439e30d41c155 Signed-off-by: Simon Xue <xxm@rock-chips.com>
This commit is contained in:
@@ -285,14 +285,14 @@ static inline u32 rk_mk_dte_v2(dma_addr_t pt_dma)
|
||||
* 11:9 - Page address bit 34:32
|
||||
* 8:4 - Page address bit 39:35
|
||||
* 3 - Security
|
||||
* 2 - Readable
|
||||
* 1 - Writable
|
||||
* 2 - Writable
|
||||
* 1 - Readable
|
||||
* 0 - 1 if Page @ Page address is valid
|
||||
*/
|
||||
#define RK_PTE_PAGE_ADDRESS_MASK_V2 0xfffffff0
|
||||
#define RK_PTE_PAGE_FLAGS_MASK_V2 0x0000000e
|
||||
#define RK_PTE_PAGE_READABLE_V2 BIT(2)
|
||||
#define RK_PTE_PAGE_WRITABLE_V2 BIT(1)
|
||||
#define RK_PTE_PAGE_READABLE_V2 BIT(1)
|
||||
#define RK_PTE_PAGE_WRITABLE_V2 BIT(2)
|
||||
|
||||
static inline phys_addr_t rk_pte_page_address(u32 pte)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user