1# EEPROM driver configuration options 2 3# Copyright (c) 2019 Vestas Wind Systems A/S 4# SPDX-License-Identifier: Apache-2.0 5 6menuconfig EEPROM 7 bool "EEPROM hardware support" 8 help 9 Enable support for EEPROM hardware. 10 11if EEPROM 12 13module = EEPROM 14module-str = eeprom 15source "subsys/logging/Kconfig.template.log_config" 16 17config EEPROM_SHELL 18 bool "Enable EEPROM shell" 19 default y 20 depends on SHELL 21 help 22 Enable the EEPROM shell with EEPROM related commands. 23 24config EEPROM_SHELL_BUFFER_SIZE 25 int "EEPROM shell buffer size" 26 default 256 27 depends on EEPROM_SHELL 28 help 29 Size of the buffer used for EEPROM read/write commands in 30 the EEPROM shell. 31 32config EEPROM_AT2X 33 bool 34 help 35 Enable support for Atmel AT2x (and compatible) I2C/SPI 36 EEPROMs. 37 38config EEPROM_AT24 39 bool "Atmel AT24 (and compatible) I2C EEPROM support" 40 depends on I2C 41 select EEPROM_AT2X 42 help 43 Enable support for Atmel AT24 (and compatible) I2C EEPROMs. 44 45config EEPROM_AT25 46 bool "Atmel AT25 (and compatible) SPI EEPROM support" 47 depends on SPI 48 select EEPROM_AT2X 49 help 50 Enable support for Atmel AT25 (and compatible) SPI EEPROMs. 51 52config EEPROM_AT2X_INIT_PRIORITY 53 int "AT2X EEPROM init priority" 54 default 75 55 depends on EEPROM_AT2X 56 57source "drivers/eeprom/Kconfig.lpc11u6x" 58source "drivers/eeprom/Kconfig.stm32" 59source "drivers/eeprom/Kconfig.eeprom_emu" 60 61config EEPROM_SIMULATOR 62 bool "Simulated EEPROM driver" 63 select STATS 64 select STATS_NAMES 65 help 66 Enable Simulated EEPROM driver. 67 68config EEPROM_SIMULATOR_SIMULATE_TIMING 69 bool "Enable hardware timing simulation" 70 depends on EEPROM_SIMULATOR 71 help 72 Enable Simulated hardware timing. 73 74if EEPROM_SIMULATOR_SIMULATE_TIMING 75 76config EEPROM_SIMULATOR_MIN_READ_TIME_US 77 int 78 prompt "Minimum read time (µS)" 79 default 2 80 range 1 1000000 81 82config EEPROM_SIMULATOR_MIN_WRITE_TIME_US 83 int 84 prompt "Minimum write time (µS)" 85 default 100 86 range 1 1000000 87 88endif # EEPROM_SIMULATOR_SIMULATE_TIMING 89 90endif # EEPROM 91