u-boot-brain/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 dm: core: allow device_bind() to not return a device pointer 2015-08-31 07:57:29 -06:00
pinctrl.h dm: pinctrl: Add a way for a GPIO driver to obtain a pin function 2016-01-21 20:42:35 -07:00
platdata.h dm: core: Expand platdata for of-platdata devices 2016-07-14 20:40:24 -06:00
root.h dm: Add dm_scan_other() to locate board-specific devices 2014-07-23 14:08:37 +01:00
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 dm: core: Export uclass_find_device_by_of_offset() 2016-01-21 20:42:35 -07:00
uclass.h dm: core: Add a way to find a device by its driver 2016-07-25 20:46:43 -06:00
util.h devres: add debug command to dump device resources 2015-08-06 07:44:29 -06:00