]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blame - drivers/media/dvb-frontends/dvb-pll.h
UBUNTU: Ubuntu-5.15.0-39.42
[mirror_ubuntu-jammy-kernel.git] / drivers / media / dvb-frontends / dvb-pll.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
1da177e4 2/*
776338e1 3 * descriptions + helper functions for simple dvb plls.
1da177e4
LT
4 */
5
5e9e7226
JS
6#ifndef __DVB_PLL_H__
7#define __DVB_PLL_H__
8
272bc4db 9#include <linux/i2c.h>
fada1935 10#include <media/dvb_frontend.h>
272bc4db 11
47a9991e
MK
12#define DVB_PLL_UNDEFINED 0
13#define DVB_PLL_THOMSON_DTT7579 1
14#define DVB_PLL_THOMSON_DTT759X 2
b6fd549e
MK
15#define DVB_PLL_LG_Z201 3
16#define DVB_PLL_UNKNOWN_1 4
17#define DVB_PLL_TUA6010XS 5
18#define DVB_PLL_ENV57H1XD5 6
19#define DVB_PLL_TUA6034 7
20#define DVB_PLL_TDA665X 8
21#define DVB_PLL_TDED4 9
22#define DVB_PLL_TDHU2 10
23#define DVB_PLL_SAMSUNG_TBMV 11
24#define DVB_PLL_PHILIPS_SD1878_TDA8261 12
25#define DVB_PLL_OPERA1 13
139dfeb2 26#define DVB_PLL_SAMSUNG_DTOS403IH102A 14
a104ed07 27#define DVB_PLL_SAMSUNG_TDTC9251DH0 15
f52c4853 28#define DVB_PLL_SAMSUNG_TBDU18132 16
9d5d75a9 29#define DVB_PLL_SAMSUNG_TBMU24112 17
d799ce57 30#define DVB_PLL_TDEE4 18
5fb67074 31#define DVB_PLL_THOMSON_DTT7520X 19
17459727 32#define DVB_PLL_TUA6034_FRIIO 20
648db06d 33#define DVB_PLL_TDA665X_EARTH_PT1 21
780dfef3 34
eaa51fee
AT
35struct dvb_pll_config {
36 struct dvb_frontend *fe;
37};
38
be9b53c8 39#if IS_REACHABLE(CONFIG_DVB_PLL)
272bc4db 40/**
b0649455 41 * dvb_pll_attach - Attach a dvb-pll to the supplied frontend structure.
272bc4db 42 *
b95b0c98
MCC
43 * @fe: Frontend to attach to.
44 * @pll_addr: i2c address of the PLL (if used).
45 * @i2c: i2c adapter to use (set to NULL if not used).
46 * @pll_desc_id: dvb_pll_desc to use.
47 *
48 * return: Frontend pointer on success, NULL on failure
272bc4db 49 */
47ae9ae8
MK
50extern struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe,
51 int pll_addr,
52 struct i2c_adapter *i2c,
47a9991e 53 unsigned int pll_desc_id);
9ab1ba38
TP
54#else
55static inline struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe,
56 int pll_addr,
57 struct i2c_adapter *i2c,
47a9991e 58 unsigned int pll_desc_id)
9ab1ba38 59{
271ddbf7 60 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
9ab1ba38
TP
61 return NULL;
62}
63#endif
272bc4db 64
5e9e7226 65#endif