aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorUri Shkolnik <uris@siano-ms.com>2009-05-14 15:31:23 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-16 18:14:31 -0400
commit3b2d18efd16d444ffd1ec50547ee6f1d66e3b57b (patch)
tree2bc7e27932474f21ae556916efd9787bd313df91 /drivers
parentc9679e3b0c329fa090798d658e185ee788540353 (diff)
V4L/DVB (11814): Siano: smscards - add gpio look-up table
Add gpio look-up table for various requirements, any target may select any gpio and assign it to a function Signed-off-by: Uri Shkolnik <uris@siano-ms.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/dvb/siano/sms-cards.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/drivers/media/dvb/siano/sms-cards.h b/drivers/media/dvb/siano/sms-cards.h
index 64d74c59c33f..5bd4fb4d3a42 100644
--- a/drivers/media/dvb/siano/sms-cards.h
+++ b/drivers/media/dvb/siano/sms-cards.h
@@ -35,9 +35,43 @@
35#define SMS1XXX_BOARD_HAUPPAUGE_TIGER_MINICARD 9 35#define SMS1XXX_BOARD_HAUPPAUGE_TIGER_MINICARD 9
36#define SMS1XXX_BOARD_HAUPPAUGE_TIGER_MINICARD_R2 10 36#define SMS1XXX_BOARD_HAUPPAUGE_TIGER_MINICARD_R2 10
37 37
38struct sms_board_gpio_cfg {
39 int lna_vhf_exist;
40 int lna_vhf_ctrl;
41 int lna_uhf_exist;
42 int lna_uhf_ctrl;
43 int lna_uhf_d_ctrl;
44 int lna_sband_exist;
45 int lna_sband_ctrl;
46 int lna_sband_d_ctrl;
47 int foreign_lna0_ctrl;
48 int foreign_lna1_ctrl;
49 int foreign_lna2_ctrl;
50 int rf_switch_vhf;
51 int rf_switch_uhf;
52 int rf_switch_sband;
53 int leds_power;
54 int led0;
55 int led1;
56 int led2;
57 int led3;
58 int led4;
59 int ir;
60 int eeprom_wp;
61 int mrc_sense;
62 int mrc_pdn_resetn;
63 int mrc_gp0; /* mrcs spi int */
64 int mrc_gp1;
65 int mrc_gp2;
66 int mrc_gp3;
67 int mrc_gp4;
68 int host_spi_gsp_ts_int;
69};
70
38struct sms_board { 71struct sms_board {
39 enum sms_device_type_st type; 72 enum sms_device_type_st type;
40 char *name, *fw[DEVICE_MODE_MAX]; 73 char *name, *fw[DEVICE_MODE_MAX];
74 struct sms_board_gpio_cfg board_cfg;
41 75
42 /* gpios */ 76 /* gpios */
43 int led_power, led_hi, led_lo, lna_ctrl, rf_switch; 77 int led_power, led_hi, led_lo, lna_ctrl, rf_switch;