mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] scripts: imx imx-usb-loader: sort USB id list
@ 2016-11-21  7:35 Alexander Kurz
  2016-11-21  7:35 ` [PATCH 2/2] scripts: imx imx-usb-loader: add i.MX6SL support Alexander Kurz
  2016-11-21  8:04 ` [PATCH 1/2] scripts: imx imx-usb-loader: sort USB id list Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Alexander Kurz @ 2016-11-21  7:35 UTC (permalink / raw)
  To: barebox; +Cc: Alexander Kurz

For better readability sort the list of known USB ids by VID and PID.

Signed-off-by: Alexander Kurz <akurz@blala.de>
---
 scripts/imx/imx-usb-loader.c | 56 ++++++++++++++++++++++----------------------
 1 file changed, 28 insertions(+), 28 deletions(-)

diff --git a/scripts/imx/imx-usb-loader.c b/scripts/imx/imx-usb-loader.c
index c0aaa7d..fb80e0e 100644
--- a/scripts/imx/imx-usb-loader.c
+++ b/scripts/imx/imx-usb-loader.c
@@ -84,6 +84,34 @@ struct mach_id imx_ids[] = {
 		.mode = MODE_BULK,
 	}, {
 		.vid = 0x15a2,
+		.pid = 0x0030,
+		.name = "i.MX35",
+		.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,
+	}, {
+		.vid = 0x15a2,
+		.pid = 0x0041,
+		.name = "i.MX51",
+		.header_type = HDR_MX51,
+		.mode = MODE_BULK,
+		.max_transfer = 64,
+	}, {
+		.vid = 0x15a2,
+		.pid = 0x004e,
+		.name = "i.MX53",
+		.header_type = HDR_MX53,
+		.mode = MODE_BULK,
+		.max_transfer = 512,
+	}, {
+		.vid = 0x15a2,
 		.pid = 0x004f,
 		.name = "i.MX28",
 	}, {
@@ -121,34 +149,6 @@ struct mach_id imx_ids[] = {
 		.header_type = HDR_MX53,
 		.mode = MODE_HID,
 		.max_transfer = 1024,
-	}, {
-		.vid = 0x15a2,
-		.pid = 0x0041,
-		.name = "i.MX51",
-		.header_type = HDR_MX51,
-		.mode = MODE_BULK,
-		.max_transfer = 64,
-	}, {
-		.vid = 0x15a2,
-		.pid = 0x004e,
-		.name = "i.MX53",
-		.header_type = HDR_MX53,
-		.mode = MODE_BULK,
-		.max_transfer = 512,
-	}, {
-		.vid = 0x15a2,
-		.pid = 0x0030,
-		.name = "i.MX35",
-		.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,
 	},
 };
 
-- 
2.1.4


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 2/2] scripts: imx imx-usb-loader: add i.MX6SL support
  2016-11-21  7:35 [PATCH 1/2] scripts: imx imx-usb-loader: sort USB id list Alexander Kurz
@ 2016-11-21  7:35 ` Alexander Kurz
  2016-11-21  8:04 ` [PATCH 1/2] scripts: imx imx-usb-loader: sort USB id list Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Alexander Kurz @ 2016-11-21  7:35 UTC (permalink / raw)
  To: barebox; +Cc: Alexander Kurz

Add the i.MX6SL USB id to the list of known ids.

Signed-off-by: Alexander Kurz <akurz@blala.de>
---
 scripts/imx/imx-usb-loader.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/scripts/imx/imx-usb-loader.c b/scripts/imx/imx-usb-loader.c
index fb80e0e..be0894f 100644
--- a/scripts/imx/imx-usb-loader.c
+++ b/scripts/imx/imx-usb-loader.c
@@ -137,6 +137,13 @@ struct mach_id imx_ids[] = {
 		.max_transfer = 1024,
 	}, {
 		.vid = 0x15a2,
+		.pid = 0x0063,
+		.name = "i.MX6sl",
+		.header_type = HDR_MX53,
+		.mode = MODE_HID,
+		.max_transfer = 1024,
+	}, {
+		.vid = 0x15a2,
 		.pid = 0x0071,
 		.name = "i.MX6 SoloX",
 		.header_type = HDR_MX53,
-- 
2.1.4


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] scripts: imx imx-usb-loader: sort USB id list
  2016-11-21  7:35 [PATCH 1/2] scripts: imx imx-usb-loader: sort USB id list Alexander Kurz
  2016-11-21  7:35 ` [PATCH 2/2] scripts: imx imx-usb-loader: add i.MX6SL support Alexander Kurz
@ 2016-11-21  8:04 ` Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2016-11-21  8:04 UTC (permalink / raw)
  To: Alexander Kurz; +Cc: barebox

On Mon, Nov 21, 2016 at 08:35:12AM +0100, Alexander Kurz wrote:
> For better readability sort the list of known USB ids by VID and PID.
> 
> Signed-off-by: Alexander Kurz <akurz@blala.de>
> ---
>  scripts/imx/imx-usb-loader.c | 56 ++++++++++++++++++++++----------------------
>  1 file changed, 28 insertions(+), 28 deletions(-)

Applied, thanks

Sascha

> 
> diff --git a/scripts/imx/imx-usb-loader.c b/scripts/imx/imx-usb-loader.c
> index c0aaa7d..fb80e0e 100644
> --- a/scripts/imx/imx-usb-loader.c
> +++ b/scripts/imx/imx-usb-loader.c
> @@ -84,6 +84,34 @@ struct mach_id imx_ids[] = {
>  		.mode = MODE_BULK,
>  	}, {
>  		.vid = 0x15a2,
> +		.pid = 0x0030,
> +		.name = "i.MX35",
> +		.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,
> +	}, {
> +		.vid = 0x15a2,
> +		.pid = 0x0041,
> +		.name = "i.MX51",
> +		.header_type = HDR_MX51,
> +		.mode = MODE_BULK,
> +		.max_transfer = 64,
> +	}, {
> +		.vid = 0x15a2,
> +		.pid = 0x004e,
> +		.name = "i.MX53",
> +		.header_type = HDR_MX53,
> +		.mode = MODE_BULK,
> +		.max_transfer = 512,
> +	}, {
> +		.vid = 0x15a2,
>  		.pid = 0x004f,
>  		.name = "i.MX28",
>  	}, {
> @@ -121,34 +149,6 @@ struct mach_id imx_ids[] = {
>  		.header_type = HDR_MX53,
>  		.mode = MODE_HID,
>  		.max_transfer = 1024,
> -	}, {
> -		.vid = 0x15a2,
> -		.pid = 0x0041,
> -		.name = "i.MX51",
> -		.header_type = HDR_MX51,
> -		.mode = MODE_BULK,
> -		.max_transfer = 64,
> -	}, {
> -		.vid = 0x15a2,
> -		.pid = 0x004e,
> -		.name = "i.MX53",
> -		.header_type = HDR_MX53,
> -		.mode = MODE_BULK,
> -		.max_transfer = 512,
> -	}, {
> -		.vid = 0x15a2,
> -		.pid = 0x0030,
> -		.name = "i.MX35",
> -		.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,
>  	},
>  };
>  
> -- 
> 2.1.4
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-11-21  8:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-21  7:35 [PATCH 1/2] scripts: imx imx-usb-loader: sort USB id list Alexander Kurz
2016-11-21  7:35 ` [PATCH 2/2] scripts: imx imx-usb-loader: add i.MX6SL support Alexander Kurz
2016-11-21  8:04 ` [PATCH 1/2] scripts: imx imx-usb-loader: sort USB id list Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox