diff options
author | Jeff Smith <jsmith@nvidia.com> | 2012-11-14 10:13:47 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 13:42:32 -0700 |
commit | 68e3f564848795ea94390b27c3f0c1b11a9fe56f (patch) | |
tree | 791ec890b17d44c02789185e79684881a32921f4 /arch/arm/mach-tegra/powerdetect.c | |
parent | e536f6b5aae0a3db3080e270da9b8a87073477d2 (diff) |
ARM: tegra: Disable pre-si features at run time
Disable the the remainder of the silicon only features at
run time instead of the Kconfig file. This change covers
THERMAL_THROTTLE, EDP_LIMITS and DYNAMIC_PWRDET.
Change HZ to 100 for all pre-si configs, not just FPGA. We
cannot change this field at run time. A faster tick doesn't
help sim or Qt CPUs go faster.
This change is a part of the effort to enable runtime
platform detection and reduce compile-time conditionals.
Bug 1333554
Change-Id: I24a865bf192347e487c743fdae3a3369e3ba89d1
Signed-off-by: Jeff Smith <jsmith@nvidia.com>
Signed-off-by: Chetan Kumar N G <chetankumarn@nvidia.com>
Reviewed-on: http://git-master/r/264034
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/powerdetect.c')
-rw-r--r-- | arch/arm/mach-tegra/powerdetect.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/powerdetect.c b/arch/arm/mach-tegra/powerdetect.c index ea8f61d220ad..4797a585c89e 100644 --- a/arch/arm/mach-tegra/powerdetect.c +++ b/arch/arm/mach-tegra/powerdetect.c @@ -1,7 +1,7 @@ /* * arch/arm/mach-tegra/powerdetect.c * - * Copyright (c) 2011, NVIDIA Corporation. + * Copyright (c) 2011 - 2013, 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 <linux/regulator/consumer.h> #include <linux/module.h> +#include <mach/hardware.h> + #include "board.h" #include "fuse.h" #include "iomap.h" @@ -312,6 +314,9 @@ int __init tegra_pwr_detect_cell_init(void) unsigned long flags; bool rails_found = true; + if (!tegra_platform_is_silicon()) + return -ENOSYS; + i = tegra_package_id(); if ((i != -1) && (i & (~0x1F))) { pr_err("tegra: not supported package id %d - io power detection" |