Menu Toggle
v2.0.0-develop
psm.h
1
// THIS HEADER FILE IS AUTOMATICALLY GENERATED -- DO NOT EDIT
2
8
#ifndef _HARDWARE_STRUCTS_PSM_H
9
#define _HARDWARE_STRUCTS_PSM_H
10
11
#include "
hardware/address_mapped.h
"
12
#include "hardware/regs/psm.h"
13
14
// Reference to datasheet: https://datasheets.raspberrypi.com/rp2350/rp2350-datasheet.pdf#tab-registerlist_psm
15
//
16
// The _REG_ macro is intended to help make the register navigable in your IDE (for example, using the "Go to Definition" feature)
17
// _REG_(x) will link to the corresponding register in hardware/regs/psm.h.
18
//
19
// Bit-field descriptions are of the form:
20
// BITMASK [BITRANGE] FIELDNAME (RESETVALUE) DESCRIPTION
21
22
typedef
struct
{
23
_REG_(PSM_FRCE_ON_OFFSET)
// PSM_FRCE_ON
24
// Force block out of reset (i
25
// 0x01000000 [24] PROC1 (0)
26
// 0x00800000 [23] PROC0 (0)
27
// 0x00400000 [22] ACCESSCTRL (0)
28
// 0x00200000 [21] SIOB (0)
29
// 0x00100000 [20] XIP (0)
30
// 0x00080000 [19] SRAM9 (0)
31
// 0x00040000 [18] SRAM8 (0)
32
// 0x00020000 [17] SRAM7 (0)
33
// 0x00010000 [16] SRAM6 (0)
34
// 0x00008000 [15] SRAM5 (0)
35
// 0x00004000 [14] SRAM4 (0)
36
// 0x00002000 [13] SRAM3 (0)
37
// 0x00001000 [12] SRAM2 (0)
38
// 0x00000800 [11] SRAM1 (0)
39
// 0x00000400 [10] SRAM0 (0)
40
// 0x00000200 [9] BOOTRAM (0)
41
// 0x00000100 [8] ROM (0)
42
// 0x00000080 [7] BUSFABRIC (0)
43
// 0x00000040 [6] PSM_READY (0)
44
// 0x00000020 [5] CLOCKS (0)
45
// 0x00000010 [4] RESETS (0)
46
// 0x00000008 [3] XOSC (0)
47
// 0x00000004 [2] ROSC (0)
48
// 0x00000002 [1] OTP (0)
49
// 0x00000001 [0] PROC_COLD (0)
50
io_rw_32 frce_on;
51
52
_REG_(PSM_FRCE_OFF_OFFSET)
// PSM_FRCE_OFF
53
// Force into reset (i
54
// 0x01000000 [24] PROC1 (0)
55
// 0x00800000 [23] PROC0 (0)
56
// 0x00400000 [22] ACCESSCTRL (0)
57
// 0x00200000 [21] SIOB (0)
58
// 0x00100000 [20] XIP (0)
59
// 0x00080000 [19] SRAM9 (0)
60
// 0x00040000 [18] SRAM8 (0)
61
// 0x00020000 [17] SRAM7 (0)
62
// 0x00010000 [16] SRAM6 (0)
63
// 0x00008000 [15] SRAM5 (0)
64
// 0x00004000 [14] SRAM4 (0)
65
// 0x00002000 [13] SRAM3 (0)
66
// 0x00001000 [12] SRAM2 (0)
67
// 0x00000800 [11] SRAM1 (0)
68
// 0x00000400 [10] SRAM0 (0)
69
// 0x00000200 [9] BOOTRAM (0)
70
// 0x00000100 [8] ROM (0)
71
// 0x00000080 [7] BUSFABRIC (0)
72
// 0x00000040 [6] PSM_READY (0)
73
// 0x00000020 [5] CLOCKS (0)
74
// 0x00000010 [4] RESETS (0)
75
// 0x00000008 [3] XOSC (0)
76
// 0x00000004 [2] ROSC (0)
77
// 0x00000002 [1] OTP (0)
78
// 0x00000001 [0] PROC_COLD (0)
79
io_rw_32 frce_off;
80
81
_REG_(PSM_WDSEL_OFFSET)
// PSM_WDSEL
82
// Set to 1 if the watchdog should reset this
83
// 0x01000000 [24] PROC1 (0)
84
// 0x00800000 [23] PROC0 (0)
85
// 0x00400000 [22] ACCESSCTRL (0)
86
// 0x00200000 [21] SIOB (0)
87
// 0x00100000 [20] XIP (0)
88
// 0x00080000 [19] SRAM9 (0)
89
// 0x00040000 [18] SRAM8 (0)
90
// 0x00020000 [17] SRAM7 (0)
91
// 0x00010000 [16] SRAM6 (0)
92
// 0x00008000 [15] SRAM5 (0)
93
// 0x00004000 [14] SRAM4 (0)
94
// 0x00002000 [13] SRAM3 (0)
95
// 0x00001000 [12] SRAM2 (0)
96
// 0x00000800 [11] SRAM1 (0)
97
// 0x00000400 [10] SRAM0 (0)
98
// 0x00000200 [9] BOOTRAM (0)
99
// 0x00000100 [8] ROM (0)
100
// 0x00000080 [7] BUSFABRIC (0)
101
// 0x00000040 [6] PSM_READY (0)
102
// 0x00000020 [5] CLOCKS (0)
103
// 0x00000010 [4] RESETS (0)
104
// 0x00000008 [3] XOSC (0)
105
// 0x00000004 [2] ROSC (0)
106
// 0x00000002 [1] OTP (0)
107
// 0x00000001 [0] PROC_COLD (0)
108
io_rw_32 wdsel;
109
110
_REG_(PSM_DONE_OFFSET)
// PSM_DONE
111
// Is the subsystem ready?
112
// 0x01000000 [24] PROC1 (0)
113
// 0x00800000 [23] PROC0 (0)
114
// 0x00400000 [22] ACCESSCTRL (0)
115
// 0x00200000 [21] SIOB (0)
116
// 0x00100000 [20] XIP (0)
117
// 0x00080000 [19] SRAM9 (0)
118
// 0x00040000 [18] SRAM8 (0)
119
// 0x00020000 [17] SRAM7 (0)
120
// 0x00010000 [16] SRAM6 (0)
121
// 0x00008000 [15] SRAM5 (0)
122
// 0x00004000 [14] SRAM4 (0)
123
// 0x00002000 [13] SRAM3 (0)
124
// 0x00001000 [12] SRAM2 (0)
125
// 0x00000800 [11] SRAM1 (0)
126
// 0x00000400 [10] SRAM0 (0)
127
// 0x00000200 [9] BOOTRAM (0)
128
// 0x00000100 [8] ROM (0)
129
// 0x00000080 [7] BUSFABRIC (0)
130
// 0x00000040 [6] PSM_READY (0)
131
// 0x00000020 [5] CLOCKS (0)
132
// 0x00000010 [4] RESETS (0)
133
// 0x00000008 [3] XOSC (0)
134
// 0x00000004 [2] ROSC (0)
135
// 0x00000002 [1] OTP (0)
136
// 0x00000001 [0] PROC_COLD (0)
137
io_ro_32 done;
138
139
}
psm_hw_t
;
140
141
#define psm_hw ((psm_hw_t *)PSM_BASE)
142
static_assert
(
sizeof
(
psm_hw_t
) == 0x0010,
""
);
143
144
#endif
// _HARDWARE_STRUCTS_PSM_H
145
address_mapped.h
psm_hw_t
Definition:
psm.h:22