summaryrefslogtreecommitdiff
path: root/include/linux/scpi_protocol.h
diff options
context:
space:
mode:
authorJon Medhurst <tixy@linaro.org>2014-08-07 11:04:13 +0100
committerJon Medhurst <tixy@linaro.org>2014-08-07 11:04:13 +0100
commit19219f4f75af81bc86ca2159dd3376a101e41067 (patch)
treeb837ffa0757bd9d2430690e13ee830603b70aa72 /include/linux/scpi_protocol.h
parentfb79524507e6a61dc9b592ea232c62e51edde4b2 (diff)
parentd18ccdd3a0bf0c8a8c51d449606e8aa19910c67e (diff)
Merge branch 'tracking-armlt-juno-cpufreq' into integration-linaro-vexpresstracking-integration-linaro-vexpress-ll-20140807.0
Diffstat (limited to 'include/linux/scpi_protocol.h')
-rw-r--r--include/linux/scpi_protocol.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/linux/scpi_protocol.h b/include/linux/scpi_protocol.h
new file mode 100644
index 000000000000..66e5eb3710ab
--- /dev/null
+++ b/include/linux/scpi_protocol.h
@@ -0,0 +1,30 @@
+/*
+ * SCPI Message Protocol driver header
+ *
+ * Copyright (C) 2014 ARM Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms and conditions of the GNU General Public License,
+ * version 2, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope 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.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+#include <linux/types.h>
+
+struct scpi_opp {
+ u32 *freqs;
+ u32 latency; /* in usecs */
+ int count;
+};
+
+unsigned long scpi_clk_get_val(u16 clk_id);
+int scpi_clk_set_val(u16 clk_id, unsigned long rate);
+int scpi_dvfs_get_idx(u8 domain);
+int scpi_dvfs_set_idx(u8 domain, u8 idx);
+struct scpi_opp *scpi_dvfs_get_opps(u8 domain);