| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Afatech AF9035 DVB USB driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2009 Antti Palosaari <crope@iki.fi> |
|---|
| 5 | 6 | * 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. |
|---|
| 20 | 7 | */ |
|---|
| 21 | 8 | |
|---|
| 22 | 9 | #ifndef AF9035_H |
|---|
| .. | .. |
|---|
| 69 | 56 | u8 dual_mode:1; |
|---|
| 70 | 57 | u8 no_read:1; |
|---|
| 71 | 58 | u8 af9033_i2c_addr[2]; |
|---|
| 59 | + u8 it930x_addresses; |
|---|
| 72 | 60 | struct af9033_config af9033_config[2]; |
|---|
| 73 | 61 | struct af9033_ops ops; |
|---|
| 74 | 62 | #define AF9035_I2C_CLIENT_MAX 4 |
|---|
| .. | .. |
|---|
| 77 | 65 | struct platform_device *platform_device_tuner[2]; |
|---|
| 78 | 66 | }; |
|---|
| 79 | 67 | |
|---|
| 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 | + |
|---|
| 80 | 79 | static const u32 clock_lut_af9035[] = { |
|---|
| 81 | 80 | 20480000, /* FPGA */ |
|---|
| 82 | 81 | 16384000, /* 16.38 MHz */ |
|---|