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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MN88472_PRIV_H
|
|
|
|
#define MN88472_PRIV_H
|
|
|
|
|
2017-12-29 02:03:51 +08:00
|
|
|
#include <media/dvb_frontend.h>
|
|
|
|
#include <media/dvb_math.h>
|
2013-11-30 03:19:50 +08:00
|
|
|
#include "mn88472.h"
|
|
|
|
#include <linux/firmware.h>
|
2014-10-27 10:26:04 +08:00
|
|
|
#include <linux/regmap.h>
|
2013-11-30 03:19:50 +08:00
|
|
|
|
|
|
|
#define MN88472_FIRMWARE "dvb-demod-mn88472-02.fw"
|
|
|
|
|
2014-10-26 09:58:18 +08:00
|
|
|
struct mn88472_dev {
|
2014-10-27 10:01:07 +08:00
|
|
|
struct i2c_client *client[3];
|
2014-10-27 10:26:04 +08:00
|
|
|
struct regmap *regmap[3];
|
2013-11-30 03:19:50 +08:00
|
|
|
struct dvb_frontend fe;
|
2016-05-13 23:19:19 +08:00
|
|
|
u16 i2c_write_max;
|
|
|
|
unsigned int clk;
|
|
|
|
unsigned int active:1;
|
|
|
|
unsigned int ts_mode:1;
|
|
|
|
unsigned int ts_clk:1;
|
2013-11-30 03:19:50 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|