driver/uart: Introduce a way for mainboard to override the baudrate

The rationale is to allow the mainboard to override the default
baudrate for instance by sampling GPIOs at boot.

A new configuration option is available for mainboards to select
this behaviour. It will then have to define the function
get_uart_baudrate to return the computed baudrate.

Change-Id: I970ee788bf90b9e1a8c6ccdc5eee8029d9af0ecc
Signed-off-by: Julien Viard de Galbert <>
Tested-by: build bot (Jenkins) <>
Reviewed-by: Nico Huber <>
16 files changed