soc/mediatek/mt8188: Add video/audio mtcmos setting

Add power domain data for video and audio.

TEST=build pass
BUG=b:233720142

Signed-off-by: Garmin.Chang <Garmin.Chang@mediatek.com>
Change-Id: Ic5fd496cbc6904b42eae28a62bf00a71f0ef508d
Reviewed-on: https://review.coreboot.org/c/coreboot/+/65752
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
This commit is contained in:
Rex-BC Chen 2022-07-11 14:23:35 +08:00 committed by Felix Held
parent 4e8a1ec565
commit f916b3cd8e
1 changed files with 48 additions and 0 deletions

View File

@ -953,6 +953,54 @@ struct dyna_load_pcm {
struct pcm_desc desc;
};
static const struct power_domain_data disp[] = {
{
.pwr_con = &mtk_spm->vppsys0_pwr_con,
.pwr_sta_mask = BIT(11),
.sram_pdn_mask = BIT(8),
.sram_ack_mask = BIT(12),
},
{
.pwr_con = &mtk_spm->vdosys0_pwr_con,
.pwr_sta_mask = BIT(13),
.sram_pdn_mask = BIT(8),
.sram_ack_mask = BIT(12),
},
{
.pwr_con = &mtk_spm->vppsys1_pwr_con,
.pwr_sta_mask = BIT(12),
.sram_pdn_mask = BIT(8),
.sram_ack_mask = BIT(12),
},
{
.pwr_con = &mtk_spm->vdosys1_pwr_con,
.pwr_sta_mask = BIT(14),
.sram_pdn_mask = BIT(8),
.sram_ack_mask = BIT(12),
},
{
.pwr_con = &mtk_spm->edp_tx_pwr_con,
.pwr_sta_mask = BIT(17),
.sram_pdn_mask = BIT(8),
.sram_ack_mask = BIT(12),
},
};
static const struct power_domain_data audio[] = {
{
.pwr_con = &mtk_spm->adsp_pwr_con,
.pwr_sta_mask = BIT(10),
.sram_pdn_mask = BIT(8),
.sram_ack_mask = BIT(12),
},
{
.pwr_con = &mtk_spm->audio_pwr_con,
.pwr_sta_mask = BIT(8),
.sram_pdn_mask = BIT(8),
.sram_ack_mask = BIT(12),
},
};
int spm_init(void);
#endif /* SOC_MEDIATEK_MT8188_SPM_H */