Operation
Platform bring-up
Platform bring-up prepares memory remapping, timers, the interrupt controller and the clocks. The order matters: several blocks must be programmed before the remapping they depend on, and one write changes the packet-RAM mapping for everything after it. CPU IRQ and FIQ stay masked throughout.
Configuration word
Clear bit 0 and set bit 23 of PlatformControl.CONFIGURATION (0x0ac8_00bc). This comes before everything below.
Remap, memory and interrupts
- Sample the eight remap windows and relocate windows 3, 4 and 5.
- If remap window 0 has bit 27 clear, run the memory probe, which sets the startup mode.
- Start timer 0 free-running and prescale timer 1, as in Timers.
- Reset the interrupt controller.
- Mask clock sources:
MASK_44 &= 0x7fff_f777,MASK_48 &= 0x777f_ffff.
Debug console
Two writes reproduce the hardware effects of the vendor’s high-SRAM support code; the UART’s interrupts stay disabled.
| Address | Register | Access | Description |
|---|---|---|---|
0x0a90_0004 | UART_4 | W | Debug console UART register; written 0x2b |
0xfff0_32ec | SUPPORT_32EC | W | A word in the vendor’s high-SRAM support data; written 1 |
DMA and clocks
SystemControl.CONTROL: clear bit 7, set bit 4.SECONDARY_CONTROL: clear bit 4.MASK_48 |= 0xf0,MASK_40 |= 0x00f0_0000.SHARED_POINTER = 0x0004_0090,POWER_CONTROL = 0x10. If no remap window is present,CONFIGURATION |= 0x0012_0000.ClockReset.CONTROL_04 = 0x200. The stack must be in DTCM; see theCONTROL_04transition.PARAMETER_A0 = 31,PARAMETER_9C = 6.- Poll
READY_STATUSbit 0, at most0x200times. CLOCK_FLAGS = 0x0c02ifCLOCK_STATUSbit 3 is clear, else0x0042.
Host handshake comes next.