2005-04-17 05:20:36 +07:00
|
|
|
/*
|
2005-06-24 12:02:35 +07:00
|
|
|
* descriptions + helper functions for simple dvb plls.
|
2005-04-17 05:20:36 +07:00
|
|
|
*/
|
|
|
|
|
2005-05-17 11:54:37 +07:00
|
|
|
#ifndef __DVB_PLL_H__
|
|
|
|
#define __DVB_PLL_H__
|
|
|
|
|
2006-04-19 03:47:12 +07:00
|
|
|
#include <linux/i2c.h>
|
|
|
|
#include "dvb_frontend.h"
|
|
|
|
|
2007-06-13 02:10:51 +07:00
|
|
|
#define DVB_PLL_UNDEFINED 0
|
|
|
|
#define DVB_PLL_THOMSON_DTT7579 1
|
|
|
|
#define DVB_PLL_THOMSON_DTT759X 2
|
2008-04-23 00:46:20 +07:00
|
|
|
#define DVB_PLL_LG_Z201 3
|
|
|
|
#define DVB_PLL_UNKNOWN_1 4
|
|
|
|
#define DVB_PLL_TUA6010XS 5
|
|
|
|
#define DVB_PLL_ENV57H1XD5 6
|
|
|
|
#define DVB_PLL_TUA6034 7
|
|
|
|
#define DVB_PLL_TDA665X 8
|
|
|
|
#define DVB_PLL_TDED4 9
|
|
|
|
#define DVB_PLL_TDHU2 10
|
|
|
|
#define DVB_PLL_SAMSUNG_TBMV 11
|
|
|
|
#define DVB_PLL_PHILIPS_SD1878_TDA8261 12
|
|
|
|
#define DVB_PLL_OPERA1 13
|
2008-05-18 09:02:00 +07:00
|
|
|
#define DVB_PLL_SAMSUNG_DTOS403IH102A 14
|
2009-06-12 05:21:34 +07:00
|
|
|
#define DVB_PLL_SAMSUNG_TDTC9251DH0 15
|
2009-06-12 05:21:34 +07:00
|
|
|
#define DVB_PLL_SAMSUNG_TBDU18132 16
|
2009-06-12 05:21:34 +07:00
|
|
|
#define DVB_PLL_SAMSUNG_TBMU24112 17
|
2009-06-12 05:24:00 +07:00
|
|
|
#define DVB_PLL_TDEE4 18
|
2012-08-01 01:31:20 +07:00
|
|
|
#define DVB_PLL_THOMSON_DTT7520X 19
|
2006-02-28 18:34:59 +07:00
|
|
|
|
2006-04-19 03:47:12 +07:00
|
|
|
/**
|
|
|
|
* Attach a dvb-pll to the supplied frontend structure.
|
|
|
|
*
|
|
|
|
* @param fe Frontend to attach to.
|
|
|
|
* @param pll_addr i2c address of the PLL (if used).
|
|
|
|
* @param i2c i2c adapter to use (set to NULL if not used).
|
2007-06-13 02:10:51 +07:00
|
|
|
* @param pll_desc_id dvb_pll_desc to use.
|
2006-08-08 19:10:08 +07:00
|
|
|
* @return Frontend pointer on success, NULL on failure
|
2006-04-19 03:47:12 +07:00
|
|
|
*/
|
2013-01-20 11:32:56 +07:00
|
|
|
#if IS_ENABLED(CONFIG_DVB_PLL)
|
2006-11-21 02:38:42 +07:00
|
|
|
extern struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe,
|
|
|
|
int pll_addr,
|
|
|
|
struct i2c_adapter *i2c,
|
2007-06-13 02:10:51 +07:00
|
|
|
unsigned int pll_desc_id);
|
2007-04-27 22:31:28 +07:00
|
|
|
#else
|
|
|
|
static inline struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe,
|
|
|
|
int pll_addr,
|
|
|
|
struct i2c_adapter *i2c,
|
2007-06-13 02:10:51 +07:00
|
|
|
unsigned int pll_desc_id)
|
2007-04-27 22:31:28 +07:00
|
|
|
{
|
2008-04-09 09:20:00 +07:00
|
|
|
printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
|
2007-04-27 22:31:28 +07:00
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
#endif
|
2006-04-19 03:47:12 +07:00
|
|
|
|
2005-05-17 11:54:37 +07:00
|
|
|
#endif
|