diff options
| author | Amir Vajid <avajid@codeaurora.org> | 2015-12-08 20:18:41 -0800 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 21:17:08 -0700 |
| commit | 1cad27b2696a8bbbdca0e0e7c3bf78799a5b47af (patch) | |
| tree | 7fb47203215c335780383fc4e9082d2c3b67414c /include/soc/qcom | |
| parent | b5bfca8bf5570499cb9c480300675c7fb52de00f (diff) | |
soc: qcom: add API for matching voltages across CPUs
Create an API to match voltages across asymmetric CPUs as
this can be useful in systems with a shared rail across CPUs.
The API takes in one input argument which is the frequency of
a big cluster CPU for which a voltage-equivalent little cluster
CPU frequency is desired. The return value is this little
cluster CPU frequency. All frequencies are in units of kHz.
Change-Id: I821819a0761566984dd7f92014599ff0fcb85e90
Signed-off-by: Amir Vajid <avajid@codeaurora.org>
Diffstat (limited to 'include/soc/qcom')
| -rw-r--r-- | include/soc/qcom/msm_cpu_voltage.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/soc/qcom/msm_cpu_voltage.h b/include/soc/qcom/msm_cpu_voltage.h new file mode 100644 index 000000000000..79ac8f61813c --- /dev/null +++ b/include/soc/qcom/msm_cpu_voltage.h @@ -0,0 +1,14 @@ +/* + * Copyright (c) 2016, The Linux Foundation. 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 version 2 and + * only version 2 as published by the Free Software Foundation. + * + * 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. + */ + +unsigned int msm_match_cpu_voltage_btol(unsigned int input_freq); |
