From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [u-boot v2] and i2c
Date: Tue, 28 Apr 2009 09:36:46 +0200 [thread overview]
Message-ID: <49F6B20E.9070502@denx.de> (raw)
Hello Sascha,
I actually looked in the u-boot-v2.git in the i2c branch,
because I wanted to look how things in v2 work, specially
I2C Subsystem ... and I have a first question:
- In ppc area, we start running from flash and have to relocate
code. Before setting up RAM, we maybe have to read SPD EEprom
over I2C for this. How could this work in v2? I see in
drivers/i2c/i2c-core.c in i2c_register_adapter () an
INIT_LIST_HEAD(&adap->clients);
This could not work, when running from Flash, because we have no
usable RAM ...
So I looked how this device approach globally works, and found in
lib/driver.c in register_device() also:
107
108 list_add_tail(&new_device->list, &device_list);
109 INIT_LIST_HEAD(&new_device->children);
110
so would this device_driver approach in v2 actually only work,
if running from RAM? What if we need the devices earlier?
Maybe I overlooked something obvious?
bye
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
next reply other threads:[~2009-04-28 7:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-28 7:36 Heiko Schocher [this message]
2009-04-28 9:47 ` [U-Boot] [u-boot v2] and i2c Sascha Hauer
2009-04-28 10:07 ` Heiko Schocher
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=49F6B20E.9070502@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