]> git.baikalelectronics.ru Git - uboot.git/commit
dm: console: Check for serial devices properly
authorSimon Glass <sjg@chromium.org>
Thu, 27 Jul 2017 15:31:04 +0000 (09:31 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 31 Jul 2017 16:21:40 +0000 (12:21 -0400)
commit50ccb33dd1fa27e66db26e5c9ec76a61c48e12ba
tree8d8d971ef07cc5f8c3d5096f9061eee71e0c6d7a
parentac6837e83649b655563f63c314dbec2ad1cce04c
dm: console: Check for serial devices properly

With driver model the serial device is often not called "serial". Mark
driver-model stdio devices so that they can be detected and we can look up
the uclass. This is a more reliable way of finding out whether the console
is connected to a serial device or not.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/console.c
drivers/serial/serial-uclass.c
include/stdio_dev.h