From 57d2376b768c9eb8a9c669d5a06a9a75972b8669 Mon Sep 17 00:00:00 2001 From: Anshul Jain Date: Thu, 8 Dec 2011 17:22:09 -0800 Subject: 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 Reviewed-on: http://git-master/r/68794 Reviewed-on: http://git-master/r/69103 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Peter Boonstoppel Reviewed-by: Dan Willemsen --- include/linux/platform_data/tegra_bpc_mgmt.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 include/linux/platform_data/tegra_bpc_mgmt.h (limited to 'include') 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 + +struct tegra_bpc_mgmt_platform_data { + int gpio_trigger; + struct cpumask affinity_mask; + int bpc_mgmt_timeout; +}; + +#endif /*__TEGRA_BPC_MGMT_H*/ -- cgit v1.2.3