Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /* Copyright (C) 2012-2019 ARM Limited (or its affiliates). */
0003 
0004 /* \file cc_pm.h
0005  */
0006 
0007 #ifndef __CC_POWER_MGR_H__
0008 #define __CC_POWER_MGR_H__
0009 
0010 #include "cc_driver.h"
0011 
0012 #define CC_SUSPEND_TIMEOUT 3000
0013 
0014 #if defined(CONFIG_PM)
0015 
0016 extern const struct dev_pm_ops ccree_pm;
0017 
0018 int cc_pm_get(struct device *dev);
0019 void cc_pm_put_suspend(struct device *dev);
0020 
0021 #else
0022 
0023 static inline int cc_pm_get(struct device *dev)
0024 {
0025     return 0;
0026 }
0027 
0028 static inline void cc_pm_put_suspend(struct device *dev) {}
0029 
0030 #endif
0031 
0032 #endif /*__POWER_MGR_H__*/