1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16#ifndef _TVP514X_H
17#define _TVP514X_H
18
19
20
21
22#define TVP514X_MODULE_NAME "tvp514x"
23
24#define TVP514X_XCLK_BT656 (27000000)
25
26
27#define NTSC_NUM_ACTIVE_PIXELS (720)
28#define NTSC_NUM_ACTIVE_LINES (480)
29#define PAL_NUM_ACTIVE_PIXELS (720)
30#define PAL_NUM_ACTIVE_LINES (576)
31
32
33
34
35
36enum tvp514x_input {
37
38
39
40 INPUT_CVBS_VI1A = 0x0,
41 INPUT_CVBS_VI1B,
42 INPUT_CVBS_VI1C,
43 INPUT_CVBS_VI2A = 0x04,
44 INPUT_CVBS_VI2B,
45 INPUT_CVBS_VI2C,
46 INPUT_CVBS_VI3A = 0x08,
47 INPUT_CVBS_VI3B,
48 INPUT_CVBS_VI3C,
49 INPUT_CVBS_VI4A = 0x0C,
50
51
52
53 INPUT_SVIDEO_VI2A_VI1A = 0x44,
54 INPUT_SVIDEO_VI2B_VI1B,
55 INPUT_SVIDEO_VI2C_VI1C,
56 INPUT_SVIDEO_VI2A_VI3A = 0x54,
57 INPUT_SVIDEO_VI2B_VI3B,
58 INPUT_SVIDEO_VI2C_VI3C,
59 INPUT_SVIDEO_VI4A_VI1A = 0x4C,
60 INPUT_SVIDEO_VI4A_VI1B,
61 INPUT_SVIDEO_VI4A_VI1C,
62 INPUT_SVIDEO_VI4A_VI3A = 0x5C,
63 INPUT_SVIDEO_VI4A_VI3B,
64 INPUT_SVIDEO_VI4A_VI3C,
65
66
67
68
69 INPUT_INVALID
70};
71
72
73
74
75
76
77enum tvp514x_output {
78 OUTPUT_10BIT_422_EMBEDDED_SYNC = 0,
79 OUTPUT_20BIT_422_SEPERATE_SYNC,
80 OUTPUT_10BIT_422_SEPERATE_SYNC = 3,
81 OUTPUT_INVALID
82};
83
84
85
86
87
88
89
90struct tvp514x_platform_data {
91
92 bool clk_polarity;
93 bool hs_polarity;
94 bool vs_polarity;
95};
96
97
98#endif
99