From c5e56f59486aae1ef11f8aab4da314d73ead1b8a Mon Sep 17 00:00:00 2001 From: Rex-BC Chen Date: Wed, 17 Nov 2021 16:58:43 +0800 Subject: mb/google/corsola: Add VPROC12/VSRAM_PROC12 to regulator interface Add VPROC12/VSRAM_PROC12 to adjust power for raising little CPU frequency. TEST=build pass BUG=b:202871018 Signed-off-by: Rex-BC Chen Change-Id: I59b4627220022a51a116716036a8ba0048039508 Reviewed-on: https://review.coreboot.org/c/coreboot/+/59568 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 b1310af7bd..1dd26d3434 100644 --- a/src/mainboard/google/corsola/regulator.c +++ b/src/mainboard/google/corsola/regulator.c @@ -18,6 +18,8 @@ static const int regulator_id[] = { [MTK_REGULATOR_VDRAM1] = MT6366_VDRAM1, [MTK_REGULATOR_VMCH] = MT6366_VMCH, [MTK_REGULATOR_VMC] = MT6366_VMC, + [MTK_REGULATOR_VPROC12] = MT6366_VPROC12, + [MTK_REGULATOR_VSRAM_PROC12] = MT6366_VSRAM_PROC12, }; _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 a53d01c3f3..5068f50779 100644 --- a/src/soc/mediatek/common/include/soc/regulator.h +++ b/src/soc/mediatek/common/include/soc/regulator.h @@ -16,6 +16,8 @@ enum mtk_regulator { MTK_REGULATOR_VDRAM1, MTK_REGULATOR_VMCH, MTK_REGULATOR_VMC, + MTK_REGULATOR_VPROC12, + MTK_REGULATOR_VSRAM_PROC12, MTK_REGULATOR_NUM, }; -- cgit v1.2.3