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), 36151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 37151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 38151bd6c5SMarkus 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), 42151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 43151bd6c5SMarkus 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), 47151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 48151bd6c5SMarkus 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), 52151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 53151bd6c5SMarkus 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), 57151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 58151bd6c5SMarkus 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), 62151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 63151bd6c5SMarkus 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), 108151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 109151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 110151bd6c5SMarkus 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), 114151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 115151bd6c5SMarkus 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), 146151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 147151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 148151bd6c5SMarkus 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), 163151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 164151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 165151bd6c5SMarkus 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*b1d4c60cSJohnson Wang .ext_buck_iso_offs = 0x3EC, 179*b1d4c60cSJohnson Wang .ext_buck_iso_mask = BIT(10), 180151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 181151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 182151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_2_ADSP_AO_STEP1, 183e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_SET, 184e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_CLR, 185e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_STA), 186151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 187151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_2_ADSP_AO_STEP2, 188e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_SET, 189e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_CLR, 190e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_STA), 191e2ad626fSUlf Hansson }, 192*b1d4c60cSJohnson Wang .caps = MTK_SCPD_ALWAYS_ON | MTK_SCPD_EXT_BUCK_ISO, 193e2ad626fSUlf Hansson }, 194e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_ADSP_INFRA] = { 195e2ad626fSUlf Hansson .name = "adsp_infra", 196e2ad626fSUlf Hansson .sta_mask = BIT(9), 197e2ad626fSUlf Hansson .ctl_offs = 0x358, 198e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 199e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 200e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 201e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 202151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 203151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 204151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_2_ADSP_INFRA_STEP1, 205e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_SET, 206e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_CLR, 207e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_STA), 208151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 209151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_2_ADSP_INFRA_STEP2, 210e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_SET, 211e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_CLR, 212e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_STA), 213e2ad626fSUlf Hansson }, 214e2ad626fSUlf Hansson .caps = MTK_SCPD_SRAM_ISO | MTK_SCPD_ALWAYS_ON, 215e2ad626fSUlf Hansson }, 216e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_ADSP] = { 217e2ad626fSUlf Hansson .name = "adsp", 218e2ad626fSUlf Hansson .sta_mask = BIT(8), 219e2ad626fSUlf Hansson .ctl_offs = 0x354, 220e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 221e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 222e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 223e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 224151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 225151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 226151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_2_ADSP_STEP1, 227e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_SET, 228e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_CLR, 229e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_STA), 230151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 231151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_2_ADSP_STEP2, 232e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_SET, 233e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_CLR, 234e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_STA), 235e2ad626fSUlf Hansson }, 236e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF | MTK_SCPD_SRAM_ISO | MTK_SCPD_ACTIVE_WAKEUP, 237e2ad626fSUlf Hansson }, 238e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_AUDIO] = { 239e2ad626fSUlf Hansson .name = "audio", 240e2ad626fSUlf Hansson .sta_mask = BIT(6), 241e2ad626fSUlf Hansson .ctl_offs = 0x34C, 242e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 243e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 244e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 245e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 246151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 247151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 248151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_2_AUDIO_STEP1, 249e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_SET, 250e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_CLR, 251e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_STA), 252151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 253151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_2_AUDIO_STEP2, 254e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_SET, 255e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_CLR, 256e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_STA), 257e2ad626fSUlf Hansson }, 258e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF | MTK_SCPD_ACTIVE_WAKEUP, 259e2ad626fSUlf Hansson }, 260e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_AUDIO_ASRC] = { 261e2ad626fSUlf Hansson .name = "audio_asrc", 262e2ad626fSUlf Hansson .sta_mask = BIT(7), 263e2ad626fSUlf Hansson .ctl_offs = 0x350, 264e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 265e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 266e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 267e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 268151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 269151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 270151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_2_AUDIO_ASRC_STEP1, 271e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_SET, 272e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_CLR, 273e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_STA), 274151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 275151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_2_AUDIO_ASRC_STEP2, 276e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_SET, 277e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_CLR, 278e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_STA), 279e2ad626fSUlf Hansson }, 280e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 281e2ad626fSUlf Hansson }, 282e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_VPPSYS0] = { 283e2ad626fSUlf Hansson .name = "vppsys0", 284e2ad626fSUlf Hansson .sta_mask = BIT(11), 285e2ad626fSUlf Hansson .ctl_offs = 0x360, 286e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 287e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 288e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 289e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 290151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 291151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 292151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_VPPSYS0_STEP1, 293e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_SET, 294e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_CLR, 295e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_STA), 296151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 297151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_2_VPPSYS0_STEP2, 298e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_SET, 299e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_CLR, 300e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_STA), 301151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 302151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_VPPSYS0_STEP3, 303e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_SET, 304e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_CLR, 305e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_STA), 306151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 307151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_2_VPPSYS0_STEP4, 308e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_SET, 309e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_CLR, 310e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_STA), 311151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 312151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_SUB_INFRA_VDNR_VPPSYS0_STEP5, 313e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_SUB_INFRA_VDNR_SET, 314e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_SUB_INFRA_VDNR_CLR, 315e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_SUB_INFRA_VDNR_STA), 316e2ad626fSUlf Hansson }, 317e2ad626fSUlf Hansson }, 318e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_VDOSYS0] = { 319e2ad626fSUlf Hansson .name = "vdosys0", 320e2ad626fSUlf Hansson .sta_mask = BIT(13), 321e2ad626fSUlf Hansson .ctl_offs = 0x368, 322e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 323e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 324e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 325e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 326151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 327151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 328151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_VDOSYS0_STEP1, 329e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_SET, 330e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_CLR, 331e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_STA), 332151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 333151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_VDOSYS0_STEP2, 334e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_SET, 335e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_CLR, 336e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_STA), 337151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 338151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_SUB_INFRA_VDNR_VDOSYS0_STEP3, 339e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_SUB_INFRA_VDNR_SET, 340e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_SUB_INFRA_VDNR_CLR, 341e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_SUB_INFRA_VDNR_STA), 342e2ad626fSUlf Hansson }, 343e2ad626fSUlf Hansson }, 344e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_VDOSYS1] = { 345e2ad626fSUlf Hansson .name = "vdosys1", 346e2ad626fSUlf Hansson .sta_mask = BIT(14), 347e2ad626fSUlf Hansson .ctl_offs = 0x36C, 348e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 349e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 350e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 351e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 352151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 353151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 354151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_VDOSYS1_STEP1, 355e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_SET, 356e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_CLR, 357e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_STA), 358151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 359151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_VDOSYS1_STEP2, 360e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_SET, 361e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_CLR, 362e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_STA), 363151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 364151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_2_VDOSYS1_STEP3, 365e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_SET, 366e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_CLR, 367e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_STA), 368e2ad626fSUlf Hansson }, 369e2ad626fSUlf Hansson }, 370e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_DP_TX] = { 371e2ad626fSUlf Hansson .name = "dp_tx", 372e2ad626fSUlf Hansson .sta_mask = BIT(16), 373e2ad626fSUlf Hansson .ctl_offs = 0x374, 374e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 375e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 376e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 377e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 378151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 379151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 380151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_INFRA_VDNR_DP_TX_STEP1, 381e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_INFRA_VDNR_SET, 382e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_INFRA_VDNR_CLR, 383e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_INFRA_VDNR_STA), 384e2ad626fSUlf Hansson }, 385e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 386e2ad626fSUlf Hansson }, 387e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_EDP_TX] = { 388e2ad626fSUlf Hansson .name = "edp_tx", 389e2ad626fSUlf Hansson .sta_mask = BIT(17), 390e2ad626fSUlf Hansson .ctl_offs = 0x378, 391e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 392e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 393e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 394e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 395151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 396151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 397151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_INFRA_VDNR_EDP_TX_STEP1, 398e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_INFRA_VDNR_SET, 399e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_INFRA_VDNR_CLR, 400e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_INFRA_VDNR_STA), 401e2ad626fSUlf Hansson }, 402e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 403e2ad626fSUlf Hansson }, 404e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_VPPSYS1] = { 405e2ad626fSUlf Hansson .name = "vppsys1", 406e2ad626fSUlf Hansson .sta_mask = BIT(12), 407e2ad626fSUlf Hansson .ctl_offs = 0x364, 408e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 409e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 410e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 411e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 412151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 413151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 414151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_VPPSYS1_STEP1, 415e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_SET, 416e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_CLR, 417e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_STA), 418151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 419151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_VPPSYS1_STEP2, 420e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_SET, 421e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_CLR, 422e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_STA), 423151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 424151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_2_VPPSYS1_STEP3, 425e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_SET, 426e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_CLR, 427e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_STA), 428e2ad626fSUlf Hansson }, 429e2ad626fSUlf Hansson }, 430e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_WPE] = { 431e2ad626fSUlf Hansson .name = "wpe", 432e2ad626fSUlf Hansson .sta_mask = BIT(15), 433e2ad626fSUlf Hansson .ctl_offs = 0x370, 434e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 435e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 436e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 437e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 438151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 439151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 440151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_2_WPE_STEP1, 441e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_SET, 442e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_CLR, 443e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_STA), 444151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 445151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_2_WPE_STEP2, 446e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_SET, 447e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_CLR, 448e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_STA), 449e2ad626fSUlf Hansson }, 450e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 451e2ad626fSUlf Hansson }, 452e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_VDEC0] = { 453e2ad626fSUlf Hansson .name = "vdec0", 454e2ad626fSUlf Hansson .sta_mask = BIT(19), 455e2ad626fSUlf Hansson .ctl_offs = 0x380, 456e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 457e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 458e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 459e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 460151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 461151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 462151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_VDEC0_STEP1, 463e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_SET, 464e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_CLR, 465e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_STA), 466151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 467151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_2_VDEC0_STEP2, 468e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_SET, 469e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_CLR, 470e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_STA), 471e2ad626fSUlf Hansson }, 472e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 473e2ad626fSUlf Hansson }, 474e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_VDEC1] = { 475e2ad626fSUlf Hansson .name = "vdec1", 476e2ad626fSUlf Hansson .sta_mask = BIT(20), 477e2ad626fSUlf Hansson .ctl_offs = 0x384, 478e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 479e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 480e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 481e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 482151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 483151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 484151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_VDEC1_STEP1, 485e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_SET, 486e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_CLR, 487e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_STA), 488151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 489151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_VDEC1_STEP2, 490e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_SET, 491e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_CLR, 492e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_STA), 493e2ad626fSUlf Hansson }, 494e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 495e2ad626fSUlf Hansson }, 496e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_VENC] = { 497e2ad626fSUlf Hansson .name = "venc", 498e2ad626fSUlf Hansson .sta_mask = BIT(22), 499e2ad626fSUlf Hansson .ctl_offs = 0x38C, 500e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 501e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 502e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 503e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 504151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 505151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 506151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_VENC_STEP1, 507e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_SET, 508e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_CLR, 509e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_STA), 510151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 511151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_VENC_STEP2, 512e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_SET, 513e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_CLR, 514e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_STA), 515151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 516151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_2_VENC_STEP3, 517e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_SET, 518e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_CLR, 519e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_STA), 520e2ad626fSUlf Hansson }, 521e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 522e2ad626fSUlf Hansson }, 523e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_IMG_VCORE] = { 524e2ad626fSUlf Hansson .name = "vcore", 525e2ad626fSUlf Hansson .sta_mask = BIT(28), 526e2ad626fSUlf Hansson .ctl_offs = 0x3A4, 527e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 528e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 529*b1d4c60cSJohnson Wang .ext_buck_iso_offs = 0x3EC, 530*b1d4c60cSJohnson Wang .ext_buck_iso_mask = BIT(12), 531151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 532151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 533151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_IMG_VCORE_STEP1, 534e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_SET, 535e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_CLR, 536e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_STA), 537151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 538151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_IMG_VCORE_STEP2, 539e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_SET, 540e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_CLR, 541e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_STA), 542151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 543151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_2_IMG_VCORE_STEP3, 544e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_SET, 545e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_CLR, 546e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_STA), 547e2ad626fSUlf Hansson }, 548*b1d4c60cSJohnson Wang .caps = MTK_SCPD_KEEP_DEFAULT_OFF | MTK_SCPD_DOMAIN_SUPPLY | 549*b1d4c60cSJohnson Wang MTK_SCPD_EXT_BUCK_ISO, 550e2ad626fSUlf Hansson }, 551e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_IMG_MAIN] = { 552e2ad626fSUlf Hansson .name = "img_main", 553e2ad626fSUlf Hansson .sta_mask = BIT(29), 554e2ad626fSUlf Hansson .ctl_offs = 0x3A8, 555e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 556e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 557e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 558e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 559151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 560151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 561151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_2_IMG_MAIN_STEP1, 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), 565151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 566151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_2_IMG_MAIN_STEP2, 567e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_SET, 568e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_CLR, 569e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_STA), 570e2ad626fSUlf Hansson }, 571e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 572e2ad626fSUlf Hansson }, 573e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_DIP] = { 574e2ad626fSUlf Hansson .name = "dip", 575e2ad626fSUlf Hansson .sta_mask = BIT(30), 576e2ad626fSUlf Hansson .ctl_offs = 0x3AC, 577e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 578e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 579e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 580e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 581e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 582e2ad626fSUlf Hansson }, 583e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_IPE] = { 584e2ad626fSUlf Hansson .name = "ipe", 585e2ad626fSUlf Hansson .sta_mask = BIT(31), 586e2ad626fSUlf Hansson .ctl_offs = 0x3B0, 587e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 588e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 589e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 590e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 591e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 592e2ad626fSUlf Hansson }, 593e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_CAM_VCORE] = { 594e2ad626fSUlf Hansson .name = "cam_vcore", 595e2ad626fSUlf Hansson .sta_mask = BIT(27), 596e2ad626fSUlf Hansson .ctl_offs = 0x3A0, 597e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 598e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 599*b1d4c60cSJohnson Wang .ext_buck_iso_offs = 0x3EC, 600*b1d4c60cSJohnson Wang .ext_buck_iso_mask = BIT(11), 601151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 602151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 603151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_CAM_VCORE_STEP1, 604e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_SET, 605e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_CLR, 606e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_STA), 607151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 608151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_2_CAM_VCORE_STEP2, 609e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_SET, 610e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_CLR, 611e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_STA), 612151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 613151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_1_CAM_VCORE_STEP3, 614e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_1_SET, 615e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_1_CLR, 616e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_1_STA), 617151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 618151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_CAM_VCORE_STEP4, 619e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_SET, 620e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_CLR, 621e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_STA), 622151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 623151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_2_CAM_VCORE_STEP5, 624e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_SET, 625e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_CLR, 626e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_STA), 627e2ad626fSUlf Hansson }, 628*b1d4c60cSJohnson Wang .caps = MTK_SCPD_KEEP_DEFAULT_OFF | MTK_SCPD_DOMAIN_SUPPLY | 629*b1d4c60cSJohnson Wang MTK_SCPD_EXT_BUCK_ISO, 630e2ad626fSUlf Hansson }, 631e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_CAM_MAIN] = { 632e2ad626fSUlf Hansson .name = "cam_main", 633e2ad626fSUlf Hansson .sta_mask = BIT(24), 634e2ad626fSUlf Hansson .ctl_offs = 0x394, 635e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 636e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 637e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 638e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 639151bd6c5SMarkus Schneider-Pargmann .bp_cfg = { 640151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 641151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_2_CAM_MAIN_STEP1, 642e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_SET, 643e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_CLR, 644e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_STA), 645151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 646151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_2_CAM_MAIN_STEP2, 647e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_SET, 648e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_CLR, 649e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_STA), 650151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 651151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_MM_2_CAM_MAIN_STEP3, 652e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_SET, 653e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_CLR, 654e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_MM_2_STA), 655151bd6c5SMarkus Schneider-Pargmann BUS_PROT_WR(INFRA, 656151bd6c5SMarkus Schneider-Pargmann MT8188_TOP_AXI_PROT_EN_2_CAM_MAIN_STEP4, 657e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_SET, 658e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_CLR, 659e2ad626fSUlf Hansson MT8188_TOP_AXI_PROT_EN_2_STA), 660e2ad626fSUlf Hansson }, 661e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 662e2ad626fSUlf Hansson }, 663e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_CAM_SUBA] = { 664e2ad626fSUlf Hansson .name = "cam_suba", 665e2ad626fSUlf Hansson .sta_mask = BIT(25), 666e2ad626fSUlf Hansson .ctl_offs = 0x398, 667e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 668e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 669e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 670e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 671e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 672e2ad626fSUlf Hansson }, 673e2ad626fSUlf Hansson [MT8188_POWER_DOMAIN_CAM_SUBB] = { 674e2ad626fSUlf Hansson .name = "cam_subb", 675e2ad626fSUlf Hansson .sta_mask = BIT(26), 676e2ad626fSUlf Hansson .ctl_offs = 0x39C, 677e2ad626fSUlf Hansson .pwr_sta_offs = 0x16C, 678e2ad626fSUlf Hansson .pwr_sta2nd_offs = 0x170, 679e2ad626fSUlf Hansson .sram_pdn_bits = BIT(8), 680e2ad626fSUlf Hansson .sram_pdn_ack_bits = BIT(12), 681e2ad626fSUlf Hansson .caps = MTK_SCPD_KEEP_DEFAULT_OFF, 682e2ad626fSUlf Hansson }, 683e2ad626fSUlf Hansson }; 684e2ad626fSUlf Hansson 685e2ad626fSUlf Hansson static const struct scpsys_soc_data mt8188_scpsys_data = { 686e2ad626fSUlf Hansson .domains_data = scpsys_domain_data_mt8188, 687e2ad626fSUlf Hansson .num_domains = ARRAY_SIZE(scpsys_domain_data_mt8188), 688e2ad626fSUlf Hansson }; 689e2ad626fSUlf Hansson 690e2ad626fSUlf Hansson #endif /* __SOC_MEDIATEK_MT8188_PM_DOMAINS_H */ 691