[PATCH 05/23] scripts: imx-usb-loader: Move definitions up
Sascha Hauer
s.hauer at pengutronix.de
Fri Jan 29 02:43:45 PST 2016
The macros are needed earlier in a later patch.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
scripts/imx/imx-usb-loader.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/scripts/imx/imx-usb-loader.c b/scripts/imx/imx-usb-loader.c
index afe24d1..58fa12d 100644
--- a/scripts/imx/imx-usb-loader.c
+++ b/scripts/imx/imx-usb-loader.c
@@ -35,6 +35,11 @@
#define get_min(a, b) (((a) < (b)) ? (a) : (b))
+#define FT_APP 0xaa
+#define FT_CSF 0xcc
+#define FT_DCD 0xee
+#define FT_LOAD_ONLY 0x00
+
int verbose;
struct mach_id {
@@ -1113,11 +1118,6 @@ static int load_file(struct libusb_device_handle *h, struct usb_id *p_id,
return transfer_size;
}
-#define FT_APP 0xaa
-#define FT_CSF 0xcc
-#define FT_DCD 0xee
-#define FT_LOAD_ONLY 0x00
-
static int do_irom_download(struct libusb_device_handle *h, struct usb_id *p_id,
struct usb_work *curr, int verify)
{
--
2.7.0.rc3
More information about the barebox
mailing list