public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] warp: Add User Mass Storage support
@ 2015-02-25 12:55 Fabio Estevam
  2015-02-25 12:55 ` [U-Boot] [PATCH 2/2] warp: Select BOUNCE_BUFFER and CMD_EXT options Fabio Estevam
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Fabio Estevam @ 2015-02-25 12:55 UTC (permalink / raw)
  To: u-boot

With UMS support we are able to flash the eMMC from U-boot, which is very 
convenient.

Add UMS support to make the eMMC flashing process easier.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 board/warp/warp.c      |  6 ++++++
 include/configs/warp.h | 26 ++++++++++++++++++++++++++
 2 files changed, 32 insertions(+)

diff --git a/board/warp/warp.c b/board/warp/warp.c
index 3b275c2..21ac5e7 100644
--- a/board/warp/warp.c
+++ b/board/warp/warp.c
@@ -21,6 +21,7 @@
 #include <watchdog.h>
 #include <fsl_esdhc.h>
 #include <mmc.h>
+#include <usb.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -82,6 +83,11 @@ int board_mmc_init(bd_t *bis)
 	return fsl_esdhc_initialize(bis, &usdhc_cfg[0]);
 }
 
+int board_usb_phy_mode(int port)
+{
+	return USB_INIT_DEVICE;
+}
+
 int board_early_init_f(void)
 {
 	setup_iomux_uart();
diff --git a/include/configs/warp.h b/include/configs/warp.h
index 82036e4..cfc2323 100644
--- a/include/configs/warp.h
+++ b/include/configs/warp.h
@@ -120,6 +120,32 @@
 #define CONFIG_CMD_CACHE
 #endif
 
+/* USB Configs */
+#define CONFIG_CMD_USB
+#ifdef CONFIG_CMD_USB
+#define CONFIG_USB_EHCI
+#define CONFIG_USB_EHCI_MX6
+#define CONFIG_USB_STORAGE
+#define CONFIG_EHCI_HCD_INIT_AFTER_RESET
+#define CONFIG_MXC_USB_PORTSC		(PORT_PTS_UTMI | PORT_PTS_PTW)
+#define CONFIG_MXC_USB_FLAGS		0
+#define CONFIG_USB_MAX_CONTROLLER_COUNT	1 /* Only OTG2 port enabled */
+#endif
+
+#define CONFIG_CI_UDC
+#define CONFIG_USBD_HS
+#define CONFIG_USB_GADGET_DUALSPEED
+
+#define CONFIG_USB_GADGET
+#define CONFIG_CMD_USB_MASS_STORAGE
+#define CONFIG_USB_GADGET_MASS_STORAGE
+#define CONFIG_USBDOWNLOAD_GADGET
+#define CONFIG_USB_GADGET_VBUS_DRAW	2
+
+#define CONFIG_G_DNL_VENDOR_NUM		0x0525
+#define CONFIG_G_DNL_PRODUCT_NUM	0xa4a5
+#define CONFIG_G_DNL_MANUFACTURER	"FSL"
+
 #define CONFIG_EXTRA_ENV_SETTINGS \
 	"script=boot.scr\0" \
 	"image=zImage\0" \
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH 2/2] warp: Select BOUNCE_BUFFER and CMD_EXT options
  2015-02-25 12:55 [U-Boot] [PATCH 1/2] warp: Add User Mass Storage support Fabio Estevam
@ 2015-02-25 12:55 ` Fabio Estevam
  2015-02-25 16:27   ` Otavio Salvador
  2015-02-25 16:28 ` [U-Boot] [PATCH 1/2] warp: Add User Mass Storage support Otavio Salvador
  2015-02-27  8:37 ` Stefano Babic
  2 siblings, 1 reply; 7+ messages in thread
From: Fabio Estevam @ 2015-02-25 12:55 UTC (permalink / raw)
  To: u-boot

Add EXT2/EXT4 and BOUNCE_BUFFER support.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 include/configs/warp.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/configs/warp.h b/include/configs/warp.h
index cfc2323..8379cec 100644
--- a/include/configs/warp.h
+++ b/include/configs/warp.h
@@ -46,6 +46,10 @@
 #define CONFIG_MMC
 #define CONFIG_CMD_MMC
 #define CONFIG_GENERIC_MMC
+#define CONFIG_BOUNCE_BUFFER
+#define CONFIG_CMD_EXT2
+#define CONFIG_CMD_EXT4
+#define CONFIG_CMD_EXT4_WRITE
 #define CONFIG_CMD_FAT
 #define CONFIG_DOS_PARTITION
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH 2/2] warp: Select BOUNCE_BUFFER and CMD_EXT options
  2015-02-25 12:55 ` [U-Boot] [PATCH 2/2] warp: Select BOUNCE_BUFFER and CMD_EXT options Fabio Estevam
@ 2015-02-25 16:27   ` Otavio Salvador
  0 siblings, 0 replies; 7+ messages in thread
From: Otavio Salvador @ 2015-02-25 16:27 UTC (permalink / raw)
  To: u-boot

On Wed, Feb 25, 2015 at 9:55 AM, Fabio Estevam
<fabio.estevam@freescale.com> wrote:
> Add EXT2/EXT4 and BOUNCE_BUFFER support.
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>

Acked-by: Otavio Salvador <otavio@ossystems.com.br>


-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH 1/2] warp: Add User Mass Storage support
  2015-02-25 12:55 [U-Boot] [PATCH 1/2] warp: Add User Mass Storage support Fabio Estevam
  2015-02-25 12:55 ` [U-Boot] [PATCH 2/2] warp: Select BOUNCE_BUFFER and CMD_EXT options Fabio Estevam
@ 2015-02-25 16:28 ` Otavio Salvador
  2015-02-27  8:37 ` Stefano Babic
  2 siblings, 0 replies; 7+ messages in thread
From: Otavio Salvador @ 2015-02-25 16:28 UTC (permalink / raw)
  To: u-boot

On Wed, Feb 25, 2015 at 9:55 AM, Fabio Estevam
<fabio.estevam@freescale.com> wrote:
> With UMS support we are able to flash the eMMC from U-boot, which is very
> convenient.
>
> Add UMS support to make the eMMC flashing process easier.
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>

Acked-by: Otavio Salvador <otavio@ossystems.com.br>

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH 1/2] warp: Add User Mass Storage support
  2015-02-25 12:55 [U-Boot] [PATCH 1/2] warp: Add User Mass Storage support Fabio Estevam
  2015-02-25 12:55 ` [U-Boot] [PATCH 2/2] warp: Select BOUNCE_BUFFER and CMD_EXT options Fabio Estevam
  2015-02-25 16:28 ` [U-Boot] [PATCH 1/2] warp: Add User Mass Storage support Otavio Salvador
@ 2015-02-27  8:37 ` Stefano Babic
  2015-02-27  9:04   ` Stefano Babic
  2 siblings, 1 reply; 7+ messages in thread
From: Stefano Babic @ 2015-02-27  8:37 UTC (permalink / raw)
  To: u-boot

Hi Fabio,

On 25/02/2015 13:55, Fabio Estevam wrote:
> With UMS support we are able to flash the eMMC from U-boot, which is very 
> convenient.
> 
> Add UMS support to make the eMMC flashing process easier.
> 

Maybe you want to say USB and not UMS, is it ?

> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
>  board/warp/warp.c      |  6 ++++++
>  include/configs/warp.h | 26 ++++++++++++++++++++++++++
>  2 files changed, 32 insertions(+)
> 
> diff --git a/board/warp/warp.c b/board/warp/warp.c
> index 3b275c2..21ac5e7 100644
> --- a/board/warp/warp.c
> +++ b/board/warp/warp.c
> @@ -21,6 +21,7 @@
>  #include <watchdog.h>
>  #include <fsl_esdhc.h>
>  #include <mmc.h>
> +#include <usb.h>
>  
>  DECLARE_GLOBAL_DATA_PTR;
>  
> @@ -82,6 +83,11 @@ int board_mmc_init(bd_t *bis)
>  	return fsl_esdhc_initialize(bis, &usdhc_cfg[0]);
>  }
>  
> +int board_usb_phy_mode(int port)
> +{
> +	return USB_INIT_DEVICE;
> +}
> +
>  int board_early_init_f(void)
>  {
>  	setup_iomux_uart();
> diff --git a/include/configs/warp.h b/include/configs/warp.h
> index 82036e4..cfc2323 100644
> --- a/include/configs/warp.h
> +++ b/include/configs/warp.h
> @@ -120,6 +120,32 @@
>  #define CONFIG_CMD_CACHE
>  #endif
>  
> +/* USB Configs */
> +#define CONFIG_CMD_USB
> +#ifdef CONFIG_CMD_USB
> +#define CONFIG_USB_EHCI
> +#define CONFIG_USB_EHCI_MX6
> +#define CONFIG_USB_STORAGE
> +#define CONFIG_EHCI_HCD_INIT_AFTER_RESET
> +#define CONFIG_MXC_USB_PORTSC		(PORT_PTS_UTMI | PORT_PTS_PTW)
> +#define CONFIG_MXC_USB_FLAGS		0
> +#define CONFIG_USB_MAX_CONTROLLER_COUNT	1 /* Only OTG2 port enabled */
> +#endif
> +
> +#define CONFIG_CI_UDC
> +#define CONFIG_USBD_HS
> +#define CONFIG_USB_GADGET_DUALSPEED
> +
> +#define CONFIG_USB_GADGET
> +#define CONFIG_CMD_USB_MASS_STORAGE
> +#define CONFIG_USB_GADGET_MASS_STORAGE
> +#define CONFIG_USBDOWNLOAD_GADGET
> +#define CONFIG_USB_GADGET_VBUS_DRAW	2
> +
> +#define CONFIG_G_DNL_VENDOR_NUM		0x0525
> +#define CONFIG_G_DNL_PRODUCT_NUM	0xa4a5
> +#define CONFIG_G_DNL_MANUFACTURER	"FSL"
> +
>  #define CONFIG_EXTRA_ENV_SETTINGS \
>  	"script=boot.scr\0" \
>  	"image=zImage\0" \
> 

Best regards,
Stefano


-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH 1/2] warp: Add User Mass Storage support
  2015-02-27  8:37 ` Stefano Babic
@ 2015-02-27  9:04   ` Stefano Babic
  0 siblings, 0 replies; 7+ messages in thread
From: Stefano Babic @ 2015-02-27  9:04 UTC (permalink / raw)
  To: u-boot

On 27/02/2015 09:37, Stefano Babic wrote:
> Hi Fabio,
> 
> On 25/02/2015 13:55, Fabio Estevam wrote:
>> With UMS support we are able to flash the eMMC from U-boot, which is very 
>> convenient.
>>
>> Add UMS support to make the eMMC flashing process easier.
>>
> 
> Maybe you want to say USB and not UMS, is it ?

ok, after a coffe I get now this is User Mass Storage. I should remember
to take always a coffe before reading patches...


Best regards,
Stefano


-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH 1/2] warp: Add User Mass Storage support
  2015-02-27 12:38 ` [U-Boot] U-Boot Digest, Vol 81, Issue 61 Soeren Moch
@ 2015-02-27 12:40   ` Soeren Moch
  0 siblings, 0 replies; 7+ messages in thread
From: Soeren Moch @ 2015-02-27 12:40 UTC (permalink / raw)
  To: u-boot

[sorry, this was the wrong subject text]
>>> >Hi Fabio,
>>> >
>>> >On 25/02/2015 13:55, Fabio Estevam wrote:
>>>> >>With UMS support we are able to flash the eMMC from U-boot, which is very
>>>> >>convenient.
>>>> >>
>>>> >>Add UMS support to make the eMMC flashing process easier.
>>>> >>
>>> >
>>> >Maybe you want to say USB and not UMS, is it ?
>> ok, after a coffe I get now this is User Mass Storage. I should remember
>> to take always a coffe before reading patches...
>>
> I would say: USB Mass Storage, as the command config option and the USB class is named.
> Only the help text for the u-boot ums command says "User Mass Storage", I have no idea where this comes from.
>
> Regards,
>  Soeren
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-02-27 12:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-25 12:55 [U-Boot] [PATCH 1/2] warp: Add User Mass Storage support Fabio Estevam
2015-02-25 12:55 ` [U-Boot] [PATCH 2/2] warp: Select BOUNCE_BUFFER and CMD_EXT options Fabio Estevam
2015-02-25 16:27   ` Otavio Salvador
2015-02-25 16:28 ` [U-Boot] [PATCH 1/2] warp: Add User Mass Storage support Otavio Salvador
2015-02-27  8:37 ` Stefano Babic
2015-02-27  9:04   ` Stefano Babic
     [not found] <mailman.5.1425034801.843.u-boot@lists.denx.de>
2015-02-27 12:38 ` [U-Boot] U-Boot Digest, Vol 81, Issue 61 Soeren Moch
2015-02-27 12:40   ` [U-Boot] [PATCH 1/2] warp: Add User Mass Storage support Soeren Moch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox