mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 12:43:55 +08:00
bc28d36bf1
The T230C v2 hardware needs a mode of the si2168 chip to be set for which the si2168 driver previously had no support. This patch uses a specific measure to configure this on the T230C v2 hardware only - see the flag passed via the ts_mode attribute and its dependency on USB_PID_MYGICA_T230C2. Signed-off-by: Jan Pieter van Woerkom <jp@jpvw.nl> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
47 lines
760 B
C
47 lines
760 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Silicon Labs Si2168 DVB-T/T2/C demodulator driver
|
|
*
|
|
* Copyright (C) 2014 Antti Palosaari <crope@iki.fi>
|
|
*/
|
|
|
|
#ifndef SI2168_H
|
|
#define SI2168_H
|
|
|
|
#include <linux/dvb/frontend.h>
|
|
/*
|
|
* I2C address
|
|
* 0x64
|
|
*/
|
|
struct si2168_config {
|
|
/*
|
|
* frontend
|
|
* returned by driver
|
|
*/
|
|
struct dvb_frontend **fe;
|
|
|
|
/*
|
|
* tuner I2C adapter
|
|
* returned by driver
|
|
*/
|
|
struct i2c_adapter **i2c_adapter;
|
|
|
|
/* TS mode */
|
|
#define SI2168_TS_PARALLEL 0x06
|
|
#define SI2168_TS_SERIAL 0x03
|
|
#define SI2168_TS_TRISTATE 0x00
|
|
#define SI2168_TS_CLK_MANUAL 0x20
|
|
u8 ts_mode;
|
|
|
|
/* TS clock inverted */
|
|
bool ts_clock_inv;
|
|
|
|
/* TS clock gapped */
|
|
bool ts_clock_gapped;
|
|
|
|
/* Inverted spectrum */
|
|
bool spectral_inversion;
|
|
};
|
|
|
|
#endif
|