MAILBOX Offset | 32-bit Word | Field Type | Field Description 1 |
---|---|---|---|
0x00
|
[0] | Host Request Message | Message Header 31:24 Opcode (0x2) 23:12 Reserved 11:0 Payload length in bytes |
0x04 -end |
[1:end] | Host Request Message | Firmware data |
|
Host Action | Function |
---|---|
Peek 0x28018
|
Check the mailbox availability by confirming CONTROL_REG[5] is 0. |
Poke 0x29000
0x02000FFC
|
Write the request message header into MAILBOX Word 0 (Opcode and
payload length). Assumes HOST_MSG_OFFSET_REG =
Payload
length: 4092 bytes firmware data ( |
Poke 0x29004 -0x29FFC
0xXXXXXXX
|
Write the firmware data to the remaining 1023 MAILBOX words. |
Poke 0x28018
0x20
|
Set CONTROL_REG[5] to 1 to indicate a new request message is available. |
Peek 0x28018
|
Poll CONTROL_REG bit 5 until ‘0’ is received, indicating CMS has completed the operation. |
Peek 0x28304
|
Confirm no errors in HOST_MSG_ERR_REG. |