[U-Boot] [PATCH] fastboot: Fix OUT transaction length alignment

2016-04-13 Thread Semen Protsenko
From: Sam Protsenko Some UDC controllers may require buffer size to be aligned to wMaxPacketSize. It's indicated by gadget->quirk_ep_out_aligned_size field being set to "true" (in UDC driver code). In that case rx_bytes_expected must be aligned to wMaxPacket size, otherwise stuck on transaction w

[U-Boot] [PATCH 7/7 v3] usb: gadget Move: CONFIG_G_DNL_* to Kconfig

2016-04-11 Thread Semen Protsenko
From: Sam Protsenko And also reformat defconfigs using "make savedefconfig" rule. Signed-off-by: Sam Protsenko --- configs/A13-OLinuXino_defconfig | 3 +++ configs/CHIP_defconfig| 3 +++ configs/Cubietruck_defconfig | 3 +++ configs/am335x_baltos_d

[U-Boot] [PATCH 6/7 v3] usb: dwc3: Move CONFIG_USB_DWC3_PHY_* to Kconfig

2016-04-11 Thread Semen Protsenko
From: Sam Protsenko Signed-off-by: Sam Protsenko --- configs/am437x_gp_evm_defconfig | 1 + configs/am437x_sk_evm_defconfig | 1 + configs/am43xx_evm_defconfig | 1 + configs/am43xx_evm_ethboot_defconfig | 1 + configs/am43xx_evm_qspiboot_defconfig

[U-Boot] [PATCH 5/7 v3] usb: dwc3: Move CONFIG_USB_DWC3_OMAP to Kconfig

2016-04-11 Thread Semen Protsenko
From: Sam Protsenko Signed-off-by: Sam Protsenko --- configs/am437x_gp_evm_defconfig | 1 + configs/am437x_sk_evm_defconfig | 1 + configs/am43xx_evm_defconfig | 1 + configs/am43xx_evm_ethboot_defconfig | 1 + configs/am43xx_evm_qspiboot_defconfig

[U-Boot] [PATCH 3/7 v3] usb: gadget: Move CONFIG_USB_GADGET_DOWNLOAD to Kconfig

2016-04-11 Thread Semen Protsenko
From: Sam Protsenko While at it, remove obsolete CONFIG_USBDOWNLOAD_GADGET option from some config headers. This is also probably fixes am335x_baltos board. Signed-off-by: Sam Protsenko --- configs/A13-OLinuXino_defconfig | 1 + configs/CHIP_defconfig| 1 + conf

[U-Boot] [PATCH 1/7 v3] usb: gadget: Move CONFIG_USB_GADGET_VBUS_DRAW to Kconfig

