forked from adafruit/circuitpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhw_gprcm.h
More file actions
3322 lines (2822 loc) · 163 KB
/
Copy pathhw_gprcm.h
File metadata and controls
3322 lines (2822 loc) · 163 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//*****************************************************************************
//
// Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
//
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
//*****************************************************************************
#ifndef __HW_GPRCM_H__
#define __HW_GPRCM_H__
//*****************************************************************************
//
// The following are defines for the GPRCM register offsets.
//
//*****************************************************************************
#define GPRCM_O_APPS_SOFT_RESET 0x00000000
#define GPRCM_O_APPS_LPDS_WAKEUP_CFG \
0x00000004
#define GPRCM_O_APPS_LPDS_WAKEUP_SRC \
0x00000008
#define GPRCM_O_APPS_RESET_CAUSE \
0x0000000C
#define GPRCM_O_APPS_LPDS_WAKETIME_OPP_CFG \
0x00000010
#define GPRCM_O_APPS_SRAM_DSLP_CFG \
0x00000018
#define GPRCM_O_APPS_SRAM_LPDS_CFG \
0x0000001C
#define GPRCM_O_APPS_LPDS_WAKETIME_WAKE_CFG \
0x00000020
#define GPRCM_O_TOP_DIE_ENABLE 0x00000100
#define GPRCM_O_TOP_DIE_ENABLE_PARAMETERS \
0x00000104
#define GPRCM_O_MCU_GLOBAL_SOFT_RESET \
0x00000108
#define GPRCM_O_ADC_CLK_CONFIG 0x0000010C
#define GPRCM_O_APPS_GPIO_WAKE_CONF \
0x00000110
#define GPRCM_O_EN_NWP_BOOT_WO_DEVINIT \
0x00000114
#define GPRCM_O_MEM_HCLK_DIV_CFG \
0x00000118
#define GPRCM_O_MEM_SYSCLK_DIV_CFG \
0x0000011C
#define GPRCM_O_APLLMCS_LOCK_TIME_CONF \
0x00000120
#define GPRCM_O_NWP_SOFT_RESET 0x00000400
#define GPRCM_O_NWP_LPDS_WAKEUP_CFG \
0x00000404
#define GPRCM_O_NWP_LPDS_WAKEUP_SRC \
0x00000408
#define GPRCM_O_NWP_RESET_CAUSE 0x0000040C
#define GPRCM_O_NWP_LPDS_WAKETIME_OPP_CFG \
0x00000410
#define GPRCM_O_NWP_SRAM_DSLP_CFG \
0x00000418
#define GPRCM_O_NWP_SRAM_LPDS_CFG \
0x0000041C
#define GPRCM_O_NWP_LPDS_WAKETIME_WAKE_CFG \
0x00000420
#define GPRCM_O_NWP_AUTONMS_SPI_MASTER_SEL \
0x00000424
#define GPRCM_O_NWP_AUTONMS_SPI_IDLE_REQ \
0x00000428
#define GPRCM_O_WLAN_TO_NWP_WAKE_REQUEST \
0x0000042C
#define GPRCM_O_NWP_TO_WLAN_WAKE_REQUEST \
0x00000430
#define GPRCM_O_NWP_GPIO_WAKE_CONF \
0x00000434
#define GPRCM_O_GPRCM_EFUSE_READ_REG12 \
0x00000438
#define GPRCM_O_GPRCM_DIEID_READ_REG5 \
0x00000448
#define GPRCM_O_GPRCM_DIEID_READ_REG6 \
0x0000044C
#define GPRCM_O_REF_FSM_CFG0 0x00000800
#define GPRCM_O_REF_FSM_CFG1 0x00000804
#define GPRCM_O_APLLMCS_WLAN_CONFIG0_40 \
0x00000808
#define GPRCM_O_APLLMCS_WLAN_CONFIG1_40 \
0x0000080C
#define GPRCM_O_APLLMCS_WLAN_CONFIG0_26 \
0x00000810
#define GPRCM_O_APLLMCS_WLAN_CONFIG1_26 \
0x00000814
#define GPRCM_O_APLLMCS_WLAN_OVERRIDES \
0x00000818
#define GPRCM_O_APLLMCS_MCU_RUN_CONFIG0_38P4 \
0x0000081C
#define GPRCM_O_APLLMCS_MCU_RUN_CONFIG1_38P4 \
0x00000820
#define GPRCM_O_APLLMCS_MCU_RUN_CONFIG0_26 \
0x00000824
#define GPRCM_O_APLLMCS_MCU_RUN_CONFIG1_26 \
0x00000828
#define GPRCM_O_SPARE_RW0 0x0000082C
#define GPRCM_O_SPARE_RW1 0x00000830
#define GPRCM_O_APLLMCS_MCU_OVERRIDES \
0x00000834
#define GPRCM_O_SYSCLK_SWITCH_STATUS \
0x00000838
#define GPRCM_O_REF_LDO_CONTROLS \
0x0000083C
#define GPRCM_O_REF_RTRIM_CONTROL \
0x00000840
#define GPRCM_O_REF_SLICER_CONTROLS0 \
0x00000844
#define GPRCM_O_REF_SLICER_CONTROLS1 \
0x00000848
#define GPRCM_O_REF_ANA_BGAP_CONTROLS0 \
0x0000084C
#define GPRCM_O_REF_ANA_BGAP_CONTROLS1 \
0x00000850
#define GPRCM_O_REF_ANA_SPARE_CONTROLS0 \
0x00000854
#define GPRCM_O_REF_ANA_SPARE_CONTROLS1 \
0x00000858
#define GPRCM_O_MEMSS_PSCON_OVERRIDES0 \
0x0000085C
#define GPRCM_O_MEMSS_PSCON_OVERRIDES1 \
0x00000860
#define GPRCM_O_PLL_REF_LOCK_OVERRIDES \
0x00000864
#define GPRCM_O_MCU_PSCON_DEBUG 0x00000868
#define GPRCM_O_MEMSS_PWR_PS 0x0000086C
#define GPRCM_O_REF_FSM_DEBUG 0x00000870
#define GPRCM_O_MEM_SYS_OPP_REQ_OVERRIDE \
0x00000874
#define GPRCM_O_MEM_TESTCTRL_PD_OPP_CONFIG \
0x00000878
#define GPRCM_O_MEM_WL_FAST_CLK_REQ_OVERRIDES \
0x0000087C
#define GPRCM_O_MEM_MCU_PD_MODE_REQ_OVERRIDES \
0x00000880
#define GPRCM_O_MEM_MCSPI_SRAM_OFF_REQ_OVERRIDES \
0x00000884
#define GPRCM_O_MEM_WLAN_APLLMCS_OVERRIDES \
0x00000888
#define GPRCM_O_MEM_REF_FSM_CFG2 \
0x0000088C
#define GPRCM_O_TESTCTRL_POWER_CTRL \
0x00000C10
#define GPRCM_O_SSDIO_POWER_CTRL \
0x00000C14
#define GPRCM_O_MCSPI_N1_POWER_CTRL \
0x00000C18
#define GPRCM_O_WELP_POWER_CTRL 0x00000C1C
#define GPRCM_O_WL_SDIO_POWER_CTRL \
0x00000C20
#define GPRCM_O_WLAN_SRAM_ACTIVE_PWR_CFG \
0x00000C24
#define GPRCM_O_WLAN_SRAM_SLEEP_PWR_CFG \
0x00000C28
#define GPRCM_O_APPS_SECURE_INIT_DONE \
0x00000C30
#define GPRCM_O_APPS_DEV_MODE_INIT_DONE \
0x00000C34
#define GPRCM_O_EN_APPS_REBOOT 0x00000C38
#define GPRCM_O_MEM_APPS_PERIPH_PRESENT \
0x00000C3C
#define GPRCM_O_MEM_NWP_PERIPH_PRESENT \
0x00000C40
#define GPRCM_O_MEM_SHARED_PERIPH_PRESENT \
0x00000C44
#define GPRCM_O_NWP_PWR_STATE 0x00000C48
#define GPRCM_O_APPS_PWR_STATE 0x00000C4C
#define GPRCM_O_MCU_PWR_STATE 0x00000C50
#define GPRCM_O_WTOP_PM_PS 0x00000C54
#define GPRCM_O_WTOP_PD_RESETZ_OVERRIDE_REG \
0x00000C58
#define GPRCM_O_WELP_PD_RESETZ_OVERRIDE_REG \
0x00000C5C
#define GPRCM_O_WL_SDIO_PD_RESETZ_OVERRIDE_REG \
0x00000C60
#define GPRCM_O_SSDIO_PD_RESETZ_OVERRIDE_REG \
0x00000C64
#define GPRCM_O_MCSPI_N1_PD_RESETZ_OVERRIDE_REG \
0x00000C68
#define GPRCM_O_TESTCTRL_PD_RESETZ_OVERRIDE_REG \
0x00000C6C
#define GPRCM_O_MCU_PD_RESETZ_OVERRIDE_REG \
0x00000C70
#define GPRCM_O_GPRCM_EFUSE_READ_REG0 \
0x00000C78
#define GPRCM_O_GPRCM_EFUSE_READ_REG1 \
0x00000C7C
#define GPRCM_O_GPRCM_EFUSE_READ_REG2 \
0x00000C80
#define GPRCM_O_GPRCM_EFUSE_READ_REG3 \
0x00000C84
#define GPRCM_O_WTOP_MEM_RET_CFG \
0x00000C88
#define GPRCM_O_COEX_CLK_SWALLOW_CFG0 \
0x00000C8C
#define GPRCM_O_COEX_CLK_SWALLOW_CFG1 \
0x00000C90
#define GPRCM_O_COEX_CLK_SWALLOW_CFG2 \
0x00000C94
#define GPRCM_O_COEX_CLK_SWALLOW_ENABLE \
0x00000C98
#define GPRCM_O_DCDC_CLK_GEN_CONFIG \
0x00000C9C
#define GPRCM_O_GPRCM_EFUSE_READ_REG4 \
0x00000CA0
#define GPRCM_O_GPRCM_EFUSE_READ_REG5 \
0x00000CA4
#define GPRCM_O_GPRCM_EFUSE_READ_REG6 \
0x00000CA8
#define GPRCM_O_GPRCM_EFUSE_READ_REG7 \
0x00000CAC
#define GPRCM_O_GPRCM_EFUSE_READ_REG8 \
0x00000CB0
#define GPRCM_O_GPRCM_EFUSE_READ_REG9 \
0x00000CB4
#define GPRCM_O_GPRCM_EFUSE_READ_REG10 \
0x00000CB8
#define GPRCM_O_GPRCM_EFUSE_READ_REG11 \
0x00000CBC
#define GPRCM_O_GPRCM_DIEID_READ_REG0 \
0x00000CC0
#define GPRCM_O_GPRCM_DIEID_READ_REG1 \
0x00000CC4
#define GPRCM_O_GPRCM_DIEID_READ_REG2 \
0x00000CC8
#define GPRCM_O_GPRCM_DIEID_READ_REG3 \
0x00000CCC
#define GPRCM_O_GPRCM_DIEID_READ_REG4 \
0x00000CD0
#define GPRCM_O_APPS_SS_OVERRIDES \
0x00000CD4
#define GPRCM_O_NWP_SS_OVERRIDES \
0x00000CD8
#define GPRCM_O_SHARED_SS_OVERRIDES \
0x00000CDC
#define GPRCM_O_IDMEM_CORE_RST_OVERRIDES \
0x00000CE0
#define GPRCM_O_TOP_DIE_FSM_OVERRIDES \
0x00000CE4
#define GPRCM_O_MCU_PSCON_OVERRIDES \
0x00000CE8
#define GPRCM_O_WTOP_PSCON_OVERRIDES \
0x00000CEC
#define GPRCM_O_WELP_PSCON_OVERRIDES \
0x00000CF0
#define GPRCM_O_WL_SDIO_PSCON_OVERRIDES \
0x00000CF4
#define GPRCM_O_MCSPI_PSCON_OVERRIDES \
0x00000CF8
#define GPRCM_O_SSDIO_PSCON_OVERRIDES \
0x00000CFC
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_APPS_SOFT_RESET register.
//
//******************************************************************************
#define GPRCM_APPS_SOFT_RESET_APPS_SOFT_RESET1 \
0x00000002 // Soft-reset1 for APPS : Cortex
// sysrstn is asserted and in
// addition to that the associated
// APPS Peripherals are also reset.
// This is an auto-clear bit.
#define GPRCM_APPS_SOFT_RESET_APPS_SOFT_RESET0 \
0x00000001 // Soft-reset0 for APPS : Only
// sys-resetn for Cortex will be
// asserted. This is an auto-clear
// bit.
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_APPS_LPDS_WAKEUP_CFG register.
//
//******************************************************************************
#define GPRCM_APPS_LPDS_WAKEUP_CFG_APPS_LPDS_WAKEUP_CFG_M \
0x000000FF // Mask for LPDS Wakeup interrupt :
// [7] - Host IRQ from NWP [6] -
// NWP_LPDS_Wake_irq (TRUE_LPDS) [5]
// - NWP Wake-request to APPS [4] -
// GPIO [3:1] - Reserved [0] - LPDS
// Wakeup-timer
#define GPRCM_APPS_LPDS_WAKEUP_CFG_APPS_LPDS_WAKEUP_CFG_S 0
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_APPS_LPDS_WAKEUP_SRC register.
//
//******************************************************************************
#define GPRCM_APPS_LPDS_WAKEUP_SRC_APPS_LPDS_WAKEUP_SRC_M \
0x000000FF // Indicates the cause for wakeup
// from LPDS : [7] - Host IRQ from
// NWP [6] - NWP_LPDS_Wake_irq
// (TRUE_LPDS) [5] - NWP
// Wake-request to APPS [4] - GPIO
// [3:1] - Reserved [0] - LPDS
// Wakeup-timer
#define GPRCM_APPS_LPDS_WAKEUP_SRC_APPS_LPDS_WAKEUP_SRC_S 0
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_APPS_RESET_CAUSE register.
//
//******************************************************************************
#define GPRCM_APPS_RESET_CAUSE_APPS_RESET_CAUSE_M \
0x000000FF // Indicates the reset cause for
// APPS : "0000" - Wake from HIB/OFF
// mode; "0001" - Wake from LPDS ;
// "0010" - Reserved ; "0011" -
// Soft-reset0 (Only APPS
// Cortex-sysrstn is asserted);
// "0100" - Soft-reset1 (APPS
// Cortex-sysrstn and APPS
// peripherals are reset); "0101" -
// WDOG0 (APPS Cortex-sysrstn and
// APPS peripherals are reset);
// "0110" - MCU Soft-reset (APPS +
// NWP Cortex-sysrstn + Peripherals
// are reset); "0111" - Secure Init
// done (Indication that reset has
// happened after DevInit); "1000" -
// Dev Mode Patch Init done (During
// development mode, patch
// downloading and Cortex
// re-vectoring is completed)
#define GPRCM_APPS_RESET_CAUSE_APPS_RESET_CAUSE_S 0
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_APPS_LPDS_WAKETIME_OPP_CFG register.
//
//******************************************************************************
#define GPRCM_APPS_LPDS_WAKETIME_OPP_CFG_APPS_LPDS_WAKETIME_OPP_CFG_M \
0xFFFFFFFF // OPP Request Configuration
// (Number of slow-clk cycles) for
// LPDS Wake-timer : This
// configuration implies the RTC
// time-stamp, which must be few
// slow-clks prior to
// APPS_LPDS_WAKETIME_WAKE_CFG, such
// that by the time actual wakeup is
// given, OPP is already switched to
// ACTIVE (RUN).
#define GPRCM_APPS_LPDS_WAKETIME_OPP_CFG_APPS_LPDS_WAKETIME_OPP_CFG_S 0
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_APPS_SRAM_DSLP_CFG register.
//
//******************************************************************************
#define GPRCM_APPS_SRAM_DSLP_CFG_APPS_SRAM_DSLP_CFG_M \
0x000FFFFF // Configuration of APPS Memories
// during Deep-sleep : 0 - SRAMs are
// OFF ; 1 - SRAMs are Retained.
// APPS SRAM Cluster information :
// [0] - 1st column in MEMSS
// (Applicable only when owned by
// APPS); [1] - 2nd column in MEMSS
// (Applicable only when owned by
// APPS); [2] - 3rd column in MEMSS
// (Applicable only when owned by
// APPS) ; [3] - 4th column in MEMSS
// (Applicable only when owned by
// APPS) ; [16] - MCU-PD - Apps
// cluster 0 (TBD); [19:18] -
// Reserved.
#define GPRCM_APPS_SRAM_DSLP_CFG_APPS_SRAM_DSLP_CFG_S 0
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_APPS_SRAM_LPDS_CFG register.
//
//******************************************************************************
#define GPRCM_APPS_SRAM_LPDS_CFG_APPS_SRAM_LPDS_CFG_M \
0x000FFFFF // Configuration of APPS Memories
// during LPDS : 0 - SRAMs are OFF ;
// 1 - SRAMs are Retained. APPS SRAM
// Cluster information : [0] - 1st
// column in MEMSS (Applicable only
// when owned by APPS); [1] - 2nd
// column in MEMSS (Applicable only
// when owned by APPS); [2] - 3rd
// column in MEMSS (Applicable only
// when owned by APPS) ; [3] - 4th
// column in MEMSS (Applicable only
// when owned by APPS) ; [16] -
// MCU-PD - Apps cluster 0 (TBD);
// [19:18] - Reserved.
#define GPRCM_APPS_SRAM_LPDS_CFG_APPS_SRAM_LPDS_CFG_S 0
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_APPS_LPDS_WAKETIME_WAKE_CFG register.
//
//******************************************************************************
#define GPRCM_APPS_LPDS_WAKETIME_WAKE_CFG_APPS_LPDS_WAKETIME_WAKE_CFG_M \
0xFFFFFFFF // Configuration (in no of
// slow_clks) which says when the
// actual wakeup request for
// removing the PD-reset be given.
#define GPRCM_APPS_LPDS_WAKETIME_WAKE_CFG_APPS_LPDS_WAKETIME_WAKE_CFG_S 0
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_TOP_DIE_ENABLE register.
//
//******************************************************************************
#define GPRCM_TOP_DIE_ENABLE_FLASH_BUSY \
0x00001000
#define GPRCM_TOP_DIE_ENABLE_TOP_DIE_PWR_PS_M \
0x00000F00
#define GPRCM_TOP_DIE_ENABLE_TOP_DIE_PWR_PS_S 8
#define GPRCM_TOP_DIE_ENABLE_TOP_DIE_ENABLE_STATUS \
0x00000002 // 1 - Top-die is enabled ;
#define GPRCM_TOP_DIE_ENABLE_TOP_DIE_ENABLE \
0x00000001 // 1 - Enable the top-die ; 0 -
// Disable the top-die
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_TOP_DIE_ENABLE_PARAMETERS register.
//
//******************************************************************************
#define GPRCM_TOP_DIE_ENABLE_PARAMETERS_FLASH_3P3_RSTN2D2D_POR_RSTN_M \
0xF0000000 // Configuration (in slow_clks) for
// number of clks between
// Flash-3p3-rstn to D2D POR Resetn.
#define GPRCM_TOP_DIE_ENABLE_PARAMETERS_FLASH_3P3_RSTN2D2D_POR_RSTN_S 28
#define GPRCM_TOP_DIE_ENABLE_PARAMETERS_TOP_DIE_SW_EN2TOP_DIE_FLASH_3P3_RSTN_M \
0x00FF0000 // Configuration (in slow_clks) for
// number of clks between Top-die
// Switch-Enable and Top-die Flash
// 3p3 Reset removal
#define GPRCM_TOP_DIE_ENABLE_PARAMETERS_TOP_DIE_SW_EN2TOP_DIE_FLASH_3P3_RSTN_S 16
#define GPRCM_TOP_DIE_ENABLE_PARAMETERS_TOP_DIE_POR_RSTN2BOTT_DIE_FMC_RSTN_M \
0x000000FF // Configuration (in slow_clks) for
// number of clks between D2D POR
// Reset removal and bottom die FMC
// reset removal
#define GPRCM_TOP_DIE_ENABLE_PARAMETERS_TOP_DIE_POR_RSTN2BOTT_DIE_FMC_RSTN_S 0
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_MCU_GLOBAL_SOFT_RESET register.
//
//******************************************************************************
#define GPRCM_MCU_GLOBAL_SOFT_RESET_MCU_GLOBAL_SOFT_RESET \
0x00000001 // 1 - Assert the global reset for
// MCU (APPS + NWP) ; Asserts both
// Cortex sysrstn and its
// peripherals 0 - Deassert the
// global reset for MCU (APPS + NWP)
// ; Asserts both Cortex sysrstn and
// its peripherals Note : Reset for
// shared peripherals is not
// affected here.
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_ADC_CLK_CONFIG register.
//
//******************************************************************************
#define GPRCM_ADC_CLK_CONFIG_ADC_CLKGEN_OFF_TIME_M \
0x000007C0 // Configuration (in number of 38.4
// MHz clks) for the OFF-Time in
// generation of ADC_CLK
#define GPRCM_ADC_CLK_CONFIG_ADC_CLKGEN_OFF_TIME_S 6
#define GPRCM_ADC_CLK_CONFIG_ADC_CLKGEN_ON_TIME_M \
0x0000003E // Configuration (in number of 38.4
// MHz clks) for the ON-Time in
// generation of ADC_CLK
#define GPRCM_ADC_CLK_CONFIG_ADC_CLKGEN_ON_TIME_S 1
#define GPRCM_ADC_CLK_CONFIG_ADC_CLK_ENABLE \
0x00000001 // 1 - Enable the ADC_CLK ; 0 -
// Disable the ADC_CLK
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_APPS_GPIO_WAKE_CONF register.
//
//******************************************************************************
#define GPRCM_APPS_GPIO_WAKE_CONF_APPS_GPIO_WAKE_CONF_M \
0x00000003 // "00" - Wake on Level0 on
// selected GPIO pin (GPIO is
// selected inside the HIB3p3
// module); "01" - Wakeup on
// fall-edge of GPIO pin.
#define GPRCM_APPS_GPIO_WAKE_CONF_APPS_GPIO_WAKE_CONF_S 0
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_EN_NWP_BOOT_WO_DEVINIT register.
//
//******************************************************************************
#define GPRCM_EN_NWP_BOOT_WO_DEVINIT_reserved_M \
0xFFFFFFFE
#define GPRCM_EN_NWP_BOOT_WO_DEVINIT_reserved_S 1
#define GPRCM_EN_NWP_BOOT_WO_DEVINIT_mem_en_nwp_boot_wo_devinit \
0x00000001 // 1 - Override the secure-mode
// done for booting up NWP (Wakeup
// NWP on its event independent of
// CM4 state) ; 0 - Donot override
// the secure-mode done for NWP boot
// (NWP must be enabled by CM4 only)
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_MEM_HCLK_DIV_CFG register.
//
//******************************************************************************
#define GPRCM_MEM_HCLK_DIV_CFG_mem_hclk_div_cfg_M \
0x00000007 // Division configuration for
// HCLKDIVOUT : "000" - Divide by 1
// ; "001" - Divide by 2 ; "010" -
// Divide by 3 ; "011" - Divide by 4
// ; "100" - Divide by 5 ; "101" -
// Divide by 6 ; "110" - Divide by 7
// ; "111" - Divide by 8
#define GPRCM_MEM_HCLK_DIV_CFG_mem_hclk_div_cfg_S 0
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_MEM_SYSCLK_DIV_CFG register.
//
//******************************************************************************
#define GPRCM_MEM_SYSCLK_DIV_CFG_mem_sysclk_div_off_time_M \
0x00000038
#define GPRCM_MEM_SYSCLK_DIV_CFG_mem_sysclk_div_off_time_S 3
#define GPRCM_MEM_SYSCLK_DIV_CFG_mem_sysclk_div_on_time_M \
0x00000007
#define GPRCM_MEM_SYSCLK_DIV_CFG_mem_sysclk_div_on_time_S 0
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_APLLMCS_LOCK_TIME_CONF register.
//
//******************************************************************************
#define GPRCM_APLLMCS_LOCK_TIME_CONF_mem_apllmcs_wlan_lock_time_M \
0x0000FF00
#define GPRCM_APLLMCS_LOCK_TIME_CONF_mem_apllmcs_wlan_lock_time_S 8
#define GPRCM_APLLMCS_LOCK_TIME_CONF_mem_apllmcs_mcu_lock_time_M \
0x000000FF
#define GPRCM_APLLMCS_LOCK_TIME_CONF_mem_apllmcs_mcu_lock_time_S 0
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_NWP_SOFT_RESET register.
//
//******************************************************************************
#define GPRCM_NWP_SOFT_RESET_NWP_SOFT_RESET1 \
0x00000002 // Soft-reset1 for NWP - Cortex
// sysrstn and NWP associated
// peripherals are - This is an
// auto-clr bit.
#define GPRCM_NWP_SOFT_RESET_NWP_SOFT_RESET0 \
0x00000001 // Soft-reset0 for NWP - Only
// Cortex-sysrstn is asserted - This
// is an auto-clear bit.
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_NWP_LPDS_WAKEUP_CFG register.
//
//******************************************************************************
#define GPRCM_NWP_LPDS_WAKEUP_CFG_NWP_LPDS_WAKEUP_CFG_M \
0x000000FF // Mask for LPDS Wakeup interrupt :
// 7 - WLAN Host Interrupt ; 6 -
// WLAN to NWP Wake request ; 5 -
// APPS to NWP Wake request; 4 -
// GPIO Wakeup ; 3 - Autonomous UART
// Wakeup ; 2 - SSDIO Wakeup ; 1 -
// Autonomous SPI Wakeup ; 0 - LPDS
// Wakeup-timer
#define GPRCM_NWP_LPDS_WAKEUP_CFG_NWP_LPDS_WAKEUP_CFG_S 0
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_NWP_LPDS_WAKEUP_SRC register.
//
//******************************************************************************
#define GPRCM_NWP_LPDS_WAKEUP_SRC_NWP_LPDS_WAKEUP_SRC_M \
0x000000FF // Indicates the cause for NWP
// LPDS-Wakeup : 7 - WLAN Host
// Interrupt ; 6 - WLAN to NWP Wake
// request ; 5 - APPS to NWP Wake
// request; 4 - GPIO Wakeup ; 3 -
// Autonomous UART Wakeup ; 2 -
// SSDIO Wakeup ; 1 - Autonomous SPI
// Wakeup ; 0 - LPDS Wakeup-timer
#define GPRCM_NWP_LPDS_WAKEUP_SRC_NWP_LPDS_WAKEUP_SRC_S 0
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_NWP_RESET_CAUSE register.
//
//******************************************************************************
#define GPRCM_NWP_RESET_CAUSE_NWP_RESET_CAUSE_M \
0x000000FF // Indicates the reset cause for
// NWP : "0000" - Wake from HIB/OFF
// mode; "0001" - Wake from LPDS ;
// "0010" - Reserved ; "0011" -
// Soft-reset0 (Only NWP
// Cortex-sysrstn is asserted);
// "0100" - Soft-reset1 (NWP
// Cortex-sysrstn and NWP
// peripherals are reset); "0101" -
// WDOG0 (NWP Cortex-sysrstn and NWP
// peripherals are reset); "0110" -
// MCU Soft-reset (APPS + NWP
// Cortex-sysrstn + Peripherals are
// reset); "0111" - SSDIO Function2
// reset (Only Cortex-sysrstn is
// asserted) ; "1000" - Reset due to
// WDOG of APPS (NWP Cortex-sysrstn
// and NWP peripherals are reset);
#define GPRCM_NWP_RESET_CAUSE_NWP_RESET_CAUSE_S 0
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_NWP_LPDS_WAKETIME_OPP_CFG register.
//
//******************************************************************************
#define GPRCM_NWP_LPDS_WAKETIME_OPP_CFG_NWP_LPDS_WAKETIME_OPP_CFG_M \
0xFFFFFFFF // OPP Request Configuration
// (Number of slow-clk cycles) for
// LPDS Wake-timer
#define GPRCM_NWP_LPDS_WAKETIME_OPP_CFG_NWP_LPDS_WAKETIME_OPP_CFG_S 0
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_NWP_SRAM_DSLP_CFG register.
//
//******************************************************************************
#define GPRCM_NWP_SRAM_DSLP_CFG_NWP_SRAM_DSLP_CFG_M \
0x000FFFFF // Configuration of NWP Memories
// during DSLP : 0 - SRAMs are OFF ;
// 1 - SRAMs are Retained. NWP SRAM
// Cluster information : [2] - 3rd
// column in MEMSS (Applicable only
// when owned by NWP) ; [3] - 4th
// column in MEMSS (Applicable only
// when owned by NWP) ; [4] - 5th
// column in MEMSS (Applicable only
// when owned by NWP) ; [5] - 6th
// column in MEMSS (Applicable only
// when owned by NWP) ; [6] - 7th
// column in MEMSS (Applicable only
// when owned by NWP) ; [7] - 8th
// column in MEMSS (Applicable only
// when owned by NWP) ; [8] - 9th
// column in MEMSS (Applicable only
// when owned by NWP) ; [9] - 10th
// column in MEMSS (Applicable only
// when owned by NWP) ; [10] - 11th
// column in MEMSS (Applicable only
// when owned by NWP) ; [11] - 12th
// column in MEMSS (Applicable only
// when owned by NWP) ; [12] - 13th
// column in MEMSS (Applicable only
// when owned by NWP) ; [13] - 14th
// column in MEMSS (Applicable only
// when owned by NWP) ; [14] - 15th
// column in MEMSS (Applicable only
// when owned by NWP) ; [19:18] -
// Reserved.
#define GPRCM_NWP_SRAM_DSLP_CFG_NWP_SRAM_DSLP_CFG_S 0
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_NWP_SRAM_LPDS_CFG register.
//
//******************************************************************************
#define GPRCM_NWP_SRAM_LPDS_CFG_NWP_SRAM_LPDS_CFG_M \
0x000FFFFF // Configuration of NWP Memories
// during LPDS : 0 - SRAMs are OFF ;
// 1 - SRAMs are Retained. NWP SRAM
// Cluster information : [2] - 3rd
// column in MEMSS (Applicable only
// when owned by NWP) ; [3] - 4th
// column in MEMSS (Applicable only
// when owned by NWP) ; [4] - 5th
// column in MEMSS (Applicable only
// when owned by NWP) ; [5] - 6th
// column in MEMSS (Applicable only
// when owned by NWP) ; [6] - 7th
// column in MEMSS (Applicable only
// when owned by NWP) ; [7] - 8th
// column in MEMSS (Applicable only
// when owned by NWP) ; [8] - 9th
// column in MEMSS (Applicable only
// when owned by NWP) ; [9] - 10th
// column in MEMSS (Applicable only
// when owned by NWP) ; [10] - 11th
// column in MEMSS (Applicable only
// when owned by NWP) ; [11] - 12th
// column in MEMSS (Applicable only
// when owned by NWP) ; [12] - 13th
// column in MEMSS (Applicable only
// when owned by NWP) ; [13] - 14th
// column in MEMSS (Applicable only
// when owned by NWP) ; [14] - 15th
// column in MEMSS (Applicable only
// when owned by NWP) ; [19:18] -
// Reserved.
#define GPRCM_NWP_SRAM_LPDS_CFG_NWP_SRAM_LPDS_CFG_S 0
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_NWP_LPDS_WAKETIME_WAKE_CFG register.
//
//******************************************************************************
#define GPRCM_NWP_LPDS_WAKETIME_WAKE_CFG_NWP_LPDS_WAKETIME_WAKE_CFG_M \
0xFFFFFFFF // Wake time configuration (no of
// slow clks) for NWP wake from
// LPDS.
#define GPRCM_NWP_LPDS_WAKETIME_WAKE_CFG_NWP_LPDS_WAKETIME_WAKE_CFG_S 0
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_NWP_AUTONMS_SPI_MASTER_SEL register.
//
//******************************************************************************
#define GPRCM_NWP_AUTONMS_SPI_MASTER_SEL_F_M \
0xFFFE0000
#define GPRCM_NWP_AUTONMS_SPI_MASTER_SEL_F_S 17
#define GPRCM_NWP_AUTONMS_SPI_MASTER_SEL_MEM_AUTONMS_SPI_MASTER_SEL \
0x00010000 // 0 - APPS is selected as host for
// Autonms SPI ; 1 - External host
// is selected as host for Autonms
// SPI
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_NWP_AUTONMS_SPI_IDLE_REQ register.
//
//******************************************************************************
#define GPRCM_NWP_AUTONMS_SPI_IDLE_REQ_NWP_AUTONMS_SPI_IDLE_WAKEUP \
0x00010000
#define GPRCM_NWP_AUTONMS_SPI_IDLE_REQ_NWP_AUTONMS_SPI_IDLE_ACK \
0x00000002 // When 1 => IDLE-mode is
// acknowledged by the SPI-IP. (This
// is for MCSPI_N1)
#define GPRCM_NWP_AUTONMS_SPI_IDLE_REQ_NWP_AUTONMS_SPI_IDLE_REQ \
0x00000001 // When 1 => Request for IDLE-mode
// for autonomous SPI. (This is for
// MCSPI_N1)
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_WLAN_TO_NWP_WAKE_REQUEST register.
//
//******************************************************************************
#define GPRCM_WLAN_TO_NWP_WAKE_REQUEST_WLAN_TO_NWP_WAKE_REQUEST \
0x00000001 // 1 - Request for waking up NWP
// from any of its low-power modes
// (SLP/DSLP/LPDS)
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_NWP_TO_WLAN_WAKE_REQUEST register.
//
//******************************************************************************
#define GPRCM_NWP_TO_WLAN_WAKE_REQUEST_NWP_TO_WLAN_WAKE_REQUEST \
0x00000001 // 1 - Request for wakinp up WLAN
// from its ELP Mode (This gets
// triggered to ELP-logic of WLAN)
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_NWP_GPIO_WAKE_CONF register.
//
//******************************************************************************
#define GPRCM_NWP_GPIO_WAKE_CONF_NWP_GPIO_WAKE_CONF_M \
0x00000003 // "00" - Wakeup on level0 of the
// selected GPIO (GPIO gets selected
// inside HIB3P3-module); "01" -
// Wakeup on fall-edge of selected
// GPIO.
#define GPRCM_NWP_GPIO_WAKE_CONF_NWP_GPIO_WAKE_CONF_S 0
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_GPRCM_EFUSE_READ_REG12 register.
//
//******************************************************************************
#define GPRCM_GPRCM_EFUSE_READ_REG12_FUSEFARM_ROW_32_MSW_M \
0x0000FFFF // This corrsponds to ROW_32
// [31:16] of the FUSEFARM. SPARE
#define GPRCM_GPRCM_EFUSE_READ_REG12_FUSEFARM_ROW_32_MSW_S 0
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_GPRCM_DIEID_READ_REG5 register.
//
//******************************************************************************
#define GPRCM_GPRCM_DIEID_READ_REG5_FUSEFARM_ROW_10_M \
0xFFFFFFFF // Corresponds to ROW10 of FUSEFARM
// : [5:0] - ADC OFFSET ; [13:6] -
// TEMP_SENSE ; [14:14] - DFT_GSG ;
// [15:15] - FMC_DISABLE ; [31:16] -
// WLAN_MAC ID
#define GPRCM_GPRCM_DIEID_READ_REG5_FUSEFARM_ROW_10_S 0
//******************************************************************************
//
// The following are defines for the bit fields in the
// GPRCM_O_GPRCM_DIEID_READ_REG6 register.
//
//******************************************************************************
#define GPRCM_GPRCM_DIEID_READ_REG6_FUSEFARM_ROW_11_M \
0xFFFFFFFF // Corresponds to ROW11 of FUSEFARM
// : [31:0] : WLAN MAC ID
#define GPRCM_GPRCM_DIEID_READ_REG6_FUSEFARM_ROW_11_S 0
//******************************************************************************