1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Silicon Labs Si2146/2147/2148/2157/2158 silicon tuner driver
5 * Copyright (C) 2014 Antti Palosaari <crope@iki.fi>
11 #include <linux/firmware.h>
12 #include <media/v4l2-mc.h>
24 struct mutex i2c_mutex
;
25 struct dvb_frontend
*fe
;
26 unsigned int active
:1;
27 unsigned int inversion
:1;
28 unsigned int dont_load_firmware
:1;
32 struct delayed_work stat_work
;
34 #if defined(CONFIG_MEDIA_CONTROLLER)
35 struct media_device
*mdev
;
36 struct media_entity ent
;
37 struct media_pad pad
[SI2157_NUM_PADS
];
42 #define SI2157_CHIPTYPE_SI2157 0
43 #define SI2157_CHIPTYPE_SI2146 1
44 #define SI2157_CHIPTYPE_SI2141 2
45 #define SI2157_CHIPTYPE_SI2177 3
47 /* firmware command struct */
48 #define SI2157_ARGLEN 30
50 u8 args
[SI2157_ARGLEN
];
55 #define SI2158_A20_FIRMWARE "dvb-tuner-si2158-a20-01.fw"
56 #define SI2141_A10_FIRMWARE "dvb-tuner-si2141-a10-01.fw"
57 #define SI2157_A30_FIRMWARE "dvb-tuner-si2157-a30-01.fw"