18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * upd6408x - NEC Electronics 3-Dimensional Y/C separation input defines 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * 2006 by Hans Verkuil (hverkuil@xs4all.nl) 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef _UPD64083_H_ 98c2ecf20Sopenharmony_ci#define _UPD64083_H_ 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci/* There are two bits of information that the driver needs in order 128c2ecf20Sopenharmony_ci to select the correct routing: the operating mode and the selection 138c2ecf20Sopenharmony_ci of the Y input (external or internal). 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci The first two operating modes expect a composite signal on the Y input, 168c2ecf20Sopenharmony_ci the second two operating modes use both the Y and C inputs. 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci Normally YCS_MODE is used for tuner and composite inputs, and the 198c2ecf20Sopenharmony_ci YCNR mode is used for S-Video inputs. 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci The external Y-ADC is selected when the composite input comes from a 228c2ecf20Sopenharmony_ci upd64031a ghost reduction device. If this device is not present, or 238c2ecf20Sopenharmony_ci the input is a S-Video signal, then the internal Y-ADC input should 248c2ecf20Sopenharmony_ci be used. */ 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci/* Operating modes: */ 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci/* YCS mode: Y/C separation (burst locked clocking) */ 298c2ecf20Sopenharmony_ci#define UPD64083_YCS_MODE 0 308c2ecf20Sopenharmony_ci/* YCS+ mode: 2D Y/C separation and YCNR (burst locked clocking) */ 318c2ecf20Sopenharmony_ci#define UPD64083_YCS_PLUS_MODE 1 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci/* Note: the following two modes cannot be used in combination with the 348c2ecf20Sopenharmony_ci external Y-ADC. */ 358c2ecf20Sopenharmony_ci/* MNNR mode: frame comb type YNR+C delay (line locked clocking) */ 368c2ecf20Sopenharmony_ci#define UPD64083_MNNR_MODE 2 378c2ecf20Sopenharmony_ci/* YCNR mode: frame recursive YCNR (burst locked clocking) */ 388c2ecf20Sopenharmony_ci#define UPD64083_YCNR_MODE 3 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ci/* Select external Y-ADC: this should be set if this device is used in 418c2ecf20Sopenharmony_ci combination with the upd64031a ghost reduction device. 428c2ecf20Sopenharmony_ci Otherwise leave at 0 (use internal Y-ADC). */ 438c2ecf20Sopenharmony_ci#define UPD64083_EXT_Y_ADC (1 << 2) 448c2ecf20Sopenharmony_ci 458c2ecf20Sopenharmony_ci#endif 46