summaryrefslogtreecommitdiff
path: root/drivers/media/dvb-frontends/si2168_priv.h
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2016-06-29 20:38:17 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-07-08 16:53:55 -0300
commit6ab1e9438a71b642dd94a6a774fa229273d7b759 (patch)
tree687128b21d1c7a743c4c6e3d9aa52f52bc2fc21a /drivers/media/dvb-frontends/si2168_priv.h
parent4c27a96eb78415ef9bcd565f36b93d380ac246da (diff)
downloadlinux-6ab1e9438a71b642dd94a6a774fa229273d7b759.tar.gz
[media] si2168: add support for newer firmwares
Si2168-B40 firmware API has changed somewhere between 4.0-11 and 4.0-19 so that sleep will lose firmware upgrade from the chip. Due to that firmware re-upload is needed when newer firmwares are used. Rewrote firmware handling logic partly at the same. Signed-off-by: Antti Palosaari <crope@iki.fi> Cc: Olli Salonen <olli.salonen@iki.fi> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/dvb-frontends/si2168_priv.h')
-rw-r--r--drivers/media/dvb-frontends/si2168_priv.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/si2168_priv.h b/drivers/media/dvb-frontends/si2168_priv.h
index 8a1f36d2014d..7843ccb448a0 100644
--- a/drivers/media/dvb-frontends/si2168_priv.h
+++ b/drivers/media/dvb-frontends/si2168_priv.h
@@ -34,8 +34,14 @@ struct si2168_dev {
struct dvb_frontend fe;
enum fe_delivery_system delivery_system;
enum fe_status fe_status;
+ #define SI2168_CHIP_ID_A20 ('A' << 24 | 68 << 16 | '2' << 8 | '0' << 0)
+ #define SI2168_CHIP_ID_A30 ('A' << 24 | 68 << 16 | '3' << 8 | '0' << 0)
+ #define SI2168_CHIP_ID_B40 ('B' << 24 | 68 << 16 | '4' << 8 | '0' << 0)
+ unsigned int chip_id;
+ unsigned int version;
+ const char *firmware_name;
bool active;
- bool fw_loaded;
+ bool warm;
u8 ts_mode;
bool ts_clock_inv;
bool ts_clock_gapped;