Add new RNG version v2 matching stm32wl chips
This commit is contained in:
parent
2c2bc13ec5
commit
3e7e385ee7
102
data/registers/rng_v2.yaml
Normal file
102
data/registers/rng_v2.yaml
Normal file
@ -0,0 +1,102 @@
|
||||
---
|
||||
block/RNG:
|
||||
description: Random number generator
|
||||
items:
|
||||
- name: CR
|
||||
description: control register
|
||||
byte_offset: 0
|
||||
fieldset: CR
|
||||
- name: SR
|
||||
description: status register
|
||||
byte_offset: 4
|
||||
fieldset: SR
|
||||
- name: DR
|
||||
description: data register
|
||||
byte_offset: 8
|
||||
access: Read
|
||||
- name: HTCR
|
||||
description: health test control register
|
||||
byte_offset: 16
|
||||
fieldset/CR:
|
||||
description: control register
|
||||
fields:
|
||||
- name: RNGEN
|
||||
description: True random number generator enable
|
||||
bit_offset: 2
|
||||
bit_size: 1
|
||||
- name: IE
|
||||
description: Interrupt Enable
|
||||
bit_offset: 3
|
||||
bit_size: 1
|
||||
- name: CED
|
||||
description: Clock error detection
|
||||
bit_offset: 5
|
||||
bit_size: 1
|
||||
- name: RNG_CONFIG3
|
||||
description: RNG configuration 3
|
||||
bit_offset: 8
|
||||
bit_size: 4
|
||||
- name: NISTC
|
||||
description: Non NIST compliant
|
||||
bit_offset: 12
|
||||
bit_size: 1
|
||||
enum: NISTC
|
||||
- name: RNG_CONFIG2
|
||||
description: RNG configuration 2
|
||||
bit_offset: 13
|
||||
bit_size: 3
|
||||
- name: CLKDIV
|
||||
description: Clock divider factor
|
||||
bit_offset: 16
|
||||
bit_size: 4
|
||||
- name: RNG_CONFIG1
|
||||
description: RNG configuration 1
|
||||
bit_offset: 20
|
||||
bit_size: 6
|
||||
- name: CONDRST
|
||||
description: Conditioning soft reset
|
||||
bit_offset: 30
|
||||
bit_size: 1
|
||||
- name: CONFIGLOCK
|
||||
description: Config Lock
|
||||
bit_offset: 31
|
||||
bit_size: 1
|
||||
fieldset/SR:
|
||||
description: status register
|
||||
fields:
|
||||
- name: DRDY
|
||||
description: Data Ready
|
||||
bit_offset: 0
|
||||
bit_size: 1
|
||||
- name: CECS
|
||||
description: Clock error current status
|
||||
bit_offset: 1
|
||||
bit_size: 1
|
||||
- name: SECS
|
||||
description: Seed error current status
|
||||
bit_offset: 2
|
||||
bit_size: 1
|
||||
- name: CEIS
|
||||
description: Clock error interrupt status
|
||||
bit_offset: 5
|
||||
bit_size: 1
|
||||
- name: SEIS
|
||||
description: Seed error interrupt status
|
||||
bit_offset: 6
|
||||
bit_size: 1
|
||||
fieldset/HTCR:
|
||||
description: health test control register
|
||||
fields:
|
||||
- name: HTCFG
|
||||
description: health test configuration
|
||||
bit_offset: 0
|
||||
bit_size: 32
|
||||
enum/NISTC:
|
||||
bit_size: 1
|
||||
variants:
|
||||
- name: Default
|
||||
description: Hardware default values for NIST compliant RNG. In this configuration per 128-bit output two conditioning loops are performed and 256 bits of noise source are used
|
||||
value: 0
|
||||
- name: Custom
|
||||
description: Custom values for NIST compliant RNG
|
||||
value: 1
|
@ -129,7 +129,7 @@ impl PeriMatcher {
|
||||
(".*:RNG:rng1_v1_1", ("rng", "v1", "RNG")),
|
||||
(".*:RNG:rng1_v2_0", ("rng", "v1", "RNG")),
|
||||
(".*:RNG:rng1_v2_1", ("rng", "v1", "RNG")),
|
||||
(".*:RNG:rng1_v3_1", ("rng", "v1", "RNG")),
|
||||
(".*:RNG:rng1_v3_1", ("rng", "v2", "RNG")),
|
||||
(".*:SPI:spi2_v1_4", ("spi", "f1", "SPI")),
|
||||
(".*:SPI:spi2s1_v2_1", ("spi", "v1", "SPI")),
|
||||
(".*:SPI:spi2s1_v2_2", ("spi", "v1", "SPI")),
|
||||
|
Loading…
x
Reference in New Issue
Block a user