aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/google/cherry/mainboard.c
diff options
context:
space:
mode:
authorRex-BC Chen <rex-bc.chen@mediatek.com>2021-07-13 19:41:02 +0800
committerFelix Held <felix-coreboot@felixheld.de>2021-07-21 15:55:53 +0000
commitcc80a9ac8e635a21f73fd15117c75929fe933654 (patch)
treecef49a5b1e1b60a725b9f15fb794875e450c9cec /src/mainboard/google/cherry/mainboard.c
parentfdde4cd15304c99d40f14fad3bdc7d215e92068d (diff)
mb/google/cherry: add mt6360 support for MT8195
For new MT8195 devices we will control mt6360 via EC, so we have to add ec function of controlling MT6360 and add CONFIG to separate them. Signed-off-by: Rex-BC Chen <rex-bc.chen@mediatek.com> Change-Id: Ic2228f5b45173f0905ea66a3a1f00ec820e0f855 Reviewed-on: https://review.coreboot.org/c/coreboot/+/56446 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/mainboard/google/cherry/mainboard.c')
-rw-r--r--src/mainboard/google/cherry/mainboard.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mainboard/google/cherry/mainboard.c b/src/mainboard/google/cherry/mainboard.c
index 9cd0324d49..5758883edb 100644
--- a/src/mainboard/google/cherry/mainboard.c
+++ b/src/mainboard/google/cherry/mainboard.c
@@ -126,7 +126,10 @@ static void configure_sdcard(void)
MSDC1_GPIO_MODE1_3, MSDC1_GPIO_MODE1_VALUE);
mtk_i2c_bus_init(7);
- mt6360_init(7);
+
+ if (CONFIG(BOARD_GOOGLE_CHERRY))
+ mt6360_init(7);
+
mainboard_enable_regulator(MTK_REGULATOR_VCCQ, 1);
mainboard_enable_regulator(MTK_REGULATOR_VCC, 1);
}