blob: 0fcc185bf1478c9951f3904be4589df68d897187 [file] [log] [blame]
Inki Dae1c248b72011-10-04 19:19:01 +09001/* exynos_drm.h
2 *
3 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
4 * Authors:
5 * Inki Dae <inki.dae@samsung.com>
6 * Joonyoung Shim <jy0922.shim@samsung.com>
7 * Seung-Woo Kim <sw0312.kim@samsung.com>
8 *
9 * Permission is hereby granted, free of charge, to any person obtaining a
10 * copy of this software and associated documentation files (the "Software"),
11 * to deal in the Software without restriction, including without limitation
12 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13 * and/or sell copies of the Software, and to permit persons to whom the
14 * Software is furnished to do so, subject to the following conditions:
15 *
16 * The above copyright notice and this permission notice (including the next
17 * paragraph) shall be included in all copies or substantial portions of the
18 * Software.
19 *
20 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
23 * VA LINUX SYSTEMS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
24 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
25 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
26 * OTHER DEALINGS IN THE SOFTWARE.
27 */
Inki Dae1c248b72011-10-04 19:19:01 +090028#ifndef _EXYNOS_DRM_H_
29#define _EXYNOS_DRM_H_
30
David Howells718dced2012-10-04 18:21:50 +010031#include <uapi/drm/exynos_drm.h>
Joonyoung Shimd7f16422012-05-17 20:06:32 +090032
Kamil Debski265da782012-02-15 10:23:33 +090033
Inki Dae1c248b72011-10-04 19:19:01 +090034/**
Eun-Chul Kim607c50d2012-02-14 15:59:46 +090035 * A structure for lcd panel information.
Inki Dae1c248b72011-10-04 19:19:01 +090036 *
37 * @timing: default video mode for initializing
Eun-Chul Kim607c50d2012-02-14 15:59:46 +090038 * @width_mm: physical size of lcd width.
39 * @height_mm: physical size of lcd height.
40 */
41struct exynos_drm_panel_info {
42 struct fb_videomode timing;
43 u32 width_mm;
44 u32 height_mm;
45};
46
47/**
48 * Platform Specific Structure for DRM based FIMD.
49 *
50 * @panel: default panel info for initializing
Inki Dae1c248b72011-10-04 19:19:01 +090051 * @default_win: default window layer number to be used for UI.
52 * @bpp: default bit per pixel.
53 */
54struct exynos_drm_fimd_pdata {
Eun-Chul Kim607c50d2012-02-14 15:59:46 +090055 struct exynos_drm_panel_info panel;
Inki Dae1c248b72011-10-04 19:19:01 +090056 u32 vidcon0;
57 u32 vidcon1;
58 unsigned int default_win;
59 unsigned int bpp;
60};
61
Seung-Woo Kimd8408322011-12-21 17:39:39 +090062/**
63 * Platform Specific Structure for DRM based HDMI.
64 *
65 * @hdmi_dev: device point to specific hdmi driver.
66 * @mixer_dev: device point to specific mixer driver.
67 *
68 * this structure is used for common hdmi driver and each device object
69 * would be used to access specific device driver(hdmi or mixer driver)
70 */
71struct exynos_drm_common_hdmi_pd {
72 struct device *hdmi_dev;
73 struct device *mixer_dev;
74};
75
76/**
77 * Platform Specific Structure for DRM based HDMI core.
78 *
Joonyoung Shim3ecd70b2012-03-16 18:47:03 +090079 * @is_v13: set if hdmi version 13 is.
Joonyoung Shim7ecd34e2012-04-23 19:35:47 +090080 * @cfg_hpd: function pointer to configure hdmi hotplug detection pin
81 * @get_hpd: function pointer to get value of hdmi hotplug detection pin
Seung-Woo Kimd8408322011-12-21 17:39:39 +090082 */
83struct exynos_drm_hdmi_pdata {
Joonyoung Shim7ecd34e2012-04-23 19:35:47 +090084 bool is_v13;
85 void (*cfg_hpd)(bool external);
86 int (*get_hpd)(void);
Seung-Woo Kimd8408322011-12-21 17:39:39 +090087};
88
Kamil Debski265da782012-02-15 10:23:33 +090089#endif /* _EXYNOS_DRM_H_ */