diff options
author | Diwakar Tundlam <dtundlam@nvidia.com> | 2013-01-22 12:48:25 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 12:57:11 -0700 |
commit | e64e89719a5c55f6c6d333b3fe668dfa5b1cae6b (patch) | |
tree | 9984d18669558ea113ece982141cbd9af6d908c4 /arch/arm/mach-tegra/include/mach/edp.h | |
parent | 8faeddc6c8b69e31654bc5307f728d60e3e4765e (diff) |
ARM: tegra: power-edp table
Added code for populating cpu power edp table during init. This is
needed for the AP+DRAM super system EDP client.
Bug 1159974
Change-Id: If1f5c3e53416a1edb1df42ff1cb356e0b1d507c6
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/198023
Diffstat (limited to 'arch/arm/mach-tegra/include/mach/edp.h')
-rw-r--r-- | arch/arm/mach-tegra/include/mach/edp.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/include/mach/edp.h b/arch/arm/mach-tegra/include/mach/edp.h index 88500fab15e7..e2560a25a168 100644 --- a/arch/arm/mach-tegra/include/mach/edp.h +++ b/arch/arm/mach-tegra/include/mach/edp.h @@ -41,7 +41,7 @@ struct tegra_edp_limits { struct tegra_system_edp_entry { char speedo_id; char power_limit_100mW; - char freq_limits[4]; + unsigned int freq_limits[4]; }; struct tegra_edp_cpu_leakage_params { @@ -86,6 +86,7 @@ unsigned int tegra_get_edp_limit(int *get_edp_thermal_index); void tegra_get_system_edp_limits(const unsigned int **limits); int tegra_system_edp_alarm(bool alarm); void tegra_platform_edp_init(struct thermal_trip_info *trips, int *num_trips); +struct tegra_system_edp_entry *tegra_get_system_edp_entries(int *size); #else static inline struct thermal_cooling_device *edp_cooling_device_create( int index) @@ -108,6 +109,8 @@ static inline int tegra_system_edp_alarm(bool alarm) static inline void tegra_platform_edp_init(struct thermal_trip_info *trips, int *num_trips) {} +static inline struct tegra_system_edp_entry + *tegra_get_system_edp_entries(int *size) { return NULL; } #endif #ifdef CONFIG_ARCH_TEGRA_2x_SOC |