Skip to contentSkip to conversation

rc: New rc-based ite-cir driver for several ITE CIRs

PATCH New Jarod Wilson 1 participant 2 messages Mar 16, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 rc: New rc-based ite-cir driver for several ITE CIRs

From: Juan J. Garcia de Soria <[email protected]>

This is a second version of an rc-core based driver for the ITE Tech IT8712F CIR and now for a pair of other variants of the IT8512 CIR too.

This driver should replace the lirc_it87 and lirc_ite8709 currently living in the LIRC staging directory.

The driver should support the ITE8704, ITE8713, ITE8708 and ITE8709 (this last one yet untested) PNP ID's.

The code doesn'te reuse code from the pre-existing LIRC drivers, but has been written from scratch using the nuvoton.cir driver as a skeleton.

This new driver shouldn't exhibit timing problems when running under load (or with interrupts disabled for relatively long times). It works OOTB with the RC6 MCE remote bundled with the ASUS EEEBox. TX support is implemented, but I'm unable to test it since my hardware lacks TX capability.

---

Nb: Juan sent this a while ago, but for some reason, it never made it to the mailing list, so he sent it directly to me, and I've integrated it in my tree and build-tested it. --jarod

 drivers/media/rc/Kconfig   |   13 +
 drivers/media/rc/Makefile  |    1 +
 drivers/media/rc/ite-cir.c | 1734 ++++++++++++++++++++++++++++++++++++++++++++
 drivers/media/rc/ite-cir.h |  478 ++++++++++++
 4 files changed, 2226 insertions(+), 0 deletions(-)
 create mode 100644 drivers/media/rc/ite-cir.c
 create mode 100644 drivers/media/rc/ite-cir.h
drivers/media/rc/Kconfig +13 -0
index 3785162..0615443 100644
@@ -135,6 +135,19 @@ config IR_MCEUSB
 	   To compile this driver as a module, choose M here: the
 	   module will be called mceusb.
 
+config IR_ITE_CIR
+	tristate "ITE Tech Inc. IT8712/IT8512 Consumer Infrared Transceiver"
+	depends on PNP
+	depends on RC_CORE
+	---help---
+	   Say Y here to enable support for integrated infrared receivers
+	   /transceivers made by ITE Tech Inc. These are found in
+	   several ASUS devices, like the ASUS Digimatrix or the ASUS
+	   EEEBox 1501U.
+
+	   To compile this driver as a module, choose M here: the
+	   module will be called ite-cir.
+
 config IR_NUVOTON
 	tristate "Nuvoton w836x7hg Consumer Infrared Transceiver"
 	depends on PNP
drivers/media/rc/Makefile +1 -0
index 67b4f7f..c6cfe70 100644
@@ -14,6 +14,7 @@ obj-$(CONFIG_IR_LIRC_CODEC) += ir-lirc-codec.o
 
 # stand-alone IR receivers/transmitters
 obj-$(CONFIG_IR_IMON) += imon.o
+obj-$(CONFIG_IR_ITE_CIR) += ite-cir.o
 obj-$(CONFIG_IR_MCEUSB) += mceusb.o
 obj-$(CONFIG_IR_NUVOTON) += nuvoton-cir.o
 obj-$(CONFIG_IR_ENE) += ene_ir.o
drivers/media/rc/ite-cir.c new file +1734 -0

1,734 lines not on this page · raw message

drivers/media/rc/ite-cir.h new file +478 -0

478 lines not on this page · raw message

Signature · 1 line
1.7.1
#1 lore raw

PATCH 2/2 lirc: remove staging lirc_it87 and lirc_ite8709 drivers

From: Juan J. Garcia de Soria <[email protected]>

Remove older drivers lirc_it87 and lirc_ite8709 from the LIRC staging area, since they're now superceded by ite-cir.

---
 drivers/staging/lirc/Kconfig        |   12 -
 drivers/staging/lirc/Makefile       |    2 -
 drivers/staging/lirc/lirc_it87.c    | 1027 -----------------------------------
 drivers/staging/lirc/lirc_it87.h    |  116 ----
 drivers/staging/lirc/lirc_ite8709.c |  542 ------------------
 5 files changed, 0 insertions(+), 1699 deletions(-)
 delete mode 100644 drivers/staging/lirc/lirc_it87.c
 delete mode 100644 drivers/staging/lirc/lirc_it87.h
 delete mode 100644 drivers/staging/lirc/lirc_ite8709.c
drivers/staging/lirc/Kconfig +0 -12
index cdaff59..526ec0f 100644
@@ -32,18 +32,6 @@ config LIRC_IMON
 
 	  Current generation iMON devices use the input layer imon driver.
 
-config LIRC_IT87
-	tristate "ITE IT87XX CIR Port Receiver"
-	depends on LIRC && PNP
-	help
-	  Driver for the ITE IT87xx IR Receiver
-
-config LIRC_ITE8709
-	tristate "ITE8709 CIR Port Receiver"
-	depends on LIRC && PNP
-	help
-	  Driver for the ITE8709 IR Receiver
-
 config LIRC_PARALLEL
 	tristate "Homebrew Parallel Port Receiver"
 	depends on LIRC && PARPORT
drivers/staging/lirc/Makefile +0 -2
index 94af218..d76b0fa 100644
@@ -6,8 +6,6 @@
 obj-$(CONFIG_LIRC_BT829)	+= lirc_bt829.o
 obj-$(CONFIG_LIRC_IGORPLUGUSB)	+= lirc_igorplugusb.o
 obj-$(CONFIG_LIRC_IMON)		+= lirc_imon.o
-obj-$(CONFIG_LIRC_IT87)		+= lirc_it87.o
-obj-$(CONFIG_LIRC_ITE8709)	+= lirc_ite8709.o
 obj-$(CONFIG_LIRC_PARALLEL)	+= lirc_parallel.o
 obj-$(CONFIG_LIRC_SASEM)	+= lirc_sasem.o
 obj-$(CONFIG_LIRC_SERIAL)	+= lirc_serial.o
drivers/staging/lirc/lirc_it87.c deleted +0 -1027

1,027 lines not on this page · raw message

drivers/staging/lirc/lirc_it87.h deleted +0 -116

116 lines not on this page · raw message

drivers/staging/lirc/lirc_ite8709.c deleted +0 -542

542 lines not on this page · raw message

Signature · 1 line
1.7.1