2023-02-23 20:25:51 +08:00
|
|
|
# Copyright (c) 2023, Nordic Semiconductor ASA
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
menuconfig RETENTION
|
|
|
|
bool "Retention support"
|
|
|
|
depends on CRC
|
|
|
|
depends on RETAINED_MEM
|
2023-02-23 22:36:45 +08:00
|
|
|
depends on DT_HAS_ZEPHYR_RETENTION_ENABLED
|
2023-02-23 20:25:51 +08:00
|
|
|
help
|
2023-02-23 22:36:45 +08:00
|
|
|
Enables support for the retention system, which uses retained memory
|
|
|
|
drivers.
|
2023-02-23 20:25:51 +08:00
|
|
|
|
|
|
|
if RETENTION
|
|
|
|
|
|
|
|
config RETENTION_INIT_PRIORITY
|
|
|
|
int "Retention devices init priority"
|
|
|
|
default 86
|
|
|
|
help
|
2023-02-23 22:36:45 +08:00
|
|
|
Retention device initialization priority (must be higher than init
|
|
|
|
priorities for retained memory drivers.
|
2023-02-23 20:25:51 +08:00
|
|
|
|
|
|
|
config RETENTION_BUFFER_SIZE
|
|
|
|
int "Retention stack buffer sizes"
|
|
|
|
default 16
|
|
|
|
range 1 4096
|
|
|
|
help
|
|
|
|
Size of buffers (stack based) used when reading and writing data
|
|
|
|
from/to the retention device.
|
|
|
|
|
2023-02-23 22:36:45 +08:00
|
|
|
menu "Retention modules"
|
|
|
|
|
|
|
|
config RETENTION_BOOT_MODE
|
|
|
|
bool "Boot mode"
|
|
|
|
help
|
|
|
|
Adds a boot mode system that allows for changing execution flow
|
|
|
|
depending upon the value of a boot mode parameter. Can be used for
|
|
|
|
e.g. button-less bootloader serial recovery mode entering from the
|
|
|
|
application.
|
|
|
|
|
|
|
|
In order to use this, a retention area with at least 1 usable user
|
|
|
|
byte must be created and set as the "zephyr,boot-mode" chosen node
|
|
|
|
via device tree.
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
2023-02-23 20:25:51 +08:00
|
|
|
module = RETENTION
|
|
|
|
module-str = retention
|
|
|
|
source "subsys/logging/Kconfig.template.log_config"
|
|
|
|
|
|
|
|
endif # RETENTION
|