This repository has been archived by the owner on Feb 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
bl808.svd
5371 lines (5365 loc) · 191 KB
/
bl808.svd
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
<?xml version="1.0" encoding="utf-8"?>
<device schemaVersion="1.3" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="CMSIS-SVD.xsd">
<vendor>Bouffalo Lab</vendor>
<vendorID>bouffalolab</vendorID>
<name>BL808</name>
<series></series> <!-- todo -->
<version>1.0</version>
<description>Bouffalo BL808 chip</description>
<licenseText>
Copyright (c) 2022 Bouffalo Lab
bl808-pac is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
</licenseText>
<addressUnitBits>8</addressUnitBits>
<width>64</width>
<size>32</size>
<access>read-write</access>
<resetValue>0x00000000</resetValue>
<resetMask>0xFFFFFFFF</resetMask>
<peripherals>
<peripheral>
<name>CODEC</name>
<description>Codec miscellaneous control</description>
<baseAddress>0x30020000</baseAddress>
<addressBlock>
<offset>0</offset>
<size>0x1000</size>
<usage>registers</usage>
</addressBlock>
<registers>
<register>
<name>todo</name>
<description>??</description>
<addressOffset>0</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
</registers>
</peripheral>
<peripheral>
<name>MJPEG</name>
<description>Motion JPEG encoder</description>
<baseAddress>0x30021000</baseAddress>
<addressBlock>
<offset>0</offset>
<size>0x1000</size>
<usage>registers</usage>
</addressBlock>
<registers>
<register>
<name>todo</name>
<description>??</description>
<addressOffset>0</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
</registers>
</peripheral>
<peripheral>
<name>H264</name>
<description>H.264 video codec control</description>
<baseAddress>0x30022000</baseAddress>
<addressBlock>
<offset>0</offset>
<size>0x1000</size>
<usage>registers</usage>
</addressBlock>
<registers>
<register>
<name>todo</name>
<description>??</description>
<addressOffset>0</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
</registers>
</peripheral>
<!-- <peripheral>
<name>MJDEC</name>
<description>Motion JPEG decoder</description>
<baseAddress>0x30023000</baseAddress>
<addressBlock>
<offset>0</offset>
<size>0x1000</size>
<usage>registers</usage>
</addressBlock>
<registers>
<register>
<name>todo</name>
<description>??</description>
<addressOffset>0</addressOffset>
<fields>
</fields>
</register>
</registers>
</peripheral> -->
<peripheral>
<name>NPU</name>
<description>Bouffalo Convolutional Neural Network</description>
<baseAddress>0x30024000</baseAddress>
<addressBlock>
<offset>0</offset>
<size>0x1000</size>
<usage>registers</usage>
</addressBlock>
<registers>
<register>
<name>todo</name>
<description>??</description>
<addressOffset>0</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
</registers>
</peripheral>
<peripheral>
<name>MMGLB</name>
<description>Multimedia Global controller</description>
<baseAddress>0x30007000</baseAddress>
<addressBlock>
<offset>0</offset>
<size>0x1000</size>
<usage>registers</usage>
</addressBlock>
<registers>
<register>
<name>todo</name>
<description>??</description>
<addressOffset>0</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
</registers>
</peripheral>
<!-- <peripheral derivedFrom="UART[%s]">
<name>UART3</name>
<baseAddress>0x30002000</baseAddress>
</peripheral> -->
<!-- todo: 0x24900000 RF_GLB? -->
<!-- todo: 0x24910000 WIFI_MAC? -->
<peripheral>
<name>PTA</name>
<description>Packet Traffic Arbitration</description>
<baseAddress>0x24920000</baseAddress> <!-- todo: ?? -->
<addressBlock>
<offset>0</offset>
<size>0x1000</size>
<usage>registers</usage>
</addressBlock>
<registers>
<register>
<name>revision</name>
<description>Peripheral silicon revision</description>
<addressOffset>0x400</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>config_0</name>
<description>Arbitration configuration register 0</description>
<addressOffset>0x404</addressOffset>
<fields>
<field>
<name>function</name>
<description>Enable packet traffic arbitration</description>
<lsb>0</lsb>
<msb>0</msb>
</field>
<field>
<name>wifi</name>
<description>??</description>
<lsb>1</lsb>
<msb>1</msb>
</field>
<field>
<name>priority</name>
<description>??</description>
<lsb>4</lsb>
<msb>4</msb>
</field>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>bluetooth_transmit</name>
<description>??</description>
<addressOffset>0x408</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<!-- <register>
<name>bluetooth_transmit_abort</name>
<description>??</description>
<addressOffset>0x40C</addressOffset>
<fields>
</fields>
</register> -->
<register>
<name>bluetooth_receive</name>
<description>??</description>
<addressOffset>0x410</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<!-- <register>
<name>bluetooth_receive_abort</name>
<description>??</description>
<addressOffset>0x414</addressOffset>
<fields>
</fields>
</register> -->
<register>
<name>wifi_transmit</name>
<description>??</description>
<addressOffset>0x418</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<!-- <register>
<name>wifi_transmit_abort</name>
<description>??</description>
<addressOffset>0x41C</addressOffset>
<fields>
</fields>
</register> -->
<register>
<name>wifi_receive</name>
<description>??</description>
<addressOffset>0x420</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<!-- <register>
<name>wifi_receive_abort</name>
<description>??</description>
<addressOffset>0x424</addressOffset>
<fields>
</fields>
</register> -->
<register>
<name>config_1</name>
<description>??</description>
<addressOffset>0x428</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
</registers>
</peripheral>
<peripheral>
<name>WIFI</name>
<description>Wireless Fidelity control</description>
<baseAddress>0x24B00000</baseAddress> <!-- todo: ?? -->
<addressBlock>
<offset>0</offset>
<size>0x1000</size>
<usage>registers</usage>
</addressBlock>
<registers>
<register>
<name>coex_control_0</name>
<description>??</description>
<addressOffset>0x400</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>coex_pti</name>
<description>??</description>
<addressOffset>0x404</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>coex_state</name>
<description>??</description>
<addressOffset>0x408</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>coex_interrupt</name>
<description>??</description>
<addressOffset>0x40C</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>coex_control_1</name>
<description>??</description>
<addressOffset>0x410</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<!-- todo: registers -->
</registers>
</peripheral>
<peripheral>
<name>EMAC</name>
<description>Ethernet Media Access Control</description>
<baseAddress>0x20070000</baseAddress>
<addressBlock>
<offset>0</offset>
<size>0x1000</size>
<usage>registers</usage>
</addressBlock>
<registers>
<register>
<name>mode</name>
<description>Interface enables and configurations</description>
<addressOffset>0x00</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>interrupt_source</name>
<description>Interrupt source register</description>
<addressOffset>0x04</addressOffset>
<resetValue>0x00000000</resetValue>
<resetMask>0xffffffff</resetMask>
<access>read-write</access>
<!-- todo: don't generate write functions if defined like oneToClear -->
<modifiedWriteValues>oneToClear</modifiedWriteValues>
<fields>
<field>
<name>control_receive</name>
<description>Control frame received interrupt state</description>
<lsb>6</lsb>
<msb>6</msb>
<enumeratedValues>
<name>InterruptState</name>
<enumeratedValue>
<name>has_interrupt</name>
<description>Has interrupt</description>
<value>1</value>
</enumeratedValue>
<enumeratedValue>
<name>no_interrupt</name>
<description>No interrupt occurred</description>
<value>0</value>
</enumeratedValue>
</enumeratedValues>
</field>
<field>
<name>control_transmit</name>
<description>Control frame transmitted interrupt state</description>
<lsb>5</lsb>
<msb>5</msb>
<enumeratedValues derivedFrom="InterruptState" />
</field>
<field>
<name>busy</name>
<description>Lack of buffer interrupt state</description>
<lsb>4</lsb>
<msb>4</msb>
<enumeratedValues derivedFrom="InterruptState" />
</field>
<field>
<name>receive_error</name>
<description>Receive error interrupt state</description>
<lsb>3</lsb>
<msb>3</msb>
<enumeratedValues derivedFrom="InterruptState" />
</field>
<field>
<name>frame_received</name>
<description>Frame received interrupt state</description>
<lsb>2</lsb>
<msb>2</msb>
<enumeratedValues derivedFrom="InterruptState" />
</field>
<field>
<name>transmit_error</name>
<description>Transmit error interrupt state</description>
<lsb>1</lsb>
<msb>1</msb>
<enumeratedValues derivedFrom="InterruptState" />
</field>
<field>
<name>buffer_transmitted</name>
<description>Buffer transmitted interrupt state</description>
<lsb>0</lsb>
<msb>0</msb>
<enumeratedValues derivedFrom="InterruptState" />
</field>
</fields>
</register>
<register>
<name>interrupt_mask</name>
<description>Interrupt mask register</description>
<addressOffset>0x08</addressOffset>
<resetValue>0x00000000</resetValue>
<resetMask>0xffffffff</resetMask>
<access>read-write</access>
<writeConstraint>
<useEnumeratedValues>true</useEnumeratedValues>
</writeConstraint>
<fields>
<field>
<name>control_receive</name>
<description>Control frame received interrupt mask</description>
<lsb>6</lsb>
<msb>6</msb>
<enumeratedValues>
<name>InterruptMask</name>
<enumeratedValue>
<name>mask</name>
<description>Mask interrupt</description>
<value>1</value>
</enumeratedValue>
<enumeratedValue>
<name>unmask</name>
<description>Unmask interrupt</description>
<value>0</value>
</enumeratedValue>
</enumeratedValues>
</field>
<field>
<name>control_transmit</name>
<description>Control frame transmitted interrupt mask</description>
<lsb>5</lsb>
<msb>5</msb>
<enumeratedValues derivedFrom="InterruptMask" />
</field>
<field>
<name>busy</name>
<description>Lack of buffer interrupt mask</description>
<lsb>4</lsb>
<msb>4</msb>
<enumeratedValues derivedFrom="InterruptMask" />
</field>
<field>
<name>receive_error</name>
<description>Receive error interrupt mask</description>
<lsb>3</lsb>
<msb>3</msb>
<enumeratedValues derivedFrom="InterruptMask" />
</field>
<field>
<name>frame_received</name>
<description>Frame received interrupt mask</description>
<lsb>2</lsb>
<msb>2</msb>
<enumeratedValues derivedFrom="InterruptMask" />
</field>
<field>
<name>transmit_error</name>
<description>Transmit error interrupt mask</description>
<lsb>1</lsb>
<msb>1</msb>
<enumeratedValues derivedFrom="InterruptMask" />
</field>
<field>
<name>buffer_transmitted</name>
<description>Buffer transmitted interrupt mask</description>
<lsb>0</lsb>
<msb>0</msb>
<enumeratedValues derivedFrom="InterruptMask" />
</field>
</fields>
</register>
<register>
<name>backed_gap</name>
<description>Back-to-back inter-packet gap register</description>
<addressOffset>0x0C</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>non_backed_gap_1</name>
<description>Non back-to-back inter-packet gap register 1</description>
<addressOffset>0x10</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>non_backed_gap_2</name>
<description>Non back-to-back inter-packet gap register 2</description>
<addressOffset>0x14</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>frame_length</name>
<description>Minimum and maximum ethernet frame length</description>
<addressOffset>0x18</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>collision</name>
<description>Collision time window and maximum retries</description>
<addressOffset>0x1C</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>transmit_buffer</name>
<description>Transmit buffer descriptor</description>
<addressOffset>0x20</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>flow_control</name>
<description>Control frame function register</description>
<addressOffset>0x24</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>mii_mode</name>
<description>MII clock divider and premable enable</description>
<addressOffset>0x28</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>mii_command</name>
<description>MII control data, read and scan state</description>
<addressOffset>0x2C</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>mii_address</name>
<description>Physical layer bus address</description>
<addressOffset>0x30</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>control_write</name>
<description>Write data to MII physcial layer</description>
<addressOffset>0x34</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>control_read</name>
<description>Read data from MII physcial layer</description>
<addressOffset>0x38</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>mii_state</name>
<description>MII bus and link layer state</description>
<addressOffset>0x3C</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<dim>2</dim>
<dimIncrement>0x04</dimIncrement>
<name>mac_address[%s]</name>
<description>Media Access Control address</description>
<addressOffset>0x40</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<dim>2</dim>
<dimIncrement>0x04</dimIncrement>
<name>hash[%s]</name>
<description>Hash register</description>
<addressOffset>0x48</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>transmit_control</name>
<description>Transmit control register</description>
<addressOffset>0x50</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
</registers>
</peripheral>
<peripheral>
<name>SDH</name>
<description>Secure Digital host control</description>
<baseAddress>0x20060000</baseAddress>
<!-- todo: sdk shows this peripheral is written by 16-bit register, confirm this -->
<addressBlock>
<offset>0</offset>
<size>0x1000</size>
<usage>registers</usage>
</addressBlock>
<registers>
<register>
<name>todo</name>
<description>??</description>
<addressOffset>0</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
</registers>
</peripheral>
<peripheral>
<name>AUDIO</name>
<description>Audio codec controller</description>
<baseAddress>0x20055000</baseAddress>
<addressBlock>
<offset>0</offset>
<size>0x1000</size>
<usage>registers</usage>
</addressBlock>
<registers>
<register>
<name>todo</name>
<description>??</description>
<addressOffset>0</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
</registers>
</peripheral>
<peripheral>
<name>USB</name>
<description>Universal Serial Bus host</description>
<baseAddress>0x20072000</baseAddress>
<addressBlock>
<offset>0</offset>
<size>0x1000</size>
<usage>registers</usage>
</addressBlock>
<registers>
<cluster>
<name>capability</name>
<description>Host Controller Capability Registers</description>
<addressOffset>0x000</addressOffset>
</cluster>
<cluster>
<name>operation</name>
<description>Host Controller Operational Registers</description>
<addressOffset>0x010</addressOffset>
</cluster>
</registers>
</peripheral>
<peripheral>
<name>PSRAM</name>
<description>Pseudo Static Random Access Memory control</description>
<baseAddress>0x20052000</baseAddress>
<addressBlock>
<offset>0</offset>
<size>0x100</size>
<usage>registers</usage>
</addressBlock>
<registers>
<register>
<name>todo</name>
<description>??</description>
<addressOffset>0</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
</registers>
</peripheral>
<!-- todo: EMI_MISC_BASE = 0x20050000 -->
<peripheral>
<name>AON</name>
<description>Always-On function control</description>
<baseAddress>0x2000F800</baseAddress>
<addressBlock>
<offset>0</offset>
<size>0x800</size>
<usage>registers</usage>
</addressBlock>
<registers>
<register>
<name>todo</name>
<description>??</description>
<addressOffset>0</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
</registers>
</peripheral>
<peripheral>
<name>HBN</name>
<description>Hibernate (Deep sleep) control</description>
<baseAddress>0x2000F000</baseAddress>
<addressBlock>
<offset>0</offset>
<size>0x800</size>
<usage>registers</usage>
</addressBlock>
<registers>
<register>
<name>control</name>
<description>Miscellaneous control register</description>
<addressOffset>0x00</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>time_lo</name>
<description>Low bits of hibernate time</description>
<addressOffset>0x04</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>time_hi</name>
<description>High bits of hibernate time</description>
<addressOffset>0x08</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>rtc_time_lo</name>
<description>Low bits of Real-Time Clock time</description>
<addressOffset>0x0C</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>rtc_time_hi</name>
<description>High bits of Real-Time Clock time</description>
<addressOffset>0x10</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>interrupt_mode</name>
<description>Hibernate interrupt contol</description>
<addressOffset>0x14</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>interrupt_state</name>
<description>Hibernate interrupt state</description>
<addressOffset>0x18</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>interrupt_clear</name>
<description>Clear hibernate interrupt</description>
<addressOffset>0x1C</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<!-- todo: HBN_PIR_CFG -->
<!-- todo: HBN_PIR_VTH -->
<!-- todo: HBN_PIR_INTERVAL -->
<!-- todo: HBN_BOR_CFG -->
<register>
<name>global</name>
<description>Global hibernate configuration</description>
<addressOffset>0x30</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>sram</name>
<description>Static Random-Access Memory hibernate control</description>
<addressOffset>0x34</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<!-- todo: HBN_PAD_CTRL_0 -->
<!-- todo: HBN_PAD_CTRL_1 -->
<register>
<name>rc32k</name>
<description>32-kHz internal RC oscillator control</description>
<addressOffset>0x200</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>xtal32k</name>
<description>External crystal oscillator control</description>
<addressOffset>0x204</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>rtc_control_0</name>
<description>Real-Time Clock control and reset register 0</description>
<addressOffset>0x208</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>rtc_control_1</name>
<description>Real-Time Clock control and reset register 1</description>
<addressOffset>0x20C</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
</registers>
</peripheral>
<peripheral>
<name>PDS</name>
<description>Power-Down Sleep control</description>
<baseAddress>0x2000E000</baseAddress>
<addressBlock>
<offset>0</offset>
<size>0x1000</size>
<usage>registers</usage>
</addressBlock>
<registers>
<register>
<name>touch_config</name>
<description>??</description>
<addressOffset>0xA00</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>touch_channel</name>
<description>??</description>
<addressOffset>0xA04</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>touch_process</name>
<description>??</description>
<addressOffset>0xA08</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>touch_sleep</name>
<description>??</description>
<addressOffset>0xA0C</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>touch_delay</name>
<description>??</description>
<addressOffset>0xA10</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<dim>6</dim>
<dimIncrement>0x04</dimIncrement>
<name>touch_force[%s]</name>
<description>??</description>
<addressOffset>0xA14</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<dim>3</dim>
<dimIncrement>0x04</dimIncrement>
<name>touch_voltage[%s]</name>
<description>??</description>
<addressOffset>0xA2C</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<dim>12</dim>
<dimIncrement>0x04</dimIncrement>
<name>touch_raw[%s]</name>
<description>??</description>
<addressOffset>0xA38</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<!-- todo: Channel_LTA_data_0? -->
<!-- todo: Channel_FLT_data_0? -->
<register>
<name>touch_interrupt_0</name>
<description>??</description>
<addressOffset>0xACC</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<register>
<name>touch_interrupt_1</name>
<description>??</description>
<addressOffset>0xAD0</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
<!-- todo: registers -->
</registers>
</peripheral>
<peripheral>
<dim>2</dim>
<dimIncrement>0x65000</dimIncrement>
<name>DMA%s</name>
<description>Direct Memory Access</description>
<baseAddress>0x2000C000</baseAddress>
<addressBlock>
<offset>0</offset>
<size>0x1000</size>
<usage>registers</usage>
</addressBlock>
<registers>
<register>
<name>todo</name>
<description>??</description>
<addressOffset>0</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
</registers>
</peripheral>
<peripheral>
<name>FLASH</name>
<description>Quad Serial Flash control</description>
<baseAddress>0x2000B000</baseAddress>
<addressBlock>
<offset>0</offset>
<size>0x100</size>
<usage>registers</usage>
</addressBlock>
<registers>
<register>
<name>todo</name>
<description>??</description>
<addressOffset>0</addressOffset>
<fields>
<!-- todo: fields -->
</fields>
</register>
</registers>
</peripheral>