[U-Boot] [PATCH] ns16550: allow UART address to be set dynamically
Wolfgang Denk
wd at denx.de
Thu Dec 13 11:27:11 CET 2012
Dear Stephen Warren,
In message <1355354590-10023-1-git-send-email-swarren at wwwdotorg.org> you wrote:
> From: Stephen Warren <swarren at nvidia.com>
>
> 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 <swarren at nvidia.com>
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
More information about the U-Boot
mailing list