summaryrefslogtreecommitdiff
path: root/include/stdio_dev.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-07-27 15:31:04 (GMT)
committerTom Rini <trini@konsulko.com>2017-07-31 16:21:40 (GMT)
commit7b3c4c3a5305c68a7de2444f555ac7241d6fdb8e (patch)
tree8d8d971ef07cc5f8c3d5096f9061eee71e0c6d7a /include/stdio_dev.h
parent42f9f915c2b7aeac222c93a7f7085d9838722efc (diff)
downloadu-boot-fsl-qoriq-7b3c4c3a5305c68a7de2444f555ac7241d6fdb8e.tar.xz
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>
Diffstat (limited to 'include/stdio_dev.h')
-rw-r--r--include/stdio_dev.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/stdio_dev.h b/include/stdio_dev.h
index e4fc8b1..3164fa2 100644
--- a/include/stdio_dev.h
+++ b/include/stdio_dev.h
@@ -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 {