1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Silicon Labs Si2168 DVB-T/T2/C demodulator driver
5 * Copyright (C) 2014 Antti Palosaari <crope@iki.fi>
12 #include <media/dvb_frontend.h>
13 #include <linux/firmware.h>
14 #include <linux/i2c-mux.h>
15 #include <linux/kernel.h>
17 #define SI2168_A20_FIRMWARE "/*(DEBLOBBED)*/"
18 #define SI2168_A30_FIRMWARE "/*(DEBLOBBED)*/"
19 #define SI2168_B40_FIRMWARE "/*(DEBLOBBED)*/"
20 #define SI2168_D60_FIRMWARE "/*(DEBLOBBED)*/"
24 struct mutex i2c_mutex;
25 struct i2c_mux_core *muxc;
26 struct dvb_frontend fe;
27 enum fe_delivery_system delivery_system;
28 enum fe_status fe_status;
29 #define SI2168_CHIP_ID_A20 ('A' << 24 | 68 << 16 | '2' << 8 | '0' << 0)
30 #define SI2168_CHIP_ID_A30 ('A' << 24 | 68 << 16 | '3' << 8 | '0' << 0)
31 #define SI2168_CHIP_ID_B40 ('B' << 24 | 68 << 16 | '4' << 8 | '0' << 0)
32 #define SI2168_CHIP_ID_D60 ('D' << 24 | 68 << 16 | '6' << 8 | '0' << 0)
35 const char *firmware_name;
37 unsigned int active:1;
39 unsigned int initialized:1;
40 unsigned int ts_clock_inv:1;
41 unsigned int ts_clock_gapped:1;
42 unsigned int spectral_inversion:1;
45 /* firmware command struct */
46 #define SI2168_ARGLEN 30
48 u8 args[SI2168_ARGLEN];