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)  * Conexant CX24120/CX24118 - DVB-S/S2 demod/tuner driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * Copyright (C) 2008 Patrick Boettcher <pb@linuxtv.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  * Copyright (C) 2009 Sergey Tyurin <forum.free-x.de>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  * Updated 2012 by Jannis Achstetter <jannis_achstetter@web.de>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)  * Copyright (C) 2015 Jemma Denson <jdenson@gmail.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #ifndef CX24120_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #define CX24120_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #include <linux/dvb/frontend.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #include <linux/firmware.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) struct cx24120_initial_mpeg_config {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	u8 x1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	u8 x2;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	u8 x3;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) struct cx24120_config {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	u8 i2c_addr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	u32 xtal_khz;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 	struct cx24120_initial_mpeg_config initial_mpeg_config;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	int (*request_firmware)(struct dvb_frontend *fe,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 				const struct firmware **fw, char *name);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 	/* max bytes I2C provider can write at once */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 	u16 i2c_wr_max;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) #if IS_REACHABLE(CONFIG_DVB_CX24120)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) struct dvb_frontend *cx24120_attach(const struct cx24120_config *config,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 				    struct i2c_adapter *i2c);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) static inline
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) struct dvb_frontend *cx24120_attach(const struct cx24120_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) 	pr_warn("%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
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) #endif /* CX24120_H */