hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/media/usb/dvb-usb-v2/af9035.h
....@@ -1,22 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Afatech AF9035 DVB USB driver
34 *
45 * Copyright (C) 2009 Antti Palosaari <crope@iki.fi>
56 * Copyright (C) 2012 Antti Palosaari <crope@iki.fi>
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License as published by
9
- * the Free Software Foundation; either version 2 of the License, or
10
- * (at your option) any later version.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU General Public License along
18
- * with this program; if not, write to the Free Software Foundation, Inc.,
19
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
207 */
218
229 #ifndef AF9035_H
....@@ -69,6 +56,7 @@
6956 u8 dual_mode:1;
7057 u8 no_read:1;
7158 u8 af9033_i2c_addr[2];
59
+ u8 it930x_addresses;
7260 struct af9033_config af9033_config[2];
7361 struct af9033_ops ops;
7462 #define AF9035_I2C_CLIENT_MAX 4
....@@ -77,6 +65,17 @@
7765 struct platform_device *platform_device_tuner[2];
7866 };
7967
68
+struct address_table {
69
+ u8 frontend_i2c_addr;
70
+ u8 tuner_i2c_addr;
71
+ u8 tuner_if_port;
72
+};
73
+
74
+static const struct address_table it930x_addresses_table[] = {
75
+ { 0x67, 0x63, 1 },
76
+ { 0x64, 0x60, 0 },
77
+};
78
+
8079 static const u32 clock_lut_af9035[] = {
8180 20480000, /* FPGA */
8281 16384000, /* 16.38 MHz */