summaryrefslogtreecommitdiffstats
path: root/src/mainboard/google/cherry/romstage.c
blob: c11fef45dc0588016df1bf120d2643147a761211 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* SPDX-License-Identifier: GPL-2.0-only */

#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>

void platform_romstage_main(void)
{
	mtk_pmif_init();
	mt6359p_init();
	mt6315_init();
	mtk_i2c_bus_init(I2C7);
	if (CONFIG(BOARD_GOOGLE_CHERRY))
		mt6360_init(I2C7);
	clk_buf_init();
	rtc_boot();
	mtk_dram_init();
	scp_rsi_enable();
}