Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * Realtek RTL2832U SDR driver
0004  *
0005  * Copyright (C) 2013 Antti Palosaari <crope@iki.fi>
0006  *
0007  * GNU Radio plugin "gr-kernel" for device usage will be on:
0008  * http://git.linuxtv.org/anttip/gr-kernel.git
0009  */
0010 
0011 #ifndef RTL2832_SDR_H
0012 #define RTL2832_SDR_H
0013 
0014 #include <linux/i2c.h>
0015 #include <media/v4l2-subdev.h>
0016 #include <media/dvb_frontend.h>
0017 
0018 /**
0019  * struct rtl2832_sdr_platform_data - Platform data for the rtl2832_sdr driver
0020  * @clk: Clock frequency (4000000, 16000000, 25000000, 28800000).
0021  * @tuner: Used tuner model.
0022  * @regmap: pointer to &struct regmap.
0023  * @dvb_frontend: rtl2832 DVB frontend.
0024  * @v4l2_subdev: Tuner v4l2 controls.
0025  * @dvb_usb_device: DVB USB interface for USB streaming.
0026  */
0027 struct rtl2832_sdr_platform_data {
0028     u32 clk;
0029     /*
0030      * XXX: This list must be kept sync with dvb_usb_rtl28xxu USB IF driver.
0031      */
0032 #define RTL2832_SDR_TUNER_FC2580    0x21
0033 #define RTL2832_SDR_TUNER_TUA9001   0x24
0034 #define RTL2832_SDR_TUNER_FC0012    0x26
0035 #define RTL2832_SDR_TUNER_E4000     0x27
0036 #define RTL2832_SDR_TUNER_FC0013    0x29
0037 #define RTL2832_SDR_TUNER_R820T     0x2a
0038 #define RTL2832_SDR_TUNER_R828D     0x2b
0039     u8 tuner;
0040 
0041     struct regmap *regmap;
0042     struct dvb_frontend *dvb_frontend;
0043     struct v4l2_subdev *v4l2_subdev;
0044     struct dvb_usb_device *dvb_usb_device;
0045 };
0046 
0047 #endif /* RTL2832_SDR_H */