From: Janghyuck Kim Date: Tue, 8 Nov 2016 11:33:51 +0000 (+0900) Subject: [COMMON] include: add definition for TLB port setting X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ba35169788fe324c8c048730ba13d9d579a46e9b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [COMMON] include: add definition for TLB port setting Change-Id: I49560e481edc20b8134861f9314cbda19cb48925 Signed-off-by: Janghyuck Kim --- 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 */