1# Copyright (c) 2021 Google Inc
2# SPDX-License-Identifier: Apache-2.0
3
4menuconfig BBRAM
5	bool "Battery-backed RAM (BBRAM) drivers"
6	help
7	  Enable BBRAM (battery-backed RAM) driver configuration.
8
9if BBRAM
10
11module = BBRAM
12module-str = bbram
13source "subsys/logging/Kconfig.template.log_config"
14
15config BBRAM_SHELL
16	bool "Battery-backed RAM shell"
17	depends on SHELL
18	help
19	  Enable the BBRAM shell with read and write commands.
20
21config BBRAM_INIT_PRIORITY
22	int "Init priority"
23	# In STM32, BBRAM is a part of RTC. In this case init priority must be
24	# lower than COUNTER_INIT_PRIORITY.
25	default 65 if BBRAM_STM32
26	# MCP7940N is an I2C device, therefore the init priority must be
27	# greater than I2C_INIT_PRIORITY.
28	default 55 if BBRAM_MICROCHIP_MCP7940N
29	default 10
30	help
31	  BBRAM driver initialization priority
32
33source "drivers/bbram/Kconfig.npcx"
34
35source "drivers/bbram/Kconfig.it8xxx2"
36
37source "drivers/bbram/Kconfig.bbram_emul"
38
39source "drivers/bbram/Kconfig.microchip"
40
41source "drivers/bbram/Kconfig.xec"
42
43source "drivers/bbram/Kconfig.stm32"
44
45endif # BBRAM
46