162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (c) 2022 MediaTek Inc.
462306a36Sopenharmony_ci * Author: Chun-Jie Chen <chun-jie.chen@mediatek.com>
562306a36Sopenharmony_ci */
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci#ifndef __SOC_MEDIATEK_MT8186_PM_DOMAINS_H
862306a36Sopenharmony_ci#define __SOC_MEDIATEK_MT8186_PM_DOMAINS_H
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ci#include "mtk-pm-domains.h"
1162306a36Sopenharmony_ci#include <dt-bindings/power/mt8186-power.h>
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci/*
1462306a36Sopenharmony_ci * MT8186 power domain support
1562306a36Sopenharmony_ci */
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_cistatic const struct scpsys_domain_data scpsys_domain_data_mt8186[] = {
1862306a36Sopenharmony_ci	[MT8186_POWER_DOMAIN_MFG0] = {
1962306a36Sopenharmony_ci		.name = "mfg0",
2062306a36Sopenharmony_ci		.sta_mask = BIT(2),
2162306a36Sopenharmony_ci		.ctl_offs = 0x308,
2262306a36Sopenharmony_ci		.pwr_sta_offs = 0x16C,
2362306a36Sopenharmony_ci		.pwr_sta2nd_offs = 0x170,
2462306a36Sopenharmony_ci		.sram_pdn_bits = BIT(8),
2562306a36Sopenharmony_ci		.sram_pdn_ack_bits = BIT(12),
2662306a36Sopenharmony_ci		.caps = MTK_SCPD_KEEP_DEFAULT_OFF | MTK_SCPD_DOMAIN_SUPPLY,
2762306a36Sopenharmony_ci	},
2862306a36Sopenharmony_ci	[MT8186_POWER_DOMAIN_MFG1] = {
2962306a36Sopenharmony_ci		.name = "mfg1",
3062306a36Sopenharmony_ci		.sta_mask = BIT(3),
3162306a36Sopenharmony_ci		.ctl_offs = 0x30c,
3262306a36Sopenharmony_ci		.pwr_sta_offs = 0x16C,
3362306a36Sopenharmony_ci		.pwr_sta2nd_offs = 0x170,
3462306a36Sopenharmony_ci		.sram_pdn_bits = BIT(8),
3562306a36Sopenharmony_ci		.sram_pdn_ack_bits = BIT(12),
3662306a36Sopenharmony_ci		.bp_infracfg = {
3762306a36Sopenharmony_ci			BUS_PROT_WR_IGN(MT8186_TOP_AXI_PROT_EN_1_MFG1_STEP1,
3862306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_SET,
3962306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_CLR,
4062306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_STA),
4162306a36Sopenharmony_ci			BUS_PROT_WR_IGN(MT8186_TOP_AXI_PROT_EN_MFG1_STEP2,
4262306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_SET,
4362306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_CLR,
4462306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_STA),
4562306a36Sopenharmony_ci			BUS_PROT_WR_IGN(MT8186_TOP_AXI_PROT_EN_MFG1_STEP3,
4662306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_SET,
4762306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_CLR,
4862306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_STA),
4962306a36Sopenharmony_ci			BUS_PROT_WR_IGN(MT8186_TOP_AXI_PROT_EN_1_MFG1_STEP4,
5062306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_SET,
5162306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_CLR,
5262306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_STA),
5362306a36Sopenharmony_ci		},
5462306a36Sopenharmony_ci		.caps = MTK_SCPD_KEEP_DEFAULT_OFF | MTK_SCPD_DOMAIN_SUPPLY,
5562306a36Sopenharmony_ci	},
5662306a36Sopenharmony_ci	[MT8186_POWER_DOMAIN_MFG2] = {
5762306a36Sopenharmony_ci		.name = "mfg2",
5862306a36Sopenharmony_ci		.sta_mask = BIT(4),
5962306a36Sopenharmony_ci		.ctl_offs = 0x310,
6062306a36Sopenharmony_ci		.pwr_sta_offs = 0x16C,
6162306a36Sopenharmony_ci		.pwr_sta2nd_offs = 0x170,
6262306a36Sopenharmony_ci		.sram_pdn_bits = BIT(8),
6362306a36Sopenharmony_ci		.sram_pdn_ack_bits = BIT(12),
6462306a36Sopenharmony_ci		.caps = MTK_SCPD_KEEP_DEFAULT_OFF,
6562306a36Sopenharmony_ci	},
6662306a36Sopenharmony_ci	[MT8186_POWER_DOMAIN_MFG3] = {
6762306a36Sopenharmony_ci		.name = "mfg3",
6862306a36Sopenharmony_ci		.sta_mask = BIT(5),
6962306a36Sopenharmony_ci		.ctl_offs = 0x314,
7062306a36Sopenharmony_ci		.pwr_sta_offs = 0x16C,
7162306a36Sopenharmony_ci		.pwr_sta2nd_offs = 0x170,
7262306a36Sopenharmony_ci		.sram_pdn_bits = BIT(8),
7362306a36Sopenharmony_ci		.sram_pdn_ack_bits = BIT(12),
7462306a36Sopenharmony_ci		.caps = MTK_SCPD_KEEP_DEFAULT_OFF,
7562306a36Sopenharmony_ci	},
7662306a36Sopenharmony_ci	[MT8186_POWER_DOMAIN_SSUSB] = {
7762306a36Sopenharmony_ci		.name = "ssusb",
7862306a36Sopenharmony_ci		.sta_mask = BIT(20),
7962306a36Sopenharmony_ci		.ctl_offs = 0x9F0,
8062306a36Sopenharmony_ci		.pwr_sta_offs = 0x16C,
8162306a36Sopenharmony_ci		.pwr_sta2nd_offs = 0x170,
8262306a36Sopenharmony_ci		.sram_pdn_bits = BIT(8),
8362306a36Sopenharmony_ci		.sram_pdn_ack_bits = BIT(12),
8462306a36Sopenharmony_ci		.caps = MTK_SCPD_ACTIVE_WAKEUP,
8562306a36Sopenharmony_ci	},
8662306a36Sopenharmony_ci	[MT8186_POWER_DOMAIN_SSUSB_P1] = {
8762306a36Sopenharmony_ci		.name = "ssusb_p1",
8862306a36Sopenharmony_ci		.sta_mask = BIT(19),
8962306a36Sopenharmony_ci		.ctl_offs = 0x9F4,
9062306a36Sopenharmony_ci		.pwr_sta_offs = 0x16C,
9162306a36Sopenharmony_ci		.pwr_sta2nd_offs = 0x170,
9262306a36Sopenharmony_ci		.sram_pdn_bits = BIT(8),
9362306a36Sopenharmony_ci		.sram_pdn_ack_bits = BIT(12),
9462306a36Sopenharmony_ci		.caps = MTK_SCPD_ACTIVE_WAKEUP,
9562306a36Sopenharmony_ci	},
9662306a36Sopenharmony_ci	[MT8186_POWER_DOMAIN_DIS] = {
9762306a36Sopenharmony_ci		.name = "dis",
9862306a36Sopenharmony_ci		.sta_mask = BIT(21),
9962306a36Sopenharmony_ci		.ctl_offs = 0x354,
10062306a36Sopenharmony_ci		.pwr_sta_offs = 0x16C,
10162306a36Sopenharmony_ci		.pwr_sta2nd_offs = 0x170,
10262306a36Sopenharmony_ci		.sram_pdn_bits = BIT(8),
10362306a36Sopenharmony_ci		.sram_pdn_ack_bits = BIT(12),
10462306a36Sopenharmony_ci		.bp_infracfg = {
10562306a36Sopenharmony_ci			BUS_PROT_WR_IGN(MT8186_TOP_AXI_PROT_EN_1_DIS_STEP1,
10662306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_SET,
10762306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_CLR,
10862306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_STA),
10962306a36Sopenharmony_ci			BUS_PROT_WR_IGN(MT8186_TOP_AXI_PROT_EN_DIS_STEP2,
11062306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_SET,
11162306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_CLR,
11262306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_STA),
11362306a36Sopenharmony_ci		},
11462306a36Sopenharmony_ci	},
11562306a36Sopenharmony_ci	[MT8186_POWER_DOMAIN_IMG] = {
11662306a36Sopenharmony_ci		.name = "img",
11762306a36Sopenharmony_ci		.sta_mask = BIT(13),
11862306a36Sopenharmony_ci		.ctl_offs = 0x334,
11962306a36Sopenharmony_ci		.pwr_sta_offs = 0x16C,
12062306a36Sopenharmony_ci		.pwr_sta2nd_offs = 0x170,
12162306a36Sopenharmony_ci		.sram_pdn_bits = BIT(8),
12262306a36Sopenharmony_ci		.sram_pdn_ack_bits = BIT(12),
12362306a36Sopenharmony_ci		.bp_infracfg = {
12462306a36Sopenharmony_ci			BUS_PROT_WR_IGN(MT8186_TOP_AXI_PROT_EN_1_IMG_STEP1,
12562306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_SET,
12662306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_CLR,
12762306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_STA),
12862306a36Sopenharmony_ci			BUS_PROT_WR_IGN(MT8186_TOP_AXI_PROT_EN_1_IMG_STEP2,
12962306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_SET,
13062306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_CLR,
13162306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_STA),
13262306a36Sopenharmony_ci		},
13362306a36Sopenharmony_ci		.caps = MTK_SCPD_KEEP_DEFAULT_OFF,
13462306a36Sopenharmony_ci	},
13562306a36Sopenharmony_ci	[MT8186_POWER_DOMAIN_IMG2] = {
13662306a36Sopenharmony_ci		.name = "img2",
13762306a36Sopenharmony_ci		.sta_mask = BIT(14),
13862306a36Sopenharmony_ci		.ctl_offs = 0x338,
13962306a36Sopenharmony_ci		.pwr_sta_offs = 0x16C,
14062306a36Sopenharmony_ci		.pwr_sta2nd_offs = 0x170,
14162306a36Sopenharmony_ci		.sram_pdn_bits = BIT(8),
14262306a36Sopenharmony_ci		.sram_pdn_ack_bits = BIT(12),
14362306a36Sopenharmony_ci		.caps = MTK_SCPD_KEEP_DEFAULT_OFF,
14462306a36Sopenharmony_ci	},
14562306a36Sopenharmony_ci	[MT8186_POWER_DOMAIN_IPE] = {
14662306a36Sopenharmony_ci		.name = "ipe",
14762306a36Sopenharmony_ci		.sta_mask = BIT(15),
14862306a36Sopenharmony_ci		.ctl_offs = 0x33C,
14962306a36Sopenharmony_ci		.pwr_sta_offs = 0x16C,
15062306a36Sopenharmony_ci		.pwr_sta2nd_offs = 0x170,
15162306a36Sopenharmony_ci		.sram_pdn_bits = BIT(8),
15262306a36Sopenharmony_ci		.sram_pdn_ack_bits = BIT(12),
15362306a36Sopenharmony_ci		.bp_infracfg = {
15462306a36Sopenharmony_ci			BUS_PROT_WR_IGN(MT8186_TOP_AXI_PROT_EN_1_IPE_STEP1,
15562306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_SET,
15662306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_CLR,
15762306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_STA),
15862306a36Sopenharmony_ci			BUS_PROT_WR_IGN(MT8186_TOP_AXI_PROT_EN_1_IPE_STEP2,
15962306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_SET,
16062306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_CLR,
16162306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_STA),
16262306a36Sopenharmony_ci		},
16362306a36Sopenharmony_ci		.caps = MTK_SCPD_KEEP_DEFAULT_OFF,
16462306a36Sopenharmony_ci	},
16562306a36Sopenharmony_ci	[MT8186_POWER_DOMAIN_CAM] = {
16662306a36Sopenharmony_ci		.name = "cam",
16762306a36Sopenharmony_ci		.sta_mask = BIT(23),
16862306a36Sopenharmony_ci		.ctl_offs = 0x35C,
16962306a36Sopenharmony_ci		.pwr_sta_offs = 0x16C,
17062306a36Sopenharmony_ci		.pwr_sta2nd_offs = 0x170,
17162306a36Sopenharmony_ci		.sram_pdn_bits = BIT(8),
17262306a36Sopenharmony_ci		.sram_pdn_ack_bits = BIT(12),
17362306a36Sopenharmony_ci		.bp_infracfg = {
17462306a36Sopenharmony_ci			BUS_PROT_WR_IGN(MT8186_TOP_AXI_PROT_EN_1_CAM_STEP1,
17562306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_SET,
17662306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_CLR,
17762306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_STA),
17862306a36Sopenharmony_ci			BUS_PROT_WR_IGN(MT8186_TOP_AXI_PROT_EN_1_CAM_STEP2,
17962306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_SET,
18062306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_CLR,
18162306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_STA),
18262306a36Sopenharmony_ci		},
18362306a36Sopenharmony_ci		.caps = MTK_SCPD_KEEP_DEFAULT_OFF,
18462306a36Sopenharmony_ci	},
18562306a36Sopenharmony_ci	[MT8186_POWER_DOMAIN_CAM_RAWA] = {
18662306a36Sopenharmony_ci		.name = "cam_rawa",
18762306a36Sopenharmony_ci		.sta_mask = BIT(24),
18862306a36Sopenharmony_ci		.ctl_offs = 0x360,
18962306a36Sopenharmony_ci		.pwr_sta_offs = 0x16C,
19062306a36Sopenharmony_ci		.pwr_sta2nd_offs = 0x170,
19162306a36Sopenharmony_ci		.sram_pdn_bits = BIT(8),
19262306a36Sopenharmony_ci		.sram_pdn_ack_bits = BIT(12),
19362306a36Sopenharmony_ci		.caps = MTK_SCPD_KEEP_DEFAULT_OFF,
19462306a36Sopenharmony_ci	},
19562306a36Sopenharmony_ci	[MT8186_POWER_DOMAIN_CAM_RAWB] = {
19662306a36Sopenharmony_ci		.name = "cam_rawb",
19762306a36Sopenharmony_ci		.sta_mask = BIT(25),
19862306a36Sopenharmony_ci		.ctl_offs = 0x364,
19962306a36Sopenharmony_ci		.pwr_sta_offs = 0x16C,
20062306a36Sopenharmony_ci		.pwr_sta2nd_offs = 0x170,
20162306a36Sopenharmony_ci		.sram_pdn_bits = BIT(8),
20262306a36Sopenharmony_ci		.sram_pdn_ack_bits = BIT(12),
20362306a36Sopenharmony_ci		.caps = MTK_SCPD_KEEP_DEFAULT_OFF,
20462306a36Sopenharmony_ci	},
20562306a36Sopenharmony_ci	[MT8186_POWER_DOMAIN_VENC] = {
20662306a36Sopenharmony_ci		.name = "venc",
20762306a36Sopenharmony_ci		.sta_mask = BIT(18),
20862306a36Sopenharmony_ci		.ctl_offs = 0x348,
20962306a36Sopenharmony_ci		.pwr_sta_offs = 0x16C,
21062306a36Sopenharmony_ci		.pwr_sta2nd_offs = 0x170,
21162306a36Sopenharmony_ci		.sram_pdn_bits = BIT(8),
21262306a36Sopenharmony_ci		.sram_pdn_ack_bits = BIT(12),
21362306a36Sopenharmony_ci		.bp_infracfg = {
21462306a36Sopenharmony_ci			BUS_PROT_WR_IGN(MT8186_TOP_AXI_PROT_EN_1_VENC_STEP1,
21562306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_SET,
21662306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_CLR,
21762306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_STA),
21862306a36Sopenharmony_ci			BUS_PROT_WR_IGN(MT8186_TOP_AXI_PROT_EN_1_VENC_STEP2,
21962306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_SET,
22062306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_CLR,
22162306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_STA),
22262306a36Sopenharmony_ci		},
22362306a36Sopenharmony_ci		.caps = MTK_SCPD_KEEP_DEFAULT_OFF,
22462306a36Sopenharmony_ci	},
22562306a36Sopenharmony_ci	[MT8186_POWER_DOMAIN_VDEC] = {
22662306a36Sopenharmony_ci		.name = "vdec",
22762306a36Sopenharmony_ci		.sta_mask = BIT(16),
22862306a36Sopenharmony_ci		.ctl_offs = 0x340,
22962306a36Sopenharmony_ci		.pwr_sta_offs = 0x16C,
23062306a36Sopenharmony_ci		.pwr_sta2nd_offs = 0x170,
23162306a36Sopenharmony_ci		.sram_pdn_bits = BIT(8),
23262306a36Sopenharmony_ci		.sram_pdn_ack_bits = BIT(12),
23362306a36Sopenharmony_ci		.bp_infracfg = {
23462306a36Sopenharmony_ci			BUS_PROT_WR_IGN(MT8186_TOP_AXI_PROT_EN_1_VDEC_STEP1,
23562306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_SET,
23662306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_CLR,
23762306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_STA),
23862306a36Sopenharmony_ci			BUS_PROT_WR_IGN(MT8186_TOP_AXI_PROT_EN_1_VDEC_STEP2,
23962306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_SET,
24062306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_CLR,
24162306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_STA),
24262306a36Sopenharmony_ci		},
24362306a36Sopenharmony_ci		.caps = MTK_SCPD_KEEP_DEFAULT_OFF,
24462306a36Sopenharmony_ci	},
24562306a36Sopenharmony_ci	[MT8186_POWER_DOMAIN_WPE] = {
24662306a36Sopenharmony_ci		.name = "wpe",
24762306a36Sopenharmony_ci		.sta_mask = BIT(0),
24862306a36Sopenharmony_ci		.ctl_offs = 0x3F8,
24962306a36Sopenharmony_ci		.pwr_sta_offs = 0x16C,
25062306a36Sopenharmony_ci		.pwr_sta2nd_offs = 0x170,
25162306a36Sopenharmony_ci		.sram_pdn_bits = BIT(8),
25262306a36Sopenharmony_ci		.sram_pdn_ack_bits = BIT(12),
25362306a36Sopenharmony_ci		.bp_infracfg = {
25462306a36Sopenharmony_ci			BUS_PROT_WR_IGN(MT8186_TOP_AXI_PROT_EN_2_WPE_STEP1,
25562306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_2_SET,
25662306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_2_CLR,
25762306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_2_STA),
25862306a36Sopenharmony_ci			BUS_PROT_WR_IGN(MT8186_TOP_AXI_PROT_EN_2_WPE_STEP2,
25962306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_2_SET,
26062306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_2_CLR,
26162306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_2_STA),
26262306a36Sopenharmony_ci		},
26362306a36Sopenharmony_ci		.caps = MTK_SCPD_KEEP_DEFAULT_OFF,
26462306a36Sopenharmony_ci	},
26562306a36Sopenharmony_ci	[MT8186_POWER_DOMAIN_CONN_ON] = {
26662306a36Sopenharmony_ci		.name = "conn_on",
26762306a36Sopenharmony_ci		.sta_mask = BIT(1),
26862306a36Sopenharmony_ci		.ctl_offs = 0x304,
26962306a36Sopenharmony_ci		.pwr_sta_offs = 0x16C,
27062306a36Sopenharmony_ci		.pwr_sta2nd_offs = 0x170,
27162306a36Sopenharmony_ci		.bp_infracfg = {
27262306a36Sopenharmony_ci			BUS_PROT_WR_IGN(MT8186_TOP_AXI_PROT_EN_1_CONN_ON_STEP1,
27362306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_SET,
27462306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_CLR,
27562306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_1_STA),
27662306a36Sopenharmony_ci			BUS_PROT_WR_IGN(MT8186_TOP_AXI_PROT_EN_CONN_ON_STEP2,
27762306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_SET,
27862306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_CLR,
27962306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_STA),
28062306a36Sopenharmony_ci			BUS_PROT_WR_IGN(MT8186_TOP_AXI_PROT_EN_CONN_ON_STEP3,
28162306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_SET,
28262306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_CLR,
28362306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_STA),
28462306a36Sopenharmony_ci			BUS_PROT_WR_IGN(MT8186_TOP_AXI_PROT_EN_CONN_ON_STEP4,
28562306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_SET,
28662306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_CLR,
28762306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_STA),
28862306a36Sopenharmony_ci		},
28962306a36Sopenharmony_ci		.caps = MTK_SCPD_KEEP_DEFAULT_OFF | MTK_SCPD_ACTIVE_WAKEUP,
29062306a36Sopenharmony_ci	},
29162306a36Sopenharmony_ci	[MT8186_POWER_DOMAIN_CSIRX_TOP] = {
29262306a36Sopenharmony_ci		.name = "csirx_top",
29362306a36Sopenharmony_ci		.sta_mask = BIT(6),
29462306a36Sopenharmony_ci		.ctl_offs = 0x318,
29562306a36Sopenharmony_ci		.pwr_sta_offs = 0x16C,
29662306a36Sopenharmony_ci		.pwr_sta2nd_offs = 0x170,
29762306a36Sopenharmony_ci		.sram_pdn_bits = BIT(8),
29862306a36Sopenharmony_ci		.sram_pdn_ack_bits = BIT(12),
29962306a36Sopenharmony_ci		.caps = MTK_SCPD_KEEP_DEFAULT_OFF,
30062306a36Sopenharmony_ci	},
30162306a36Sopenharmony_ci	[MT8186_POWER_DOMAIN_ADSP_AO] = {
30262306a36Sopenharmony_ci		.name = "adsp_ao",
30362306a36Sopenharmony_ci		.sta_mask = BIT(17),
30462306a36Sopenharmony_ci		.ctl_offs = 0x9FC,
30562306a36Sopenharmony_ci		.pwr_sta_offs = 0x16C,
30662306a36Sopenharmony_ci		.pwr_sta2nd_offs = 0x170,
30762306a36Sopenharmony_ci	},
30862306a36Sopenharmony_ci	[MT8186_POWER_DOMAIN_ADSP_INFRA] = {
30962306a36Sopenharmony_ci		.name = "adsp_infra",
31062306a36Sopenharmony_ci		.sta_mask = BIT(10),
31162306a36Sopenharmony_ci		.ctl_offs = 0x9F8,
31262306a36Sopenharmony_ci		.pwr_sta_offs = 0x16C,
31362306a36Sopenharmony_ci		.pwr_sta2nd_offs = 0x170,
31462306a36Sopenharmony_ci	},
31562306a36Sopenharmony_ci	[MT8186_POWER_DOMAIN_ADSP_TOP] = {
31662306a36Sopenharmony_ci		.name = "adsp_top",
31762306a36Sopenharmony_ci		.sta_mask = BIT(31),
31862306a36Sopenharmony_ci		.ctl_offs = 0x3E4,
31962306a36Sopenharmony_ci		.pwr_sta_offs = 0x16C,
32062306a36Sopenharmony_ci		.pwr_sta2nd_offs = 0x170,
32162306a36Sopenharmony_ci		.sram_pdn_bits = BIT(8),
32262306a36Sopenharmony_ci		.sram_pdn_ack_bits = BIT(12),
32362306a36Sopenharmony_ci		.bp_infracfg = {
32462306a36Sopenharmony_ci			BUS_PROT_WR_IGN(MT8186_TOP_AXI_PROT_EN_3_ADSP_TOP_STEP1,
32562306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_3_SET,
32662306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_3_CLR,
32762306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_3_STA),
32862306a36Sopenharmony_ci			BUS_PROT_WR_IGN(MT8186_TOP_AXI_PROT_EN_3_ADSP_TOP_STEP2,
32962306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_3_SET,
33062306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_3_CLR,
33162306a36Sopenharmony_ci				MT8186_TOP_AXI_PROT_EN_3_STA),
33262306a36Sopenharmony_ci		},
33362306a36Sopenharmony_ci		.caps = MTK_SCPD_SRAM_ISO | MTK_SCPD_ACTIVE_WAKEUP,
33462306a36Sopenharmony_ci	},
33562306a36Sopenharmony_ci};
33662306a36Sopenharmony_ci
33762306a36Sopenharmony_cistatic const struct scpsys_soc_data mt8186_scpsys_data = {
33862306a36Sopenharmony_ci	.domains_data = scpsys_domain_data_mt8186,
33962306a36Sopenharmony_ci	.num_domains = ARRAY_SIZE(scpsys_domain_data_mt8186),
34062306a36Sopenharmony_ci};
34162306a36Sopenharmony_ci
34262306a36Sopenharmony_ci#endif /* __SOC_MEDIATEK_MT8186_PM_DOMAINS_H */
343