u-boot/include/dm/platform_data
Alexander Graf 601147b06a serial: bcm283x_mu: Detect disabled serial device
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>
2016-09-06 13:18:19 -04:00
..
lpc32xx_hsuart.h serial: lpc32xx hsuart: port driver to driver model 2016-01-13 21:05:22 -05:00
net_ethoc.h net/ethoc: support private memory configurations 2016-08-15 13:34:48 -05:00
serial_bcm283x_mu.h serial: bcm283x_mu: Detect disabled serial device 2016-09-06 13:18:19 -04:00
serial_coldfire.h m68k: add DM model serial driver 2016-05-17 09:54:43 -06:00
serial_mxc.h dm: imx: serial: Support DTE mode when using driver model 2016-07-19 19:52:13 +02:00
serial_pl01x.h serial: pl01x: Add support for devices with the rate pre-configured. 2016-03-22 12:16:12 -04:00
serial_sh.h dm: sh: serial: Add support driver model 2015-02-12 15:17:17 -07:00
serial_stm32.h stm32: Convert serial driver to DM 2015-12-12 15:56:08 -05:00
serial_stm32x7.h stm32x7: add support for stm32x7 serial driver 2016-02-24 18:43:54 -05:00