Add support for multiple AT24xx EEPROM devices

This commit is contained in:
Gregory Nutt
2015-11-17 07:40:17 -06:00
parent 876cb13356
commit 724901ceb9
4 changed files with 52 additions and 6 deletions
+10
View File
@@ -278,6 +278,15 @@ config MTD_AT24XX
if MTD_AT24XX
config AT24XX_MULTI
bool "Multiple AT24XX devices"
default n
---help---
Build in additional support for multiple AT24XX devices, each with
dynamically allocated device structures wiath a separate I2C
addresses (but otherwise identical -- support for multiple, different
AT24xx, devices not yet supported).
config AT24XX_SIZE
int "AT24xx size (Kbit)"
default 64
@@ -291,6 +300,7 @@ config AT24XX_ADDR
hex "AT24XX I2C address"
default 0x50
range 0x50 0x57
depends on !AT24XX_MULTI
---help---
The I2C address of the FLASH part. This is should be 0b01010aaa
(where aaa is determined by board/pin configuration).