From e36812cf4e50ab703f5a1cb01ecced693816750f Mon Sep 17 00:00:00 2001 From: Peter Boonstoppel Date: Fri, 15 Jul 2011 10:54:05 -0700 Subject: ARM: tegra: power: Added global EDP Capping table - Added table with EDP Capping values for different SKUs/regulator currents in new file edp.c - New entry point tegra_init_cpu_edp_limits() - Added DebugFS entry under debug/edp to list the currently selected EDP table - Populated EDP table in edp.c with data from Bug 844268 - edp.c keeps main EDP table; cpu-tegra.c and board-cardhu-power.c both read from there Bug 840255 Original-Change-Id: I55c2ee16278be8cd3005218bedebe76846d137d8 Reviewed-on: http://git-master/r/40938 Reviewed-by: Varun Colbert Tested-by: Varun Colbert Rebase-Id: R9a5f2bcfc1e6e0b5aee37cd700d75f9ef5cea30b --- arch/arm/mach-tegra/cpu-tegra.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'arch/arm/mach-tegra/cpu-tegra.c') diff --git a/arch/arm/mach-tegra/cpu-tegra.c b/arch/arm/mach-tegra/cpu-tegra.c index 1eb1a29b2f58..ad8c359e2249 100644 --- a/arch/arm/mach-tegra/cpu-tegra.c +++ b/arch/arm/mach-tegra/cpu-tegra.c @@ -304,6 +304,8 @@ static struct notifier_block tegra_cpu_edp_notifier = { static void tegra_cpu_edp_init(bool resume) { + tegra_get_cpu_edp_limits(&cpu_edp_limits, &cpu_edp_limits_size); + if (!cpu_edp_limits) { if (!resume) pr_info("cpu-tegra: no EDP table is provided\n"); @@ -332,12 +334,6 @@ static void tegra_cpu_edp_exit(void) unregister_hotcpu_notifier(&tegra_cpu_edp_notifier); } -void tegra_init_cpu_edp_limits(const struct tegra_edp_limits *limits, int size) -{ - cpu_edp_limits = limits; - cpu_edp_limits_size = size; -} - #else /* CONFIG_TEGRA_EDP_LIMITS */ #define edp_governor_speed(requested_speed) (requested_speed) -- cgit v1.2.3