aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDanny Nold <dannynold@freescale.com>2011-10-14 13:43:32 -0500
committerEric Miao <eric.miao@canonical.com>2011-11-10 07:38:47 +0800
commit24d8daa1432863515b9e6fb65a3298611bc7c61b (patch)
treeb2e153ffc7f556af00e73e517a49b5e16f03c4e7 /include
parent16b37759f818eb28fc3596242c622593faea6e7a (diff)
ENGR00160061 - MXC HDMI: Optimize HDMI clock management
- Ensure HDMI clocks are disabled when leaving HDMI core probe function. - Create HDMI core api to allow HDMI sub-drivers to init, enable, and disable the HDMI IRQ. Required to optimally manage HDMI clocks, allow IAHB to be disabled, and still have video and audio sub-drivers able to receive interrupts. - Update code to adjust for decoupled ISFR and IAHB clocks. - Disable IAHB clocks whenever HDMI not plugged in. Signed-off-by: Danny Nold <dannynold@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/mxc-hdmi-core.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mfd/mxc-hdmi-core.h b/include/linux/mfd/mxc-hdmi-core.h
index f5021c7acb4..d0712dbb8ad 100644
--- a/include/linux/mfd/mxc-hdmi-core.h
+++ b/include/linux/mfd/mxc-hdmi-core.h
@@ -19,11 +19,17 @@
#ifndef __LINUX_MXC_HDMI_CORE_H_
#define __LINUX_MXC_HDMI_CORE_H_
+#define IRQ_DISABLE_SUCCEED 0
+#define IRQ_DISABLE_FAIL 1
+
u8 hdmi_readb(unsigned int reg);
void hdmi_writeb(u8 value, unsigned int reg);
void hdmi_mask_writeb(u8 data, unsigned int addr, u8 shift, u8 mask);
unsigned int hdmi_read4(unsigned int reg);
void hdmi_write4(unsigned int value, unsigned int reg);
+void hdmi_irq_init(void);
+void hdmi_irq_enable(int irq);
+unsigned int hdmi_irq_disable(int irq);
extern int mxc_hdmi_pixel_clk;
extern int mxc_hdmi_ratio;