summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/include/mach/edp.h
diff options
context:
space:
mode:
authorPeter Boonstoppel <pboonstoppel@nvidia.com>2011-07-15 10:54:05 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2012-03-22 23:28:26 -0700
commit42724309244ba86f602b8f6ffbda1b3b62a075e4 (patch)
treef7bd030bf68408d03f96d156617e0d6518eef583 /arch/arm/mach-tegra/include/mach/edp.h
parent98b6855bd85028f8358afa3c4f69065e9f94617f (diff)
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 <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: Rc598b39c3517e10c3c5052258e5a3e444f092b96
Diffstat (limited to 'arch/arm/mach-tegra/include/mach/edp.h')
-rw-r--r--arch/arm/mach-tegra/include/mach/edp.h26
1 files changed, 21 insertions, 5 deletions
diff --git a/arch/arm/mach-tegra/include/mach/edp.h b/arch/arm/mach-tegra/include/mach/edp.h
index 21a56ebc5a8d..1af8d9e55a95 100644
--- a/arch/arm/mach-tegra/include/mach/edp.h
+++ b/arch/arm/mach-tegra/include/mach/edp.h
@@ -21,20 +21,36 @@
#ifndef __MACH_EDP_H
#define __MACH_EDP_H
+#include <linux/debugfs.h>
+
+struct tegra_edp_entry {
+ char speedo_id;
+ char regulator_100mA;
+ char temperature;
+ char freq_limits[4];
+};
+
struct tegra_edp_limits {
- int temperature;
+ int temperature;
unsigned int freq_limits[4];
};
+
#ifdef CONFIG_TEGRA_EDP_LIMITS
+
+
int tegra_edp_update_thermal_zone(int temperature);
-void tegra_init_cpu_edp_limits(const struct tegra_edp_limits *limits, int size);
+void tegra_init_cpu_edp_limits(unsigned int regulator_mA);
+void tegra_get_cpu_edp_limits(const struct tegra_edp_limits **limits, int *size);
+
#else
-static inline void tegra_init_cpu_edp_limits(
- const struct tegra_edp_limits *limits, int size)
-{ }
+static inline void tegra_init_cpu_edp_limits(int regulator_mA)
+{}
static inline int tegra_edp_update_thermal_zone(int temperature)
{ return -1; }
+static inline void tegra_get_cpu_edp_limits(struct tegra_edp_limits **limits,
+ int *size)
+{}
#endif
#endif /* __MACH_EDP_H */