/*1* Copyright (C) 2010 Francisco Jerez.2* All Rights Reserved.3*4* Permission is hereby granted, free of charge, to any person obtaining5* a copy of this software and associated documentation files (the6* "Software"), to deal in the Software without restriction, including7* without limitation the rights to use, copy, modify, merge, publish,8* distribute, sublicense, and/or sell copies of the Software, and to9* permit persons to whom the Software is furnished to do so, subject to10* the following conditions:11*12* The above copyright notice and this permission notice (including the13* next paragraph) shall be included in all copies or substantial14* portions of the Software.15*16* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,17* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF18* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.19* IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE20* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION21* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION22* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.23*24*/2526#ifndef __DRM_I2C_SIL164_H__27#define __DRM_I2C_SIL164_H__2829/**30* struct sil164_encoder_params31*32* Describes how the sil164 is connected to the GPU. It should be used33* as the @params parameter of its @set_config method.34*35* See "http://www.siliconimage.com/docs/SiI-DS-0021-E-164.pdf".36*/37struct sil164_encoder_params {38enum {39SIL164_INPUT_EDGE_FALLING = 0,40SIL164_INPUT_EDGE_RISING41} input_edge;4243enum {44SIL164_INPUT_WIDTH_12BIT = 0,45SIL164_INPUT_WIDTH_24BIT46} input_width;4748enum {49SIL164_INPUT_SINGLE_EDGE = 0,50SIL164_INPUT_DUAL_EDGE51} input_dual;5253enum {54SIL164_PLL_FILTER_ON = 0,55SIL164_PLL_FILTER_OFF,56} pll_filter;5758int input_skew; /** < Allowed range [-4, 3], use 0 for no de-skew. */59int duallink_skew; /** < Allowed range [-4, 3]. */60};6162#endif636465