From a0c7c136fab7fdbb9c9e02edf1ec4cc4fd534651 Mon Sep 17 00:00:00 2001 From: Torin Cooper-Bennun Date: Thu, 11 Apr 2024 10:25:07 +0100 Subject: [PATCH] flash_h50: add PRODUCT_STATE enum the values are taken from the official HAL headers; I have only included enum variants which are definitively mentioned in RM0492, excluding other variants mentioned in the HAL headers --- data/registers/flash_h50.yaml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/data/registers/flash_h50.yaml b/data/registers/flash_h50.yaml index 683f4ce..df89390 100644 --- a/data/registers/flash_h50.yaml +++ b/data/registers/flash_h50.yaml @@ -460,9 +460,10 @@ fieldset/OPTSR: bit_size: 1 enum: OPTSR_NRST_STDBY - name: PRODUCT_STATE - description: Life state code (based on Hamming 8,4). More information in . + description: Life state code (based on Hamming 8,4). bit_offset: 8 bit_size: 8 + enum: PRODUCT_STATE - name: IO_VDD_HSLV description: High-speed IO at low VDD voltage status bit. This bit can be set only with VDD below 2.5 V. bit_offset: 16 @@ -723,6 +724,27 @@ enum/OPTSR_NRST_STDBY: - name: B_0x1 description: no reset generated when entering Standby mode on core domain. value: 1 +enum/PRODUCT_STATE: + bit_size: 8 + variants: + - name: OPEN + description: Open + value: 0xED + - name: PROVISIONING + description: Provisioning + value: 0x17 + - name: IROT_PROVISIONED + description: iROT-Provisioned + value: 0x2E + - name: CLOSED + description: Closed + value: 0x72 + - name: LOCKED + description: Locked + value: 0x5C + - name: REGRESSION + description: Regression + value: 0x9A enum/OPTSR_NRST_STOP: bit_size: 1 variants: