summaryrefslogtreecommitdiff
path: root/drivers/media/dvb/frontends/drxk.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-07-10 09:36:30 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 17:55:50 -0300
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 @@
* adr: I2C Address of the DRX-K
* single_master: Device is on the single master mode
* no_i2c_bridge: Don't switch the I2C bridge to talk with tuner
- * antenna_uses_gpio: Use GPIO to control the antenna
- * antenna_dvbc: GPIO for changing antenna to DVB-C
- * antenna_dvbt: GPIO for changing antenna to DVB-T
+ * antenna_gpio: GPIO bit used to control the antenna
+ * antenna_dvbt: GPIO bit for changing antenna to DVB-C. A value of 1
+ * means that 1=DVBC, 0 = DVBT. Zero means the opposite.
* microcode_name: Name of the firmware file with the microcode
+ *
+ * On the *_gpio vars, bit 0 is UIO-1, bit 1 is UIO-2 and bit 2 is
+ * UIO-3.
*/
struct drxk_config {
u8 adr;
bool single_master;
bool no_i2c_bridge;
- bool antenna_uses_gpio;
- u16 antenna_dvbc, antenna_dvbt;
+ bool antenna_dvbt;
+ u16 antenna_gpio;
const char *microcode_name;
};