2 * arch/arm/mach-tegra/include/mach/latency_allowance.h
4 * Copyright (C) 2011-2012 NVIDIA Corporation.
6 * This software is licensed under the terms of the GNU General Public
7 * License version 2, as published by the Free Software Foundation, and
8 * may be copied, distributed, and modified under those terms.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
17 #ifndef _MACH_TEGRA_LATENCY_ALLOWANCE_H_
18 #define _MACH_TEGRA_LATENCY_ALLOWANCE_H_
67 TEGRA_LA_PPCS_AHBDMAR,
68 TEGRA_LA_PPCS_AHBSLVR,
69 TEGRA_LA_PPCS_AHBDMAW,
70 TEGRA_LA_PPCS_AHBSLVW,
90 #if defined(CONFIG_ARCH_TEGRA_2x_SOC) || !defined(CONFIG_TEGRA_SILICON_PLATFORM)
91 static inline int tegra_set_latency_allowance(enum tegra_la_id id,
92 unsigned int bandwidth_in_mbps)
97 static inline int tegra_enable_latency_scaling(enum tegra_la_id id,
98 unsigned int threshold_low,
99 unsigned int threshold_mid,
100 unsigned int threshold_high)
105 static inline void tegra_disable_latency_scaling(enum tegra_la_id id)
109 int tegra_set_latency_allowance(enum tegra_la_id id,
110 unsigned int bandwidth_in_mbps);
112 int tegra_enable_latency_scaling(enum tegra_la_id id,
113 unsigned int threshold_low,
114 unsigned int threshold_mid,
115 unsigned int threshold_high);
117 void tegra_disable_latency_scaling(enum tegra_la_id id);
120 #endif /* _MACH_TEGRA_LATENCY_ALLOWANCE_H_ */