[media] ddbridge: board control setup, ts quirk flags
This is a backport of the board control setup from the vendor provided dddvb driver package, which does additional device initialisation based on the board_control device info values. Also backports the TS quirk flags which is used to control setup and usage of the tuner modules soldered on the bridge cards (e.g. CineCTv7, CineS2 V7, MaxA8 and the likes). Functionality originates from ddbridge vendor driver. Permission for reuse and kernel inclusion was formally granted by Ralph Metzler <rjkm@metzlerbros.de>. Cc: Ralph Metzler <rjkm@metzlerbros.de> Signed-off-by: Daniel Scheller <d.scheller@gmx.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
df61f828d4
commit
1b58a5a4b5
@@ -43,6 +43,10 @@
|
||||
#define DDB_MAX_PORT 4
|
||||
#define DDB_MAX_INPUT 8
|
||||
#define DDB_MAX_OUTPUT 4
|
||||
#define DDB_MAX_LINK 4
|
||||
#define DDB_LINK_SHIFT 28
|
||||
|
||||
#define DDB_LINK_TAG(_x) (_x << DDB_LINK_SHIFT)
|
||||
|
||||
struct ddb_info {
|
||||
int type;
|
||||
@@ -51,6 +55,12 @@ struct ddb_info {
|
||||
char *name;
|
||||
int port_num;
|
||||
u32 port_type[DDB_MAX_PORT];
|
||||
u32 board_control;
|
||||
u32 board_control_2;
|
||||
u8 ts_quirks;
|
||||
#define TS_QUIRK_SERIAL 1
|
||||
#define TS_QUIRK_REVERSED 2
|
||||
#define TS_QUIRK_ALT_OSC 8
|
||||
};
|
||||
|
||||
/* DMA_SIZE MUST be divisible by 188 and 128 !!! */
|
||||
|
Reference in New Issue
Block a user