imx8m_psci.h 1006 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) 2019, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef IMX8M_PSCI_H
  7. #define IMX8M_PSCI_H
  8. #define CORE_PWR_STATE(state) ((state)->pwr_domain_state[MPIDR_AFFLVL0])
  9. #define CLUSTER_PWR_STATE(state) ((state)->pwr_domain_state[MPIDR_AFFLVL1])
  10. #define SYSTEM_PWR_STATE(state) ((state)->pwr_domain_state[PLAT_MAX_PWR_LVL])
  11. int imx_pwr_domain_on(u_register_t mpidr);
  12. void imx_pwr_domain_on_finish(const psci_power_state_t *target_state);
  13. void imx_pwr_domain_off(const psci_power_state_t *target_state);
  14. int imx_validate_ns_entrypoint(uintptr_t ns_entrypoint);
  15. void imx_cpu_standby(plat_local_state_t cpu_state);
  16. void imx_domain_suspend(const psci_power_state_t *target_state);
  17. void imx_domain_suspend_finish(const psci_power_state_t *target_state);
  18. void __dead2 imx_pwr_domain_pwr_down_wfi(const psci_power_state_t *target_state);
  19. int imx_system_reset2(int is_vendor, int reset_type, u_register_t cookie);
  20. #endif /* IMX8M_PSCI_H */