diff options
author | Yanjie Jiang <yanjie.jiang@mediatek.com> | 2019-05-07 10:31:07 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-07-23 09:08:55 +0000 |
commit | 64dea2ed622156ef02eefd20d3e64dfdbf54bcb1 (patch) | |
tree | 3676e6ef144dee83b46baa7bc85e7a921f14802b /src/soc/mediatek/mt8183/soc.c | |
parent | cebf57905ba9d9b2850ef75758a135b18ec8e45c (diff) |
mediatek/mt8183: Add md power-off flow
SRCCLKENA holds 26M clock, which will fail suspend/resume,
and the SRCCLKENA is not used by mt8183,
so we can simply release it for suspend/resume to work.
BUG=b:80501386
BRANCH=none
Test=Boots correctly on Kukui, suspend test pass.
Change-Id: Ib6e11faeb6936a1dd6bbe8b1a8b612446bf51082
Signed-off-by: Yanjie.jiang <yanjie.jiang@mediatek.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32666
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/mediatek/mt8183/soc.c')
-rw-r--r-- | src/soc/mediatek/mt8183/soc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/soc/mediatek/mt8183/soc.c b/src/soc/mediatek/mt8183/soc.c index b51e7d4653..501ae19583 100644 --- a/src/soc/mediatek/mt8183/soc.c +++ b/src/soc/mediatek/mt8183/soc.c @@ -15,10 +15,10 @@ #include <device/device.h> #include <soc/emi.h> +#include <soc/md_ctrl.h> #include <soc/mmu_operations.h> #include <symbols.h> - static void soc_read_resources(struct device *dev) { ram_resource(dev, 0, (uintptr_t)_dram / KiB, sdram_size() / KiB); @@ -27,6 +27,7 @@ static void soc_read_resources(struct device *dev) static void soc_init(struct device *dev) { mtk_mmu_disable_l2c_sram(); + mtk_md_early_init(); } static struct device_operations soc_ops = { |