~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/scripts/dtc/include-prefixes/dt-bindings/media/tda1997x.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 /*
  3  * Copyright (C) 2017 Gateworks Corporation
  4  */
  5 #ifndef _DT_BINDINGS_MEDIA_TDA1997X_H
  6 #define _DT_BINDINGS_MEDIA_TDA1997X_H
  7 
  8 /* TDA19973 36bit Video Port control registers */
  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 /* TDA19971 24bit Video Port control registers */
 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 /* Pin groups */
 28 #define TDA1997X_VP_OUT_EN        0x80  /* enable output group */
 29 #define TDA1997X_VP_HIZ           0x40  /* hi-Z output group when not used */
 30 #define TDA1997X_VP_SWP           0x10  /* pin-swap output group */
 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 /* pinswapped groups */
 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 /* Audio bus DAI format */
 52 #define TDA1997X_I2S16                  1 /* I2S 16bit */
 53 #define TDA1997X_I2S32                  2 /* I2S 32bit */
 54 #define TDA1997X_SPDIF                  3 /* SPDIF */
 55 #define TDA1997X_OBA                    4 /* One Bit Audio */
 56 #define TDA1997X_DST                    5 /* Direct Stream Transfer */
 57 #define TDA1997X_I2S16_HBR              6 /* HBR straight in I2S 16bit mode */
 58 #define TDA1997X_I2S16_HBR_DEMUX        7 /* HBR demux in I2S 16bit mode */
 59 #define TDA1997X_I2S32_HBR_DEMUX        8 /* HBR demux in I2S 32bit mode */
 60 #define TDA1997X_SPDIF_HBR_DEMUX        9 /* HBR demux in SPDIF mode */
 61 
 62 /* Audio bus channel layout */
 63 #define TDA1997X_LAYOUT0        0       /* 2-channel */
 64 #define TDA1997X_LAYOUT1        1       /* 8-channel */
 65 
 66 /* Audio bus clock */
 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 /* _DT_BINDINGS_MEDIA_TDA1997X_H */
 75 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php