mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
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>
This commit is contained in:
parent
42f9f915c2
commit
7b3c4c3a53
3 changed files with 12 additions and 2 deletions
|
@ -16,6 +16,7 @@
|
|||
|
||||
#define DEV_FLAGS_INPUT 0x00000001 /* Device can be used as input console */
|
||||
#define DEV_FLAGS_OUTPUT 0x00000002 /* Device can be used as output console */
|
||||
#define DEV_FLAGS_DM 0x00000004 /* Device priv is a struct udevice * */
|
||||
|
||||
/* Device information */
|
||||
struct stdio_dev {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue