From ba35169788fe324c8c048730ba13d9d579a46e9b Mon Sep 17 00:00:00 2001 From: Janghyuck Kim Date: Tue, 8 Nov 2016 20:33:51 +0900 Subject: [PATCH] [COMMON] include: add definition for TLB port setting Change-Id: I49560e481edc20b8134861f9314cbda19cb48925 Signed-off-by: Janghyuck Kim --- include/dt-bindings/sysmmu/sysmmu.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/include/dt-bindings/sysmmu/sysmmu.h b/include/dt-bindings/sysmmu/sysmmu.h index b972dc086fee..502a009648f7 100644 --- a/include/dt-bindings/sysmmu/sysmmu.h +++ b/include/dt-bindings/sysmmu/sysmmu.h @@ -37,6 +37,8 @@ #define _PREFETCH_ENABLE (0x1 << 1) #define _PREFETCH_DISABLE (0x0 << 1) +#define _PORT_MASK(pmask) ((pmask) << 16) + /* * Use below definitions for TLB properties setting. * @@ -97,4 +99,17 @@ (_PRIVATE_WAY_ADDR | _TARGET_READWRITE | _PREFETCH_DISABLE) #define SYSMMU_PRIV_ADDR_PREFETCH_ASCENDING_READ \ (_PRIVATE_WAY_ADDR | _TARGET_READ | _DIR_ASCENDING | _PREFETCH_ENABLE) + +/* PORT_TYPE_DEFINE: Definition for TLB port dedication "configuration". */ +#define SYSMMU_PORT_NO_PREFETCH_READ(pmask) \ + ( _PORT_MASK(pmask) | _TARGET_READ | _PREFETCH_DISABLE) +#define SYSMMU_PORT_NO_PREFETCH_WRITE(pmask) \ + ( _PORT_MASK(pmask) | _TARGET_WRITE | _PREFETCH_DISABLE) +#define SYSMMU_PORT_NO_PREFETCH_READWRITE(pmask) \ + ( _PORT_MASK(pmask) | _TARGET_READWRITE | _PREFETCH_DISABLE) +#define SYSMMU_PORT_PREFETCH_PREDICTION_READ(pmask) \ + ( _PORT_MASK(pmask) | _TARGET_READ | _DIR_PREDICTION | _PREFETCH_ENABLE) +#define SYSMMU_PORT_PREFETCH_PREDICTION_WRITE(pmask) \ + ( _PORT_MASK(pmask) | _TARGET_WRITE | _DIR_PREDICTION | _PREFETCH_ENABLE) + #endif /* _DT_BINDINGS_EXYNOS_SYSTEM_MMU_H */ -- 2.20.1