cc_pm.h 550 B

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* Copyright (C) 2012-2019 ARM Limited (or its affiliates). */
  3. /* \file cc_pm.h
  4. */
  5. #ifndef __CC_POWER_MGR_H__
  6. #define __CC_POWER_MGR_H__
  7. #include "cc_driver.h"
  8. #define CC_SUSPEND_TIMEOUT 3000
  9. #if defined(CONFIG_PM)
  10. extern const struct dev_pm_ops ccree_pm;
  11. int cc_pm_get(struct device *dev);
  12. void cc_pm_put_suspend(struct device *dev);
  13. #else
  14. static inline int cc_pm_get(struct device *dev)
  15. {
  16. return 0;
  17. }
  18. static inline void cc_pm_put_suspend(struct device *dev) {}
  19. #endif
  20. #endif /*__POWER_MGR_H__*/