RTEMS  5.1
component_pmc.h
1 /* ---------------------------------------------------------------------------- */
2 /* Atmel Microcontroller Software Support */
3 /* SAM Software Package License */
4 /* ---------------------------------------------------------------------------- */
5 /* Copyright (c) 2015, Atmel Corporation */
6 /* */
7 /* All rights reserved. */
8 /* */
9 /* Redistribution and use in source and binary forms, with or without */
10 /* modification, are permitted provided that the following condition is met: */
11 /* */
12 /* - Redistributions of source code must retain the above copyright notice, */
13 /* this list of conditions and the disclaimer below. */
14 /* */
15 /* Atmel's name may not be used to endorse or promote products derived from */
16 /* this software without specific prior written permission. */
17 /* */
18 /* DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR */
19 /* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */
20 /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE */
21 /* DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, */
22 /* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT */
23 /* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, */
24 /* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF */
25 /* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING */
26 /* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, */
27 /* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
28 /* ---------------------------------------------------------------------------- */
29 
30 #ifndef _SAMS70_PMC_COMPONENT_
31 #define _SAMS70_PMC_COMPONENT_
32 
33 /* ============================================================================= */
35 /* ============================================================================= */
38 
39 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
40 
41 typedef struct {
42  __O uint32_t PMC_SCER;
43  __O uint32_t PMC_SCDR;
44  __I uint32_t PMC_SCSR;
45  __I uint32_t Reserved1[1];
46  __O uint32_t PMC_PCER0;
47  __O uint32_t PMC_PCDR0;
48  __I uint32_t PMC_PCSR0;
49  __IO uint32_t CKGR_UCKR;
50  __IO uint32_t CKGR_MOR;
51  __IO uint32_t CKGR_MCFR;
52  __IO uint32_t CKGR_PLLAR;
53  __I uint32_t Reserved2[1];
54  __IO uint32_t PMC_MCKR;
55  __I uint32_t Reserved3[1];
56  __IO uint32_t PMC_USB;
57  __I uint32_t Reserved4[1];
58  __IO uint32_t PMC_PCK0;
59  __IO uint32_t PMC_PCK1;
60  __IO uint32_t PMC_PCK2;
61  __IO uint32_t PMC_PCK3;
62  __IO uint32_t PMC_PCK4;
63  __I uint32_t Reserved5[1];
64  __IO uint32_t PMC_PCK6;
65  __I uint32_t Reserved6[1];
66  __O uint32_t PMC_IER;
67  __O uint32_t PMC_IDR;
68  __I uint32_t PMC_SR;
69  __I uint32_t PMC_IMR;
70  __IO uint32_t PMC_FSMR;
71  __IO uint32_t PMC_FSPR;
72  __O uint32_t PMC_FOCR;
73  __I uint32_t Reserved7[26];
74  __IO uint32_t PMC_WPMR;
75  __I uint32_t PMC_WPSR;
76  __I uint32_t Reserved8[5];
77  __O uint32_t PMC_PCER1;
78  __O uint32_t PMC_PCDR1;
79  __I uint32_t PMC_PCSR1;
80  __IO uint32_t PMC_PCR;
81  __IO uint32_t PMC_OCR;
82  __O uint32_t PMC_SLPWK_ER0;
83  __O uint32_t PMC_SLPWK_DR0;
84  __I uint32_t PMC_SLPWK_SR0;
85  __I uint32_t PMC_SLPWK_ASR0;
86  __I uint32_t Reserved9[3];
87  __IO uint32_t PMC_PMMR;
88  __O uint32_t PMC_SLPWK_ER1;
89  __O uint32_t PMC_SLPWK_DR1;
90  __I uint32_t PMC_SLPWK_SR1;
91  __I uint32_t PMC_SLPWK_ASR1;
92  __I uint32_t PMC_SLPWK_AIPR;
93 } Pmc;
94 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
95 /* -------- PMC_SCER : (PMC Offset: 0x0000) System Clock Enable Register -------- */
96 #define PMC_SCER_USBCLK (0x1u << 5)
97 #define PMC_SCER_PCK0 (0x1u << 8)
98 #define PMC_SCER_PCK1 (0x1u << 9)
99 #define PMC_SCER_PCK2 (0x1u << 10)
100 #define PMC_SCER_PCK3 (0x1u << 11)
101 #define PMC_SCER_PCK4 (0x1u << 12)
102 #define PMC_SCER_PCK6 (0x1u << 14)
103 /* -------- PMC_SCDR : (PMC Offset: 0x0004) System Clock Disable Register -------- */
104 #define PMC_SCDR_USBCLK (0x1u << 5)
105 #define PMC_SCDR_PCK0 (0x1u << 8)
106 #define PMC_SCDR_PCK1 (0x1u << 9)
107 #define PMC_SCDR_PCK2 (0x1u << 10)
108 #define PMC_SCDR_PCK3 (0x1u << 11)
109 #define PMC_SCDR_PCK4 (0x1u << 12)
110 #define PMC_SCDR_PCK6 (0x1u << 14)
111 /* -------- PMC_SCSR : (PMC Offset: 0x0008) System Clock Status Register -------- */
112 #define PMC_SCSR_USBCLK (0x1u << 5)
113 #define PMC_SCSR_PCK0 (0x1u << 8)
114 #define PMC_SCSR_PCK1 (0x1u << 9)
115 #define PMC_SCSR_PCK2 (0x1u << 10)
116 #define PMC_SCSR_PCK3 (0x1u << 11)
117 #define PMC_SCSR_PCK4 (0x1u << 12)
118 #define PMC_SCSR_PCK6 (0x1u << 14)
119 /* -------- PMC_PCER0 : (PMC Offset: 0x0010) Peripheral Clock Enable Register 0 -------- */
120 #define PMC_PCER0_PID7 (0x1u << 7)
121 #define PMC_PCER0_PID8 (0x1u << 8)
122 #define PMC_PCER0_PID9 (0x1u << 9)
123 #define PMC_PCER0_PID10 (0x1u << 10)
124 #define PMC_PCER0_PID11 (0x1u << 11)
125 #define PMC_PCER0_PID12 (0x1u << 12)
126 #define PMC_PCER0_PID13 (0x1u << 13)
127 #define PMC_PCER0_PID14 (0x1u << 14)
128 #define PMC_PCER0_PID15 (0x1u << 15)
129 #define PMC_PCER0_PID16 (0x1u << 16)
130 #define PMC_PCER0_PID17 (0x1u << 17)
131 #define PMC_PCER0_PID18 (0x1u << 18)
132 #define PMC_PCER0_PID19 (0x1u << 19)
133 #define PMC_PCER0_PID20 (0x1u << 20)
134 #define PMC_PCER0_PID21 (0x1u << 21)
135 #define PMC_PCER0_PID22 (0x1u << 22)
136 #define PMC_PCER0_PID23 (0x1u << 23)
137 #define PMC_PCER0_PID24 (0x1u << 24)
138 #define PMC_PCER0_PID25 (0x1u << 25)
139 #define PMC_PCER0_PID26 (0x1u << 26)
140 #define PMC_PCER0_PID27 (0x1u << 27)
141 #define PMC_PCER0_PID28 (0x1u << 28)
142 #define PMC_PCER0_PID29 (0x1u << 29)
143 #define PMC_PCER0_PID30 (0x1u << 30)
144 #define PMC_PCER0_PID31 (0x1u << 31)
145 /* -------- PMC_PCDR0 : (PMC Offset: 0x0014) Peripheral Clock Disable Register 0 -------- */
146 #define PMC_PCDR0_PID7 (0x1u << 7)
147 #define PMC_PCDR0_PID8 (0x1u << 8)
148 #define PMC_PCDR0_PID9 (0x1u << 9)
149 #define PMC_PCDR0_PID10 (0x1u << 10)
150 #define PMC_PCDR0_PID11 (0x1u << 11)
151 #define PMC_PCDR0_PID12 (0x1u << 12)
152 #define PMC_PCDR0_PID13 (0x1u << 13)
153 #define PMC_PCDR0_PID14 (0x1u << 14)
154 #define PMC_PCDR0_PID15 (0x1u << 15)
155 #define PMC_PCDR0_PID16 (0x1u << 16)
156 #define PMC_PCDR0_PID17 (0x1u << 17)
157 #define PMC_PCDR0_PID18 (0x1u << 18)
158 #define PMC_PCDR0_PID19 (0x1u << 19)
159 #define PMC_PCDR0_PID20 (0x1u << 20)
160 #define PMC_PCDR0_PID21 (0x1u << 21)
161 #define PMC_PCDR0_PID22 (0x1u << 22)
162 #define PMC_PCDR0_PID23 (0x1u << 23)
163 #define PMC_PCDR0_PID24 (0x1u << 24)
164 #define PMC_PCDR0_PID25 (0x1u << 25)
165 #define PMC_PCDR0_PID26 (0x1u << 26)
166 #define PMC_PCDR0_PID27 (0x1u << 27)
167 #define PMC_PCDR0_PID28 (0x1u << 28)
168 #define PMC_PCDR0_PID29 (0x1u << 29)
169 #define PMC_PCDR0_PID30 (0x1u << 30)
170 #define PMC_PCDR0_PID31 (0x1u << 31)
171 /* -------- PMC_PCSR0 : (PMC Offset: 0x0018) Peripheral Clock Status Register 0 -------- */
172 #define PMC_PCSR0_PID7 (0x1u << 7)
173 #define PMC_PCSR0_PID8 (0x1u << 8)
174 #define PMC_PCSR0_PID9 (0x1u << 9)
175 #define PMC_PCSR0_PID10 (0x1u << 10)
176 #define PMC_PCSR0_PID11 (0x1u << 11)
177 #define PMC_PCSR0_PID12 (0x1u << 12)
178 #define PMC_PCSR0_PID13 (0x1u << 13)
179 #define PMC_PCSR0_PID14 (0x1u << 14)
180 #define PMC_PCSR0_PID15 (0x1u << 15)
181 #define PMC_PCSR0_PID16 (0x1u << 16)
182 #define PMC_PCSR0_PID17 (0x1u << 17)
183 #define PMC_PCSR0_PID18 (0x1u << 18)
184 #define PMC_PCSR0_PID19 (0x1u << 19)
185 #define PMC_PCSR0_PID20 (0x1u << 20)
186 #define PMC_PCSR0_PID21 (0x1u << 21)
187 #define PMC_PCSR0_PID22 (0x1u << 22)
188 #define PMC_PCSR0_PID23 (0x1u << 23)
189 #define PMC_PCSR0_PID24 (0x1u << 24)
190 #define PMC_PCSR0_PID25 (0x1u << 25)
191 #define PMC_PCSR0_PID26 (0x1u << 26)
192 #define PMC_PCSR0_PID27 (0x1u << 27)
193 #define PMC_PCSR0_PID28 (0x1u << 28)
194 #define PMC_PCSR0_PID29 (0x1u << 29)
195 #define PMC_PCSR0_PID30 (0x1u << 30)
196 #define PMC_PCSR0_PID31 (0x1u << 31)
197 /* -------- CKGR_UCKR : (PMC Offset: 0x001C) UTMI Clock Register -------- */
198 #define CKGR_UCKR_UPLLEN (0x1u << 16)
199 #define CKGR_UCKR_UPLLCOUNT_Pos 20
200 #define CKGR_UCKR_UPLLCOUNT_Msk (0xfu << CKGR_UCKR_UPLLCOUNT_Pos)
201 #define CKGR_UCKR_UPLLCOUNT(value) ((CKGR_UCKR_UPLLCOUNT_Msk & ((value) << CKGR_UCKR_UPLLCOUNT_Pos)))
202 /* -------- CKGR_MOR : (PMC Offset: 0x0020) Main Oscillator Register -------- */
203 #define CKGR_MOR_MOSCXTEN (0x1u << 0)
204 #define CKGR_MOR_MOSCXTBY (0x1u << 1)
205 #define CKGR_MOR_WAITMODE (0x1u << 2)
206 #define CKGR_MOR_MOSCRCEN (0x1u << 3)
207 #define CKGR_MOR_MOSCRCF_Pos 4
208 #define CKGR_MOR_MOSCRCF_Msk (0x7u << CKGR_MOR_MOSCRCF_Pos)
209 #define CKGR_MOR_MOSCRCF(value) ((CKGR_MOR_MOSCRCF_Msk & ((value) << CKGR_MOR_MOSCRCF_Pos)))
210 #define CKGR_MOR_MOSCRCF_4_MHz (0x0u << 4)
211 #define CKGR_MOR_MOSCRCF_8_MHz (0x1u << 4)
212 #define CKGR_MOR_MOSCRCF_12_MHz (0x2u << 4)
213 #define CKGR_MOR_MOSCXTST_Pos 8
214 #define CKGR_MOR_MOSCXTST_Msk (0xffu << CKGR_MOR_MOSCXTST_Pos)
215 #define CKGR_MOR_MOSCXTST(value) ((CKGR_MOR_MOSCXTST_Msk & ((value) << CKGR_MOR_MOSCXTST_Pos)))
216 #define CKGR_MOR_KEY_Pos 16
217 #define CKGR_MOR_KEY_Msk (0xffu << CKGR_MOR_KEY_Pos)
218 #define CKGR_MOR_KEY(value) ((CKGR_MOR_KEY_Msk & ((value) << CKGR_MOR_KEY_Pos)))
219 #define CKGR_MOR_KEY_PASSWD (0x37u << 16)
220 #define CKGR_MOR_MOSCSEL (0x1u << 24)
221 #define CKGR_MOR_CFDEN (0x1u << 25)
222 #define CKGR_MOR_XT32KFME (0x1u << 26)
223 /* -------- CKGR_MCFR : (PMC Offset: 0x0024) Main Clock Frequency Register -------- */
224 #define CKGR_MCFR_MAINF_Pos 0
225 #define CKGR_MCFR_MAINF_Msk (0xffffu << CKGR_MCFR_MAINF_Pos)
226 #define CKGR_MCFR_MAINF(value) ((CKGR_MCFR_MAINF_Msk & ((value) << CKGR_MCFR_MAINF_Pos)))
227 #define CKGR_MCFR_MAINFRDY (0x1u << 16)
228 #define CKGR_MCFR_RCMEAS (0x1u << 20)
229 #define CKGR_MCFR_CCSS (0x1u << 24)
230 /* -------- CKGR_PLLAR : (PMC Offset: 0x0028) PLLA Register -------- */
231 #define CKGR_PLLAR_DIVA_Pos 0
232 #define CKGR_PLLAR_DIVA_Msk (0xffu << CKGR_PLLAR_DIVA_Pos)
233 #define CKGR_PLLAR_DIVA(value) ((CKGR_PLLAR_DIVA_Msk & ((value) << CKGR_PLLAR_DIVA_Pos)))
234 #define CKGR_PLLAR_DIVA_0 (0x0u << 0)
235 #define CKGR_PLLAR_DIVA_BYPASS (0x1u << 0)
236 #define CKGR_PLLAR_PLLACOUNT_Pos 8
237 #define CKGR_PLLAR_PLLACOUNT_Msk (0x3fu << CKGR_PLLAR_PLLACOUNT_Pos)
238 #define CKGR_PLLAR_PLLACOUNT(value) ((CKGR_PLLAR_PLLACOUNT_Msk & ((value) << CKGR_PLLAR_PLLACOUNT_Pos)))
239 #define CKGR_PLLAR_MULA_Pos 16
240 #define CKGR_PLLAR_MULA_Msk (0x7ffu << CKGR_PLLAR_MULA_Pos)
241 #define CKGR_PLLAR_MULA(value) ((CKGR_PLLAR_MULA_Msk & ((value) << CKGR_PLLAR_MULA_Pos)))
242 #define CKGR_PLLAR_ONE (0x1u << 29)
243 /* -------- PMC_MCKR : (PMC Offset: 0x0030) Master Clock Register -------- */
244 #define PMC_MCKR_CSS_Pos 0
245 #define PMC_MCKR_CSS_Msk (0x3u << PMC_MCKR_CSS_Pos)
246 #define PMC_MCKR_CSS(value) ((PMC_MCKR_CSS_Msk & ((value) << PMC_MCKR_CSS_Pos)))
247 #define PMC_MCKR_CSS_SLOW_CLK (0x0u << 0)
248 #define PMC_MCKR_CSS_MAIN_CLK (0x1u << 0)
249 #define PMC_MCKR_CSS_PLLA_CLK (0x2u << 0)
250 #define PMC_MCKR_CSS_UPLL_CLK (0x3u << 0)
251 #define PMC_MCKR_PRES_Pos 4
252 #define PMC_MCKR_PRES_Msk (0x7u << PMC_MCKR_PRES_Pos)
253 #define PMC_MCKR_PRES(value) ((PMC_MCKR_PRES_Msk & ((value) << PMC_MCKR_PRES_Pos)))
254 #define PMC_MCKR_PRES_CLK_1 (0x0u << 4)
255 #define PMC_MCKR_PRES_CLK_2 (0x1u << 4)
256 #define PMC_MCKR_PRES_CLK_4 (0x2u << 4)
257 #define PMC_MCKR_PRES_CLK_8 (0x3u << 4)
258 #define PMC_MCKR_PRES_CLK_16 (0x4u << 4)
259 #define PMC_MCKR_PRES_CLK_32 (0x5u << 4)
260 #define PMC_MCKR_PRES_CLK_64 (0x6u << 4)
261 #define PMC_MCKR_PRES_CLK_3 (0x7u << 4)
262 #define PMC_MCKR_MDIV_Pos 8
263 #define PMC_MCKR_MDIV_Msk (0x3u << PMC_MCKR_MDIV_Pos)
264 #define PMC_MCKR_MDIV(value) ((PMC_MCKR_MDIV_Msk & ((value) << PMC_MCKR_MDIV_Pos)))
265 #define PMC_MCKR_MDIV_EQ_PCK (0x0u << 8)
266 #define PMC_MCKR_MDIV_PCK_DIV2 (0x1u << 8)
267 #define PMC_MCKR_MDIV_PCK_DIV4 (0x2u << 8)
268 #define PMC_MCKR_MDIV_PCK_DIV3 (0x3u << 8)
269 #define PMC_MCKR_UPLLDIV2 (0x1u << 13)
270 /* -------- PMC_USB : (PMC Offset: 0x0038) USB Clock Register -------- */
271 #define PMC_USB_USBS (0x1u << 0)
272 #define PMC_USB_USBDIV_Pos 8
273 #define PMC_USB_USBDIV_Msk (0xfu << PMC_USB_USBDIV_Pos)
274 #define PMC_USB_USBDIV(value) ((PMC_USB_USBDIV_Msk & ((value) << PMC_USB_USBDIV_Pos)))
275 /* -------- PMC_PCK0 : (PMC Offset: 0x0040) Programmable Clock 0 Register -------- */
276 #define PMC_PCK0_CSS_Pos 0
277 #define PMC_PCK0_CSS_Msk (0x7u << PMC_PCK0_CSS_Pos)
278 #define PMC_PCK0_CSS(value) ((PMC_PCK0_CSS_Msk & ((value) << PMC_PCK0_CSS_Pos)))
279 #define PMC_PCK0_CSS_SLOW_CLK (0x0u << 0)
280 #define PMC_PCK0_CSS_MAIN_CLK (0x1u << 0)
281 #define PMC_PCK0_CSS_PLLA_CLK (0x2u << 0)
282 #define PMC_PCK0_CSS_UPLL_CLK (0x3u << 0)
283 #define PMC_PCK0_CSS_MCK (0x4u << 0)
284 #define PMC_PCK0_PRES_Pos 4
285 #define PMC_PCK0_PRES_Msk (0xffu << PMC_PCK0_PRES_Pos)
286 #define PMC_PCK0_PRES(value) ((PMC_PCK0_PRES_Msk & ((value) << PMC_PCK0_PRES_Pos)))
287 /* -------- PMC_PCK1 : (PMC Offset: 0x0044) Programmable Clock 1 Register -------- */
288 #define PMC_PCK1_CSS_Pos 0
289 #define PMC_PCK1_CSS_Msk (0x7u << PMC_PCK1_CSS_Pos)
290 #define PMC_PCK1_CSS(value) ((PMC_PCK1_CSS_Msk & ((value) << PMC_PCK1_CSS_Pos)))
291 #define PMC_PCK1_CSS_SLOW_CLK (0x0u << 0)
292 #define PMC_PCK1_CSS_MAIN_CLK (0x1u << 0)
293 #define PMC_PCK1_CSS_PLLA_CLK (0x2u << 0)
294 #define PMC_PCK1_CSS_UPLL_CLK (0x3u << 0)
295 #define PMC_PCK1_CSS_MCK (0x4u << 0)
296 #define PMC_PCK1_PRES_Pos 4
297 #define PMC_PCK1_PRES_Msk (0xffu << PMC_PCK1_PRES_Pos)
298 #define PMC_PCK1_PRES(value) ((PMC_PCK1_PRES_Msk & ((value) << PMC_PCK1_PRES_Pos)))
299 /* -------- PMC_PCK2 : (PMC Offset: 0x0048) Programmable Clock 2 Register -------- */
300 #define PMC_PCK2_CSS_Pos 0
301 #define PMC_PCK2_CSS_Msk (0x7u << PMC_PCK2_CSS_Pos)
302 #define PMC_PCK2_CSS(value) ((PMC_PCK2_CSS_Msk & ((value) << PMC_PCK2_CSS_Pos)))
303 #define PMC_PCK2_CSS_SLOW_CLK (0x0u << 0)
304 #define PMC_PCK2_CSS_MAIN_CLK (0x1u << 0)
305 #define PMC_PCK2_CSS_PLLA_CLK (0x2u << 0)
306 #define PMC_PCK2_CSS_UPLL_CLK (0x3u << 0)
307 #define PMC_PCK2_CSS_MCK (0x4u << 0)
308 #define PMC_PCK2_PRES_Pos 4
309 #define PMC_PCK2_PRES_Msk (0xffu << PMC_PCK2_PRES_Pos)
310 #define PMC_PCK2_PRES(value) ((PMC_PCK2_PRES_Msk & ((value) << PMC_PCK2_PRES_Pos)))
311 /* -------- PMC_PCK3 : (PMC Offset: 0x004C) Programmable Clock 3 Register -------- */
312 #define PMC_PCK3_CSS_Pos 0
313 #define PMC_PCK3_CSS_Msk (0x7u << PMC_PCK3_CSS_Pos)
314 #define PMC_PCK3_CSS(value) ((PMC_PCK3_CSS_Msk & ((value) << PMC_PCK3_CSS_Pos)))
315 #define PMC_PCK3_CSS_SLOW_CLK (0x0u << 0)
316 #define PMC_PCK3_CSS_MAIN_CLK (0x1u << 0)
317 #define PMC_PCK3_CSS_PLLA_CLK (0x2u << 0)
318 #define PMC_PCK3_CSS_UPLL_CLK (0x3u << 0)
319 #define PMC_PCK3_CSS_MCK (0x4u << 0)
320 #define PMC_PCK3_PRES_Pos 4
321 #define PMC_PCK3_PRES_Msk (0xffu << PMC_PCK3_PRES_Pos)
322 #define PMC_PCK3_PRES(value) ((PMC_PCK3_PRES_Msk & ((value) << PMC_PCK3_PRES_Pos)))
323 /* -------- PMC_PCK4 : (PMC Offset: 0x0050) Programmable Clock 4 Register -------- */
324 #define PMC_PCK4_CSS_Pos 0
325 #define PMC_PCK4_CSS_Msk (0x7u << PMC_PCK4_CSS_Pos)
326 #define PMC_PCK4_CSS(value) ((PMC_PCK4_CSS_Msk & ((value) << PMC_PCK4_CSS_Pos)))
327 #define PMC_PCK4_CSS_SLOW_CLK (0x0u << 0)
328 #define PMC_PCK4_CSS_MAIN_CLK (0x1u << 0)
329 #define PMC_PCK4_CSS_PLLA_CLK (0x2u << 0)
330 #define PMC_PCK4_CSS_UPLL_CLK (0x3u << 0)
331 #define PMC_PCK4_CSS_MCK (0x4u << 0)
332 #define PMC_PCK4_PRES_Pos 4
333 #define PMC_PCK4_PRES_Msk (0xffu << PMC_PCK4_PRES_Pos)
334 #define PMC_PCK4_PRES(value) ((PMC_PCK4_PRES_Msk & ((value) << PMC_PCK4_PRES_Pos)))
335 /* -------- PMC_PCK6 : (PMC Offset: 0x0058) Programmable Clock 6 Register -------- */
336 #define PMC_PCK6_CSS_Pos 0
337 #define PMC_PCK6_CSS_Msk (0x7u << PMC_PCK6_CSS_Pos)
338 #define PMC_PCK6_CSS(value) ((PMC_PCK6_CSS_Msk & ((value) << PMC_PCK6_CSS_Pos)))
339 #define PMC_PCK6_CSS_SLOW_CLK (0x0u << 0)
340 #define PMC_PCK6_CSS_MAIN_CLK (0x1u << 0)
341 #define PMC_PCK6_CSS_PLLA_CLK (0x2u << 0)
342 #define PMC_PCK6_CSS_UPLL_CLK (0x3u << 0)
343 #define PMC_PCK6_CSS_MCK (0x4u << 0)
344 #define PMC_PCK6_PRES_Pos 4
345 #define PMC_PCK6_PRES_Msk (0xffu << PMC_PCK6_PRES_Pos)
346 #define PMC_PCK6_PRES(value) ((PMC_PCK6_PRES_Msk & ((value) << PMC_PCK6_PRES_Pos)))
347 /* -------- PMC_IER : (PMC Offset: 0x0060) Interrupt Enable Register -------- */
348 #define PMC_IER_MOSCXTS (0x1u << 0)
349 #define PMC_IER_LOCKA (0x1u << 1)
350 #define PMC_IER_MCKRDY (0x1u << 3)
351 #define PMC_IER_LOCKU (0x1u << 6)
352 #define PMC_IER_PCKRDY0 (0x1u << 8)
353 #define PMC_IER_PCKRDY1 (0x1u << 9)
354 #define PMC_IER_PCKRDY2 (0x1u << 10)
355 #define PMC_IER_PCKRDY3 (0x1u << 11)
356 #define PMC_IER_PCKRDY4 (0x1u << 12)
357 #define PMC_IER_PCKRDY5 (0x1u << 13)
358 #define PMC_IER_PCKRDY6 (0x1u << 14)
359 #define PMC_IER_MOSCSELS (0x1u << 16)
360 #define PMC_IER_MOSCRCS (0x1u << 17)
361 #define PMC_IER_CFDEV (0x1u << 18)
362 #define PMC_IER_XT32KERR (0x1u << 21)
363 /* -------- PMC_IDR : (PMC Offset: 0x0064) Interrupt Disable Register -------- */
364 #define PMC_IDR_MOSCXTS (0x1u << 0)
365 #define PMC_IDR_LOCKA (0x1u << 1)
366 #define PMC_IDR_MCKRDY (0x1u << 3)
367 #define PMC_IDR_LOCKU (0x1u << 6)
368 #define PMC_IDR_PCKRDY0 (0x1u << 8)
369 #define PMC_IDR_PCKRDY1 (0x1u << 9)
370 #define PMC_IDR_PCKRDY2 (0x1u << 10)
371 #define PMC_IDR_PCKRDY3 (0x1u << 11)
372 #define PMC_IDR_PCKRDY4 (0x1u << 12)
373 #define PMC_IDR_PCKRDY5 (0x1u << 13)
374 #define PMC_IDR_PCKRDY6 (0x1u << 14)
375 #define PMC_IDR_MOSCSELS (0x1u << 16)
376 #define PMC_IDR_MOSCRCS (0x1u << 17)
377 #define PMC_IDR_CFDEV (0x1u << 18)
378 #define PMC_IDR_XT32KERR (0x1u << 21)
379 /* -------- PMC_SR : (PMC Offset: 0x0068) Status Register -------- */
380 #define PMC_SR_MOSCXTS (0x1u << 0)
381 #define PMC_SR_LOCKA (0x1u << 1)
382 #define PMC_SR_MCKRDY (0x1u << 3)
383 #define PMC_SR_LOCKU (0x1u << 6)
384 #define PMC_SR_OSCSELS (0x1u << 7)
385 #define PMC_SR_PCKRDY0 (0x1u << 8)
386 #define PMC_SR_PCKRDY1 (0x1u << 9)
387 #define PMC_SR_PCKRDY2 (0x1u << 10)
388 #define PMC_SR_PCKRDY3 (0x1u << 11)
389 #define PMC_SR_PCKRDY4 (0x1u << 12)
390 #define PMC_SR_PCKRDY5 (0x1u << 13)
391 #define PMC_SR_PCKRDY6 (0x1u << 14)
392 #define PMC_SR_MOSCSELS (0x1u << 16)
393 #define PMC_SR_MOSCRCS (0x1u << 17)
394 #define PMC_SR_CFDEV (0x1u << 18)
395 #define PMC_SR_CFDS (0x1u << 19)
396 #define PMC_SR_FOS (0x1u << 20)
397 #define PMC_SR_XT32KERR (0x1u << 21)
398 /* -------- PMC_IMR : (PMC Offset: 0x006C) Interrupt Mask Register -------- */
399 #define PMC_IMR_MOSCXTS (0x1u << 0)
400 #define PMC_IMR_LOCKA (0x1u << 1)
401 #define PMC_IMR_MCKRDY (0x1u << 3)
402 #define PMC_IMR_LOCKU (0x1u << 6)
403 #define PMC_IMR_PCKRDY0 (0x1u << 8)
404 #define PMC_IMR_PCKRDY1 (0x1u << 9)
405 #define PMC_IMR_PCKRDY2 (0x1u << 10)
406 #define PMC_IMR_PCKRDY3 (0x1u << 11)
407 #define PMC_IMR_PCKRDY4 (0x1u << 12)
408 #define PMC_IMR_PCKRDY5 (0x1u << 13)
409 #define PMC_IMR_PCKRDY6 (0x1u << 14)
410 #define PMC_IMR_MOSCSELS (0x1u << 16)
411 #define PMC_IMR_MOSCRCS (0x1u << 17)
412 #define PMC_IMR_CFDEV (0x1u << 18)
413 #define PMC_IMR_XT32KERR (0x1u << 21)
414 /* -------- PMC_FSMR : (PMC Offset: 0x0070) Fast Startup Mode Register -------- */
415 #define PMC_FSMR_FSTT0 (0x1u << 0)
416 #define PMC_FSMR_FSTT1 (0x1u << 1)
417 #define PMC_FSMR_FSTT2 (0x1u << 2)
418 #define PMC_FSMR_FSTT3 (0x1u << 3)
419 #define PMC_FSMR_FSTT4 (0x1u << 4)
420 #define PMC_FSMR_FSTT5 (0x1u << 5)
421 #define PMC_FSMR_FSTT6 (0x1u << 6)
422 #define PMC_FSMR_FSTT7 (0x1u << 7)
423 #define PMC_FSMR_FSTT8 (0x1u << 8)
424 #define PMC_FSMR_FSTT9 (0x1u << 9)
425 #define PMC_FSMR_FSTT10 (0x1u << 10)
426 #define PMC_FSMR_FSTT11 (0x1u << 11)
427 #define PMC_FSMR_FSTT12 (0x1u << 12)
428 #define PMC_FSMR_FSTT13 (0x1u << 13)
429 #define PMC_FSMR_FSTT14 (0x1u << 14)
430 #define PMC_FSMR_FSTT15 (0x1u << 15)
431 #define PMC_FSMR_RTTAL (0x1u << 16)
432 #define PMC_FSMR_RTCAL (0x1u << 17)
433 #define PMC_FSMR_USBAL (0x1u << 18)
434 #define PMC_FSMR_LPM (0x1u << 20)
435 #define PMC_FSMR_FLPM_Pos 21
436 #define PMC_FSMR_FLPM_Msk (0x3u << PMC_FSMR_FLPM_Pos)
437 #define PMC_FSMR_FLPM(value) ((PMC_FSMR_FLPM_Msk & ((value) << PMC_FSMR_FLPM_Pos)))
438 #define PMC_FSMR_FLPM_FLASH_STANDBY (0x0u << 21)
439 #define PMC_FSMR_FLPM_FLASH_DEEP_POWERDOWN (0x1u << 21)
440 #define PMC_FSMR_FLPM_FLASH_IDLE (0x2u << 21)
441 #define PMC_FSMR_FFLPM (0x1u << 23)
442 /* -------- PMC_FSPR : (PMC Offset: 0x0074) Fast Startup Polarity Register -------- */
443 #define PMC_FSPR_FSTP0 (0x1u << 0)
444 #define PMC_FSPR_FSTP1 (0x1u << 1)
445 #define PMC_FSPR_FSTP2 (0x1u << 2)
446 #define PMC_FSPR_FSTP3 (0x1u << 3)
447 #define PMC_FSPR_FSTP4 (0x1u << 4)
448 #define PMC_FSPR_FSTP5 (0x1u << 5)
449 #define PMC_FSPR_FSTP6 (0x1u << 6)
450 #define PMC_FSPR_FSTP7 (0x1u << 7)
451 #define PMC_FSPR_FSTP8 (0x1u << 8)
452 #define PMC_FSPR_FSTP9 (0x1u << 9)
453 #define PMC_FSPR_FSTP10 (0x1u << 10)
454 #define PMC_FSPR_FSTP11 (0x1u << 11)
455 #define PMC_FSPR_FSTP12 (0x1u << 12)
456 #define PMC_FSPR_FSTP13 (0x1u << 13)
457 #define PMC_FSPR_FSTP14 (0x1u << 14)
458 #define PMC_FSPR_FSTP15 (0x1u << 15)
459 /* -------- PMC_FOCR : (PMC Offset: 0x0078) Fault Output Clear Register -------- */
460 #define PMC_FOCR_FOCLR (0x1u << 0)
461 /* -------- PMC_WPMR : (PMC Offset: 0x00E4) Write Protection Mode Register -------- */
462 #define PMC_WPMR_WPEN (0x1u << 0)
463 #define PMC_WPMR_WPKEY_Pos 8
464 #define PMC_WPMR_WPKEY_Msk (0xffffffu << PMC_WPMR_WPKEY_Pos)
465 #define PMC_WPMR_WPKEY(value) ((PMC_WPMR_WPKEY_Msk & ((value) << PMC_WPMR_WPKEY_Pos)))
466 #define PMC_WPMR_WPKEY_PASSWD (0x504D43u << 8)
467 /* -------- PMC_WPSR : (PMC Offset: 0x00E8) Write Protection Status Register -------- */
468 #define PMC_WPSR_WPVS (0x1u << 0)
469 #define PMC_WPSR_WPVSRC_Pos 8
470 #define PMC_WPSR_WPVSRC_Msk (0xffffu << PMC_WPSR_WPVSRC_Pos)
471 /* -------- PMC_PCER1 : (PMC Offset: 0x0100) Peripheral Clock Enable Register 1 -------- */
472 #define PMC_PCER1_PID32 (0x1u << 0)
473 #define PMC_PCER1_PID33 (0x1u << 1)
474 #define PMC_PCER1_PID34 (0x1u << 2)
475 #define PMC_PCER1_PID35 (0x1u << 3)
476 #define PMC_PCER1_PID37 (0x1u << 5)
477 #define PMC_PCER1_PID39 (0x1u << 7)
478 #define PMC_PCER1_PID40 (0x1u << 8)
479 #define PMC_PCER1_PID41 (0x1u << 9)
480 #define PMC_PCER1_PID42 (0x1u << 10)
481 #define PMC_PCER1_PID43 (0x1u << 11)
482 #define PMC_PCER1_PID44 (0x1u << 12)
483 #define PMC_PCER1_PID45 (0x1u << 13)
484 #define PMC_PCER1_PID46 (0x1u << 14)
485 #define PMC_PCER1_PID47 (0x1u << 15)
486 #define PMC_PCER1_PID48 (0x1u << 16)
487 #define PMC_PCER1_PID49 (0x1u << 17)
488 #define PMC_PCER1_PID50 (0x1u << 18)
489 #define PMC_PCER1_PID51 (0x1u << 19)
490 #define PMC_PCER1_PID52 (0x1u << 20)
491 #define PMC_PCER1_PID53 (0x1u << 21)
492 #define PMC_PCER1_PID56 (0x1u << 24)
493 #define PMC_PCER1_PID57 (0x1u << 25)
494 #define PMC_PCER1_PID58 (0x1u << 26)
495 #define PMC_PCER1_PID59 (0x1u << 27)
496 #define PMC_PCER1_PID60 (0x1u << 28)
497 /* -------- PMC_PCDR1 : (PMC Offset: 0x0104) Peripheral Clock Disable Register 1 -------- */
498 #define PMC_PCDR1_PID32 (0x1u << 0)
499 #define PMC_PCDR1_PID33 (0x1u << 1)
500 #define PMC_PCDR1_PID34 (0x1u << 2)
501 #define PMC_PCDR1_PID35 (0x1u << 3)
502 #define PMC_PCDR1_PID37 (0x1u << 5)
503 #define PMC_PCDR1_PID39 (0x1u << 7)
504 #define PMC_PCDR1_PID40 (0x1u << 8)
505 #define PMC_PCDR1_PID41 (0x1u << 9)
506 #define PMC_PCDR1_PID42 (0x1u << 10)
507 #define PMC_PCDR1_PID43 (0x1u << 11)
508 #define PMC_PCDR1_PID44 (0x1u << 12)
509 #define PMC_PCDR1_PID45 (0x1u << 13)
510 #define PMC_PCDR1_PID46 (0x1u << 14)
511 #define PMC_PCDR1_PID47 (0x1u << 15)
512 #define PMC_PCDR1_PID48 (0x1u << 16)
513 #define PMC_PCDR1_PID49 (0x1u << 17)
514 #define PMC_PCDR1_PID50 (0x1u << 18)
515 #define PMC_PCDR1_PID51 (0x1u << 19)
516 #define PMC_PCDR1_PID52 (0x1u << 20)
517 #define PMC_PCDR1_PID53 (0x1u << 21)
518 #define PMC_PCDR1_PID56 (0x1u << 24)
519 #define PMC_PCDR1_PID57 (0x1u << 25)
520 #define PMC_PCDR1_PID58 (0x1u << 26)
521 #define PMC_PCDR1_PID59 (0x1u << 27)
522 #define PMC_PCDR1_PID60 (0x1u << 28)
523 /* -------- PMC_PCSR1 : (PMC Offset: 0x0108) Peripheral Clock Status Register 1 -------- */
524 #define PMC_PCSR1_PID32 (0x1u << 0)
525 #define PMC_PCSR1_PID33 (0x1u << 1)
526 #define PMC_PCSR1_PID34 (0x1u << 2)
527 #define PMC_PCSR1_PID35 (0x1u << 3)
528 #define PMC_PCSR1_PID37 (0x1u << 5)
529 #define PMC_PCSR1_PID39 (0x1u << 7)
530 #define PMC_PCSR1_PID40 (0x1u << 8)
531 #define PMC_PCSR1_PID41 (0x1u << 9)
532 #define PMC_PCSR1_PID42 (0x1u << 10)
533 #define PMC_PCSR1_PID43 (0x1u << 11)
534 #define PMC_PCSR1_PID44 (0x1u << 12)
535 #define PMC_PCSR1_PID45 (0x1u << 13)
536 #define PMC_PCSR1_PID46 (0x1u << 14)
537 #define PMC_PCSR1_PID47 (0x1u << 15)
538 #define PMC_PCSR1_PID48 (0x1u << 16)
539 #define PMC_PCSR1_PID49 (0x1u << 17)
540 #define PMC_PCSR1_PID50 (0x1u << 18)
541 #define PMC_PCSR1_PID51 (0x1u << 19)
542 #define PMC_PCSR1_PID52 (0x1u << 20)
543 #define PMC_PCSR1_PID53 (0x1u << 21)
544 #define PMC_PCSR1_PID56 (0x1u << 24)
545 #define PMC_PCSR1_PID57 (0x1u << 25)
546 #define PMC_PCSR1_PID58 (0x1u << 26)
547 #define PMC_PCSR1_PID59 (0x1u << 27)
548 #define PMC_PCSR1_PID60 (0x1u << 28)
549 /* -------- PMC_PCR : (PMC Offset: 0x010C) Peripheral Control Register -------- */
550 #define PMC_PCR_PID_Pos 0
551 #define PMC_PCR_PID_Msk (0x3fu << PMC_PCR_PID_Pos)
552 #define PMC_PCR_PID(value) ((PMC_PCR_PID_Msk & ((value) << PMC_PCR_PID_Pos)))
553 #define PMC_PCR_CMD (0x1u << 12)
554 #define PMC_PCR_EN (0x1u << 28)
555 /* -------- PMC_OCR : (PMC Offset: 0x0110) Oscillator Calibration Register -------- */
556 #define PMC_OCR_CAL4_Pos 0
557 #define PMC_OCR_CAL4_Msk (0x7fu << PMC_OCR_CAL4_Pos)
558 #define PMC_OCR_CAL4(value) ((PMC_OCR_CAL4_Msk & ((value) << PMC_OCR_CAL4_Pos)))
559 #define PMC_OCR_SEL4 (0x1u << 7)
560 #define PMC_OCR_CAL8_Pos 8
561 #define PMC_OCR_CAL8_Msk (0x7fu << PMC_OCR_CAL8_Pos)
562 #define PMC_OCR_CAL8(value) ((PMC_OCR_CAL8_Msk & ((value) << PMC_OCR_CAL8_Pos)))
563 #define PMC_OCR_SEL8 (0x1u << 15)
564 #define PMC_OCR_CAL12_Pos 16
565 #define PMC_OCR_CAL12_Msk (0x7fu << PMC_OCR_CAL12_Pos)
566 #define PMC_OCR_CAL12(value) ((PMC_OCR_CAL12_Msk & ((value) << PMC_OCR_CAL12_Pos)))
567 #define PMC_OCR_SEL12 (0x1u << 23)
568 /* -------- PMC_SLPWK_ER0 : (PMC Offset: 0x0114) SleepWalking Enable Register 0 -------- */
569 #define PMC_SLPWK_ER0_PID7 (0x1u << 7)
570 #define PMC_SLPWK_ER0_PID8 (0x1u << 8)
571 #define PMC_SLPWK_ER0_PID9 (0x1u << 9)
572 #define PMC_SLPWK_ER0_PID10 (0x1u << 10)
573 #define PMC_SLPWK_ER0_PID11 (0x1u << 11)
574 #define PMC_SLPWK_ER0_PID12 (0x1u << 12)
575 #define PMC_SLPWK_ER0_PID13 (0x1u << 13)
576 #define PMC_SLPWK_ER0_PID14 (0x1u << 14)
577 #define PMC_SLPWK_ER0_PID15 (0x1u << 15)
578 #define PMC_SLPWK_ER0_PID16 (0x1u << 16)
579 #define PMC_SLPWK_ER0_PID17 (0x1u << 17)
580 #define PMC_SLPWK_ER0_PID18 (0x1u << 18)
581 #define PMC_SLPWK_ER0_PID19 (0x1u << 19)
582 #define PMC_SLPWK_ER0_PID20 (0x1u << 20)
583 #define PMC_SLPWK_ER0_PID21 (0x1u << 21)
584 #define PMC_SLPWK_ER0_PID22 (0x1u << 22)
585 #define PMC_SLPWK_ER0_PID23 (0x1u << 23)
586 #define PMC_SLPWK_ER0_PID24 (0x1u << 24)
587 #define PMC_SLPWK_ER0_PID25 (0x1u << 25)
588 #define PMC_SLPWK_ER0_PID26 (0x1u << 26)
589 #define PMC_SLPWK_ER0_PID27 (0x1u << 27)
590 #define PMC_SLPWK_ER0_PID28 (0x1u << 28)
591 #define PMC_SLPWK_ER0_PID29 (0x1u << 29)
592 #define PMC_SLPWK_ER0_PID30 (0x1u << 30)
593 #define PMC_SLPWK_ER0_PID31 (0x1u << 31)
594 /* -------- PMC_SLPWK_DR0 : (PMC Offset: 0x0118) SleepWalking Disable Register 0 -------- */
595 #define PMC_SLPWK_DR0_PID7 (0x1u << 7)
596 #define PMC_SLPWK_DR0_PID8 (0x1u << 8)
597 #define PMC_SLPWK_DR0_PID9 (0x1u << 9)
598 #define PMC_SLPWK_DR0_PID10 (0x1u << 10)
599 #define PMC_SLPWK_DR0_PID11 (0x1u << 11)
600 #define PMC_SLPWK_DR0_PID12 (0x1u << 12)
601 #define PMC_SLPWK_DR0_PID13 (0x1u << 13)
602 #define PMC_SLPWK_DR0_PID14 (0x1u << 14)
603 #define PMC_SLPWK_DR0_PID15 (0x1u << 15)
604 #define PMC_SLPWK_DR0_PID16 (0x1u << 16)
605 #define PMC_SLPWK_DR0_PID17 (0x1u << 17)
606 #define PMC_SLPWK_DR0_PID18 (0x1u << 18)
607 #define PMC_SLPWK_DR0_PID19 (0x1u << 19)
608 #define PMC_SLPWK_DR0_PID20 (0x1u << 20)
609 #define PMC_SLPWK_DR0_PID21 (0x1u << 21)
610 #define PMC_SLPWK_DR0_PID22 (0x1u << 22)
611 #define PMC_SLPWK_DR0_PID23 (0x1u << 23)
612 #define PMC_SLPWK_DR0_PID24 (0x1u << 24)
613 #define PMC_SLPWK_DR0_PID25 (0x1u << 25)
614 #define PMC_SLPWK_DR0_PID26 (0x1u << 26)
615 #define PMC_SLPWK_DR0_PID27 (0x1u << 27)
616 #define PMC_SLPWK_DR0_PID28 (0x1u << 28)
617 #define PMC_SLPWK_DR0_PID29 (0x1u << 29)
618 #define PMC_SLPWK_DR0_PID30 (0x1u << 30)
619 #define PMC_SLPWK_DR0_PID31 (0x1u << 31)
620 /* -------- PMC_SLPWK_SR0 : (PMC Offset: 0x011C) SleepWalking Status Register 0 -------- */
621 #define PMC_SLPWK_SR0_PID7 (0x1u << 7)
622 #define PMC_SLPWK_SR0_PID8 (0x1u << 8)
623 #define PMC_SLPWK_SR0_PID9 (0x1u << 9)
624 #define PMC_SLPWK_SR0_PID10 (0x1u << 10)
625 #define PMC_SLPWK_SR0_PID11 (0x1u << 11)
626 #define PMC_SLPWK_SR0_PID12 (0x1u << 12)
627 #define PMC_SLPWK_SR0_PID13 (0x1u << 13)
628 #define PMC_SLPWK_SR0_PID14 (0x1u << 14)
629 #define PMC_SLPWK_SR0_PID15 (0x1u << 15)
630 #define PMC_SLPWK_SR0_PID16 (0x1u << 16)
631 #define PMC_SLPWK_SR0_PID17 (0x1u << 17)
632 #define PMC_SLPWK_SR0_PID18 (0x1u << 18)
633 #define PMC_SLPWK_SR0_PID19 (0x1u << 19)
634 #define PMC_SLPWK_SR0_PID20 (0x1u << 20)
635 #define PMC_SLPWK_SR0_PID21 (0x1u << 21)
636 #define PMC_SLPWK_SR0_PID22 (0x1u << 22)
637 #define PMC_SLPWK_SR0_PID23 (0x1u << 23)
638 #define PMC_SLPWK_SR0_PID24 (0x1u << 24)
639 #define PMC_SLPWK_SR0_PID25 (0x1u << 25)
640 #define PMC_SLPWK_SR0_PID26 (0x1u << 26)
641 #define PMC_SLPWK_SR0_PID27 (0x1u << 27)
642 #define PMC_SLPWK_SR0_PID28 (0x1u << 28)
643 #define PMC_SLPWK_SR0_PID29 (0x1u << 29)
644 #define PMC_SLPWK_SR0_PID30 (0x1u << 30)
645 #define PMC_SLPWK_SR0_PID31 (0x1u << 31)
646 /* -------- PMC_SLPWK_ASR0 : (PMC Offset: 0x0120) SleepWalking Activity Status Register 0 -------- */
647 #define PMC_SLPWK_ASR0_PID7 (0x1u << 7)
648 #define PMC_SLPWK_ASR0_PID8 (0x1u << 8)
649 #define PMC_SLPWK_ASR0_PID9 (0x1u << 9)
650 #define PMC_SLPWK_ASR0_PID10 (0x1u << 10)
651 #define PMC_SLPWK_ASR0_PID11 (0x1u << 11)
652 #define PMC_SLPWK_ASR0_PID12 (0x1u << 12)
653 #define PMC_SLPWK_ASR0_PID13 (0x1u << 13)
654 #define PMC_SLPWK_ASR0_PID14 (0x1u << 14)
655 #define PMC_SLPWK_ASR0_PID15 (0x1u << 15)
656 #define PMC_SLPWK_ASR0_PID16 (0x1u << 16)
657 #define PMC_SLPWK_ASR0_PID17 (0x1u << 17)
658 #define PMC_SLPWK_ASR0_PID18 (0x1u << 18)
659 #define PMC_SLPWK_ASR0_PID19 (0x1u << 19)
660 #define PMC_SLPWK_ASR0_PID20 (0x1u << 20)
661 #define PMC_SLPWK_ASR0_PID21 (0x1u << 21)
662 #define PMC_SLPWK_ASR0_PID22 (0x1u << 22)
663 #define PMC_SLPWK_ASR0_PID23 (0x1u << 23)
664 #define PMC_SLPWK_ASR0_PID24 (0x1u << 24)
665 #define PMC_SLPWK_ASR0_PID25 (0x1u << 25)
666 #define PMC_SLPWK_ASR0_PID26 (0x1u << 26)
667 #define PMC_SLPWK_ASR0_PID27 (0x1u << 27)
668 #define PMC_SLPWK_ASR0_PID28 (0x1u << 28)
669 #define PMC_SLPWK_ASR0_PID29 (0x1u << 29)
670 #define PMC_SLPWK_ASR0_PID30 (0x1u << 30)
671 #define PMC_SLPWK_ASR0_PID31 (0x1u << 31)
672 /* -------- PMC_PMMR : (PMC Offset: 0x0130) PLL Maximum Multiplier Value Register -------- */
673 #define PMC_PMMR_PLLA_MMAX_Pos 0
674 #define PMC_PMMR_PLLA_MMAX_Msk (0x7ffu << PMC_PMMR_PLLA_MMAX_Pos)
675 #define PMC_PMMR_PLLA_MMAX(value) ((PMC_PMMR_PLLA_MMAX_Msk & ((value) << PMC_PMMR_PLLA_MMAX_Pos)))
676 /* -------- PMC_SLPWK_ER1 : (PMC Offset: 0x0134) SleepWalking Enable Register 1 -------- */
677 #define PMC_SLPWK_ER1_PID32 (0x1u << 0)
678 #define PMC_SLPWK_ER1_PID33 (0x1u << 1)
679 #define PMC_SLPWK_ER1_PID34 (0x1u << 2)
680 #define PMC_SLPWK_ER1_PID35 (0x1u << 3)
681 #define PMC_SLPWK_ER1_PID37 (0x1u << 5)
682 #define PMC_SLPWK_ER1_PID39 (0x1u << 7)
683 #define PMC_SLPWK_ER1_PID40 (0x1u << 8)
684 #define PMC_SLPWK_ER1_PID41 (0x1u << 9)
685 #define PMC_SLPWK_ER1_PID42 (0x1u << 10)
686 #define PMC_SLPWK_ER1_PID43 (0x1u << 11)
687 #define PMC_SLPWK_ER1_PID44 (0x1u << 12)
688 #define PMC_SLPWK_ER1_PID45 (0x1u << 13)
689 #define PMC_SLPWK_ER1_PID46 (0x1u << 14)
690 #define PMC_SLPWK_ER1_PID47 (0x1u << 15)
691 #define PMC_SLPWK_ER1_PID48 (0x1u << 16)
692 #define PMC_SLPWK_ER1_PID49 (0x1u << 17)
693 #define PMC_SLPWK_ER1_PID50 (0x1u << 18)
694 #define PMC_SLPWK_ER1_PID51 (0x1u << 19)
695 #define PMC_SLPWK_ER1_PID52 (0x1u << 20)
696 #define PMC_SLPWK_ER1_PID53 (0x1u << 21)
697 #define PMC_SLPWK_ER1_PID56 (0x1u << 24)
698 #define PMC_SLPWK_ER1_PID57 (0x1u << 25)
699 #define PMC_SLPWK_ER1_PID58 (0x1u << 26)
700 #define PMC_SLPWK_ER1_PID59 (0x1u << 27)
701 #define PMC_SLPWK_ER1_PID60 (0x1u << 28)
702 /* -------- PMC_SLPWK_DR1 : (PMC Offset: 0x0138) SleepWalking Disable Register 1 -------- */
703 #define PMC_SLPWK_DR1_PID32 (0x1u << 0)
704 #define PMC_SLPWK_DR1_PID33 (0x1u << 1)
705 #define PMC_SLPWK_DR1_PID34 (0x1u << 2)
706 #define PMC_SLPWK_DR1_PID35 (0x1u << 3)
707 #define PMC_SLPWK_DR1_PID37 (0x1u << 5)
708 #define PMC_SLPWK_DR1_PID39 (0x1u << 7)
709 #define PMC_SLPWK_DR1_PID40 (0x1u << 8)
710 #define PMC_SLPWK_DR1_PID41 (0x1u << 9)
711 #define PMC_SLPWK_DR1_PID42 (0x1u << 10)
712 #define PMC_SLPWK_DR1_PID43 (0x1u << 11)
713 #define PMC_SLPWK_DR1_PID44 (0x1u << 12)
714 #define PMC_SLPWK_DR1_PID45 (0x1u << 13)
715 #define PMC_SLPWK_DR1_PID46 (0x1u << 14)
716 #define PMC_SLPWK_DR1_PID47 (0x1u << 15)
717 #define PMC_SLPWK_DR1_PID48 (0x1u << 16)
718 #define PMC_SLPWK_DR1_PID49 (0x1u << 17)
719 #define PMC_SLPWK_DR1_PID50 (0x1u << 18)
720 #define PMC_SLPWK_DR1_PID51 (0x1u << 19)
721 #define PMC_SLPWK_DR1_PID52 (0x1u << 20)
722 #define PMC_SLPWK_DR1_PID53 (0x1u << 21)
723 #define PMC_SLPWK_DR1_PID56 (0x1u << 24)
724 #define PMC_SLPWK_DR1_PID57 (0x1u << 25)
725 #define PMC_SLPWK_DR1_PID58 (0x1u << 26)
726 #define PMC_SLPWK_DR1_PID59 (0x1u << 27)
727 #define PMC_SLPWK_DR1_PID60 (0x1u << 28)
728 /* -------- PMC_SLPWK_SR1 : (PMC Offset: 0x013C) SleepWalking Status Register 1 -------- */
729 #define PMC_SLPWK_SR1_PID32 (0x1u << 0)
730 #define PMC_SLPWK_SR1_PID33 (0x1u << 1)
731 #define PMC_SLPWK_SR1_PID34 (0x1u << 2)
732 #define PMC_SLPWK_SR1_PID35 (0x1u << 3)
733 #define PMC_SLPWK_SR1_PID37 (0x1u << 5)
734 #define PMC_SLPWK_SR1_PID39 (0x1u << 7)
735 #define PMC_SLPWK_SR1_PID40 (0x1u << 8)
736 #define PMC_SLPWK_SR1_PID41 (0x1u << 9)
737 #define PMC_SLPWK_SR1_PID42 (0x1u << 10)
738 #define PMC_SLPWK_SR1_PID43 (0x1u << 11)
739 #define PMC_SLPWK_SR1_PID44 (0x1u << 12)
740 #define PMC_SLPWK_SR1_PID45 (0x1u << 13)
741 #define PMC_SLPWK_SR1_PID46 (0x1u << 14)
742 #define PMC_SLPWK_SR1_PID47 (0x1u << 15)
743 #define PMC_SLPWK_SR1_PID48 (0x1u << 16)
744 #define PMC_SLPWK_SR1_PID49 (0x1u << 17)
745 #define PMC_SLPWK_SR1_PID50 (0x1u << 18)
746 #define PMC_SLPWK_SR1_PID51 (0x1u << 19)
747 #define PMC_SLPWK_SR1_PID52 (0x1u << 20)
748 #define PMC_SLPWK_SR1_PID53 (0x1u << 21)
749 #define PMC_SLPWK_SR1_PID56 (0x1u << 24)
750 #define PMC_SLPWK_SR1_PID57 (0x1u << 25)
751 #define PMC_SLPWK_SR1_PID58 (0x1u << 26)
752 #define PMC_SLPWK_SR1_PID59 (0x1u << 27)
753 #define PMC_SLPWK_SR1_PID60 (0x1u << 28)
754 /* -------- PMC_SLPWK_ASR1 : (PMC Offset: 0x0140) SleepWalking Activity Status Register 1 -------- */
755 #define PMC_SLPWK_ASR1_PID32 (0x1u << 0)
756 #define PMC_SLPWK_ASR1_PID33 (0x1u << 1)
757 #define PMC_SLPWK_ASR1_PID34 (0x1u << 2)
758 #define PMC_SLPWK_ASR1_PID35 (0x1u << 3)
759 #define PMC_SLPWK_ASR1_PID37 (0x1u << 5)
760 #define PMC_SLPWK_ASR1_PID39 (0x1u << 7)
761 #define PMC_SLPWK_ASR1_PID40 (0x1u << 8)
762 #define PMC_SLPWK_ASR1_PID41 (0x1u << 9)
763 #define PMC_SLPWK_ASR1_PID42 (0x1u << 10)
764 #define PMC_SLPWK_ASR1_PID43 (0x1u << 11)
765 #define PMC_SLPWK_ASR1_PID44 (0x1u << 12)
766 #define PMC_SLPWK_ASR1_PID45 (0x1u << 13)
767 #define PMC_SLPWK_ASR1_PID46 (0x1u << 14)
768 #define PMC_SLPWK_ASR1_PID47 (0x1u << 15)
769 #define PMC_SLPWK_ASR1_PID48 (0x1u << 16)
770 #define PMC_SLPWK_ASR1_PID49 (0x1u << 17)
771 #define PMC_SLPWK_ASR1_PID50 (0x1u << 18)
772 #define PMC_SLPWK_ASR1_PID51 (0x1u << 19)
773 #define PMC_SLPWK_ASR1_PID52 (0x1u << 20)
774 #define PMC_SLPWK_ASR1_PID53 (0x1u << 21)
775 #define PMC_SLPWK_ASR1_PID56 (0x1u << 24)
776 #define PMC_SLPWK_ASR1_PID57 (0x1u << 25)
777 #define PMC_SLPWK_ASR1_PID58 (0x1u << 26)
778 #define PMC_SLPWK_ASR1_PID59 (0x1u << 27)
779 #define PMC_SLPWK_ASR1_PID60 (0x1u << 28)
780 /* -------- PMC_SLPWK_AIPR : (PMC Offset: 0x0144) SleepWalking Activity In Progress Register -------- */
781 #define PMC_SLPWK_AIPR_AIP (0x1u << 0)
784 
785 
786 #endif /* _SAMS70_PMC_COMPONENT_ */
__IO uint32_t PMC_PCK1
(Pmc Offset: 0x0044) Programmable Clock 1 Register
Definition: component_pmc.h:59
#define __IO
Definition: core_cm7.h:287
#define __O
Definition: core_cm7.h:286
__IO uint32_t PMC_PCK3
(Pmc Offset: 0x004C) Programmable Clock 3 Register
Definition: component_pmc.h:61
__IO uint32_t PMC_PCK4
(Pmc Offset: 0x0050) Programmable Clock 4 Register
Definition: component_pmc.h:62
__IO uint32_t PMC_PCK6
(Pmc Offset: 0x0058) Programmable Clock 6 Register
Definition: component_pmc.h:64
Pmc hardware registers.
Definition: component_pmc.h:41
__IO uint32_t PMC_PCK2
(Pmc Offset: 0x0048) Programmable Clock 2 Register
Definition: component_pmc.h:60
__IO uint32_t PMC_PCK0
(Pmc Offset: 0x0040) Programmable Clock 0 Register
Definition: component_pmc.h:58
#define __I
Definition: core_cm7.h:284