• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef SOC_MEDIATEK_EARLY_INIT_H
4 #define SOC_MEDIATEK_EARLY_INIT_H
5 
6 #include <soc/symbols.h>
7 #include <stdint.h>
8 #include <symbols.h>
9 #include <timer.h>
10 
11 DECLARE_REGION(early_init_data);
12 
13 enum early_init_type {
14 	EARLY_INIT_PCIE,
15 	EARLY_INIT_MAX,
16 };
17 
18 struct early_init_data {
19 	struct mono_time init_time[EARLY_INIT_MAX];
20 };
21 
22 void early_init_clear(void);
23 void early_init_save_time(enum early_init_type init_type);
24 long early_init_get_elapsed_time_us(enum early_init_type init_type);
25 
26 #endif /* SOC_MEDIATEK_EARLY_INIT_H */
27