blob: 7fe879c4b98d38437db231749870d236ae085652 [file] [log] [blame]
Yidi Lin3d7b6062015-07-31 17:10:40 +08001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright 2015 MediaTek Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
Yidi Lin3d7b6062015-07-31 17:10:40 +080014 */
15
16#include <bootblock_common.h>
Jimmy Huang13eada652015-07-31 17:10:50 +080017#include <soc/mmu_operations.h>
henryc.chen31ae3142015-07-31 17:10:52 +080018#include <soc/mt6391.h>
James Liaof9fad122015-07-31 17:10:53 +080019#include <soc/pll.h>
Itamarf585af32015-07-31 17:10:46 +080020#include <soc/wdt.h>
Yidi Lin3d7b6062015-07-31 17:10:40 +080021
22void bootblock_soc_init(void)
23{
James Liaof9fad122015-07-31 17:10:53 +080024 mt_pll_init();
25
henryc.chen31ae3142015-07-31 17:10:52 +080026 /* init pmic wrap SPI interface and pmic */
27 mt6391_init();
28
James Liaof9fad122015-07-31 17:10:53 +080029 /* post init pll */
30 mt_pll_post_init();
Itamarf585af32015-07-31 17:10:46 +080031
Jimmy Huang13eada652015-07-31 17:10:50 +080032 mt8173_mmu_init();
33
Itamarf585af32015-07-31 17:10:46 +080034 /* init watch dog, will disable AP watch dog */
35 mtk_wdt_init();
Yidi Lin3d7b6062015-07-31 17:10:40 +080036}