pwr-cleanup

This commit is contained in:
eZio Pan 2024-01-03 21:35:19 +08:00
parent 9ec9e0afb8
commit 6b3a0ec599
3 changed files with 3 additions and 91 deletions

View File

@ -155,12 +155,10 @@ fieldset/CR1:
description: "SRAM2 page 1 retention in Stop 3 and Standby modes\r This bit is used to keep the SRAM2 page 1 content in Stop 3 and Standby modes. The SRAM2 page 1 corresponds to the first 8 Kbytes of the SRAM2\r (from SRAM2 base address to SRAM2 base address + 0x1FFF).\r Note: This bit has no effect in Shutdown mode." description: "SRAM2 page 1 retention in Stop 3 and Standby modes\r This bit is used to keep the SRAM2 page 1 content in Stop 3 and Standby modes. The SRAM2 page 1 corresponds to the first 8 Kbytes of the SRAM2\r (from SRAM2 base address to SRAM2 base address + 0x1FFF).\r Note: This bit has no effect in Shutdown mode."
bit_offset: 5 bit_offset: 5
bit_size: 1 bit_size: 1
enum: RRSB
- name: RRSB2 - name: RRSB2
description: "SRAM2 page 2 retention in Stop 3 and Standby modes\r This bit is used to keep the SRAM2 page 2 content in Stop 3 and Standby modes. The SRAM2 page 2 corresponds to the last 56 Kbytes of the SRAM2\r (from SRAM2 base address + 0x2000 to SRAM2 base address + 0xFFFF).\r Note: This bit has no effect in Shutdown mode." description: "SRAM2 page 2 retention in Stop 3 and Standby modes\r This bit is used to keep the SRAM2 page 2 content in Stop 3 and Standby modes. The SRAM2 page 2 corresponds to the last 56 Kbytes of the SRAM2\r (from SRAM2 base address + 0x2000 to SRAM2 base address + 0xFFFF).\r Note: This bit has no effect in Shutdown mode."
bit_offset: 6 bit_offset: 6
bit_size: 1 bit_size: 1
enum: RRSB
- name: ULPMEN - name: ULPMEN
description: "BOR ultra-low power mode\r This bit is used to reduce the consumption by configuring the BOR in discontinuous mode.\r This bit must be set to reach the lowest power consumption in the low-power modes." description: "BOR ultra-low power mode\r This bit is used to reduce the consumption by configuring the BOR in discontinuous mode.\r This bit must be set to reach the lowest power consumption in the low-power modes."
bit_offset: 7 bit_offset: 7
@ -333,12 +331,10 @@ fieldset/PRIVCFGR:
description: "secure functions privilege configuration\r This bit is set and reset by software. It can be written only by a secure privileged access." description: "secure functions privilege configuration\r This bit is set and reset by software. It can be written only by a secure privileged access."
bit_offset: 0 bit_offset: 0
bit_size: 1 bit_size: 1
enum: PRIV
- name: NSPRIV - name: NSPRIV
description: "non-secure functions privilege configuration\r This bit is set and reset by software. It can be written only by privileged access, secure or non-secure." description: "non-secure functions privilege configuration\r This bit is set and reset by software. It can be written only by privileged access, secure or non-secure."
bit_offset: 1 bit_offset: 1
bit_size: 1 bit_size: 1
enum: PRIV
fieldset/SECCFGR: fieldset/SECCFGR:
description: security configuration register description: security configuration register
fields: fields:
@ -349,27 +345,22 @@ fieldset/SECCFGR:
array: array:
len: 8 len: 8
stride: 1 stride: 1
enum: SEC
- name: LPMSEC - name: LPMSEC
description: Low-power modes secure protection description: Low-power modes secure protection
bit_offset: 12 bit_offset: 12
bit_size: 1 bit_size: 1
enum: SEC
- name: VDMSEC - name: VDMSEC
description: Voltage detection and monitoring secure protection description: Voltage detection and monitoring secure protection
bit_offset: 13 bit_offset: 13
bit_size: 1 bit_size: 1
enum: SEC
- name: VBSEC - name: VBSEC
description: Backup domain secure protection description: Backup domain secure protection
bit_offset: 14 bit_offset: 14
bit_size: 1 bit_size: 1
enum: SEC
- name: APCSEC - name: APCSEC
description: Pull-up/pull-down secure protection description: Pull-up/pull-down secure protection
bit_offset: 15 bit_offset: 15
bit_size: 1 bit_size: 1
enum: SEC
fieldset/SR: fieldset/SR:
description: status register description: status register
fields: fields:
@ -675,15 +666,6 @@ enum/PDS:
- name: Lost - name: Lost
description: Content lost in Stop modes description: Content lost in Stop modes
value: 1 value: 1
enum/PRIV:
bit_size: 1
variants:
- name: Unprivileged
description: Read and write to non-secure functions can be done by privileged or unprivileged access.
value: 0
- name: Privileged
description: Read and write to non-secure functions can be done by privileged access only.
value: 1
enum/PVDLS: enum/PVDLS:
bit_size: 3 bit_size: 3
variants: variants:
@ -729,24 +711,6 @@ enum/REGSEL:
- name: SMPS - name: SMPS
description: SMPS selected description: SMPS selected
value: 1 value: 1
enum/RRSB:
bit_size: 1
variants:
- name: NotRetained
description: SRAM2 page1 content not retained in Stop 3 and Standby modes
value: 0
- name: Retained
description: SRAM2 page1 content retained in Stop 3 and Standby modes
value: 1
enum/SEC:
bit_size: 1
variants:
- name: NonSecure
description: CR1, CR2 and CSSF in the SR can be read and written with secure or non-secure access.
value: 0
- name: Secure
description: CR1, CR2, and CSSF in the SR can be read and written only with secure access.
value: 1
enum/SRAMFWU: enum/SRAMFWU:
bit_size: 1 bit_size: 1
variants: variants:

