mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 08:57:58 +00:00
601147b06a
On the raspberry pi, you can disable the serial port to gain dynamic frequency scaling which can get handy at times. However, in such a configuration the serial controller gets its rx queue filled up with zero bytes which then happily get transmitted on to whoever calls getc() today. This patch adds detection logic for that case by checking whether the RX pin is mapped to GPIO15 and disables the mini uart if it is not mapped properly. That way we can leave the driver enabled in the tree and can determine during runtime whether serial is usable or not, having a single binary that allows for uart and non-uart operation. Signed-off-by: Alexander Graf <agraf@suse.de> Acked-by: Stephen Warren <swarren@wwwdotorg.org> Reviewed-by: Simon Glass <sjg@chromium.org> |
||
---|---|---|
.. | ||
lpc32xx_hsuart.h | ||
net_ethoc.h | ||
serial_bcm283x_mu.h | ||
serial_coldfire.h | ||
serial_mxc.h | ||
serial_pl01x.h | ||
serial_sh.h | ||
serial_stm32.h | ||
serial_stm32x7.h |