提交 17ad09f1 编写于 作者: C CrazyCat 提交者: Mauro Carvalho Chehab

[media] si2157: Si2148 support

Si2148-A20 silicon tuner support.

[Antti: Resolved conflict]
Signed-off-by: NEvgeny Plehov <EvgenyPlehov@ukr.net>
Signed-off-by: NAntti Palosaari <crope@iki.fi>
Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
上级 b7fca5b0
/* /*
* Silicon Labs Si2146/2147/2157/2158 silicon tuner driver * Silicon Labs Si2146/2147/2148/2157/2158 silicon tuner driver
* *
* Copyright (C) 2014 Antti Palosaari <crope@iki.fi> * Copyright (C) 2014 Antti Palosaari <crope@iki.fi>
* *
...@@ -117,12 +117,14 @@ static int si2157_init(struct dvb_frontend *fe) ...@@ -117,12 +117,14 @@ static int si2157_init(struct dvb_frontend *fe)
cmd.args[4] << 0; cmd.args[4] << 0;
#define SI2158_A20 ('A' << 24 | 58 << 16 | '2' << 8 | '0' << 0) #define SI2158_A20 ('A' << 24 | 58 << 16 | '2' << 8 | '0' << 0)
#define SI2148_A20 ('A' << 24 | 48 << 16 | '2' << 8 | '0' << 0)
#define SI2157_A30 ('A' << 24 | 57 << 16 | '3' << 8 | '0' << 0) #define SI2157_A30 ('A' << 24 | 57 << 16 | '3' << 8 | '0' << 0)
#define SI2147_A30 ('A' << 24 | 47 << 16 | '3' << 8 | '0' << 0) #define SI2147_A30 ('A' << 24 | 47 << 16 | '3' << 8 | '0' << 0)
#define SI2146_A10 ('A' << 24 | 46 << 16 | '1' << 8 | '0' << 0) #define SI2146_A10 ('A' << 24 | 46 << 16 | '1' << 8 | '0' << 0)
switch (chip_id) { switch (chip_id) {
case SI2158_A20: case SI2158_A20:
case SI2148_A20:
fw_file = SI2158_A20_FIRMWARE; fw_file = SI2158_A20_FIRMWARE;
break; break;
case SI2157_A30: case SI2157_A30:
...@@ -317,7 +319,7 @@ static int si2157_get_if_frequency(struct dvb_frontend *fe, u32 *frequency) ...@@ -317,7 +319,7 @@ static int si2157_get_if_frequency(struct dvb_frontend *fe, u32 *frequency)
static const struct dvb_tuner_ops si2157_ops = { static const struct dvb_tuner_ops si2157_ops = {
.info = { .info = {
.name = "Silicon Labs Si2146/2147/2157/2158", .name = "Silicon Labs Si2146/2147/2148/2157/2158",
.frequency_min = 110000000, .frequency_min = 110000000,
.frequency_max = 862000000, .frequency_max = 862000000,
}, },
...@@ -367,7 +369,7 @@ static int si2157_probe(struct i2c_client *client, ...@@ -367,7 +369,7 @@ static int si2157_probe(struct i2c_client *client,
dev_info(&s->client->dev, dev_info(&s->client->dev,
"Silicon Labs %s successfully attached\n", "Silicon Labs %s successfully attached\n",
s->chiptype == SI2157_CHIPTYPE_SI2146 ? s->chiptype == SI2157_CHIPTYPE_SI2146 ?
"Si2146" : "Si2147/2157/2158"); "Si2146" : "Si2147/2148/2157/2158");
return 0; return 0;
err: err:
...@@ -410,7 +412,7 @@ static struct i2c_driver si2157_driver = { ...@@ -410,7 +412,7 @@ static struct i2c_driver si2157_driver = {
module_i2c_driver(si2157_driver); module_i2c_driver(si2157_driver);
MODULE_DESCRIPTION("Silicon Labs Si2146/2147/2157/2158 silicon tuner driver"); MODULE_DESCRIPTION("Silicon Labs Si2146/2147/2148/2157/2158 silicon tuner driver");
MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>"); MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_FIRMWARE(SI2158_A20_FIRMWARE); MODULE_FIRMWARE(SI2158_A20_FIRMWARE);
/* /*
* Silicon Labs Si2146/2147/2157/2158 silicon tuner driver * Silicon Labs Si2146/2147/2148/2157/2158 silicon tuner driver
* *
* Copyright (C) 2014 Antti Palosaari <crope@iki.fi> * Copyright (C) 2014 Antti Palosaari <crope@iki.fi>
* *
......
/* /*
* Silicon Labs Si2146/2147/2157/2158 silicon tuner driver * Silicon Labs Si2146/2147/2148/2157/2158 silicon tuner driver
* *
* Copyright (C) 2014 Antti Palosaari <crope@iki.fi> * Copyright (C) 2014 Antti Palosaari <crope@iki.fi>
* *
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册