2013-11-30 03:19:50 +08:00
|
|
|
/*
|
|
|
|
* Panasonic MN88472 DVB-T/T2/C demodulator driver
|
|
|
|
*
|
|
|
|
* Copyright (C) 2013 Antti Palosaari <crope@iki.fi>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "mn88472_priv.h"
|
|
|
|
|
2014-10-26 09:23:09 +08:00
|
|
|
static struct dvb_frontend_ops mn88472_ops;
|
2013-11-30 03:19:50 +08:00
|
|
|
|
|
|
|
/* write multiple registers */
|
2014-10-26 09:58:18 +08:00
|
|
|
static int mn88472_wregs(struct mn88472_dev *dev, u16 reg, const u8 *val, int len)
|
2013-11-30 03:19:50 +08:00
|
|
|
{
|
|
|
|
#define MAX_WR_LEN 21
|
|
|
|
#define MAX_WR_XFER_LEN (MAX_WR_LEN + 1)
|
|
|
|
int ret;
|
|
|
|
u8 buf[MAX_WR_XFER_LEN];
|
|
|
|
struct i2c_msg msg[1] = {
|
|
|
|
{
|
|
|
|
.addr = (reg >> 8) & 0xff,
|
|
|
|
.flags = 0,
|
|
|
|
.len = 1 + len,
|
|
|
|
.buf = buf,
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
if (WARN_ON(len > MAX_WR_LEN))
|
|
|
|
return -EINVAL;
|
|
|
|
|
|
|
|
buf[0] = (reg >> 0) & 0xff;
|
|
|
|
memcpy(&buf[1], val, len);
|
|
|
|
|
2014-10-26 09:58:18 +08:00
|
|
|
ret = i2c_transfer(dev->i2c, msg, 1);
|
2013-11-30 03:19:50 +08:00
|
|
|
if (ret == 1) {
|
|
|
|
ret = 0;
|
|
|
|
} else {
|
2014-10-26 09:58:18 +08:00
|
|
|
dev_warn(&dev->i2c->dev,
|
2013-11-30 03:19:50 +08:00
|
|
|
"%s: i2c wr failed=%d reg=%02x len=%d\n",
|
|
|
|
KBUILD_MODNAME, ret, reg, len);
|
|
|
|
ret = -EREMOTEIO;
|
|
|
|
}
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* read multiple registers */
|
2014-10-26 09:58:18 +08:00
|
|
|
static int mn88472_rregs(struct mn88472_dev *dev, u16 reg, u8 *val, int len)
|
2013-11-30 03:19:50 +08:00
|
|
|
{
|
|
|
|
#define MAX_RD_LEN 2
|
|
|
|
#define MAX_RD_XFER_LEN (MAX_RD_LEN)
|
|
|
|
int ret;
|
|
|
|
u8 buf[MAX_RD_XFER_LEN];
|
|
|
|
struct i2c_msg msg[2] = {
|
|
|
|
{
|
|
|
|
.addr = (reg >> 8) & 0xff,
|
|
|
|
.flags = 0,
|
|
|
|
.len = 1,
|
|
|
|
.buf = buf,
|
|
|
|
}, {
|
|
|
|
.addr = (reg >> 8) & 0xff,
|
|
|
|
.flags = I2C_M_RD,
|
|
|
|
.len = len,
|
|
|
|
.buf = buf,
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
if (WARN_ON(len > MAX_RD_LEN))
|
|
|
|
return -EINVAL;
|
|
|
|
|
|
|
|
buf[0] = (reg >> 0) & 0xff;
|
|
|
|
|
2014-10-26 09:58:18 +08:00
|
|
|
ret = i2c_transfer(dev->i2c, msg, 2);
|
2013-11-30 03:19:50 +08:00
|
|
|
if (ret == 2) {
|
|
|
|
memcpy(val, buf, len);
|
|
|
|
ret = 0;
|
|
|
|
} else {
|
2014-10-26 09:58:18 +08:00
|
|
|
dev_warn(&dev->i2c->dev,
|
2013-11-30 03:19:50 +08:00
|
|
|
"%s: i2c rd failed=%d reg=%02x len=%d\n",
|
|
|
|
KBUILD_MODNAME, ret, reg, len);
|
|
|
|
ret = -EREMOTEIO;
|
|
|
|
}
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* write single register */
|
2014-10-26 09:58:18 +08:00
|
|
|
static int mn88472_wreg(struct mn88472_dev *dev, u16 reg, u8 val)
|
2013-11-30 03:19:50 +08:00
|
|
|
{
|
2014-10-26 09:58:18 +08:00
|
|
|
return mn88472_wregs(dev, reg, &val, 1);
|
2013-11-30 03:19:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* read single register */
|
2014-10-26 09:58:18 +08:00
|
|
|
static int mn88472_rreg(struct mn88472_dev *dev, u16 reg, u8 *val)
|
2013-11-30 03:19:50 +08:00
|
|
|
{
|
2014-10-26 09:58:18 +08:00
|
|
|
return mn88472_rregs(dev, reg, val, 1);
|
2013-11-30 03:19:50 +08:00
|
|
|
}
|
|
|
|
|
2013-12-03 07:28:58 +08:00
|
|
|
static int mn88472_get_tune_settings(struct dvb_frontend *fe,
|
|
|
|
struct dvb_frontend_tune_settings *s)
|
|
|
|
{
|
|
|
|
s->min_delay_ms = 400;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-10-26 09:23:09 +08:00
|
|
|
static int mn88472_set_frontend(struct dvb_frontend *fe)
|
2013-11-30 03:19:50 +08:00
|
|
|
{
|
2014-10-26 09:58:18 +08:00
|
|
|
struct mn88472_dev *dev = fe->demodulator_priv;
|
2013-11-30 03:19:50 +08:00
|
|
|
struct dtv_frontend_properties *c = &fe->dtv_property_cache;
|
|
|
|
int ret;
|
|
|
|
u32 if_frequency = 0;
|
2014-10-26 09:58:18 +08:00
|
|
|
dev_dbg(&dev->i2c->dev,
|
2013-11-30 03:19:50 +08:00
|
|
|
"%s: delivery_system=%d modulation=%d frequency=%d symbol_rate=%d inversion=%d\n",
|
|
|
|
__func__, c->delivery_system, c->modulation,
|
|
|
|
c->frequency, c->symbol_rate, c->inversion);
|
|
|
|
|
2014-10-26 09:58:18 +08:00
|
|
|
if (!dev->warm) {
|
2013-11-30 03:19:50 +08:00
|
|
|
ret = -EAGAIN;
|
|
|
|
goto err;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* program tuner */
|
|
|
|
if (fe->ops.tuner_ops.set_params) {
|
|
|
|
ret = fe->ops.tuner_ops.set_params(fe);
|
|
|
|
if (ret)
|
|
|
|
goto err;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (fe->ops.tuner_ops.get_if_frequency) {
|
|
|
|
ret = fe->ops.tuner_ops.get_if_frequency(fe, &if_frequency);
|
|
|
|
if (ret)
|
|
|
|
goto err;
|
|
|
|
|
2014-10-26 09:58:18 +08:00
|
|
|
dev_dbg(&dev->i2c->dev, "%s: get_if_frequency=%d\n",
|
2013-11-30 03:19:50 +08:00
|
|
|
__func__, if_frequency);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (if_frequency != 5070000) {
|
2014-10-26 09:58:18 +08:00
|
|
|
dev_err(&dev->i2c->dev, "%s: IF frequency %d not supported\n",
|
2013-11-30 03:19:50 +08:00
|
|
|
KBUILD_MODNAME, if_frequency);
|
|
|
|
ret = -EINVAL;
|
|
|
|
goto err;
|
|
|
|
}
|
|
|
|
|
2014-10-26 09:58:18 +08:00
|
|
|
ret = mn88472_wregs(dev, 0x1c08, "\x1d", 1);
|
2013-11-30 03:19:50 +08:00
|
|
|
if (ret)
|
|
|
|
goto err;
|
|
|
|
|
2014-10-26 09:58:18 +08:00
|
|
|
ret = mn88472_wregs(dev, 0x18d9, "\xe3", 1);
|
2013-11-30 03:19:50 +08:00
|
|
|
if (ret)
|
|
|
|
goto err;
|
|
|
|
|
2014-10-26 09:58:18 +08:00
|
|
|
ret = mn88472_wregs(dev, 0x1c83, "\x01", 1);
|
2013-11-30 03:19:50 +08:00
|
|
|
if (ret)
|
|
|
|
goto err;
|
|
|
|
|
2014-10-26 09:58:18 +08:00
|
|
|
ret = mn88472_wregs(dev, 0x1c00, "\x66\x00\x01\x04\x00", 5);
|
2013-11-30 03:19:50 +08:00
|
|
|
if (ret)
|
|
|
|
goto err;
|
|
|
|
|
2014-10-26 09:58:18 +08:00
|
|
|
ret = mn88472_wregs(dev, 0x1c10,
|
2013-11-30 03:19:50 +08:00
|
|
|
"\x3f\x50\x2c\x8f\x80\x00\x08\xee\x08\xee", 10);
|
|
|
|
if (ret)
|
|
|
|
goto err;
|
|
|
|
|
2014-10-26 09:58:18 +08:00
|
|
|
ret = mn88472_wregs(dev, 0x1846, "\x00", 1);
|
2013-11-30 03:19:50 +08:00
|
|
|
if (ret)
|
|
|
|
goto err;
|
|
|
|
|
2014-10-26 09:58:18 +08:00
|
|
|
ret = mn88472_wregs(dev, 0x18ae, "\x00", 1);
|
2013-11-30 03:19:50 +08:00
|
|
|
if (ret)
|
|
|
|
goto err;
|
|
|
|
|
2014-10-26 09:58:18 +08:00
|
|
|
ret = mn88472_wregs(dev, 0x18b0, "\x0b", 1);
|
2013-11-30 03:19:50 +08:00
|
|
|
if (ret)
|
|
|
|
goto err;
|
|
|
|
|
2014-10-26 09:58:18 +08:00
|
|
|
ret = mn88472_wregs(dev, 0x18b4, "\x00", 1);
|
2013-11-30 03:19:50 +08:00
|
|
|
if (ret)
|
|
|
|
goto err;
|
|
|
|
|
2014-10-26 09:58:18 +08:00
|
|
|
ret = mn88472_wregs(dev, 0x18cd, "\x17", 1);
|
2013-11-30 03:19:50 +08:00
|
|
|
if (ret)
|
|
|
|
goto err;
|
|
|
|
|
2014-10-26 09:58:18 +08:00
|
|
|
ret = mn88472_wregs(dev, 0x18d4, "\x09", 1);
|
2013-11-30 03:19:50 +08:00
|
|
|
if (ret)
|
|
|
|
goto err;
|
|
|
|
|
2014-10-26 09:58:18 +08:00
|
|
|
ret = mn88472_wregs(dev, 0x18d6, "\x48", 1);
|
2013-11-30 03:19:50 +08:00
|
|
|
if (ret)
|
|
|
|
goto err;
|
|
|
|
|
2014-10-26 09:58:18 +08:00
|
|
|
ret = mn88472_wregs(dev, 0x1a00, "\xb0", 1);
|
2013-11-30 03:19:50 +08:00
|
|
|
if (ret)
|
|
|
|
goto err;
|
|
|
|
|
2014-10-26 09:58:18 +08:00
|
|
|
ret = mn88472_wregs(dev, 0x1cf8, "\x9f", 1);
|
2013-11-30 03:19:50 +08:00
|
|
|
if (ret)
|
|
|
|
goto err;
|
|
|
|
|
2014-10-26 09:58:18 +08:00
|
|
|
dev->delivery_system = c->delivery_system;
|
2013-11-30 03:19:50 +08:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
err:
|
2014-10-26 09:58:18 +08:00
|
|
|
dev_dbg(&dev->i2c->dev, "%s: failed=%d\n", __func__, ret);
|
2013-11-30 03:19:50 +08:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2014-10-26 09:23:09 +08:00
|
|
|
static int mn88472_read_status(struct dvb_frontend *fe, fe_status_t *status)
|
2013-11-30 03:19:50 +08:00
|
|
|
{
|
2014-10-26 09:58:18 +08:00
|
|
|
struct mn88472_dev *dev = fe->demodulator_priv;
|
2013-11-30 03:19:50 +08:00
|
|
|
int ret;
|
|
|
|
u8 u8tmp;
|
|
|
|
|
|
|
|
*status = 0;
|
|
|
|
|
2014-10-26 09:58:18 +08:00
|
|
|
if (!dev->warm) {
|
2013-11-30 03:19:50 +08:00
|
|
|
ret = -EAGAIN;
|
|
|
|
goto err;
|
|
|
|
}
|
|
|
|
|
2014-10-26 09:58:18 +08:00
|
|
|
ret = mn88472_rreg(dev, 0x1a84, &u8tmp);
|
2013-11-30 03:19:50 +08:00
|
|
|
if (ret)
|
|
|
|
goto err;
|
|
|
|
|
|
|
|
if (u8tmp == 0x08)
|
|
|
|
*status = FE_HAS_SIGNAL | FE_HAS_CARRIER | FE_HAS_VITERBI |
|
|
|
|
FE_HAS_SYNC | FE_HAS_LOCK;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
err:
|
2014-10-26 09:58:18 +08:00
|
|
|
dev_dbg(&dev->i2c->dev, "%s: failed=%d\n", __func__, ret);
|
2013-11-30 03:19:50 +08:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2014-10-26 09:23:09 +08:00
|
|
|
static int mn88472_init(struct dvb_frontend *fe)
|
2013-11-30 03:19:50 +08:00
|
|
|
{
|
2014-10-26 09:58:18 +08:00
|
|
|
struct mn88472_dev *dev = fe->demodulator_priv;
|
2013-11-30 03:19:50 +08:00
|
|
|
int ret, len, remaining;
|
|
|
|
const struct firmware *fw = NULL;
|
|
|
|
u8 *fw_file = MN88472_FIRMWARE;
|
2014-10-26 09:58:18 +08:00
|
|
|
dev_dbg(&dev->i2c->dev, "%s:\n", __func__);
|
2013-11-30 03:19:50 +08:00
|
|
|
|
|
|
|
/* set cold state by default */
|
2014-10-26 09:58:18 +08:00
|
|
|
dev->warm = false;
|
2013-11-30 03:19:50 +08:00
|
|
|
|
|
|
|
/* power on */
|
2014-10-26 09:58:18 +08:00
|
|
|
ret = mn88472_wreg(dev, 0x1c05, 0x00);
|
2013-11-30 03:19:50 +08:00
|
|
|
if (ret)
|
|
|
|
goto err;
|
|
|
|
|
2014-10-26 09:58:18 +08:00
|
|
|
ret = mn88472_wregs(dev, 0x1c0b, "\x00\x00", 2);
|
2013-11-30 03:19:50 +08:00
|
|
|
if (ret)
|
|
|
|
goto err;
|
|
|
|
|
|
|
|
/* request the firmware, this will block and timeout */
|
2014-10-26 09:58:18 +08:00
|
|
|
ret = request_firmware(&fw, fw_file, dev->i2c->dev.parent);
|
2013-11-30 03:19:50 +08:00
|
|
|
if (ret) {
|
2014-10-26 09:58:18 +08:00
|
|
|
dev_err(&dev->i2c->dev, "%s: firmare file '%s' not found\n",
|
2013-11-30 03:19:50 +08:00
|
|
|
KBUILD_MODNAME, fw_file);
|
|
|
|
goto err;
|
|
|
|
}
|
|
|
|
|
2014-10-26 09:58:18 +08:00
|
|
|
dev_info(&dev->i2c->dev, "%s: downloading firmware from file '%s'\n",
|
2013-11-30 03:19:50 +08:00
|
|
|
KBUILD_MODNAME, fw_file);
|
|
|
|
|
2014-10-26 09:58:18 +08:00
|
|
|
ret = mn88472_wreg(dev, 0x18f5, 0x03);
|
2013-11-30 03:19:50 +08:00
|
|
|
if (ret)
|
|
|
|
goto err;
|
|
|
|
|
|
|
|
for (remaining = fw->size; remaining > 0;
|
2014-10-26 09:58:18 +08:00
|
|
|
remaining -= (dev->cfg->i2c_wr_max - 1)) {
|
2013-11-30 03:19:50 +08:00
|
|
|
len = remaining;
|
2014-10-26 09:58:18 +08:00
|
|
|
if (len > (dev->cfg->i2c_wr_max - 1))
|
|
|
|
len = (dev->cfg->i2c_wr_max - 1);
|
2013-11-30 03:19:50 +08:00
|
|
|
|
2014-10-26 09:58:18 +08:00
|
|
|
ret = mn88472_wregs(dev, 0x18f6,
|
2013-11-30 03:19:50 +08:00
|
|
|
&fw->data[fw->size - remaining], len);
|
|
|
|
if (ret) {
|
2014-10-26 09:58:18 +08:00
|
|
|
dev_err(&dev->i2c->dev,
|
2013-11-30 03:19:50 +08:00
|
|
|
"%s: firmware download failed=%d\n",
|
|
|
|
KBUILD_MODNAME, ret);
|
|
|
|
goto err;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-10-26 09:58:18 +08:00
|
|
|
ret = mn88472_wreg(dev, 0x18f5, 0x00);
|
2013-11-30 03:19:50 +08:00
|
|
|
if (ret)
|
|
|
|
goto err;
|
|
|
|
|
|
|
|
release_firmware(fw);
|
|
|
|
fw = NULL;
|
|
|
|
|
|
|
|
/* warm state */
|
2014-10-26 09:58:18 +08:00
|
|
|
dev->warm = true;
|
2013-11-30 03:19:50 +08:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
err:
|
|
|
|
if (fw)
|
|
|
|
release_firmware(fw);
|
|
|
|
|
2014-10-26 09:58:18 +08:00
|
|
|
dev_dbg(&dev->i2c->dev, "%s: failed=%d\n", __func__, ret);
|
2013-11-30 03:19:50 +08:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2014-10-26 09:23:09 +08:00
|
|
|
static int mn88472_sleep(struct dvb_frontend *fe)
|
2013-11-30 03:19:50 +08:00
|
|
|
{
|
2014-10-26 09:58:18 +08:00
|
|
|
struct mn88472_dev *dev = fe->demodulator_priv;
|
2013-11-30 03:19:50 +08:00
|
|
|
int ret;
|
2014-10-26 09:58:18 +08:00
|
|
|
dev_dbg(&dev->i2c->dev, "%s:\n", __func__);
|
2013-11-30 03:19:50 +08:00
|
|
|
|
|
|
|
/* power off */
|
2014-10-26 09:58:18 +08:00
|
|
|
ret = mn88472_wreg(dev, 0x1c0b, 0x30);
|
2013-11-30 03:19:50 +08:00
|
|
|
if (ret)
|
|
|
|
goto err;
|
|
|
|
|
2014-10-26 09:58:18 +08:00
|
|
|
ret = mn88472_wreg(dev, 0x1c05, 0x3e);
|
2013-11-30 03:19:50 +08:00
|
|
|
if (ret)
|
|
|
|
goto err;
|
|
|
|
|
2014-10-26 09:58:18 +08:00
|
|
|
dev->delivery_system = SYS_UNDEFINED;
|
2013-11-30 03:19:50 +08:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
err:
|
2014-10-26 09:58:18 +08:00
|
|
|
dev_dbg(&dev->i2c->dev, "%s: failed=%d\n", __func__, ret);
|
2013-11-30 03:19:50 +08:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2014-10-26 09:23:09 +08:00
|
|
|
static void mn88472_release(struct dvb_frontend *fe)
|
2013-11-30 03:19:50 +08:00
|
|
|
{
|
2014-10-26 09:58:18 +08:00
|
|
|
struct mn88472_dev *dev = fe->demodulator_priv;
|
|
|
|
|
|
|
|
kfree(dev);
|
2013-11-30 03:19:50 +08:00
|
|
|
}
|
|
|
|
|
2014-10-26 09:23:09 +08:00
|
|
|
struct dvb_frontend *mn88472_attach(const struct mn88472_config *cfg,
|
2013-11-30 03:19:50 +08:00
|
|
|
struct i2c_adapter *i2c)
|
|
|
|
{
|
|
|
|
int ret;
|
2014-10-26 09:58:18 +08:00
|
|
|
struct mn88472_dev *dev;
|
2013-11-30 03:19:50 +08:00
|
|
|
u8 u8tmp;
|
|
|
|
dev_dbg(&i2c->dev, "%s:\n", __func__);
|
|
|
|
|
|
|
|
/* allocate memory for the internal state */
|
2014-10-26 09:58:18 +08:00
|
|
|
dev = kzalloc(sizeof(*dev), GFP_KERNEL);
|
|
|
|
if (dev == NULL) {
|
2013-11-30 03:19:50 +08:00
|
|
|
ret = -ENOMEM;
|
|
|
|
dev_err(&i2c->dev, "%s: kzalloc() failed\n", KBUILD_MODNAME);
|
|
|
|
goto err;
|
|
|
|
}
|
|
|
|
|
2014-10-26 09:58:18 +08:00
|
|
|
dev->cfg = cfg;
|
|
|
|
dev->i2c = i2c;
|
2013-11-30 03:19:50 +08:00
|
|
|
|
|
|
|
/* check demod responds to I2C */
|
2014-10-26 09:58:18 +08:00
|
|
|
ret = mn88472_rreg(dev, 0x1c00, &u8tmp);
|
2013-11-30 03:19:50 +08:00
|
|
|
if (ret)
|
|
|
|
goto err;
|
|
|
|
|
|
|
|
/* create dvb_frontend */
|
2014-10-26 09:58:18 +08:00
|
|
|
memcpy(&dev->fe.ops, &mn88472_ops, sizeof(struct dvb_frontend_ops));
|
|
|
|
dev->fe.demodulator_priv = dev;
|
2013-11-30 03:19:50 +08:00
|
|
|
|
2014-10-26 09:58:18 +08:00
|
|
|
return &dev->fe;
|
2013-11-30 03:19:50 +08:00
|
|
|
err:
|
|
|
|
dev_dbg(&i2c->dev, "%s: failed=%d\n", __func__, ret);
|
2014-10-26 09:58:18 +08:00
|
|
|
kfree(dev);
|
2013-11-30 03:19:50 +08:00
|
|
|
return NULL;
|
|
|
|
}
|
2014-10-26 09:23:09 +08:00
|
|
|
EXPORT_SYMBOL(mn88472_attach);
|
2013-11-30 03:19:50 +08:00
|
|
|
|
2014-10-26 09:23:09 +08:00
|
|
|
static struct dvb_frontend_ops mn88472_ops = {
|
2013-11-30 03:19:50 +08:00
|
|
|
.delsys = {SYS_DVBC_ANNEX_A},
|
|
|
|
.info = {
|
|
|
|
.name = "Panasonic MN88472",
|
|
|
|
.caps = FE_CAN_FEC_1_2 |
|
|
|
|
FE_CAN_FEC_2_3 |
|
|
|
|
FE_CAN_FEC_3_4 |
|
|
|
|
FE_CAN_FEC_5_6 |
|
|
|
|
FE_CAN_FEC_7_8 |
|
|
|
|
FE_CAN_FEC_AUTO |
|
|
|
|
FE_CAN_QPSK |
|
|
|
|
FE_CAN_QAM_16 |
|
|
|
|
FE_CAN_QAM_32 |
|
|
|
|
FE_CAN_QAM_64 |
|
|
|
|
FE_CAN_QAM_128 |
|
|
|
|
FE_CAN_QAM_256 |
|
|
|
|
FE_CAN_QAM_AUTO |
|
|
|
|
FE_CAN_TRANSMISSION_MODE_AUTO |
|
|
|
|
FE_CAN_GUARD_INTERVAL_AUTO |
|
|
|
|
FE_CAN_HIERARCHY_AUTO |
|
|
|
|
FE_CAN_MUTE_TS |
|
|
|
|
FE_CAN_2G_MODULATION |
|
|
|
|
FE_CAN_MULTISTREAM
|
|
|
|
},
|
|
|
|
|
2014-10-26 09:23:09 +08:00
|
|
|
.release = mn88472_release,
|
2013-11-30 03:19:50 +08:00
|
|
|
|
2013-12-03 07:28:58 +08:00
|
|
|
.get_tune_settings = mn88472_get_tune_settings,
|
|
|
|
|
2014-10-26 09:23:09 +08:00
|
|
|
.init = mn88472_init,
|
|
|
|
.sleep = mn88472_sleep,
|
2013-11-30 03:19:50 +08:00
|
|
|
|
2014-10-26 09:23:09 +08:00
|
|
|
.set_frontend = mn88472_set_frontend,
|
|
|
|
/* .get_frontend = mn88472_get_frontend, */
|
2013-11-30 03:19:50 +08:00
|
|
|
|
2014-10-26 09:23:09 +08:00
|
|
|
.read_status = mn88472_read_status,
|
|
|
|
/* .read_snr = mn88472_read_snr, */
|
2013-11-30 03:19:50 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>");
|
|
|
|
MODULE_DESCRIPTION("Panasonic MN88472 DVB-T/T2/C demodulator driver");
|
|
|
|
MODULE_LICENSE("GPL");
|
|
|
|
MODULE_FIRMWARE(MN88472_FIRMWARE);
|