
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 12/13/12 05:27, Wolfgang Denk wrote:
Dear Stephen Warren,
In message 1355354590-10023-1-git-send-email-swarren@wwwdotorg.org you wrote:
From: Stephen Warren swarren@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@nvidia.com
As is, this is just adding dead code.
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.
- -- Tom