Yidi Lin | 3d7b606 | 2015-07-31 17:10:40 +0800 | [diff] [blame] | 1 | /* |
| 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 Lin | 3d7b606 | 2015-07-31 17:10:40 +0800 | [diff] [blame] | 14 | */ |
| 15 | |
| 16 | #include <bootblock_common.h> |
Jimmy Huang | 13eada65 | 2015-07-31 17:10:50 +0800 | [diff] [blame] | 17 | #include <soc/mmu_operations.h> |
henryc.chen | 31ae314 | 2015-07-31 17:10:52 +0800 | [diff] [blame] | 18 | #include <soc/mt6391.h> |
James Liao | f9fad12 | 2015-07-31 17:10:53 +0800 | [diff] [blame] | 19 | #include <soc/pll.h> |
Itamar | f585af3 | 2015-07-31 17:10:46 +0800 | [diff] [blame] | 20 | #include <soc/wdt.h> |
Yidi Lin | 3d7b606 | 2015-07-31 17:10:40 +0800 | [diff] [blame] | 21 | |
| 22 | void bootblock_soc_init(void) |
| 23 | { |
James Liao | f9fad12 | 2015-07-31 17:10:53 +0800 | [diff] [blame] | 24 | mt_pll_init(); |
| 25 | |
henryc.chen | 31ae314 | 2015-07-31 17:10:52 +0800 | [diff] [blame] | 26 | /* init pmic wrap SPI interface and pmic */ |
| 27 | mt6391_init(); |
| 28 | |
James Liao | f9fad12 | 2015-07-31 17:10:53 +0800 | [diff] [blame] | 29 | /* post init pll */ |
| 30 | mt_pll_post_init(); |
Itamar | f585af3 | 2015-07-31 17:10:46 +0800 | [diff] [blame] | 31 | |
Jimmy Huang | 13eada65 | 2015-07-31 17:10:50 +0800 | [diff] [blame] | 32 | mt8173_mmu_init(); |
| 33 | |
Itamar | f585af3 | 2015-07-31 17:10:46 +0800 | [diff] [blame] | 34 | /* init watch dog, will disable AP watch dog */ |
| 35 | mtk_wdt_init(); |
Yidi Lin | 3d7b606 | 2015-07-31 17:10:40 +0800 | [diff] [blame] | 36 | } |