public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] SPI and I2C EEPROM
@ 2013-11-19  4:18 Aaron Williams
  2013-11-19  4:23 ` Aaron Williams
  2013-11-19  4:41 ` Heiko Schocher
  0 siblings, 2 replies; 3+ messages in thread
From: Aaron Williams @ 2013-11-19  4:18 UTC (permalink / raw)
  To: u-boot

Hi all,

On one of our new boards we have both a SPI (M9256-W) and I2C (24lc256) 
EEPROM. I have run into a couple of issues. First of all, it looks like 
the eeprom command can only handle one EEPROM device. It would be useful 
if multiple devices could be supported.

Another issue I ran into is that the M95XXX driver is hard coded to use CS1.

Perhaps the eeprom command could be enhanced to specify whether the 
device should be spi or i2c rather than hard coded as well as support 
multiple devices?

-Aaron

-- 
Aaron Williams
Software Engineer
Cavium, Inc.
(408) 943-7198  (510) 789-8988 (cell)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] SPI and I2C EEPROM
  2013-11-19  4:18 [U-Boot] SPI and I2C EEPROM Aaron Williams
@ 2013-11-19  4:23 ` Aaron Williams
  2013-11-19  4:41 ` Heiko Schocher
  1 sibling, 0 replies; 3+ messages in thread
From: Aaron Williams @ 2013-11-19  4:23 UTC (permalink / raw)
  To: u-boot

Never mind about the multiple devices, it looks like that is supported. 
My problem is still that only either I2C or SPI are supported and not both.

-Aaron

On 11/18/2013 08:18 PM, Aaron Williams wrote:
> Hi all,
>
> On one of our new boards we have both a SPI (M9256-W) and I2C 
> (24lc256) EEPROM. I have run into a couple of issues. First of all, it 
> looks like the eeprom command can only handle one EEPROM device. It 
> would be useful if multiple devices could be supported.
>
> Another issue I ran into is that the M95XXX driver is hard coded to 
> use CS1.
>
> Perhaps the eeprom command could be enhanced to specify whether the 
> device should be spi or i2c rather than hard coded as well as support 
> multiple devices?
>
> -Aaron
>

-- 
Aaron Williams
Software Engineer
Cavium, Inc.
(408) 943-7198  (510) 789-8988 (cell)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] SPI and I2C EEPROM
  2013-11-19  4:18 [U-Boot] SPI and I2C EEPROM Aaron Williams
  2013-11-19  4:23 ` Aaron Williams
@ 2013-11-19  4:41 ` Heiko Schocher
  1 sibling, 0 replies; 3+ messages in thread
From: Heiko Schocher @ 2013-11-19  4:41 UTC (permalink / raw)
  To: u-boot

Hello Aaron,

Am 19.11.2013 05:18, schrieb Aaron Williams:
> Hi all,
>
> On one of our new boards we have both a SPI (M9256-W) and I2C (24lc256) EEPROM. I have run into a couple of issues. First of all, it looks like the eeprom command can only handle one EEPROM device. It would be useful if multiple devices could be supported.

Yes for "you run into issues"...

The current eeprom driver can handle multiple i2c eeproms on one i2c
bus, see define CONFIG_SYS_I2C_MULTI_EEPROMS in common/cmd_eeprom.c

But not spi and i2c on one board ... and maybe you need also to specify
the eeprom addr len?

> Another issue I ran into is that the M95XXX driver is hard coded to use CS1.
>
> Perhaps the eeprom command could be enhanced to specify whether the device should be spi or i2c rather than hard coded as well as support multiple devices?

Yes its software, so that could be done.

Device driver model would help here much...

bye,
Heiko
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-11-19  4:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-19  4:18 [U-Boot] SPI and I2C EEPROM Aaron Williams
2013-11-19  4:23 ` Aaron Williams
2013-11-19  4:41 ` Heiko Schocher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox