diff options
author | Peter Boonstoppel <pboonstoppel@nvidia.com> | 2011-07-15 10:54:05 -0700 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-07-20 16:45:06 -0700 |
commit | 30115e75f5398a755f0d2755a5a38e1d6894656d (patch) | |
tree | 3dd9f31be5592f900c4110a3675848f141ea7fc2 /arch/arm/mach-tegra/board-cardhu-sensors.c | |
parent | c704c48848a4c27bac2a95106906bdbb55ba4517 (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
Change-Id: I55c2ee16278be8cd3005218bedebe76846d137d8
Reviewed-on: http://git-master/r/40938
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-cardhu-sensors.c')
-rw-r--r-- | arch/arm/mach-tegra/board-cardhu-sensors.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/arm/mach-tegra/board-cardhu-sensors.c b/arch/arm/mach-tegra/board-cardhu-sensors.c index 8e29cd48027d..6ed5a8f0cdd7 100644 --- a/arch/arm/mach-tegra/board-cardhu-sensors.c +++ b/arch/arm/mach-tegra/board-cardhu-sensors.c @@ -548,16 +548,13 @@ static struct i2c_board_info cardhu_i2c4_nct1008_board_info[] = { } }; -#ifdef CONFIG_TEGRA_EDP_LIMITS -extern void cardhu_thermal_zones_info(struct tegra_edp_limits **, int *); -#endif static int cardhu_nct1008_init(void) { int nct1008_port = -1; int ret; #ifdef CONFIG_TEGRA_EDP_LIMITS - struct tegra_edp_limits *z; + const struct tegra_edp_limits *z; int zones_sz; int i; bool throttle_ok = false; @@ -589,7 +586,7 @@ static int cardhu_nct1008_init(void) } #ifdef CONFIG_TEGRA_EDP_LIMITS - cardhu_thermal_zones_info(&z, &zones_sz); + tegra_get_cpu_edp_limits(&z, &zones_sz); zones_sz = min(zones_sz, MAX_ZONES); for (i = 0; i < zones_sz; i++) { cardhu_nct1008_pdata.thermal_zones[i] = z[i].temperature; |