public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] SPI and I2C EEPROM
Date: Tue, 19 Nov 2013 05:41:07 +0100	[thread overview]
Message-ID: <528AEBE3.8030608@denx.de> (raw)
In-Reply-To: <528AE679.3090806@caviumnetworks.com>

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

      parent reply	other threads:[~2013-11-19  4:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=528AEBE3.8030608@denx.de \
    --to=hs@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox