From 66bed5495bdfba33f90d5e7013e8a7122e0ba025 Mon Sep 17 00:00:00 2001 From: Rex-BC Chen Date: Thu, 28 Oct 2021 17:24:29 +0800 Subject: [PATCH] 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 Change-Id: I50fc87415086eb22ff35d157dba38cfd7594cc40 Reviewed-on: https://review.coreboot.org/c/coreboot/+/59255 Tested-by: build bot (Jenkins) Reviewed-by: Yu-Ping Wu --- src/mainboard/google/corsola/regulator.c | 2 ++ src/soc/mediatek/common/include/soc/regulator.h | 2 ++ 2 files changed, 4 insertions(+) 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, };