summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaszlo Papp <lpapp@kde.org>2013-11-01 13:21:15 +0000
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-01 15:19:42 +0100
commitca6365369d6676053878d7501f8236582eed94b7 (patch)
treef24c2cd2899ecf50eb5bb9dd27ca91bab9f7b7d3
parent93e887866c2a44957243d12b469ac0f74f3a7eef (diff)
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 <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
-rw-r--r--dist/changes-5.2.04
-rw-r--r--src/serialport/qserialportinfo_unix.cpp2
2 files changed, 6 insertions, 0 deletions
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).