aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorSandor Yu <R01008@freescale.com>2013-08-05 04:12:53 -0400
committerNitin Garg <nitin.garg@freescale.com>2014-04-16 09:00:56 -0400
commit92bfbb00fe6f172183ba172771dc647d435ec756 (patch)
treede6631a23fcc7c962aaad2e57ed110b10497645a /include/linux/mfd
parent686f8a205419109ab0d38d1eb1d6af57442ba36e (diff)
ENGR00273848-02 iMX6Q/DL HDMI: Enable HDMI function
Add MX6Q/DL HDMI core and video driver source code. Add MXC edid data read and parse source code. Signed-off-by: Sandor Yu <R01008@freescale.com>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/mxc-hdmi-core.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/include/linux/mfd/mxc-hdmi-core.h b/include/linux/mfd/mxc-hdmi-core.h
new file mode 100644
index 000000000000..f5524987eb30
--- /dev/null
+++ b/include/linux/mfd/mxc-hdmi-core.h
@@ -0,0 +1,65 @@
1/*
2 * Copyright (C) 2011-2013 Freescale Semiconductor, Inc. All Rights Reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 *
18 */
19#ifndef __LINUX_MXC_HDMI_CORE_H_
20#define __LINUX_MXC_HDMI_CORE_H_
21
22#include <video/mxc_edid.h>
23
24#include <sound/core.h>
25#include <sound/pcm.h>
26#include <sound/pcm_params.h>
27#include <sound/soc.h>
28
29#define IRQ_DISABLE_SUCCEED 0
30#define IRQ_DISABLE_FAIL 1
31
32bool hdmi_check_overflow(void);
33
34u8 hdmi_readb(unsigned int reg);
35void hdmi_writeb(u8 value, unsigned int reg);
36void hdmi_mask_writeb(u8 data, unsigned int addr, u8 shift, u8 mask);
37unsigned int hdmi_read4(unsigned int reg);
38void hdmi_write4(unsigned int value, unsigned int reg);
39
40void hdmi_irq_init(void);
41void hdmi_irq_enable(int irq);
42unsigned int hdmi_irq_disable(int irq);
43
44void hdmi_set_sample_rate(unsigned int rate);
45void hdmi_set_dma_mode(unsigned int dma_running);
46void hdmi_init_clk_regenerator(void);
47void hdmi_clk_regenerator_update_pixel_clock(u32 pixclock);
48
49void hdmi_set_edid_cfg(struct mxc_edid_cfg *cfg);
50void hdmi_get_edid_cfg(struct mxc_edid_cfg *cfg);
51
52extern int mxc_hdmi_ipu_id;
53extern int mxc_hdmi_disp_id;
54
55void hdmi_set_registered(int registered);
56int hdmi_get_registered(void);
57unsigned int hdmi_SDMA_check(void);
58int mxc_hdmi_abort_stream(void);
59int mxc_hdmi_register_audio(struct snd_pcm_substream *substream);
60void mxc_hdmi_unregister_audio(struct snd_pcm_substream *substream);
61unsigned int hdmi_set_cable_state(unsigned int state);
62unsigned int hdmi_set_blank_state(unsigned int state);
63int check_hdmi_state(void);
64
65#endif