18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* Texas Instruments Triple 8-/10-BIT 165-/110-MSPS Video and Graphics 38c2ecf20Sopenharmony_ci * Digitizer with Horizontal PLL registers 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (C) 2009 Texas Instruments Inc 68c2ecf20Sopenharmony_ci * Author: Santiago Nunez-Corrales <santiago.nunez@ridgerun.com> 78c2ecf20Sopenharmony_ci * 88c2ecf20Sopenharmony_ci * This code is partially based upon the TVP5150 driver 98c2ecf20Sopenharmony_ci * written by Mauro Carvalho Chehab <mchehab@kernel.org>, 108c2ecf20Sopenharmony_ci * the TVP514x driver written by Vaibhav Hiremath <hvaibhav@ti.com> 118c2ecf20Sopenharmony_ci * and the TVP7002 driver in the TI LSP 2.10.00.14 128c2ecf20Sopenharmony_ci */ 138c2ecf20Sopenharmony_ci#ifndef _TVP7002_H_ 148c2ecf20Sopenharmony_ci#define _TVP7002_H_ 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci#define TVP7002_MODULE_NAME "tvp7002" 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci/** 198c2ecf20Sopenharmony_ci * struct tvp7002_config - Platform dependent data 208c2ecf20Sopenharmony_ci *@clk_polarity: Clock polarity 218c2ecf20Sopenharmony_ci * 0 - Data clocked out on rising edge of DATACLK signal 228c2ecf20Sopenharmony_ci * 1 - Data clocked out on falling edge of DATACLK signal 238c2ecf20Sopenharmony_ci *@hs_polarity: HSYNC polarity 248c2ecf20Sopenharmony_ci * 0 - Active low HSYNC output, 1 - Active high HSYNC output 258c2ecf20Sopenharmony_ci *@vs_polarity: VSYNC Polarity 268c2ecf20Sopenharmony_ci * 0 - Active low VSYNC output, 1 - Active high VSYNC output 278c2ecf20Sopenharmony_ci *@fid_polarity: Active-high Field ID polarity. 288c2ecf20Sopenharmony_ci * 0 - The field ID output is set to logic 1 for an odd field 298c2ecf20Sopenharmony_ci * (field 1) and set to logic 0 for an even field (field 0). 308c2ecf20Sopenharmony_ci * 1 - Operation with polarity inverted. 318c2ecf20Sopenharmony_ci *@sog_polarity: Active high Sync on Green output polarity. 328c2ecf20Sopenharmony_ci * 0 - Normal operation, 1 - Operation with polarity inverted 338c2ecf20Sopenharmony_ci */ 348c2ecf20Sopenharmony_cistruct tvp7002_config { 358c2ecf20Sopenharmony_ci bool clk_polarity; 368c2ecf20Sopenharmony_ci bool hs_polarity; 378c2ecf20Sopenharmony_ci bool vs_polarity; 388c2ecf20Sopenharmony_ci bool fid_polarity; 398c2ecf20Sopenharmony_ci bool sog_polarity; 408c2ecf20Sopenharmony_ci}; 418c2ecf20Sopenharmony_ci#endif 42