summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJon Medhurst <tixy@linaro.org>2014-11-19 09:52:55 +0000
committerJon Medhurst <tixy@linaro.org>2014-11-19 09:52:55 +0000
commitb826804d499e6db889d460488d2437b17464baad (patch)
tree6d40717b5fd38c89fb321b328d81250587b2f34f /include
parente739cd24347681e337f7a0fafdbf3e4958784c32 (diff)
parentc3767ea2d612c046eaf65cd6a1d7df7cd711aea1 (diff)
Merge branch 'tracking-armlt-juno-cpufreq' into integration-linaro-vexpress64tracking-integration-linaro-vexpress-ll-20141119.0
Diffstat (limited to 'include')
-rw-r--r--include/linux/scpi_protocol.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/include/linux/scpi_protocol.h b/include/linux/scpi_protocol.h
new file mode 100644
index 000000000000..0fdc969d8b9e
--- /dev/null
+++ b/include/linux/scpi_protocol.h
@@ -0,0 +1,35 @@
+/*
+ * 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_entry {
+ u32 freq_hz;
+ u32 volt_mv;
+} __packed;
+
+struct scpi_opp {
+ struct scpi_opp_entry *opp;
+ u32 latency; /* in usecs */
+ int count;
+} __packed;
+
+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);