summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnshul Jain <anshulj@nvidia.com>2011-12-08 17:22:09 -0800
committerVarun Wadekar <vwadekar@nvidia.com>2011-12-21 12:06:21 +0530
commit57d2376b768c9eb8a9c669d5a06a9a75972b8669 (patch)
tree38bdabfadf49029db8df866aabc48bb5e6bd344e /include
parent43930ec309b8c122f7648f64116e5b77880c5635 (diff)
power: bpcm: Battery Peak Power Management driver
This driver reduces CPU frequency in half by setting the CCLK_DIVIDER on GPIO level triggered event by current monitoring device. It then calls dvfs apis to reduce cpu frequency/voltage. Change-Id: I703e2277243df5328ee6a46478ec8b7a3dab93aa Signed-off-by: Anshul Jain <anshulj@nvidia.com> Reviewed-on: http://git-master/r/68794 Reviewed-on: http://git-master/r/69103 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com> Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/platform_data/tegra_bpc_mgmt.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/linux/platform_data/tegra_bpc_mgmt.h b/include/linux/platform_data/tegra_bpc_mgmt.h
new file mode 100644
index 000000000000..bdd4862d63a3
--- /dev/null
+++ b/include/linux/platform_data/tegra_bpc_mgmt.h
@@ -0,0 +1,25 @@
+/*
+ * Copyright (C) 2010-2011 NVIDIA Corporation
+ *
+ * This software is licensed under the terms of the GNU General Public
+ * License version 2, as published by the Free Software Foundation, and
+ * may be copied, distributed, and modified under those terms.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ */
+
+#ifndef __TEGRA_BPC_MGMT_H
+#define __TEGRA_BPC_MGMT_H
+#include <linux/cpumask.h>
+
+struct tegra_bpc_mgmt_platform_data {
+ int gpio_trigger;
+ struct cpumask affinity_mask;
+ int bpc_mgmt_timeout;
+};
+
+#endif /*__TEGRA_BPC_MGMT_H*/