| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * ARConnect IP Support (Multi core enabler: Cross core IPI, RTC ...) |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * 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. |
|---|
| 9 | 6 | */ |
|---|
| 10 | 7 | |
|---|
| 11 | 8 | #ifndef __SOC_ARC_MCIP_H |
|---|
| .. | .. |
|---|
| 49 | 46 | #define CMD_IDU_ENABLE 0x71 |
|---|
| 50 | 47 | #define CMD_IDU_DISABLE 0x72 |
|---|
| 51 | 48 | #define CMD_IDU_SET_MODE 0x74 |
|---|
| 49 | +#define CMD_IDU_READ_MODE 0x75 |
|---|
| 52 | 50 | #define CMD_IDU_SET_DEST 0x76 |
|---|
| 51 | +#define CMD_IDU_ACK_CIRQ 0x79 |
|---|
| 53 | 52 | #define CMD_IDU_SET_MASK 0x7C |
|---|
| 54 | 53 | |
|---|
| 55 | 54 | #define IDU_M_TRIG_LEVEL 0x0 |
|---|
| .. | .. |
|---|
| 122 | 121 | __mcip_cmd(cmd, param); |
|---|
| 123 | 122 | } |
|---|
| 124 | 123 | |
|---|
| 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 | + |
|---|
| 125 | 133 | #endif |
|---|