3 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
5 * Inki Dae <inki.dae@samsung.com>
6 * Seung-Woo Kim <sw0312.kim@samsung.com>
8 * Permission is hereby granted, free of charge, to any person obtaining a
9 * copy of this software and associated documentation files (the "Software"),
10 * to deal in the Software without restriction, including without limitation
11 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
12 * and/or sell copies of the Software, and to permit persons to whom the
13 * Software is furnished to do so, subject to the following conditions:
15 * The above copyright notice and this permission notice (including the next
16 * paragraph) shall be included in all copies or substantial portions of the
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
22 * VA LINUX SYSTEMS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
23 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
24 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
25 * OTHER DEALINGS IN THE SOFTWARE.
28 #ifndef _EXYNOS_HDMI_H_
29 #define _EXYNOS_HDMI_H_
31 /* AVI header and aspect ratio */
32 #define HDMI_AVI_VERSION 0x02
33 #define HDMI_AVI_LENGTH 0x0d
34 #define AVI_PIC_ASPECT_RATIO_4_3 (1 << 4)
35 #define AVI_PIC_ASPECT_RATIO_16_9 (2 << 4)
36 #define AVI_SAME_AS_PIC_ASPECT_RATIO 8
39 #define HDMI_AUI_VERSION 0x01
40 #define HDMI_AUI_LENGTH 0x0a
42 /* HDMI infoframe to configure HDMI out packet header, AUI and AVI */
43 enum HDMI_PACKET_TYPE {
44 /** refer to Table 5-8 Packet Type in HDMI specification v1.4a */
45 /** InfoFrame packet type */
46 HDMI_PACKET_TYPE_INFOFRAME = 0X80,
47 /** Vendor-Specific InfoFrame */
48 HDMI_PACKET_TYPE_VSI = HDMI_PACKET_TYPE_INFOFRAME + 1,
49 /** Auxiliary Video information InfoFrame */
50 HDMI_PACKET_TYPE_AVI = HDMI_PACKET_TYPE_INFOFRAME + 2,
51 /** Audio information InfoFrame */
52 HDMI_PACKET_TYPE_AUI = HDMI_PACKET_TYPE_INFOFRAME + 4
55 void hdmi_attach_ddc_client(struct i2c_client *ddc);
56 void hdmi_attach_hdmiphy_client(struct i2c_client *hdmiphy);
58 extern struct i2c_driver hdmiphy_driver;
59 extern struct i2c_driver ddc_driver;