Add imximg support for i.MX50 processors which use the i.MX flash
header v2 format.

Signed-off-by: Alexander Kurz <ak...@blala.de>
---
 scripts/imx/imx-image.c      | 2 +-
 scripts/imx/imx-usb-loader.c | 3 +++
 scripts/imx/imx.c            | 1 +
 3 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/scripts/imx/imx-image.c b/scripts/imx/imx-image.c
index fb2c295..650a67f 100644
--- a/scripts/imx/imx-image.c
+++ b/scripts/imx/imx-image.c
@@ -274,7 +274,7 @@ static int write_mem_v1(uint32_t addr, uint32_t val, int 
width, int set_bits, in
 
 /*
  * ============================================================================
- * i.MX flash header v2 handling. Found on i.MX53 and i.MX6
+ * i.MX flash header v2 handling. Found on i.MX50, i.MX53 and i.MX6
  * ============================================================================
  */
 
diff --git a/scripts/imx/imx-usb-loader.c b/scripts/imx/imx-usb-loader.c
index b5c1531..c0aaa7d 100644
--- a/scripts/imx/imx-usb-loader.c
+++ b/scripts/imx/imx-usb-loader.c
@@ -90,6 +90,9 @@ struct mach_id imx_ids[] = {
                .vid = 0x15a2,
                .pid = 0x0052,
                .name = "i.MX50",
+               .header_type = HDR_MX53,
+               .mode = MODE_HID,
+               .max_transfer = 1024,
        }, {
                .vid = 0x15a2,
                .pid = 0x0054,
diff --git a/scripts/imx/imx.c b/scripts/imx/imx.c
index 4ec8c89..c8ee309 100644
--- a/scripts/imx/imx.c
+++ b/scripts/imx/imx.c
@@ -219,6 +219,7 @@ struct soc_type {
 static struct soc_type socs[] = {
        { .name = "imx25", .header_version = 1, .cpu_type = IMX_CPU_IMX25 },
        { .name = "imx35", .header_version = 1, .cpu_type = IMX_CPU_IMX35 },
+       { .name = "imx50", .header_version = 2, .cpu_type = IMX_CPU_IMX50 },
        { .name = "imx51", .header_version = 1, .cpu_type = IMX_CPU_IMX51 },
        { .name = "imx53", .header_version = 2, .cpu_type = IMX_CPU_IMX53 },
        { .name = "imx6", .header_version = 2, .cpu_type = IMX_CPU_IMX6 },
-- 
2.1.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to