blob: 659fa1b1633a3f0106e6aa7e325ddc07a6ee65b9 [file] [log] [blame]
Antti Palosaari695efd02013-02-25 08:43:32 -03001/*
2 * Montage M88TS2022 silicon tuner driver
3 *
4 * Copyright (C) 2013 Antti Palosaari <crope@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.
Antti Palosaari695efd02013-02-25 08:43:32 -030015 */
16
17#ifndef M88TS2022_H
18#define M88TS2022_H
19
20#include "dvb_frontend.h"
21
22struct m88ts2022_config {
23 /*
Antti Palosaari695efd02013-02-25 08:43:32 -030024 * clock
25 * 16000000 - 32000000
26 */
27 u32 clock;
28
29 /*
30 * RF loop-through
31 */
32 u8 loop_through:1;
33
34 /*
35 * clock output
36 */
37#define M88TS2022_CLOCK_OUT_DISABLED 0
38#define M88TS2022_CLOCK_OUT_ENABLED 1
39#define M88TS2022_CLOCK_OUT_ENABLED_XTALOUT 2
40 u8 clock_out:2;
41
42 /*
43 * clock output divider
44 * 1 - 31
45 */
46 u8 clock_out_div:5;
Antti Palosaari695efd02013-02-25 08:43:32 -030047
Antti Palosaarieafa2ad2013-12-02 18:38:41 -030048 /*
49 * pointer to DVB frontend
50 */
51 struct dvb_frontend *fe;
52};
Antti Palosaari695efd02013-02-25 08:43:32 -030053
54#endif