msm8916_tsp_setup.c 594 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (c) 2023, Stephan Gerhold <stephan@gerhold.net>
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #include <common/debug.h>
  7. #include <platform_tsp.h>
  8. #include "../msm8916_setup.h"
  9. #include <platform_def.h>
  10. void tsp_early_platform_setup(void)
  11. {
  12. msm8916_early_platform_setup();
  13. }
  14. void tsp_plat_arch_setup(void)
  15. {
  16. msm8916_plat_arch_setup(BL32_BASE, BL32_END - BL32_BASE);
  17. enable_mmu_el1(0);
  18. }
  19. void tsp_platform_setup(void)
  20. {
  21. INFO("TSP: Platform setup start\n");
  22. msm8916_platform_setup();
  23. INFO("TSP: Platform setup done\n");
  24. console_switch_state(CONSOLE_FLAG_RUNTIME);
  25. }