mb/google/asurada: Implement board-specific regulator controls

Currently, five regulator controls are implemented for DRAM
calibration and DVFS feature.

The regulators for VCORE and VM18 are controlled by MT6359.
The reguatlors for VDD1, VDD2 and VMDDR are controlled by MT6360
via EC.

BUG=b:147789962
BRANCH=none
TEST=verified with DRAM driver

Signed-off-by: Yidi Lin <yidi.lin@mediatek.com>
Change-Id: Id06a8196ca4badc51b06759afb07b5664278d13b
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46406
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
This commit is contained in:
Yidi Lin
2020-09-22 19:56:20 +08:00
committed by Hung-Te Lin
parent 9247d12839
commit 9ee02095fa
4 changed files with 110 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ enum mtk_regulator {
MTK_REGULATOR_VDD2,
MTK_REGULATOR_VDDQ,
MTK_REGULATOR_VMDDR,
MTK_REGULATOR_VCORE,
};
void mainboard_set_regulator_vol(enum mtk_regulator regulator,