xref: /linux/drivers/media/tuners/tda18250.h (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * NXP TDA18250BHN silicon tuner driver
4  *
5  * Copyright (C) 2017 Olli Salonen <olli.salonen@iki.fi>
6  */
7 
8 #ifndef TDA18250_H
9 #define TDA18250_H
10 
11 #include <linux/kconfig.h>
12 #include <media/media-device.h>
13 #include <media/dvb_frontend.h>
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
43