2019-11-04 19:12:52 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2017-07-26 15:15:06 +02:00
|
|
|
/*
|
2017-09-08 14:47:14 +02:00
|
|
|
* ddbridge-hw.c: Digital Devices device information tables
|
2017-07-26 15:15:06 +02:00
|
|
|
*
|
2019-11-04 19:12:52 +01:00
|
|
|
* Copyright (C) 2010-2017 Digital Devices GmbH
|
2017-07-26 15:15:06 +02:00
|
|
|
* Ralph Metzler <rjkm@metzlerbros.de>
|
|
|
|
* Marcus Metzler <mocm@metzlerbros.de>
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* version 2 only, as published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2019-11-04 19:12:52 +01:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2017-07-26 15:15:06 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "ddbridge.h"
|
|
|
|
|
|
|
|
/****************************************************************************/
|
|
|
|
/****************************************************************************/
|
|
|
|
/****************************************************************************/
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regset octopus_mod_odma = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.base = 0x300,
|
|
|
|
.num = 0x0a,
|
|
|
|
.size = 0x10,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regset octopus_mod_odma_buf = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.base = 0x2000,
|
|
|
|
.num = 0x0a,
|
|
|
|
.size = 0x100,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regset octopus_mod_channel = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.base = 0x400,
|
|
|
|
.num = 0x0a,
|
|
|
|
.size = 0x40,
|
|
|
|
};
|
|
|
|
|
|
|
|
/****************************************************************************/
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regset octopus_mod_2_odma = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.base = 0x400,
|
|
|
|
.num = 0x18,
|
|
|
|
.size = 0x10,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regset octopus_mod_2_odma_buf = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.base = 0x8000,
|
|
|
|
.num = 0x18,
|
|
|
|
.size = 0x100,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regset octopus_mod_2_channel = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.base = 0x800,
|
|
|
|
.num = 0x18,
|
|
|
|
.size = 0x40,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regset octopus_sdr_output = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.base = 0x240,
|
|
|
|
.num = 0x14,
|
|
|
|
.size = 0x10,
|
|
|
|
};
|
|
|
|
|
|
|
|
/****************************************************************************/
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regset octopus_input = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.base = 0x200,
|
|
|
|
.num = 0x08,
|
|
|
|
.size = 0x10,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regset octopus_output = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.base = 0x280,
|
|
|
|
.num = 0x08,
|
|
|
|
.size = 0x10,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regset octopus_idma = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.base = 0x300,
|
|
|
|
.num = 0x08,
|
|
|
|
.size = 0x10,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regset octopus_idma_buf = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.base = 0x2000,
|
|
|
|
.num = 0x08,
|
|
|
|
.size = 0x100,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regset octopus_odma = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.base = 0x380,
|
|
|
|
.num = 0x04,
|
|
|
|
.size = 0x10,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regset octopus_odma_buf = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.base = 0x2800,
|
|
|
|
.num = 0x04,
|
|
|
|
.size = 0x100,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regset octopus_i2c = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.base = 0x80,
|
|
|
|
.num = 0x04,
|
|
|
|
.size = 0x20,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regset octopus_i2c_buf = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.base = 0x1000,
|
|
|
|
.num = 0x04,
|
|
|
|
.size = 0x200,
|
|
|
|
};
|
|
|
|
|
|
|
|
/****************************************************************************/
|
|
|
|
|
2020-12-01 15:58:35 +01:00
|
|
|
static const struct ddb_regset max_mci = {
|
|
|
|
.base = 0x500,
|
|
|
|
.num = 0x01,
|
|
|
|
.size = 0x04,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct ddb_regset max_mci_buf = {
|
|
|
|
.base = 0x600,
|
|
|
|
.num = 0x01,
|
|
|
|
.size = 0x100,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct ddb_regset sdr_mci = {
|
|
|
|
.base = 0x260,
|
|
|
|
.num = 0x01,
|
|
|
|
.size = 0x04,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct ddb_regset sdr_mci_buf = {
|
|
|
|
.base = 0x300,
|
|
|
|
.num = 0x01,
|
|
|
|
.size = 0x100,
|
|
|
|
};
|
|
|
|
|
|
|
|
/****************************************************************************/
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regset octopro_input = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.base = 0x400,
|
|
|
|
.num = 0x14,
|
|
|
|
.size = 0x10,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regset octopro_output = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.base = 0x600,
|
|
|
|
.num = 0x0a,
|
|
|
|
.size = 0x10,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regset octopro_idma = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.base = 0x800,
|
|
|
|
.num = 0x40,
|
|
|
|
.size = 0x10,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regset octopro_idma_buf = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.base = 0x4000,
|
|
|
|
.num = 0x40,
|
|
|
|
.size = 0x100,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regset octopro_odma = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.base = 0xc00,
|
|
|
|
.num = 0x20,
|
|
|
|
.size = 0x10,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regset octopro_odma_buf = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.base = 0x8000,
|
|
|
|
.num = 0x20,
|
|
|
|
.size = 0x100,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regset octopro_i2c = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.base = 0x200,
|
|
|
|
.num = 0x0a,
|
|
|
|
.size = 0x20,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regset octopro_i2c_buf = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.base = 0x2000,
|
|
|
|
.num = 0x0a,
|
|
|
|
.size = 0x200,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regset octopro_gtl = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.base = 0xe00,
|
|
|
|
.num = 0x03,
|
|
|
|
.size = 0x40,
|
|
|
|
};
|
|
|
|
|
|
|
|
/****************************************************************************/
|
|
|
|
/****************************************************************************/
|
|
|
|
|
2018-08-13 15:05:43 +02:00
|
|
|
static const struct ddb_regset gtl_mini_input = {
|
|
|
|
.base = 0x400,
|
|
|
|
.num = 0x14,
|
|
|
|
.size = 0x10,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct ddb_regset gtl_mini_idma = {
|
|
|
|
.base = 0x800,
|
|
|
|
.num = 0x40,
|
|
|
|
.size = 0x10,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct ddb_regset gtl_mini_idma_buf = {
|
|
|
|
.base = 0x4000,
|
|
|
|
.num = 0x40,
|
|
|
|
.size = 0x100,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct ddb_regset gtl_mini_gtl = {
|
|
|
|
.base = 0xe00,
|
|
|
|
.num = 0x03,
|
|
|
|
.size = 0x40,
|
|
|
|
};
|
|
|
|
|
|
|
|
/****************************************************************************/
|
|
|
|
/****************************************************************************/
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regmap octopus_map = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.irq_version = 1,
|
|
|
|
.irq_base_i2c = 0,
|
|
|
|
.irq_base_idma = 8,
|
|
|
|
.irq_base_odma = 16,
|
|
|
|
.i2c = &octopus_i2c,
|
|
|
|
.i2c_buf = &octopus_i2c_buf,
|
|
|
|
.idma = &octopus_idma,
|
|
|
|
.idma_buf = &octopus_idma_buf,
|
|
|
|
.odma = &octopus_odma,
|
|
|
|
.odma_buf = &octopus_odma_buf,
|
|
|
|
.input = &octopus_input,
|
2018-08-13 15:05:43 +02:00
|
|
|
|
2017-07-26 15:15:06 +02:00
|
|
|
.output = &octopus_output,
|
|
|
|
};
|
|
|
|
|
2020-12-01 15:58:35 +01:00
|
|
|
static const struct ddb_regmap octopus_mci_map = {
|
|
|
|
.irq_version = 1,
|
|
|
|
.irq_base_i2c = 0,
|
|
|
|
.irq_base_idma = 8,
|
|
|
|
.irq_base_odma = 16,
|
|
|
|
.irq_base_mci = 0,
|
|
|
|
.i2c = &octopus_i2c,
|
|
|
|
.i2c_buf = &octopus_i2c_buf,
|
|
|
|
.idma = &octopus_idma,
|
|
|
|
.idma_buf = &octopus_idma_buf,
|
|
|
|
.odma = &octopus_odma,
|
|
|
|
.odma_buf = &octopus_odma_buf,
|
|
|
|
.input = &octopus_input,
|
|
|
|
.output = &octopus_output,
|
|
|
|
|
|
|
|
.mci = &max_mci,
|
|
|
|
.mci_buf = &max_mci_buf,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regmap octopro_map = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.irq_version = 2,
|
|
|
|
.irq_base_i2c = 32,
|
|
|
|
.irq_base_idma = 64,
|
|
|
|
.irq_base_odma = 128,
|
|
|
|
.irq_base_gtl = 8,
|
|
|
|
.i2c = &octopro_i2c,
|
|
|
|
.i2c_buf = &octopro_i2c_buf,
|
|
|
|
.idma = &octopro_idma,
|
|
|
|
.idma_buf = &octopro_idma_buf,
|
|
|
|
.odma = &octopro_odma,
|
|
|
|
.odma_buf = &octopro_odma_buf,
|
|
|
|
.input = &octopro_input,
|
|
|
|
.output = &octopro_output,
|
|
|
|
.gtl = &octopro_gtl,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regmap octopro_hdin_map = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.irq_version = 2,
|
|
|
|
.irq_base_i2c = 32,
|
|
|
|
.irq_base_idma = 64,
|
|
|
|
.irq_base_odma = 128,
|
|
|
|
.i2c = &octopro_i2c,
|
|
|
|
.i2c_buf = &octopro_i2c_buf,
|
|
|
|
.idma = &octopro_idma,
|
|
|
|
.idma_buf = &octopro_idma_buf,
|
|
|
|
.odma = &octopro_odma,
|
|
|
|
.odma_buf = &octopro_odma_buf,
|
|
|
|
.input = &octopro_input,
|
|
|
|
.output = &octopro_output,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regmap octopus_mod_map = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.irq_version = 1,
|
|
|
|
.irq_base_odma = 8,
|
|
|
|
.irq_base_rate = 18,
|
|
|
|
.output = &octopus_output,
|
|
|
|
.odma = &octopus_mod_odma,
|
|
|
|
.odma_buf = &octopus_mod_odma_buf,
|
|
|
|
.channel = &octopus_mod_channel,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regmap octopus_mod_2_map = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.irq_version = 2,
|
|
|
|
.irq_base_odma = 64,
|
|
|
|
.irq_base_rate = 32,
|
|
|
|
.output = &octopus_output,
|
|
|
|
.odma = &octopus_mod_2_odma,
|
|
|
|
.odma_buf = &octopus_mod_2_odma_buf,
|
|
|
|
.channel = &octopus_mod_2_channel,
|
2021-12-06 14:54:51 +01:00
|
|
|
|
|
|
|
.mci = &sdr_mci,
|
|
|
|
.mci_buf = &sdr_mci_buf,
|
2017-07-26 15:15:06 +02:00
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regmap octopus_sdr_map = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.irq_version = 2,
|
|
|
|
.irq_base_odma = 64,
|
|
|
|
.irq_base_rate = 32,
|
2020-12-01 15:58:35 +01:00
|
|
|
.irq_base_mci = 10,
|
2017-07-26 15:15:06 +02:00
|
|
|
.output = &octopus_sdr_output,
|
|
|
|
.odma = &octopus_mod_2_odma,
|
|
|
|
.odma_buf = &octopus_mod_2_odma_buf,
|
|
|
|
.channel = &octopus_mod_2_channel,
|
2020-12-01 15:58:35 +01:00
|
|
|
|
|
|
|
.mci = &sdr_mci,
|
|
|
|
.mci_buf = &sdr_mci_buf,
|
2017-07-26 15:15:06 +02:00
|
|
|
};
|
|
|
|
|
2018-08-13 15:05:43 +02:00
|
|
|
static const struct ddb_regmap gtl_mini = {
|
|
|
|
.irq_version = 2,
|
|
|
|
.irq_base_i2c = 32,
|
|
|
|
.irq_base_idma = 64,
|
|
|
|
.irq_base_odma = 128,
|
|
|
|
.irq_base_gtl = 8,
|
|
|
|
.idma = >l_mini_idma,
|
|
|
|
.idma_buf = >l_mini_idma_buf,
|
|
|
|
.input = >l_mini_input,
|
|
|
|
.gtl = >l_mini_gtl,
|
|
|
|
};
|
|
|
|
|
2017-07-26 15:15:06 +02:00
|
|
|
/****************************************************************************/
|
|
|
|
/****************************************************************************/
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_none = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_NONE,
|
|
|
|
.name = "unknown Digital Devices device, install newer driver",
|
|
|
|
.regmap = &octopus_map,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_octopus = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_OCTOPUS,
|
|
|
|
.name = "Digital Devices Octopus DVB adapter",
|
|
|
|
.regmap = &octopus_map,
|
|
|
|
.port_num = 4,
|
|
|
|
.i2c_mask = 0x0f,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_octopusv3 = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_OCTOPUS,
|
|
|
|
.name = "Digital Devices Octopus V3 DVB adapter",
|
|
|
|
.regmap = &octopus_map,
|
|
|
|
.port_num = 4,
|
|
|
|
.i2c_mask = 0x0f,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_octopus_le = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_OCTOPUS,
|
|
|
|
.name = "Digital Devices Octopus LE DVB adapter",
|
|
|
|
.regmap = &octopus_map,
|
|
|
|
.port_num = 2,
|
|
|
|
.i2c_mask = 0x03,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_octopus_oem = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_OCTOPUS,
|
|
|
|
.name = "Digital Devices Octopus OEM",
|
|
|
|
.regmap = &octopus_map,
|
|
|
|
.port_num = 4,
|
|
|
|
.i2c_mask = 0x0f,
|
|
|
|
.led_num = 1,
|
|
|
|
.fan_num = 1,
|
|
|
|
.temp_num = 1,
|
|
|
|
.temp_bus = 0,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_octopus_mini = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_OCTOPUS,
|
|
|
|
.name = "Digital Devices Octopus Mini",
|
|
|
|
.regmap = &octopus_map,
|
|
|
|
.port_num = 4,
|
|
|
|
.i2c_mask = 0x0f,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_v6 = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_OCTOPUS,
|
|
|
|
.name = "Digital Devices Cine S2 V6 DVB adapter",
|
|
|
|
.regmap = &octopus_map,
|
|
|
|
.port_num = 3,
|
|
|
|
.i2c_mask = 0x07,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_v6_5 = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_OCTOPUS,
|
|
|
|
.name = "Digital Devices Cine S2 V6.5 DVB adapter",
|
|
|
|
.regmap = &octopus_map,
|
|
|
|
.port_num = 4,
|
|
|
|
.i2c_mask = 0x0f,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_v7a = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_OCTOPUS,
|
|
|
|
.name = "Digital Devices Cine S2 V7 Advanced DVB adapter",
|
|
|
|
.regmap = &octopus_map,
|
|
|
|
.port_num = 4,
|
|
|
|
.i2c_mask = 0x0f,
|
|
|
|
.board_control = 2,
|
|
|
|
.board_control_2 = 4,
|
|
|
|
.ts_quirks = TS_QUIRK_REVERSED,
|
2018-05-02 15:39:09 +02:00
|
|
|
.hw_min = 0x010007,
|
2017-07-26 15:15:06 +02:00
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_v7 = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_OCTOPUS,
|
|
|
|
.name = "Digital Devices Cine S2 V7 DVB adapter",
|
|
|
|
.regmap = &octopus_map,
|
|
|
|
.port_num = 4,
|
|
|
|
.i2c_mask = 0x0f,
|
|
|
|
.board_control = 2,
|
|
|
|
.board_control_2 = 4,
|
|
|
|
.ts_quirks = TS_QUIRK_REVERSED,
|
2018-05-02 15:39:09 +02:00
|
|
|
.hw_min = 0x010007,
|
2017-07-26 15:15:06 +02:00
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_ctv7 = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_OCTOPUS,
|
|
|
|
.name = "Digital Devices Cine CT V7 DVB adapter",
|
|
|
|
.regmap = &octopus_map,
|
|
|
|
.port_num = 4,
|
|
|
|
.i2c_mask = 0x0f,
|
|
|
|
.board_control = 3,
|
|
|
|
.board_control_2 = 4,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_satixs2v3 = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_OCTOPUS,
|
|
|
|
.name = "Mystique SaTiX-S2 V3 DVB adapter",
|
|
|
|
.regmap = &octopus_map,
|
|
|
|
.port_num = 3,
|
|
|
|
.i2c_mask = 0x07,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_ci = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_OCTOPUS_CI,
|
|
|
|
.name = "Digital Devices Octopus CI",
|
|
|
|
.regmap = &octopus_map,
|
|
|
|
.port_num = 4,
|
|
|
|
.i2c_mask = 0x03,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_cis = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_OCTOPUS_CI,
|
|
|
|
.name = "Digital Devices Octopus CI single",
|
|
|
|
.regmap = &octopus_map,
|
|
|
|
.port_num = 3,
|
|
|
|
.i2c_mask = 0x03,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_ci_s2_pro = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_OCTOPUS_CI,
|
|
|
|
.name = "Digital Devices Octopus CI S2 Pro",
|
|
|
|
.regmap = &octopus_map,
|
|
|
|
.port_num = 4,
|
|
|
|
.i2c_mask = 0x01,
|
|
|
|
.board_control = 2,
|
|
|
|
.board_control_2 = 4,
|
2018-05-02 15:39:09 +02:00
|
|
|
.hw_min = 0x010007,
|
2017-07-26 15:15:06 +02:00
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_ci_s2_pro_a = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_OCTOPUS_CI,
|
|
|
|
.name = "Digital Devices Octopus CI S2 Pro Advanced",
|
|
|
|
.regmap = &octopus_map,
|
|
|
|
.port_num = 4,
|
|
|
|
.i2c_mask = 0x01,
|
|
|
|
.board_control = 2,
|
|
|
|
.board_control_2 = 4,
|
2018-05-02 15:39:09 +02:00
|
|
|
.hw_min = 0x010007,
|
2017-07-26 15:15:06 +02:00
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_dvbct = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_OCTOPUS,
|
|
|
|
.name = "Digital Devices DVBCT V6.1 DVB adapter",
|
|
|
|
.regmap = &octopus_map,
|
|
|
|
.port_num = 3,
|
|
|
|
.i2c_mask = 0x07,
|
|
|
|
};
|
|
|
|
|
|
|
|
/****************************************************************************/
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_mod = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_MOD,
|
|
|
|
.name = "Digital Devices DVB-C modulator",
|
|
|
|
.regmap = &octopus_mod_map,
|
|
|
|
.port_num = 10,
|
|
|
|
.temp_num = 1,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_mod_4 = {
|
|
|
|
.type = DDB_MOD,
|
|
|
|
.name = "Digital Devices DVB-C modulator",
|
|
|
|
.regmap = &octopus_mod_map,
|
|
|
|
.port_num = 4,
|
|
|
|
.temp_num = 1,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct ddb_info ddb_mod_fsm_24 = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_MOD,
|
|
|
|
.version = 2,
|
|
|
|
.name = "Digital Devices DVB-C modulator FSM-24",
|
|
|
|
.regmap = &octopus_mod_2_map,
|
|
|
|
.port_num = 24,
|
|
|
|
.temp_num = 1,
|
|
|
|
.tempmon_irq = 8,
|
2017-10-17 23:49:31 +02:00
|
|
|
.lostlock_irq = 9,
|
2017-07-26 15:15:06 +02:00
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_mod_fsm_16 = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_MOD,
|
|
|
|
.version = 2,
|
|
|
|
.name = "Digital Devices DVB-C modulator FSM-16",
|
|
|
|
.regmap = &octopus_mod_2_map,
|
|
|
|
.port_num = 16,
|
|
|
|
.temp_num = 1,
|
|
|
|
.tempmon_irq = 8,
|
2017-10-17 23:49:31 +02:00
|
|
|
.lostlock_irq = 9,
|
2017-07-26 15:15:06 +02:00
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_mod_fsm_8 = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_MOD,
|
|
|
|
.name = "Digital Devices DVB-C modulator FSM-8",
|
|
|
|
.version = 2,
|
|
|
|
.regmap = &octopus_mod_2_map,
|
|
|
|
.port_num = 8,
|
|
|
|
.temp_num = 1,
|
|
|
|
.tempmon_irq = 8,
|
2017-10-17 23:49:31 +02:00
|
|
|
.lostlock_irq = 9,
|
2017-07-26 15:15:06 +02:00
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_mod_fsm_4 = {
|
|
|
|
.type = DDB_MOD,
|
2021-02-01 21:30:23 +01:00
|
|
|
.name = "Digital Devices DVB-C modulator FSM-4",
|
2017-09-08 14:47:14 +02:00
|
|
|
.version = 2,
|
|
|
|
.regmap = &octopus_mod_2_map,
|
|
|
|
.port_num = 4,
|
|
|
|
.temp_num = 1,
|
|
|
|
.tempmon_irq = 8,
|
2017-10-17 23:49:31 +02:00
|
|
|
.lostlock_irq = 9,
|
2017-09-08 14:47:14 +02:00
|
|
|
};
|
|
|
|
|
2018-10-07 18:07:14 +02:00
|
|
|
static const struct ddb_info ddb_sdr_atv = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_MOD,
|
2018-10-07 18:07:14 +02:00
|
|
|
.name = "Digital Devices SDR ATV",
|
|
|
|
.version = 16,
|
|
|
|
.regmap = &octopus_sdr_map,
|
|
|
|
.port_num = 16,
|
|
|
|
.temp_num = 1,
|
|
|
|
.tempmon_irq = 8,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct ddb_info ddb_sdr_iq = {
|
|
|
|
.type = DDB_MOD,
|
|
|
|
.name = "Digital Devices SDR IQ",
|
|
|
|
.version = 17,
|
2017-07-26 15:15:06 +02:00
|
|
|
.regmap = &octopus_sdr_map,
|
|
|
|
.port_num = 16,
|
|
|
|
.temp_num = 1,
|
|
|
|
.tempmon_irq = 8,
|
|
|
|
};
|
|
|
|
|
2020-12-01 15:58:35 +01:00
|
|
|
static const struct ddb_info ddb_sdr_iq2 = {
|
|
|
|
.type = DDB_MOD,
|
|
|
|
.name = "Digital Devices SDR IQ2",
|
|
|
|
.version = 17,
|
|
|
|
.regmap = &octopus_sdr_map,
|
|
|
|
.port_num = 4,
|
|
|
|
.temp_num = 1,
|
|
|
|
.tempmon_irq = 8,
|
|
|
|
};
|
|
|
|
|
2019-03-14 12:47:00 +01:00
|
|
|
static const struct ddb_info ddb_sdr_dvbt = {
|
|
|
|
.type = DDB_MOD,
|
|
|
|
.name = "Digital Devices DVBT",
|
2019-07-08 10:01:01 +02:00
|
|
|
.version = 18,
|
2019-03-14 12:47:00 +01:00
|
|
|
.regmap = &octopus_sdr_map,
|
|
|
|
.port_num = 16,
|
|
|
|
.temp_num = 1,
|
|
|
|
.tempmon_irq = 8,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_octopro_hdin = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_OCTOPRO_HDIN,
|
|
|
|
.name = "Digital Devices OctopusNet Pro HDIN",
|
|
|
|
.regmap = &octopro_hdin_map,
|
|
|
|
.port_num = 10,
|
|
|
|
.i2c_mask = 0x3ff,
|
2018-04-11 21:20:25 +02:00
|
|
|
.mdio_base = 0x10020,
|
2017-07-26 15:15:06 +02:00
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_octopro = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_OCTOPRO,
|
|
|
|
.name = "Digital Devices OctopusNet Pro",
|
|
|
|
.regmap = &octopro_map,
|
|
|
|
.port_num = 10,
|
|
|
|
.i2c_mask = 0x3ff,
|
2018-04-11 21:20:25 +02:00
|
|
|
.mdio_base = 0x10020,
|
2017-07-26 15:15:06 +02:00
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_s2_48 = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_OCTOPUS_MAX,
|
|
|
|
.name = "Digital Devices MAX S8 4/8",
|
2020-12-01 15:58:35 +01:00
|
|
|
.regmap = &octopus_mci_map,
|
2017-07-26 15:15:06 +02:00
|
|
|
.port_num = 4,
|
|
|
|
.i2c_mask = 0x01,
|
|
|
|
.board_control = 1,
|
|
|
|
.tempmon_irq = 24,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_ct2_8 = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_OCTOPUS_MAX_CT,
|
|
|
|
.name = "Digital Devices MAX A8 CT2",
|
|
|
|
.regmap = &octopus_map,
|
|
|
|
.port_num = 4,
|
|
|
|
.i2c_mask = 0x0f,
|
|
|
|
.board_control = 0x0ff,
|
|
|
|
.board_control_2 = 0xf00,
|
|
|
|
.ts_quirks = TS_QUIRK_SERIAL,
|
|
|
|
.tempmon_irq = 24,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_c2t2_8 = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_OCTOPUS_MAX_CT,
|
|
|
|
.name = "Digital Devices MAX A8 C2T2",
|
|
|
|
.regmap = &octopus_map,
|
|
|
|
.port_num = 4,
|
|
|
|
.i2c_mask = 0x0f,
|
|
|
|
.board_control = 0x0ff,
|
|
|
|
.board_control_2 = 0xf00,
|
|
|
|
.ts_quirks = TS_QUIRK_SERIAL,
|
|
|
|
.tempmon_irq = 24,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_isdbt_8 = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_OCTOPUS_MAX_CT,
|
|
|
|
.name = "Digital Devices MAX A8 ISDBT",
|
|
|
|
.regmap = &octopus_map,
|
|
|
|
.port_num = 4,
|
|
|
|
.i2c_mask = 0x0f,
|
|
|
|
.board_control = 0x0ff,
|
|
|
|
.board_control_2 = 0xf00,
|
|
|
|
.ts_quirks = TS_QUIRK_SERIAL,
|
|
|
|
.tempmon_irq = 24,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_c2t2i_v0_8 = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_OCTOPUS_MAX_CT,
|
|
|
|
.name = "Digital Devices MAX A8 C2T2I V0",
|
|
|
|
.regmap = &octopus_map,
|
|
|
|
.port_num = 4,
|
|
|
|
.i2c_mask = 0x0f,
|
|
|
|
.board_control = 0x0ff,
|
|
|
|
.board_control_2 = 0xf00,
|
|
|
|
.ts_quirks = TS_QUIRK_SERIAL | TS_QUIRK_ALT_OSC,
|
|
|
|
.tempmon_irq = 24,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_c2t2i_8 = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_OCTOPUS_MAX_CT,
|
|
|
|
.name = "Digital Devices MAX A8 C2T2I",
|
|
|
|
.regmap = &octopus_map,
|
|
|
|
.port_num = 4,
|
|
|
|
.i2c_mask = 0x0f,
|
|
|
|
.board_control = 0x0ff,
|
|
|
|
.board_control_2 = 0xf00,
|
|
|
|
.ts_quirks = TS_QUIRK_SERIAL,
|
|
|
|
.tempmon_irq = 24,
|
|
|
|
};
|
|
|
|
|
2020-12-01 15:58:35 +01:00
|
|
|
/****************************************************************************/
|
|
|
|
|
2017-12-05 19:23:07 +01:00
|
|
|
static const struct ddb_info ddb_s2x_48 = {
|
|
|
|
.type = DDB_OCTOPUS_MCI,
|
|
|
|
.name = "Digital Devices MAX SX8",
|
2020-12-01 15:58:35 +01:00
|
|
|
.regmap = &octopus_mci_map,
|
2017-12-05 19:23:07 +01:00
|
|
|
.port_num = 4,
|
|
|
|
.i2c_mask = 0x00,
|
|
|
|
.tempmon_irq = 24,
|
2018-05-15 23:01:39 +02:00
|
|
|
.mci_ports = 4,
|
|
|
|
.mci_type = 0,
|
2018-05-25 00:12:31 +02:00
|
|
|
.temp_num = 1,
|
2017-12-05 19:23:07 +01:00
|
|
|
};
|
|
|
|
|
2019-11-12 18:15:54 +01:00
|
|
|
static const struct ddb_info ddb_s2x_48_b = {
|
|
|
|
.type = DDB_OCTOPUS_MCI,
|
|
|
|
.name = "Digital Devices MAX SX8 Basic",
|
2020-12-01 15:58:35 +01:00
|
|
|
.regmap = &octopus_mci_map,
|
2019-11-12 18:15:54 +01:00
|
|
|
.port_num = 4,
|
|
|
|
.i2c_mask = 0x00,
|
|
|
|
.tempmon_irq = 24,
|
|
|
|
.mci_ports = 4,
|
|
|
|
.mci_type = 0,
|
|
|
|
.temp_num = 1,
|
|
|
|
};
|
|
|
|
|
2018-03-22 19:30:45 +01:00
|
|
|
static const struct ddb_info ddb_m4 = {
|
|
|
|
.type = DDB_OCTOPUS_MCI,
|
|
|
|
.name = "Digital Devices MAX M4",
|
2020-12-01 15:58:35 +01:00
|
|
|
.regmap = &octopus_mci_map,
|
2018-03-22 19:30:45 +01:00
|
|
|
.port_num = 2,
|
|
|
|
.i2c_mask = 0x00,
|
|
|
|
.tempmon_irq = 24,
|
2018-05-15 23:01:39 +02:00
|
|
|
.mci_ports = 2,
|
|
|
|
.mci_type = 1,
|
2018-05-25 00:12:31 +02:00
|
|
|
.temp_num = 1,
|
2018-03-22 19:30:45 +01:00
|
|
|
};
|
|
|
|
|
2020-12-01 15:58:35 +01:00
|
|
|
/****************************************************************************/
|
|
|
|
|
2018-08-13 15:05:43 +02:00
|
|
|
static const struct ddb_info ddb_gtl_mini = {
|
2018-09-10 20:20:51 +02:00
|
|
|
.type = DDB_OCTOPUS,
|
2018-08-13 15:05:43 +02:00
|
|
|
.name = "Digital Devices Octopus GT Mini",
|
|
|
|
.regmap = >l_mini,
|
|
|
|
.port_num = 0,
|
|
|
|
.i2c_mask = 0x00,
|
|
|
|
.ns_num = 0,
|
|
|
|
};
|
|
|
|
|
2017-07-26 15:15:06 +02:00
|
|
|
/****************************************************************************/
|
|
|
|
/****************************************************************************/
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regmap octopus_net_map = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.irq_version = 1,
|
|
|
|
.irq_base_i2c = 0,
|
|
|
|
.i2c = &octopus_i2c,
|
|
|
|
.i2c_buf = &octopus_i2c_buf,
|
|
|
|
.input = &octopus_input,
|
|
|
|
.output = &octopus_output,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regset octopus_gtl = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.base = 0x180,
|
|
|
|
.num = 0x01,
|
|
|
|
.size = 0x20,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_regmap octopus_net_gtl = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.irq_version = 1,
|
|
|
|
.irq_base_i2c = 0,
|
|
|
|
.irq_base_gtl = 10,
|
|
|
|
.i2c = &octopus_i2c,
|
|
|
|
.i2c_buf = &octopus_i2c_buf,
|
|
|
|
.input = &octopus_input,
|
|
|
|
.output = &octopus_output,
|
|
|
|
.gtl = &octopus_gtl,
|
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_octonet = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_OCTONET,
|
|
|
|
.name = "Digital Devices OctopusNet network DVB adapter",
|
|
|
|
.regmap = &octopus_net_map,
|
|
|
|
.port_num = 4,
|
|
|
|
.i2c_mask = 0x0f,
|
|
|
|
.ns_num = 12,
|
2018-04-11 21:20:25 +02:00
|
|
|
.mdio_base = 0x20,
|
2017-07-26 15:15:06 +02:00
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_octonet_jse = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_OCTONET,
|
|
|
|
.name = "Digital Devices OctopusNet network DVB adapter JSE",
|
|
|
|
.regmap = &octopus_net_map,
|
|
|
|
.port_num = 4,
|
|
|
|
.i2c_mask = 0x0f,
|
|
|
|
.ns_num = 15,
|
2018-04-11 21:20:25 +02:00
|
|
|
.mdio_base = 0x20,
|
2017-07-26 15:15:06 +02:00
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_info ddb_octonet_gtl = {
|
2017-07-26 15:15:06 +02:00
|
|
|
.type = DDB_OCTONET,
|
|
|
|
.name = "Digital Devices OctopusNet GTL",
|
|
|
|
.regmap = &octopus_net_gtl,
|
|
|
|
.port_num = 4,
|
|
|
|
.i2c_mask = 0x05,
|
|
|
|
.ns_num = 12,
|
2018-04-11 21:20:25 +02:00
|
|
|
.mdio_base = 0x20,
|
2017-07-26 15:15:06 +02:00
|
|
|
.con_clock = 1,
|
|
|
|
};
|
|
|
|
|
|
|
|
/****************************************************************************/
|
|
|
|
/****************************************************************************/
|
|
|
|
/****************************************************************************/
|
|
|
|
|
|
|
|
struct ddb_device_id {
|
|
|
|
u16 vendor;
|
|
|
|
u16 device;
|
|
|
|
u16 subvendor;
|
|
|
|
u16 subdevice;
|
2017-09-08 14:47:14 +02:00
|
|
|
const struct ddb_info *info;
|
2017-07-26 15:15:06 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#define DDB_DEVID(_device, _subdevice, _info) { \
|
|
|
|
.vendor = 0xdd01, \
|
|
|
|
.device = _device, \
|
|
|
|
.subvendor = 0xdd01, \
|
|
|
|
.subdevice = _subdevice, \
|
2017-08-26 22:04:37 +02:00
|
|
|
.info = &(_info) }
|
2017-07-26 15:15:06 +02:00
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
static const struct ddb_device_id ddb_device_ids[] = {
|
2017-07-26 15:15:06 +02:00
|
|
|
/* OctopusNet */
|
|
|
|
DDB_DEVID(0x0300, 0xffff, ddb_octonet),
|
|
|
|
DDB_DEVID(0x0301, 0xffff, ddb_octonet_jse),
|
|
|
|
DDB_DEVID(0x0307, 0xffff, ddb_octonet_gtl),
|
2017-12-05 19:23:07 +01:00
|
|
|
|
2017-07-26 15:15:06 +02:00
|
|
|
/* PCIe devices */
|
2017-12-05 19:23:07 +01:00
|
|
|
|
|
|
|
/* DVB tuners and demodulators */
|
2017-07-26 15:15:06 +02:00
|
|
|
DDB_DEVID(0x0002, 0x0001, ddb_octopus),
|
|
|
|
DDB_DEVID(0x0003, 0x0001, ddb_octopus),
|
|
|
|
DDB_DEVID(0x0005, 0x0004, ddb_octopusv3),
|
|
|
|
DDB_DEVID(0x0003, 0x0002, ddb_octopus_le),
|
|
|
|
DDB_DEVID(0x0003, 0x0003, ddb_octopus_oem),
|
|
|
|
DDB_DEVID(0x0003, 0x0010, ddb_octopus_mini),
|
|
|
|
DDB_DEVID(0x0005, 0x0011, ddb_octopus_mini),
|
|
|
|
DDB_DEVID(0x0003, 0x0020, ddb_v6),
|
|
|
|
DDB_DEVID(0x0003, 0x0021, ddb_v6_5),
|
|
|
|
DDB_DEVID(0x0006, 0x0022, ddb_v7),
|
|
|
|
DDB_DEVID(0x0006, 0x0024, ddb_v7a),
|
|
|
|
DDB_DEVID(0x0003, 0x0030, ddb_dvbct),
|
2017-08-26 22:04:37 +02:00
|
|
|
DDB_DEVID(0x0003, 0xdb03, ddb_satixs2v3),
|
2017-07-26 15:15:06 +02:00
|
|
|
DDB_DEVID(0x0006, 0x0031, ddb_ctv7),
|
|
|
|
DDB_DEVID(0x0006, 0x0032, ddb_ctv7),
|
|
|
|
DDB_DEVID(0x0006, 0x0033, ddb_ctv7),
|
|
|
|
DDB_DEVID(0x0007, 0x0023, ddb_s2_48),
|
|
|
|
DDB_DEVID(0x0008, 0x0034, ddb_ct2_8),
|
|
|
|
DDB_DEVID(0x0008, 0x0035, ddb_c2t2_8),
|
|
|
|
DDB_DEVID(0x0008, 0x0036, ddb_isdbt_8),
|
|
|
|
DDB_DEVID(0x0008, 0x0037, ddb_c2t2i_v0_8),
|
|
|
|
DDB_DEVID(0x0008, 0x0038, ddb_c2t2i_8),
|
2017-12-05 19:23:07 +01:00
|
|
|
DDB_DEVID(0x0009, 0x0025, ddb_s2x_48),
|
2017-07-26 15:15:06 +02:00
|
|
|
DDB_DEVID(0x0006, 0x0039, ddb_ctv7),
|
2018-03-22 19:30:45 +01:00
|
|
|
DDB_DEVID(0x000a, 0x0050, ddb_m4),
|
2019-11-12 18:15:54 +01:00
|
|
|
DDB_DEVID(0x000b, 0x0026, ddb_s2x_48_b),
|
2017-07-26 15:15:06 +02:00
|
|
|
DDB_DEVID(0x0011, 0x0040, ddb_ci),
|
|
|
|
DDB_DEVID(0x0011, 0x0041, ddb_cis),
|
|
|
|
DDB_DEVID(0x0012, 0x0042, ddb_ci),
|
|
|
|
DDB_DEVID(0x0013, 0x0043, ddb_ci_s2_pro),
|
|
|
|
DDB_DEVID(0x0013, 0x0044, ddb_ci_s2_pro_a),
|
2018-08-13 15:05:43 +02:00
|
|
|
DDB_DEVID(0x0020, 0x0012, ddb_gtl_mini),
|
2017-12-05 19:23:07 +01:00
|
|
|
|
2020-08-29 15:32:42 +02:00
|
|
|
/* Modulators */
|
2017-07-26 15:15:06 +02:00
|
|
|
DDB_DEVID(0x0201, 0x0001, ddb_mod),
|
|
|
|
DDB_DEVID(0x0201, 0x0002, ddb_mod),
|
2017-09-08 14:47:14 +02:00
|
|
|
DDB_DEVID(0x0201, 0x0004, ddb_mod_4), /* dummy entry ! */
|
2017-07-26 15:15:06 +02:00
|
|
|
DDB_DEVID(0x0203, 0x0001, ddb_mod),
|
2017-09-10 22:25:02 +02:00
|
|
|
DDB_DEVID(0x0210, 0x0000, ddb_mod_fsm_4), /* dummy entry ! */
|
2017-07-26 15:15:06 +02:00
|
|
|
DDB_DEVID(0x0210, 0x0001, ddb_mod_fsm_24),
|
|
|
|
DDB_DEVID(0x0210, 0x0002, ddb_mod_fsm_16),
|
|
|
|
DDB_DEVID(0x0210, 0x0003, ddb_mod_fsm_8),
|
2018-10-07 18:07:14 +02:00
|
|
|
DDB_DEVID(0x0220, 0x0001, ddb_sdr_atv),
|
|
|
|
DDB_DEVID(0x0221, 0x0001, ddb_sdr_iq),
|
2019-03-14 12:47:00 +01:00
|
|
|
DDB_DEVID(0x0222, 0x0001, ddb_sdr_dvbt),
|
2020-12-01 15:58:35 +01:00
|
|
|
DDB_DEVID(0x0223, 0x0001, ddb_sdr_iq2),
|
|
|
|
DDB_DEVID(0xffff, 0xffff, ddb_sdr_iq2),
|
2017-12-05 19:23:07 +01:00
|
|
|
|
2017-07-26 15:15:06 +02:00
|
|
|
/* testing on OctopusNet Pro */
|
|
|
|
DDB_DEVID(0x0320, 0xffff, ddb_octopro_hdin),
|
|
|
|
DDB_DEVID(0x0321, 0xffff, ddb_none),
|
|
|
|
DDB_DEVID(0x0322, 0xffff, ddb_octopro),
|
|
|
|
DDB_DEVID(0x0323, 0xffff, ddb_none),
|
|
|
|
DDB_DEVID(0x0328, 0xffff, ddb_none),
|
|
|
|
DDB_DEVID(0x0329, 0xffff, ddb_octopro_hdin),
|
2020-10-16 14:37:25 +02:00
|
|
|
|
|
|
|
DDB_DEVID(0xffff, 0xffff, ddb_none),
|
2017-07-26 15:15:06 +02:00
|
|
|
};
|
|
|
|
|
2017-09-08 14:47:14 +02:00
|
|
|
const struct ddb_info *get_ddb_info(u16 vendor, u16 device,
|
2017-08-26 22:04:37 +02:00
|
|
|
u16 subvendor, u16 subdevice)
|
2017-07-26 15:15:06 +02:00
|
|
|
{
|
|
|
|
int i;
|
2020-08-29 15:32:42 +02:00
|
|
|
|
2017-07-26 15:15:06 +02:00
|
|
|
for (i = 0; i < ARRAY_SIZE(ddb_device_ids); i++) {
|
2017-09-08 14:47:14 +02:00
|
|
|
const struct ddb_device_id *id = &ddb_device_ids[i];
|
2020-08-29 15:32:42 +02:00
|
|
|
|
2017-07-26 15:15:06 +02:00
|
|
|
if (vendor == id->vendor &&
|
|
|
|
device == id->device &&
|
2020-10-16 14:37:25 +02:00
|
|
|
(subvendor == id->subvendor ||
|
|
|
|
id->subvendor == 0xffff) &&
|
2017-09-08 14:47:14 +02:00
|
|
|
(subdevice == id->subdevice ||
|
2017-07-26 15:15:06 +02:00
|
|
|
id->subdevice == 0xffff))
|
|
|
|
return id->info;
|
|
|
|
}
|
|
|
|
return &ddb_none;
|
|
|
|
}
|