diff options
author | Ashish Kumar <Ashish.Kumar@nxp.com> | 2017-08-11 11:09:14 +0530 |
---|---|---|
committer | York Sun <york.sun@nxp.com> | 2017-09-11 07:55:36 -0700 |
commit | 63b2316c5c4ba0e47d1f69ef1372db4fd89b6bf5 (patch) | |
tree | 065b8277ffa5951efbff0a53bdb8a6f797d7b884 /board/freescale/ls1012afrdm | |
parent | 584f316f115df52fd09a6cf699b29dcf824b4da5 (diff) | |
download | u-boot-63b2316c5c4ba0e47d1f69ef1372db4fd89b6bf5.zip u-boot-63b2316c5c4ba0e47d1f69ef1372db4fd89b6bf5.tar.gz u-boot-63b2316c5c4ba0e47d1f69ef1372db4fd89b6bf5.tar.bz2 |
fsl-layerscape: Consolidate registers space defination for CCI-400 bus
CoreLink Cache Coherent Interconnect (CCI) provides full cache
coherency between two clusters of multi-core CPUs and I/O coherency
for devices and I/O masters.
This patch add new config option SYS_FSL_HAS_CCI400 and moves
existing register space definaton of CCI-400 bus to fsl_immap to be
shared. CONFIG_SYS_CCI400_ADDR is replaced with SYS_CCI400_OFFSET
in Kconfig.
Signed-off-by: Ashish Kumar <Ashish.Kumar@nxp.com>
Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
[YS: revised commit message, squashed patches for armv8 and armv7]
Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'board/freescale/ls1012afrdm')
-rw-r--r-- | board/freescale/ls1012afrdm/ls1012afrdm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/board/freescale/ls1012afrdm/ls1012afrdm.c b/board/freescale/ls1012afrdm/ls1012afrdm.c index 25d22d2..9afd1c4 100644 --- a/board/freescale/ls1012afrdm/ls1012afrdm.c +++ b/board/freescale/ls1012afrdm/ls1012afrdm.c @@ -71,7 +71,9 @@ int board_early_init_f(void) int board_init(void) { - struct ccsr_cci400 *cci = (struct ccsr_cci400 *)CONFIG_SYS_CCI400_ADDR; + struct ccsr_cci400 *cci = (struct ccsr_cci400 *)(CONFIG_SYS_IMMR + + CONFIG_SYS_CCI400_OFFSET); + /* * Set CCI-400 control override register to enable barrier * transaction |