# Copyright (c) 2024 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0

config HAS_NORDIC_DMM
	bool

config HAS_NORDIC_RAM_CTRL
	bool

config NRF_FORCE_RAM_ON_REBOOT
	bool "Force all RAM blocks to be powered on before rebooting"
	depends on HAS_NORDIC_RAM_CTRL
	help
	  RAM power configuration is preserved through soft reset,
	  meaning that there is a risk of accessing powered off RAM blocks
	  when booting in different application (i.e. bootloader).
	  Force all RAM blocks to be powered on before triggering soft reset
	  to prevent this from happening.

config NRF_SYS_EVENT
	bool "nRF system event support"
	select NRFX_POWER if !NRF_PLATFORM_HALTIUM

config MRAM_LATENCY
	bool "MRAM latency manager"
	depends on NRFS_HAS_MRAM_SERVICE
	select ONOFF
	select NRFS_MRAM_SERVICE_ENABLED

if MRAM_LATENCY

config MRAM_LATENCY_SYNC_TIMEOUT
	int "Timeout in synchronous request"
	default 1000
	help
	  Timeout is given in milliseconds.

config MRAM_LATENCY_AUTO_REQ
	bool "Request MRAM without latency at start"
	help
	  When enabled then MRAM configuration without latency is requested
	  during the initialization and is kept enabled until the mram_latency API user
	  calls mram_no_latency_sync_release().

module = MRAM_LATENCY
module-str = mram_latency
source "subsys/logging/Kconfig.template.log_config"

endif # MRAM_LATENCY

rsource "vpr/Kconfig"
