Home
last modified time | relevance | path

Searched full:bbram (Results 1 – 25 of 82) sorted by relevance

1234

/Zephyr-latest/drivers/bbram/
DKconfig4 menuconfig BBRAM config
5 bool "Battery-backed RAM (BBRAM) drivers"
7 Enable BBRAM (battery-backed RAM) driver configuration.
9 if BBRAM
11 module = BBRAM
12 module-str = bbram
19 Enable the BBRAM shell with read and write commands.
23 # In STM32, BBRAM is a part of RTC. In this case init priority must be
31 BBRAM driver initialization priority
33 source "drivers/bbram/Kconfig.npcx"
[all …]
DKconfig.it8xxx29 This option enables the BBRAM driver for RISCV_ITE family of
13 bool "Emulator for the ITE IT81202 BBRAM driver"
18 Enable the emulator for the ITE IT81202 BBRAM.
DKconfig.npcx9 This option enables the BBRAM driver for NPCX family of processors.
12 bool "Emulator for the NPCX BBRAM driver"
17 Enable the emulator for the NPCX BBRAM.
Dbbram_emul.c8 #include <zephyr/drivers/bbram.h>
12 LOG_MODULE_REGISTER(bbram, CONFIG_BBRAM_LOG_LEVEL);
16 /** BBRAM size (Unit:bytes) */
26 /** True if BBRAM is in an invalid state */
28 /** True if BBRAM incurred a standby power failure */
30 /** True if BBRAM incurred a power failure */
122 static DEVICE_API(bbram, bbram_emul_driver_api) = {
Dbbram_xec.c9 #include <zephyr/drivers/bbram.h>
15 LOG_MODULE_REGISTER(bbram, CONFIG_BBRAM_LOG_LEVEL);
19 /** BBRAM base address */
21 /** BBRAM size (Unit:bytes) */
75 static DEVICE_API(bbram, bbram_xec_driver_api) = {
Dbbram_shell.c11 #include <zephyr/drivers/bbram.h>
60 shell_error(sh, "Missing BBRAM device"); in parse_device()
66 shell_error(sh, "Given BBRAM device was not found"); in parse_device()
86 /* Dump whole BBRAM if address not provided. */ in cmd_read()
90 shell_error(sh, "Can't get BBRAM size: %d", ret); in cmd_read()
118 shell_error(sh, "BBRAM read error: %d", ret); in cmd_read()
169 shell_error(sh, "BBRAM write error: %d", ret); in cmd_write()
202 SHELL_CMD_ARG_REGISTER(bbram, &bbram_cmds, "Battery-backed RAM shell commands", cmd_bbram, 2, 0);
DKconfig.microchip5 bool "Microchip MCP7940N SRAM BBRAM driver"
13 bool "Emulator for the Microchip MCP7940N SRAM BBRAM driver"
DKconfig.stm3210 This option enables the BBRAM driver for STM32 family of
13 STM32 BBRAM are 32-bit registers which can be used for storing user
Dbbram_stm32.c11 #include <zephyr/drivers/bbram.h>
16 LOG_MODULE_REGISTER(bbram, CONFIG_BBRAM_LOG_LEVEL);
34 /* BBRAM base address */
36 /* BBRAM size in bytes. */
97 static DEVICE_API(bbram, bbram_stm32_driver_api) = {
Dit8xxx2.h15 /** BBRAM base address */
17 /** BBRAM size (Unit:bytes) */
/Zephyr-latest/tests/drivers/bbram/
Dtestcase.yaml7 - bbram
12 drivers.bbram.it8xxx2:
13 filter: dt_compat_enabled("ite,it8xxx2-bbram")
16 drivers.bbram.npcx:
17 filter: dt_compat_enabled("nuvoton,npcx-bbram")
20 drivers.bbram.stm32:
22 filter: dt_compat_enabled("st,stm32-bbram")
26 drivers.bbram.stm32_rtc:
28 filter: dt_compat_enabled("st,stm32-bbram")
/Zephyr-latest/doc/hardware/peripherals/
Dbbram.rst3 Battery Backed RAM (BBRAM)
6 The BBRAM APIs allow interfacing with the unique properties of this memory region. The following
7 common types of BBRAM properties are easily accessed via this API:
9 - IBBR (invalid) state - check that the BBRAM is not corrupt.
10 - VSBY (voltage standby) state - check if the BBRAM is using standby voltage.
11 - VCC (active power) state - check if the BBRAM is on normal power.
12 - Size - get the size (in bytes) of the BBRAM region.
16 succeed if the BBRAM is in a valid state and the operation is bounded to the memory region.
/Zephyr-latest/include/zephyr/drivers/
Dbbram.h15 * @brief BBRAM Interface
16 * @defgroup bbram_interface BBRAM Interface
27 * @brief API template to check if the BBRAM is invalid.
51 * @brief API template to check the size of the BBRAM
59 * @brief API template to read from BBRAM.
68 * @brief API template to write to BBRAM.
85 * @brief Check if BBRAM is invalid
90 * @param[in] dev BBRAM device pointer.
112 * @param[in] dev BBRAM device pointer.
135 * @param[in] dev BBRAM device pointer.
[all …]
Demul_bbram.h14 * @brief BBRAM emulator backend API
15 * @defgroup bbram_emulator_backend BBRAM emulator backend API
39 * @brief Set the expected data in the bbram region
66 * @brief Get the expected data in the bbram region
/Zephyr-latest/tests/drivers/bbram/emul/src/
Dmain.c7 #include <zephyr/drivers/bbram.h>
11 #define BBRAM_NODELABEL DT_NODELABEL(bbram)
14 ZTEST(bbram, test_get_size) in ZTEST() argument
25 ZTEST(bbram, test_bbram_out_of_bounds) in ZTEST() argument
38 ZTEST(bbram, test_read_write) in ZTEST() argument
53 ZTEST(bbram, test_set_invalid) in ZTEST() argument
63 ZTEST(bbram, test_set_standby) in ZTEST() argument
73 ZTEST(bbram, test_set_power) in ZTEST() argument
83 ZTEST(bbram, test_reset_invalid_on_read) in ZTEST() argument
93 ZTEST(bbram, test_reset_invalid_on_write) in ZTEST() argument
[all …]
/Zephyr-latest/tests/drivers/bbram/emul/boards/
Dnative_sim.overlay8 bbram: bbram {
9 compatible = "zephyr,bbram-emul";
/Zephyr-latest/tests/drivers/build_all/bbram/
Dtestcase.yaml8 - bbram
11 drivers.bbram.build:
15 drivers.bbram.emul.build:
/Zephyr-latest/tests/drivers/bbram/generic/
Dtestcase.yaml5 drivers.bbram.generic:
8 - bbram
/Zephyr-latest/tests/drivers/bbram/emul/
Dtestcase.yaml5 drivers.bbram.emul:
8 - bbram
/Zephyr-latest/dts/bindings/memory-controllers/
Dzephyr,bbram-emul.yaml6 compatible: "zephyr,bbram-emul"
14 description: Size of the BBRAM region in bytes.
Dst,stm32-bbram.yaml7 STM32 BBRAM are 32-bit registers which can be used for storing user
13 compatible: "st,stm32-bbram"
/Zephyr-latest/tests/drivers/bbram/generic/boards/
Dnative_sim.overlay18 compatible = "ite,it8xxx2-bbram";
23 compatible = "nuvoton,npcx-bbram";
/Zephyr-latest/dts/arm/st/f3/
Dstm32f302X8.dtsi23 bbram: backup_regs { label
24 compatible = "st,stm32-bbram";
/Zephyr-latest/dts/arm/st/l1/
Dstm32l151Xb-a.dtsi26 bbram: backup_regs { label
27 compatible = "st,stm32-bbram";
Dstm32l151Xb.dtsi26 bbram: backup_regs { label
27 compatible = "st,stm32-bbram";

1234