Hardware reference
System control
On this page
Three registers at 0x0a98_0000. Two start-up steps use them: the memory probe during platform preparation, and the DMA and clock set-up. Each flips a pair of bits whose function is unknown; Platform bring-up gives the order.
Registers
| Offset | Address | Register | Type | Description |
|---|---|---|---|---|
+0x00 |
0x0a98_0000 |
CONTROL |
u32 RW | Flipped by the memory probe and by DMA and clock set-up. |
+0x04 |
0x0a98_0004 |
STATUS |
u32 RO | Probe result. |
+0x08 |
0x0a98_0008 |
SECONDARY_CONTROL |
u32 RW | Second control word used by the same two paths. |
Source: SystemControl · 12 bytes
CONTROL
The memory probe and the DMA and clock set-up each flip two bits; neither pair’s function is known.
| Bits | Field | Description |
|---|---|---|
| 7 | BIT7 |
Cleared by DMA and clock set-up. |
| 6 | BIT6 |
Set by the memory probe. |
| 5 | BIT5 |
Cleared by the memory probe. |
| 4 | BIT4 |
Set by DMA and clock set-up. |
Source: SystemControlBits · 4 bytes
STATUS
| Bits | Field | Description |
|---|---|---|
| 5 | PROBE_RESULT |
Read after the probe sets CONTROL bit 6. If set, the firmware clears SECONDARY_CONTROL bit 6 and reads it again; if it has then cleared, the startup mode drops from 3 to 1. |
Source: SystemStatusBits · 4 bytes
SECONDARY_CONTROL
| Bits | Field | Description |
|---|---|---|
| 6 | BIT6 |
Set during the memory probe; cleared again if STATUS.PROBE_RESULT reads set. |
| 4 | BIT4 |
Cleared by DMA and clock set-up. |
Source: SecondaryControlBits · 4 bytes
Memory probe
The probe runs only when remap window 0 has bit 27 clear (see Clock and reset):
- Set startup mode 3 and OR
0x0018_0200into the clock block’sFEATURE_CONTROL. - In
CONTROL, clear bit 5 and set bit 6. SetSECONDARY_CONTROLbit 6. - Read
STATUSbit 5. If it is set, clearSECONDARY_CONTROLbit 6 and readSTATUSagain; if bit 5 has now cleared, drop to startup mode 1. - Restore
FEATURE_CONTROL.
The startup mode is recorded for later use: the PHY set-up checks its bit 1.