aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/google/kukui
diff options
context:
space:
mode:
authorDawei Chien <dawei.chien@mediatek.com>2019-05-30 11:55:10 +0800
committerPatrick Georgi <pgeorgi@google.com>2019-09-30 11:38:42 +0000
commit2422f8c21e4590dcf75239583099a467f79f9878 (patch)
tree4034a79d2b5a531e89106c30a4420f6d69bf4fa6 /src/mainboard/google/kukui
parent45ffee83464156a58a57570b22ba35ab2859e532 (diff)
mediatek/mt8183: Init SPM driver
To support mt8183 power saving during suspend to RAM, this patch loads SPM firmware to support SPM suspend. SPM needs its own firmware to do these power saving in the right timing under correct conditions. After linux PM suspends, SPM is able to turn off power for the last CPU and do more power saving for the SoC such as DRAM self-refresh mode and turning off 26M crystal. BUG=none BRANCH=none TEST=suspend/resume passes for LPDDR4 3200 Change-Id: I3393a772f025b0912a5a25a63a87512454fbc86e Signed-off-by: Dawei Chien <dawei.chien@mediatek.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34545 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com> Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Diffstat (limited to 'src/mainboard/google/kukui')
-rw-r--r--src/mainboard/google/kukui/mainboard.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mainboard/google/kukui/mainboard.c b/src/mainboard/google/kukui/mainboard.c
index 7b00d94ba6..844496d7a0 100644
--- a/src/mainboard/google/kukui/mainboard.c
+++ b/src/mainboard/google/kukui/mainboard.c
@@ -28,6 +28,7 @@
#include <soc/gpio.h>
#include <soc/mmu_operations.h>
#include <soc/mtcmos.h>
+#include <soc/spm.h>
#include <soc/usb.h>
#include <string.h>
@@ -201,6 +202,9 @@ static void mainboard_init(struct device *dev)
configure_emmc();
configure_usb();
configure_audio();
+ if (spm_init())
+ printk(BIOS_ERR,
+ "SPM initialization failed, suspend/resume may fail.\n");
register_reset_to_bl31();
}