summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/mt8183/include
diff options
context:
space:
mode:
authorHuayang Duan <huayang.duan@mediatek.com>2018-09-26 21:09:54 +0800
committerPatrick Georgi <pgeorgi@google.com>2019-01-03 22:22:48 +0000
commit7b78a805da0207449c5ea1baf56030ab9f54e2d6 (patch)
tree0de9d9fb71948454225b811aac5151c41d3c1905 /src/soc/mediatek/mt8183/include
parent6202d1b51a45e9ed00f742318363920776e32d52 (diff)
mediatek/mt8183: Add DDR driver of runtime config part
BUG=b:80501386 BRANCH=none TEST=Boots correctly on Kukui, and inits DRAM successfully with related patches. Change-Id: Id1e8862ff6feb9628d37fe5300780ff56865a563 Signed-off-by: Huayang Duan <huayang.duan@mediatek.com> Reviewed-on: https://review.coreboot.org/c/28844 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Diffstat (limited to 'src/soc/mediatek/mt8183/include')
-rw-r--r--src/soc/mediatek/mt8183/include/soc/dramc_pi_api.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/soc/mediatek/mt8183/include/soc/dramc_pi_api.h b/src/soc/mediatek/mt8183/include/soc/dramc_pi_api.h
index 7b3215840d..04bb2bb28e 100644
--- a/src/soc/mediatek/mt8183/include/soc/dramc_pi_api.h
+++ b/src/soc/mediatek/mt8183/include/soc/dramc_pi_api.h
@@ -118,10 +118,13 @@ enum {
};
void dramc_get_rank_size(u64 *dram_rank_size);
+void dramc_runtime_config(void);
void dramc_set_broadcast(u32 onoff);
u32 dramc_get_broadcast(void);
void dramc_init(void);
void dramc_sw_impedance(const struct sdram_params *params);
void dramc_apply_pre_calibration_config(void);
void dramc_calibrate_all_channels(const struct sdram_params *params);
+void dramc_hw_gating_onoff(u8 chn, bool onoff);
+void dramc_enable_phy_dcm(bool bEn);
#endif /* _DRAMC_PI_API_MT8183_H */