Commit 54beba80 authored by Marek Vasut's avatar Marek Vasut
Browse files

mxssb: Add all possible command flags



This patch adds all possible command flags that can be used with the
SB file format.
Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
parent 98c7db95
......@@ -53,7 +53,7 @@ static struct sb_ivt_header sb_uboot_ivt = {
static struct sb_source_entry mx23_boot_list[] = {
{
.tag = ROM_TAG_CMD,
.flags = ROM_TAG_CMD_FLAG_LAST_TAG,
.flags = ROM_TAG_CMD_FLAG_ROM_LAST_TAG,
}, {
.tag = ROM_LOAD_CMD,
.address = SB_SPL_LOAD_ADDR,
......@@ -76,7 +76,7 @@ static struct sb_source_entry mx23_boot_list[] = {
static struct sb_source_entry mx28_boot_list[] = {
{
.tag = ROM_TAG_CMD,
.flags = ROM_TAG_CMD_FLAG_LAST_TAG,
.flags = ROM_TAG_CMD_FLAG_ROM_LAST_TAG,
}, {
.tag = ROM_LOAD_CMD,
.address = SB_SPL_LOAD_ADDR,
......
......@@ -94,9 +94,6 @@ struct sb_ivt_header {
SB_HAB_VERSION \
)
#define ROM_CALL_CMD_FLAG_HAB 0x1
#define ROM_TAG_CMD_FLAG_LAST_TAG 0x1
struct sb_sections_header {
uint32_t section_number; /* Section number. */
uint32_t section_offset; /* Offset of this sections first instruction after "TAG". */
......@@ -111,6 +108,10 @@ struct sb_command {
uint8_t checksum;
uint8_t tag;
uint16_t flags;
#define ROM_TAG_CMD_FLAG_ROM_LAST_TAG 0x1
#define ROM_LOAD_CMD_FLAG_DCD_LOAD 0x1 /* MX28 only */
#define ROM_JUMP_CMD_FLAG_HAB 0x1 /* MX28 only */
#define ROM_CALL_CMD_FLAG_HAB 0x1 /* MX28 only */
} header;
union {
......
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