The i.MX25 works like the i.MX51, just add the SoC magic and the USB product
id.

Signed-off-by: Sascha Hauer <[email protected]>
---
 scripts/imx/imx-image.c      | 1 +
 scripts/imx/imx-usb-loader.c | 7 +++++++
 2 files changed, 8 insertions(+)

diff --git a/scripts/imx/imx-image.c b/scripts/imx/imx-image.c
index ec571eb..1d935be 100644
--- a/scripts/imx/imx-image.c
+++ b/scripts/imx/imx-image.c
@@ -442,6 +442,7 @@ struct soc_type {
 };
 
 static struct soc_type socs[] = {
+       { .name = "imx25", .header_version = 1, },
        { .name = "imx35", .header_version = 1, },
        { .name = "imx51", .header_version = 1, },
        { .name = "imx53", .header_version = 2, },
diff --git a/scripts/imx/imx-usb-loader.c b/scripts/imx/imx-usb-loader.c
index 7ccfc99..81c0640 100644
--- a/scripts/imx/imx-usb-loader.c
+++ b/scripts/imx/imx-usb-loader.c
@@ -124,6 +124,13 @@ struct mach_id imx_ids[] = {
                .header_type = HDR_MX51,
                .mode = MODE_BULK,
                .max_transfer = 64,
+       }, {
+               .vid = 0x15a2,
+               .pid = 0x003a,
+               .name = "i.MX25",
+               .header_type = HDR_MX51,
+               .mode = MODE_BULK,
+               .max_transfer = 64,
        },
 };
 
-- 
1.8.4.3


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to