diff options
author | Chen Liangjun <b36089@freescale.com> | 2012-08-08 20:54:19 +0800 |
---|---|---|
committer | Chen Liangjun <b36089@freescale.com> | 2012-08-09 16:55:11 +0800 |
commit | e9aba4ccd0a4036092b5311247c926be3643d24c (patch) | |
tree | 5d46b116f006eea5936e049714d4cfe62562ab17 /drivers/mfd/mxc-hdmi-core.c | |
parent | a471d39302638ad37c37d6bd4fc477a0a72f93a9 (diff) | |
download | linux-e9aba4ccd0a4036092b5311247c926be3643d24c.tar.gz |
ENGR00219837-1 HDMI: Add HDMI_SDMA support for RIGEL TO1.1
In RIGEL TO1.1, the same HDMI_SDMA fix is introduced as ARIK TO1.2. Add
support for RIGEL TO1.1 for HDMI_SDMA functionality.
In this patch:
1.Add hdmi_SDMA_check() interface to judge whether MX6 chip
support HDMI_SDMA.
2.Replace mx6q_version() check with hdmi_SDMA_check() to support
both ARIK To1.2 and RIGEL TO1.1.
Signed-off-by: Chen Liangjun <b36089@freescale.com>
Diffstat (limited to 'drivers/mfd/mxc-hdmi-core.c')
-rw-r--r-- | drivers/mfd/mxc-hdmi-core.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/mfd/mxc-hdmi-core.c b/drivers/mfd/mxc-hdmi-core.c index 6ccf5504a034..332843661d98 100644 --- a/drivers/mfd/mxc-hdmi-core.c +++ b/drivers/mfd/mxc-hdmi-core.c @@ -40,6 +40,7 @@ #include "../mxc/ipu3/ipu_prv.h" #include <linux/mfd/mxc-hdmi-core.h> #include <linux/fsl_devices.h> +#include <mach/hardware.h> struct mxc_hdmi_data { struct platform_device *pdev; @@ -397,6 +398,12 @@ static void hdmi_set_clk_regenerator(void) hdmi_set_clock_regenerator_n(clk_n); } +unsigned int hdmi_SDMA_check(void) +{ + return (mx6q_revision() > IMX_CHIP_REVISION_1_1) || + (mx6dl_revision() > IMX_CHIP_REVISION_1_0); +} + /* Need to run this before phy is enabled the first time to prevent * overflow condition in HDMI_IH_FC_STAT2 */ void hdmi_init_clk_regenerator(void) |