From da63f09b80627da9b41ee869194a4e86c0b3184d Mon Sep 17 00:00:00 2001 From: Ryan Chuang Date: Wed, 23 Jun 2021 09:47:37 +0800 Subject: [PATCH] mb/google/cherry: Initialize DPM in romstage Add initialization of DPM drvier used by DRAM calibration test. Signed-off-by: Ryan Chuang Change-Id: I8bd10864267dfa4db8528d40483eccee2d05c1d3 Reviewed-on: https://review.coreboot.org/c/coreboot/+/55775 Tested-by: build bot (Jenkins) Reviewed-by: Yu-Ping Wu --- src/mainboard/google/cherry/mainboard.c | 4 ++++ 1 file changed, 4 insertions(+) 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 #include #include +#include #include #include #include @@ -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");