diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-05-20 00:13:02 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2008-05-20 00:13:02 +0200 |
commit | 5b21c689aa3b159af1610992109edec784e23a08 (patch) | |
tree | 05a124749f8ae84c338d2485fcf15b502b59948a /linux/drivers/media | |
parent | 611c0c57b9ee26a27b8a4d23a1a6d430ebe83fc7 (diff) | |
download | mediapointer-dvb-s2-5b21c689aa3b159af1610992109edec784e23a08.tar.gz mediapointer-dvb-s2-5b21c689aa3b159af1610992109edec784e23a08.tar.bz2 |
cx18: ensure that the xceive pin is always asserted on init.
From: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r-- | linux/drivers/media/video/cx18/cx18-gpio.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/linux/drivers/media/video/cx18/cx18-gpio.c b/linux/drivers/media/video/cx18/cx18-gpio.c index bb8bc8608..1e0d32b99 100644 --- a/linux/drivers/media/video/cx18/cx18-gpio.c +++ b/linux/drivers/media/video/cx18/cx18-gpio.c @@ -62,12 +62,14 @@ void cx18_gpio_init(struct cx18 *cx) gpio_dir = cx->card->gpio_init.direction; gpio_val = cx->card->gpio_init.initial_value; + if (cx->card->xceive_pin) { + gpio_dir |= 1 << cx->card->xceive_pin; + gpio_val |= 1 << cx->card->xceive_pin; + } + if (gpio_dir == 0) return; - gpio_dir |= 1 << cx->card->xceive_pin; - gpio_val |= 1 << cx->card->xceive_pin; - CX18_DEBUG_INFO("GPIO initial dir: %08x/%08x out: %08x/%08x\n", read_reg(CX18_REG_GPIO_DIR1), read_reg(CX18_REG_GPIO_DIR2), read_reg(CX18_REG_GPIO_OUT1), read_reg(CX18_REG_GPIO_OUT2)); |