diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2015-07-20 15:17:15 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-08-12 20:47:38 -0400 |
commit | fbdd3299d2ce67aa04b62e44038dd355af349b7e (patch) | |
tree | 7b01b3f44fcd391bffabe45a7ce6870ba3020818 /include/configs/sniper.h | |
parent | 9f4e1e94bb790cd85eb9904a78b396b512e0ce0b (diff) | |
download | u-boot-imx-fbdd3299d2ce67aa04b62e44038dd355af349b7e.zip u-boot-imx-fbdd3299d2ce67aa04b62e44038dd355af349b7e.tar.gz u-boot-imx-fbdd3299d2ce67aa04b62e44038dd355af349b7e.tar.bz2 |
sniper: Fastboot support
This adds support for the fastboot USB gadget, including flashing to the
internal MMC and reboot to bootloader or not.
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Reviewed-by: Tom Rini <trini@konsulko.com>
[trini: Update to use Kconfig for MUSB]
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/configs/sniper.h')
-rw-r--r-- | include/configs/sniper.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/include/configs/sniper.h b/include/configs/sniper.h index f17bb04..b40c4c0 100644 --- a/include/configs/sniper.h +++ b/include/configs/sniper.h @@ -216,6 +216,42 @@ 115200 } /* + * USB gadget + */ + +#define CONFIG_USB_MUSB_PIO_ONLY +#define CONFIG_USB_MUSB_OMAP2PLUS +#define CONFIG_TWL4030_USB + +#define CONFIG_USB_GADGET +#define CONFIG_USB_GADGET_DUALSPEED +#define CONFIG_USB_GADGET_VBUS_DRAW 0 + +/* + * Download + */ + +#define CONFIG_USB_GADGET_DOWNLOAD + +#define CONFIG_G_DNL_VENDOR_NUM 0x0451 +#define CONFIG_G_DNL_PRODUCT_NUM 0xd022 +#define CONFIG_G_DNL_MANUFACTURER "Texas Instruments" + +/* + * Fastboot + */ + +#define CONFIG_USB_FUNCTION_FASTBOOT + +#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_CMD_FASTBOOT + +/* * Environment */ @@ -255,6 +291,8 @@ "setenv boot_mmc_part ${kernel_mmc_part}; " \ "if test reboot-${reboot-mode} = reboot-r; then " \ "echo recovery; setenv boot_mmc_part ${recovery_mmc_part}; fi; " \ + "if test reboot-${reboot-mode} = reboot-b; then " \ + "echo fastboot; fastboot 0; fi; " \ "part start mmc ${boot_mmc_dev} ${boot_mmc_part} boot_mmc_start; " \ "part size mmc ${boot_mmc_dev} ${boot_mmc_part} boot_mmc_size; " \ "mmc dev ${boot_mmc_dev}; " \ |