Commit 98c7db95 authored by Marek Vasut's avatar Marek Vasut
Browse files

mxssb: Fill in the details about command fields



Add details about the fields for all the commands, moreover align
the names of the fields with the documentation where it was not
confusing.
Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
parent 86db678f
......@@ -398,7 +398,7 @@ static void sb_encrypt_tag(
break;
case ROM_LOAD_CMD:
inst.load.address = src->address;
inst.load.length = src->length;
inst.load.count = src->length;
inst.load.crc32 = crc32(src->payload, src->length);
break;
case ROM_CALL_CMD:
......
......@@ -115,21 +115,41 @@ struct sb_command {
union {
struct {
uint32_t reserved[3];
} nop;
struct {
uint32_t section_number;
uint32_t section_length;
uint32_t section_flags;
} tag;
struct {
uint32_t address;
uint32_t length;
uint32_t count;
uint32_t crc32;
} load;
struct {
uint32_t address;
uint32_t count;
uint32_t pattern;
} fill;
struct {
uint32_t address;
uint32_t reserved;
/* Passed in register r0 before JUMP */
uint32_t argument;
} jump;
struct {
uint32_t address;
uint32_t reserved;
/* Passed in register r0 before CALL */
uint32_t argument;
} call;
struct {
uint32_t section_number;
uint32_t section_length;
uint32_t section_flags;
} tag;
uint32_t reserved1;
uint32_t reserved2;
uint32_t mode;
} mode;
};
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment