summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/cherry/mainboard.c4
-rw-r--r--src/mainboard/google/cherry/romstage.c6
2 files changed, 4 insertions, 6 deletions
diff --git a/src/mainboard/google/cherry/mainboard.c b/src/mainboard/google/cherry/mainboard.c
index 5758883edb..6b29f4417b 100644
--- a/src/mainboard/google/cherry/mainboard.c
+++ b/src/mainboard/google/cherry/mainboard.c
@@ -125,10 +125,10 @@ static void configure_sdcard(void)
MSDC1_GPIO_MODE1_2, MSDC1_GPIO_MODE1_VALUE,
MSDC1_GPIO_MODE1_3, MSDC1_GPIO_MODE1_VALUE);
- mtk_i2c_bus_init(7);
+ mtk_i2c_bus_init(I2C7);
if (CONFIG(BOARD_GOOGLE_CHERRY))
- mt6360_init(7);
+ mt6360_init(I2C7);
mainboard_enable_regulator(MTK_REGULATOR_VCCQ, 1);
mainboard_enable_regulator(MTK_REGULATOR_VCC, 1);
diff --git a/src/mainboard/google/cherry/romstage.c b/src/mainboard/google/cherry/romstage.c
index 193d8e16ac..c11fef45dc 100644
--- a/src/mainboard/google/cherry/romstage.c
+++ b/src/mainboard/google/cherry/romstage.c
@@ -11,16 +11,14 @@
#include <soc/rtc.h>
#include <soc/scp.h>
-#define I2C_BUS 7
-
void platform_romstage_main(void)
{
mtk_pmif_init();
mt6359p_init();
mt6315_init();
- mtk_i2c_bus_init(I2C_BUS);
+ mtk_i2c_bus_init(I2C7);
if (CONFIG(BOARD_GOOGLE_CHERRY))
- mt6360_init(I2C_BUS);
+ mt6360_init(I2C7);
clk_buf_init();
rtc_boot();
mtk_dram_init();