aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2016-06-06 10:48:54 +0200
committerWolfram Sang <wsa@the-dreams.de>2016-07-17 19:58:00 +0200
commit0b813658c11532be90cbf5f579a8ba45a8cc9dbf (patch)
treeb4212c97c25ac933d73a29474cdf8add87ba9c89 /include/linux/platform_data
parenteeprom: at24: support reading the serial number for 24csxx (diff)
downloadlinux-dev-0b813658c11532be90cbf5f579a8ba45a8cc9dbf.tar.xz
linux-dev-0b813658c11532be90cbf5f579a8ba45a8cc9dbf.zip
eeprom: at24: add support for at24mac series
Add a new read function to the at24 driver allowing to retrieve the factory-programmed mac address embedded in chips from the at24mac family. These chips can be instantiated similarily to the at24cs family, except that there's no way of having access to both the serial number and the mac address at the same time - the user must instantiate either an at24cs or at24mac device as both special memory areas are accessible on the same slave address. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/at24.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/platform_data/at24.h b/include/linux/platform_data/at24.h
index d59587473aed..271a4e25af67 100644
--- a/include/linux/platform_data/at24.h
+++ b/include/linux/platform_data/at24.h
@@ -49,6 +49,7 @@ struct at24_platform_data {
#define AT24_FLAG_IRUGO BIT(5) /* sysfs-entry will be world-readable */
#define AT24_FLAG_TAKE8ADDR BIT(4) /* take always 8 addresses (24c00) */
#define AT24_FLAG_SERIAL BIT(3) /* factory-programmed serial number */
+#define AT24_FLAG_MAC BIT(2) /* factory-programmed mac address */
void (*setup)(struct nvmem_device *nvmem, void *context);
void *context;