blob: eca7f4e2b769325f6ee01cf78421ea9387750884 [file] [log] [blame]
Thomas Gleixnerc942fdd2019-05-27 08:55:06 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Antti Palosaaridadb5bb2014-09-30 01:01:47 -03002/*
3 * Panasonic MN88473 DVB-T/T2/C demodulator driver
4 *
5 * Copyright (C) 2014 Antti Palosaari <crope@iki.fi>
Antti Palosaaridadb5bb2014-09-30 01:01:47 -03006 */
7
8#ifndef MN88473_PRIV_H
9#define MN88473_PRIV_H
10
Mauro Carvalho Chehabfada1932017-12-28 13:03:51 -050011#include <media/dvb_frontend.h>
12#include <media/dvb_math.h>
Antti Palosaaridadb5bb2014-09-30 01:01:47 -030013#include "mn88473.h"
Antti Palosaari69ace6e2016-11-13 05:25:54 -020014#include <linux/math64.h>
Antti Palosaaridadb5bb2014-09-30 01:01:47 -030015#include <linux/firmware.h>
Antti Palosaari97de6e82014-10-03 00:28:18 -030016#include <linux/regmap.h>
Antti Palosaaridadb5bb2014-09-30 01:01:47 -030017
18#define MN88473_FIRMWARE "dvb-demod-mn88473-01.fw"
19
20struct mn88473_dev {
Antti Palosaari01b4be12014-10-02 22:41:26 -030021 struct i2c_client *client[3];
Antti Palosaari97de6e82014-10-03 00:28:18 -030022 struct regmap *regmap[3];
Antti Palosaari7908fad2016-02-04 17:01:51 -020023 struct dvb_frontend frontend;
Antti Palosaari01b4be12014-10-02 22:41:26 -030024 u16 i2c_wr_max;
Antti Palosaari7908fad2016-02-04 17:01:51 -020025 bool active;
26 u32 clk;
Antti Palosaaridadb5bb2014-09-30 01:01:47 -030027};
28
29#endif