1e2ad626fSUlf Hansson /* SPDX-License-Identifier: GPL-2.0-only */ 2e2ad626fSUlf Hansson /* 3e2ad626fSUlf Hansson * Copyright (c) 2022 MediaTek Inc. 4e2ad626fSUlf Hansson * Author: Garmin Chang <garmin.chang@mediatek.com> 5e2ad626fSUlf Hansson */ 6e2ad626fSUlf Hansson 7e2ad626fSUlf Hansson #ifndef __SOC_MEDIATEK_MT8188_PM_DOMAINS_H 8e2ad626fSUlf Hansson #define __SOC_MEDIATEK_MT8188_PM_DOMAINS_H 9e2ad626fSUlf Hansson 10e2ad626fSUlf Hansson #include "mtk-pm-domains.h" 11e2ad626fSUlf Hansson #include <dt-bindings/power/mediatek,mt8188-power.h> 12e2ad626fSUlf Hansson 13e2ad626fSUlf Hansson /* 14e2ad626fSUlf Hansson * MT8188 power domain support 15e2ad626fSUlf Hansson */ 16e2ad626fSUlf Hansson 17e2ad626fSUlf Hansson static const struct scpsys_domain_data scpsys_domain_data_mt8188[] = { 18e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_MFG0] = { 19e2ad626fSUlf Hansson .name = "mfg0", 20e2ad626fSUlf Hansson .sta_mask = BIT(1), 21e2ad626fSUlf Hansson .ctl_offs = 0x300, 22e2ad626fSUlf Hansson .pwr_sta_offs = 0x174, 23e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x178, 24e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 25e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 26e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF | MTK_SCPD_DOMAIN_SUPPLY, 27e2ad626fSUlf Hansson }, 28e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_MFG1] = { 29e2ad626fSUlf Hansson .name = "mfg1", 30e2ad626fSUlf Hansson .sta_mask = BIT(2), 31e2ad626fSUlf Hansson .ctl_offs = 0x304, 32e2ad626fSUlf Hansson .pwr_sta_offs = 0x174, 33e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x178, 34e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 35e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 36*151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 37*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 38*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MFG1_STEP1, 39e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_SET, 40e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_CLR, 41e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_STA), 42*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 43*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_2_MFG1_STEP2, 44e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_SET, 45e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_CLR, 46e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_STA), 47*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 48*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_1_MFG1_STEP3, 49e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_1_SET, 50e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_1_CLR, 51e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_1_STA), 52*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 53*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_2_MFG1_STEP4, 54e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_SET, 55e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_CLR, 56e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_STA), 57*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 58*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MFG1_STEP5, 59e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_SET, 60e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_CLR, 61e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_STA), 62*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 63*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_SUB_INFRA_VDNR_MFG1_STEP6, 64e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_SUB_INFRA_VDNR_SET, 65e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_SUB_INFRA_VDNR_CLR, 66e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_SUB_INFRA_VDNR_STA), 67e2ad626fSUlf Hansson }, 68e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF | MTK_SCPD_DOMAIN_SUPPLY, 69e2ad626fSUlf Hansson }, 70e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_MFG2] = { 71e2ad626fSUlf Hansson .name = "mfg2", 72e2ad626fSUlf Hansson .sta_mask = BIT(3), 73e2ad626fSUlf Hansson .ctl_offs = 0x308, 74e2ad626fSUlf Hansson .pwr_sta_offs = 0x174, 75e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x178, 76e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 77e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 78e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 79e2ad626fSUlf Hansson }, 80e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_MFG3] = { 81e2ad626fSUlf Hansson .name = "mfg3", 82e2ad626fSUlf Hansson .sta_mask = BIT(4), 83e2ad626fSUlf Hansson .ctl_offs = 0x30C, 84e2ad626fSUlf Hansson .pwr_sta_offs = 0x174, 85e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x178, 86e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 87e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 88e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 89e2ad626fSUlf Hansson }, 90e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_MFG4] = { 91e2ad626fSUlf Hansson .name = "mfg4", 92e2ad626fSUlf Hansson .sta_mask = BIT(5), 93e2ad626fSUlf Hansson .ctl_offs = 0x310, 94e2ad626fSUlf Hansson .pwr_sta_offs = 0x174, 95e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x178, 96e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 97e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 98e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 99e2ad626fSUlf Hansson }, 100e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_PEXTP_MAC_P0] = { 101e2ad626fSUlf Hansson .name = "pextp_mac_p0", 102e2ad626fSUlf Hansson .sta_mask = BIT(10), 103e2ad626fSUlf Hansson .ctl_offs = 0x324, 104e2ad626fSUlf Hansson .pwr_sta_offs = 0x174, 105e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x178, 106e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 107e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 108*151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 109*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 110*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_PEXTP_MAC_P0_STEP1, 111e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_SET, 112e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_CLR, 113e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_STA), 114*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 115*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_INFRA_VDNR_PEXTP_MAC_P0_STEP2, 116e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_INFRA_VDNR_SET, 117e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_INFRA_VDNR_CLR, 118e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_INFRA_VDNR_STA), 119e2ad626fSUlf Hansson }, 120e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 121e2ad626fSUlf Hansson }, 122e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_PEXTP_PHY_TOP] = { 123e2ad626fSUlf Hansson .name = "pextp_phy_top", 124e2ad626fSUlf Hansson .sta_mask = BIT(12), 125e2ad626fSUlf Hansson .ctl_offs = 0x328, 126e2ad626fSUlf Hansson .pwr_sta_offs = 0x174, 127e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x178, 128e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 129e2ad626fSUlf Hansson }, 130e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_CSIRX_TOP] = { 131e2ad626fSUlf Hansson .name = "pextp_csirx_top", 132e2ad626fSUlf Hansson .sta_mask = BIT(17), 133e2ad626fSUlf Hansson .ctl_offs = 0x3C4, 134e2ad626fSUlf Hansson .pwr_sta_offs = 0x174, 135e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x178, 136e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 137e2ad626fSUlf Hansson }, 138e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_ETHER] = { 139e2ad626fSUlf Hansson .name = "ether", 140e2ad626fSUlf Hansson .sta_mask = BIT(1), 141e2ad626fSUlf Hansson .ctl_offs = 0x338, 142e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 143e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 144e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 145e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 146*151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 147*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 148*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_INFRA_VDNR_ETHER_STEP1, 149e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_INFRA_VDNR_SET, 150e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_INFRA_VDNR_CLR, 151e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_INFRA_VDNR_STA), 152e2ad626fSUlf Hansson }, 153e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF | MTK_SCPD_ACTIVE_WAKEUP, 154e2ad626fSUlf Hansson }, 155e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_HDMI_TX] = { 156e2ad626fSUlf Hansson .name = "hdmi_tx", 157e2ad626fSUlf Hansson .sta_mask = BIT(18), 158e2ad626fSUlf Hansson .ctl_offs = 0x37C, 159e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 160e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 161e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 162e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 163*151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 164*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 165*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_INFRA_VDNR_HDMI_TX_STEP1, 166e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_INFRA_VDNR_SET, 167e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_INFRA_VDNR_CLR, 168e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_INFRA_VDNR_STA), 169e2ad626fSUlf Hansson }, 170e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF | MTK_SCPD_ACTIVE_WAKEUP, 171e2ad626fSUlf Hansson }, 172e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_ADSP_AO] = { 173e2ad626fSUlf Hansson .name = "adsp_ao", 174e2ad626fSUlf Hansson .sta_mask = BIT(10), 175e2ad626fSUlf Hansson .ctl_offs = 0x35C, 176e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 177e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 178*151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 179*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 180*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_2_ADSP_AO_STEP1, 181e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_SET, 182e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_CLR, 183e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_STA), 184*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 185*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_2_ADSP_AO_STEP2, 186e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_SET, 187e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_CLR, 188e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_STA), 189e2ad626fSUlf Hansson }, 190e2ad626fSUlf Hansson .caps = MTK_SCPD_ALWAYS_ON, 191e2ad626fSUlf Hansson }, 192e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_ADSP_INFRA] = { 193e2ad626fSUlf Hansson .name = "adsp_infra", 194e2ad626fSUlf Hansson .sta_mask = BIT(9), 195e2ad626fSUlf Hansson .ctl_offs = 0x358, 196e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 197e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 198e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 199e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 200*151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 201*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 202*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_2_ADSP_INFRA_STEP1, 203e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_SET, 204e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_CLR, 205e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_STA), 206*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 207*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_2_ADSP_INFRA_STEP2, 208e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_SET, 209e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_CLR, 210e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_STA), 211e2ad626fSUlf Hansson }, 212e2ad626fSUlf Hansson .caps = MTK_SCPD_SRAM_ISO | MTK_SCPD_ALWAYS_ON, 213e2ad626fSUlf Hansson }, 214e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_ADSP] = { 215e2ad626fSUlf Hansson .name = "adsp", 216e2ad626fSUlf Hansson .sta_mask = BIT(8), 217e2ad626fSUlf Hansson .ctl_offs = 0x354, 218e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 219e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 220e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 221e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 222*151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 223*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 224*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_2_ADSP_STEP1, 225e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_SET, 226e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_CLR, 227e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_STA), 228*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 229*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_2_ADSP_STEP2, 230e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_SET, 231e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_CLR, 232e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_STA), 233e2ad626fSUlf Hansson }, 234e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF | MTK_SCPD_SRAM_ISO | MTK_SCPD_ACTIVE_WAKEUP, 235e2ad626fSUlf Hansson }, 236e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_AUDIO] = { 237e2ad626fSUlf Hansson .name = "audio", 238e2ad626fSUlf Hansson .sta_mask = BIT(6), 239e2ad626fSUlf Hansson .ctl_offs = 0x34C, 240e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 241e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 242e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 243e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 244*151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 245*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 246*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_2_AUDIO_STEP1, 247e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_SET, 248e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_CLR, 249e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_STA), 250*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 251*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_2_AUDIO_STEP2, 252e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_SET, 253e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_CLR, 254e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_STA), 255e2ad626fSUlf Hansson }, 256e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF | MTK_SCPD_ACTIVE_WAKEUP, 257e2ad626fSUlf Hansson }, 258e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_AUDIO_ASRC] = { 259e2ad626fSUlf Hansson .name = "audio_asrc", 260e2ad626fSUlf Hansson .sta_mask = BIT(7), 261e2ad626fSUlf Hansson .ctl_offs = 0x350, 262e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 263e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 264e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 265e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 266*151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 267*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 268*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_2_AUDIO_ASRC_STEP1, 269e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_SET, 270e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_CLR, 271e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_STA), 272*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 273*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_2_AUDIO_ASRC_STEP2, 274e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_SET, 275e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_CLR, 276e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_STA), 277e2ad626fSUlf Hansson }, 278e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 279e2ad626fSUlf Hansson }, 280e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_VPPSYS0] = { 281e2ad626fSUlf Hansson .name = "vppsys0", 282e2ad626fSUlf Hansson .sta_mask = BIT(11), 283e2ad626fSUlf Hansson .ctl_offs = 0x360, 284e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 285e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 286e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 287e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 288*151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 289*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 290*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_VPPSYS0_STEP1, 291e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_SET, 292e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_CLR, 293e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_STA), 294*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 295*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_2_VPPSYS0_STEP2, 296e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_SET, 297e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_CLR, 298e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_STA), 299*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 300*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_VPPSYS0_STEP3, 301e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_SET, 302e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_CLR, 303e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_STA), 304*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 305*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_2_VPPSYS0_STEP4, 306e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_SET, 307e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_CLR, 308e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_STA), 309*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 310*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_SUB_INFRA_VDNR_VPPSYS0_STEP5, 311e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_SUB_INFRA_VDNR_SET, 312e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_SUB_INFRA_VDNR_CLR, 313e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_SUB_INFRA_VDNR_STA), 314e2ad626fSUlf Hansson }, 315e2ad626fSUlf Hansson }, 316e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_VDOSYS0] = { 317e2ad626fSUlf Hansson .name = "vdosys0", 318e2ad626fSUlf Hansson .sta_mask = BIT(13), 319e2ad626fSUlf Hansson .ctl_offs = 0x368, 320e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 321e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 322e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 323e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 324*151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 325*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 326*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_VDOSYS0_STEP1, 327e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_SET, 328e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_CLR, 329e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_STA), 330*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 331*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_VDOSYS0_STEP2, 332e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_SET, 333e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_CLR, 334e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_STA), 335*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 336*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_SUB_INFRA_VDNR_VDOSYS0_STEP3, 337e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_SUB_INFRA_VDNR_SET, 338e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_SUB_INFRA_VDNR_CLR, 339e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_SUB_INFRA_VDNR_STA), 340e2ad626fSUlf Hansson }, 341e2ad626fSUlf Hansson }, 342e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_VDOSYS1] = { 343e2ad626fSUlf Hansson .name = "vdosys1", 344e2ad626fSUlf Hansson .sta_mask = BIT(14), 345e2ad626fSUlf Hansson .ctl_offs = 0x36C, 346e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 347e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 348e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 349e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 350*151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 351*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 352*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_VDOSYS1_STEP1, 353e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_SET, 354e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_CLR, 355e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_STA), 356*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 357*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_VDOSYS1_STEP2, 358e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_SET, 359e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_CLR, 360e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_STA), 361*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 362*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_2_VDOSYS1_STEP3, 363e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_SET, 364e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_CLR, 365e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_STA), 366e2ad626fSUlf Hansson }, 367e2ad626fSUlf Hansson }, 368e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_DP_TX] = { 369e2ad626fSUlf Hansson .name = "dp_tx", 370e2ad626fSUlf Hansson .sta_mask = BIT(16), 371e2ad626fSUlf Hansson .ctl_offs = 0x374, 372e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 373e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 374e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 375e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 376*151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 377*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 378*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_INFRA_VDNR_DP_TX_STEP1, 379e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_INFRA_VDNR_SET, 380e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_INFRA_VDNR_CLR, 381e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_INFRA_VDNR_STA), 382e2ad626fSUlf Hansson }, 383e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 384e2ad626fSUlf Hansson }, 385e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_EDP_TX] = { 386e2ad626fSUlf Hansson .name = "edp_tx", 387e2ad626fSUlf Hansson .sta_mask = BIT(17), 388e2ad626fSUlf Hansson .ctl_offs = 0x378, 389e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 390e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 391e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 392e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 393*151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 394*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 395*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_INFRA_VDNR_EDP_TX_STEP1, 396e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_INFRA_VDNR_SET, 397e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_INFRA_VDNR_CLR, 398e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_INFRA_VDNR_STA), 399e2ad626fSUlf Hansson }, 400e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 401e2ad626fSUlf Hansson }, 402e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_VPPSYS1] = { 403e2ad626fSUlf Hansson .name = "vppsys1", 404e2ad626fSUlf Hansson .sta_mask = BIT(12), 405e2ad626fSUlf Hansson .ctl_offs = 0x364, 406e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 407e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 408e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 409e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 410*151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 411*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 412*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_VPPSYS1_STEP1, 413e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_SET, 414e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_CLR, 415e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_STA), 416*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 417*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_VPPSYS1_STEP2, 418e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_SET, 419e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_CLR, 420e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_STA), 421*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 422*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_2_VPPSYS1_STEP3, 423e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_SET, 424e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_CLR, 425e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_STA), 426e2ad626fSUlf Hansson }, 427e2ad626fSUlf Hansson }, 428e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_WPE] = { 429e2ad626fSUlf Hansson .name = "wpe", 430e2ad626fSUlf Hansson .sta_mask = BIT(15), 431e2ad626fSUlf Hansson .ctl_offs = 0x370, 432e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 433e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 434e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 435e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 436*151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 437*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 438*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_2_WPE_STEP1, 439e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_SET, 440e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_CLR, 441e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_STA), 442*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 443*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_2_WPE_STEP2, 444e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_SET, 445e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_CLR, 446e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_STA), 447e2ad626fSUlf Hansson }, 448e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 449e2ad626fSUlf Hansson }, 450e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_VDEC0] = { 451e2ad626fSUlf Hansson .name = "vdec0", 452e2ad626fSUlf Hansson .sta_mask = BIT(19), 453e2ad626fSUlf Hansson .ctl_offs = 0x380, 454e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 455e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 456e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 457e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 458*151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 459*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 460*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_VDEC0_STEP1, 461e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_SET, 462e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_CLR, 463e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_STA), 464*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 465*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_2_VDEC0_STEP2, 466e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_SET, 467e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_CLR, 468e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_STA), 469e2ad626fSUlf Hansson }, 470e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 471e2ad626fSUlf Hansson }, 472e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_VDEC1] = { 473e2ad626fSUlf Hansson .name = "vdec1", 474e2ad626fSUlf Hansson .sta_mask = BIT(20), 475e2ad626fSUlf Hansson .ctl_offs = 0x384, 476e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 477e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 478e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 479e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 480*151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 481*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 482*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_VDEC1_STEP1, 483e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_SET, 484e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_CLR, 485e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_STA), 486*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 487*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_VDEC1_STEP2, 488e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_SET, 489e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_CLR, 490e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_STA), 491e2ad626fSUlf Hansson }, 492e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 493e2ad626fSUlf Hansson }, 494e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_VENC] = { 495e2ad626fSUlf Hansson .name = "venc", 496e2ad626fSUlf Hansson .sta_mask = BIT(22), 497e2ad626fSUlf Hansson .ctl_offs = 0x38C, 498e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 499e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 500e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 501e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 502*151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 503*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 504*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_VENC_STEP1, 505e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_SET, 506e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_CLR, 507e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_STA), 508*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 509*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_VENC_STEP2, 510e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_SET, 511e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_CLR, 512e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_STA), 513*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 514*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_2_VENC_STEP3, 515e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_SET, 516e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_CLR, 517e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_STA), 518e2ad626fSUlf Hansson }, 519e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 520e2ad626fSUlf Hansson }, 521e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_IMG_VCORE] = { 522e2ad626fSUlf Hansson .name = "vcore", 523e2ad626fSUlf Hansson .sta_mask = BIT(28), 524e2ad626fSUlf Hansson .ctl_offs = 0x3A4, 525e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 526e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 527*151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 528*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 529*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_IMG_VCORE_STEP1, 530e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_SET, 531e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_CLR, 532e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_STA), 533*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 534*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_IMG_VCORE_STEP2, 535e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_SET, 536e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_CLR, 537e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_STA), 538*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 539*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_2_IMG_VCORE_STEP3, 540e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_SET, 541e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_CLR, 542e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_STA), 543e2ad626fSUlf Hansson }, 544e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF | MTK_SCPD_DOMAIN_SUPPLY, 545e2ad626fSUlf Hansson }, 546e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_IMG_MAIN] = { 547e2ad626fSUlf Hansson .name = "img_main", 548e2ad626fSUlf Hansson .sta_mask = BIT(29), 549e2ad626fSUlf Hansson .ctl_offs = 0x3A8, 550e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 551e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 552e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 553e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 554*151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 555*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 556*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_2_IMG_MAIN_STEP1, 557e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_SET, 558e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_CLR, 559e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_STA), 560*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 561*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_2_IMG_MAIN_STEP2, 562e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_SET, 563e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_CLR, 564e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_STA), 565e2ad626fSUlf Hansson }, 566e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 567e2ad626fSUlf Hansson }, 568e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_DIP] = { 569e2ad626fSUlf Hansson .name = "dip", 570e2ad626fSUlf Hansson .sta_mask = BIT(30), 571e2ad626fSUlf Hansson .ctl_offs = 0x3AC, 572e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 573e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 574e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 575e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 576e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 577e2ad626fSUlf Hansson }, 578e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_IPE] = { 579e2ad626fSUlf Hansson .name = "ipe", 580e2ad626fSUlf Hansson .sta_mask = BIT(31), 581e2ad626fSUlf Hansson .ctl_offs = 0x3B0, 582e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 583e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 584e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 585e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 586e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 587e2ad626fSUlf Hansson }, 588e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_CAM_VCORE] = { 589e2ad626fSUlf Hansson .name = "cam_vcore", 590e2ad626fSUlf Hansson .sta_mask = BIT(27), 591e2ad626fSUlf Hansson .ctl_offs = 0x3A0, 592e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 593e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 594*151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 595*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 596*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_CAM_VCORE_STEP1, 597e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_SET, 598e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_CLR, 599e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_STA), 600*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 601*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_2_CAM_VCORE_STEP2, 602e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_SET, 603e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_CLR, 604e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_STA), 605*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 606*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_1_CAM_VCORE_STEP3, 607e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_1_SET, 608e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_1_CLR, 609e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_1_STA), 610*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 611*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_CAM_VCORE_STEP4, 612e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_SET, 613e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_CLR, 614e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_STA), 615*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 616*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_2_CAM_VCORE_STEP5, 617e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_SET, 618e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_CLR, 619e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_STA), 620e2ad626fSUlf Hansson }, 621e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF | MTK_SCPD_DOMAIN_SUPPLY, 622e2ad626fSUlf Hansson }, 623e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_CAM_MAIN] = { 624e2ad626fSUlf Hansson .name = "cam_main", 625e2ad626fSUlf Hansson .sta_mask = BIT(24), 626e2ad626fSUlf Hansson .ctl_offs = 0x394, 627e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 628e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 629e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 630e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 631*151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 632*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 633*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_2_CAM_MAIN_STEP1, 634e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_SET, 635e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_CLR, 636e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_STA), 637*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 638*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_2_CAM_MAIN_STEP2, 639e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_SET, 640e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_CLR, 641e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_STA), 642*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 643*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_2_CAM_MAIN_STEP3, 644e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_SET, 645e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_CLR, 646e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_STA), 647*151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 648*151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_2_CAM_MAIN_STEP4, 649e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_SET, 650e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_CLR, 651e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_STA), 652e2ad626fSUlf Hansson }, 653e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 654e2ad626fSUlf Hansson }, 655e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_CAM_SUBA] = { 656e2ad626fSUlf Hansson .name = "cam_suba", 657e2ad626fSUlf Hansson .sta_mask = BIT(25), 658e2ad626fSUlf Hansson .ctl_offs = 0x398, 659e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 660e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 661e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 662e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 663e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 664e2ad626fSUlf Hansson }, 665e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_CAM_SUBB] = { 666e2ad626fSUlf Hansson .name = "cam_subb", 667e2ad626fSUlf Hansson .sta_mask = BIT(26), 668e2ad626fSUlf Hansson .ctl_offs = 0x39C, 669e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 670e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 671e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 672e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 673e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 674e2ad626fSUlf Hansson }, 675e2ad626fSUlf Hansson }; 676e2ad626fSUlf Hansson 677e2ad626fSUlf Hansson static const struct scpsys_soc_data mt8188_scpsys_data = { 678e2ad626fSUlf Hansson .domains_data = scpsys_domain_data_mt8188, 679e2ad626fSUlf Hansson .num_domains = ARRAY_SIZE(scpsys_domain_data_mt8188), 680e2ad626fSUlf Hansson }; 681e2ad626fSUlf Hansson 682e2ad626fSUlf Hansson #endif /* __SOC_MEDIATEK_MT8188_PM_DOMAINS_H */ 683