Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 148abd3b authored by Olli Salonen's avatar Olli Salonen Committed by Mauro Carvalho Chehab
Browse files

media: tda18250: support for new silicon tuner



NXP TDA18250 silicon tuner driver.

Version 4 includes some checkpatch fixes.

Signed-off-by: default avatarOlli Salonen <olli.salonen@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 82ba8132
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -13250,6 +13250,15 @@ T: git git://linuxtv.org/anttip/media_tree.git
S:	Maintained
F:	drivers/media/tuners/tda18218*

TDA18250 MEDIA DRIVER
M:	Olli Salonen <olli.salonen@iki.fi>
L:	linux-media@vger.kernel.org
W:	https://linuxtv.org
Q:	http://patchwork.linuxtv.org/project/linux-media/list/
T:	git git://linuxtv.org/media_tree.git
S:	Maintained
F:	drivers/media/tuners/tda18250*

TDA18271 MEDIA DRIVER
M:	Michael Krufky <mkrufky@linuxtv.org>
L:	linux-media@vger.kernel.org
+7 −0
Original line number Diff line number Diff line
@@ -26,6 +26,13 @@ config MEDIA_TUNER_SIMPLE
	help
	  Say Y here to include support for various simple tuners.

config MEDIA_TUNER_TDA18250
	tristate "NXP TDA18250 silicon tuner"
	depends on MEDIA_SUPPORT && I2C
	default m if !MEDIA_SUBDRV_AUTOSELECT
	help
	  Say Y here to include support for TDA18250 tuner.

config MEDIA_TUNER_TDA8290
	tristate "TDA 8290/8295 + 8275(a)/18271 tuner combo"
	depends on MEDIA_SUPPORT && I2C
+1 −0
Original line number Diff line number Diff line
@@ -42,6 +42,7 @@ obj-$(CONFIG_MEDIA_TUNER_R820T) += r820t.o
obj-$(CONFIG_MEDIA_TUNER_MXL301RF) += mxl301rf.o
obj-$(CONFIG_MEDIA_TUNER_QM1D1C0042) += qm1d1c0042.o
obj-$(CONFIG_MEDIA_TUNER_M88RS6000T) += m88rs6000t.o
obj-$(CONFIG_MEDIA_TUNER_TDA18250) += tda18250.o

ccflags-y += -I$(srctree)/drivers/media/dvb-core
ccflags-y += -I$(srctree)/drivers/media/dvb-frontends
+902 −0

File added.

Preview size limit exceeded, changes collapsed.

+51 −0
Original line number Diff line number Diff line
/*
 * NXP TDA18250BHN silicon tuner driver
 *
 * Copyright (C) 2017 Olli Salonen <olli.salonen@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.
 */

#ifndef TDA18250_H
#define TDA18250_H

#include <linux/kconfig.h>
#include <media/media-device.h>
#include "dvb_frontend.h"

#define TDA18250_XTAL_FREQ_16MHZ 0
#define TDA18250_XTAL_FREQ_24MHZ 1
#define TDA18250_XTAL_FREQ_25MHZ 2
#define TDA18250_XTAL_FREQ_27MHZ 3
#define TDA18250_XTAL_FREQ_30MHZ 4
#define TDA18250_XTAL_FREQ_MAX 5

struct tda18250_config {
	u16 if_dvbt_6;
	u16 if_dvbt_7;
	u16 if_dvbt_8;
	u16 if_dvbc_6;
	u16 if_dvbc_8;
	u16 if_atsc;
	u8 xtal_freq;
	bool loopthrough;

	/*
	 * frontend
	 */
	struct dvb_frontend *fe;

#if defined(CONFIG_MEDIA_CONTROLLER)
	struct media_device *mdev;
#endif
};

#endif
Loading