Thomas Gleixner | c942fdd | 2019-05-27 08:55:06 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Olli Salonen | 148abd3 | 2017-11-23 03:24:45 -0500 | [diff] [blame] | 2 | /* |
| 3 | * NXP TDA18250BHN silicon tuner driver |
| 4 | * |
| 5 | * Copyright (C) 2017 Olli Salonen <olli.salonen@iki.fi> |
Olli Salonen | 148abd3 | 2017-11-23 03:24:45 -0500 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef TDA18250_H |
| 9 | #define TDA18250_H |
| 10 | |
| 11 | #include <linux/kconfig.h> |
| 12 | #include <media/media-device.h> |
Mauro Carvalho Chehab | fada193 | 2017-12-28 13:03:51 -0500 | [diff] [blame] | 13 | #include <media/dvb_frontend.h> |
Olli Salonen | 148abd3 | 2017-11-23 03:24:45 -0500 | [diff] [blame] | 14 | |
| 15 | #define TDA18250_XTAL_FREQ_16MHZ 0 |
| 16 | #define TDA18250_XTAL_FREQ_24MHZ 1 |
| 17 | #define TDA18250_XTAL_FREQ_25MHZ 2 |
| 18 | #define TDA18250_XTAL_FREQ_27MHZ 3 |
| 19 | #define TDA18250_XTAL_FREQ_30MHZ 4 |
| 20 | #define TDA18250_XTAL_FREQ_MAX 5 |
| 21 | |
| 22 | struct tda18250_config { |
| 23 | u16 if_dvbt_6; |
| 24 | u16 if_dvbt_7; |
| 25 | u16 if_dvbt_8; |
| 26 | u16 if_dvbc_6; |
| 27 | u16 if_dvbc_8; |
| 28 | u16 if_atsc; |
| 29 | u8 xtal_freq; |
| 30 | bool loopthrough; |
| 31 | |
| 32 | /* |
| 33 | * frontend |
| 34 | */ |
| 35 | struct dvb_frontend *fe; |
| 36 | |
| 37 | #if defined(CONFIG_MEDIA_CONTROLLER) |
| 38 | struct media_device *mdev; |
| 39 | #endif |
| 40 | }; |
| 41 | |
| 42 | #endif |