boot/boot_serial; syscfg restrictions should allow nvreg only
way of entering serial upload mode.
@@ -23,7 +23,8 @@ syscfg.defs:
value: '-1'
restrictions:
- '(BOOT_SERIAL_DETECT_PIN != -1) ||
- (BOOT_SERIAL_DETECT_TIMEOUT != 0)'
+ (BOOT_SERIAL_DETECT_TIMEOUT != 0) ||
+ (BOOT_SERIAL_NVREG_INDEX != -1)'
BOOT_SERIAL_DETECT_PIN_CFG:
description: >
@@ -48,7 +49,8 @@ syscfg.defs:
value: 0
restrictions:
- '(BOOT_SERIAL_DETECT_PIN != -1) ||
- (BOOT_SERIAL_DETECT_TIMEOUT != 0)'
+ (BOOT_SERIAL_DETECT_TIMEOUT != 0) ||
+ (BOOT_SERIAL_NVREG_INDEX != -1)'
BOOT_SERIAL_DETECT_STRING:
description: >
@@ -84,3 +86,7 @@ syscfg.defs:
Index of retained register to use (using hal_nvreg_read) for reading
magic value.
value: -1
+ restrictions:
+ - '(BOOT_SERIAL_DETECT_PIN != -1) ||
+ (BOOT_SERIAL_DETECT_TIMEOUT != 0) ||
+ (BOOT_SERIAL_NVREG_INDEX != -1)'
