summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/tegra3_speedo.c
diff options
context:
space:
mode:
authorPradeep Kumar <pgoudagunta@nvidia.com>2012-08-06 23:01:18 +0530
committerVarun Colbert <vcolbert@nvidia.com>2012-08-07 15:23:08 -0700
commitb8b641f5e81434ebb721b3998218645b5190bc25 (patch)
treed82cd59ef84d3ddde0478abb38b2f329db87b4da /arch/arm/mach-tegra/tegra3_speedo.c
parente3c885a945febae6e9b2bc1c82863494d5db9a79 (diff)
Merge commit 'main-jb-2012.08.03-B4' into t114-0806
Conflicts: arch/arm/boot/compressed/Makefile arch/arm/boot/compressed/atags_to_fdt.c arch/arm/boot/compressed/head.S arch/arm/boot/dts/tegra30.dtsi arch/arm/include/asm/bug.h arch/arm/kernel/traps.c arch/arm/mach-tegra/Makefile.boot arch/arm/mach-tegra/board-cardhu-sdhci.c arch/arm/mach-tegra/board-cardhu.c arch/arm/mach-tegra/board-enterprise-sdhci.c arch/arm/mach-tegra/board-enterprise.c arch/arm/mach-tegra/board-harmony.c arch/arm/mach-tegra/board-kai-sdhci.c arch/arm/mach-tegra/board-ventana.c arch/arm/mach-tegra/board-whistler.c arch/arm/mach-tegra/clock.h arch/arm/mach-tegra/fuse.h arch/arm/mach-tegra/tegra2_usb_phy.c arch/arm/mach-tegra/tegra3_clocks.c arch/arm/mach-tegra/tegra3_dvfs.c arch/arm/mach-tegra/tegra3_speedo.c arch/arm/mach-tegra/timer.c arch/arm/mach-tegra/usb_phy.c arch/arm/mach-tegra/wakeups-t3.c drivers/cpufreq/cpufreq_interactive.c drivers/input/touchscreen/atmel_mxt_ts.c drivers/mfd/tps65090.c drivers/mmc/core/mmc.c drivers/mmc/host/sdhci-tegra.c drivers/mmc/host/sdhci.c drivers/net/wireless/bcmdhd/bcmsdh_sdmmc_linux.c drivers/regulator/Kconfig drivers/regulator/core.c drivers/regulator/tps80031-regulator.c drivers/spi/Makefile drivers/staging/nvec/nvec.c drivers/tty/serial/Makefile include/linux/mmc/card.h sound/soc/tegra/tegra_max98095.c sound/usb/card.c Change-Id: I65043bc6ce9e97d0592683462215a39e50f403fd Reviewed-on: http://git-master/r/121392 Reviewed-by: Bo Yan <byan@nvidia.com> Tested-by: Bo Yan <byan@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'arch/arm/mach-tegra/tegra3_speedo.c')
-rw-r--r--arch/arm/mach-tegra/tegra3_speedo.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/tegra3_speedo.c b/arch/arm/mach-tegra/tegra3_speedo.c
index 3c7fb4acd649..c0c46861c623 100644
--- a/arch/arm/mach-tegra/tegra3_speedo.c
+++ b/arch/arm/mach-tegra/tegra3_speedo.c
@@ -1,7 +1,7 @@
/*
* arch/arm/mach-tegra/tegra3_speedo.c
*
- * Copyright (c) 2011, NVIDIA Corporation.
+ * Copyright (c) 2011-2012, NVIDIA Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -26,6 +26,8 @@
#include <mach/iomap.h>
#include <mach/tegra_fuse.h>
#include <mach/hardware.h>
+#include <linux/module.h>
+#include <linux/moduleparam.h>
#include "fuse.h"
@@ -131,6 +133,11 @@ static int core_process_id;
static int cpu_speedo_id;
static int soc_speedo_id;
static int package_id;
+/*
+ * Only AP37 supports App Profile
+ * This informs user space of support without exposing cpu id's
+ */
+static int enable_app_profiles;
static void fuse_speedo_calib(u32 *speedo_g, u32 *speedo_lp)
{
@@ -270,6 +277,7 @@ static void rev_sku_to_speedo_ids(int rev, int sku)
cpu_speedo_id = 12;
soc_speedo_id = 2;
threshold_index = 9;
+ enable_app_profiles = 1;
break;
default:
pr_err("Tegra3 Rev-A02: Reserved pkg: %d\n",
@@ -562,3 +570,15 @@ int tegra_core_speedo_mv(void)
BUG();
}
}
+
+static int get_enable_app_profiles(char *val, const struct kernel_param *kp)
+{
+ return param_get_uint(val, kp);
+}
+
+static struct kernel_param_ops tegra_profiles_ops = {
+ .get = get_enable_app_profiles,
+};
+
+module_param_cb(tegra_enable_app_profiles,
+ &tegra_profiles_ops, &enable_app_profiles, 0444);