diff options
author | Jamie Honan <devnull@localhost> | 2003-10-28 05:41:51 +0000 |
---|---|---|
committer | Jamie Honan <devnull@localhost> | 2003-10-28 05:41:51 +0000 |
commit | fe8cac02712ad7a238d49a0eb360f3eba0e7f667 (patch) | |
tree | a9e8685d4e2d208364272912bb0fd33c66495f69 /linux | |
parent | 38abfe350b0313e50aa13454c91cc3291b24d12b (diff) | |
download | mediapointer-dvb-s2-fe8cac02712ad7a238d49a0eb360f3eba0e7f667.tar.gz mediapointer-dvb-s2-fe8cac02712ad7a238d49a0eb360f3eba0e7f667.tar.bz2 |
Pin 2 for 8820 is controlled by value 4. Also normally low,
thus needs to be driven high to have any effect.
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/dvb/frontends/dst.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/frontends/dst.c b/linux/drivers/media/dvb/frontends/dst.c index a82fdc404..ae2a68313 100644 --- a/linux/drivers/media/dvb/frontends/dst.c +++ b/linux/drivers/media/dvb/frontends/dst.c @@ -159,21 +159,25 @@ static int dst_gpio_inb(struct dst_data *dst, u8 *result) } #define DST_I2C_ENABLE 1 -#define DST_8820 2 +#define DST_8820 4 static int dst_reset8820(struct dst_data *dst) { int retval; - /* pull 8820 gpio pin low, wait, then release it */ + /* pull 8820 gpio pin low, wait, high, wait, then low */ // dprintk ("%s: reset 8820\n", __FUNCTION__); retval = dst_gpio_outb(dst, DST_8820, DST_8820, 0); if (retval < 0) return retval; - udelay(10); + dvb_delay(10); retval = dst_gpio_outb(dst, DST_8820, DST_8820, DST_8820); if (retval < 0) return retval; + dvb_delay(10); + retval = dst_gpio_outb(dst, DST_8820, DST_8820, 0); + if (retval < 0) + return retval; return 0; } |