imx: imximage: Add QuadSPI boot support
authorYe.Li <B37916@freescale.com>
Tue, 13 Jan 2015 07:53:06 +0000 (15:53 +0800)
committerStefano Babic <sbabic@denx.de>
Tue, 10 Feb 2015 11:48:49 +0000 (12:48 +0100)
Add QuadSPI boot support to imximage tool.

Note: The QuadSPI configuration parameters at offset 0x400 are not
included in this patch. Need other tools to generate the parameters
part.

Signed-off-by: Ye.Li <B37916@freescale.com>
tools/imximage.c
tools/imximage.h

index 526b7d490d5c38cca59c6abfd12ac3f15f3931ab..f880edd96b560ebc656a8cc282c4de25b08a4c6d 100644 (file)
@@ -38,6 +38,7 @@ static table_entry_t imximage_boot_offset[] = {
        {FLASH_OFFSET_SATA,     "sata",         "SATA Disk",    },
        {FLASH_OFFSET_SD,       "sd",           "SD Card",      },
        {FLASH_OFFSET_SPI,      "spi",          "SPI Flash",    },
+       {FLASH_OFFSET_QSPI,     "qspi",         "QSPI NOR Flash",},
        {-1,                    "",             "Invalid",      },
 };
 
@@ -52,6 +53,7 @@ static table_entry_t imximage_boot_loadsize[] = {
        {FLASH_LOADSIZE_SATA,           "sata",         "SATA Disk",    },
        {FLASH_LOADSIZE_SD,             "sd",           "SD Card",      },
        {FLASH_LOADSIZE_SPI,            "spi",          "SPI Flash",    },
+       {FLASH_LOADSIZE_QSPI,           "qspi",         "QSPI NOR Flash",},
        {-1,                            "",             "Invalid",      },
 };
 
index 5b5ad0edf46a64d3c1ce9ed788ac50285a9ee6f8..36fe0958fee3023763b8fb4860d5c1fe98c69616 100644 (file)
@@ -29,6 +29,7 @@
 #define FLASH_OFFSET_ONENAND   0x100
 #define FLASH_OFFSET_NOR       0x1000
 #define FLASH_OFFSET_SATA      FLASH_OFFSET_STANDARD
+#define FLASH_OFFSET_QSPI      0x1000
 
 /* Initial Load Region Size */
 #define FLASH_LOADSIZE_UNDEFINED       0xFFFFFFFF
@@ -39,6 +40,7 @@
 #define FLASH_LOADSIZE_ONENAND         0x400
 #define FLASH_LOADSIZE_NOR             0x0 /* entire image */
 #define FLASH_LOADSIZE_SATA            FLASH_LOADSIZE_STANDARD
+#define FLASH_LOADSIZE_QSPI            0x0 /* entire image */
 
 #define IVT_HEADER_TAG 0xD1
 #define IVT_VERSION 0x40