u-boot/include/dm
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
..
platform_data serial: bcm283x_mu: Detect disabled serial device 2016-09-06 13:18:19 -04:00
device-internal.h dm: allow setting driver_data before/during bind 2016-05-26 20:48:31 -06:00
device.h dm: core: Add a function to bind child devices 2016-07-27 14:14:37 -06:00
lists.h
pinctrl.h
platdata.h dm: core: Expand platdata for of-platdata devices 2016-07-14 20:40:24 -06:00
root.h
test.h video: sandbox: Allow selection of font size and console name 2016-01-30 10:57:30 +01:00
uclass-id.h Add a power domain framework/uclass 2016-07-27 16:29:56 -06:00
uclass-internal.h
uclass.h dm: core: Add a way to find a device by its driver 2016-07-25 20:46:43 -06:00
util.h