From: Wolfgang Denk Date: Thu, 13 Dec 2012 15:22:13 +0100 Subject: [U-Boot] [PATCH] ns16550: allow UART address to be set dynamically In-Reply-To: <50C9D41B.7010800@ti.com> References: <1355354590-10023-1-git-send-email-swarren@wwwdotorg.org> <20121213102711.6585C20120D@gemini.denx.de> <50C9D41B.7010800@ti.com> Message-ID: <20121213142213.7618D20120D@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Tom Rini, In message <50C9D41B.7010800@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 /