提交 7f3917f6 编写于 作者: H Hans Verkuil 提交者: Mauro Carvalho Chehab

V4L/DVB (7925): cx18: ensure that the xceive pin is always asserted on init.

Signed-off-by: NHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 3b4a9714
...@@ -62,12 +62,14 @@ void cx18_gpio_init(struct cx18 *cx) ...@@ -62,12 +62,14 @@ void cx18_gpio_init(struct cx18 *cx)
gpio_dir = cx->card->gpio_init.direction; gpio_dir = cx->card->gpio_init.direction;
gpio_val = cx->card->gpio_init.initial_value; 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) if (gpio_dir == 0)
return; 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", 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_DIR1), read_reg(CX18_REG_GPIO_DIR2),
read_reg(CX18_REG_GPIO_OUT1), read_reg(CX18_REG_GPIO_OUT2)); read_reg(CX18_REG_GPIO_OUT1), read_reg(CX18_REG_GPIO_OUT2));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册