summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/mt8192/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/mediatek/mt8192/include')
-rw-r--r--src/soc/mediatek/mt8192/include/soc/devapc.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/soc/mediatek/mt8192/include/soc/devapc.h b/src/soc/mediatek/mt8192/include/soc/devapc.h
index f227aaadd3..7ba6d46477 100644
--- a/src/soc/mediatek/mt8192/include/soc/devapc.h
+++ b/src/soc/mediatek/mt8192/include/soc/devapc.h
@@ -11,6 +11,10 @@ void dapc_init(void);
#define DEVAPC_AO_MAX 6
enum devapc_ao_offset {
+ DOM_REMAP_0_0 = 0x800,
+ DOM_REMAP_1_0 = 0x810,
+ DOM_REMAP_1_1 = 0x814,
+ DOM_REMAP_2_0 = 0x820,
MAS_DOM_0 = 0x0900,
MAS_DOM_1 = 0x0904,
MAS_SEC_0 = 0x0A00,
@@ -48,5 +52,19 @@ enum master_domain {
MAS_DOMAIN_MAX,
};
+/* Domain Remap */
+DEFINE_BITFIELD(FOUR_BIT_DOM_REMAP_0, 3, 0)
+DEFINE_BITFIELD(FOUR_BIT_DOM_REMAP_1, 7, 4)
+DEFINE_BITFIELD(FOUR_BIT_DOM_REMAP_2, 11, 8)
+DEFINE_BITFIELD(FOUR_BIT_DOM_REMAP_3, 15, 12)
+DEFINE_BITFIELD(FOUR_BIT_DOM_REMAP_4, 19, 16)
+DEFINE_BITFIELD(FOUR_BIT_DOM_REMAP_5, 23, 20)
+DEFINE_BITFIELD(FOUR_BIT_DOM_REMAP_6, 27, 24)
+DEFINE_BITFIELD(FOUR_BIT_DOM_REMAP_7, 31, 28)
+
+DEFINE_BITFIELD(TWO_BIT_DOM_REMAP_0, 1, 0)
+DEFINE_BITFIELD(TWO_BIT_DOM_REMAP_1, 3, 2)
+DEFINE_BITFIELD(TWO_BIT_DOM_REMAP_2, 5, 4)
+DEFINE_BITFIELD(TWO_BIT_DOM_REMAP_3, 7, 6)
#endif /* SOC_MEDIATEK_MT8192_DEVAPC_H */