hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/include/soc/arc/mcip.h
....@@ -1,11 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * ARConnect IP Support (Multi core enabler: Cross core IPI, RTC ...)
34 *
45 * Copyright (C) 2014-15 Synopsys, Inc. (www.synopsys.com)
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2 as
8
- * published by the Free Software Foundation.
96 */
107
118 #ifndef __SOC_ARC_MCIP_H
....@@ -49,7 +46,9 @@
4946 #define CMD_IDU_ENABLE 0x71
5047 #define CMD_IDU_DISABLE 0x72
5148 #define CMD_IDU_SET_MODE 0x74
49
+#define CMD_IDU_READ_MODE 0x75
5250 #define CMD_IDU_SET_DEST 0x76
51
+#define CMD_IDU_ACK_CIRQ 0x79
5352 #define CMD_IDU_SET_MASK 0x7C
5453
5554 #define IDU_M_TRIG_LEVEL 0x0
....@@ -122,4 +121,13 @@
122121 __mcip_cmd(cmd, param);
123122 }
124123
124
+/*
125
+ * Read MCIP register
126
+ */
127
+static inline unsigned int __mcip_cmd_read(unsigned int cmd, unsigned int param)
128
+{
129
+ __mcip_cmd(cmd, param);
130
+ return read_aux_reg(ARC_REG_MCIP_READBACK);
131
+}
132
+
125133 #endif