summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/mt8183/include
diff options
context:
space:
mode:
authorWeiyi Lu <weiyi.lu@mediatek.com>2019-03-19 13:39:12 +0800
committerPatrick Georgi <pgeorgi@google.com>2019-06-21 08:41:34 +0000
commite621d8f11a2bdad4920cbb7c4293fdfd98adf4bd (patch)
treee1531f1f93593505e3e760db3089d19af76bddc0 /src/soc/mediatek/mt8183/include
parentf6317b4892d8d295312ffd7a8b4caccf2610c25e (diff)
downloadcoreboot-e621d8f11a2bdad4920cbb7c4293fdfd98adf4bd.tar.xz
mediatek/mt8183: Add infra group DCM setting
Add infra group DCM (Dynamic Clock Management) settings, which slows down OR gate clocks while hardware is in idle state. BUG=b:80501386 BRANCH=none TEST=Boots correctly on Kukui. Change-Id: I4741dfb7b984deb92171f370e5fb2593829d74c2 Signed-off-by: Weiyi Lu <weiyi.lu@mediatek.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/31977 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: You-Cheng Syu <youcheng@google.com>
Diffstat (limited to 'src/soc/mediatek/mt8183/include')
-rw-r--r--src/soc/mediatek/mt8183/include/soc/pll.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/soc/mediatek/mt8183/include/soc/pll.h b/src/soc/mediatek/mt8183/include/soc/pll.h
index 2a72e2c61c..3807e0087e 100644
--- a/src/soc/mediatek/mt8183/include/soc/pll.h
+++ b/src/soc/mediatek/mt8183/include/soc/pll.h
@@ -270,4 +270,13 @@ enum {
SPI_HZ = MAINPLL_D5_D2_HZ,
};
+enum {
+ DCM_INFRA_BUS_MASK = 0x40907ffb,
+ DCM_INFRA_BUS_ON = 0x40904203,
+ DCM_INFRA_MEM_ON = 0x1 << 27,
+ DCM_INFRA_P2PRX_MASK = 0xf,
+ DCM_INFRA_PERI_MASK = 0xf03ffffb,
+ DCM_INFRA_PERI_ON = 0xf03f83e3,
+};
+
#endif /* SOC_MEDIATEK_MT8183_PLL_H */