Commit ee9b8c8c authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab

[media] HDIC HD29L2 DMB-TH demodulator driver

Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 53b667eb
...@@ -404,6 +404,13 @@ config DVB_EC100 ...@@ -404,6 +404,13 @@ config DVB_EC100
help help
Say Y when you want to support this frontend. Say Y when you want to support this frontend.
config DVB_HD29L2
tristate "HDIC HD29L2"
depends on DVB_CORE && I2C
default m if DVB_FE_CUSTOMISE
help
Say Y when you want to support this frontend.
config DVB_STV0367 config DVB_STV0367
tristate "ST STV0367 based" tristate "ST STV0367 based"
depends on DVB_CORE && I2C depends on DVB_CORE && I2C
......
...@@ -84,6 +84,7 @@ obj-$(CONFIG_DVB_STV090x) += stv090x.o ...@@ -84,6 +84,7 @@ obj-$(CONFIG_DVB_STV090x) += stv090x.o
obj-$(CONFIG_DVB_STV6110x) += stv6110x.o obj-$(CONFIG_DVB_STV6110x) += stv6110x.o
obj-$(CONFIG_DVB_ISL6423) += isl6423.o obj-$(CONFIG_DVB_ISL6423) += isl6423.o
obj-$(CONFIG_DVB_EC100) += ec100.o obj-$(CONFIG_DVB_EC100) += ec100.o
obj-$(CONFIG_DVB_HD29L2) += hd29l2.o
obj-$(CONFIG_DVB_DS3000) += ds3000.o obj-$(CONFIG_DVB_DS3000) += ds3000.o
obj-$(CONFIG_DVB_MB86A16) += mb86a16.o obj-$(CONFIG_DVB_MB86A16) += mb86a16.o
obj-$(CONFIG_DVB_MB86A20S) += mb86a20s.o obj-$(CONFIG_DVB_MB86A20S) += mb86a20s.o
......
This diff is collapsed.
/*
* HDIC HD29L2 DMB-TH demodulator driver
*
* Copyright (C) 2011 Metropolia University of Applied Sciences, Electria R&D
*
* Author: Antti Palosaari <crope@iki.fi>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef HD29L2_H
#define HD29L2_H
#include <linux/dvb/frontend.h>
struct hd29l2_config {
/*
* demodulator I2C address
*/
u8 i2c_addr;
/*
* tuner I2C address
* only needed when tuner is behind demod I2C-gate
*/
u8 tuner_i2c_addr;
/*
* TS settings
*/
#define HD29L2_TS_SERIAL 0x00
#define HD29L2_TS_PARALLEL 0x80
#define HD29L2_TS_CLK_NORMAL 0x40
#define HD29L2_TS_CLK_INVERTED 0x00
#define HD29L2_TS_CLK_GATED 0x20
#define HD29L2_TS_CLK_FREE 0x00
u8 ts_mode;
};
#if defined(CONFIG_DVB_HD29L2) || \
(defined(CONFIG_DVB_HD29L2_MODULE) && defined(MODULE))
extern struct dvb_frontend *hd29l2_attach(const struct hd29l2_config *config,
struct i2c_adapter *i2c);
#else
static inline struct dvb_frontend *hd29l2_attach(
const struct hd29l2_config *config, struct i2c_adapter *i2c)
{
printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
return NULL;
}
#endif
#endif /* HD29L2_H */
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment