diff options
| author | Sandor Yu <R01008@freescale.com> | 2013-08-05 04:12:53 -0400 |
|---|---|---|
| committer | Nitin Garg <nitin.garg@freescale.com> | 2014-04-16 09:00:56 -0400 |
| commit | 92bfbb00fe6f172183ba172771dc647d435ec756 (patch) | |
| tree | de6631a23fcc7c962aaad2e57ed110b10497645a /include/linux/mfd | |
| parent | 686f8a205419109ab0d38d1eb1d6af57442ba36e (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.h | 65 |
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 | |||
| 32 | bool hdmi_check_overflow(void); | ||
| 33 | |||
| 34 | u8 hdmi_readb(unsigned int reg); | ||
| 35 | void hdmi_writeb(u8 value, unsigned int reg); | ||
| 36 | void hdmi_mask_writeb(u8 data, unsigned int addr, u8 shift, u8 mask); | ||
| 37 | unsigned int hdmi_read4(unsigned int reg); | ||
| 38 | void hdmi_write4(unsigned int value, unsigned int reg); | ||
| 39 | |||
| 40 | void hdmi_irq_init(void); | ||
| 41 | void hdmi_irq_enable(int irq); | ||
| 42 | unsigned int hdmi_irq_disable(int irq); | ||
| 43 | |||
| 44 | void hdmi_set_sample_rate(unsigned int rate); | ||
| 45 | void hdmi_set_dma_mode(unsigned int dma_running); | ||
| 46 | void hdmi_init_clk_regenerator(void); | ||
| 47 | void hdmi_clk_regenerator_update_pixel_clock(u32 pixclock); | ||
| 48 | |||
| 49 | void hdmi_set_edid_cfg(struct mxc_edid_cfg *cfg); | ||
| 50 | void hdmi_get_edid_cfg(struct mxc_edid_cfg *cfg); | ||
| 51 | |||
| 52 | extern int mxc_hdmi_ipu_id; | ||
| 53 | extern int mxc_hdmi_disp_id; | ||
| 54 | |||
| 55 | void hdmi_set_registered(int registered); | ||
| 56 | int hdmi_get_registered(void); | ||
| 57 | unsigned int hdmi_SDMA_check(void); | ||
| 58 | int mxc_hdmi_abort_stream(void); | ||
| 59 | int mxc_hdmi_register_audio(struct snd_pcm_substream *substream); | ||
| 60 | void mxc_hdmi_unregister_audio(struct snd_pcm_substream *substream); | ||
| 61 | unsigned int hdmi_set_cable_state(unsigned int state); | ||
| 62 | unsigned int hdmi_set_blank_state(unsigned int state); | ||
| 63 | int check_hdmi_state(void); | ||
| 64 | |||
| 65 | #endif | ||
