aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx23885/cx23885.h
diff options
context:
space:
mode:
authorSteven Toth <stoth@kernellabs.com>2009-06-25 22:43:31 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-09-12 11:17:53 -0400
commitf659c513d59b91cd5f3c0e2a59d8d287221e98f7 (patch)
tree5d6c18184b04c599da49e170682fc9d5d06bd193 /drivers/media/video/cx23885/cx23885.h
parent7a6fbd83378dd0a6127b5d59a51d35688bcd6d9d (diff)
V4L/DVB (12304): cx23885: Remove hardcoded gpio bits from the encoder driver
The encoder driver has hardcoded GPIO bits set for the HVR1800, regardless of whether it's being used by a HVR1800 or not. I've implemented some generic GPIO manipulation routines and I'm calling them only when appropriate. Signed-off-by: Steven Toth <stoth@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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/media/video/cx23885/cx23885.h b/drivers/media/video/cx23885/cx23885.h
index d68574d867ce..0958d6a7ffdd 100644
--- a/drivers/media/video/cx23885/cx23885.h
+++ b/drivers/media/video/cx23885/cx23885.h
@@ -88,6 +88,12 @@
88#define GPIO_7 0x00000080 88#define GPIO_7 0x00000080
89#define GPIO_8 0x00000100 89#define GPIO_8 0x00000100
90#define GPIO_9 0x00000200 90#define GPIO_9 0x00000200
91#define GPIO_10 0x00000400
92#define GPIO_11 0x00000800
93#define GPIO_12 0x00001000
94#define GPIO_13 0x00002000
95#define GPIO_14 0x00004000
96#define GPIO_15 0x00008000
91 97
92/* Currently unsupported by the driver: PAL/H, NTSC/Kr, SECAM B/G/H/LC */ 98/* Currently unsupported by the driver: PAL/H, NTSC/Kr, SECAM B/G/H/LC */
93#define CX23885_NORMS (\ 99#define CX23885_NORMS (\
@@ -505,6 +511,9 @@ extern void cx23885_417_check_encoder(struct cx23885_dev *dev);
505extern void cx23885_mc417_init(struct cx23885_dev *dev); 511extern void cx23885_mc417_init(struct cx23885_dev *dev);
506extern int mc417_memory_read(struct cx23885_dev *dev, u32 address, u32 *value); 512extern int mc417_memory_read(struct cx23885_dev *dev, u32 address, u32 *value);
507extern int mc417_memory_write(struct cx23885_dev *dev, u32 address, u32 value); 513extern int mc417_memory_write(struct cx23885_dev *dev, u32 address, u32 value);
514extern void mc417_gpio_set(struct cx23885_dev *dev, u32 mask);
515extern void mc417_gpio_clear(struct cx23885_dev *dev, u32 mask);
516extern void mc417_gpio_enable(struct cx23885_dev *dev, u32 mask, int asoutput);
508 517
509 518
510/* ----------------------------------------------------------- */ 519/* ----------------------------------------------------------- */