Macpaul Lin | 5d16f8d | 2022-08-11 16:27:10 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only OR MIT */ |
Yidi Lin | 24ea3f3 | 2021-01-07 20:25:54 +0800 | [diff] [blame] | 2 | |
3 | #include <bootblock_common.h> | ||||
Jianjun Wang | acf16bf | 2022-03-23 15:28:10 +0800 | [diff] [blame] | 4 | #include <soc/early_init.h> |
Yidi Lin | 780f82f | 2021-04-19 13:59:51 +0800 | [diff] [blame] | 5 | #include <soc/eint_event.h> |
Yidi Lin | 24ea3f3 | 2021-01-07 20:25:54 +0800 | [diff] [blame] | 6 | #include <soc/mmu_operations.h> |
Weiyi Lu | 450fd0b | 2021-02-03 16:20:57 +0800 | [diff] [blame] | 7 | #include <soc/pll.h> |
Rex-BC Chen | f083d5e | 2021-11-25 17:44:02 +0800 | [diff] [blame] | 8 | #include <soc/tracker_common.h> |
Yidi Lin | 6968782 | 2021-04-22 13:34:04 +0800 | [diff] [blame] | 9 | #include <soc/wdt.h> |
Yidi Lin | 24ea3f3 | 2021-01-07 20:25:54 +0800 | [diff] [blame] | 10 | |
11 | void bootblock_soc_init(void) | ||||
12 | { | ||||
13 | mtk_mmu_init(); | ||||
Rex-BC Chen | f083d5e | 2021-11-25 17:44:02 +0800 | [diff] [blame] | 14 | bustracker_init(); |
Yidi Lin | 6968782 | 2021-04-22 13:34:04 +0800 | [diff] [blame] | 15 | mtk_wdt_init(); |
Weiyi Lu | 450fd0b | 2021-02-03 16:20:57 +0800 | [diff] [blame] | 16 | mt_pll_init(); |
Yidi Lin | 780f82f | 2021-04-19 13:59:51 +0800 | [diff] [blame] | 17 | unmask_eint_event_mask(); |
Jianjun Wang | acf16bf | 2022-03-23 15:28:10 +0800 | [diff] [blame] | 18 | early_init_clear(); |
Yidi Lin | 24ea3f3 | 2021-01-07 20:25:54 +0800 | [diff] [blame] | 19 | } |