summaryrefslogtreecommitdiffstats
path: root/src/mainboard/google/asurada/mainboard.c
diff options
context:
space:
mode:
authorHuayang Duan <huayang.duan@mediatek.com>2020-08-06 15:33:38 +0800
committerHung-Te Lin <hungte@chromium.org>2020-12-10 14:04:59 +0000
commit916e2efad4daaf6572107ed2e9b669e434eb5629 (patch)
tree6b3c2f6a79404534fd7ee00e413f8d46db124164 /src/mainboard/google/asurada/mainboard.c
parent344f68be108fca3b9fe8e4280ce8015f1dd8c8e1 (diff)
downloadcoreboot-916e2efad4daaf6572107ed2e9b669e434eb5629.tar.gz
coreboot-916e2efad4daaf6572107ed2e9b669e434eb5629.tar.bz2
coreboot-916e2efad4daaf6572107ed2e9b669e434eb5629.zip
soc/mediatek/mt8192: Init DPM
DPM is a hardware module for DRAM power management and for better power saving in low power mode. BUG=none TEST=Boots correctly on Asurada Signed-off-by: Huayang Duan <huayang.duan@mediatek.com> Change-Id: I16b341ad63940b45b886c4a7fd733c1970624e40 Reviewed-on: https://review.coreboot.org/c/coreboot/+/46393 Reviewed-by: Hung-Te Lin <hungte@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/asurada/mainboard.c')
-rw-r--r--src/mainboard/google/asurada/mainboard.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mainboard/google/asurada/mainboard.c b/src/mainboard/google/asurada/mainboard.c
index 0701c678d6cc..32bd40781720 100644
--- a/src/mainboard/google/asurada/mainboard.c
+++ b/src/mainboard/google/asurada/mainboard.c
@@ -4,6 +4,7 @@
#include <console/console.h>
#include <device/device.h>
#include <device/mmio.h>
+#include <soc/dpm.h>
#include <soc/gpio.h>
#include <soc/regulator.h>
#include <soc/spm.h>
@@ -109,6 +110,9 @@ static void mainboard_init(struct device *dev)
register_reset_to_bl31();
+ if (dpm_init())
+ printk(BIOS_ERR, "dpm init fail, system can't do DVFS switch\n");
+
if (spm_init())
printk(BIOS_ERR, "spm init fail, system suspend may stuck\n");
}