2019-10-21 03:22:03 +08:00
|
|
|
# EEPROM driver configuration options
|
|
|
|
|
|
|
|
# Copyright (c) 2019 Vestas Wind Systems A/S
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
menuconfig EEPROM
|
|
|
|
bool "EEPROM hardware support"
|
|
|
|
help
|
|
|
|
Enable support for EEPROM hardware.
|
|
|
|
|
|
|
|
if EEPROM
|
|
|
|
|
|
|
|
module = EEPROM
|
|
|
|
module-str = eeprom
|
|
|
|
source "subsys/logging/Kconfig.template.log_config"
|
|
|
|
|
2019-11-01 05:29:08 +08:00
|
|
|
config EEPROM_SHELL
|
|
|
|
bool "Enable EEPROM shell"
|
|
|
|
depends on SHELL
|
|
|
|
help
|
|
|
|
Enable the EEPROM shell with EEPROM related commands.
|
|
|
|
|
|
|
|
config EEPROM_SHELL_BUFFER_SIZE
|
|
|
|
int "EEPROM shell buffer size"
|
|
|
|
default 256
|
|
|
|
depends on EEPROM_SHELL
|
|
|
|
help
|
|
|
|
Size of the buffer used for EEPROM read/write commands in
|
|
|
|
the EEPROM shell.
|
|
|
|
|
2019-11-04 02:06:40 +08:00
|
|
|
config EEPROM_AT2X
|
2019-12-23 19:07:30 +08:00
|
|
|
bool
|
2019-11-04 02:06:40 +08:00
|
|
|
help
|
|
|
|
Enable support for Atmel AT2x (and compatible) I2C/SPI
|
|
|
|
EEPROMs.
|
|
|
|
|
|
|
|
config EEPROM_AT24
|
|
|
|
bool "Atmel AT24 (and compatible) I2C EEPROM support"
|
|
|
|
depends on (I2C && HAS_DTS_I2C)
|
|
|
|
select EEPROM_AT2X
|
|
|
|
help
|
|
|
|
Enable support for Atmel AT24 (and compatible) I2C EEPROMs.
|
|
|
|
|
|
|
|
config EEPROM_AT25
|
|
|
|
bool "Atmel AT25 (and compatible) SPI EEPROM support"
|
|
|
|
depends on SPI
|
|
|
|
select EEPROM_AT2X
|
|
|
|
help
|
|
|
|
Enable support for Atmel AT25 (and compatible) SPI EEPROMs.
|
|
|
|
|
2019-12-10 10:44:44 +08:00
|
|
|
source "drivers/eeprom/Kconfig.stm32"
|
|
|
|
|
2019-11-08 18:27:32 +08:00
|
|
|
config EEPROM_SIMULATOR
|
|
|
|
bool "Simulated EEPROM driver"
|
|
|
|
select STATS
|
|
|
|
select STATS_NAMES
|
|
|
|
help
|
|
|
|
Enable Simulated EEPROM driver.
|
|
|
|
|
|
|
|
if EEPROM_SIMULATOR
|
|
|
|
|
|
|
|
config EEPROM_SIMULATOR_SIMULATE_TIMING
|
|
|
|
bool "Enable hardware timing simulation"
|
|
|
|
help
|
|
|
|
Enable Simulated hardware timing.
|
|
|
|
|
|
|
|
if EEPROM_SIMULATOR_SIMULATE_TIMING
|
|
|
|
|
|
|
|
config EEPROM_SIMULATOR_MIN_READ_TIME_US
|
|
|
|
int
|
|
|
|
prompt "Minimum read time (µS)"
|
|
|
|
default 2
|
|
|
|
range 1 1000000
|
|
|
|
|
|
|
|
config EEPROM_SIMULATOR_MIN_WRITE_TIME_US
|
|
|
|
int
|
|
|
|
prompt "Minimum write time (µS)"
|
|
|
|
default 100
|
|
|
|
range 1 1000000
|
|
|
|
|
|
|
|
endif # EEPROM_SIMULATOR_SIMULATE_TIMING
|
|
|
|
|
|
|
|
endif # EEPROM_SIMULATOR
|
|
|
|
|
2019-10-21 03:22:03 +08:00
|
|
|
endif # EEPROM
|