3 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
5 * Seung-Woo Kim <sw0312.kim@samsung.com>
6 * Inki Dae <inki.dae@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_MIXER_H_
29 #define _EXYNOS_MIXER_H_
31 #define HDMI_OVERLAY_NUMBER 3
33 struct hdmi_win_data
{
36 dma_addr_t chroma_dma_addr
;
37 void __iomem
*chroma_vaddr
;
38 uint32_t pixel_format
;
42 unsigned int crtc_width
;
43 unsigned int crtc_height
;
46 unsigned int fb_width
;
47 unsigned int fb_height
;
48 unsigned int mode_width
;
49 unsigned int mode_height
;
50 unsigned int scan_flags
;
53 struct mixer_resources
{
55 /** interrupt index */
57 /** pointer to Mixer registers */
58 void __iomem
*mixer_regs
;
59 /** pointer to Video Processor registers */
60 void __iomem
*vp_regs
;
61 /** spinlock for protection of registers */
63 /** other resources */
66 struct clk
*sclk_mixer
;
67 struct clk
*sclk_hdmi
;
71 struct mixer_context
{
72 unsigned int default_win
;
73 struct fb_videomode
*default_timing
;
74 unsigned int default_bpp
;
76 /** mixer interrupt */
78 /** current crtc pipe for vblank */
80 /** interlace scan mode */
82 /** vp enabled status */
85 /** mixer and vp resources */
86 struct mixer_resources mixer_res
;
88 /** overlay window data */
89 struct hdmi_win_data win_data
[HDMI_OVERLAY_NUMBER
];