2020-10-30 11:36:22 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
|
|
|
|
#ifndef __SOC_MEDIATEK_MT8192_PM_DOMAINS_H
|
|
|
|
#define __SOC_MEDIATEK_MT8192_PM_DOMAINS_H
|
|
|
|
|
|
|
|
#include "mtk-pm-domains.h"
|
|
|
|
#include <dt-bindings/power/mt8192-power.h>
|
|
|
|
|
|
|
|
/*
|
|
|
|
* MT8192 power domain support
|
|
|
|
*/
|
|
|
|
|
|
|
|
static const struct scpsys_domain_data scpsys_domain_data_mt8192[] = {
|
|
|
|
[MT8192_POWER_DOMAIN_AUDIO] = {
|
2021-02-25 17:49:59 +00:00
|
|
|
.name = "audio",
|
2020-10-30 11:36:22 +00:00
|
|
|
.sta_mask = BIT(21),
|
|
|
|
.ctl_offs = 0x0354,
|
2022-01-30 01:21:03 +00:00
|
|
|
.pwr_sta_offs = 0x016c,
|
|
|
|
.pwr_sta2nd_offs = 0x0170,
|
2020-10-30 11:36:22 +00:00
|
|
|
.sram_pdn_bits = GENMASK(8, 8),
|
|
|
|
.sram_pdn_ack_bits = GENMASK(12, 12),
|
|
|
|
.bp_infracfg = {
|
|
|
|
BUS_PROT_WR(MT8192_TOP_AXI_PROT_EN_2_AUDIO,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_2_SET,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_2_CLR,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_2_STA1),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
[MT8192_POWER_DOMAIN_CONN] = {
|
2021-02-25 17:49:59 +00:00
|
|
|
.name = "conn",
|
2020-10-30 11:36:22 +00:00
|
|
|
.sta_mask = PWR_STATUS_CONN,
|
|
|
|
.ctl_offs = 0x0304,
|
2022-01-30 01:21:03 +00:00
|
|
|
.pwr_sta_offs = 0x016c,
|
|
|
|
.pwr_sta2nd_offs = 0x0170,
|
2020-10-30 11:36:22 +00:00
|
|
|
.sram_pdn_bits = 0,
|
|
|
|
.sram_pdn_ack_bits = 0,
|
|
|
|
.bp_infracfg = {
|
|
|
|
BUS_PROT_WR(MT8192_TOP_AXI_PROT_EN_CONN,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_SET,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_CLR,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_STA1),
|
|
|
|
BUS_PROT_WR(MT8192_TOP_AXI_PROT_EN_CONN_2ND,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_SET,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_CLR,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_STA1),
|
|
|
|
BUS_PROT_WR(MT8192_TOP_AXI_PROT_EN_1_CONN,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_1_SET,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_1_CLR,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_1_STA1),
|
|
|
|
},
|
|
|
|
.caps = MTK_SCPD_KEEP_DEFAULT_OFF,
|
|
|
|
},
|
|
|
|
[MT8192_POWER_DOMAIN_MFG0] = {
|
2021-02-25 17:49:59 +00:00
|
|
|
.name = "mfg0",
|
2020-10-30 11:36:22 +00:00
|
|
|
.sta_mask = BIT(2),
|
|
|
|
.ctl_offs = 0x0308,
|
2022-01-30 01:21:03 +00:00
|
|
|
.pwr_sta_offs = 0x016c,
|
|
|
|
.pwr_sta2nd_offs = 0x0170,
|
2020-10-30 11:36:22 +00:00
|
|
|
.sram_pdn_bits = GENMASK(8, 8),
|
|
|
|
.sram_pdn_ack_bits = GENMASK(12, 12),
|
|
|
|
},
|
|
|
|
[MT8192_POWER_DOMAIN_MFG1] = {
|
2021-02-25 17:49:59 +00:00
|
|
|
.name = "mfg1",
|
2020-10-30 11:36:22 +00:00
|
|
|
.sta_mask = BIT(3),
|
|
|
|
.ctl_offs = 0x030c,
|
2022-01-30 01:21:03 +00:00
|
|
|
.pwr_sta_offs = 0x016c,
|
|
|
|
.pwr_sta2nd_offs = 0x0170,
|
2020-10-30 11:36:22 +00:00
|
|
|
.sram_pdn_bits = GENMASK(8, 8),
|
|
|
|
.sram_pdn_ack_bits = GENMASK(12, 12),
|
|
|
|
.bp_infracfg = {
|
|
|
|
BUS_PROT_WR(MT8192_TOP_AXI_PROT_EN_1_MFG1,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_1_SET,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_1_CLR,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_1_STA1),
|
|
|
|
BUS_PROT_WR(MT8192_TOP_AXI_PROT_EN_2_MFG1,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_2_SET,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_2_CLR,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_2_STA1),
|
|
|
|
BUS_PROT_WR(MT8192_TOP_AXI_PROT_EN_MFG1,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_SET,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_CLR,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_STA1),
|
|
|
|
BUS_PROT_WR(MT8192_TOP_AXI_PROT_EN_2_MFG1_2ND,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_2_SET,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_2_CLR,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_2_STA1),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
[MT8192_POWER_DOMAIN_MFG2] = {
|
2021-02-25 17:49:59 +00:00
|
|
|
.name = "mfg2",
|
2020-10-30 11:36:22 +00:00
|
|
|
.sta_mask = BIT(4),
|
|
|
|
.ctl_offs = 0x0310,
|
2022-01-30 01:21:03 +00:00
|
|
|
.pwr_sta_offs = 0x016c,
|
|
|
|
.pwr_sta2nd_offs = 0x0170,
|
2020-10-30 11:36:22 +00:00
|
|
|
.sram_pdn_bits = GENMASK(8, 8),
|
|
|
|
.sram_pdn_ack_bits = GENMASK(12, 12),
|
|
|
|
},
|
|
|
|
[MT8192_POWER_DOMAIN_MFG3] = {
|
2021-02-25 17:49:59 +00:00
|
|
|
.name = "mfg3",
|
2020-10-30 11:36:22 +00:00
|
|
|
.sta_mask = BIT(5),
|
|
|
|
.ctl_offs = 0x0314,
|
2022-01-30 01:21:03 +00:00
|
|
|
.pwr_sta_offs = 0x016c,
|
|
|
|
.pwr_sta2nd_offs = 0x0170,
|
2020-10-30 11:36:22 +00:00
|
|
|
.sram_pdn_bits = GENMASK(8, 8),
|
|
|
|
.sram_pdn_ack_bits = GENMASK(12, 12),
|
|
|
|
},
|
|
|
|
[MT8192_POWER_DOMAIN_MFG4] = {
|
2021-02-25 17:49:59 +00:00
|
|
|
.name = "mfg4",
|
2020-10-30 11:36:22 +00:00
|
|
|
.sta_mask = BIT(6),
|
|
|
|
.ctl_offs = 0x0318,
|
2022-01-30 01:21:03 +00:00
|
|
|
.pwr_sta_offs = 0x016c,
|
|
|
|
.pwr_sta2nd_offs = 0x0170,
|
2020-10-30 11:36:22 +00:00
|
|
|
.sram_pdn_bits = GENMASK(8, 8),
|
|
|
|
.sram_pdn_ack_bits = GENMASK(12, 12),
|
|
|
|
},
|
|
|
|
[MT8192_POWER_DOMAIN_MFG5] = {
|
2021-02-25 17:49:59 +00:00
|
|
|
.name = "mfg5",
|
2020-10-30 11:36:22 +00:00
|
|
|
.sta_mask = BIT(7),
|
|
|
|
.ctl_offs = 0x031c,
|
2022-01-30 01:21:03 +00:00
|
|
|
.pwr_sta_offs = 0x016c,
|
|
|
|
.pwr_sta2nd_offs = 0x0170,
|
2020-10-30 11:36:22 +00:00
|
|
|
.sram_pdn_bits = GENMASK(8, 8),
|
|
|
|
.sram_pdn_ack_bits = GENMASK(12, 12),
|
|
|
|
},
|
|
|
|
[MT8192_POWER_DOMAIN_MFG6] = {
|
2021-02-25 17:49:59 +00:00
|
|
|
.name = "mfg6",
|
2020-10-30 11:36:22 +00:00
|
|
|
.sta_mask = BIT(8),
|
|
|
|
.ctl_offs = 0x0320,
|
2022-01-30 01:21:03 +00:00
|
|
|
.pwr_sta_offs = 0x016c,
|
|
|
|
.pwr_sta2nd_offs = 0x0170,
|
2020-10-30 11:36:22 +00:00
|
|
|
.sram_pdn_bits = GENMASK(8, 8),
|
|
|
|
.sram_pdn_ack_bits = GENMASK(12, 12),
|
|
|
|
},
|
|
|
|
[MT8192_POWER_DOMAIN_DISP] = {
|
2021-02-25 17:49:59 +00:00
|
|
|
.name = "disp",
|
2020-10-30 11:36:22 +00:00
|
|
|
.sta_mask = BIT(20),
|
|
|
|
.ctl_offs = 0x0350,
|
2022-01-30 01:21:03 +00:00
|
|
|
.pwr_sta_offs = 0x016c,
|
|
|
|
.pwr_sta2nd_offs = 0x0170,
|
2020-10-30 11:36:22 +00:00
|
|
|
.sram_pdn_bits = GENMASK(8, 8),
|
|
|
|
.sram_pdn_ack_bits = GENMASK(12, 12),
|
|
|
|
.bp_infracfg = {
|
|
|
|
BUS_PROT_WR_IGN(MT8192_TOP_AXI_PROT_EN_MM_DISP,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_SET,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_CLR,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_STA1),
|
|
|
|
BUS_PROT_WR_IGN(MT8192_TOP_AXI_PROT_EN_MM_2_DISP,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_2_SET,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_2_CLR,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_2_STA1),
|
|
|
|
BUS_PROT_WR(MT8192_TOP_AXI_PROT_EN_DISP,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_SET,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_CLR,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_STA1),
|
|
|
|
BUS_PROT_WR(MT8192_TOP_AXI_PROT_EN_MM_DISP_2ND,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_SET,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_CLR,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_STA1),
|
|
|
|
BUS_PROT_WR(MT8192_TOP_AXI_PROT_EN_MM_2_DISP_2ND,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_2_SET,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_2_CLR,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_2_STA1),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
[MT8192_POWER_DOMAIN_IPE] = {
|
2021-02-25 17:49:59 +00:00
|
|
|
.name = "ipe",
|
2020-10-30 11:36:22 +00:00
|
|
|
.sta_mask = BIT(14),
|
|
|
|
.ctl_offs = 0x0338,
|
2022-01-30 01:21:03 +00:00
|
|
|
.pwr_sta_offs = 0x016c,
|
|
|
|
.pwr_sta2nd_offs = 0x0170,
|
2020-10-30 11:36:22 +00:00
|
|
|
.sram_pdn_bits = GENMASK(8, 8),
|
|
|
|
.sram_pdn_ack_bits = GENMASK(12, 12),
|
|
|
|
.bp_infracfg = {
|
|
|
|
BUS_PROT_WR(MT8192_TOP_AXI_PROT_EN_MM_IPE,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_SET,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_CLR,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_STA1),
|
|
|
|
BUS_PROT_WR(MT8192_TOP_AXI_PROT_EN_MM_IPE_2ND,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_SET,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_CLR,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_STA1),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
[MT8192_POWER_DOMAIN_ISP] = {
|
2021-02-25 17:49:59 +00:00
|
|
|
.name = "isp",
|
2020-10-30 11:36:22 +00:00
|
|
|
.sta_mask = BIT(12),
|
|
|
|
.ctl_offs = 0x0330,
|
2022-01-30 01:21:03 +00:00
|
|
|
.pwr_sta_offs = 0x016c,
|
|
|
|
.pwr_sta2nd_offs = 0x0170,
|
2020-10-30 11:36:22 +00:00
|
|
|
.sram_pdn_bits = GENMASK(8, 8),
|
|
|
|
.sram_pdn_ack_bits = GENMASK(12, 12),
|
|
|
|
.bp_infracfg = {
|
|
|
|
BUS_PROT_WR(MT8192_TOP_AXI_PROT_EN_MM_2_ISP,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_2_SET,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_2_CLR,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_2_STA1),
|
|
|
|
BUS_PROT_WR(MT8192_TOP_AXI_PROT_EN_MM_2_ISP_2ND,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_2_SET,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_2_CLR,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_2_STA1),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
[MT8192_POWER_DOMAIN_ISP2] = {
|
2021-02-25 17:49:59 +00:00
|
|
|
.name = "isp2",
|
2020-10-30 11:36:22 +00:00
|
|
|
.sta_mask = BIT(13),
|
|
|
|
.ctl_offs = 0x0334,
|
2022-01-30 01:21:03 +00:00
|
|
|
.pwr_sta_offs = 0x016c,
|
|
|
|
.pwr_sta2nd_offs = 0x0170,
|
2020-10-30 11:36:22 +00:00
|
|
|
.sram_pdn_bits = GENMASK(8, 8),
|
|
|
|
.sram_pdn_ack_bits = GENMASK(12, 12),
|
|
|
|
.bp_infracfg = {
|
|
|
|
BUS_PROT_WR(MT8192_TOP_AXI_PROT_EN_MM_ISP2,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_SET,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_CLR,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_STA1),
|
|
|
|
BUS_PROT_WR(MT8192_TOP_AXI_PROT_EN_MM_ISP2_2ND,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_SET,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_CLR,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_STA1),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
[MT8192_POWER_DOMAIN_MDP] = {
|
2021-02-25 17:49:59 +00:00
|
|
|
.name = "mdp",
|
2020-10-30 11:36:22 +00:00
|
|
|
.sta_mask = BIT(19),
|
|
|
|
.ctl_offs = 0x034c,
|
2022-01-30 01:21:03 +00:00
|
|
|
.pwr_sta_offs = 0x016c,
|
|
|
|
.pwr_sta2nd_offs = 0x0170,
|
2020-10-30 11:36:22 +00:00
|
|
|
.sram_pdn_bits = GENMASK(8, 8),
|
|
|
|
.sram_pdn_ack_bits = GENMASK(12, 12),
|
|
|
|
.bp_infracfg = {
|
|
|
|
BUS_PROT_WR(MT8192_TOP_AXI_PROT_EN_MM_2_MDP,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_2_SET,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_2_CLR,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_2_STA1),
|
|
|
|
BUS_PROT_WR(MT8192_TOP_AXI_PROT_EN_MM_2_MDP_2ND,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_2_SET,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_2_CLR,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_2_STA1),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
[MT8192_POWER_DOMAIN_VENC] = {
|
2021-02-25 17:49:59 +00:00
|
|
|
.name = "venc",
|
2020-10-30 11:36:22 +00:00
|
|
|
.sta_mask = BIT(17),
|
|
|
|
.ctl_offs = 0x0344,
|
2022-01-30 01:21:03 +00:00
|
|
|
.pwr_sta_offs = 0x016c,
|
|
|
|
.pwr_sta2nd_offs = 0x0170,
|
2020-10-30 11:36:22 +00:00
|
|
|
.sram_pdn_bits = GENMASK(8, 8),
|
|
|
|
.sram_pdn_ack_bits = GENMASK(12, 12),
|
|
|
|
.bp_infracfg = {
|
|
|
|
BUS_PROT_WR(MT8192_TOP_AXI_PROT_EN_MM_VENC,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_SET,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_CLR,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_STA1),
|
|
|
|
BUS_PROT_WR(MT8192_TOP_AXI_PROT_EN_MM_VENC_2ND,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_SET,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_CLR,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_STA1),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
[MT8192_POWER_DOMAIN_VDEC] = {
|
2021-02-25 17:49:59 +00:00
|
|
|
.name = "vdec",
|
2020-10-30 11:36:22 +00:00
|
|
|
.sta_mask = BIT(15),
|
|
|
|
.ctl_offs = 0x033c,
|
2022-01-30 01:21:03 +00:00
|
|
|
.pwr_sta_offs = 0x016c,
|
|
|
|
.pwr_sta2nd_offs = 0x0170,
|
2020-10-30 11:36:22 +00:00
|
|
|
.sram_pdn_bits = GENMASK(8, 8),
|
|
|
|
.sram_pdn_ack_bits = GENMASK(12, 12),
|
|
|
|
.bp_infracfg = {
|
|
|
|
BUS_PROT_WR(MT8192_TOP_AXI_PROT_EN_MM_VDEC,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_SET,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_CLR,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_STA1),
|
|
|
|
BUS_PROT_WR(MT8192_TOP_AXI_PROT_EN_MM_VDEC_2ND,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_SET,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_CLR,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_STA1),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
[MT8192_POWER_DOMAIN_VDEC2] = {
|
2021-02-25 17:49:59 +00:00
|
|
|
.name = "vdec2",
|
2020-10-30 11:36:22 +00:00
|
|
|
.sta_mask = BIT(16),
|
|
|
|
.ctl_offs = 0x0340,
|
2022-01-30 01:21:03 +00:00
|
|
|
.pwr_sta_offs = 0x016c,
|
|
|
|
.pwr_sta2nd_offs = 0x0170,
|
2020-10-30 11:36:22 +00:00
|
|
|
.sram_pdn_bits = GENMASK(8, 8),
|
|
|
|
.sram_pdn_ack_bits = GENMASK(12, 12),
|
|
|
|
},
|
|
|
|
[MT8192_POWER_DOMAIN_CAM] = {
|
2021-02-25 17:49:59 +00:00
|
|
|
.name = "cam",
|
2020-10-30 11:36:22 +00:00
|
|
|
.sta_mask = BIT(23),
|
|
|
|
.ctl_offs = 0x035c,
|
2022-01-30 01:21:03 +00:00
|
|
|
.pwr_sta_offs = 0x016c,
|
|
|
|
.pwr_sta2nd_offs = 0x0170,
|
2020-10-30 11:36:22 +00:00
|
|
|
.sram_pdn_bits = GENMASK(8, 8),
|
|
|
|
.sram_pdn_ack_bits = GENMASK(12, 12),
|
|
|
|
.bp_infracfg = {
|
|
|
|
BUS_PROT_WR(MT8192_TOP_AXI_PROT_EN_2_CAM,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_2_SET,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_2_CLR,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_2_STA1),
|
|
|
|
BUS_PROT_WR(MT8192_TOP_AXI_PROT_EN_MM_CAM,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_SET,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_CLR,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_STA1),
|
|
|
|
BUS_PROT_WR(MT8192_TOP_AXI_PROT_EN_1_CAM,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_1_SET,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_1_CLR,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_1_STA1),
|
|
|
|
BUS_PROT_WR(MT8192_TOP_AXI_PROT_EN_MM_CAM_2ND,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_SET,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_CLR,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_MM_STA1),
|
|
|
|
BUS_PROT_WR(MT8192_TOP_AXI_PROT_EN_VDNR_CAM,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_VDNR_SET,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_VDNR_CLR,
|
|
|
|
MT8192_TOP_AXI_PROT_EN_VDNR_STA1),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
[MT8192_POWER_DOMAIN_CAM_RAWA] = {
|
2021-02-25 17:49:59 +00:00
|
|
|
.name = "cam_rawa",
|
2020-10-30 11:36:22 +00:00
|
|
|
.sta_mask = BIT(24),
|
|
|
|
.ctl_offs = 0x0360,
|
2022-01-30 01:21:03 +00:00
|
|
|
.pwr_sta_offs = 0x016c,
|
|
|
|
.pwr_sta2nd_offs = 0x0170,
|
2020-10-30 11:36:22 +00:00
|
|
|
.sram_pdn_bits = GENMASK(8, 8),
|
|
|
|
.sram_pdn_ack_bits = GENMASK(12, 12),
|
|
|
|
},
|
|
|
|
[MT8192_POWER_DOMAIN_CAM_RAWB] = {
|
2021-02-25 17:49:59 +00:00
|
|
|
.name = "cam_rawb",
|
2020-10-30 11:36:22 +00:00
|
|
|
.sta_mask = BIT(25),
|
|
|
|
.ctl_offs = 0x0364,
|
2022-01-30 01:21:03 +00:00
|
|
|
.pwr_sta_offs = 0x016c,
|
|
|
|
.pwr_sta2nd_offs = 0x0170,
|
2020-10-30 11:36:22 +00:00
|
|
|
.sram_pdn_bits = GENMASK(8, 8),
|
|
|
|
.sram_pdn_ack_bits = GENMASK(12, 12),
|
|
|
|
},
|
|
|
|
[MT8192_POWER_DOMAIN_CAM_RAWC] = {
|
2021-02-25 17:49:59 +00:00
|
|
|
.name = "cam_rawc",
|
2020-10-30 11:36:22 +00:00
|
|
|
.sta_mask = BIT(26),
|
|
|
|
.ctl_offs = 0x0368,
|
2022-01-30 01:21:03 +00:00
|
|
|
.pwr_sta_offs = 0x016c,
|
|
|
|
.pwr_sta2nd_offs = 0x0170,
|
2020-10-30 11:36:22 +00:00
|
|
|
.sram_pdn_bits = GENMASK(8, 8),
|
|
|
|
.sram_pdn_ack_bits = GENMASK(12, 12),
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct scpsys_soc_data mt8192_scpsys_data = {
|
|
|
|
.domains_data = scpsys_domain_data_mt8192,
|
|
|
|
.num_domains = ARRAY_SIZE(scpsys_domain_data_mt8192),
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __SOC_MEDIATEK_MT8192_PM_DOMAINS_H */
|