[U-Boot] [PATCH 0/2] AM335x_EVM DFU support

This patchset enables DFU for the AM335x_EVM family of boards.
Pantelis Antoniou (2): am335x_evm: Define CONFIG_SYS_CACHELINE_SIZE am335x_evm: Add DFU config
include/configs/am335x_evm.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+)

drivers/usb/gadget/composite.c requires that this is defined early.
Signed-off-by: Pantelis Antoniou panto@antoniou-consulting.com --- include/configs/am335x_evm.h | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index ab9549b..6c8b652 100644 --- a/include/configs/am335x_evm.h +++ b/include/configs/am335x_evm.h @@ -39,6 +39,8 @@ #define CONFIG_SETUP_MEMORY_TAGS #define CONFIG_INITRD_TAG
+#define CONFIG_SYS_CACHELINE_SIZE 64 + /* commands to include */ #include <config_cmd_default.h>

Dear Pantelis Antoniou,
drivers/usb/gadget/composite.c requires that this is defined early.
Signed-off-by: Pantelis Antoniou panto@antoniou-consulting.com
Tom, this is OMAP, I'll leave this set to you, ok?
include/configs/am335x_evm.h | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index ab9549b..6c8b652 100644 --- a/include/configs/am335x_evm.h +++ b/include/configs/am335x_evm.h @@ -39,6 +39,8 @@ #define CONFIG_SETUP_MEMORY_TAGS #define CONFIG_INITRD_TAG
+#define CONFIG_SYS_CACHELINE_SIZE 64
/* commands to include */ #include <config_cmd_default.h>
Best regards, Marek Vasut

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 11/29/12 01:33, Marek Vasut wrote:
Dear Pantelis Antoniou,
drivers/usb/gadget/composite.c requires that this is defined early.
Signed-off-by: Pantelis Antoniou panto@antoniou-consulting.com
Tom, this is OMAP, I'll leave this set to you, ok?
Yes, thanks.
Acked-by: Tom Rini trini@ti.com
Marek, once the DFU stuff is happy, please take these two parts via u-boot-usb.
- -- Tom

Add configuration for using DFU on the am335x_evm boards
Signed-off-by: Pantelis Antoniou panto@antoniou-consulting.com --- include/configs/am335x_evm.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)
diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index 6c8b652..3c1d16d 100644 --- a/include/configs/am335x_evm.h +++ b/include/configs/am335x_evm.h @@ -92,6 +92,7 @@ "setenv fdtfile am335x-evm.dtb; fi; " \ "if test $board_name = A335X_SK; then " \ "setenv fdtfile am335x-evmsk.dtb; fi\0" \ + CONFIG_DFU_ALT
#define CONFIG_BOOTCOMMAND \ "mmc dev ${mmcdev}; if mmc rescan; then " \ @@ -155,6 +156,28 @@ #define CONFIG_CMD_SF #define CONFIG_SF_DEFAULT_SPEED (24000000)
+/* USB Composite download gadget - g_dnl */ +#define CONFIG_USB_GADGET +#define CONFIG_USBDOWNLOAD_GADGET +#define CONFIG_DFU_FUNCTION +#define CONFIG_DFU_MMC + +/* USB TI's IDs */ +#define CONFIG_USBD_HS +#define CONFIG_G_DNL_VENDOR_NUM 0x0403 +#define CONFIG_G_DNL_PRODUCT_NUM 0xBD00 +#define CONFIG_G_DNL_MANUFACTURER "Texas Instruments" + +#define CONFIG_DFU_ALT \ + "dfu_alt_info=" \ + "boot part 0 1;" \ + "rootfs part 0 2;" \ + "MLO fat 0 1;" \ + "u-boot.img fat 0 1;" \ + "uEnv.txt fat 0 1\0" + +#define CONFIG_CMD_DFU + /* Physical Memory Map */ #define CONFIG_NR_DRAM_BANKS 1 /* 1 bank of DRAM */ #define PHYS_DRAM_1 0x80000000 /* DRAM Bank #1 */ @@ -267,6 +290,7 @@ #define CONFIG_MUSB_GADGET #define CONFIG_MUSB_PIO_ONLY #define CONFIG_USB_GADGET_DUALSPEED +#define CONFIG_USB_GADGET_VBUS_DRAW 2 #define CONFIG_MUSB_HOST #define CONFIG_AM335X_USB0 #define CONFIG_AM335X_USB0_MODE MUSB_PERIPHERAL

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 11/29/12 02:34, Pantelis Antoniou wrote:
Add configuration for using DFU on the am335x_evm boards
Signed-off-by: Pantelis Antoniou panto@antoniou-consulting.com
Acked-by: Tom Rini trini@ti.com
- -- Tom
participants (3)
-
Marek Vasut
-
Pantelis Antoniou
-
Tom Rini