plat_imx8.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef PLAT_IMX8_H
  7. #define PLAT_IMX8_H
  8. #include <drivers/arm/gicv3.h>
  9. #include <lib/psci/psci.h>
  10. struct plat_gic_ctx {
  11. gicv3_redist_ctx_t rdist_ctx[PLATFORM_CORE_COUNT];
  12. gicv3_dist_ctx_t dist_ctx;
  13. };
  14. unsigned int plat_calc_core_pos(uint64_t mpidr);
  15. void imx_mailbox_init(uintptr_t base_addr);
  16. void plat_gic_driver_init(void);
  17. void plat_gic_init(void);
  18. void plat_gic_cpuif_enable(void);
  19. void plat_gic_cpuif_disable(void);
  20. void plat_gic_pcpu_init(void);
  21. void __dead2 imx_system_off(void);
  22. void __dead2 imx_system_reset(void);
  23. int imx_validate_power_state(unsigned int power_state,
  24. psci_power_state_t *req_state);
  25. void imx_get_sys_suspend_power_state(psci_power_state_t *req_state);
  26. bool imx_is_wakeup_src_irqsteer(void);
  27. void plat_gic_save(unsigned int proc_num, struct plat_gic_ctx *ctx);
  28. void plat_gic_restore(unsigned int proc_num, struct plat_gic_ctx *ctx);
  29. #endif /* PLAT_IMX8_H */