4 * HDMI driver definition for TI OMAP4, DM81xx, DM38xx Processor.
6 * Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com/
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License version 2 as published by
10 * the Free Software Foundation.
12 * This program is distributed in the hope that it will be useful, but WITHOUT
13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
17 * You should have received a copy of the GNU General Public License along with
18 * this program. If not, see <http://www.gnu.org/licenses/>.
25 HDMI_PLLPWRCMD_ALLOFF = 0,
26 HDMI_PLLPWRCMD_PLLONLY = 1,
27 HDMI_PLLPWRCMD_BOTHON_ALLCLKS = 2,
28 HDMI_PLLPWRCMD_BOTHON_NOPHYCLK = 3
31 enum hdmi_core_hdmi_dvi {
36 enum hdmi_clk_refsel {
40 HDMI_REFSEL_SYSCLK = 3
43 struct hdmi_video_timings {
56 /* HDMI timing structure */
58 struct hdmi_video_timings timings;
69 struct hdmi_timings timings;
74 /* HDMI PLL structure */
75 struct hdmi_pll_info {
82 enum hdmi_clk_refsel refsel;
86 void __iomem *base_wp; /* HDMI wrapper */
87 unsigned long core_sys_offset;
88 unsigned long core_av_offset;
89 unsigned long pll_offset;
90 unsigned long phy_offset;
91 struct hdmi_config cfg;
92 struct hdmi_pll_info pll_data;
94 int hdmi_phy_init(struct hdmi_ip_data *ip_data);
95 void hdmi_phy_off(struct hdmi_ip_data *ip_data);
96 int read_edid(struct hdmi_ip_data *ip_data, u8 *pedid, u16 max_length);
97 void hdmi_wp_video_start(struct hdmi_ip_data *ip_data, bool start);
98 int hdmi_pll_program(struct hdmi_ip_data *ip_data);
99 int hdmi_set_pll_pwr(struct hdmi_ip_data *ip_data, enum hdmi_pll_pwr val);
100 void hdmi_basic_configure(struct hdmi_ip_data *ip_data);