drivers: mailbox: add TCS Mailbox driver for RPMH communication
Qualcomm Technologies SoCs that have H/W accelerators for shared
resources uses a mailbox communication model to issue shared resource
requests. Triggered Command Set (TCS) is the H/W for such communication.
Each TCS controller block provides slots for multiple commands. The
controller driver picks the right slot for the request (depending on the
requested resource state) and issues the request to the accelerator I/P
blocks.
Change-Id: If244398ca61a373af133923a5f9d5af044829a5d
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
diff --git a/include/dt-bindings/soc/qcom,tcs-mbox.h b/include/dt-bindings/soc/qcom,tcs-mbox.h
new file mode 100644
index 0000000..a62869a
--- /dev/null
+++ b/include/dt-bindings/soc/qcom,tcs-mbox.h
@@ -0,0 +1,16 @@
+/* Copyright (c) 2014-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.
+ */
+
+#define SLEEP_TCS 0
+#define WAKE_TCS 1
+#define ACTIVE_TCS 2
+#define CONTROL_TCS 3