As an example, a typical cache controller start-up programming sequence consists of the following register operations:
- Write
0x020202to the register at0xF8000A1C. This is a mandatory step. - Write to the auxiliary, tag RAM latency, data RAM latency, pre-fetch, and Power
Control registers using a read-modify-write to set up global configurations:
- Associativity and way size
- Latencies for RAM accesses
- Allocation policy
- Pre-fetch and power capabilities
- Secure write to invalidate by way, offset
0x77C, to invalidate all entries in cache:- Write
0xFFFFto0x77C - Poll the cache maintenance register until invalidate operation is complete.
- Write
- If required, write to register 9 to lock down D and lock down I.
- Write to the interrupt clear register to clear any residual raw interrupts set.
- Write to the interrupt mask register if it is desired to enable interrupts.
- Write to control register 1 with the LSB set to
1to enable the cache.
If a write is performed to the auxiliary, tag RAM latency, or data RAM latency control register with the L2 cache enabled, a SLVERR (error) results. The L2 cache must be disabled by writing to the control register before writing to these registers.