flash/stm32l4x: probe tzen and rdp values
[fw/openocd] / src / flash / nor / stm32l4x.h
index 3e810a03ce7ef034b6e4fa6e41093d6edc7e0fcc..41b5ff82d9fba4796bce4078dcfeea18f9479775 100644 (file)
@@ -56,9 +56,9 @@
 #define OPTKEY1                                        0x08192A3B
 #define OPTKEY2                                        0x4C5D6E7F
 
-#define RDP_LEVEL_0                            0xAA
-#define RDP_LEVEL_1                            0xBB
-#define RDP_LEVEL_2                            0xCC
+/* FLASH_OPTR register bits */
+#define FLASH_RDP_MASK                 0xFF
+#define FLASH_TZEN                             (1 << 31)
 
 /* other registers */
 #define DBGMCU_IDCODE_G0               0x40015800