aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRex-BC Chen <rex-bc.chen@mediatek.corp-partner.google.com>2021-10-28 17:24:29 +0800
committerHung-Te Lin <hungte@chromium.org>2021-11-15 03:08:00 +0000
commit66bed5495bdfba33f90d5e7013e8a7122e0ba025 (patch)
tree17293ede26c8cf997bdc399ff984e2e3c74cb89a
parentdc4c2b95f405a27bf996af816501db1ed4db300e (diff)
mb/google/corsola: Add VMCH and VMC for regulator interface
Add VMCH and VMC for providing power of SDCard. TEST=build pass BUG=b:202871018 Signed-off-by: Rex-BC Chen <rex-bc.chen@mediatek.com> Change-Id: I50fc87415086eb22ff35d157dba38cfd7594cc40 Reviewed-on: https://review.coreboot.org/c/coreboot/+/59255 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
-rw-r--r--src/mainboard/google/corsola/regulator.c2
-rw-r--r--src/soc/mediatek/common/include/soc/regulator.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/mainboard/google/corsola/regulator.c b/src/mainboard/google/corsola/regulator.c
index 1ddc52c3eb..b1310af7bd 100644
--- a/src/mainboard/google/corsola/regulator.c
+++ b/src/mainboard/google/corsola/regulator.c
@@ -16,6 +16,8 @@ static const int regulator_id[] = {
[MTK_REGULATOR_VCC] = REGULATOR_NOT_SUPPORT,
[MTK_REGULATOR_VCCQ] = REGULATOR_NOT_SUPPORT,
[MTK_REGULATOR_VDRAM1] = MT6366_VDRAM1,
+ [MTK_REGULATOR_VMCH] = MT6366_VMCH,
+ [MTK_REGULATOR_VMC] = MT6366_VMC,
};
_Static_assert(ARRAY_SIZE(regulator_id) == MTK_REGULATOR_NUM, "regulator_id size error");
diff --git a/src/soc/mediatek/common/include/soc/regulator.h b/src/soc/mediatek/common/include/soc/regulator.h
index 08ce47f1d0..a53d01c3f3 100644
--- a/src/soc/mediatek/common/include/soc/regulator.h
+++ b/src/soc/mediatek/common/include/soc/regulator.h
@@ -14,6 +14,8 @@ enum mtk_regulator {
MTK_REGULATOR_VCC,
MTK_REGULATOR_VCCQ,
MTK_REGULATOR_VDRAM1,
+ MTK_REGULATOR_VMCH,
+ MTK_REGULATOR_VMC,
MTK_REGULATOR_NUM,
};