Inki Dae | 1c248b7 | 2011-10-04 19:19:01 +0900 | [diff] [blame] | 1 | /* 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 Dae | 1c248b7 | 2011-10-04 19:19:01 +0900 | [diff] [blame] | 28 | #ifndef _EXYNOS_DRM_H_ |
| 29 | #define _EXYNOS_DRM_H_ |
| 30 | |
David Howells | 718dced | 2012-10-04 18:21:50 +0100 | [diff] [blame] | 31 | #include <uapi/drm/exynos_drm.h> |
Joonyoung Shim | d7f1642 | 2012-05-17 20:06:32 +0900 | [diff] [blame] | 32 | |
Inki Dae | 1c248b7 | 2011-10-04 19:19:01 +0900 | [diff] [blame] | 33 | /** |
Eun-Chul Kim | 607c50d | 2012-02-14 15:59:46 +0900 | [diff] [blame] | 34 | * A structure for lcd panel information. |
Inki Dae | 1c248b7 | 2011-10-04 19:19:01 +0900 | [diff] [blame] | 35 | * |
| 36 | * @timing: default video mode for initializing |
Eun-Chul Kim | 607c50d | 2012-02-14 15:59:46 +0900 | [diff] [blame] | 37 | * @width_mm: physical size of lcd width. |
| 38 | * @height_mm: physical size of lcd height. |
| 39 | */ |
| 40 | struct exynos_drm_panel_info { |
| 41 | struct fb_videomode timing; |
| 42 | u32 width_mm; |
| 43 | u32 height_mm; |
| 44 | }; |
| 45 | |
| 46 | /** |
| 47 | * Platform Specific Structure for DRM based FIMD. |
| 48 | * |
| 49 | * @panel: default panel info for initializing |
Inki Dae | 1c248b7 | 2011-10-04 19:19:01 +0900 | [diff] [blame] | 50 | * @default_win: default window layer number to be used for UI. |
| 51 | * @bpp: default bit per pixel. |
| 52 | */ |
| 53 | struct exynos_drm_fimd_pdata { |
Eun-Chul Kim | 607c50d | 2012-02-14 15:59:46 +0900 | [diff] [blame] | 54 | struct exynos_drm_panel_info panel; |
Inki Dae | 1c248b7 | 2011-10-04 19:19:01 +0900 | [diff] [blame] | 55 | u32 vidcon0; |
| 56 | u32 vidcon1; |
| 57 | unsigned int default_win; |
| 58 | unsigned int bpp; |
| 59 | }; |
| 60 | |
Seung-Woo Kim | d840832 | 2011-12-21 17:39:39 +0900 | [diff] [blame] | 61 | /** |
| 62 | * Platform Specific Structure for DRM based HDMI. |
| 63 | * |
| 64 | * @hdmi_dev: device point to specific hdmi driver. |
| 65 | * @mixer_dev: device point to specific mixer driver. |
| 66 | * |
| 67 | * this structure is used for common hdmi driver and each device object |
| 68 | * would be used to access specific device driver(hdmi or mixer driver) |
| 69 | */ |
| 70 | struct exynos_drm_common_hdmi_pd { |
| 71 | struct device *hdmi_dev; |
| 72 | struct device *mixer_dev; |
| 73 | }; |
| 74 | |
| 75 | /** |
| 76 | * Platform Specific Structure for DRM based HDMI core. |
| 77 | * |
Joonyoung Shim | 3ecd70b | 2012-03-16 18:47:03 +0900 | [diff] [blame] | 78 | * @is_v13: set if hdmi version 13 is. |
Joonyoung Shim | 7ecd34e | 2012-04-23 19:35:47 +0900 | [diff] [blame] | 79 | * @cfg_hpd: function pointer to configure hdmi hotplug detection pin |
| 80 | * @get_hpd: function pointer to get value of hdmi hotplug detection pin |
Seung-Woo Kim | d840832 | 2011-12-21 17:39:39 +0900 | [diff] [blame] | 81 | */ |
| 82 | struct exynos_drm_hdmi_pdata { |
Joonyoung Shim | 7ecd34e | 2012-04-23 19:35:47 +0900 | [diff] [blame] | 83 | bool is_v13; |
| 84 | void (*cfg_hpd)(bool external); |
| 85 | int (*get_hpd)(void); |
Seung-Woo Kim | d840832 | 2011-12-21 17:39:39 +0900 | [diff] [blame] | 86 | }; |
| 87 | |
Kamil Debski | 265da78 | 2012-02-15 10:23:33 +0900 | [diff] [blame] | 88 | #endif /* _EXYNOS_DRM_H_ */ |