coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
flow.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#ifndef _TEGRA124_FLOW_H_
4
#define _TEGRA124_FLOW_H_
5
6
struct
flow_ctlr
{
7
u32
halt_cpu_events
;
/* offset 0x00 */
8
u32
halt_cop_events
;
/* offset 0x04 */
9
u32
cpu_csr
;
/* offset 0x08 */
10
u32
cop_csr
;
/* offset 0x0c */
11
u32
xrq_events
;
/* offset 0x10 */
12
u32
halt_cpu1_events
;
/* offset 0x14 */
13
u32
cpu1_csr
;
/* offset 0x18 */
14
u32
halt_cpu2_events
;
/* offset 0x1c */
15
u32
cpu2_csr
;
/* offset 0x20 */
16
u32
halt_cpu3_events
;
/* offset 0x24 */
17
u32
cpu3_csr
;
/* offset 0x28 */
18
u32
cluster_control
;
/* offset 0x2c */
19
u32
halt_cop1_events
;
/* offset 0x30 */
20
u32
halt_cop1_csr
;
/* offset 0x34 */
21
u32
cpu_pwr_csr
;
/* offset 0x38 */
22
u32
mpid
;
/* offset 0x3c */
23
u32
ram_repair
;
/* offset 0x40 */
24
u32
flow_dbg_sel
;
/* offset 0x44 */
25
u32
flow_dbg_cnt0
;
/* offset 0x48 */
26
u32
flow_dbg_cnt1
;
/* offset 0x4c */
27
u32
flow_dbg_qual
;
/* offset 0x50 */
28
u32
flow_ctlr_spare
;
/* offset 0x54 */
29
u32
ram_repair_cluster1
;
/* offset 0x58 */
30
};
31
check_member
(
flow_ctlr
, ram_repair_cluster1, 0x58);
32
33
enum
{
34
FLOW_MODE_SHIFT
= 29,
35
FLOW_MODE_MASK
= 0x7 <<
FLOW_MODE_SHIFT
,
36
37
FLOW_MODE_NONE
= 0 <<
FLOW_MODE_SHIFT
,
38
FLOW_MODE_RUN_AND_INT
= 1 <<
FLOW_MODE_SHIFT
,
39
FLOW_MODE_WAITEVENT
= 2 <<
FLOW_MODE_SHIFT
,
40
FLOW_MODE_WAITEVENT_AND_INT
= 3 <<
FLOW_MODE_SHIFT
,
41
FLOW_MODE_STOP_UNTIL_IRQ
= 4 <<
FLOW_MODE_SHIFT
,
42
FLOW_MODE_STOP_UNTIL_IRQ_AND_INT
= 5 <<
FLOW_MODE_SHIFT
,
43
FLOW_MODE_STOP_UNTIL_EVENT_AND_IRQ
= 6 <<
FLOW_MODE_SHIFT
,
44
};
45
46
/* HALT_COP_EVENTS_0, 0x04 */
47
enum
{
48
FLOW_EVENT_GIC_FIQ
= 1 << 8,
49
FLOW_EVENT_GIC_IRQ
= 1 << 9,
50
FLOW_EVENT_LIC_FIQ
= 1 << 10,
51
FLOW_EVENT_LIC_IRQ
= 1 << 11,
52
FLOW_EVENT_IBF
= 1 << 12,
53
FLOW_EVENT_IBE
= 1 << 13,
54
FLOW_EVENT_OBF
= 1 << 14,
55
FLOW_EVENT_OBE
= 1 << 15,
56
FLOW_EVENT_XRQ_A
= 1 << 16,
57
FLOW_EVENT_XRQ_B
= 1 << 17,
58
FLOW_EVENT_XRQ_C
= 1 << 18,
59
FLOW_EVENT_XRQ_D
= 1 << 19,
60
FLOW_EVENT_SMP30
= 1 << 20,
61
FLOW_EVENT_SMP31
= 1 << 21,
62
FLOW_EVENT_X_RDY
= 1 << 22,
63
FLOW_EVENT_SEC
= 1 << 23,
64
FLOW_EVENT_MSEC
= 1 << 24,
65
FLOW_EVENT_USEC
= 1 << 25,
66
FLOW_EVENT_X32K
= 1 << 26,
67
FLOW_EVENT_SCLK
= 1 << 27,
68
FLOW_EVENT_JTAG
= 1 << 28
69
};
70
71
/* RAM_REPAIR, 0x40, 0x58 */
72
enum
{
73
RAM_REPAIR_REQ
= 0x1 << 0,
74
RAM_REPAIR_STS
= 0x1 << 1,
75
};
76
77
#endif
/* _TEGRA124_FLOW_H_ */
u32
uint32_t u32
Definition:
stdint.h:51
flow_ctlr
Definition:
flow.h:6
flow_ctlr::cpu_pwr_csr
u32 cpu_pwr_csr
Definition:
flow.h:21
flow_ctlr::halt_cpu_events
u32 halt_cpu_events
Definition:
flow.h:7
flow_ctlr::cluster_control
u32 cluster_control
Definition:
flow.h:18
flow_ctlr::mpid
u32 mpid
Definition:
flow.h:22
flow_ctlr::ram_repair_cluster1
u32 ram_repair_cluster1
Definition:
flow.h:29
flow_ctlr::cpu3_csr
u32 cpu3_csr
Definition:
flow.h:17
flow_ctlr::halt_cop1_csr
u32 halt_cop1_csr
Definition:
flow.h:20
flow_ctlr::flow_dbg_qual
u32 flow_dbg_qual
Definition:
flow.h:27
flow_ctlr::flow_dbg_sel
u32 flow_dbg_sel
Definition:
flow.h:24
flow_ctlr::cpu1_csr
u32 cpu1_csr
Definition:
flow.h:13
flow_ctlr::xrq_events
u32 xrq_events
Definition:
flow.h:11
flow_ctlr::cpu_csr
u32 cpu_csr
Definition:
flow.h:9
flow_ctlr::flow_dbg_cnt0
u32 flow_dbg_cnt0
Definition:
flow.h:25
flow_ctlr::flow_ctlr_spare
u32 flow_ctlr_spare
Definition:
flow.h:28
flow_ctlr::ram_repair
u32 ram_repair
Definition:
flow.h:23
flow_ctlr::halt_cop_events
u32 halt_cop_events
Definition:
flow.h:8
flow_ctlr::halt_cpu1_events
u32 halt_cpu1_events
Definition:
flow.h:12
flow_ctlr::halt_cpu3_events
u32 halt_cpu3_events
Definition:
flow.h:16
flow_ctlr::flow_dbg_cnt1
u32 flow_dbg_cnt1
Definition:
flow.h:26
flow_ctlr::halt_cop1_events
u32 halt_cop1_events
Definition:
flow.h:19
flow_ctlr::halt_cpu2_events
u32 halt_cpu2_events
Definition:
flow.h:14
flow_ctlr::cop_csr
u32 cop_csr
Definition:
flow.h:10
flow_ctlr::cpu2_csr
u32 cpu2_csr
Definition:
flow.h:15
FLOW_EVENT_SMP30
@ FLOW_EVENT_SMP30
Definition:
flow.h:60
FLOW_EVENT_SEC
@ FLOW_EVENT_SEC
Definition:
flow.h:63
FLOW_EVENT_XRQ_B
@ FLOW_EVENT_XRQ_B
Definition:
flow.h:57
FLOW_EVENT_LIC_IRQ
@ FLOW_EVENT_LIC_IRQ
Definition:
flow.h:51
FLOW_EVENT_IBE
@ FLOW_EVENT_IBE
Definition:
flow.h:53
FLOW_EVENT_X32K
@ FLOW_EVENT_X32K
Definition:
flow.h:66
FLOW_EVENT_OBF
@ FLOW_EVENT_OBF
Definition:
flow.h:54
FLOW_EVENT_X_RDY
@ FLOW_EVENT_X_RDY
Definition:
flow.h:62
FLOW_EVENT_USEC
@ FLOW_EVENT_USEC
Definition:
flow.h:65
FLOW_EVENT_SMP31
@ FLOW_EVENT_SMP31
Definition:
flow.h:61
FLOW_EVENT_XRQ_C
@ FLOW_EVENT_XRQ_C
Definition:
flow.h:58
FLOW_EVENT_XRQ_A
@ FLOW_EVENT_XRQ_A
Definition:
flow.h:56
FLOW_EVENT_GIC_IRQ
@ FLOW_EVENT_GIC_IRQ
Definition:
flow.h:49
FLOW_EVENT_IBF
@ FLOW_EVENT_IBF
Definition:
flow.h:52
FLOW_EVENT_LIC_FIQ
@ FLOW_EVENT_LIC_FIQ
Definition:
flow.h:50
FLOW_EVENT_JTAG
@ FLOW_EVENT_JTAG
Definition:
flow.h:68
FLOW_EVENT_MSEC
@ FLOW_EVENT_MSEC
Definition:
flow.h:64
FLOW_EVENT_XRQ_D
@ FLOW_EVENT_XRQ_D
Definition:
flow.h:59
FLOW_EVENT_OBE
@ FLOW_EVENT_OBE
Definition:
flow.h:55
FLOW_EVENT_GIC_FIQ
@ FLOW_EVENT_GIC_FIQ
Definition:
flow.h:48
FLOW_EVENT_SCLK
@ FLOW_EVENT_SCLK
Definition:
flow.h:67
RAM_REPAIR_REQ
@ RAM_REPAIR_REQ
Definition:
flow.h:73
RAM_REPAIR_STS
@ RAM_REPAIR_STS
Definition:
flow.h:74
check_member
check_member(flow_ctlr, ram_repair_cluster1, 0x58)
FLOW_MODE_NONE
@ FLOW_MODE_NONE
Definition:
flow.h:37
FLOW_MODE_MASK
@ FLOW_MODE_MASK
Definition:
flow.h:35
FLOW_MODE_STOP_UNTIL_IRQ_AND_INT
@ FLOW_MODE_STOP_UNTIL_IRQ_AND_INT
Definition:
flow.h:42
FLOW_MODE_STOP_UNTIL_EVENT_AND_IRQ
@ FLOW_MODE_STOP_UNTIL_EVENT_AND_IRQ
Definition:
flow.h:43
FLOW_MODE_WAITEVENT
@ FLOW_MODE_WAITEVENT
Definition:
flow.h:39
FLOW_MODE_RUN_AND_INT
@ FLOW_MODE_RUN_AND_INT
Definition:
flow.h:38
FLOW_MODE_SHIFT
@ FLOW_MODE_SHIFT
Definition:
flow.h:34
FLOW_MODE_STOP_UNTIL_IRQ
@ FLOW_MODE_STOP_UNTIL_IRQ
Definition:
flow.h:41
FLOW_MODE_WAITEVENT_AND_INT
@ FLOW_MODE_WAITEVENT_AND_INT
Definition:
flow.h:40
src
soc
nvidia
tegra124
include
soc
flow.h
Generated by
1.9.1