Thomas Gleixner | c942fdd | 2019-05-27 08:55:06 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Antti Palosaari | dadb5bb | 2014-09-30 01:01:47 -0300 | [diff] [blame] | 2 | /* |
| 3 | * Panasonic MN88473 DVB-T/T2/C demodulator driver |
| 4 | * |
| 5 | * Copyright (C) 2014 Antti Palosaari <crope@iki.fi> |
Antti Palosaari | dadb5bb | 2014-09-30 01:01:47 -0300 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef MN88473_PRIV_H |
| 9 | #define MN88473_PRIV_H |
| 10 | |
Mauro Carvalho Chehab | fada193 | 2017-12-28 13:03:51 -0500 | [diff] [blame] | 11 | #include <media/dvb_frontend.h> |
| 12 | #include <media/dvb_math.h> |
Antti Palosaari | dadb5bb | 2014-09-30 01:01:47 -0300 | [diff] [blame] | 13 | #include "mn88473.h" |
Antti Palosaari | 69ace6e | 2016-11-13 05:25:54 -0200 | [diff] [blame] | 14 | #include <linux/math64.h> |
Antti Palosaari | dadb5bb | 2014-09-30 01:01:47 -0300 | [diff] [blame] | 15 | #include <linux/firmware.h> |
Antti Palosaari | 97de6e8 | 2014-10-03 00:28:18 -0300 | [diff] [blame] | 16 | #include <linux/regmap.h> |
Antti Palosaari | dadb5bb | 2014-09-30 01:01:47 -0300 | [diff] [blame] | 17 | |
| 18 | #define MN88473_FIRMWARE "dvb-demod-mn88473-01.fw" |
| 19 | |
| 20 | struct mn88473_dev { |
Antti Palosaari | 01b4be1 | 2014-10-02 22:41:26 -0300 | [diff] [blame] | 21 | struct i2c_client *client[3]; |
Antti Palosaari | 97de6e8 | 2014-10-03 00:28:18 -0300 | [diff] [blame] | 22 | struct regmap *regmap[3]; |
Antti Palosaari | 7908fad | 2016-02-04 17:01:51 -0200 | [diff] [blame] | 23 | struct dvb_frontend frontend; |
Antti Palosaari | 01b4be1 | 2014-10-02 22:41:26 -0300 | [diff] [blame] | 24 | u16 i2c_wr_max; |
Antti Palosaari | 7908fad | 2016-02-04 17:01:51 -0200 | [diff] [blame] | 25 | bool active; |
| 26 | u32 clk; |
Antti Palosaari | dadb5bb | 2014-09-30 01:01:47 -0300 | [diff] [blame] | 27 | }; |
| 28 | |
| 29 | #endif |