1*e190bfe5SFrancisco Jerez /* 2*e190bfe5SFrancisco Jerez * Copyright (C) 2010 Francisco Jerez. 3*e190bfe5SFrancisco Jerez * All Rights Reserved. 4*e190bfe5SFrancisco Jerez * 5*e190bfe5SFrancisco Jerez * Permission is hereby granted, free of charge, to any person obtaining 6*e190bfe5SFrancisco Jerez * a copy of this software and associated documentation files (the 7*e190bfe5SFrancisco Jerez * "Software"), to deal in the Software without restriction, including 8*e190bfe5SFrancisco Jerez * without limitation the rights to use, copy, modify, merge, publish, 9*e190bfe5SFrancisco Jerez * distribute, sublicense, and/or sell copies of the Software, and to 10*e190bfe5SFrancisco Jerez * permit persons to whom the Software is furnished to do so, subject to 11*e190bfe5SFrancisco Jerez * the following conditions: 12*e190bfe5SFrancisco Jerez * 13*e190bfe5SFrancisco Jerez * The above copyright notice and this permission notice (including the 14*e190bfe5SFrancisco Jerez * next paragraph) shall be included in all copies or substantial 15*e190bfe5SFrancisco Jerez * portions of the Software. 16*e190bfe5SFrancisco Jerez * 17*e190bfe5SFrancisco Jerez * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18*e190bfe5SFrancisco Jerez * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19*e190bfe5SFrancisco Jerez * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20*e190bfe5SFrancisco Jerez * IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE 21*e190bfe5SFrancisco Jerez * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 22*e190bfe5SFrancisco Jerez * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 23*e190bfe5SFrancisco Jerez * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24*e190bfe5SFrancisco Jerez * 25*e190bfe5SFrancisco Jerez */ 26*e190bfe5SFrancisco Jerez 27*e190bfe5SFrancisco Jerez #ifndef __DRM_I2C_SIL164_H__ 28*e190bfe5SFrancisco Jerez #define __DRM_I2C_SIL164_H__ 29*e190bfe5SFrancisco Jerez 30*e190bfe5SFrancisco Jerez /** 31*e190bfe5SFrancisco Jerez * struct sil164_encoder_params 32*e190bfe5SFrancisco Jerez * 33*e190bfe5SFrancisco Jerez * Describes how the sil164 is connected to the GPU. It should be used 34*e190bfe5SFrancisco Jerez * as the @params parameter of its @set_config method. 35*e190bfe5SFrancisco Jerez * 36*e190bfe5SFrancisco Jerez * See "http://www.siliconimage.com/docs/SiI-DS-0021-E-164.pdf". 37*e190bfe5SFrancisco Jerez */ 38*e190bfe5SFrancisco Jerez struct sil164_encoder_params { 39*e190bfe5SFrancisco Jerez enum { 40*e190bfe5SFrancisco Jerez SIL164_INPUT_EDGE_FALLING = 0, 41*e190bfe5SFrancisco Jerez SIL164_INPUT_EDGE_RISING 42*e190bfe5SFrancisco Jerez } input_edge; 43*e190bfe5SFrancisco Jerez 44*e190bfe5SFrancisco Jerez enum { 45*e190bfe5SFrancisco Jerez SIL164_INPUT_WIDTH_12BIT = 0, 46*e190bfe5SFrancisco Jerez SIL164_INPUT_WIDTH_24BIT 47*e190bfe5SFrancisco Jerez } input_width; 48*e190bfe5SFrancisco Jerez 49*e190bfe5SFrancisco Jerez enum { 50*e190bfe5SFrancisco Jerez SIL164_INPUT_SINGLE_EDGE = 0, 51*e190bfe5SFrancisco Jerez SIL164_INPUT_DUAL_EDGE 52*e190bfe5SFrancisco Jerez } input_dual; 53*e190bfe5SFrancisco Jerez 54*e190bfe5SFrancisco Jerez enum { 55*e190bfe5SFrancisco Jerez SIL164_PLL_FILTER_ON = 0, 56*e190bfe5SFrancisco Jerez SIL164_PLL_FILTER_OFF, 57*e190bfe5SFrancisco Jerez } pll_filter; 58*e190bfe5SFrancisco Jerez 59*e190bfe5SFrancisco Jerez int input_skew; /** < Allowed range [-4, 3], use 0 for no de-skew. */ 60*e190bfe5SFrancisco Jerez int duallink_skew; /** < Allowed range [-4, 3]. */ 61*e190bfe5SFrancisco Jerez }; 62*e190bfe5SFrancisco Jerez 63*e190bfe5SFrancisco Jerez #endif 64