summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/mt8195/include
diff options
context:
space:
mode:
authorRex-BC Chen <rex-bc.chen@mediatek.corp-partner.google.com>2021-12-27 16:05:19 +0800
committerFelix Held <felix-coreboot@felixheld.de>2021-12-28 09:33:35 +0000
commit800b24f7f71bb1714b50d90b276a65da4dc8ae66 (patch)
tree47391e607f4a4dae93f33f9586753f51d3dd8d5d /src/soc/mediatek/mt8195/include
parent32992f264f3d022d544c7c675f2572971eb90eaf (diff)
soc/mediatek/mt8195: Move some definations of devapc to common folder
Move some definations of devapc for sharing between MT8195 and MT8186. BUG=b:202871018 TEST=emerge-cherry coreboot; emerge-corsola coreboot; Signed-off-by: Rex-BC Chen <rex-bc.chen@mediatek.com> Change-Id: Ia1769ede790f106a320ead9be7e2a596fe96930a Reviewed-on: https://review.coreboot.org/c/coreboot/+/60394 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/soc/mediatek/mt8195/include')
-rw-r--r--src/soc/mediatek/mt8195/include/soc/devapc.h45
1 files changed, 0 insertions, 45 deletions
diff --git a/src/soc/mediatek/mt8195/include/soc/devapc.h b/src/soc/mediatek/mt8195/include/soc/devapc.h
index 5267b3b2e9..a355fdf042 100644
--- a/src/soc/mediatek/mt8195/include/soc/devapc.h
+++ b/src/soc/mediatek/mt8195/include/soc/devapc.h
@@ -76,51 +76,6 @@ struct apc_infra_peri_dom_4 {
unsigned char d_permission[4];
};
-#define DAPC_PERM_ATTR_4(DEV_NAME, PERM_ATTR0, PERM_ATTR1, \
- PERM_ATTR2, PERM_ATTR3) \
- (unsigned char)PERM_ATTR0, (unsigned char)PERM_ATTR1, \
- (unsigned char)PERM_ATTR2, (unsigned char)PERM_ATTR3,
-
-#define DAPC_PERM_ATTR_8(DEV_NAME, PERM_ATTR0, PERM_ATTR1, \
- PERM_ATTR2, PERM_ATTR3, PERM_ATTR4, PERM_ATTR5, \
- PERM_ATTR6, PERM_ATTR7) \
- DAPC_PERM_ATTR_4(DEV_NAME, PERM_ATTR0, PERM_ATTR1, \
- PERM_ATTR2, PERM_ATTR3) \
- DAPC_PERM_ATTR_4(DEV_NAME, PERM_ATTR4, PERM_ATTR5, \
- PERM_ATTR6, PERM_ATTR7)
-
-#define DAPC_PERM_ATTR_16(DEV_NAME, PERM_ATTR0, PERM_ATTR1, \
- PERM_ATTR2, PERM_ATTR3, PERM_ATTR4, PERM_ATTR5, \
- PERM_ATTR6, PERM_ATTR7, PERM_ATTR8, PERM_ATTR9, \
- PERM_ATTR10, PERM_ATTR11, PERM_ATTR12, PERM_ATTR13, \
- PERM_ATTR14, PERM_ATTR15) \
- DAPC_PERM_ATTR_8(DEV_NAME, PERM_ATTR0, PERM_ATTR1, \
- PERM_ATTR2, PERM_ATTR3, \
- PERM_ATTR4, PERM_ATTR5, \
- PERM_ATTR6, PERM_ATTR7) \
- DAPC_PERM_ATTR_8(DEV_NAME, PERM_ATTR8, PERM_ATTR9, \
- PERM_ATTR10, PERM_ATTR11, \
- PERM_ATTR12, PERM_ATTR13, \
- PERM_ATTR14, PERM_ATTR15)
-
-#define NO_PROTECTION2 NO_PROTECTION, NO_PROTECTION
-#define NO_PROTECTION3 NO_PROTECTION2, NO_PROTECTION
-
-#define FORBIDDEN2 FORBIDDEN, FORBIDDEN
-#define FORBIDDEN3 FORBIDDEN, FORBIDDEN, FORBIDDEN
-#define FORBIDDEN7 FORBIDDEN, FORBIDDEN, FORBIDDEN, FORBIDDEN, FORBIDDEN, \
- FORBIDDEN, FORBIDDEN
-#define FORBIDDEN10 FORBIDDEN, FORBIDDEN, FORBIDDEN, FORBIDDEN, \
- FORBIDDEN, FORBIDDEN, FORBIDDEN, FORBIDDEN, FORBIDDEN, \
- FORBIDDEN
-#define FORBIDDEN11 FORBIDDEN, FORBIDDEN, FORBIDDEN, FORBIDDEN, FORBIDDEN, \
- FORBIDDEN, FORBIDDEN, FORBIDDEN, FORBIDDEN, FORBIDDEN, \
- FORBIDDEN
-#define FORBIDDEN12 FORBIDDEN11, FORBIDDEN
-#define FORBIDDEN13 FORBIDDEN12, FORBIDDEN
-#define FORBIDDEN14 FORBIDDEN13, FORBIDDEN
-#define FORBIDDEN15 FORBIDDEN14, FORBIDDEN
-
enum devapc_sys_dom_num {
DOM_NUM_INFRA_AO_SYS0 = 16,
DOM_NUM_INFRA_AO_SYS1 = 4,