From: Wolfgang Denk Date: Thu, 13 Dec 2012 11:27:11 +0100 Subject: [U-Boot] [PATCH] ns16550: allow UART address to be set dynamically In-Reply-To: <1355354590-10023-1-git-send-email-swarren@wwwdotorg.org> References: <1355354590-10023-1-git-send-email-swarren@wwwdotorg.org> Message-ID: <20121213102711.6585C20120D@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 Stephen Warren, In message <1355354590-10023-1-git-send-email-swarren@wwwdotorg.org> you wrote: > From: Stephen Warren > > A single U-Boot binary may support multiple very similar boards. These > boards may use different UARTs for the main debug console. Hence, it is > impossible to #define CONFIG_SYS_NS16550_COM1 to some static UART > address, since the true value may only be determined at run-time, after > identifying the actual hardware. Provide an API for boards to call to > set the actual address of the UART, e.g. from spl_board_init() or > board_early_init_f(). > > Signed-off-by: Stephen Warren As is, this is just adding dead code. Where would the device addresses come from - out of the device tree? 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 "We learn from history that we learn nothing from history." - George Bernard Shaw