CC35xxDriverLibrary
hw_pll_sharing.h
Go to the documentation of this file.
1 /******************************************************************************
2 * Filename: hw_pll_sharing.h
3 *
4 * Description: Defines and prototypes for the PLL_SHARING peripheral.
5 *
6 * Copyright (c) 2023-2025, Texas Instruments Incorporated
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 conditions are met:
11 *
12 * 1) Redistributions of source code must retain the above copyright notice,
13 * this list of conditions and the following disclaimer.
14 *
15 * 2) Redistributions in binary form must reproduce the above copyright notice,
16 * this list of conditions and the following disclaimer in the documentation
17 * and/or other materials provided with the distribution.
18 *
19 * 3) Neither the name of the ORGANIZATION nor the names of its contributors may
20 * be used to endorse or promote products derived from this software without
21 * specific prior written permission.
22 *
23  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
27 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33 * POSSIBILITY OF SUCH DAMAGE.
34 *
35 ******************************************************************************/
36 #ifndef __HW_PLL_SHARING_H__
37 #define __HW_PLL_SHARING_H__
38 /*-------------------------------------------------------------------------------
39 
40 This section defines the register offsets of the PLL_SHARING component
41 
42 --------------------------------------------------------------------------------- */
43 
44 //WCS PLL M
45 #define PLL_SHARING_O_WCSPLLM 0x00000000U
46 
47 //WCS PLL N
48 #define PLL_SHARING_O_WCSPLLN 0x00000004U
49 
50 //WCS Q FACTOR CONFIG
51 #define PLL_SHARING_O_WCSQFACCFG 0x00000008U
52 
53 //WCS P FACTOR CONFIG
54 #define PLL_SHARING_O_WCSPFACCFG 0x0000000CU
55 
56 //WCS PLL swallowing logic gen cfg
57 #define PLL_SHARING_O_WCSPLLSWAL 0x00000010U
58 
59 //WCS PLL CONFIG
60 #define PLL_SHARING_O_WCSPLLCFG 0x00000014U
61 
62 //CORE configuration for PLL Sharing
63 #define PLL_SHARING_O_CR 0x00000018U
64 
65 //GENERAL
66 #define PLL_SHARING_O_GEN 0x0000001CU
67 
68 //WCS CONFIG
69 #define PLL_SHARING_O_WCSCFG 0x00000020U
70 
71 //GENERAL CONFIGURATION
72 #define PLL_SHARING_O_GENCFG 0x00000024U
73 
74 //Lock status reg
75 #define PLL_SHARING_O_LOCK 0x00000028U
76 
77 //SOP MASK
78 #define PLL_SHARING_O_SOPBM 0x0000002CU
79 
80 //DEBUGSS
81 #define PLL_SHARING_O_DBGSS 0x00000030U
82 
83 //ICG
84 #define PLL_SHARING_O_ICG 0x00000034U
85 
86 
87 
88 /*-----------------------------------REGISTER------------------------------------
89  Register name: WCSPLLM
90  Offset name: PLL_SHARING_O_WCSPLLM
91  Relative address: 0x0
92  Description: WCS PLL M
93 
94  divider configuration for WCS PLL - primary reference
95  Default Value: 0x000000A0
96 
97  Field: VAL
98  From..to bits: 0...8
99  DefaultValue: 0xA0
100  Access type: read-write
101  Description: In all modes value should be 160
102 
103 */
104 #define PLL_SHARING_WCSPLLM_VAL_W 9U
105 #define PLL_SHARING_WCSPLLM_VAL_M 0x000001FFU
106 #define PLL_SHARING_WCSPLLM_VAL_S 0U
107 
108 
109 /*-----------------------------------REGISTER------------------------------------
110  Register name: WCSPLLN
111  Offset name: PLL_SHARING_O_WCSPLLN
112  Relative address: 0x4
113  Description: WCS PLL N
114 
115  pre divider configuration for WCS PLL - primary reference
116  Default Value: 0x00000014
117 
118  Field: VAL
119  From..to bits: 0...6
120  DefaultValue: 0x14
121  Access type: read-write
122  Description: 10MHz - 5
123  26MHz - 13
124  40MHz - 20
125  52MHz - 26
126 
127 */
128 #define PLL_SHARING_WCSPLLN_VAL_W 7U
129 #define PLL_SHARING_WCSPLLN_VAL_M 0x0000007FU
130 #define PLL_SHARING_WCSPLLN_VAL_S 0U
131 /*
132 
133  Field: NSEL
134  From..to bits: 7...7
135  DefaultValue: 0x0
136  Access type: read-write
137  Description: N SELECTOR
138 
139  '1' - use MMR N value
140  '0' - use HW auto detection (default)
141 
142 */
143 #define PLL_SHARING_WCSPLLN_NSEL 0x00000080U
144 #define PLL_SHARING_WCSPLLN_NSEL_M 0x00000080U
145 #define PLL_SHARING_WCSPLLN_NSEL_S 7U
146 
147 
148 /*-----------------------------------REGISTER------------------------------------
149  Register name: WCSQFACCFG
150  Offset name: PLL_SHARING_O_WCSQFACCFG
151  Relative address: 0x8
152  Description: WCS Q FACTOR CONFIG
153 
154  swallowing logic configuration for WCS PLL for primary reference clock input - 16 LSB : 16.2MHz - 801 : 16.368MHz - 3751 : 16.8MHz - disabled : 19.2MHz - disabled : 26MHz - disabled : 32.736MHz - 3751 : 33.6MHz - disabled : 38.4MHz - disabled : 52MHz - disabled
155  Default Value: 0x00000000
156 
157  Field: SWAL
158  From..to bits: 0...23
159  DefaultValue: 0x0
160  Access type: read-write
161  Description: SWALLOWING
162 
163  swallowing logic configuration Q factor
164 
165 */
166 #define PLL_SHARING_WCSQFACCFG_SWAL_W 24U
167 #define PLL_SHARING_WCSQFACCFG_SWAL_M 0x00FFFFFFU
168 #define PLL_SHARING_WCSQFACCFG_SWAL_S 0U
169 
170 
171 /*-----------------------------------REGISTER------------------------------------
172  Register name: WCSPFACCFG
173  Offset name: PLL_SHARING_O_WCSPFACCFG
174  Relative address: 0xC
175  Description: WCS P FACTOR CONFIG
176 
177  swallowing logic configuration for WCS PLL for primary reference clock input - 16 LSB : P factor 16 LSB : 16.2MHz - 4 : 16.368MHz - 4 : 16.8MHz - disabled : 19.2MHz - disabled : 26MHz - disabled : 32.736MHz - 4 : 33.6MHz - disabled : 38.4MHz - disabled : 52MHz - disabled
178  Default Value: 0x00000000
179 
180  Field: SWAL
181  From..to bits: 0...19
182  DefaultValue: 0x0
183  Access type: read-write
184  Description: SWALLOWING
185 
186  swallowing logic configuration P factor
187 
188 */
189 #define PLL_SHARING_WCSPFACCFG_SWAL_W 20U
190 #define PLL_SHARING_WCSPFACCFG_SWAL_M 0x000FFFFFU
191 #define PLL_SHARING_WCSPFACCFG_SWAL_S 0U
192 
193 
194 /*-----------------------------------REGISTER------------------------------------
195  Register name: WCSPLLSWAL
196  Offset name: PLL_SHARING_O_WCSPLLSWAL
197  Relative address: 0x10
198  Description: WCS PLL swallowing logic gen cfg
199  Default Value: 0x00000012
200 
201  Field: EN
202  From..to bits: 0...0
203  DefaultValue: 0x0
204  Access type: read-write
205  Description: enable the swallowing logic - disable when not using the bypass option
206 
207 */
208 #define PLL_SHARING_WCSPLLSWAL_EN 0x00000001U
209 #define PLL_SHARING_WCSPLLSWAL_EN_M 0x00000001U
210 #define PLL_SHARING_WCSPLLSWAL_EN_S 0U
211 /*
212 
213  Field: BYP
214  From..to bits: 1...1
215  DefaultValue: 0x1
216  Access type: read-write
217  Description: bypass the swallowing logic
218 
219 */
220 #define PLL_SHARING_WCSPLLSWAL_BYP 0x00000002U
221 #define PLL_SHARING_WCSPLLSWAL_BYP_M 0x00000002U
222 #define PLL_SHARING_WCSPLLSWAL_BYP_S 1U
223 /*
224 
225  Field: PRBSEN
226  From..to bits: 2...2
227  DefaultValue: 0x0
228  Access type: read-write
229  Description: enable prbs for adding randomization (jittering)- disable by default
230 
231 */
232 #define PLL_SHARING_WCSPLLSWAL_PRBSEN 0x00000004U
233 #define PLL_SHARING_WCSPLLSWAL_PRBSEN_M 0x00000004U
234 #define PLL_SHARING_WCSPLLSWAL_PRBSEN_S 2U
235 /*
236 
237  Field: PRBSGN
238  From..to bits: 3...3
239  DefaultValue: 0x0
240  Access type: read-write
241  Description: PRBS GAIN
242 
243  1: prbs addition is 5 bits to the right of MSB
244  0: prbs addition is 3 bits to the right of MSB
245 
246 */
247 #define PLL_SHARING_WCSPLLSWAL_PRBSGN 0x00000008U
248 #define PLL_SHARING_WCSPLLSWAL_PRBSGN_M 0x00000008U
249 #define PLL_SHARING_WCSPLLSWAL_PRBSGN_S 3U
250 /*
251 
252  Field: CONSWAL
253  From..to bits: 4...5
254  DefaultValue: 0x1
255  Access type: read-write
256  Description: CONSECUTIVE SWALLOWING
257 
258  valid values (1-3) - number of consecutive clock swallows
259  once accumulator reached Q value for WCS PLL
260 
261 */
262 #define PLL_SHARING_WCSPLLSWAL_CONSWAL_W 2U
263 #define PLL_SHARING_WCSPLLSWAL_CONSWAL_M 0x00000030U
264 #define PLL_SHARING_WCSPLLSWAL_CONSWAL_S 4U
265 
266 
267 /*-----------------------------------REGISTER------------------------------------
268  Register name: WCSPLLCFG
269  Offset name: PLL_SHARING_O_WCSPLLCFG
270  Relative address: 0x14
271  Description: WCS PLL CONFIG
272 
273  gen cfg for WCS PLL
274  Default Value: 0x012A0270
275 
276  Field: EN
277  From..to bits: 0...0
278  DefaultValue: 0x0
279  Access type: read-write
280  Description: enable like any other IP request
281 
282 */
283 #define PLL_SHARING_WCSPLLCFG_EN 0x00000001U
284 #define PLL_SHARING_WCSPLLCFG_EN_M 0x00000001U
285 #define PLL_SHARING_WCSPLLCFG_EN_S 0U
286 /*
287 
288  Field: OV
289  From..to bits: 1...2
290  DefaultValue: 0x0
291  Access type: read-write
292  Description: override register for WCS PLL enable
293 
294 */
295 #define PLL_SHARING_WCSPLLCFG_OV_W 2U
296 #define PLL_SHARING_WCSPLLCFG_OV_M 0x00000006U
297 #define PLL_SHARING_WCSPLLCFG_OV_S 1U
298 /*
299 
300  Field: LOCKCNT
301  From..to bits: 3...6
302  DefaultValue: 0xE
303  Access type: read-write
304  Description: LOCK COUNT
305 
306  time (sclk) from enabling the PLL until valid signal will rise.
307  Default is 14 since the PLL lock can go up to 200us and assuming
308 
309  untrimmed slow clk is 15us we need at least 14 cycles
310  This value can be optimized by half by s/w (Once we have trimmed slow clk)
311 
312 */
313 #define PLL_SHARING_WCSPLLCFG_LOCKCNT_W 4U
314 #define PLL_SHARING_WCSPLLCFG_LOCKCNT_M 0x00000078U
315 #define PLL_SHARING_WCSPLLCFG_LOCKCNT_S 3U
316 /*
317 
318  Field: USELOCKMON
319  From..to bits: 7...7
320  DefaultValue: 0x0
321  Access type: read-write
322  Description: USE LOCKMON
323 
324  Do not enable this bit because Analog APLL design might have lock stays '1' even when FREF is dropped to OFF.
325  From safety POV, No DCC is used in Osprey, so having a counter based for PLL assumed Lock is ok for the level of safety required
326 
327  1: use the PLL lock indication for lock
328  0: use the timer (mem_pllsh_wcs_pll_lock_cnt) for the lock
329 
330 */
331 #define PLL_SHARING_WCSPLLCFG_USELOCKMON 0x00000080U
332 #define PLL_SHARING_WCSPLLCFG_USELOCKMON_M 0x00000080U
333 #define PLL_SHARING_WCSPLLCFG_USELOCKMON_S 7U
334 /*
335 
336  Field: DISCNT
337  From..to bits: 8...10
338  DefaultValue: 0x2
339  Access type: read-write
340  Description: DISABLE COUNTER
341 
342  time (sclk) from pll request goes low to the time PLL input will go low - keep >= 2
343 
344 */
345 #define PLL_SHARING_WCSPLLCFG_DISCNT_W 3U
346 #define PLL_SHARING_WCSPLLCFG_DISCNT_M 0x00000700U
347 #define PLL_SHARING_WCSPLLCFG_DISCNT_S 8U
348 /*
349 
350  Field: FCLKSEL
351  From..to bits: 11...11
352  DefaultValue: 0x0
353  Access type: read-write
354  Description: FREF CLOCK SELECT
355 
356  select bypass option to use external clock in case PLL not working
357 
358 */
359 #define PLL_SHARING_WCSPLLCFG_FCLKSEL 0x00000800U
360 #define PLL_SHARING_WCSPLLCFG_FCLKSEL_M 0x00000800U
361 #define PLL_SHARING_WCSPLLCFG_FCLKSEL_S 11U
362 /*
363 
364  Field: GLMFCLKSEL
365  From..to bits: 12...12
366  DefaultValue: 0x0
367  Access type: read-write
368  Description: GLITCH LESS MUX FREF CLOCK SELECT
369 
370  select bypass option to use external clock in case PLL not working
371 
372 */
373 #define PLL_SHARING_WCSPLLCFG_GLMFCLKSEL 0x00001000U
374 #define PLL_SHARING_WCSPLLCFG_GLMFCLKSEL_M 0x00001000U
375 #define PLL_SHARING_WCSPLLCFG_GLMFCLKSEL_S 12U
376 /*
377 
378  Field: FCLKFSOV
379  From..to bits: 13...13
380  DefaultValue: 0x0
381  Access type: read-write
382  Description: FREF CLOCK FUSE OVERRIDE
383 
384  '1' - override the PLL_BYPASS fuse with PLL_BYPASS MMR: mem_pllsh_fref_clk_sel; '0' do not override
385 
386 */
387 #define PLL_SHARING_WCSPLLCFG_FCLKFSOV 0x00002000U
388 #define PLL_SHARING_WCSPLLCFG_FCLKFSOV_M 0x00002000U
389 #define PLL_SHARING_WCSPLLCFG_FCLKFSOV_S 13U
390 /*
391 
392  Field: LOCKOV
393  From..to bits: 14...15
394  DefaultValue: 0x0
395  Access type: read-write
396  Description: LOCK OVERRIDE
397 
398  override option for WCS PLL lock indication - should be used when using the override option for PLL enable
399 
400 */
401 #define PLL_SHARING_WCSPLLCFG_LOCKOV_W 2U
402 #define PLL_SHARING_WCSPLLCFG_LOCKOV_M 0x0000C000U
403 #define PLL_SHARING_WCSPLLCFG_LOCKOV_S 14U
404 /*
405 
406  Field: LFREQMODEN
407  From..to bits: 16...16
408  DefaultValue: 0x0
409  Access type: read-write
410  Description: LOW FREQUENCY MODE ENABLE
411 
412  connected to WCS PLL LOWFREQ_MODE_EN input : 0:Normal mode : 1: Divide by 2 the PLL clock out
413 
414 */
415 #define PLL_SHARING_WCSPLLCFG_LFREQMODEN 0x00010000U
416 #define PLL_SHARING_WCSPLLCFG_LFREQMODEN_M 0x00010000U
417 #define PLL_SHARING_WCSPLLCFG_LFREQMODEN_S 16U
418 /*
419 
420  Field: HFREQMODEN
421  From..to bits: 17...17
422  DefaultValue: 0x1
423  Access type: read-write
424  Description: HIGH FREQUENCY MODE ENABLE
425 
426  connected to WCS PLL HIGHFREQ_MODE_EN input : 0: 300M-500M ICO disabled : 1: 300M-400M/400M-500M ICO enabled : based on CONTROL bits [7:6]
427 
428 */
429 #define PLL_SHARING_WCSPLLCFG_HFREQMODEN 0x00020000U
430 #define PLL_SHARING_WCSPLLCFG_HFREQMODEN_M 0x00020000U
431 #define PLL_SHARING_WCSPLLCFG_HFREQMODEN_S 17U
432 /*
433 
434  Field: CLRVCOSLP
435  From..to bits: 18...18
436  DefaultValue: 0x0
437  Access type: read-write
438  Description: CLEAR VCO DURING SLEEP
439 
440  '1' - during sleep VCO 300-400MHz will be gated
441  '0' - during sleep VCO 300-400MHz will stay high
442 
443 */
444 #define PLL_SHARING_WCSPLLCFG_CLRVCOSLP 0x00040000U
445 #define PLL_SHARING_WCSPLLCFG_CLRVCOSLP_M 0x00040000U
446 #define PLL_SHARING_WCSPLLCFG_CLRVCOSLP_S 18U
447 /*
448 
449  Field: PHSEL
450  From..to bits: 19...23
451  DefaultValue: 0x5
452  Access type: read-write
453  Description: PHASE SELECT
454 
455  the following values should be used:
456  10MHz - up to decimal 0..31
457  26MHz - up to decimal 0..11
458  40MHz - up to decimal 0..7
459  52MHz - up to decimal 0..5
460  notes:
461  *delayes are set in 320MHz clk
462  *due to sync issues delay could get +1 of the setting value
463 
464 */
465 #define PLL_SHARING_WCSPLLCFG_PHSEL_W 5U
466 #define PLL_SHARING_WCSPLLCFG_PHSEL_M 0x00F80000U
467 #define PLL_SHARING_WCSPLLCFG_PHSEL_S 19U
468 /*
469 
470  Field: PHASEOV
471  From..to bits: 24...24
472  DefaultValue: 0x1
473  Access type: read-write
474  Description: PHASE OVERRIDE
475 
476  '1' - Overrideing phase control implementation.
477 
478 */
479 #define PLL_SHARING_WCSPLLCFG_PHASEOV 0x01000000U
480 #define PLL_SHARING_WCSPLLCFG_PHASEOV_M 0x01000000U
481 #define PLL_SHARING_WCSPLLCFG_PHASEOV_S 24U
482 
483 
484 /*-----------------------------------REGISTER------------------------------------
485  Register name: CR
486  Offset name: PLL_SHARING_O_CR
487  Relative address: 0x18
488  Description: CORE configuration for PLL Sharing
489  Default Value: 0x00000000
490 
491  Field: PLLEN
492  From..to bits: 0...0
493  DefaultValue: 0x0
494  Access type: read-write
495  Description: PLL ENABLE
496 
497  register for Core to enable PLLs according to the type instead of using HW request core_pll_en
498 
499 */
500 #define PLL_SHARING_CR_PLLEN 0x00000001U
501 #define PLL_SHARING_CR_PLLEN_M 0x00000001U
502 #define PLL_SHARING_CR_PLLEN_S 0U
503 
504 
505 /*-----------------------------------REGISTER------------------------------------
506  Register name: GEN
507  Offset name: PLL_SHARING_O_GEN
508  Relative address: 0x1C
509  Description: GENERAL
510 
511  PLL divider configuration
512  Default Value: 0x0008015E
513 
514  Field: CRDIV2OV
515  From..to bits: 0...0
516  DefaultValue: 0x0
517  Access type: read-write
518  Description: CORE DIVIDER 2 OVERRIDE
519 
520  1: no division (80MHz clock) : 0: divide by 2 (40MHz clock)
521 
522 */
523 #define PLL_SHARING_GEN_CRDIV2OV 0x00000001U
524 #define PLL_SHARING_GEN_CRDIV2OV_M 0x00000001U
525 #define PLL_SHARING_GEN_CRDIV2OV_S 0U
526 /*
527 
528  Field: CRM3DIV2OV
529  From..to bits: 1...1
530  DefaultValue: 0x1
531  Access type: read-write
532  Description: CORE M3 DIVIDER OVERRIDE
533 
534  1: no division (80MHz clock) : 0: divide by 2 (40MHz clock)
535 
536 */
537 #define PLL_SHARING_GEN_CRM3DIV2OV 0x00000002U
538 #define PLL_SHARING_GEN_CRM3DIV2OV_M 0x00000002U
539 #define PLL_SHARING_GEN_CRM3DIV2OV_S 1U
540 /*
541 
542  Field: SOCDIV2OV
543  From..to bits: 2...2
544  DefaultValue: 0x1
545  Access type: read-write
546  Description: SOC DIVIDER 2 OVERRIDE
547 
548  1: no division (80MHz clock) : 0: divide by 2 (40MHz clock)
549 
550 */
551 #define PLL_SHARING_GEN_SOCDIV2OV 0x00000004U
552 #define PLL_SHARING_GEN_SOCDIV2OV_M 0x00000004U
553 #define PLL_SHARING_GEN_SOCDIV2OV_S 2U
554 /*
555 
556  Field: PPLLDIVVAL
557  From..to bits: 4...5
558  DefaultValue: 0x1
559  Access type: read-write
560  Description: PSCON PLL DIVIDER OVERRIDE
561 
562  0: no division (80MHz clock) : PSCON div val. Set the PSCON clock period: 0-1us; 1-2us; 2-4us; 3-16us
563 
564 */
565 #define PLL_SHARING_GEN_PPLLDIVVAL_W 2U
566 #define PLL_SHARING_GEN_PPLLDIVVAL_M 0x00000030U
567 #define PLL_SHARING_GEN_PPLLDIVVAL_S 4U
568 /*
569 
570  Field: PPLLLDDIVV
571  From..to bits: 6...6
572  DefaultValue: 0x1
573  Access type: read-write
574  Description: PSCON PLL LOAD DIVIDER VALUE
575 
576  Load div value indication. Default is 1
577 
578 */
579 #define PLL_SHARING_GEN_PPLLLDDIVV 0x00000040U
580 #define PLL_SHARING_GEN_PPLLLDDIVV_M 0x00000040U
581 #define PLL_SHARING_GEN_PPLLLDDIVV_S 6U
582 /*
583 
584  Field: PCLKSRCCNG
585  From..to bits: 7...7
586  DefaultValue: 0x0
587  Access type: read-write
588  Description: PSCON CLOCK SOURCE CHANGE
589 
590  Change divider input clock
591 
592 */
593 #define PLL_SHARING_GEN_PCLKSRCCNG 0x00000080U
594 #define PLL_SHARING_GEN_PCLKSRCCNG_M 0x00000080U
595 #define PLL_SHARING_GEN_PCLKSRCCNG_S 7U
596 /*
597 
598  Field: PDIVEN
599  From..to bits: 8...8
600  DefaultValue: 0x1
601  Access type: read-write
602  Description: PSCON DIVIDER ENABLE
603 
604  divider enable. Default is 1. Enabled.
605 
606 */
607 #define PLL_SHARING_GEN_PDIVEN 0x00000100U
608 #define PLL_SHARING_GEN_PDIVEN_M 0x00000100U
609 #define PLL_SHARING_GEN_PDIVEN_S 8U
610 /*
611 
612  Field: PHYDIV2OV
613  From..to bits: 9...9
614  DefaultValue: 0x0
615  Access type: read-write
616  Description: PHY DIVIDER 2 OVERRIDE
617 
618  1: no division (80MHz clock) : 0: divide by 2 (40MHz clock)
619 
620 */
621 #define PLL_SHARING_GEN_PHYDIV2OV 0x00000200U
622 #define PLL_SHARING_GEN_PHYDIV2OV_M 0x00000200U
623 #define PLL_SHARING_GEN_PHYDIV2OV_S 9U
624 /*
625 
626  Field: CRM3ICGOV
627  From..to bits: 16...16
628  DefaultValue: 0x0
629  Access type: read-write
630  Description: CORE M3 ICG OVERRIDE
631 
632  '0' - No Override
633  '1' - Enables CORE M3 80MHz CLK
634 
635 */
636 #define PLL_SHARING_GEN_CRM3ICGOV 0x00010000U
637 #define PLL_SHARING_GEN_CRM3ICGOV_M 0x00010000U
638 #define PLL_SHARING_GEN_CRM3ICGOV_S 16U
639 /*
640 
641  Field: SOCICGOV
642  From..to bits: 17...17
643  DefaultValue: 0x0
644  Access type: read-write
645  Description: SOC ICG OVERRIDE
646 
647  '0' - No Override
648  '1' - Enables SOC 80MHz CLK
649 
650 */
651 #define PLL_SHARING_GEN_SOCICGOV 0x00020000U
652 #define PLL_SHARING_GEN_SOCICGOV_M 0x00020000U
653 #define PLL_SHARING_GEN_SOCICGOV_S 17U
654 /*
655 
656  Field: HICGOV
657  From..to bits: 18...18
658  DefaultValue: 0x0
659  Access type: read-write
660  Description: HOST ICG OVERRIDE
661 
662  '0' - No Override
663  '1' - Enables HOST CLKs
664 
665 */
666 #define PLL_SHARING_GEN_HICGOV 0x00040000U
667 #define PLL_SHARING_GEN_HICGOV_M 0x00040000U
668 #define PLL_SHARING_GEN_HICGOV_S 18U
669 /*
670 
671  Field: PICGOV
672  From..to bits: 19...19
673  DefaultValue: 0x1
674  Access type: read-write
675  Description: PSCON ICG OVERRIDE
676 
677  Default is 1
678 
679 */
680 #define PLL_SHARING_GEN_PICGOV 0x00080000U
681 #define PLL_SHARING_GEN_PICGOV_M 0x00080000U
682 #define PLL_SHARING_GEN_PICGOV_S 19U
683 /*
684 
685  Field: GPADCICGOV
686  From..to bits: 20...20
687  DefaultValue: 0x0
688  Access type: read-write
689  Description: GPADC ICG OVERRIDE
690 
691  '1' - enable gpadc clk
692  '0' - disable clock
693 
694 */
695 #define PLL_SHARING_GEN_GPADCICGOV 0x00100000U
696 #define PLL_SHARING_GEN_GPADCICGOV_M 0x00100000U
697 #define PLL_SHARING_GEN_GPADCICGOV_S 20U
698 /*
699 
700  Field: CRICGOV
701  From..to bits: 21...21
702  DefaultValue: 0x0
703  Access type: read-write
704  Description: CORE ICG OVERRIDE
705 
706  1: ICG of PLL to Core is forced enable : 0: ICG is enabled according to elp request and core_pll_en
707 
708 */
709 #define PLL_SHARING_GEN_CRICGOV 0x00200000U
710 #define PLL_SHARING_GEN_CRICGOV_M 0x00200000U
711 #define PLL_SHARING_GEN_CRICGOV_S 21U
712 /*
713 
714  Field: PHYICGOV
715  From..to bits: 22...22
716  DefaultValue: 0x0
717  Access type: read-write
718  Description: PHY ICG OVERRIDE
719 
720  1: ICG of PLL to PHY is forced enable : 0: ICG is enabled according to elp request and phy_pll_en
721 
722 */
723 #define PLL_SHARING_GEN_PHYICGOV 0x00400000U
724 #define PLL_SHARING_GEN_PHYICGOV_M 0x00400000U
725 #define PLL_SHARING_GEN_PHYICGOV_S 22U
726 /*
727 
728  Field: UALGNPHYCR
729  From..to bits: 24...24
730  DefaultValue: 0x0
731  Access type: read-write
732  Description: UNALIGNED PHY TO CORE
733 
734  1: PHY and core clk will get phase difference
735 
736 */
737 #define PLL_SHARING_GEN_UALGNPHYCR 0x01000000U
738 #define PLL_SHARING_GEN_UALGNPHYCR_M 0x01000000U
739 #define PLL_SHARING_GEN_UALGNPHYCR_S 24U
740 
741 
742 /*-----------------------------------REGISTER------------------------------------
743  Register name: WCSCFG
744  Offset name: PLL_SHARING_O_WCSCFG
745  Relative address: 0x20
746  Description: WCS CONFIG
747 
748  WCS PLL control input : Refer to WCSPLL spec
749  Default Value: 0x00045100
750 
751  Field: CTL
752  From..to bits: 0...31
753  DefaultValue: 0x45100
754  Access type: read-write
755  Description: CONTROL
756 
757 */
758 #define PLL_SHARING_WCSCFG_CTL_W 32U
759 #define PLL_SHARING_WCSCFG_CTL_M 0xFFFFFFFFU
760 #define PLL_SHARING_WCSCFG_CTL_S 0U
761 
762 
763 /*-----------------------------------REGISTER------------------------------------
764  Register name: GENCFG
765  Offset name: PLL_SHARING_O_GENCFG
766  Relative address: 0x24
767  Description: GENERAL CONFIGURATION
768 
769  PLL sharing module general configurations
770  Default Value: 0x00000000
771 
772  Field: DFTWCSPICGOV
773  From..to bits: 0...0
774  DefaultValue: 0x0
775  Access type: read-write
776  Description: DFT WCS PLL ICG OVERRIDE
777 
778  control WCS PLL clock toward test ctrl
779 
780 */
781 #define PLL_SHARING_GENCFG_DFTWCSPICGOV 0x00000001U
782 #define PLL_SHARING_GENCFG_DFTWCSPICGOV_M 0x00000001U
783 #define PLL_SHARING_GENCFG_DFTWCSPICGOV_S 0U
784 
785 
786 /*-----------------------------------REGISTER------------------------------------
787  Register name: LOCK
788  Offset name: PLL_SHARING_O_LOCK
789  Relative address: 0x28
790  Description: Lock status reg
791  Default Value: 0x00000000
792 
793  Field: STS
794  From..to bits: 0...0
795  DefaultValue: 0x0
796  Access type: read-only
797  Description: STATUS
798 
799  PLL Timer for Lock status register
800  in case MEM_USE_LOCKMON = 1 - this indication is similar to LOCKMON_STS
801  in case MEM_USE_LOCKMON = 0 - this indication reflect the Lock Timer (configured by PLL_LOCK_CNT) status (1 means elapsed)
802 
803 */
804 #define PLL_SHARING_LOCK_STS 0x00000001U
805 #define PLL_SHARING_LOCK_STS_M 0x00000001U
806 #define PLL_SHARING_LOCK_STS_S 0U
807 /*
808 
809  Field: MONSTS
810  From..to bits: 1...1
811  DefaultValue: 0x0
812  Access type: read-only
813  Description: LOCK MONITOR STATUS
814 
815  PLL Lock status register
816 
817 */
818 #define PLL_SHARING_LOCK_MONSTS 0x00000002U
819 #define PLL_SHARING_LOCK_MONSTS_M 0x00000002U
820 #define PLL_SHARING_LOCK_MONSTS_S 1U
821 
822 
823 /*-----------------------------------REGISTER------------------------------------
824  Register name: SOPBM
825  Offset name: PLL_SHARING_O_SOPBM
826  Relative address: 0x2C
827  Description: SOP MASK
828 
829  PLL sharing module SOP mask config
830  Default Value: 0x00000000
831 
832  Field: PLLEN
833  From..to bits: 0...0
834  DefaultValue: 0x0
835  Access type: read-write
836  Description: PLL ENABLE
837 
838  SOP mask - Mask SOPs Bypass so PLL can be enabled. Default is 0 - "do not mask SOP"
839 
840 */
841 #define PLL_SHARING_SOPBM_PLLEN 0x00000001U
842 #define PLL_SHARING_SOPBM_PLLEN_M 0x00000001U
843 #define PLL_SHARING_SOPBM_PLLEN_S 0U
844 /*
845 
846  Field: FREFSEL
847  From..to bits: 1...1
848  DefaultValue: 0x0
849  Access type: read-write
850  Description: FREF SELECTOR
851 
852  SOP mask - Mask SOPs Bypass so PLL FREF selected from HFXT over DIO pin. Default is 0 - "do not mask SOP"
853 
854 */
855 #define PLL_SHARING_SOPBM_FREFSEL 0x00000002U
856 #define PLL_SHARING_SOPBM_FREFSEL_M 0x00000002U
857 #define PLL_SHARING_SOPBM_FREFSEL_S 1U
858 /*
859 
860  Field: BYPSEL
861  From..to bits: 2...2
862  DefaultValue: 0x0
863  Access type: read-write
864  Description: BYPASS SELECTOR
865 
866  SOP mask - Mask SOPs Bypass so PLL Bypass can be can be bypassed by SoC PLL. Default is 0 - "do not mask SOP"
867 
868 */
869 #define PLL_SHARING_SOPBM_BYPSEL 0x00000004U
870 #define PLL_SHARING_SOPBM_BYPSEL_M 0x00000004U
871 #define PLL_SHARING_SOPBM_BYPSEL_S 2U
872 
873 
874 /*-----------------------------------REGISTER------------------------------------
875  Register name: DBGSS
876  Offset name: PLL_SHARING_O_DBGSS
877  Relative address: 0x30
878  Description: DEBUGSS
879  Default Value: 0x00000000
880 
881  Field: FSEL
882  From..to bits: 0...0
883  DefaultValue: 0x0
884  Access type: read-write
885  Description: FAST SELECTOR
886 
887  Lock status register; clear upon read by S/W
888 
889 */
890 #define PLL_SHARING_DBGSS_FSEL 0x00000001U
891 #define PLL_SHARING_DBGSS_FSEL_M 0x00000001U
892 #define PLL_SHARING_DBGSS_FSEL_S 0U
893 
894 
895 /*-----------------------------------REGISTER------------------------------------
896  Register name: ICG
897  Offset name: PLL_SHARING_O_ICG
898  Relative address: 0x34
899  Description: ICG
900  Default Value: 0x00000050
901 
902  Field: CRM3DIS
903  From..to bits: 0...0
904  DefaultValue: 0x0
905  Access type: read-write
906  Description: CORE M3 DISABLE
907 
908  ICG Disable control
909  '1' - disable
910  '0' - enable
911 
912 */
913 #define PLL_SHARING_ICG_CRM3DIS 0x00000001U
914 #define PLL_SHARING_ICG_CRM3DIS_M 0x00000001U
915 #define PLL_SHARING_ICG_CRM3DIS_S 0U
916 /*
917 
918  Field: CRDIS
919  From..to bits: 1...1
920  DefaultValue: 0x0
921  Access type: read-write
922  Description: CORE ICS DISABLE
923 
924  ICG Disable control
925  '1' - disable
926  '0' - enable
927 
928 */
929 #define PLL_SHARING_ICG_CRDIS 0x00000002U
930 #define PLL_SHARING_ICG_CRDIS_M 0x00000002U
931 #define PLL_SHARING_ICG_CRDIS_S 1U
932 /*
933 
934  Field: SOCDIS
935  From..to bits: 2...2
936  DefaultValue: 0x0
937  Access type: read-write
938  Description: SOC DISABLE
939 
940  ICG Disable control
941  '1' - disable
942  '0' - enable
943 
944 */
945 #define PLL_SHARING_ICG_SOCDIS 0x00000004U
946 #define PLL_SHARING_ICG_SOCDIS_M 0x00000004U
947 #define PLL_SHARING_ICG_SOCDIS_S 2U
948 /*
949 
950  Field: HDIS
951  From..to bits: 3...3
952  DefaultValue: 0x0
953  Access type: read-write
954  Description: HOST DISABLE
955 
956  ICG Disable control
957  '1' - disable
958  '0' - enable
959 
960 */
961 #define PLL_SHARING_ICG_HDIS 0x00000008U
962 #define PLL_SHARING_ICG_HDIS_M 0x00000008U
963 #define PLL_SHARING_ICG_HDIS_S 3U
964 /*
965 
966  Field: PLL32DIS
967  From..to bits: 4...4
968  DefaultValue: 0x1
969  Access type: read-write
970  Description: PLL 32 DISABLE
971 
972  ICG control
973  '1' - disable
974  '0' - enable
975 
976 */
977 #define PLL_SHARING_ICG_PLL32DIS 0x00000010U
978 #define PLL_SHARING_ICG_PLL32DIS_M 0x00000010U
979 #define PLL_SHARING_ICG_PLL32DIS_S 4U
980 /*
981 
982  Field: PHYDIS
983  From..to bits: 5...5
984  DefaultValue: 0x0
985  Access type: read-write
986  Description: PHY DISABLE
987 
988  ICG Disable control
989  '1' - disable
990  '0' - enable
991 
992 */
993 #define PLL_SHARING_ICG_PHYDIS 0x00000020U
994 #define PLL_SHARING_ICG_PHYDIS_M 0x00000020U
995 #define PLL_SHARING_ICG_PHYDIS_S 5U
996 /*
997 
998  Field: SOCPSWLDIS
999  From..to bits: 6...6
1000  DefaultValue: 0x1
1001  Access type: read-write
1002  Description: SOC PSWL DISABLE
1003 
1004  ICG Disable control
1005  '1' - disable
1006  '0' - enable
1007 
1008 */
1009 #define PLL_SHARING_ICG_SOCPSWLDIS 0x00000040U
1010 #define PLL_SHARING_ICG_SOCPSWLDIS_M 0x00000040U
1011 #define PLL_SHARING_ICG_SOCPSWLDIS_S 6U
1012 
1013 #endif /* __HW_PLL_SHARING_H__*/