]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
staging: comedi: pcl730: add support for the P8R8-DIO ISA board
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 6 Jun 2013 22:39:09 +0000 (15:39 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Jun 2013 04:57:01 +0000 (21:57 -0700)
The ICP P8R8-DIO ISA boards can be supported by this driver. This board
has 8 isolated digital outputs and 8 isolated digital outputs.

Add support for this board to the pcl730 driver.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/Kconfig
drivers/staging/comedi/drivers/pcl730.c

index a7c0d632ffe06c1a14513039fae9916637a8ca6f..8c8a551322572630543ec85ddae126c6de08e732 100644 (file)
@@ -147,6 +147,7 @@ config COMEDI_PCL730
          ADlink ACL-7130     isolated - 16 in/16 out  ttl - 16 in/16 out
          Advantech PCM-3730  isolated - 8 in/8 out    ttl - 16 in/16 out
          Advantech PCL-725   isolated - 8 in/8 out
+         ICP P8R8-DIO        isolated - 8 in/8 out
          ADlink ACL-7225b    isolated - 16 in/16 out
          ICP P16R16-DIO      isolated - 16 in/16 out
          Advantech PCL-733   isolated - 32 in
index d3bdf744a07c30aefcb6d243600e04dac9f555c3..f9e99278152a3894fd7bc298217f5386a62fdbc4 100644 (file)
@@ -12,6 +12,7 @@
  *         (Adlink) ACL-7130 [acl7130]
  *         (Advantech) PCM-3730 [pcm3730]
  *         (Advantech) PCL-725 [pcl725]
+ *         (ICP) P8R8-DIO [p16r16dio]
  *         (Adlink) ACL-7225b [acl7225b]
  *         (ICP) P16R16-DIO [p16r16dio]
  *         (Advantech) PCL-733 [pcl733]
@@ -35,8 +36,8 @@
  *
  * The pcm3730 PC/104 board does not have the PCL730_IDIO_HI register.
  * The pcl725 ISA board uses separate registers for isolated digital I/O.
- * The acl7225b and p16r16dio boards have isolated digital output readback
- * and separate registers for isolated digital I/O.
+ * The p8r8dio, acl7225b, and p16r16dio boards have isolated digital output
+ * readback and separate registers for isolated digital I/O.
  * The pcl733 ISA board uses all four registers for isolated digital inputs.
  * The pcl734 ISA board uses all four registers for isolated digital outputs.
  */
@@ -97,6 +98,14 @@ static const struct pcl730_board pcl730_boards[] = {
                .n_subdevs      = 2,
                .n_iso_out_chan = 8,
                .n_iso_in_chan  = 8,
+       }, {
+               .name           = "p8r8dio",
+               .io_range       = 0x02,
+               .is_pcl725      = 1,
+               .has_readback   = 1,
+               .n_subdevs      = 2,
+               .n_iso_out_chan = 8,
+               .n_iso_in_chan  = 8,
        }, {
                .name           = "acl7225b",
                .io_range       = 0x08,         /* only 4 are used */