Angel Pons | e67ab18 | 2020-04-04 18:51:11 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Yidi Lin | 3d7b606 | 2015-07-31 17:10:40 +0800 | [diff] [blame] | 2 | |
3 | #include <bootblock_common.h> | ||||
Jimmy Huang | 13eada65 | 2015-07-31 17:10:50 +0800 | [diff] [blame] | 4 | #include <soc/mmu_operations.h> |
henryc.chen | 31ae314 | 2015-07-31 17:10:52 +0800 | [diff] [blame] | 5 | #include <soc/mt6391.h> |
James Liao | f9fad12 | 2015-07-31 17:10:53 +0800 | [diff] [blame] | 6 | #include <soc/pll.h> |
Itamar | f585af3 | 2015-07-31 17:10:46 +0800 | [diff] [blame] | 7 | #include <soc/wdt.h> |
Yidi Lin | 3d7b606 | 2015-07-31 17:10:40 +0800 | [diff] [blame] | 8 | |
9 | void bootblock_soc_init(void) | ||||
10 | { | ||||
James Liao | f9fad12 | 2015-07-31 17:10:53 +0800 | [diff] [blame] | 11 | mt_pll_init(); |
12 | |||||
henryc.chen | 31ae314 | 2015-07-31 17:10:52 +0800 | [diff] [blame] | 13 | /* init pmic wrap SPI interface and pmic */ |
14 | mt6391_init(); | ||||
15 | |||||
James Liao | f9fad12 | 2015-07-31 17:10:53 +0800 | [diff] [blame] | 16 | /* post init pll */ |
17 | mt_pll_post_init(); | ||||
Itamar | f585af3 | 2015-07-31 17:10:46 +0800 | [diff] [blame] | 18 | |
Tristan Shieh | c645a5a | 2018-07-04 13:37:39 +0800 | [diff] [blame] | 19 | mtk_mmu_init(); |
Jimmy Huang | 13eada65 | 2015-07-31 17:10:50 +0800 | [diff] [blame] | 20 | |
Itamar | f585af3 | 2015-07-31 17:10:46 +0800 | [diff] [blame] | 21 | /* init watch dog, will disable AP watch dog */ |
22 | mtk_wdt_init(); | ||||
Yidi Lin | 3d7b606 | 2015-07-31 17:10:40 +0800 | [diff] [blame] | 23 | } |