1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Driver for Quantek QT1010 silicon tuner
5 * Copyright (C) 2006 Antti Palosaari <crope@iki.fi>
6 * Aapo Tahkola <aet@rasterburn.org>
16 01 a0 ? operation start/stop; start=80, stop=00
20 05 00 ? maybe band selection
22 07 2b set frequency: 32 MHz scale, n*32 MHz
24 09 10 ? changes every 8/24 MHz; values 1d/1c
25 0a 08 set frequency: 4 MHz scale, n*4 MHz
26 0b 41 ? changes every 2/2 MHz; values 45/45
32 11 f1 ? maybe device specified adjustment
33 12 11 ? maybe device specified adjustment
41 1a d0 set frequency: 125 kHz scale, n*125 kHz
45 1e 00 ? looks like operation register; write cmd here, read result from 1f-26
46 1f 20 ? chip initialization
47 20 e0 ? chip initialization
52 25 40 ? chip initialization
65 #define QT1010_STEP (125 * kHz) /*
66 * used by Windows drivers,
67 * hw could be more precise but we don't
70 #define QT1010_MIN_FREQ (48 * MHz)
71 #define QT1010_MAX_FREQ (860 * MHz)
72 #define QT1010_OFFSET (1246 * MHz)
83 struct qt1010_config
*cfg
;
84 struct i2c_adapter
*i2c
;