Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 62a13db3 authored by Folkert van Heusden's avatar Folkert van Heusden Committed by Greg Kroah-Hartman
Browse files

[PATCH] USB: add support for Papouch TMU (USB thermometer)

This patch adds support for new vendor (papouch) and one of their
devices - TMU (a USB thermometer).

More information:
vendor homepage:
	http://www.papouch.com/en/
product homepage (Polish):
	http://www.papouch.com/shop/scripts/_detail.asp?katcislo=0188

This patch is based on the submission from Folkert van Heusden [1].
Then reviseted by Kalin KOZHUHAROV [2] and retested by Folkert.

[1]	http://article.gmane.org/gmane.linux.kernel/392970
[2]	http://article.gmane.org/gmane.linux.kernel/393386



Signed-off-by: default avatarFolkert van Heusden <folkert@vanheusden.com>
Signed-off-by: default avatarKalin KOZHUHAROV <kalin@thinrope.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent fb9ac9bd
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -494,6 +494,7 @@ static struct usb_device_id id_table_combined [] = {
	{ USB_DEVICE(FTDI_VID, FTDI_WESTREX_MODEL_8900F_PID) },
	{ USB_DEVICE(FTDI_VID, FTDI_WESTREX_MODEL_8900F_PID) },
	{ USB_DEVICE(FTDI_VID, FTDI_PCDJ_DAC2_PID) },
	{ USB_DEVICE(FTDI_VID, FTDI_PCDJ_DAC2_PID) },
	{ USB_DEVICE(ICOM_ID1_VID, ICOM_ID1_PID) },
	{ USB_DEVICE(ICOM_ID1_VID, ICOM_ID1_PID) },
	{ USB_DEVICE(PAPOUCH_VID, PAPOUCH_TMU_PID) },
	{ },					/* Optional parameter entry */
	{ },					/* Optional parameter entry */
	{ }					/* Terminating entry */
	{ }					/* Terminating entry */
};
};
+9 −0
Original line number Original line Diff line number Diff line
@@ -405,6 +405,15 @@
 */
 */
#define FTDI_ECLO_COM_1WIRE_PID	0xEA90	/* COM to 1-Wire USB adaptor */
#define FTDI_ECLO_COM_1WIRE_PID	0xEA90	/* COM to 1-Wire USB adaptor */


/*
 * Papouch products (http://www.papouch.com/)
 * Submitted by Folkert van Heusden
 */

#define PAPOUCH_VID			0x5050	/* Vendor ID */
#define PAPOUCH_TMU_PID			0x0400	/* TMU USB Thermometer */


/* Commands */
/* Commands */
#define FTDI_SIO_RESET 		0 /* Reset the port */
#define FTDI_SIO_RESET 		0 /* Reset the port */
#define FTDI_SIO_MODEM_CTRL 	1 /* Set the modem control register */
#define FTDI_SIO_MODEM_CTRL 	1 /* Set the modem control register */