tz_pm.h 523 B

12345678910111213141516171819202122
  1. /*
  2. * Power management for TrustZone
  3. */
  4. #ifndef __KREE_TZ_PM_H__
  5. #define __KREE_TZ_PM_H__
  6. #if defined(CONFIG_MTK_IN_HOUSE_TEE_SUPPORT) || defined(CONFIG_TRUSTY)
  7. void kree_pm_init(void);
  8. void kree_pm_cpu_lowpower(volatile int *ppen_release, int logical_cpuid);
  9. int kree_pm_cpu_dormant(int mode);
  10. int kree_pm_device_ops(int state);
  11. #else
  12. #define kree_pm_cpu_lowpower(ppen, cpuid)
  13. #define kree_pm_cpu_dormant(mode) 1
  14. #endif /* CONFIG_MTK_IN_HOUSE_TEE_SUPPORT || CONFIG_TRUSTY */
  15. #endif /* __KREE_TZ_PM_H__ */