xref: /rk3399_ARM-atf/plat/mediatek/include/lib/mtk_init/mtk_init_def.h (revision 5340c5a041052dc3eee8b126a8bfad2d2de4e758)
1*52035deeSLeon Chen /*
2*52035deeSLeon Chen  * Copyright (c) 2022, MediaTek Inc. All rights reserved.
3*52035deeSLeon Chen  *
4*52035deeSLeon Chen  * SPDX-License-Identifier: BSD-3-Clause
5*52035deeSLeon Chen  */
6*52035deeSLeon Chen 
7*52035deeSLeon Chen #ifndef MTK_INIT_DEF_H
8*52035deeSLeon Chen #define MTK_INIT_DEF_H
9*52035deeSLeon Chen 
10*52035deeSLeon Chen /*
11*52035deeSLeon Chen  * Define init call sections here. _func is for 2nd level expansion, init
12*52035deeSLeon Chen  * section enum, and init section name.
13*52035deeSLeon Chen  */
14*52035deeSLeon Chen #define INIT_CALL_TABLE(_func) \
15*52035deeSLeon Chen 	_func(MTK_INIT_LVL_EARLY_PLAT, .mtk_plat_initcall_, 0) \
16*52035deeSLeon Chen 	_func(MTK_INIT_LVL_ARCH, .mtk_plat_initcall_, 1) \
17*52035deeSLeon Chen 	_func(MTK_INIT_LVL_PLAT_SETUP_0, .mtk_plat_initcall_, 2) \
18*52035deeSLeon Chen 	_func(MTK_INIT_LVL_PLAT_SETUP_1, .mtk_plat_initcall_, 3) \
19*52035deeSLeon Chen 	_func(MTK_INIT_LVL_PLAT_RUNTIME, .mtk_plat_initcall_, 4) \
20*52035deeSLeon Chen 	_func(MTK_INIT_LVL_BL33_DEFER, .mtk_plat_initcall_, 5)
21*52035deeSLeon Chen 
22*52035deeSLeon Chen #endif /* MTK_INIT_DEF_H */
23