]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
media: solo6x10: export hardware GPIO pins 8:31 to gpiolib interface
authorAnton Sviridenko <anton@corp.bluecherry.net>
Wed, 2 Aug 2017 14:17:02 +0000 (10:17 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 9 Aug 2017 14:29:51 +0000 (10:29 -0400)
commitd3202d1981dc5a5f03f9afc96480619b48b60124
tree74526f3b750e3377399c0b2cec7588734c514b3e
parent2246902264956f099bca967b2b5b5817ca9e35b6
media: solo6x10: export hardware GPIO pins 8:31 to gpiolib interface

24 GPIO pins from 32 available on solo6x10 chips are exported
to gpiolib. First 8 GPIOs are reserved for internal use on capture card
boards, GPIOs in range 8:15 are configured as outputs to control relays,
remaining 16:31 are configured as inputs to read sensor states.
Now with this patch userspace DVR software can switch relays and read
sensor states when GPIO extension cards are attached to Softlogic solo6x10
based video capture cards.

Signed-off-by: Anton Sviridenko <anton@corp.bluecherry.net>
Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/pci/solo6x10/solo6x10-gpio.c
drivers/media/pci/solo6x10/solo6x10.h