aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx23885/cx23885.h
diff options
context:
space:
mode:
authorSteven Toth <stoth@kernellabs.com>2009-05-02 10:29:50 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-16 17:21:02 -0400
commit6f8bee9b104465a881f7e8acd5cbd3e6a0730759 (patch)
tree80feb7e141692ab945b36e5aed22666ce6ac5abf /drivers/media/video/cx23885/cx23885.h
parentea3b73dc13d87d92e805f439f3d7bfcb5865db06 (diff)
V4L/DVB (11765): cx23885: Add generic functions for driving GPIO's
The GPIO's on the product can be in one of three places. To date we've mainly used the GPIO's on the bridge itself, and once on the encoder. Rather than having the complexity of multiple GPIO writes/reads from isolated placed in the driver we'll route them through this function, so we can make intelligent decisions about 1) Where the GPIO lives and 2) Whether it conflicts (based on board) with some other function to avoid bugs. Signed-off-by: Steven Toth <stoth@kernellabs.com> Signed-off-by: Michael Krufky <mkrufky@kernellabs.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx23885/cx23885.h')
-rw-r--r--drivers/media/video/cx23885/cx23885.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/media/video/cx23885/cx23885.h b/drivers/media/video/cx23885/cx23885.h
index 85642831ea8e..d9b03f83fa31 100644
--- a/drivers/media/video/cx23885/cx23885.h
+++ b/drivers/media/video/cx23885/cx23885.h
@@ -72,6 +72,17 @@
72#define CX23885_BOARD_DVBWORLD_2005 16 72#define CX23885_BOARD_DVBWORLD_2005 16
73#define CX23885_BOARD_NETUP_DUAL_DVBS2_CI 17 73#define CX23885_BOARD_NETUP_DUAL_DVBS2_CI 17
74 74
75#define GPIO_0 0x00000001
76#define GPIO_1 0x00000002
77#define GPIO_2 0x00000004
78#define GPIO_3 0x00000008
79#define GPIO_4 0x00000010
80#define GPIO_5 0x00000020
81#define GPIO_6 0x00000040
82#define GPIO_7 0x00000080
83#define GPIO_8 0x00000100
84#define GPIO_9 0x00000200
85
75/* Currently unsupported by the driver: PAL/H, NTSC/Kr, SECAM B/G/H/LC */ 86/* Currently unsupported by the driver: PAL/H, NTSC/Kr, SECAM B/G/H/LC */
76#define CX23885_NORMS (\ 87#define CX23885_NORMS (\
77 V4L2_STD_NTSC_M | V4L2_STD_NTSC_M_JP | V4L2_STD_NTSC_443 | \ 88 V4L2_STD_NTSC_M | V4L2_STD_NTSC_M_JP | V4L2_STD_NTSC_443 | \
@@ -422,6 +433,11 @@ extern int cx23885_restart_queue(struct cx23885_tsport *port,
422extern void cx23885_wakeup(struct cx23885_tsport *port, 433extern void cx23885_wakeup(struct cx23885_tsport *port,
423 struct cx23885_dmaqueue *q, u32 count); 434 struct cx23885_dmaqueue *q, u32 count);
424 435
436extern void cx23885_gpio_set(struct cx23885_dev *dev, u32 mask);
437extern void cx23885_gpio_clear(struct cx23885_dev *dev, u32 mask);
438extern void cx23885_gpio_enable(struct cx23885_dev *dev, u32 mask,
439 int asoutput);
440
425 441
426/* ----------------------------------------------------------- */ 442/* ----------------------------------------------------------- */
427/* cx23885-cards.c */ 443/* cx23885-cards.c */