summaryrefslogtreecommitdiffstats
path: root/include/dt-bindings/soc/renesas,r8a78000-mfis.h
blob: 147a8aefc64384349cff6ec8eb90faa94507341d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
#ifndef _DT_BINDINGS_SOC_RENESAS_R8A78000_MFIS_H
#define _DT_BINDINGS_SOC_RENESAS_R8A78000_MFIS_H

/*
 * Constants for the second mbox-cell of the Renesas MFIS IP core. To be treated
 * as bit flags which can be ORed.
 */

/*
 * MFIS HW design before r8a78001 requires a channel to be marked as either
 * TX or RX.
 */
#define MFIS_CHANNEL_TX (0 << 0)
#define MFIS_CHANNEL_RX (1 << 0)

/*
 * MFIS variants before r8a78001 work with pairs of IICR and EICR registers.
 * Usually, it is specified in the datasheets which of the two a specific core
 * should use. Then, it does not need extra description in DT. For plain MFIS
 * of r8a78000, this is selectable, though. According to the system design and
 * the firmware in use, these channels need to be marked. This is not needed
 * with other versions of the MFIS, not even with MFIS-SCP of r8a78000.
 */
#define MFIS_CHANNEL_IICR (0 << 1)
#define MFIS_CHANNEL_EICR (1 << 1)

#endif /* _DT_BINDINGS_SOC_RENESAS_R8A78000_MFIS_H */