1 /* 1 2 * Copyright (C) 2009 Francisco Jerez. 3 * All Rights Reserved. 4 * 5 * Permission is hereby granted, free of charg 6 * a copy of this software and associated docu 7 * "Software"), to deal in the Software withou 8 * without limitation the rights to use, copy, 9 * distribute, sublicense, and/or sell copies 10 * permit persons to whom the Software is furn 11 * the following conditions: 12 * 13 * The above copyright notice and this permiss 14 * next paragraph) shall be included in all co 15 * portions of the Software. 16 * 17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT W 18 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMIT 19 * MERCHANTABILITY, FITNESS FOR A PARTICULAR P 20 * IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AN 21 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIAB 22 * OF CONTRACT, TORT OR OTHERWISE, ARISING FRO 23 * WITH THE SOFTWARE OR THE USE OR OTHER DEALI 24 * 25 */ 26 27 #ifndef __DRM_I2C_CH7006_H__ 28 #define __DRM_I2C_CH7006_H__ 29 30 /** 31 * struct ch7006_encoder_params 32 * 33 * Describes how the ch7006 is wired up with t 34 * used as the @params parameter of its @set_c 35 * 36 * See "http://www.chrontel.com/pdf/7006.pdf" 37 * meaning. 38 */ 39 struct ch7006_encoder_params { 40 /* private: FIXME: document the member 41 enum { 42 CH7006_FORMAT_RGB16 = 0, 43 CH7006_FORMAT_YCrCb24m16, 44 CH7006_FORMAT_RGB24m16, 45 CH7006_FORMAT_RGB15, 46 CH7006_FORMAT_RGB24m12C, 47 CH7006_FORMAT_RGB24m12I, 48 CH7006_FORMAT_RGB24m8, 49 CH7006_FORMAT_RGB16m8, 50 CH7006_FORMAT_RGB15m8, 51 CH7006_FORMAT_YCrCb24m8, 52 } input_format; 53 54 enum { 55 CH7006_CLOCK_SLAVE = 0, 56 CH7006_CLOCK_MASTER, 57 } clock_mode; 58 59 enum { 60 CH7006_CLOCK_EDGE_NEG = 0, 61 CH7006_CLOCK_EDGE_POS, 62 } clock_edge; 63 64 int xcm, pcm; 65 66 enum { 67 CH7006_SYNC_SLAVE = 0, 68 CH7006_SYNC_MASTER, 69 } sync_direction; 70 71 enum { 72 CH7006_SYNC_SEPARATED = 0, 73 CH7006_SYNC_EMBEDDED, 74 } sync_encoding; 75 76 enum { 77 CH7006_POUT_1_8V = 0, 78 CH7006_POUT_3_3V, 79 } pout_level; 80 81 enum { 82 CH7006_ACTIVE_HSYNC = 0, 83 CH7006_ACTIVE_DSTART, 84 } active_detect; 85 }; 86 87 #endif 88
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.