blob: 7385392f01e6c70250b6d9ffa4849a5fd40c22d9 (
plain) (
blame)
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
|
/*
* Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope 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.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _CPUFREQ_CPU_EMC_TABLE_H
#define _CPUFREQ_CPU_EMC_TABLE_H
struct cpu_emc_mapping {
uint32_t cpu_freq_khz;
uint32_t emc_freq_khz;
};
extern struct cpu_emc_mapping*
tegra_cpufreq_cpu_emc_map_dt_init(struct device_node *);
extern unsigned long
tegra_cpu_to_emc_freq(uint32_t, struct cpu_emc_mapping *);
extern struct dentry * tegra_debugfs_create_cpu_emc_map(struct dentry *,
struct cpu_emc_mapping *);
#endif
|