gpc_base = MX6_IO_ADDRESS(GPC_BASE_ADDR);
ccm_base = MX6_IO_ADDRESS(CCM_BASE_ADDR);
+ /* enable AXI cache for VDOA/VPU/IPU
+ * set IPU AXI-id0 Qos=0xf(bypass) AXI-id1 Qos=0x7
+ * clear OCRAM_CTL bits to disable pipeline control
+ */
+ reg = __raw_readl(IOMUXC_GPR3);
+ reg &= ~IOMUXC_GPR3_OCRAM_CTL_EN;
+ __raw_writel(reg, IOMUXC_GPR3);
+ reg = __raw_readl(IOMUXC_GPR4);
+ reg |= IOMUXC_GPR4_VDOA_CACHE_EN | IOMUXC_GPR4_VPU_CACHE_EN |
+ IOMUXC_GPR4_IPU_CACHE_EN;
+ __raw_writel(reg, IOMUXC_GPR4);
+ __raw_writel(IOMUXC_GPR6_IPU1_QOS, IOMUXC_GPR6);
+ __raw_writel(IOMUXC_GPR7_IPU2_QOS, IOMUXC_GPR7);
+
num_cpu_idle_lock = 0x0;
if (cpu_is_mx6dl())
num_cpu_idle_lock = 0xffff0000;
#define IOMUXC_GPR12 (MXC_IOMUXC_BASE + 0x30)
#define IOMUXC_GPR13 (MXC_IOMUXC_BASE + 0x34)
+#define IOMUXC_GPR3_OCRAM_CTL_EN (0xf << 21)
+#define IOMUXC_GPR4_VDOA_CACHE_EN (0xf << 28)
+#define IOMUXC_GPR4_VPU_CACHE_EN (0xcc)
+#define IOMUXC_GPR4_IPU_CACHE_EN (0x3)
+#define IOMUXC_GPR6_IPU1_QOS (0x007f007f)
+#define IOMUXC_GPR7_IPU2_QOS (0x007f007f)
+
/* MMDC */
#define MXC_MMDC_P0_BASE MX6_IO_ADDRESS(MMDC_P0_BASE_ADDR)
#define MMDC_MDMISC_OFFSET (MXC_MMDC_P0_BASE + 0x18)