aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorLiviu Dudau <Liviu.Dudau@arm.com>2014-02-20 12:54:48 +0000
committerJon Medhurst <tixy@linaro.org>2014-04-09 18:55:11 +0100
commitbab9b19bafe00a0022b9f2dd0a615cbb111aeca6 (patch)
tree62071de2f717f3a03ce9528ddb588942e721c763 /include/linux
parent5bc83dcd789a064f9b0d902796a6cb77e0fa7a45 (diff)
misc: Add support for communication with System Control and Power unit via MHU.
Modern ARM systems contain a System Control and Power unit that allows for control of compute cores and clusters, oscillator setup, wakeup timers and even system reset. This driver adds support for communication with the SCP via the Message Handling Unit hardware. Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/scpi.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/linux/scpi.h b/include/linux/scpi.h
new file mode 100644
index 00000000000..adf2df09b37
--- /dev/null
+++ b/include/linux/scpi.h
@@ -0,0 +1,22 @@
+#ifndef __ARM_SCPI_H
+#define __ARM_SCPI_H
+
+#include <linux/platform_device.h>
+#include <linux/slab.h>
+#include <linux/workqueue.h>
+
+#define SCPI_MHU_CHANNEL_MAX 2
+
+#define SCPI_CMD_INVALID 0x00
+#define SCPI_CMD_SCP_READY 0x01
+#define SCPI_CMD_SCP_CAPABILITIES 0x02
+#define SCPI_CMD_FAULT 0x03
+#define SCPI_CMD_GET_CLOCKS 0x13
+#define SCPI_CMD_SET_CLOCK_FREQ_INDEX 0x14
+#define SCPI_CMD_SET_CLOCK_FREQ 0x15
+#define SCPI_CMD_GET_CLOCK_FREQ 0x16
+
+int scpi_exec_command(uint8_t cmd, void *payload, int size,
+ void *reply_payload, int rsize);
+
+#endif /* __ARM_SCPI_H */