2021-01-25 15:51:17 +08:00
|
|
|
# Copyright (c) 2021 Google Inc
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
menuconfig BBRAM
|
2023-03-27 20:55:23 +08:00
|
|
|
bool "Battery-backed RAM (BBRAM) drivers"
|
2021-01-25 15:51:17 +08:00
|
|
|
help
|
|
|
|
Enable BBRAM (battery-backed RAM) driver configuration.
|
|
|
|
|
|
|
|
if BBRAM
|
|
|
|
|
|
|
|
module = BBRAM
|
|
|
|
module-str = bbram
|
|
|
|
source "subsys/logging/Kconfig.template.log_config"
|
|
|
|
|
2022-10-25 17:10:32 +08:00
|
|
|
config BBRAM_SHELL
|
|
|
|
bool "Battery-backed RAM shell"
|
|
|
|
depends on SHELL
|
|
|
|
help
|
|
|
|
Enable the BBRAM shell with read and write commands.
|
|
|
|
|
2021-01-25 15:51:17 +08:00
|
|
|
config BBRAM_INIT_PRIORITY
|
|
|
|
int "Init priority"
|
2022-10-24 22:37:21 +08:00
|
|
|
# In STM32, BBRAM is a part of RTC. In this case init priority must be
|
|
|
|
# lower than COUNTER_INIT_PRIORITY.
|
|
|
|
default 65 if BBRAM_STM32
|
2023-02-24 20:12:43 +08:00
|
|
|
# MCP7940N is an I2C device, therefore the init priority must be
|
|
|
|
# greater than I2C_INIT_PRIORITY.
|
|
|
|
default 55 if BBRAM_MICROCHIP_MCP7940N
|
2021-01-25 15:51:17 +08:00
|
|
|
default 10
|
|
|
|
help
|
|
|
|
BBRAM driver initialization priority
|
|
|
|
|
|
|
|
source "drivers/bbram/Kconfig.npcx"
|
|
|
|
|
2021-08-21 03:31:33 +08:00
|
|
|
source "drivers/bbram/Kconfig.it8xxx2"
|
|
|
|
|
2021-01-25 15:51:17 +08:00
|
|
|
source "drivers/bbram/Kconfig.bbram_emul"
|
|
|
|
|
2023-02-24 20:12:43 +08:00
|
|
|
source "drivers/bbram/Kconfig.microchip"
|
|
|
|
|
2022-02-04 03:14:26 +08:00
|
|
|
source "drivers/bbram/Kconfig.xec"
|
|
|
|
|
2022-10-24 22:37:21 +08:00
|
|
|
source "drivers/bbram/Kconfig.stm32"
|
|
|
|
|
2021-01-25 15:51:17 +08:00
|
|
|
endif # BBRAM
|