blob: 2819126e5e8d2a1cf8a6c9d5ab7bad79151b175d [file] [log] [blame]
Thomas Gleixnerc942fdd2019-05-27 08:55:06 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Olli Salonen148abd32017-11-23 03:24:45 -05002/*
3 * NXP TDA18250BHN silicon tuner driver
4 *
5 * Copyright (C) 2017 Olli Salonen <olli.salonen@iki.fi>
Olli Salonen148abd32017-11-23 03:24:45 -05006 */
7
8#ifndef TDA18250_H
9#define TDA18250_H
10
11#include <linux/kconfig.h>
12#include <media/media-device.h>
Mauro Carvalho Chehabfada1932017-12-28 13:03:51 -050013#include <media/dvb_frontend.h>
Olli Salonen148abd32017-11-23 03:24:45 -050014
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
22struct 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