View File

@ -91,7 +91,6 @@ fieldset/CR1:
description: "SRAM2 retention in Standby mode\r This bit is used to keep the SRAM2 content in Standby retention mode." description: "SRAM2 retention in Standby mode\r This bit is used to keep the SRAM2 content in Standby retention mode."
bit_offset: 5 bit_offset: 5
bit_size: 1 bit_size: 1
enum: RRSB
- name: ULPMEN - name: ULPMEN
description: "BOR0 ultra-low-power mode. \r This bit is used to reduce the consumption by configuring the BOR0 in discontinuous mode for Stop 1 and Standby modes. Discontinuous mode is only available when BOR levels 1 to 4 and PVD are disabled.\r Note: This bit must be set to reach the lowest power consumption in the low-power modes.\r Note: This bit must not be set together with autonomous peripherals using HSI as kernel clock.\r Note: When BOR level 1 to 4 or PVD is enabled continuous mode applies independent from ULPMEN." description: "BOR0 ultra-low-power mode. \r This bit is used to reduce the consumption by configuring the BOR0 in discontinuous mode for Stop 1 and Standby modes. Discontinuous mode is only available when BOR levels 1 to 4 and PVD are disabled.\r Note: This bit must be set to reach the lowest power consumption in the low-power modes.\r Note: This bit must not be set together with autonomous peripherals using HSI as kernel clock.\r Note: When BOR level 1 to 4 or PVD is enabled continuous mode applies independent from ULPMEN."
bit_offset: 7 bit_offset: 7
@ -100,12 +99,10 @@ fieldset/CR1:
description: "2.4 GHz RADIO SRAMs (RXTXRAM and Sequence RAM) and Sleep clock retention in Standby mode.\r This bit is used to keep the 2.4 GHz RADIO SRAMs content in Standby retention mode and the 2.4 GHz RADIO sleep timer counter operational." description: "2.4 GHz RADIO SRAMs (RXTXRAM and Sequence RAM) and Sleep clock retention in Standby mode.\r This bit is used to keep the 2.4 GHz RADIO SRAMs content in Standby retention mode and the 2.4 GHz RADIO sleep timer counter operational."
bit_offset: 9 bit_offset: 9
bit_size: 1 bit_size: 1
enum: RADIORSB
- name: R1RSB1 - name: R1RSB1
description: "SRAM1 retention in Standby mode\r This bit is used to keep the SRAM1 content in Standby retention mode." description: "SRAM1 retention in Standby mode\r This bit is used to keep the SRAM1 content in Standby retention mode."
bit_offset: 12 bit_offset: 12
bit_size: 1 bit_size: 1
enum: RRSB
fieldset/CR2: fieldset/CR2:
description: control register 2 description: control register 2
fields: fields:
@ -170,12 +167,10 @@ fieldset/PRIVCFGR:
description: "secure functions privilege configuration\r This bit is set and reset by software.\r It can be written only by a secure privileged access." description: "secure functions privilege configuration\r This bit is set and reset by software.\r It can be written only by a secure privileged access."
bit_offset: 0 bit_offset: 0
bit_size: 1 bit_size: 1
enum: PRIV
- name: NSPRIV - name: NSPRIV
description: "non-secure functions privilege configuration\r This bit is set and reset by software.\r It can be written only by privileged access, secure or non-secure." description: "non-secure functions privilege configuration\r This bit is set and reset by software.\r It can be written only by privileged access, secure or non-secure."
bit_offset: 1 bit_offset: 1
bit_size: 1 bit_size: 1
enum: PRIV
fieldset/RADIOSCR: fieldset/RADIOSCR:
description: 2.4 GHz RADIO status and control register description: 2.4 GHz RADIO status and control register
fields: fields:
@ -200,7 +195,6 @@ fieldset/RADIOSCR:
description: "Ready bit for V<sub>DDHPA</sub> voltage level when selecting VDDRFPA input.\r Note: REGPARDYVDDRFPA does not allow to detect correct V<sub>DDHPA</sub> voltage level when request to lower the level." description: "Ready bit for V<sub>DDHPA</sub> voltage level when selecting VDDRFPA input.\r Note: REGPARDYVDDRFPA does not allow to detect correct V<sub>DDHPA</sub> voltage level when request to lower the level."
bit_offset: 15 bit_offset: 15
bit_size: 1 bit_size: 1
enum: REGPARDYVDDRFPA
fieldset/SECCFGR: fieldset/SECCFGR:
description: security configuration register description: security configuration register
fields: fields:
@ -211,22 +205,18 @@ fieldset/SECCFGR:
array: array:
len: 8 len: 8
stride: 1 stride: 1
enum: SEC
- name: LPMSEC - name: LPMSEC
description: Low-power modes secure protection description: Low-power modes secure protection
bit_offset: 12 bit_offset: 12
bit_size: 1 bit_size: 1
enum: SEC
- name: VDMSEC - name: VDMSEC
description: Voltage detection secure protection description: Voltage detection secure protection
bit_offset: 13 bit_offset: 13
bit_size: 1 bit_size: 1
enum: SEC
- name: VBSEC - name: VBSEC
description: Backup domain secure protection description: Backup domain secure protection
bit_offset: 14 bit_offset: 14
bit_size: 1 bit_size: 1
enum: SEC
fieldset/SR: fieldset/SR:
description: status register description: status register
fields: fields:
@ -412,15 +402,6 @@ enum/MODE:
- name: Sleep - name: Sleep
description: 2.4 GHz RADIO sleep mode description: 2.4 GHz RADIO sleep mode
value: 1 value: 1
enum/PRIV:
bit_size: 1
variants:
- name: Unprivileged
description: Read and write to non-secure functions can be done by privileged or unprivileged access.
value: 0
- name: Privileged
description: Read and write to non-secure functions can be done by privileged access only.
value: 1
enum/PVDLS: enum/PVDLS:
bit_size: 3 bit_size: 3
variants: variants:
@ -457,42 +438,6 @@ enum/PVDO:
- name: Below - name: Below
description: VDD is below the PVD threshold selected by PVDLS[2:0]. description: VDD is below the PVD threshold selected by PVDLS[2:0].
value: 1 value: 1
enum/RADIORSB:
bit_size: 1
variants:
- name: NotRetained
description: 2.4 GHz RADIO SRAMs and sleep timer content not retained in Standby mode
value: 0
- name: Retained
description: 2.4 GHz RADIO SRAMs and sleep timer content retained in Standby mode
value: 1
enum/REGPARDYVDDRFPA:
bit_size: 1
variants:
- name: NotReady
description: Not ready, V<sub>DDHPA</sub> voltage level < REGPAVOS selected supply level
value: 0
- name: Ready
description: Ready, V<sub>DDHPA</sub> voltage level ≥ REGPAVOS selected supply level
value: 1
enum/RRSB:
bit_size: 1
variants:
- name: B_0x0
description: SRAM2 content not retained in Standby mode
value: 0
- name: B_0x1
description: SRAM2 content retained in Standby mode
value: 1
enum/SEC:
bit_size: 1
variants:
- name: NotSecure
description: SVMCR and CR3 can be read and written with secure or non-secure access.
value: 0
- name: Secure
description: SVMCR and CR3 can be read and written only with secure access.
value: 1
enum/SRAMPDS: enum/SRAMPDS:
bit_size: 1 bit_size: 1
variants: variants:

3
transforms/PWR.yaml Normal file
View File

@ -0,0 +1,3 @@
transforms:
- !DeleteEnums
from: ^(PRIV|RRSB|SEC|RADIORSB|REGPARDYVDDRFPA)$