diff options
author | Lukasz Majewski <l.majewski@samsung.com> | 2012-08-06 14:41:11 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2012-09-01 16:21:51 +0200 |
commit | 93a1ab57f340b890e9e5b48b143869bc063d625f (patch) | |
tree | 9c419b1ee722bef6e18f92a6e1b9cdd40fb54153 /include/configs/trats.h | |
parent | a241d6ef43168ff80dfc28eed55f5f94266bda46 (diff) | |
download | u-boot-imx-93a1ab57f340b890e9e5b48b143869bc063d625f.zip u-boot-imx-93a1ab57f340b890e9e5b48b143869bc063d625f.tar.gz u-boot-imx-93a1ab57f340b890e9e5b48b143869bc063d625f.tar.bz2 |
arm:trats: Enable g_dnl composite USB gadget with embedded DFU function on TRATS
Enable the g_dnl composite USB gadget driver with embedded DFU function on it.
It now uses the composite gadget framework to support download specific
USB functions (like enabled DFU or USB Mass Storage).
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'include/configs/trats.h')
-rw-r--r-- | include/configs/trats.h | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/include/configs/trats.h b/include/configs/trats.h index d2dfc9f..7664a79 100644 --- a/include/configs/trats.h +++ b/include/configs/trats.h @@ -95,6 +95,21 @@ #undef CONFIG_CMD_ONENAND #undef CONFIG_CMD_MTDPARTS #define CONFIG_CMD_MMC +#define CONFIG_CMD_DFU + +/* FAT */ +#define CONFIG_CMD_FAT +#define CONFIG_FAT_WRITE + +/* USB Composite download gadget - g_dnl */ +#define CONFIG_USBDOWNLOAD_GADGET +#define CONFIG_DFU_FUNCTION +#define CONFIG_DFU_MMC + +/* USB Samsung's IDs */ +#define CONFIG_G_DNL_VENDOR_NUM 0x04E8 +#define CONFIG_G_DNL_PRODUCT_NUM 0x6601 +#define CONFIG_G_DNL_MANUFACTURER "Samsung" #define CONFIG_BOOTDELAY 1 #define CONFIG_ZERO_BOOTDELAY_CHECK @@ -105,6 +120,11 @@ #define CONFIG_BOOTBLOCK "10" #define CONFIG_ENV_COMMON_BOOT "${console} ${meminfo}" +#define CONFIG_DFU_ALT \ + "dfu_alt_info=" \ + "u-boot mmc 80 400;" \ + "uImage fat 0 2\0" \ + #define CONFIG_ENV_OVERWRITE #define CONFIG_SYS_CONSOLE_INFO_QUIET #define CONFIG_SYS_CONSOLE_IS_IN_ENV @@ -147,7 +167,8 @@ "mmcdev=0\0" \ "mmcbootpart=2\0" \ "mmcrootpart=3\0" \ - "opts=always_resume=1" + "opts=always_resume=1\0" \ + CONFIG_DFU_ALT /* Miscellaneous configurable options */ #define CONFIG_SYS_LONGHELP /* undef to save memory */ @@ -210,6 +231,7 @@ #define CONFIG_USB_GADGET #define CONFIG_USB_GADGET_S3C_UDC_OTG #define CONFIG_USB_GADGET_DUALSPEED +#define CONFIG_USB_GADGET_VBUS_DRAW 2 /* LCD */ #define CONFIG_EXYNOS_FB |