Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0-or-later */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  *  Driver for Zarlink DVB-T ZL10353 demodulator
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  *  Copyright (C) 2006, 2007 Christopher Pascoe <c.pascoe@itee.uq.edu.au>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #ifndef ZL10353_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #define ZL10353_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #include <linux/dvb/frontend.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) struct zl10353_config
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 	/* demodulator's I2C address */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	u8 demod_address;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	/* frequencies in units of 0.1kHz */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	int adc_clock;	/* default: 450560 (45.056  MHz) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	int if2;	/* default: 361667 (36.1667 MHz) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 	/* set if no pll is connected to the secondary i2c bus */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 	int no_tuner;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	/* set if parallel ts output is required */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 	int parallel_ts;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	/* set if i2c_gate_ctrl disable is required */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 	u8 disable_i2c_gate_ctrl:1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 	/* clock control registers (0x51-0x54) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 	u8 clock_ctl_1;  /* default: 0x46 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 	u8 pll_0;        /* default: 0x15 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) #if IS_REACHABLE(CONFIG_DVB_ZL10353)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) extern struct dvb_frontend* zl10353_attach(const struct zl10353_config *config,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 					   struct i2c_adapter *i2c);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) static inline struct dvb_frontend* zl10353_attach(const struct zl10353_config *config,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) 					   struct i2c_adapter *i2c)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) 	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 	return NULL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) #endif /* CONFIG_DVB_ZL10353 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) #endif /* ZL10353_H */