summaryrefslogtreecommitdiffstats
path: root/src/mainboard/google/corsola/regulator.c
diff options
context:
space:
mode:
authorRex-BC Chen <rex-bc.chen@mediatek.corp-partner.google.com>2021-12-28 13:07:06 +0800
committerHung-Te Lin <hungte@chromium.org>2022-01-01 03:29:08 +0000
commit0069f6a18cf52e7a7da9c993e8b120403cae7112 (patch)
treee2cfd3a5acd7e25820feffddfcfd17f260a61604 /src/mainboard/google/corsola/regulator.c
parent100c2f6d38c2f92647655bf1013bf5c38a847799 (diff)
downloadcoreboot-0069f6a18cf52e7a7da9c993e8b120403cae7112.tar.gz
coreboot-0069f6a18cf52e7a7da9c993e8b120403cae7112.tar.bz2
coreboot-0069f6a18cf52e7a7da9c993e8b120403cae7112.zip
soc/mediatek/mt8186: Add support for regulator VRF12/VCN33
To provide power to PS8640, the eDP bridge IC on krabby, add control of VRF12 and VCN33 to set voltage from MT6366. TEST=measure 1.2V from VRF12 and 3.3V from VCN33. BUG=b:210806060 Signed-off-by: Rex-BC Chen <rex-bc.chen@mediatek.com> Change-Id: I55a9ca16e1e335e9355d0a1b30c278a9969db197 Reviewed-on: https://review.coreboot.org/c/coreboot/+/60446 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/mainboard/google/corsola/regulator.c')
-rw-r--r--src/mainboard/google/corsola/regulator.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mainboard/google/corsola/regulator.c b/src/mainboard/google/corsola/regulator.c
index 1dd26d34346a..d607497a4f78 100644
--- a/src/mainboard/google/corsola/regulator.c
+++ b/src/mainboard/google/corsola/regulator.c
@@ -20,6 +20,8 @@ static const int regulator_id[] = {
[MTK_REGULATOR_VMC] = MT6366_VMC,
[MTK_REGULATOR_VPROC12] = MT6366_VPROC12,
[MTK_REGULATOR_VSRAM_PROC12] = MT6366_VSRAM_PROC12,
+ [MTK_REGULATOR_VRF12] = MT6366_VRF12,
+ [MTK_REGULATOR_VCN33] = MT6366_VCN33,
};
_Static_assert(ARRAY_SIZE(regulator_id) == MTK_REGULATOR_NUM, "regulator_id size error");