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
|
/* linux/arch/arm/mach-exynos4/include/mach/cpufreq.h
*
* Copyright (c) 2011 Samsung Electronics Co., Ltd.
* http://www.samsung.com
*
* EXYNOS4 - CPUFreq support
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
/*
* CPU frequency level index for using cpufreq lock API
* This should be same with cpufreq_frequency_table
*/
enum cpufreq_level_request {
CPU_L0, /* 1200MHz */
CPU_L1, /* 1000MHz */
CPU_L2, /* 800MHz */
CPU_L3, /* 500MHz */
CPU_L4, /* 200MHz */
CPU_LEVEL_END,
};
enum cpufreq_lock_ID {
DVFS_LOCK_ID_G2D, /* G2D */
DVFS_LOCK_ID_TV, /* TV */
DVFS_LOCK_ID_MFC, /* MFC */
DVFS_LOCK_ID_USB, /* USB */
DVFS_LOCK_ID_CAM, /* CAM */
DVFS_LOCK_ID_PM, /* PM */
DVFS_LOCK_ID_USER, /* USER */
DVFS_LOCK_ID_END,
};
int exynos4_cpufreq_lock(unsigned int nId,
enum cpufreq_level_request cpufreq_level);
void exynos4_cpufreq_lock_free(unsigned int nId);
|