]> git.sur5r.net Git - u-boot/commit
i2c_eeprom: Add reading support
authormario.six@gdsys.cc <mario.six@gdsys.cc>
Wed, 22 Jun 2016 13:14:16 +0000 (15:14 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 22 Jul 2016 13:52:59 +0000 (09:52 -0400)
commitd7e28918aa3f4bafc15b16c546826d43fbcbe9f6
treea010addfaa62742ea533c7e47ff6f2e9eca5185d
parent9f03247edc7761b608db31104821b4518a70e691
i2c_eeprom: Add reading support

This patch implements the reading functionality for the generic I2C
EEPROM driver, which was just a non-functional stub until now.

Since the page size will be of importance for the writing support, we
add suitable members to the private data structure to keep track of it.

Compatibility strings for a range of at24c* chips are added.

Signed-off-by: Mario Six <mario.six@gdsys.cc>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/misc/Kconfig
drivers/misc/i2c_eeprom.c
include/i2c_eeprom.h