According to the reference manual, this is the sequence to disable CPC for T1040/T2080:
# a. Clear all bits in CPCPAR0-CPCPAR15 to prevent new transactions from allocating in the CPC
# b. Set CPCCSR0[CPCFL]
# c. Wait for CPCCSR0[CPCFL] to be cleared by hardware
# d. Clear CPCCSR0[CPCE]
in u-boot, I did this:
mw 0xfe010208 0x0; sleep 1; mw 0xfe010000 0xc0000800; sleep 5; mw 0xfe010000 0x0; sleep 1
is that correct?