/*1* Copyright (C) 2009 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_CH7006_H__27#define __DRM_I2C_CH7006_H__2829/**30* struct ch7006_encoder_params31*32* Describes how the ch7006 is wired up with the GPU. It should be33* used as the @params parameter of its @set_config method.34*35* See "http://www.chrontel.com/pdf/7006.pdf" for their precise36* meaning.37*/38struct ch7006_encoder_params {39enum {40CH7006_FORMAT_RGB16 = 0,41CH7006_FORMAT_YCrCb24m16,42CH7006_FORMAT_RGB24m16,43CH7006_FORMAT_RGB15,44CH7006_FORMAT_RGB24m12C,45CH7006_FORMAT_RGB24m12I,46CH7006_FORMAT_RGB24m8,47CH7006_FORMAT_RGB16m8,48CH7006_FORMAT_RGB15m8,49CH7006_FORMAT_YCrCb24m8,50} input_format;5152enum {53CH7006_CLOCK_SLAVE = 0,54CH7006_CLOCK_MASTER,55} clock_mode;5657enum {58CH7006_CLOCK_EDGE_NEG = 0,59CH7006_CLOCK_EDGE_POS,60} clock_edge;6162int xcm, pcm;6364enum {65CH7006_SYNC_SLAVE = 0,66CH7006_SYNC_MASTER,67} sync_direction;6869enum {70CH7006_SYNC_SEPARATED = 0,71CH7006_SYNC_EMBEDDED,72} sync_encoding;7374enum {75CH7006_POUT_1_8V = 0,76CH7006_POUT_3_3V,77} pout_level;7879enum {80CH7006_ACTIVE_HSYNC = 0,81CH7006_ACTIVE_DSTART,82} active_detect;83};8485#endif868788