aboutsummaryrefslogtreecommitdiff
path: root/include/configs/sniper.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/configs/sniper.h')
-rw-r--r--include/configs/sniper.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/include/configs/sniper.h b/include/configs/sniper.h
index f17b479904e..3dc8fcc4855 100644
--- a/include/configs/sniper.h
+++ b/include/configs/sniper.h
@@ -211,7 +211,7 @@
*/
/*
- * USB
+ * USB gadget
*/
#define CONFIG_MUSB_GADGET
@@ -223,21 +223,27 @@
#define CONFIG_USB_GADGET_DUALSPEED
#define CONFIG_USB_GADGET_VBUS_DRAW 0
-#define CONFIG_USBDOWNLOAD_GADGET
+/*
+ * Download
+ */
+
+#define CONFIG_USB_GADGET_DOWNLOAD
#define CONFIG_G_DNL_VENDOR_NUM 0x0451
-#define CONFIG_G_DNL_PRODUCT_NUM 0xD022
+#define CONFIG_G_DNL_PRODUCT_NUM 0xd022
#define CONFIG_G_DNL_MANUFACTURER "TI"
/*
* Fastboot
*/
+#define CONFIG_USB_FUNCTION_FASTBOOT
#define CONFIG_CMD_FASTBOOT
-#define CONFIG_USB_FASTBOOT_BUF_ADDR CONFIG_SYS_LOAD_ADDR
-#define CONFIG_USB_FASTBOOT_BUF_SIZE 0x7000000
+
+#define CONFIG_FASTBOOT_BUF_ADDR CONFIG_SYS_LOAD_ADDR
+#define CONFIG_FASTBOOT_BUF_SIZE 0x2000000
#define CONFIG_FASTBOOT_FLASH
-#define CONFIG_FASTBOOT_FLASH_MMC_DEV 0
+#define CONFIG_FASTBOOT_FLASH_MMC_DEV 1
/*
* Commands
@@ -276,7 +282,7 @@
#define CONFIG_BOOTCOMMAND \
"i2c dev 1; i2c md 0x44 0x00 0x10; i2c mw 0x44 0x03 0x00; i2c md 0x44 0x00 0x10; i2c dev 0;" \
- "bdinfo;" \
+ "fastboot 0; fastboot 0;" \
"load mmc 0 0x82000000 recovery.img;" \
"bootm 0x82000000;"
/*