Merge branches 'misc', 'sa1100-for-next' and 'spectre' into for-linus
[linux-2.6-block.git] / drivers / media / tuners / tda18250.h
CommitLineData
148abd3b
OS
1/*
2 * NXP TDA18250BHN silicon tuner driver
3 *
4 * Copyright (C) 2017 Olli Salonen <olli.salonen@iki.fi>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 */
16
17#ifndef TDA18250_H
18#define TDA18250_H
19
20#include <linux/kconfig.h>
21#include <media/media-device.h>
fada1935 22#include <media/dvb_frontend.h>
148abd3b
OS
23
24#define TDA18250_XTAL_FREQ_16MHZ 0
25#define TDA18250_XTAL_FREQ_24MHZ 1
26#define TDA18250_XTAL_FREQ_25MHZ 2
27#define TDA18250_XTAL_FREQ_27MHZ 3
28#define TDA18250_XTAL_FREQ_30MHZ 4
29#define TDA18250_XTAL_FREQ_MAX 5
30
31struct tda18250_config {
32 u16 if_dvbt_6;
33 u16 if_dvbt_7;
34 u16 if_dvbt_8;
35 u16 if_dvbc_6;
36 u16 if_dvbc_8;
37 u16 if_atsc;
38 u8 xtal_freq;
39 bool loopthrough;
40
41 /*
42 * frontend
43 */
44 struct dvb_frontend *fe;
45
46#if defined(CONFIG_MEDIA_CONTROLLER)
47 struct media_device *mdev;
48#endif
49};
50
51#endif