]> git.sur5r.net Git - u-boot/commitdiff
ipu_common: Only apply the erratum to MX51
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 31 May 2012 07:23:57 +0000 (07:23 +0000)
committerAnatolij Gustschin <agust@denx.de>
Tue, 10 Jul 2012 09:35:38 +0000 (11:35 +0200)
The following erratum :

"ENGcm08316
IPU: Clarification regarding the bypass mode registers setup for
display and camera interfaces"

only applies to mx51, so restrict its usage for this SoC only.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
drivers/video/ipu_common.c

index 9d20c864bac8adc70cd1acb1dcf2538d71bcaebd..4caad4f12c9df6ef90d8e5abe23c187a6424e9c9 100644 (file)
@@ -401,6 +401,7 @@ void ipu_reset(void)
 int ipu_probe(void)
 {
        unsigned long ipu_base;
+#if defined CONFIG_MX51
        u32 temp;
 
        u32 *reg_hsc_mcd = (u32 *)MIPI_HSC_BASE_ADDR;
@@ -414,6 +415,7 @@ int ipu_probe(void)
 
        temp = __raw_readl(reg_hsc_mxt_conf);
        __raw_writel(temp | 0x10000, reg_hsc_mxt_conf);
+#endif
 
        ipu_base = IPU_CTRL_BASE_ADDR;
        ipu_cpmem_base = (u32 *)(ipu_base + IPU_CPMEM_REG_BASE);