Blame view
drivers/mfd/intel-lpss.h
1.4 KB
d2912cb15 treewide: Replace... |
1 |
/* SPDX-License-Identifier: GPL-2.0-only */ |
4b45efe85 mfd: Add support ... |
2 3 4 5 6 7 8 |
/* * Intel LPSS core support. * * Copyright (C) 2015, Intel Corporation * * Authors: Andy Shevchenko <andriy.shevchenko@linux.intel.com> * Mika Westerberg <mika.westerberg@linux.intel.com> |
4b45efe85 mfd: Add support ... |
9 10 11 12 |
*/ #ifndef __MFD_INTEL_LPSS_H #define __MFD_INTEL_LPSS_H |
16b7a09bb mfd: intel-lpss: ... |
13 |
#include <linux/pm.h> |
4b45efe85 mfd: Add support ... |
14 15 |
struct device; struct resource; |
f4d052660 device property: ... |
16 |
struct property_entry; |
4b45efe85 mfd: Add support ... |
17 18 19 20 21 22 |
struct intel_lpss_platform_info { struct resource *mem; int irq; unsigned long clk_rate; const char *clk_con_id; |
f4d052660 device property: ... |
23 |
struct property_entry *properties; |
4b45efe85 mfd: Add support ... |
24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
}; int intel_lpss_probe(struct device *dev, const struct intel_lpss_platform_info *info); void intel_lpss_remove(struct device *dev); #ifdef CONFIG_PM int intel_lpss_prepare(struct device *dev); int intel_lpss_suspend(struct device *dev); int intel_lpss_resume(struct device *dev); #ifdef CONFIG_PM_SLEEP #define INTEL_LPSS_SLEEP_PM_OPS \ .prepare = intel_lpss_prepare, \ |
e00952c79 PM / mfd: intel-l... |
38 |
SET_LATE_SYSTEM_SLEEP_PM_OPS(intel_lpss_suspend, intel_lpss_resume) |
47b91923e mfd: intel-lpss: ... |
39 40 |
#else #define INTEL_LPSS_SLEEP_PM_OPS |
4b45efe85 mfd: Add support ... |
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
#endif #define INTEL_LPSS_RUNTIME_PM_OPS \ .runtime_suspend = intel_lpss_suspend, \ .runtime_resume = intel_lpss_resume, #else /* !CONFIG_PM */ #define INTEL_LPSS_SLEEP_PM_OPS #define INTEL_LPSS_RUNTIME_PM_OPS #endif /* CONFIG_PM */ #define INTEL_LPSS_PM_OPS(name) \ const struct dev_pm_ops name = { \ INTEL_LPSS_SLEEP_PM_OPS \ INTEL_LPSS_RUNTIME_PM_OPS \ } #endif /* __MFD_INTEL_LPSS_H */ |