aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/tegra2_dvfs.c
blob: 5529c238dd77d783f315cf2c893ef188c574b0a2 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/*
 * arch/arm/mach-tegra/tegra2_dvfs.c
 *
 * Copyright (C) 2010 Google, Inc.
 *
 * Author:
 *	Colin Cross <ccross@google.com>
 *
 * This software is licensed under the terms of the GNU General Public
 * License version 2, as published by the Free Software Foundation, and
 * may be copied, distributed, and modified under those terms.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 */

#include <linux/kernel.h>

#include "clock.h"
#include "tegra2_dvfs.h"

static struct dvfs_table virtual_cpu_process_0[] = {
	{314000000,  750},
	{456000000,  825},
	{608000000,  900},
	{760000000,  975},
	{817000000,  1000},
	{912000000,  1050},
	{1000000000, 1100},
	{0, 0},
};

static struct dvfs_table virtual_cpu_process_1[] = {
	{314000000,  750},
	{456000000,  825},
	{618000000,  900},
	{770000000,  975},
	{827000000,  1000},
	{922000000,  1050},
	{1000000000, 1100},
	{0, 0},
};

static struct dvfs_table virtual_cpu_process_2[] = {
	{494000000,  750},
	{675000000,  825},
	{817000000,  875},
	{922000000,  925},
	{1000000000, 975},
	{0, 0},
};

static struct dvfs_table virtual_cpu_process_3[] = {
	{730000000,  750},
	{760000000,  775},
	{845000000,  800},
	{1000000000, 875},
	{0, 0},
};

struct dvfs tegra_dvfs_virtual_cpu_dvfs = {
	.reg_id = "vdd_cpu",
	.process_id_table = {
		{
			.process_id = 0,
			.table = virtual_cpu_process_0,
		},
		{
			.process_id = 1,
			.table = virtual_cpu_process_1,
		},
		{
			.process_id = 2,
			.table = virtual_cpu_process_2,
		},
		{
			.process_id = 3,
			.table = virtual_cpu_process_3,
		},
	},
	.process_id_table_length = 4,
	.cpu = 1,
};