2016-04-11 Thread Semen Protsenko
From: Sam Protsenko The description was borrowed from kernel. Definitions were added to defconfig files in a way that "make savedefconfig" generates exactly the same file as used defconfig. Boards using 0 mA as CONFIG_USB_GADGET_VBUS_DRAW value were moved to use 2 mA (as minimal allowed by Kconf

[U-Boot] [PATCH 4/7 v3] usb: dwc3: Move CONFIG_USB_DWC3_GADGET/HOST to Kconfig

2016-04-11 Thread Semen Protsenko
From: Sam Protsenko Description was borrowed from kernel dwc3 Kconfig. Signed-off-by: Sam Protsenko --- configs/am437x_gp_evm_defconfig | 1 + configs/am437x_sk_evm_defconfig | 1 + configs/am43xx_evm_defconfig | 1 + configs/am43xx_evm_ethboot_defconfig

[U-Boot] [PATCH 0/8 v3] usb: Move DWC3 and some gadget options to Kconfig

2016-04-11 Thread Semen Protsenko
Hi All, This patch series move next options to Kconfigs/defconfigs: - CONFIG_USB_DWC3* - CONFIG_USB_GADGET_VBUS_DRAW - CONFIG_USB_GADGET_DUALSPEED - CONFIG_USB_GADGET_DOWNLOAD - CONFIG_G_DNL_* All defconfig files were post-processed via "make savedefconfig" rule to keep correct order of opt

[U-Boot] [PATCH 2/7 v3] usb: gadget: Move CONFIG_USB_GADGET_DUALSPEED to Kconfig

2016-04-11 Thread Semen Protsenko
From: Sam Protsenko Move CONFIG_USB_GADGET_DUALSPEED option to Kconfig and make all UDC controllers select USB_GADGET_DUALSPEED: - add next options to Kconfig selecting USB_GADGET_DUALSPEED: - USB_GADGET_ATMEL_USBA - USB_GADGET_DWC2_OTG - USB_DWC3 - CI_UDC - make USB_MUSB_GADG

[U-Boot] [PATCH 1/8 v2] usb: gadget: Move CONFIG_USB_GADGET_VBUS_DRAW to Kconfig

2016-04-07 Thread Semen Protsenko
From: Sam Protsenko The description was borrowed from kernel. Definitions were added to defconfig files in a way that "make savedefconfig" generates exactly the same file as used defconfig. Boards using 0 mA as CONFIG_USB_GADGET_VBUS_DRAW value were moved to use 2 mA (as minimal allowed by Kconf

[U-Boot] [PATCH 4/8] usb: gadget: Move CONFIG_USB_GADGET_DOWNLOAD to Kconfig

2016-04-05 Thread Semen Protsenko
From: Sam Protsenko While at it, remove obsolete CONFIG_USBDOWNLOAD_GADGET option from some config headers. This is also probably fixes am335x_baltos board. Signed-off-by: Sam Protsenko --- configs/A13-OLinuXino_defconfig | 1 + configs/CHIP_defconfig| 1 + conf

[U-Boot] [PATCH 7/8] usb: dwc3: Move CONFIG_USB_DWC3_PHY_* to Kconfig

2016-04-05 Thread Semen Protsenko
From: Sam Protsenko Signed-off-by: Sam Protsenko --- configs/am437x_gp_evm_defconfig | 1 + configs/am437x_sk_evm_defconfig | 1 + configs/am43xx_evm_defconfig | 1 + configs/am43xx_evm_ethboot_defconfig | 1 + configs/am43xx_evm_qspiboot_defconfig

[U-Boot] [PATCH 0/8] usb: Move DWC3 and some gadget options to Kconfig

2016-04-05 Thread Semen Protsenko
Hi All, This patch series move next options to Kconfigs/defconfigs: - CONFIG_USB_DWC3* - CONFIG_USB_GADGET_VBUS_DRAW - CONFIG_USB_GADGET_DUALSPEED (partially, only for DWC3 platforms for now) - CONFIG_USB_GADGET_DOWNLOAD - CONFIG_G_DNL_* All defconfig files were post-processed via "make sav

[U-Boot] [PATCH 2/8] usb: gadget: Add CONFIG_USB_GADGET_DUALSPEED to Kconfig

2016-04-05 Thread Semen Protsenko
From: Sam Protsenko It's hard to migrate all configs to this option in one patch, as this option should be selected by UDC controller options, and some of them are not added to Kconfig yet. So let's first add this option to Kconfig and then select it for all controllers one by one. Signed-off-by

[U-Boot] [PATCH 6/8] usb: dwc3: Move CONFIG_USB_DWC3_OMAP to Kconfig

2016-04-05 Thread Semen Protsenko
From: Sam Protsenko Signed-off-by: Sam Protsenko --- configs/am437x_gp_evm_defconfig | 1 + configs/am437x_sk_evm_defconfig | 1 + configs/am43xx_evm_defconfig | 1 + configs/am43xx_evm_ethboot_defconfig | 1 + configs/am43xx_evm_qspiboot_defconfig

[U-Boot] [PATCH 8/8] usb: gadget Move: CONFIG_G_DNL_* to Kconfig

2016-04-05 Thread Semen Protsenko
From: Sam Protsenko And also reformat defconfigs using "make savedefconfig" rule. Signed-off-by: Sam Protsenko --- configs/A13-OLinuXino_defconfig | 3 +++ configs/CHIP_defconfig| 3 +++ configs/Cubietruck_defconfig | 3 +++ configs/am335x_baltos_d

[U-Boot] [PATCH 5/8] usb: dwc3: Move CONFIG_USB_DWC3_GADGET/HOST to Kconfig

2016-04-05 Thread Semen Protsenko
From: Sam Protsenko Description was borrowed from kernel dwc3 Kconfig. Signed-off-by: Sam Protsenko --- configs/am437x_gp_evm_defconfig | 1 + configs/am437x_sk_evm_defconfig | 1 + configs/am43xx_evm_defconfig | 1 + configs/am43xx_evm_ethboot_defconfig

[U-Boot] [PATCH 1/8] usb: gadget: Move CONFIG_USB_GADGET_VBUS_DRAW to Kconfig

2016-04-05 Thread Semen Protsenko
From: Sam Protsenko The description was borrowed from kernel, but allowed range was changed from 2..500 to 0..500, because some boards require this option to be 0. Definitions were added to defconfig files in a way that "make savedefconfig" generates exactly the same file as used defconfig. Sig

[U-Boot] [PATCH 3/8] usb: dwc3: Move CONFIG_USB_DWC3 to Kconfig

2016-04-05 Thread Semen Protsenko
From: Sam Protsenko Also remove CONFIG_USB_GADGET_DUALSPEED from headers that use DWC3 controller, as this option is selected by CONFIG_USB_DWC3. Signed-off-by: Sam Protsenko --- configs/am437x_gp_evm_defconfig | 1 + configs/am437x_sk_evm_defconfig | 1 + configs/am43xx_ev

[U-Boot] [PATCH] arm: socfpga: sr1500: Remove USB_GADGET

2016-04-01 Thread Semen Protsenko
From: Sam Protsenko "buildman" tool revealed that USB_GADGET was enabled by mistake for this board in process of moving that option to Kconfig. Remove it to bring things back to correct state. Signed-off-by: Sam Protsenko --- configs/socfpga_sr1500_defconfig | 2 -- 1 file changed, 2 deletions

[U-Boot] [PATCH v2] usb: gadget: Move CONFIG_USB_GADGET to Kconfig

2016-03-25 Thread Semen Protsenko
From: Sam Protsenko The description was borrowed from kernel. "tristate" type was changed to "bool" (I believe we don't support modules for u-boot yet, right?). CONFIG_USB_GADGET requires CONFIG_USB to be defined too, so add it along as well. Definitions were added to defconfig files in a way th

[U-Boot] [PATCH 2/3] Revert "ARM: DRA7: EMIF: Add 4GB DDR settings"

2016-03-23 Thread Semen Protsenko
From: Sam Protsenko This reverts commit c4a2736ca165167aa38228a60354c6a8950d42f8. --- board/ti/dra7xx/evm.c | 83 ++- 1 file changed, 3 insertions(+), 80 deletions(-) diff --git a/board/ti/dra7xx/evm.c b/board/ti/dra7xx/evm.c index 4e45abf..eb19a6

[U-Boot] [PATCH 3/3] Revert "ARM: DRA7-evm: Update memory info in banks"

2016-03-23 Thread Semen Protsenko
From: Sam Protsenko This reverts commit d468b1781abe3975fdbc1695ef1fcfb48b01732b. --- board/ti/dra7xx/evm.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/board/ti/dra7xx/evm.c b/board/ti/dra7xx/evm.c index eb19a6d..4f60837 100644 --- a/board/ti/dra7xx/evm.c +++ b/board/ti/dr

[U-Boot] [PATCH 1/3] Revert "ARM: DRA7: configs: Prepare for detecting memory > 2GB"

2016-03-23 Thread Semen Protsenko
From: Sam Protsenko This reverts commit 212425b2721bb67273963b7fc517455425948d90. --- include/configs/dra7xx_evm.h | 5 - 1 file changed, 5 deletions(-) diff --git a/include/configs/dra7xx_evm.h b/include/configs/dra7xx_evm.h index c0795ab..6e3a482 100644 --- a/include/configs/dra7xx_evm.h

[U-Boot] [PATCH 0/3] ARM: DRA7: Fix fastboot command

2016-03-23 Thread Semen Protsenko
Hi All, This series reverts recently added patches that break fastboot command. I propose to keep it this way until issue is found and fixed. When I'm trying to run fastboot command, next error occurs: => fas 0 data abort pc : [] lr : [<0020>] reloc pc : [<8081f25e>

[U-Boot] [PATCH] usb: gadget: Move CONFIG_USB_GADGET to Kconfig

2016-03-22 Thread Semen Protsenko
From: Sam Protsenko The description was borrowed from kernel. "tristate" type was changed to "bool" (I believe we don't support modules for u-boot yet, right?). CONFIG_USB_GADGET requires CONFIG_USB to be defined too, so add it along as well. Some platforms weren't ported though: include/co

[U-Boot] [PATCH 5/6] arm: am57xx: Enable 8-bit eMMC access on AM57XX EVM

2016-03-08 Thread Semen Protsenko
From: Sam Protsenko Use 8-bit access instead of 4-bit to speed up eMMC flashing speed. Signed-off-by: Sam Protsenko --- include/configs/am57xx_evm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/am57xx_evm.h b/include/configs/am57xx_evm.h index d075d61..1ab9498 100644 ---

[U-Boot] [PATCH 6/6] arm: am57xx: Keep environment in eMMC

2016-03-08 Thread Semen Protsenko
From: Sam Protsenko Use eMMC (instead of SD card) to store U-Boot environment. Signed-off-by: Sam Protsenko --- include/configs/am57xx_evm.h | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/include/configs/am57xx_evm.h b/include/configs/am57xx_evm.h index 1ab949

[U-Boot] [PATCH 4/6] arm: am57xx: Set serial# variable

2016-03-08 Thread Semen Protsenko
From: Sam Protsenko serial# variable is used to correctly display device ID in "fastboot devices". Signed-off-by: Sam Protsenko --- board/ti/am57xx/board.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/ti/am57xx/board.c b/board/ti/am57xx/board.c index 042f9ab..751de39 100644 --- a/

[U-Boot] [PATCH 0/6] arm: am57xx: Add Fastboot support to AM57XX EVM

2016-03-08 Thread Semen Protsenko
Hi All, This patch series add Fastboot support to TexasInstruments AM57XX EVM board and improves eMMC support. The most of code was borrowed from DRA7 EVM (since this board is very similar to DRA7 EVM). Next commands were tested: - fastboot devices - fastboot getvar - fastboot oem format

[U-Boot] [PATCH 3/6] arm: am57xx: Define Android partition table

2016-03-08 Thread Semen Protsenko
From: Sam Protsenko "fastboot oem format" command reuses "gpt write" command, which in turn requires correct partitions defined in $partitions variable. This patch adds such definition of Android partitions for AM57XX EVM board. By default $partitions variable contains Linux partition table. In

[U-Boot] [PATCH 2/6] arm: am57xx: Enable Fastboot

2016-03-08 Thread Semen Protsenko
From: Sam Protsenko Enable fastboot by default for AM57XX EVM. This is based on following patch modified accordingly: http://git.omapzoom.org/?p=repo/u-boot.git;a=commit;h=b2e04f92b5d91c708b6fd6b79d2266966ac51f4b Signed-off-by: Sam Protsenko --- include/configs/am57xx_evm.h | 11 +++

[U-Boot] [PATCH 1/6] arm: am57xx: Enable USB gadget in AM57XX

2016-03-08 Thread Semen Protsenko
From: Sam Protsenko Enable dwc3, dwc3-omap and PHY for dwc3. Also enable USB gadget. Signed-off-by: Sam Protsenko --- include/configs/am57xx_evm.h | 14 ++ 1 file changed, 14 insertions(+) diff --git a/include/configs/am57xx_evm.h b/include/configs/am57xx_evm.h index 6308cab..9191

[U-Boot] [PATCH] arm: dra7xx: Define Android partition table

2016-02-26 Thread Semen Protsenko
From: Sam Protsenko "fastboot oem format" command reuses "gpt write" command, which in turn requires correct partitions defined in $partitions variable. This patch adds such definition of Android partitions for DRA7XX EVM board. By default $partitions variable contains Linux partition table. In

[U-Boot] [PATCH 2/3] arm: dra7xx: Define Android partition table

2016-02-19 Thread Semen Protsenko
From: Sam Protsenko "fastboot oem format" command reuses "gpt write" command, which in turn requires correct partitions defined in $partitions variable. This patch adds such definition of Android partitions for DRA7XX EVM board. While at it, enable CONFIG_RANDOM_UUID to spare user from providing

[U-Boot] [PATCH 3/3] defconfig: Add dra7xx_evm_android_defconfig

2016-02-19 Thread Semen Protsenko
From: Sam Protsenko Add defconfig for DRA7XX EVM board intended for Android build. This defconfig was derived from configs/dra7xx_evm_defconfig. The only difference for now is that this new config exports Android partition table via $partitions variable. Signed-off-by: Sam Protsenko --- config

[U-Boot] [PATCH 1/3] omap5: Kconfig: Add option to select Android boot

2016-02-19 Thread Semen Protsenko
From: Sam Protsenko We need to differentiate somehow if u-boot build is intended for Android or regular Linux boot. Android requires some specific details from bootloader, such as enabled fastboot and specific partition table. Using this option we can check if user chose Android boot and configur

[U-Boot] [PATCH] usb: gadget: composite: Correct recovery path for register

2016-02-16 Thread Semen Protsenko
From: Sam Protsenko In case when usb_composite_register() failed once (for whatever reason), it will fail further even if all conditions are correct. Example: => fastboot 2 Invalid Controller Index couldn't find an available UDC g_dnl_register: failed!, error: -19 exit not al