From ca6365369d6676053878d7501f8236582eed94b7 Mon Sep 17 00:00:00 2001 From: Laszlo Papp Date: Fri, 1 Nov 2013 13:21:15 +0000 Subject: Add /dev/ttyHS(L)* to the hard coded uart list on Unix Some information can be found on the following link: http://www.anyclub.org/2012/05/8960-android-gsbi-uart-debug-tips.html Change-Id: Ie57d58f5a01c168ff9498694564e43e43c7919e3 Reviewed-by: Sergey Belyashov Reviewed-by: Denis Shienkov --- dist/changes-5.2.0 | 4 ++++ src/serialport/qserialportinfo_unix.cpp | 2 ++ 2 files changed, 6 insertions(+) diff --git a/dist/changes-5.2.0 b/dist/changes-5.2.0 index 43c32a90..c9e9496d 100644 --- a/dist/changes-5.2.0 +++ b/dist/changes-5.2.0 @@ -100,3 +100,7 @@ present. - [QTBUG-34429] Mark the the data error policy obsolete. End users should stop using this feature now. It may be removed later in Qt 6.X, and there is a warning now if it is used. + +- Support has been added for the hard-coded device enumeration backend to get +information. Android uarts such as /dev/ttyHS* (High speed UART) and +/dev/ttyHSL* (Low speed UART) are supported by that backend. diff --git a/src/serialport/qserialportinfo_unix.cpp b/src/serialport/qserialportinfo_unix.cpp index 44a4a2c9..e475e9b2 100644 --- a/src/serialport/qserialportinfo_unix.cpp +++ b/src/serialport/qserialportinfo_unix.cpp @@ -73,6 +73,8 @@ static inline const QStringList& filtersOfDevices() << QLatin1String("ttyUSB*") // Usb/serial converters PL2303 and etc. << QLatin1String("ttyACM*") // CDC_ACM converters (i.e. Mobile Phones). << QLatin1String("ttyGS*") // Gadget serial device (i.e. Mobile Phones with gadget serial driver). + << QLatin1String("ttyHS*") // High speed UART (e.g. Android). + << QLatin1String("ttyHSL*") // Low speed UART (e.g. Android). << QLatin1String("ttyMI*") // MOXA pci/serial converters. << QLatin1String("ttymxc*") // Motorola IMX serial ports (i.e. Freescale i.MX). << QLatin1String("ttyAMA*") // AMBA serial device for embedded platform on ARM (i.e. Raspberry Pi). -- cgit v1.2.3