summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Chuang <ryan.chuang@mediatek.corp-partner.google.com>2021-06-23 09:47:37 +0800
committerHung-Te Lin <hungte@chromium.org>2021-06-24 03:14:28 +0000
commitda63f09b80627da9b41ee869194a4e86c0b3184d (patch)
treebbdeb9eb1f3e41bfdd806ea9f7fbd5eb14ecbb95
parentd5b0000856f22c79f23333e3589b3566a5aa1447 (diff)
mb/google/cherry: Initialize DPM in romstage
Add initialization of DPM drvier used by DRAM calibration test. Signed-off-by: Ryan Chuang <ryan.chuang@mediatek.corp-partner.google.com> Change-Id: I8bd10864267dfa4db8528d40483eccee2d05c1d3 Reviewed-on: https://review.coreboot.org/c/coreboot/+/55775 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
-rw-r--r--src/mainboard/google/cherry/mainboard.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mainboard/google/cherry/mainboard.c b/src/mainboard/google/cherry/mainboard.c
index a454adfd8a..21ab24c58a 100644
--- a/src/mainboard/google/cherry/mainboard.c
+++ b/src/mainboard/google/cherry/mainboard.c
@@ -10,6 +10,7 @@
#include <framebuffer_info.h>
#include <gpio.h>
#include <soc/ddp.h>
+#include <soc/dpm.h>
#include <soc/dptx.h>
#include <soc/gpio.h>
#include <soc/i2c.h>
@@ -193,6 +194,9 @@ static void mainboard_init(struct device *dev)
configure_sdcard();
setup_usb_host();
+ if (dpm_init())
+ printk(BIOS_ERR, "dpm init failed, DVFS may not work\n");
+
if (spm_init())
printk(BIOS_ERR, "spm init failed, system suspend may not work\n");