[media] si2168: Support Si2168-A20 firmware downloading
authorLuis Alves <ljalvs@gmail.com>
Thu, 17 Jul 2014 22:43:37 +0000 (19:43 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 22 Jul 2014 00:26:18 +0000 (21:26 -0300)
This adds support for the Si2168-A20 firmware download.

Extracting the firmware:

wget http://www.tbsdtv.com/download/document/tbs6281/tbs6281-t2-t-driver_v1.0.0.6.zip
unzip tbs6281-t2-t-driver_v1.0.0.6.zip
dd if=tbs-6281_x64/tbs6281_64.sys of=dvb-demod-si2168-a20-01.fw count=28656 bs=1 skip=1625088

md5sum:
32e06713b33915f674bfb2c209beaea5 /lib/firmware/dvb-demod-si2168-a20-01.fw

Signed-off-by: Luis Alves <ljalvs@gmail.com>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/dvb-frontends/si2168.c
drivers/media/dvb-frontends/si2168_priv.h

index 84db613f6e906482cd8ea72a22b71f0f63a00a65..97c46797aea6147c84e2a1562fc762c3abff794b 100644 (file)
@@ -398,10 +398,14 @@ static int si2168_init(struct dvb_frontend *fe)
        chip_id = cmd.args[1] << 24 | cmd.args[2] << 16 | cmd.args[3] << 8 |
                        cmd.args[4] << 0;
 
+       #define SI2168_A20 ('A' << 24 | 68 << 16 | '2' << 8 | '0' << 0)
        #define SI2168_A30 ('A' << 24 | 68 << 16 | '3' << 8 | '0' << 0)
        #define SI2168_B40 ('B' << 24 | 68 << 16 | '4' << 8 | '0' << 0)
 
        switch (chip_id) {
+       case SI2168_A20:
+               fw_file = SI2168_A20_FIRMWARE;
+               break;
        case SI2168_A30:
                fw_file = SI2168_A30_FIRMWARE;
                break;
@@ -693,5 +697,6 @@ module_i2c_driver(si2168_driver);
 MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>");
 MODULE_DESCRIPTION("Silicon Labs Si2168 DVB-T/T2/C demodulator driver");
 MODULE_LICENSE("GPL");
+MODULE_FIRMWARE(SI2168_A20_FIRMWARE);
 MODULE_FIRMWARE(SI2168_A30_FIRMWARE);
 MODULE_FIRMWARE(SI2168_B40_FIRMWARE);
index d606915dea14988a2fb24730525f4789156e9bfd..c1f7a4c39ab5bad873dab54e12dfad36d67f5c7c 100644 (file)
@@ -22,6 +22,7 @@
 #include <linux/firmware.h>
 #include <linux/i2c-mux.h>
 
+#define SI2168_A20_FIRMWARE "dvb-demod-si2168-a20-01.fw"
 #define SI2168_A30_FIRMWARE "dvb-demod-si2168-a30-01.fw"
 #define SI2168_B40_FIRMWARE "dvb-demod-si2168-b40-01.fw"
 #define SI2168_B40_FIRMWARE_FALLBACK "dvb-demod-si2168-01.fw"