1
2
3
4
5 #ifndef _DT_BINDINGS_MEDIA_TDA1997X_H
6 #define _DT_BINDINGS_MEDIA_TDA1997X_H
7
8
9 #define TDA1997X_VP36_35_32 0
10 #define TDA1997X_VP36_31_28 1
11 #define TDA1997X_VP36_27_24 2
12 #define TDA1997X_VP36_23_20 3
13 #define TDA1997X_VP36_19_16 4
14 #define TDA1997X_VP36_15_12 5
15 #define TDA1997X_VP36_11_08 6
16 #define TDA1997X_VP36_07_04 7
17 #define TDA1997X_VP36_03_00 8
18
19
20 #define TDA1997X_VP24_V23_20 0
21 #define TDA1997X_VP24_V19_16 1
22 #define TDA1997X_VP24_V15_12 3
23 #define TDA1997X_VP24_V11_08 4
24 #define TDA1997X_VP24_V07_04 6
25 #define TDA1997X_VP24_V03_00 7
26
27
28 #define TDA1997X_VP_OUT_EN 0x80
29 #define TDA1997X_VP_HIZ 0x40
30 #define TDA1997X_VP_SWP 0x10
31 #define TDA1997X_R_CR_CBCR_3_0 (0 | TDA1997X_VP_OUT_EN | TDA1997X_VP_HIZ)
32 #define TDA1997X_R_CR_CBCR_7_4 (1 | TDA1997X_VP_OUT_EN | TDA1997X_VP_HIZ)
33 #define TDA1997X_R_CR_CBCR_11_8 (2 | TDA1997X_VP_OUT_EN | TDA1997X_VP_HIZ)
34 #define TDA1997X_B_CB_3_0 (3 | TDA1997X_VP_OUT_EN | TDA1997X_VP_HIZ)
35 #define TDA1997X_B_CB_7_4 (4 | TDA1997X_VP_OUT_EN | TDA1997X_VP_HIZ)
36 #define TDA1997X_B_CB_11_8 (5 | TDA1997X_VP_OUT_EN | TDA1997X_VP_HIZ)
37 #define TDA1997X_G_Y_3_0 (6 | TDA1997X_VP_OUT_EN | TDA1997X_VP_HIZ)
38 #define TDA1997X_G_Y_7_4 (7 | TDA1997X_VP_OUT_EN | TDA1997X_VP_HIZ)
39 #define TDA1997X_G_Y_11_8 (8 | TDA1997X_VP_OUT_EN | TDA1997X_VP_HIZ)
40
41 #define TDA1997X_R_CR_CBCR_3_0_S (TDA1997X_R_CR_CBCR_3_0 | TDA1997X_VP_SWAP)
42 #define TDA1997X_R_CR_CBCR_7_4_S (TDA1997X_R_CR_CBCR_7_4 | TDA1997X_VP_SWAP)
43 #define TDA1997X_R_CR_CBCR_11_8_S (TDA1997X_R_CR_CBCR_11_8 | TDA1997X_VP_SWAP)
44 #define TDA1997X_B_CB_3_0_S (TDA1997X_B_CB_3_0 | TDA1997X_VP_SWAP)
45 #define TDA1997X_B_CB_7_4_S (TDA1997X_B_CB_7_4 | TDA1997X_VP_SWAP)
46 #define TDA1997X_B_CB_11_8_S (TDA1997X_B_CB_11_8 | TDA1997X_VP_SWAP)
47 #define TDA1997X_G_Y_3_0_S (TDA1997X_G_Y_3_0 | TDA1997X_VP_SWAP)
48 #define TDA1997X_G_Y_7_4_S (TDA1997X_G_Y_7_4 | TDA1997X_VP_SWAP)
49 #define TDA1997X_G_Y_11_8_S (TDA1997X_G_Y_11_8 | TDA1997X_VP_SWAP)
50
51
52 #define TDA1997X_I2S16 1
53 #define TDA1997X_I2S32 2
54 #define TDA1997X_SPDIF 3
55 #define TDA1997X_OBA 4
56 #define TDA1997X_DST 5
57 #define TDA1997X_I2S16_HBR 6
58 #define TDA1997X_I2S16_HBR_DEMUX 7
59 #define TDA1997X_I2S32_HBR_DEMUX 8
60 #define TDA1997X_SPDIF_HBR_DEMUX 9
61
62
63 #define TDA1997X_LAYOUT0 0
64 #define TDA1997X_LAYOUT1 1
65
66
67 #define TDA1997X_ACLK_16FS 0
68 #define TDA1997X_ACLK_32FS 1
69 #define TDA1997X_ACLK_64FS 2
70 #define TDA1997X_ACLK_128FS 3
71 #define TDA1997X_ACLK_256FS 4
72 #define TDA1997X_ACLK_512FS 5
73
74 #endif