Re: [U-Boot] [PATCH v3 08/10] dm: Add a simple EEPROM driver

2014-12-03 Thread Przemyslaw Marczak
Hello, On 12/03/2014 04:18 PM, Simon Glass wrote: Hi Masahiro, On 1 December 2014 at 04:48, Masahiro Yamada wrote: Hi Simon, On Mon, 24 Nov 2014 11:57:22 -0700 Simon Glass wrote: --- /dev/null +++ b/drivers/misc/i2c_eeprom.c @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2014 Google, Inc + * +

Re: [U-Boot] [PATCH v3 08/10] dm: Add a simple EEPROM driver

2014-12-03 Thread Masahiro YAMADA
Hi Simon, 2014-12-04 0:18 GMT+09:00 Simon Glass : >> Moreover, can we read data from EEPROM >> without knowing if its parent is I2C bus or SPI bus ? >> >> >> My rough image is like this: >> >> int eeprom_read(struct udevice *dev, int offset, uint8_t buf, int size) >> { >> struct udevice

Re: [U-Boot] [PATCH v3 08/10] dm: Add a simple EEPROM driver

2014-12-03 Thread Simon Glass
Hi Masahiro, On 1 December 2014 at 04:48, Masahiro Yamada wrote: > Hi Simon, > > > > > > On Mon, 24 Nov 2014 11:57:22 -0700 > Simon Glass wrote: > >> --- /dev/null >> +++ b/drivers/misc/i2c_eeprom.c >> @@ -0,0 +1,51 @@ >> +/* >> + * Copyright (c) 2014 Google, Inc >> + * >> + * SPDX-License-Ident

Re: [U-Boot] [PATCH v3 08/10] dm: Add a simple EEPROM driver

2014-12-01 Thread Masahiro Yamada
Hi Simon, On Mon, 24 Nov 2014 11:57:22 -0700 Simon Glass wrote: > --- /dev/null > +++ b/drivers/misc/i2c_eeprom.c > @@ -0,0 +1,51 @@ > +/* > + * Copyright (c) 2014 Google, Inc > + * > + * SPDX-License-Identifier: GPL-2.0+ > + */ > + > +#include > +#include > +#include > +#include > + >

[U-Boot] [PATCH v3 08/10] dm: Add a simple EEPROM driver

2014-11-24 Thread Simon Glass
There seem to be a few EEPROM drivers around - perhaps we should have a single standard one? This simple driver is used for sandbox testing, but could be pressed into more active service. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: - Update commit message for EEPROM driver