ARM: tegra12: dvfs: Add wrappers for vmin trips
Anshul Jain [Fri, 6 Dec 2013 02:33:55 +0000 (18:33 -0800)]
This change adds wrapper functions for setting vmin trips
of CPU, GPU and PLL.

Bug 1364450

Change-Id: I2457798bed4b5f6e5307058320920733e3a9ce8a
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/338975
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

arch/arm/mach-tegra/board-common.c
arch/arm/mach-tegra/board-common.h

index 4580bf3..3c88b9d 100644 (file)
@@ -175,6 +175,24 @@ void tegra_add_cdev_trips(struct thermal_trip_info *trips, int *num_trips)
        tegra_add_trip_points(trips, num_trips, tegra_dvfs_get_gpu_vmin_cdev());
 }
 
+void tegra_add_cpu_vmin_trips(struct thermal_trip_info *trips, int *num_trips)
+{
+       tegra_add_trip_points(trips, num_trips,
+                                       tegra_dvfs_get_cpu_vmin_cdev());
+}
+
+void tegra_add_gpu_vmin_trips(struct thermal_trip_info *trips, int *num_trips)
+{
+       tegra_add_trip_points(trips, num_trips,
+                                       tegra_dvfs_get_gpu_vmin_cdev());
+}
+
+void tegra_add_core_vmin_trips(struct thermal_trip_info *trips, int *num_trips)
+{
+       tegra_add_trip_points(trips, num_trips,
+                                       tegra_dvfs_get_core_vmin_cdev());
+}
+
 void tegra_add_tj_trips(struct thermal_trip_info *trips, int *num_trips)
 {
        tegra_add_trip_points(trips, num_trips, tegra_dvfs_get_cpu_vmax_cdev());
index cd8efbd..a46164c 100644 (file)
@@ -28,6 +28,9 @@ extern struct platform_device *uart_console_debug_device;
 int  uart_console_debug_init(int defaul_debug_port);
 int tegra_vibrator_init(void);
 void tegra_add_cdev_trips(struct thermal_trip_info *trips, int *num_trips);
+void tegra_add_cpu_vmin_trips(struct thermal_trip_info *trips, int *num_trips);
+void tegra_add_gpu_vmin_trips(struct thermal_trip_info *trips, int *num_trips);
+void tegra_add_core_vmin_trips(struct thermal_trip_info *trips, int *num_trips);
 void tegra_add_tj_trips(struct thermal_trip_info *trips, int *num_trips);
 void tegra_add_tgpu_trips(struct thermal_trip_info *trips, int *num_trips);
 void tegra_add_vc_trips(struct thermal_trip_info *trips, int *num_trips);