diff options
author | Tang Yuantian <Yuantian.Tang@nxp.com> | 2016-08-08 15:07:20 +0800 |
---|---|---|
committer | York Sun <york.sun@nxp.com> | 2016-10-06 09:52:59 -0700 |
commit | 4de6ce1594fcff6fa9e626d094fa922f4889e167 (patch) | |
tree | 365d7229e766c3dd6fc9ad21627586662bc5b4fe /arch/arm/cpu/armv8/fsl-layerscape | |
parent | f0beb49290c4e6af7d88895a15a45bbea38318fe (diff) | |
download | u-boot-imx-4de6ce1594fcff6fa9e626d094fa922f4889e167.zip u-boot-imx-4de6ce1594fcff6fa9e626d094fa922f4889e167.tar.gz u-boot-imx-4de6ce1594fcff6fa9e626d094fa922f4889e167.tar.bz2 |
armv8: fsl-lsch2: enable snoopable sata read and write
By default the SATA IP on the ls1043a/ls1046a SoCs does not
generating coherent/snoopable transactions. This patch enable
it in the SCFG_SNPCNFGCR register along with sata axicc register.
In addition, the dma-coherent property must be set on the SATA
controller nodes.
Signed-off-by: Tang Yuantian <yuantian.tang@nxp.com>
[York Sun: Reformatted commit message]
Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'arch/arm/cpu/armv8/fsl-layerscape')
-rw-r--r-- | arch/arm/cpu/armv8/fsl-layerscape/soc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/soc.c b/arch/arm/cpu/armv8/fsl-layerscape/soc.c index 4b425b8..aa6a184 100644 --- a/arch/arm/cpu/armv8/fsl-layerscape/soc.c +++ b/arch/arm/cpu/armv8/fsl-layerscape/soc.c @@ -234,6 +234,7 @@ int sata_init(void) #endif out_le32(&ccsr_ahci->ppcfg, AHCI_PORT_PHY_1_CFG); out_le32(&ccsr_ahci->ptc, AHCI_PORT_TRANS_CFG); + out_le32(&ccsr_ahci->axicc, AHCI_PORT_AXICC_CFG); ahci_init((void __iomem *)CONFIG_SYS_SATA); scsi_scan(0); @@ -337,7 +338,9 @@ void fsl_lsch2_early_init_f(void) #endif /* Make SEC reads and writes snoopable */ setbits_be32(&scfg->snpcnfgcr, SCFG_SNPCNFGCR_SECRDSNP | - SCFG_SNPCNFGCR_SECWRSNP); + SCFG_SNPCNFGCR_SECWRSNP | + SCFG_SNPCNFGCR_SATARDSNP | + SCFG_SNPCNFGCR_SATAWRSNP); /* * Enable snoop requests and DVM message requests for |