summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/common.c
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2011-10-15 15:44:04 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:49:28 -0800
commit1f8be3df89d34901aea08aff4a9fa304285f148f (patch)
tree84254c911914a35eb1a42f4fcf5ccb48978ce052 /arch/arm/mach-tegra/common.c
parent6980642e8cd2357a4d62eefa4ca9c3b58947ba09 (diff)
arm: tegra: Handler for parsing kernel command max_cpu_curr
Adding handler for parsing the kernel command max_cpu_curr and api for retruning the max_cpu_current. bug 888679 Reviewed-on: http://git-master/r/58626 (cherry picked from commit 4d2da03c37a1a1401b4ef87b888f487a99b175b7) Change-Id: Ic5a53fe4e41317f48b986867081f3e7d96103f0d Reviewed-on: http://git-master/r/59290 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Rebase-Id: Ra426e2b10268bc7eadbe394c107528378f043e15
Diffstat (limited to 'arch/arm/mach-tegra/common.c')
-rw-r--r--arch/arm/mach-tegra/common.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/common.c b/arch/arm/mach-tegra/common.c
index ce16e23c943c..61452f8cfae8 100644
--- a/arch/arm/mach-tegra/common.c
+++ b/arch/arm/mach-tegra/common.c
@@ -116,6 +116,7 @@ void tegra_assert_system_reset(char mode, const char *cmd)
static int modem_id;
static int debug_uart_port_id;
static enum audio_codec_type audio_codec_name;
+static int max_cpu_current;
/* WARNING: There is implicit client of pllp_out3 like i2c, uart, dsi
* and so this clock (pllp_out3) should never be disabled.
@@ -403,6 +404,18 @@ static int __init tegra_pmu_core_edp(char *options)
}
early_param("core_edp_mv", tegra_pmu_core_edp);
+int get_maximum_cpu_current_supported(void)
+{
+ return max_cpu_current;
+}
+static int __init tegra_max_cpu_current(char *options)
+{
+ char *p = options;
+ max_cpu_current = memparse(p, &p);
+ return 1;
+}
+__setup("max_cpu_cur_ma=", tegra_max_cpu_current);
+
static int __init tegra_debug_uartport(char *info)
{
char *p = info;