diff mbox

[v4,1/1] Enable Android Fastboot support on am335x_evm board

Message ID 1413198524-15503-1-git-send-email-dileep.katta@linaro.org
State New
Headers show

Commit Message

Dileep Katta Oct. 13, 2014, 11:08 a.m. UTC
Signed-off-by: Dileep Katta <dileep.katta@linaro.org>
---
Changes in v2:
                -None
Changes in v3:
                -None
Changes in v4:
                -None
                -Fastboot flash command changes by Steve Rae are in mainline
                  This enables the code for BeagleBone Black
                  Not submitting the changes made for flash command
 include/configs/am335x_evm.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)

Comments

Tom Rini Oct. 24, 2014, 3:07 p.m. UTC | #1
On Mon, Oct 13, 2014 at 04:38:44PM +0530, Dileep Katta wrote:

> Signed-off-by: Dileep Katta <dileep.katta@linaro.org>
> ---
> Changes in v2:
>                 -None
> Changes in v3:
>                 -None
> Changes in v4:
>                 -None
>                 -Fastboot flash command changes by Steve Rae are in mainline
>                   This enables the code for BeagleBone Black
>                   Not submitting the changes made for flash command
>  include/configs/am335x_evm.h | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
> 
> diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
> index 476430d..73c3153 100644
> --- a/include/configs/am335x_evm.h
> +++ b/include/configs/am335x_evm.h
> @@ -313,6 +313,11 @@
>  #define CONFIG_AM335X_USB0_MODE	MUSB_PERIPHERAL
>  #define CONFIG_AM335X_USB1
>  #define CONFIG_AM335X_USB1_MODE MUSB_HOST
> +/* Fastboot */
> +#define CONFIG_CMD_FASTBOOT
> +#define CONFIG_ANDROID_BOOT_IMAGE
> +#define CONFIG_USB_FASTBOOT_BUF_ADDR	CONFIG_SYS_LOAD_ADDR
> +#define CONFIG_USB_FASTBOOT_BUF_SIZE	0x07000000
>  
>  #ifdef CONFIG_MUSB_HOST
>  #define CONFIG_CMD_USB
> @@ -323,10 +328,18 @@
>  #define CONFIG_USB_ETHER
>  #define CONFIG_USB_ETH_RNDIS
>  #define CONFIG_USBNET_HOST_ADDR	"de:ad:be:af:00:00"
> +#define CONFIG_FASTBOOT_FLASH_MMC_DEV   1
> +/*To support eMMC booting*/

Add spaces

> +#define CONFIG_STORAGE_EMMC
>  
>  /* USB TI's IDs */
> +#ifdef CONFIG_CMD_FASTBOOT
> +#define CONFIG_G_DNL_VENDOR_NUM 0x0451
> +#define CONFIG_G_DNL_PRODUCT_NUM 0xd022 /* TI fastboot PID */
> +#else
>  #define CONFIG_G_DNL_VENDOR_NUM 0x0403
>  #define CONFIG_G_DNL_PRODUCT_NUM 0xBD00
> +#endif
>  #define CONFIG_G_DNL_MANUFACTURER "Texas Instruments"
>  #endif /* CONFIG_MUSB_GADGET */

Please confirm that gadget eth still works with the other VID/PID and
then just always do it.  Thanks!
diff mbox

Patch

diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index 476430d..73c3153 100644
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -313,6 +313,11 @@ 
 #define CONFIG_AM335X_USB0_MODE	MUSB_PERIPHERAL
 #define CONFIG_AM335X_USB1
 #define CONFIG_AM335X_USB1_MODE MUSB_HOST
+/* Fastboot */
+#define CONFIG_CMD_FASTBOOT
+#define CONFIG_ANDROID_BOOT_IMAGE
+#define CONFIG_USB_FASTBOOT_BUF_ADDR	CONFIG_SYS_LOAD_ADDR
+#define CONFIG_USB_FASTBOOT_BUF_SIZE	0x07000000
 
 #ifdef CONFIG_MUSB_HOST
 #define CONFIG_CMD_USB
@@ -323,10 +328,18 @@ 
 #define CONFIG_USB_ETHER
 #define CONFIG_USB_ETH_RNDIS
 #define CONFIG_USBNET_HOST_ADDR	"de:ad:be:af:00:00"
+#define CONFIG_FASTBOOT_FLASH_MMC_DEV   1
+/*To support eMMC booting*/
+#define CONFIG_STORAGE_EMMC
 
 /* USB TI's IDs */
+#ifdef CONFIG_CMD_FASTBOOT
+#define CONFIG_G_DNL_VENDOR_NUM 0x0451
+#define CONFIG_G_DNL_PRODUCT_NUM 0xd022 /* TI fastboot PID */
+#else
 #define CONFIG_G_DNL_VENDOR_NUM 0x0403
 #define CONFIG_G_DNL_PRODUCT_NUM 0xBD00
+#endif
 #define CONFIG_G_DNL_MANUFACTURER "Texas Instruments"
 #endif /* CONFIG_MUSB_GADGET */