summaryrefslogtreecommitdiffstats
path: root/include/i2c
diff options
context:
space:
mode:
authorTrent Piepho <tpiepho@kymetacorp.com>2015-11-23 23:40:53 +0000
committerSascha Hauer <s.hauer@pengutronix.de>2015-11-26 09:05:59 +0100
commitf9c9550b8dd397363af8ed5a41f65eb89bf4ca8e (patch)
tree43b2817648eb5ec74abc9e1e5334c470edfb9899 /include/i2c
parentb097f7b9100a812d61c904d1211686e08fb00bd2 (diff)
downloadbarebox-f9c9550b8dd397363af8ed5a41f65eb89bf4ca8e.tar.gz
barebox-f9c9550b8dd397363af8ed5a41f65eb89bf4ca8e.tar.xz
eeprom: Add support for 24c1025 EEPROM
This is the Microchip version of the Atmel 24c1024, which is already supported. The key difference between them is that the I2C address bit used to select between the two banks is bit 2 for the 1025 and not bit 0 as in the 1024. Add a flag to describe this difference. Signed-off-by: Trent Piepho <tpiepho@kymetacorp.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/i2c')
-rw-r--r--include/i2c/at24.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/i2c/at24.h b/include/i2c/at24.h
index 1013308459..44a64a0e16 100644
--- a/include/i2c/at24.h
+++ b/include/i2c/at24.h
@@ -30,6 +30,7 @@ struct at24_platform_data {
#define AT24_FLAG_READONLY 0x40 /* sysfs-entry will be read-only */
#define AT24_FLAG_IRUGO 0x20 /* sysfs-entry will be world-readable */
#define AT24_FLAG_TAKE8ADDR 0x10 /* take always 8 addresses (24c00) */
+#define AT24_FLAG_BANK_BIT_2 0x08 /* blank select at bit 2 (vs lsb) */
};
#endif /* _LINUX_AT24_H */