From 55290428ce4d78e362425badd59147e6c9ac84e8 Mon Sep 17 00:00:00 2001 From: Diwakar Tundlam Date: Fri, 21 Sep 2012 01:02:42 -0700 Subject: arm: tegra: power: enable dynamic VDD_CPU EDP capping Using the model used to enforce max frequency for a given VDD_CPU EDP. Enabled for dalmore and pluto. Initialised edp_reg_override to 6A and increased default per-platform edp-limit higher by 6A to allow users to override the limit up by upto 6A when needed for specific use-cases. Change-Id: I2741ba7316cebe0ae2836b84c4b3bbbe0afefe5e Signed-off-by: Diwakar Tundlam Reviewed-on: http://git-master/r/134306 (cherry picked from commit 9648d86f4a9a7b3b2557e98530e8265ea9f53467) Signed-off-by: Gaurav Batra Reviewed-on: http://git-master/r/146677 Reviewed-by: Simone Willett Tested-by: Simone Willett Rebase-Id: R41ff83ba9a5dd4c1799961cc00dc6e796a93c8ba --- arch/arm/mach-tegra/include/mach/edp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'arch/arm/mach-tegra/include/mach/edp.h') diff --git a/arch/arm/mach-tegra/include/mach/edp.h b/arch/arm/mach-tegra/include/mach/edp.h index a074309a0634..34914d47381c 100644 --- a/arch/arm/mach-tegra/include/mach/edp.h +++ b/arch/arm/mach-tegra/include/mach/edp.h @@ -48,7 +48,7 @@ struct thermal_cooling_device *edp_cooling_device_create(int index); void tegra_init_cpu_edp_limits(unsigned int regulator_mA); void tegra_init_system_edp_limits(unsigned int power_limit_mW); void tegra_get_cpu_edp_limits(const struct tegra_edp_limits **limits, int *size); -unsigned int tegra_get_edp_limit(void); +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); @@ -63,7 +63,7 @@ static inline void tegra_init_system_edp_limits(int power_limit_mW) static inline void tegra_get_cpu_edp_limits(struct tegra_edp_limits **limits, int *size) {} -static inline unsigned int tegra_get_edp_limit(void) +static inline unsigned int tegra_get_edp_limit(int *get_edp_thermal_index) { return -1; } static inline void tegra_get_system_edp_limits(unsigned int **limits) {} -- cgit v1.2.3