14#ifndef ZEPHYR_INCLUDE_ARCH_ARC_V2_ARC_CONNECT_H_
15#define ZEPHYR_INCLUDE_ARCH_ARC_V2_ARC_CONNECT_H_
25#define _ARC_V2_CONNECT_BCR 0x0d0
26#define _ARC_V2_CONNECT_IDU_BCR 0x0d5
27#define _ARC_V2_CONNECT_GFRC_BCR 0x0d6
28#define _ARC_V2_CONNECT_CMD 0x600
29#define _ARC_V2_CONNECT_WDATA 0x601
30#define _ARC_V2_CONNECT_READBACK 0x602
33#define ARC_CONNECT_CMD_CHECK_CORE_ID 0x0
35#define ARC_CONNECT_CMD_INTRPT_GENERATE_IRQ 0x1
36#define ARC_CONNECT_CMD_INTRPT_GENERATE_ACK 0x2
37#define ARC_CONNECT_CMD_INTRPT_READ_STATUS 0x3
38#define ARC_CONNECT_CMD_INTRPT_CHECK_SOURCE 0x4
40#define ARC_CONNECT_CMD_SEMA_CLAIM_AND_READ 0x11
41#define ARC_CONNECT_CMD_SEMA_RELEASE 0x12
42#define ARC_CONNECT_CMD_SEMA_FORCE_RELEASE 0x13
44#define ARC_CONNECT_CMD_MSG_SRAM_SET_ADDR 0x21
45#define ARC_CONNECT_CMD_MSG_SRAM_READ_ADDR 0x22
46#define ARC_CONNECT_CMD_MSG_SRAM_SET_ADDR_OFFSET 0x23
47#define ARC_CONNECT_CMD_MSG_SRAM_READ_ADDR_OFFSET 0x24
48#define ARC_CONNECT_CMD_MSG_SRAM_WRITE 0x25
49#define ARC_CONNECT_CMD_MSG_SRAM_WRITE_INC 0x26
50#define ARC_CONNECT_CMD_MSG_SRAM_WRITE_IMM 0x27
51#define ARC_CONNECT_CMD_MSG_SRAM_READ 0x28
52#define ARC_CONNECT_CMD_MSG_SRAM_READ_INC 0x29
53#define ARC_CONNECT_CMD_MSG_SRAM_READ_IMM 0x2a
54#define ARC_CONNECT_CMD_MSG_SRAM_SET_ECC_CTRL 0x2b
55#define ARC_CONNECT_CMD_MSG_SRAM_READ_ECC_CTRL 0x2c
57#define ARC_CONNECT_CMD_DEBUG_RESET 0x31
58#define ARC_CONNECT_CMD_DEBUG_HALT 0x32
59#define ARC_CONNECT_CMD_DEBUG_RUN 0x33
60#define ARC_CONNECT_CMD_DEBUG_SET_MASK 0x34
61#define ARC_CONNECT_CMD_DEBUG_READ_MASK 0x35
62#define ARC_CONNECT_CMD_DEBUG_SET_SELECT 0x36
63#define ARC_CONNECT_CMD_DEBUG_READ_SELECT 0x37
64#define ARC_CONNECT_CMD_DEBUG_READ_EN 0x38
65#define ARC_CONNECT_CMD_DEBUG_READ_CMD 0x39
66#define ARC_CONNECT_CMD_DEBUG_READ_CORE 0x3a
68#define ARC_CONNECT_CMD_DEBUG_MASK_SH 0x08
69#define ARC_CONNECT_CMD_DEBUG_MASK_BH 0x04
70#define ARC_CONNECT_CMD_DEBUG_MASK_AH 0x02
71#define ARC_CONNECT_CMD_DEBUG_MASK_H 0x01
73#define ARC_CONNECT_CMD_GFRC_CLEAR 0x41
74#define ARC_CONNECT_CMD_GFRC_READ_LO 0x42
75#define ARC_CONNECT_CMD_GFRC_READ_HI 0x43
76#define ARC_CONNECT_CMD_GFRC_ENABLE 0x44
77#define ARC_CONNECT_CMD_GFRC_DISABLE 0x45
78#define ARC_CONNECT_CMD_GFRC_READ_DISABLE 0x46
79#define ARC_CONNECT_CMD_GFRC_SET_CORE 0x47
80#define ARC_CONNECT_CMD_GFRC_READ_CORE 0x48
81#define ARC_CONNECT_CMD_GFRC_READ_HALT 0x49
83#define ARC_CONNECT_CMD_PDM_SET_PM 0x81
84#define ARC_CONNECT_CMD_PDM_READ_PSTATUS 0x82
86#define ARC_CONNECT_CMD_PMU_SET_PUCNT 0x51
87#define ARC_CONNECT_CMD_PMU_READ_PUCNT 0x52
88#define ARC_CONNECT_CMD_PMU_SET_RSTCNT 0x53
89#define ARC_CONNECT_CMD_PMU_READ_RSTCNT 0x54
90#define ARC_CONNECT_CMD_PMU_SET_PDCNT 0x55
91#define ARC_CONNECT_CMD_PMU_READ_PDCNT 0x56
93#define ARC_CONNECT_CMD_IDU_ENABLE 0x71
94#define ARC_CONNECT_CMD_IDU_DISABLE 0x72
95#define ARC_CONNECT_CMD_IDU_READ_ENABLE 0x73
96#define ARC_CONNECT_CMD_IDU_SET_MODE 0x74
97#define ARC_CONNECT_CMD_IDU_READ_MODE 0x75
98#define ARC_CONNECT_CMD_IDU_SET_DEST 0x76
99#define ARC_CONNECT_CMD_IDU_READ_DEST 0x77
100#define ARC_CONNECT_CMD_IDU_GEN_CIRQ 0x78
101#define ARC_CONNECT_CMD_IDU_ACK_CIRQ 0x79
102#define ARC_CONNECT_CMD_IDU_CHECK_STATUS 0x7a
103#define ARC_CONNECT_CMD_IDU_CHECK_SOURCE 0x7b
104#define ARC_CONNECT_CMD_IDU_SET_MASK 0x7c
105#define ARC_CONNECT_CMD_IDU_READ_MASK 0x7d
106#define ARC_CONNECT_CMD_IDU_CHECK_FIRST 0x7e
109#define ARC_CONNECT_IDU_IRQ_START 24
111#define ARC_CONNECT_INTRPT_TRIGGER_LEVEL 0
112#define ARC_CONNECT_INTRPT_TRIGGER_EDGE 1
115#define ARC_CONNECT_DISTRI_MODE_ROUND_ROBIN 0
116#define ARC_CONNECT_DISTRI_MODE_FIRST_ACK 1
117#define ARC_CONNECT_DISTRI_ALL_DEST 2
122#ifdef CONFIG_BIG_ENDIAN
135#ifdef CONFIG_BIG_ENDIAN
156#ifdef CONFIG_BIG_ENDIAN
174 z_arc_v2_aux_reg_write(_ARC_V2_CONNECT_CMD, regval.
val);
180 z_arc_v2_aux_reg_write(_ARC_V2_CONNECT_WDATA,
data);
184static inline uint32_t z_arc_connect_cmd_readback(
void)
186 return z_arc_v2_aux_reg_read(_ARC_V2_CONNECT_READBACK);
191extern void z_arc_connect_ici_generate(
uint32_t core_id);
192extern void z_arc_connect_ici_ack(
uint32_t core_id);
194extern uint32_t z_arc_connect_ici_check_src(
void);
195extern void z_arc_connect_ici_clear(
void);
198extern void z_arc_connect_debug_reset(
uint32_t core_mask);
199extern void z_arc_connect_debug_halt(
uint32_t core_mask);
200extern void z_arc_connect_debug_run(
uint32_t core_mask);
203extern void z_arc_connect_debug_select_set(
uint32_t core_mask);
204extern uint32_t z_arc_connect_debug_select_read(
void);
205extern uint32_t z_arc_connect_debug_en_read(
void);
206extern uint32_t z_arc_connect_debug_cmd_read(
void);
207extern uint32_t z_arc_connect_debug_core_read(
void);
210extern void z_arc_connect_gfrc_clear(
void);
211extern uint64_t z_arc_connect_gfrc_read(
void);
212extern void z_arc_connect_gfrc_enable(
void);
213extern void z_arc_connect_gfrc_disable(
void);
214extern void z_arc_connect_gfrc_core_set(
uint32_t core_mask);
215extern uint32_t z_arc_connect_gfrc_halt_read(
void);
216extern uint32_t z_arc_connect_gfrc_core_read(
void);
219extern void z_arc_connect_idu_enable(
void);
220extern void z_arc_connect_idu_disable(
void);
221extern uint32_t z_arc_connect_idu_read_enable(
void);
222extern void z_arc_connect_idu_set_mode(
uint32_t irq_num,
225extern void z_arc_connect_idu_set_dest(
uint32_t irq_num,
uint32_t core_mask);
227extern void z_arc_connect_idu_gen_cirq(
uint32_t irq_num);
228extern void z_arc_connect_idu_ack_cirq(
uint32_t irq_num);
ARCv2 auxiliary registers definitions.
static void cmd(uint32_t command)
Execute a display list command by co-processor engine.
Definition ft8xx_reference_api.h:153
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT64_TYPE__ uint64_t
Definition stdint.h:91
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
Definition arc_connect.h:132
uint32_t pw
Definition arc_connect.h:144
uint32_t val
Definition arc_connect.h:149
uint32_t idu
Definition arc_connect.h:145
uint32_t gfrc
Definition arc_connect.h:144
uint32_t num_cores
Definition arc_connect.h:145
uint32_t slv
Definition arc_connect.h:143
uint32_t ipi
Definition arc_connect.h:143
uint32_t pw_dom
Definition arc_connect.h:146
uint32_t pad2
Definition arc_connect.h:145
uint32_t pad
Definition arc_connect.h:144
uint32_t msg
Definition arc_connect.h:143
uint32_t pad4
Definition arc_connect.h:146
uint32_t pad3
Definition arc_connect.h:146
uint32_t ver
Definition arc_connect.h:142
uint32_t sem
Definition arc_connect.h:143
uint32_t dbg
Definition arc_connect.h:144
Definition arc_connect.h:119
uint32_t param
Definition arc_connect.h:125
uint32_t cmd
Definition arc_connect.h:125
uint32_t val
Definition arc_connect.h:128
uint32_t pad
Definition arc_connect.h:125
Definition arc_connect.h:153
uint32_t pad
Definition arc_connect.h:159
uint32_t val
Definition arc_connect.h:162
uint32_t cirqnum
Definition arc_connect.h:159
uint32_t ver
Definition arc_connect.h:159
static fdata_t data[2]
Definition test_fifo_contexts.c:15