summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/mt8195/include
diff options
context:
space:
mode:
authorBo-Chen Chen <rex-bc.chen@mediatek.com>2022-08-29 19:05:06 +0800
committerMartin Roth <martin.roth@amd.corp-partner.google.com>2022-08-31 16:45:58 +0000
commit297b6340623cf351ba219237e8e9d049e8c10c67 (patch)
tree9610d336ebdec7f773214376afbb83800d70b321 /src/soc/mediatek/mt8195/include
parent40adaf6e7c5966e1e4bec6528d0a24339c10e226 (diff)
soc/mediatek: Move common DEVPAC enums and functions to common
Some enums and functions are the same in DEVAPC driver for MT8195, MT8186, and MT8188, so we move them to common folder. TEST=build pass. BUG=b:233720142 Signed-off-by: Bo-Chen Chen <rex-bc.chen@mediatek.com> Change-Id: Ia7d2145780780fd54b76952db96424b8ea477594 Reviewed-on: https://review.coreboot.org/c/coreboot/+/67171 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.h35
1 files changed, 2 insertions, 33 deletions
diff --git a/src/soc/mediatek/mt8195/include/soc/devapc.h b/src/soc/mediatek/mt8195/include/soc/devapc.h
index a355fdf042..cfebffde53 100644
--- a/src/soc/mediatek/mt8195/include/soc/devapc.h
+++ b/src/soc/mediatek/mt8195/include/soc/devapc.h
@@ -31,39 +31,6 @@ enum scp_offset {
/******************************************************************************
* STRUCTURE DEFINITION
******************************************************************************/
-/* Common */
-enum trans_type {
- NON_SECURE_TRANS = 0,
- SECURE_TRANS,
-};
-
-enum devapc_perm_type {
- NO_PROTECTION = 0,
- SEC_RW_ONLY,
- SEC_RW_NS_R,
- FORBIDDEN,
- PERM_NUM,
-};
-
-enum domain_id {
- DOMAIN_0 = 0,
- DOMAIN_1,
- DOMAIN_2,
- DOMAIN_3,
- DOMAIN_4,
- DOMAIN_5,
- DOMAIN_6,
- DOMAIN_7,
- DOMAIN_8,
- DOMAIN_9,
- DOMAIN_10,
- DOMAIN_11,
- DOMAIN_12,
- DOMAIN_13,
- DOMAIN_14,
- DOMAIN_15,
-};
-
struct apc_infra_peri_dom_16 {
unsigned char d_permission[16];
};
@@ -103,6 +70,8 @@ enum devapc_cfg_index {
* Variable DEFINITION
******************************************************************************/
#define MOD_NO_IN_1_DEVAPC 16
+#define DOMAIN_OFT 0x40
+#define IDX_OFT 0x4
/******************************************************************************
* Bit Field DEFINITION