Skip to contentSkip to conversation

: ir258_mcp2120_driver.diff

PATCH New Jean Tourrilhes 1 participant 1 message Apr 19, 2002 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : ir258_mcp2120_driver.diff

ir258_mcp2120_driver.diff :
-------------------------
<Following patch from Felix Tang>
o [FEATURE] Dongle driver for mcp2120/crystal hardware

-----------------------------------------

include/linux/irda.h renamed from include/linux/irda.d7.h +1 -0
diff -u -p linux/include/linux/irda.d7.h linux/include/linux/irda.h
@@ -67,6 +67,7 @@ typedef enum {
 	IRDA_AIRPORT_DONGLE      = 6,
 	IRDA_OLD_BELKIN_DONGLE   = 7,
 	IRDA_EP7211_IR           = 8,
+	IRDA_MCP2120_DONGLE      = 9,
 } IRDA_DONGLE;
 
 /* Protocol types to be used for SOCK_DGRAM */
drivers/net/irda/Config.in renamed from drivers/net/irda/Config.d7.in +1 -0
diff -u -p linux/drivers/net/irda/Config.d7.in linux/drivers/net/irda/Config.in
@@ -13,6 +13,7 @@ if [ "$CONFIG_DONGLE" != "n" ]; then
    dep_tristate '  Tekram IrMate 210B dongle' CONFIG_TEKRAM_DONGLE $CONFIG_IRDA
    dep_tristate '  Greenwich GIrBIL dongle' CONFIG_GIRBIL_DONGLE $CONFIG_IRDA
    dep_tristate '  Parallax LiteLink dongle' CONFIG_LITELINK_DONGLE $CONFIG_IRDA
+   dep_tristate '  Microchip MCP2120' CONFIG_MCP2120_DONGLE $CONFIG_IRDA
    dep_tristate '  Old Belkin dongle' CONFIG_OLD_BELKIN_DONGLE $CONFIG_IRDA   
    if [ "$CONFIG_ARCH_EP7211" = "y" ]; then
       dep_tristate '  EP7211 I/R support' CONFIG_EP7211_IR $CONFIG_IRDA
drivers/net/irda/Config.help renamed from drivers/net/irda/Config.d7.help +12 -0
diff -u -p linux/drivers/net/irda/Config.d7.help linux/drivers/net/irda/Config.help
@@ -138,6 +138,18 @@ CONFIG_LITELINK_DONGLE
   used by IrTTY.  To activate support for Parallax dongles you will
   have to start irattach like this "irattach -d litelink".
 
+Microchip MCP2120 dongle
+CONFIG_MCP2120_DONGLE
+  Say Y here if you want to build support for the Microchip MCP2120
+  dongle.  If you want to compile it as a module, say M here and read
+  <file:Documentation/modules.txt>.  The MCP2120 dongle attaches to
+  the normal 9-pin serial port connector, and can currently only be
+  used by IrTTY.  To activate support for MCP2120 dongles you will
+  have to insert "irattach -d mcp2120" in the /etc/irda/drivers script.
+
+  You must build this dongle yourself.  For more information see:
+  <http://www.eyetap.org/~tangf/irda_sir_linux.html>
+
 CONFIG_OLD_BELKIN_DONGLE
   Say Y here if you want to build support for the Adaptec Airport 1000
   and 2000 dongles.  If you want to compile it as a module, say M here
drivers/net/irda/Makefile renamed from drivers/net/irda/Makefile.d7 +1 -0
diff -u -p linux/drivers/net/irda/Makefile.d7 linux/drivers/net/irda/Makefile
@@ -28,5 +28,6 @@ obj-$(CONFIG_GIRBIL_DONGLE)	+= girbil.o
 obj-$(CONFIG_LITELINK_DONGLE)	+= litelink.o
 obj-$(CONFIG_OLD_BELKIN_DONGLE)	+= old_belkin.o
 obj-$(CONFIG_EP7211_IR)		+= ep7211_ir.o
+obj-$(CONFIG_MCP2120_DONGLE)	+= mcp2120.o
 
 include $(TOPDIR)/Rules.make
drivers/net/irda/mcp2120.c renamed from drivers/net/irda/mcp2120.d7.c +252 -0

252 lines not on this page · raw message