Lines Matching refs:cpc
225 cpc_corenet_t *cpc = (cpc_corenet_t *)CONFIG_SYS_FSL_CPC_ADDR; in disable_cpc_sram() local
227 for (i = 0; i < CONFIG_SYS_NUM_CPC; i++, cpc++) { in disable_cpc_sram()
228 if (in_be32(&cpc->cpcsrcr0) & CPC_SRCR0_SRAMEN) { in disable_cpc_sram()
238 clrbits_be32(&cpc->cpchdbcr0, CPC_HDBCR0_CDQ_SPEC_DIS); in disable_cpc_sram()
239 out_be32(&cpc->cpccsr0, 0); in disable_cpc_sram()
240 out_be32(&cpc->cpcsrcr0, 0); in disable_cpc_sram()
282 cpc_corenet_t *cpc = (cpc_corenet_t *)CONFIG_SYS_FSL_CPC_ADDR; in enable_cpc() local
297 for (i = 0; i < CONFIG_SYS_NUM_CPC; i++, cpc++) { in enable_cpc()
304 cpccfg0 = in_be32(&cpc->cpccfg0); in enable_cpc()
308 setbits_be32(&cpc->cpchdbcr0, CPC_HDBCR0_TAG_ECC_SCRUB_DIS); in enable_cpc()
311 setbits_be32(&cpc->cpchdbcr0, CPC_HDBCR0_DATA_ECC_SCRUB_DIS); in enable_cpc()
314 setbits_be32(&cpc->cpchdbcr0, 1 << (31 - 21)); in enable_cpc()
318 setbits_be32(&cpc->cpchdbcr0, in enable_cpc()
323 out_be32(&cpc->cpccsr0, CPC_CSR0_CE | CPC_CSR0_PE); in enable_cpc()
325 in_be32(&cpc->cpccsr0); in enable_cpc()
336 cpc_corenet_t *cpc = (cpc_corenet_t *)CONFIG_SYS_FSL_CPC_ADDR; in invalidate_cpc() local
338 for (i = 0; i < CONFIG_SYS_NUM_CPC; i++, cpc++) { in invalidate_cpc()
340 if (in_be32(&cpc->cpcsrcr0) & CPC_SRCR0_SRAMEN) in invalidate_cpc()
343 out_be32(&cpc->cpccsr0, CPC_CSR0_FI | CPC_CSR0_LFC); in invalidate_cpc()
344 while (in_be32(&cpc->cpccsr0) & (CPC_CSR0_FI | CPC_CSR0_LFC)) in invalidate_cpc()