summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/mt8183/emi.c
diff options
context:
space:
mode:
authorHuayang Duan <huayang.duan@mediatek.com>2018-09-26 14:51:51 +0800
committerPatrick Georgi <pgeorgi@google.com>2018-10-24 10:03:32 +0000
commite19d61b4e82779c4161a8433d58b2d5706f2d3e1 (patch)
tree77fc3de9d7df942aeb7ca1c7e263fda37dc214f6 /src/soc/mediatek/mt8183/emi.c
parent48c24ce5eefe64b1aa82237f0a4be2772c686ef6 (diff)
downloadcoreboot-e19d61b4e82779c4161a8433d58b2d5706f2d3e1.tar.xz
mediatek/mt8183: Initialize DRAM with a sequence in constant array
The DRAM init sequence is simply setting some values on register for all DRAM modules, no logic involved; so we can replace it by an array to configure easily. BUG=b:80501386 BRANCH=none TEST=Boots correctly on Kukui, and inits DRAM successfully with related patches. Change-Id: Iacd3ce909ba7a0bdf699c5bfcb2b97f383d7bb6f Signed-off-by: Huayang Duan <huayang.duan@mediatek.com> Reviewed-on: https://review.coreboot.org/28836 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Diffstat (limited to 'src/soc/mediatek/mt8183/emi.c')
-rw-r--r--src/soc/mediatek/mt8183/emi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/soc/mediatek/mt8183/emi.c b/src/soc/mediatek/mt8183/emi.c
index 7fc1380916..78e0b28ec7 100644
--- a/src/soc/mediatek/mt8183/emi.c
+++ b/src/soc/mediatek/mt8183/emi.c
@@ -281,6 +281,7 @@ static void init_dram(const struct sdram_params *params)
dramc_set_broadcast(DRAMC_BROADCAST_ON);
dramc_init_pre_settings();
+ dramc_init();
emi_init2(params);
}