mtk_init_def.h 686 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright (c) 2022, MediaTek Inc. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef MTK_INIT_DEF_H
  7. #define MTK_INIT_DEF_H
  8. /*
  9. * Define init call sections here. _func is for 2nd level expansion, init
  10. * section enum, and init section name.
  11. */
  12. #define INIT_CALL_TABLE(_func) \
  13. _func(MTK_INIT_LVL_EARLY_PLAT, .mtk_plat_initcall_, 0) \
  14. _func(MTK_INIT_LVL_ARCH, .mtk_plat_initcall_, 1) \
  15. _func(MTK_INIT_LVL_PLAT_SETUP_0, .mtk_plat_initcall_, 2) \
  16. _func(MTK_INIT_LVL_PLAT_SETUP_1, .mtk_plat_initcall_, 3) \
  17. _func(MTK_INIT_LVL_PLAT_RUNTIME, .mtk_plat_initcall_, 4) \
  18. _func(MTK_INIT_LVL_BL33_DEFER, .mtk_plat_initcall_, 5)
  19. #endif /* MTK_INIT_DEF_H */