summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsreenivasulu velpula <svelpula@nvidia.com>2014-04-15 17:01:15 +0530
committerSeema Khowala <seemaj@nvidia.com>2014-04-23 14:05:07 -0700
commit783e96e4c6ce338ffea697623e8548eaaa87184b (patch)
tree16756a428a322d4395c2c2955c89a85deb6a76a4
parenta203a505cce0a86062eec2ba0fc5dbd01dd2add2 (diff)
arm: tegra: vcm30t124: cleanup
The following functions are removed vcm30_t124_edp_init tegra_serial_debug_init vcm30_t124_emc_init vcm30_t124_pmon_init tegra_io_dpd_init Bug 1352942 Change-Id: Idc2d1c3ea1a805dfcfe0862c853ac77c6ba8672f Signed-off-by: sreenivasulu velpula <svelpula@nvidia.com> Reviewed-on: http://git-master/r/396413 Reviewed-by: Sandeep Trasi <strasi@nvidia.com> Tested-by: Sandeep Trasi <strasi@nvidia.com>
-rw-r--r--arch/arm/mach-tegra/board-vcm30_t124-power.c27
-rw-r--r--arch/arm/mach-tegra/board-vcm30_t124.c15
2 files changed, 1 insertions, 41 deletions
diff --git a/arch/arm/mach-tegra/board-vcm30_t124-power.c b/arch/arm/mach-tegra/board-vcm30_t124-power.c
index 8cdfd4b745ce..81cc56c7d824 100644
--- a/arch/arm/mach-tegra/board-vcm30_t124-power.c
+++ b/arch/arm/mach-tegra/board-vcm30_t124-power.c
@@ -24,8 +24,6 @@
#include <linux/i2c/pca953x.h>
#include <linux/tegra-pmc.h>
-#include <mach/edp.h>
-
#include "pm.h"
#include "board.h"
#include "gpio-names.h"
@@ -247,28 +245,6 @@ int __init vcm30_t124_suspend_init(void)
return 0;
}
-/* FIXME: Should this be called? */
-int __init vcm30_t124_edp_init(void)
-{
- unsigned int regulator_mA;
-
- regulator_mA = get_maximum_cpu_current_supported();
- if (!regulator_mA)
- regulator_mA = 14000;
-
- pr_info("%s: CPU regulator %d mA\n", __func__, regulator_mA);
- tegra_init_cpu_edp_limits(regulator_mA);
-
- regulator_mA = get_maximum_core_current_supported();
- if (!regulator_mA)
- regulator_mA = 14000;
-
- pr_info("%s: core regulator %d mA\n", __func__, regulator_mA);
- tegra_init_core_edp_limits(regulator_mA);
-
- return 0;
-}
-
static struct thermal_zone_params soctherm_tzp = {
.governor_name = "pid_thermal_gov",
};
@@ -379,9 +355,6 @@ int __init vcm30_t124_soctherm_init(void)
vcm30_t124_soctherm_data.tshut_pmu_trip_data = &tpdata_max77663;
- tegra_platform_edp_init(vcm30_t124_soctherm_data.therm[THERM_CPU].trips,
- &vcm30_t124_soctherm_data.therm[THERM_CPU].num_trips,
- 8000); /* edp temperature margin */
tegra_add_cpu_vmax_trips(vcm30_t124_soctherm_data.therm[THERM_CPU].trips,
&vcm30_t124_soctherm_data.therm[THERM_CPU].num_trips);
/*tegra_add_vc_trips(vcm30_t124_soctherm_data.therm[THERM_CPU].trips,
diff --git a/arch/arm/mach-tegra/board-vcm30_t124.c b/arch/arm/mach-tegra/board-vcm30_t124.c
index eb216ad1f1a8..f03a984b9bd2 100644
--- a/arch/arm/mach-tegra/board-vcm30_t124.c
+++ b/arch/arm/mach-tegra/board-vcm30_t124.c
@@ -733,28 +733,15 @@ static void __init tegra_vcm30_t124_late_init(void)
vcm30_t124_audio_init();
platform_add_devices(vcm30_t124_devices,
ARRAY_SIZE(vcm30_t124_devices));
- tegra_io_dpd_init();
vcm30_t124_sdhci_init();
vcm30_t124_regulator_init();
vcm30_t124_suspend_init();
-#if 0
- vcm30_t124_emc_init();
- vcm30_t124_edp_init();
-#endif
isomgr_init();
- /* vcm30_t124_panel_init(); */
- /* vcm30_t124_pmon_init(); */
#ifdef CONFIG_TEGRA_WDT_RECOVERY
tegra_wdt_recovery_init();
#endif
- /* FIXME: Required? */
-#if 0
- tegra_serial_debug_init(TEGRA_UARTD_BASE, INT_WDT_CPU, NULL, -1, -1);
-
- vcm30_t124_sensors_init();
- vcm30_t124_soctherm_init();
-#endif
vcm30_t124_panel_init();
+
#ifdef CONFIG_SENSORS_TMON_TMP411
register_therm_monitor(&vcm30t30_therm_monitor_data);
#endif