summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaszlo Papp <lpapp@kde.org>2013-11-08 15:20:47 +0000
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-09 20:23:18 +0100
commit9128eddd57cfa95da490e08c49a7fdcdd77b9ff4 (patch)
treea9963f0fd6cb4cd61d3a71f7460f99f57e2ea12a
parente9c1fa70442a55c3ad8a1fe2f0fd322272a48d8d (diff)
downloadqtserialport-9128eddd57cfa95da490e08c49a7fdcdd77b9ff4.tar.gz
Add /dev/ttyO* to get the native serial port listed on Android with Beagleboard
This type of serial port seems to represent the OMAP serial ports. Change-Id: Ie4279cad96f68e618d24bbcd64da9cbc218a9937 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
-rw-r--r--dist/changes-5.2.03
-rw-r--r--src/serialport/qserialportinfo_unix.cpp1
2 files changed, 4 insertions, 0 deletions
diff --git a/dist/changes-5.2.0 b/dist/changes-5.2.0
index bf40f28..8e755b4 100644
--- a/dist/changes-5.2.0
+++ b/dist/changes-5.2.0
@@ -111,3 +111,6 @@ information. Android uarts such as /dev/ttyHS* (High speed UART) and
- [QTBUG-34474] Replace the internal QTtyLocker with QLockFile from QtCore and a
small convenience on top of it to comply with the locking directories lockdev
also uses.
+
+- Support has been added for the hard-coded device enumeration backend to get
+information. /dev/ttyO* (native OMAP UART) is supported by that backend.
diff --git a/src/serialport/qserialportinfo_unix.cpp b/src/serialport/qserialportinfo_unix.cpp
index 849f4e0..971a904 100644
--- a/src/serialport/qserialportinfo_unix.cpp
+++ b/src/serialport/qserialportinfo_unix.cpp
@@ -71,6 +71,7 @@ static inline const QStringList& filtersOfDevices()
# ifdef Q_OS_LINUX
<< QStringLiteral("ttyS*") // Standard UART 8250 and etc.
+ << QStringLiteral("ttyO*") // OMAP UART 8250 and etc.
<< QStringLiteral("ttyUSB*") // Usb/serial converters PL2303 and etc.
<< QStringLiteral("ttyACM*") // CDC_ACM converters (i.e. Mobile Phones).
<< QStringLiteral("ttyGS*") // Gadget serial device (i.e. Mobile Phones with gadget serial driver).