aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/drxk.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-07-10 08:36:30 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 16:55:50 -0400
commit90796acad0027db957a282787a4dab7d0bb52ef1 (patch)
tree15f62126a7285601c8880dfe2d73c19ec6925b84 /drivers/media/dvb/frontends/drxk.h
parent9c6e18280091ee2cf78bfb33a1770b5b59c8afae (diff)
[media] drxk: Improves the UIO handling
The driver is too limited: it assumes that UIO is used only for controlling the antenna, and that only UIO-1 is in usage. However, from Terratec H7 driver [1], 3 UIO's can be used. In fact, it seems that H7 needs to use all 3. So, make the code generic enough to handle the most complex scenario. For now, only antena GPIO can be specified, but is is easier now to add the other GPIO/UIO needs. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/drxk.h')
-rw-r--r--drivers/media/dvb/frontends/drxk.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/media/dvb/frontends/drxk.h b/drivers/media/dvb/frontends/drxk.h
index 67589b607c4e..a756e4562fe2 100644
--- a/drivers/media/dvb/frontends/drxk.h
+++ b/drivers/media/dvb/frontends/drxk.h
@@ -10,18 +10,21 @@
10 * adr: I2C Address of the DRX-K 10 * adr: I2C Address of the DRX-K
11 * single_master: Device is on the single master mode 11 * single_master: Device is on the single master mode
12 * no_i2c_bridge: Don't switch the I2C bridge to talk with tuner 12 * no_i2c_bridge: Don't switch the I2C bridge to talk with tuner
13 * antenna_uses_gpio: Use GPIO to control the antenna 13 * antenna_gpio: GPIO bit used to control the antenna
14 * antenna_dvbc: GPIO for changing antenna to DVB-C 14 * antenna_dvbt: GPIO bit for changing antenna to DVB-C. A value of 1
15 * antenna_dvbt: GPIO for changing antenna to DVB-T 15 * means that 1=DVBC, 0 = DVBT. Zero means the opposite.
16 * microcode_name: Name of the firmware file with the microcode 16 * microcode_name: Name of the firmware file with the microcode
17 *
18 * On the *_gpio vars, bit 0 is UIO-1, bit 1 is UIO-2 and bit 2 is
19 * UIO-3.
17 */ 20 */
18struct drxk_config { 21struct drxk_config {
19 u8 adr; 22 u8 adr;
20 bool single_master; 23 bool single_master;
21 bool no_i2c_bridge; 24 bool no_i2c_bridge;
22 25
23 bool antenna_uses_gpio; 26 bool antenna_dvbt;
24 u16 antenna_dvbc, antenna_dvbt; 27 u16 antenna_gpio;
25 28
26 const char *microcode_name; 29 const char *microcode_name;
27}; 30};