summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/common/include
diff options
context:
space:
mode:
authorRyan Chuang <ryan.chuang@mediatek.corp-partner.google.com>2021-06-18 19:47:39 +0800
committerHung-Te Lin <hungte@chromium.org>2021-06-23 05:50:37 +0000
commitd41a5ae4890f40da060bfd73fda344b4c5edab93 (patch)
tree4c8491f490eb368eb5fe0d5dca0fa5b3e0aa0aba /src/soc/mediatek/common/include
parentaff42bc6a44e2cfb9ab8e3659282188048c96ea3 (diff)
soc/mediatek/common: Add DPM_FOUR_CHANNEL option
Add DPM_FOUR_CHANNEL option for 4 channel configuration for DPM. Publicize reset_dpm() as dpm_reset() for external reference. Signed-off-by: Ryan Chuang <ryan.chuang@mediatek.corp-partner.google.com> Change-Id: If6e0d5c4d16a7ddd69c4a427488f8899870db327 Reviewed-on: https://review.coreboot.org/c/coreboot/+/55719 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/soc/mediatek/common/include')
-rw-r--r--src/soc/mediatek/common/include/soc/dpm.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/soc/mediatek/common/include/soc/dpm.h b/src/soc/mediatek/common/include/soc/dpm.h
index 7262e09a6f..8c110aaaf1 100644
--- a/src/soc/mediatek/common/include/soc/dpm.h
+++ b/src/soc/mediatek/common/include/soc/dpm.h
@@ -1,9 +1,10 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __SOC_MEDIATEK_DPM_H__
-#define __SOC_MEDIATEK_DPM_H__
+#ifndef __SOC_MEDIATEK_COMMON_DPM_H__
+#define __SOC_MEDIATEK_COMMON_DPM_H__
#include <soc/addressmap.h>
+#include <soc/mcu_common.h>
#include <stdint.h>
#include <types.h>
@@ -41,9 +42,16 @@ check_member(dpm_regs, status_4, 0x70B0);
#define DPM_MEM_RATIO_OFFSET 28
#define DPM_MEM_RATIO_MASK (0x3 << DPM_MEM_RATIO_OFFSET)
#define DPM_MEM_RATIO_CFG1 (1 << DPM_MEM_RATIO_OFFSET)
+#define DRAMC_MCU_SRAM_ISOINT_B_LSB BIT(1)
+#define DRAMC_MCU2_SRAM_ISOINT_B_LSB BIT(1)
+#define DRAMC_MCU_SRAM_SLEEP_B_LSB BIT(4)
+#define DRAMC_MCU2_SRAM_SLEEP_B_LSB BIT(4)
static struct dpm_regs *const mtk_dpm = (void *)DPM_CFG_BASE;
+void dpm_reset(struct mtk_mcu *mcu);
int dpm_init(void);
+int dpm_4ch_para_setting(void);
+int dpm_4ch_init(void);
-#endif /* __SOC_MEDIATEK_MT8192_DPM_H__ */
+#endif /* __SOC_MEDIATEK_COMMON_DPM_H__ */