zephyr/drivers/bbram/Kconfig
Patryk Duda f7fca220ba drivers: bbram: Introduce BBRAM shell
Add 'bbram' command which is very convenient tool for examining and
modyfying BBRAM content.

Examples:

Write one byte:
$ bbram write backup_regs 0x1 0xaa

Write many bytes (starting from 0x13):
$ bbram write backup_regs 0x13 0xa 0xb 0xc 0xd 0xe 0xf 0xaa 0xab 0xac

Read whole BBRAM:
$ bbram read backup_regs

Read many bytes (4 bytes starting from address 0x14 in this case):
$ bbram read backup_regs 0x14 4

Read one byte (from 0x14 address):
$ bbram read backup_regs 0x14

Signed-off-by: Patryk Duda <pdk@semihalf.com>
2022-12-08 16:47:09 +09:00

41 lines
870 B
Plaintext

# Copyright (c) 2021 Google Inc
# SPDX-License-Identifier: Apache-2.0
menuconfig BBRAM
bool "Battery-backed RAM drivers"
help
Enable BBRAM (battery-backed RAM) driver configuration.
if BBRAM
module = BBRAM
module-str = bbram
source "subsys/logging/Kconfig.template.log_config"
config BBRAM_SHELL
bool "Battery-backed RAM shell"
depends on SHELL
help
Enable the BBRAM shell with read and write commands.
config BBRAM_INIT_PRIORITY
int "Init priority"
# 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
default 10
help
BBRAM driver initialization priority
source "drivers/bbram/Kconfig.npcx"
source "drivers/bbram/Kconfig.it8xxx2"
source "drivers/bbram/Kconfig.bbram_emul"
source "drivers/bbram/Kconfig.xec"
source "drivers/bbram/Kconfig.stm32"
endif # BBRAM