diff options
author | Ryan Chuang <ryan.chuang@mediatek.corp-partner.google.com> | 2021-06-23 09:44:57 +0800 |
---|---|---|
committer | Hung-Te Lin <hungte@chromium.org> | 2021-06-24 03:14:05 +0000 |
commit | d5b0000856f22c79f23333e3589b3566a5aa1447 (patch) | |
tree | c5517d8926e3937473f8bf8a4bd31acd86acc76a /src/mainboard/google | |
parent | a9be096fa745e33bf880d2b3feec560384fd4573 (diff) |
mb/google/cherry: Add mt6360 driver for PMIC access
Add initialization of mt6360 drvier used by DRAM calibration test.
Signed-off-by: Ryan Chuang <ryan.chuang@mediatek.corp-partner.google.com>
Change-Id: Id74835d8395afac9e7e2c987a0a033f1b524fbfb
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55750
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r-- | src/mainboard/google/cherry/romstage.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainboard/google/cherry/romstage.c b/src/mainboard/google/cherry/romstage.c index 5505d8ac48..aabb7f5378 100644 --- a/src/mainboard/google/cherry/romstage.c +++ b/src/mainboard/google/cherry/romstage.c @@ -3,17 +3,23 @@ #include <arch/stages.h> #include <soc/clkbuf.h> #include <soc/emi.h> +#include <soc/i2c.h> #include <soc/mt6315.h> #include <soc/mt6359p.h> +#include <soc/mt6360.h> #include <soc/pmif.h> #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); + mt6360_init(I2C_BUS); clk_buf_init(); rtc_boot(); mtk_dram_init(); |