public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Multiple device support - none at all?
@ 2009-03-10 20:41 ksi at koi8.net
  2009-03-10 21:15 ` Jerry Van Baren
  0 siblings, 1 reply; 13+ messages in thread
From: ksi at koi8.net @ 2009-03-10 20:41 UTC (permalink / raw)
  To: u-boot

Hi, everyone.

I wonder if I'm dreaming or the U-Boot is fundamentally broken...

It looks like there is no support for multiple devices of a same kind at
all.

I'm porting U-Boot to my new MPC8548-based board and it pops up
everywhere...

The first case was I2C subsystem that does not provide for several I2C
adapters except rudimentary hacks for fsl_i2c.

Now it is USB. I have 2 OHCI USB controllers on the board, OHCI module in
NXP ISP1563 and OHCI controller in Silicon Motion SM502 MFD. The former is
supported in drivers/usb/usb_ohci.c, the latter is kinda trivial to add,
BUT...

It looks like nobody even considered the case when a board can have several
controllers... Looking at usb_lowlevel_init() I can see it only works for
the first device found, there is absolutely no provision for several
devices. And things are getting even nastier if there are devices of the
same type with different interfaces (e.g. on-SoC USB controller and a PCI
one.)

And this seems to be the case for each and every device type. Am I missing
something or U-Boot is actually flawed in FUNDAMENTAL way and it is time to
start a new one from scratch?

---
******************************************************************
*  KSI at home    KOI8 Net  < >  The impossible we do immediately.  *
*  Las Vegas   NV, USA   < >  Miracles require 24-hour notice.   *
******************************************************************

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

end of thread, other threads:[~2009-03-13  8:24 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-10 20:41 [U-Boot] Multiple device support - none at all? ksi at koi8.net
2009-03-10 21:15 ` Jerry Van Baren
2009-03-10 21:30   ` ksi at koi8.net
2009-03-12 15:25     ` Detlev Zundel
2009-03-12 16:00       ` ksi at koi8.net
2009-03-12 17:25         ` Detlev Zundel
2009-03-12 18:07           ` ksi at koi8.net
2009-03-12 19:01             ` Wolfgang Denk
2009-03-12 19:57               ` ksi at koi8.net
2009-03-12 21:29                 ` Wolfgang Denk
2009-03-12 22:11                   ` ksi at koi8.net
2009-03-13  8:24                     ` Heiko Schocher
2009-03-13  6:45             ` Heiko Schocher

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