soc/mediatek/mt8183: Improve the DRAMC runtime config flow
commit04571d8dbeb06376564b03759a5e7c22e9ece86a
authorHuayang Duan <huayang.duan@mediatek.com>
Tue, 21 Jan 2020 02:40:01 +0000 (21 10:40 +0800)
committerPatrick Georgi <pgeorgi@google.com>
Fri, 6 Mar 2020 08:01:20 +0000 (6 08:01 +0000)
tree003a9a9339587f01570fc5fae8a4903928f4632f
parent25930f4a3f7c518afadeb1d0298f9750707748e8
soc/mediatek/mt8183: Improve the DRAMC runtime config flow

Move channel loop at the top level to deduplicate the logic.

BUG=none
BRANCH=kukui
TEST=Boots correctly on Kukui

Change-Id: Iea623d1bd1f7d736e81f66f191a1bf8476d30404
Signed-off-by: Huayang Duan <huayang.duan@mediatek.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/38490
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
src/soc/mediatek/mt8183/dramc_pi_basic_api.c
src/soc/mediatek/mt8183/dramc_pi_calibration_api.c
src/soc/mediatek/mt8183/include/soc/dramc_pi_api.h