driver/uart: Introduce a way for mainboard to override the baudrate
commit235daa4bf6b6467b5df675dcfe5041b7f62eeae3
authorJulien Viard de Galbert <jviarddegalbert@online.net>
Tue, 20 Feb 2018 10:45:48 +0000 (20 11:45 +0100)
committerMartin Roth <martinroth@google.com>
Wed, 21 Feb 2018 16:09:06 +0000 (21 16:09 +0000)
tree074bc4b58e2da4c7f6fb43c5e7613b08861d5d33
parentfa650f5e8c7cd81138b60d09d4a41b5454f03cc1
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 <jviarddegalbert@online.net>
Reviewed-on: https://review.coreboot.org/23713
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
16 files changed:
src/console/Kconfig
src/cpu/allwinner/a10/uart.c
src/cpu/allwinner/a10/uart_console.c
src/cpu/ti/am335x/uart.c
src/drivers/uart/pl011.c
src/drivers/uart/uart8250io.c
src/drivers/uart/uart8250mem.c
src/include/console/uart.h
src/soc/broadcom/cygnus/ns16550.c
src/soc/imgtec/pistachio/uart.c
src/soc/mediatek/mt8173/uart.c
src/soc/nvidia/tegra124/uart.c
src/soc/nvidia/tegra210/uart.c
src/soc/qualcomm/ipq40xx/uart.c
src/soc/samsung/exynos5250/uart.c
src/soc/samsung/exynos5420/uart.c