[U-Boot] [PATCH] ns16550: allow UART address to be set dynamically
Wolfgang Denk
wd at denx.de
Thu Dec 13 15:22:13 CET 2012
Dear Tom Rini,
In message <50C9D41B.7010800 at ti.com> you wrote:
>
> > Where would the device addresses come from - out of the device
> > tree?
>
> Board specific knowledge. I'd be tempted to add UART3 (iirc) into the
> am335x_evm default build so that we can support the Industrial DevKit
> variant out of the box, rather than needing one of the other _uartN
> builds. We can tell which board we're on at run-time already.
I'm afraid this doesn't scale. You are opening a can of worms here.
The UART port may seem simple enough, but you set a precedent. Next
comes some netowrk interface configuration, then if we have a RTC,
followed by LCD properties, and so on.
We have two ways to configure hardware properties:
- static configuration in the board config file
- dynamic configuration through the device tree
Please do not start adding other methods.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
panic: can't find /
More information about the U-Boot
mailing list