[U-Boot] [PATCH v2] i2c_eeprom: Add reading support
Simon Glass
sjg at chromium.org
Sun Jun 26 04:53:26 CEST 2016
On 22 June 2016 at 07:14, Mario Six <mario.six at gdsys.cc> wrote:
> From: "mario.six at gdsys.cc" <mario.six at gdsys.cc>
>
> 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 at gdsys.cc>
> ---
>
> Changes in v2:
> - Simplified and documented the i2c_eeprom struct
> - Simplified the read function
> - Corrected Kconfig dependency (from DM to MISC)
>
> ---
> drivers/misc/Kconfig | 5 +++++
> drivers/misc/i2c_eeprom.c | 39 +++++++++++++++++++++++++++++++--------
> include/i2c_eeprom.h | 4 ++++
> 3 files changed, 40 insertions(+), 8 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list