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-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * Driver for Sharp IX2505V (marked B0017) DVB-S silicon tuner
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * Copyright (C) 2010 Malcolm Priestley
^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 DVB_IX2505V_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #define DVB_IX2505V_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #include <linux/i2c.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #include <media/dvb_frontend.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)  * struct ix2505v_config - ix2505 attachment configuration
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)  * @tuner_address: tuner address
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)  * @tuner_gain: Baseband AMP gain control 0/1=0dB(default) 2=-2bB 3=-4dB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)  * @tuner_chargepump: Charge pump output +/- 0=120 1=260 2=555 3=1200(default)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)  * @min_delay_ms: delay after tune
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)  * @tuner_write_only: disables reads
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) struct ix2505v_config {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	u8 tuner_address;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	u8 tuner_gain;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 	u8 tuner_chargepump;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 	int min_delay_ms;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	u8 tuner_write_only;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) #if IS_REACHABLE(CONFIG_DVB_IX2505V)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34)  * Attach a ix2505v tuner to the supplied frontend structure.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36)  * @fe: Frontend to attach to.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37)  * @config: pointer to &struct ix2505v_config
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38)  * @i2c: pointer to &struct i2c_adapter.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40)  * return: FE pointer on success, NULL on failure.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) extern struct dvb_frontend *ix2505v_attach(struct dvb_frontend *fe,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) 	const struct ix2505v_config *config, struct i2c_adapter *i2c);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) static inline struct dvb_frontend *ix2505v_attach(struct dvb_frontend *fe,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) 	const struct ix2505v_config *config, struct i2c_adapter *i2c)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) 	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) 	return NULL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) #endif /* DVB_IX2505V_H */