blob: 6e0e785b9e17f64d92da23b97319d9f350430200 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Samsung Exynos SoC series dsp driver
*
* Copyright (c) 2019 Samsung Electronics Co., Ltd.
* http://www.samsung.com/
*/
#ifndef __DSP_HW_PM_H__
#define __DSP_HW_PM_H__
#include <linux/mutex.h>
#include <linux/pm_qos.h>
struct dsp_pm_devfreq;
struct dsp_system;
enum dsp_devfreq_id {
DSP_DEVFREQ_DNC,
DSP_DEVFREQ_DSP,
DSP_DEVFREQ_COUNT,
};
struct dsp_pm {
struct mutex lock;
struct dsp_pm_devfreq *devfreq;
bool dvfs;
unsigned int dvfs_disable_count;
bool dvfs_lock;
struct pm_qos_request mif_qos;
struct pm_qos_request int_qos;
struct pm_qos_request cl0_qos;
struct pm_qos_request cl1_qos;
struct pm_qos_request cl2_qos;
struct dsp_system *sys;
};
#endif
|