/* SPDX-License-Identifier: GPL-2.0-only */1/*2* drivers/media/video/tvp514x.h3*4* Copyright (C) 2008 Texas Instruments Inc5* Author: Vaibhav Hiremath <[email protected]>6*7* Contributors:8* Sivaraj R <[email protected]>9* Brijesh R Jadav <[email protected]>10* Hardik Shah <[email protected]>11* Manjunath Hadli <[email protected]>12* Karicheri Muralidharan <[email protected]>13*/1415#ifndef _TVP514X_H16#define _TVP514X_H1718/*19* Other macros20*/21#define TVP514X_MODULE_NAME "tvp514x"2223#define TVP514X_XCLK_BT656 (27000000)2425/* Number of pixels and number of lines per frame for different standards */26#define NTSC_NUM_ACTIVE_PIXELS (720)27#define NTSC_NUM_ACTIVE_LINES (480)28#define PAL_NUM_ACTIVE_PIXELS (720)29#define PAL_NUM_ACTIVE_LINES (576)3031/* enum for different decoder input pin configuration */32enum tvp514x_input {33/*34* CVBS input selection35*/36INPUT_CVBS_VI1A = 0x0,37INPUT_CVBS_VI1B,38INPUT_CVBS_VI1C,39INPUT_CVBS_VI2A = 0x04,40INPUT_CVBS_VI2B,41INPUT_CVBS_VI2C,42INPUT_CVBS_VI3A = 0x08,43INPUT_CVBS_VI3B,44INPUT_CVBS_VI3C,45INPUT_CVBS_VI4A = 0x0C,46/*47* S-Video input selection48*/49INPUT_SVIDEO_VI2A_VI1A = 0x44,50INPUT_SVIDEO_VI2B_VI1B,51INPUT_SVIDEO_VI2C_VI1C,52INPUT_SVIDEO_VI2A_VI3A = 0x54,53INPUT_SVIDEO_VI2B_VI3B,54INPUT_SVIDEO_VI2C_VI3C,55INPUT_SVIDEO_VI4A_VI1A = 0x4C,56INPUT_SVIDEO_VI4A_VI1B,57INPUT_SVIDEO_VI4A_VI1C,58INPUT_SVIDEO_VI4A_VI3A = 0x5C,59INPUT_SVIDEO_VI4A_VI3B,60INPUT_SVIDEO_VI4A_VI3C,6162/* Need to add entries for63* RGB, YPbPr and SCART.64*/65INPUT_INVALID66};6768/* enum for output format supported. */69enum tvp514x_output {70OUTPUT_10BIT_422_EMBEDDED_SYNC = 0,71OUTPUT_20BIT_422_SEPERATE_SYNC,72OUTPUT_10BIT_422_SEPERATE_SYNC = 3,73OUTPUT_INVALID74};7576/**77* struct tvp514x_platform_data - Platform data values and access functions.78* @clk_polarity: Clock polarity of the current interface.79* @hs_polarity: HSYNC Polarity configuration for current interface.80* @vs_polarity: VSYNC Polarity configuration for current interface.81*/82struct tvp514x_platform_data {83/* Interface control params */84bool clk_polarity;85bool hs_polarity;86bool vs_polarity;87};888990#endif /* ifndef _TVP514X_H */919293