diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-05-19 21:13:02 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-06-05 05:35:44 -0400 |
commit | 7f3917f6484938d56cb5ab660f476c1dfa445a81 (patch) | |
tree | d1e4dcdfe640c08b7b6008446dcf2e25ab3d0802 /drivers | |
parent | 3b4a9714f43a1d675a4352260a12daae197f37c3 (diff) |
V4L/DVB (7925): cx18: ensure that the xceive pin is always asserted on init.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/cx18/cx18-gpio.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/media/video/cx18/cx18-gpio.c b/drivers/media/video/cx18/cx18-gpio.c index bb8bc86086d0..1e0d32b992f9 100644 --- a/drivers/media/video/cx18/cx18-gpio.c +++ b/drivers/media/video/cx18/cx18-gpio.c | |||
@@ -62,12 +62,14 @@ void cx18_gpio_init(struct cx18 *cx) | |||
62 | gpio_dir = cx->card->gpio_init.direction; | 62 | gpio_dir = cx->card->gpio_init.direction; |
63 | gpio_val = cx->card->gpio_init.initial_value; | 63 | gpio_val = cx->card->gpio_init.initial_value; |
64 | 64 | ||
65 | if (cx->card->xceive_pin) { | ||
66 | gpio_dir |= 1 << cx->card->xceive_pin; | ||
67 | gpio_val |= 1 << cx->card->xceive_pin; | ||
68 | } | ||
69 | |||
65 | if (gpio_dir == 0) | 70 | if (gpio_dir == 0) |
66 | return; | 71 | return; |
67 | 72 | ||
68 | gpio_dir |= 1 << cx->card->xceive_pin; | ||
69 | gpio_val |= 1 << cx->card->xceive_pin; | ||
70 | |||
71 | CX18_DEBUG_INFO("GPIO initial dir: %08x/%08x out: %08x/%08x\n", | 73 | CX18_DEBUG_INFO("GPIO initial dir: %08x/%08x out: %08x/%08x\n", |
72 | read_reg(CX18_REG_GPIO_DIR1), read_reg(CX18_REG_GPIO_DIR2), | 74 | read_reg(CX18_REG_GPIO_DIR1), read_reg(CX18_REG_GPIO_DIR2), |
73 | read_reg(CX18_REG_GPIO_OUT1), read_reg(CX18_REG_GPIO_OUT2)); | 75 | read_reg(CX18_REG_GPIO_OUT1), read_reg(CX18_REG_GPIO_OUT2)); |