zephyr/drivers/eeprom/Kconfig.eeprom_emu
Henrik Brix Andersen bda6455234 drivers: eeprom: Update drivers to use devicetree Kconfig symbol
Update EEPROM drivers to use DT_HAS_<compat>_ENABLED Kconfig symbol
to expose the driver and enable it by default based on devicetree.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2022-07-21 06:03:04 -05:00

15 lines
484 B
Plaintext

# Copyright (c) 2020 Laczen
# SPDX-License-Identifier: Apache-2.0
config EEPROM_EMULATOR
bool "Emulated EEPROM driver"
default y
depends on DT_HAS_ZEPHYR_EMU_EEPROM_ENABLED
select FLASH
help
Enable emulated (on flash) EEPROM support. This mimics an external
EEPROM on a flash partition. The number of writes that can be
performed to the EEPROM is maximized by using a flash area that is
larger than the EEPROM area and by storing only changes to the EEPROM
data.