c6cb2d6942
Devices like the ATSAM series chips have retained registers which are used to store memory. The memory is accessed just like RAM, but since they are registers, their size and address is used directly. This commit adds a near complete copy of the generic retained ram driver and bindings file, adding the reg property to the bindings file, and updating the init macro in the driver to use the reg address and size. Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
17 lines
486 B
Plaintext
17 lines
486 B
Plaintext
# Copyright (c) 2023 Nordic Semiconductor ASA
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config RETAINED_MEM_ZEPHYR_RAM
|
|
bool "Generic Zephyr RAM retained memory driver"
|
|
default y
|
|
depends on DT_HAS_ZEPHYR_RETAINED_RAM_ENABLED
|
|
help
|
|
Enable driver for retained memory in RAM.
|
|
|
|
config RETAINED_MEM_ZEPHYR_REG
|
|
bool "Generic Zephyr register retained memory driver"
|
|
default y
|
|
depends on DT_HAS_ZEPHYR_RETAINED_REG_ENABLED
|
|
help
|
|
Enable driver for retained memory in retained registers.
|