summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorYao Yuan <yao.yuan@freescale.com>2015-12-05 14:59:11 +0800
committerYork Sun <yorksun@freescale.com>2015-12-13 18:27:29 -0800
commit762b3535467202ee216dce81f13eec42cd2ac2e3 (patch)
treeb211fdaea9483e2ce176c0133a954c6045301c3c /arch
parent7ba0261810dd8924f0aeeb4cf2f12253106170b3 (diff)
downloadtalos-obmc-uboot-762b3535467202ee216dce81f13eec42cd2ac2e3.tar.gz
talos-obmc-uboot-762b3535467202ee216dce81f13eec42cd2ac2e3.zip
arm: ls102xa: enable all the snoop signal for masters.
Enable the IP feature's snoop signal to support hardware snoop for cache coherence. SNPCNFGCR contains the bits to drive snoop signal for various masters. Signed-off-by: Yuan Yao <yao.yuan@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/armv7/ls102xa/soc.c8
-rw-r--r--arch/arm/include/asm/arch-ls102xa/immap_ls102xa.h6
2 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/ls102xa/soc.c b/arch/arm/cpu/armv7/ls102xa/soc.c
index 0fdd6d4c86..6036473a50 100644
--- a/arch/arm/cpu/armv7/ls102xa/soc.c
+++ b/arch/arm/cpu/armv7/ls102xa/soc.c
@@ -62,5 +62,13 @@ int arch_soc_init(void)
out_le32(&cci->ctrl_ord, CCI400_CTRLORD_TERM_BARRIER);
}
+ /* Enable all the snoop signal for various masters */
+ out_be32(&scfg->snpcnfgcr, SCFG_SNPCNFGCR_SEC_RD_WR |
+ SCFG_SNPCNFGCR_DCU_RD_WR |
+ SCFG_SNPCNFGCR_SATA_RD_WR |
+ SCFG_SNPCNFGCR_USB3_RD_WR |
+ SCFG_SNPCNFGCR_DBG_RD_WR |
+ SCFG_SNPCNFGCR_EDMA_SNP);
+
return 0;
}
diff --git a/arch/arm/include/asm/arch-ls102xa/immap_ls102xa.h b/arch/arm/include/asm/arch-ls102xa/immap_ls102xa.h
index c12706d908..931727275c 100644
--- a/arch/arm/include/asm/arch-ls102xa/immap_ls102xa.h
+++ b/arch/arm/include/asm/arch-ls102xa/immap_ls102xa.h
@@ -152,6 +152,12 @@ struct ccsr_gur {
#define SCFG_ETSECCMCR_GE1_CLK125 0x08000000
#define SCFG_PIXCLKCR_PXCKEN 0x80000000
#define SCFG_QSPI_CLKSEL 0xc0100000
+#define SCFG_SNPCNFGCR_SEC_RD_WR 0xc0000000
+#define SCFG_SNPCNFGCR_DCU_RD_WR 0x03000000
+#define SCFG_SNPCNFGCR_SATA_RD_WR 0x00c00000
+#define SCFG_SNPCNFGCR_USB3_RD_WR 0x00300000
+#define SCFG_SNPCNFGCR_DBG_RD_WR 0x000c0000
+#define SCFG_SNPCNFGCR_EDMA_SNP 0x00020000
#define SCFG_ENDIANCR_LE 0x80000000
/* Supplemental Configuration Unit */
OpenPOWER on IntegriCloud