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>
This commit is contained in:
Ryan Chuang 2021-06-23 09:44:57 +08:00 committed by Hung-Te Lin
parent a9be096fa7
commit d5b0000856
1 changed files with 6 additions and 0 deletions

View File

@ -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();