1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 NXP TDA10048HN DVB OFDM demodulator driver
5 Copyright (C) 2009 Steven Toth <stoth@kernellabs.com>
13 #include <linux/dvb/frontend.h>
14 #include <linux/firmware.h>
16 struct tda10048_config
{
18 /* the demodulator's i2c address */
21 /* serial/parallel output */
22 #define TDA10048_PARALLEL_OUTPUT 0
23 #define TDA10048_SERIAL_OUTPUT 1
26 #define TDA10048_BULKWRITE_200 200
27 #define TDA10048_BULKWRITE_50 50
30 /* Spectral Inversion */
31 #define TDA10048_INVERSION_OFF 0
32 #define TDA10048_INVERSION_ON 1
35 #define TDA10048_IF_3300 3300
36 #define TDA10048_IF_3500 3500
37 #define TDA10048_IF_3800 3800
38 #define TDA10048_IF_4000 4000
39 #define TDA10048_IF_4300 4300
40 #define TDA10048_IF_4500 4500
41 #define TDA10048_IF_4750 4750
42 #define TDA10048_IF_5000 5000
43 #define TDA10048_IF_36130 36130
48 #define TDA10048_CLK_4000 4000
49 #define TDA10048_CLK_16000 16000
52 /* Disable I2C gate access */
53 u8 disable_gate_access
;
63 #if IS_REACHABLE(CONFIG_DVB_TDA10048)
64 extern struct dvb_frontend
*tda10048_attach(
65 const struct tda10048_config
*config
,
66 struct i2c_adapter
*i2c
);
68 static inline struct dvb_frontend
*tda10048_attach(
69 const struct tda10048_config
*config
,
70 struct i2c_adapter
*i2c
)
72 printk(KERN_WARNING
"%s: driver disabled by Kconfig\n", __func__
);
75 #endif /* CONFIG_DVB_TDA10048 */
77 #endif /* TDA10048_H */