[U-Boot] [PATCH 5/5] arm: socfpga: Add example UDC config
Lukasz Majewski
l.majewski at samsung.com
Fri Nov 7 16:28:10 CET 2014
Hi Marek,
> On Friday, November 07, 2014 at 03:40:00 PM, Lukasz Majewski wrote:
> > Hi Marek,
> [...]
> > > + * USB Gadget (DFU, UMS)
> > > + */
> > > +#if defined(CONFIG_CMD_DFU) ||
> > > defined(CONFIG_CMD_USB_MASS_STORAGE) +#define CONFIG_USB_GADGET
> > > +#define CONFIG_USB_GADGET_S3C_UDC_OTG
> > > +#define CONFIG_USB_GADGET_DUALSPEED
> > > +#define CONFIG_USB_GADGET_VBUS_DRAW 2
> > > +
> > > +/* USB Composite download gadget - g_dnl */
> > > +#define CONFIG_USBDOWNLOAD_GADGET
> > > +#define CONFIG_USB_GADGET_MASS_STORAGE
> > > +
> > > +#define CONFIG_DFU_FUNCTION
> > > +#define CONFIG_DFU_MMC
> > > +#define CONFIG_SYS_DFU_DATA_BUF_SIZE (32 * 1024 * 1024)
> > > +#define DFU_DEFAULT_POLL_TIMEOUT 300
> > > +
> > > +/* USB IDs */
> > > +#define CONFIG_G_DNL_VENDOR_NUM 0x0525 /*
> > > NetChip */ +#define CONFIG_G_DNL_PRODUCT_NUM
> > > 0xA4A5 /* Linux-USB File-backed Storage Gadget */ +#define
> > > CONFIG_G_DNL_UMS_VENDOR_NUM CONFIG_G_DNL_VENDOR_NUM
> > > +#define CONFIG_G_DNL_UMS_PRODUCT_NUM
> > > CONFIG_G_DNL_PRODUCT_NUM +#ifndef CONFIG_G_DNL_MANUFACTURER
> > > +#define CONFIG_G_DNL_MANUFACTURER "Altera" +#endif
> > > +#endif
> > > +
> > > +/*
> > >
> > > * U-Boot environment
> > > */
> > >
> > > #define CONFIG_SYS_CONSOLE_IS_IN_ENV
> >
> > Reviewed-by: Lukasz Majewski <l.majewski at samsung.com>
>
> Thanks!
>
> > Tested-by: Lukasz Majewski <l.majewski at samsung.com>
>
> Wow, do you have an SoCFPGA now ? :)
Nope, but I've tested the patch to be 100% sure :-) (as it was the last
one)
>
> Best regards,
> Marek Vasut
--
Best regards,
Lukasz Majewski
Samsung R&D Institute Poland (SRPOL) | Linux Platform Group
More information about the U-Boot
mailing list