Re: [U-Boot] [PATCH 2/5] misc: scu_api: Add new APIs for clk-imx8 driver

2019-07-02 Thread Peng Fan
> Subject: [PATCH 2/5] misc: scu_api: Add new APIs for clk-imx8 driver > > Add sc_misc_set_control to write the subsystem's DSC GPR registers, and > sc_pm_set_clock_parent to select parent clock source. > > Signed-off-by: Ye Li > --- > arch/arm/include/asm/arch-imx8/sci/sci.h| 4 ++ >

Re: [U-Boot] [PATCH 1/5] imx8: Add lpcg driver for iMX8QM/QXP

2019-07-02 Thread Peng Fan
> Subject: [PATCH 1/5] imx8: Add lpcg driver for iMX8QM/QXP > [...] > > diff --git a/arch/arm/include/asm/arch-imx8/imx8qm_lpcg.h > b/arch/arm/include/asm/arch-imx8/imx8qm_lpcg.h > new file mode 100644 > index 000..692c27f > --- /dev/null > +++ b/arch/arm/include/asm/arch-imx8/imx8qm_lpcg.h

[U-Boot] [PATCH 5/5] net: fec_mxc: Update driver to use full clks for iMX8

2019-07-02 Thread Ye Li
Add support for more clocks used by iMX8 from DTB: ref_clock, tx_2x_clock, ahb_clock And update get clock rate interface to support multiple fec ports. Signed-off-by: Ye Li --- drivers/net/fec_mxc.c | 47 ++- drivers/net/fec_mxc.h | 1 + 2 files chang

[U-Boot] [PATCH 4/5] imx8qm_mek: increase the size of early malloc pool

2019-07-02 Thread Ye Li
Encounter malloc failure in arch_cpu_init_dm when binding "fsl,imx8-mu" node with imx8_scu driver. So increase the early malloc pool to fix the issue. Signed-off-by: Ye Li --- configs/imx8qm_mek_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/imx8qm_mek_defc

[U-Boot] [PATCH 3/5] clk: imx8: Update imx8 clock driver

2019-07-02 Thread Ye Li
Update imx8 clock driver to support LPCG and full clocks tree for some modules aligned with kernel. We classify the clock into serveral types: slice, fixed, lpcg, gpr and mux. Generally slice and fixed clocks are the sources. lpcg, gpr and mux are the downstream of those sources and are used for g

[U-Boot] [PATCH 2/5] misc: scu_api: Add new APIs for clk-imx8 driver

2019-07-02 Thread Ye Li
Add sc_misc_set_control to write the subsystem's DSC GPR registers, and sc_pm_set_clock_parent to select parent clock source. Signed-off-by: Ye Li --- arch/arm/include/asm/arch-imx8/sci/sci.h| 4 ++ arch/arm/include/asm/arch-imx8/sci/svc/pm/api.h | 7 arch/arm/include/asm/arch-imx

[U-Boot] [PATCH 1/5] imx8: Add lpcg driver for iMX8QM/QXP

2019-07-02 Thread Ye Li
Each module may have one or more lpcg registers for SW/HW enabling its clocks. Add lpcg register address and its driver for accessing lpcg. Signed-off-by: Ye Li --- arch/arm/include/asm/arch-imx8/imx8qm_lpcg.h | 200 ++ arch/arm/include/asm/arch-imx8/imx8qxp_lpcg.h | 195

[U-Boot] [PATCH] watchdog: mtk_wdt: Cosmetic cleanup of latest changes

2019-07-02 Thread Stefan Roese
This patch cleans up some coding style related issues in the mtk_wtd driver to make this driver comply again with the U-Boot coding style standards. The only minimal functional change is that the timeout parameter is now passed in (u64) instead of (unsigned int) from mtk_wdt_start() to mtk_wdt_set

Re: [U-Boot] [PATCH 6/6] net: macb: apply sane DMA configuration

2019-07-02 Thread Anup Patel
> -Original Message- > From: U-Boot On Behalf Of Ramon Fried > Sent: Tuesday, June 11, 2019 8:50 PM > To: u-boot@lists.denx.de > Cc: Joe Hershberger > Subject: [U-Boot] [PATCH 6/6] net: macb: apply sane DMA configuration > > DMA configuration was heavily dependent on the HW defaults, a

Re: [U-Boot] [PATCH 4/6] net: macb: add support for SGMII phy interface

2019-07-02 Thread Anup Patel
> -Original Message- > From: U-Boot On Behalf Of Ramon Fried > Sent: Tuesday, June 11, 2019 8:49 PM > To: u-boot@lists.denx.de > Cc: Joe Hershberger > Subject: [U-Boot] [PATCH 4/6] net: macb: add support for SGMII phy > interface > > This patch adds support for the sgmii phy interface,

Re: [U-Boot] [PATCH 5/6] net: macb: add dma_burst_length config

2019-07-02 Thread Anup Patel
> -Original Message- > From: U-Boot On Behalf Of Ramon Fried > Sent: Tuesday, June 11, 2019 8:49 PM > To: u-boot@lists.denx.de > Cc: Joe Hershberger > Subject: [U-Boot] [PATCH 5/6] net: macb: add dma_burst_length config > > GEM support higher DMA burst writes/reads than the default (4)

Re: [U-Boot] [PATCH 3/6] net: macb: use bit access macro from header file

2019-07-02 Thread Anup Patel
> -Original Message- > From: U-Boot On Behalf Of Ramon Fried > Sent: Tuesday, June 11, 2019 8:49 PM > To: u-boot@lists.denx.de > Cc: Joe Hershberger > Subject: [U-Boot] [PATCH 3/6] net: macb: use bit access macro from header > file > > macb.h provides macros for reading/setting bitfiel

Re: [U-Boot] [PATCH 2/6] net: macb: add support for faster clk rates

2019-07-02 Thread Anup Patel
> -Original Message- > From: U-Boot On Behalf Of Ramon Fried > Sent: Tuesday, June 11, 2019 8:49 PM > To: u-boot@lists.denx.de > Cc: Joe Hershberger > Subject: [U-Boot] [PATCH 2/6] net: macb: add support for faster clk rates > > add support for clock rates higher than 2.4Mhz > > Signe

Re: [U-Boot] [PATCH 1/6] net: macb: sync header definitions as taken from Linux

2019-07-02 Thread Anup Patel
> -Original Message- > From: U-Boot On Behalf Of Ramon Fried > Sent: Tuesday, June 11, 2019 8:49 PM > To: u-boot@lists.denx.de > Cc: Joe Hershberger > Subject: [U-Boot] [PATCH 1/6] net: macb: sync header definitions as taken > from Linux > > Few registers and bits were added by Cadence

[U-Boot] [PATCH v2 2/2] arm: qemu: fix failure in flash initialization if booting from TF-A

2019-07-02 Thread AKASHI Takahiro
If U-Boot is loaded and started from TF-A (you need to change SYS_TEXT_BASE to 0x6000), it will hang up at flash initialization. If secure mode is off (default, or -machine virt,secure=off) at qemu, it will provide dtb with two flash memory banks: flash@0 { bank-width =

[U-Boot] [PATCH v2 1/2] arm: move CONFIG_TFABOOT to generic Kconfig

2019-07-02 Thread AKASHI Takahiro
Currently, CONFIG_TFABOOT is located in armv8/fsl-layerscape Kconfig, but it will be also useful for other targets if some additional configuration are necessary. So move it to arch/arm/Kconfig. Please note that CONFIG_TFABOOT still depends on CONFIG_ARCH_SUPPORT_TFABOOT and so the menu won't come

[U-Boot] [PATCH v2 0/2] arm: qemu: fix failure if booting from TF-A

2019-07-02 Thread AKASHI Takahiro
With this patch, hang-up of U-Boot, as described in patch#2, will be fixed if it is loaded and started from TF-A. Changes in v2 (July 3, 2019) * add patch#1 (preparatory patch) * remove a reference to unnecessary patch in the commit message AKASHI Takahiro (2): arm: move CONFIG_TFABOOT to gener

Re: [U-Boot] [PATCH v2 5/9] usb: storage: submit_int_msg -> usb_int_msg

2019-07-02 Thread Bin Meng
On Wed, Jul 3, 2019 at 1:57 AM Michal Suchanek wrote: > > Use the wrapper because the unwrapped function prototype will be changed > in the following patch. > > Signed-off-by: Michal Suchanek > --- > v2: usb_submit_int_msg -> usb_int_msg > --- > common/usb_storage.c | 2 +- > 1 file changed, 1 i

Re: [U-Boot] [PATCH v2 3/9] usb_kdb: only process events succesfully received

2019-07-02 Thread Bin Meng
Hi Michal, On Wed, Jul 3, 2019 at 1:57 AM Michal Suchanek wrote: > > On error the data buffer does not contain valid data so do not submit it > for processing. Usually it will contain the last data recieved so the > last pressed key will be repeated indefinitely on device failure. > > Signed-off-

Re: [U-Boot] Improvements to Rock960

2019-07-02 Thread Mani
Hi Peter, On 1 July 2019 9:35:48 PM IST, Peter Robinson wrote: >Hi, > >Some improvements to the Rock960, tested locally on a v1.2 board. Most >are self explanatory in the patches. Many thanks for your work! The series looks good to me but I don't have time to test it on Rock960 until Friday. H

Re: [U-Boot] [PATCH 1/6 v3] include: configs: ls1028a: set SYS_RX_ETH_BUFFER to 8

2019-07-02 Thread Bin Meng
Hi Alex, On Wed, Jul 3, 2019 at 1:46 AM Alex Marginean wrote: > > Hi Bin, > > On 7/1/2019 11:08 AM, Bin Meng wrote: > > Hi Alex, > > > > On Thu, Jun 20, 2019 at 10:48 PM Alex Marginean > > wrote: > >> > >> LS1028A ethernet interfaces work with at least 8 BDs, set number of buffers > >> to match

Re: [U-Boot] [PATCH 6/6] configs: rockchip: rock960: enable USB3 support

2019-07-02 Thread Mani
On 1 July 2019 9:35:54 PM IST, Peter Robinson wrote: >Enable USB3 support via the dwc3 XHCI driver. > >Signed-off-by: Peter Robinson Reviewed-by: Manivannan Sadhasivam Thanks, Mani >--- > configs/rock960-rk3399_defconfig | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/configs/rock9

Re: [U-Boot] [PATCH 5/6] configs: rockchip: rock960: Add support for USB ethernet adapters

2019-07-02 Thread Mani
On 1 July 2019 9:35:53 PM IST, Peter Robinson wrote: >As the Rock960 doesn't have an onboard wired ethernet interface >it's useful to have some common USB wired ethernet devices added >to enable testing. > >Signed-off-by: Peter Robinson Reviewed-by: Manivannan Sadhasivam Thanks, Mani >--- >

Re: [U-Boot] [PATCH 4/6] configs: rockchip: rock960: enable DMA for SDHCI controller

2019-07-02 Thread Mani
On 1 July 2019 9:35:52 PM IST, Peter Robinson wrote: >Enable the SDMA controller so the eMMC connected to the SDHCI >controller (sdhci@fe33) can make use of it. > >Signed-off-by: Peter Robinson Reviewed-by: Manivannan Sadhasivam Thanks, Mani >--- > configs/rock960-rk3399_defconfig | 1 +

Re: [U-Boot] [PATCH 3/6] configs: rockchip: rock960: enable pmic and regulator commands

2019-07-02 Thread Mani
On 1 July 2019 9:35:51 PM IST, Peter Robinson wrote: >We have both PMIC and Regulator functionality so it's useful to >be able to see output and debug with the commands enabled. > >Signed-off-by: Peter Robinson Reviewed-by: Manivannan Sadhasivam Thanks, Mani >--- > configs/rock960-rk3399_def

Re: [U-Boot] [PATCH 2/6] configs: rockchip: rock960: drop options for non-existent HW

2019-07-02 Thread Mani
On 1 July 2019 9:35:50 PM IST, Peter Robinson wrote: >The Rock960 doesn't contain SPI flash so drop related config options. > >Signed-off-by: Peter Robinson Reviewed-by: Manivannan Sadhasivam Thanks, Mani >--- > configs/rock960-rk3399_defconfig | 2 -- > 1 file changed, 2 deletions(-) > >dif

Re: [U-Boot] [PATCH 1/6] arm64: rockchip: rock960: sync dts files from Linux 5.2-rc6

2019-07-02 Thread Mani
On 1 July 2019 9:35:49 PM IST, Peter Robinson wrote: >Sync the dts files for the Rock960 boards from Linux to get the >latest changes and fixes for the devices. > >Signed-off-by: Peter Robinson Reviewed-by: Manivannan Sadhasivam Thanks, Mani >--- > arch/arm/dts/rk3399-ficus.dts| 92 +++

Re: [U-Boot] [PATCH 1/2] usb: musb-new: Add DA8xx MUSB Glue and enable Host mode

2019-07-02 Thread Marek Vasut
On 7/2/19 11:54 PM, Adam Ford wrote: > On Tue, Jul 2, 2019 at 4:41 PM Marek Vasut wrote: >> >> On 7/2/19 11:30 PM, Adam Ford wrote: >> >> [...] >> >>> @@ -0,0 +-2,466 @@ >>> +// SPDX-License-Identifier: GPL-2.0 >>> +/* >>> + * Texas Instruments da8xx "glue layer" >>> + * >>> + * Copyright (c) 2010

Re: [U-Boot] [PATCH 1/2] usb: musb-new: Add DA8xx MUSB Glue and enable Host mode

2019-07-02 Thread Adam Ford
On Tue, Jul 2, 2019 at 4:41 PM Marek Vasut wrote: > > On 7/2/19 11:30 PM, Adam Ford wrote: > > [...] > > > @@ -0,0 +-2,466 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +/* > > + * Texas Instruments da8xx "glue layer" > > + * > > + * Copyright (c) 2010, by Texas Instruments > > + * > > + * Based

Re: [U-Boot] [PATCH 1/2] usb: musb-new: Add DA8xx MUSB Glue and enable Host mode

2019-07-02 Thread Marek Vasut
On 7/2/19 11:30 PM, Adam Ford wrote: [...] > @@ -0,0 +-2,466 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Texas Instruments da8xx "glue layer" > + * > + * Copyright (c) 2010, by Texas Instruments > + * > + * Based on the DA8xx "glue layer" code. > + * Copyright (c) 2008-2009, MontaVista

Re: [U-Boot] Pull request: u-boot-rockchip/tags/rockchip-for-v2019.07-rc5-2

2019-07-02 Thread Tom Rini
On Tue, Jul 02, 2019 at 05:25:31PM +0800, Kever Yang wrote: > Hi Tom, > > Please pull some rockchip updates: > > - fix for atf bl31_image_info pointer > - fix for rockpro64 vdd_log init > - fix for tinker-rk3288 SPL size too big > > https://travis-ci.org/keveryang/u-boot/builds/553096186 > > T

[U-Boot] [PATCH 1/2] usb: musb-new: Add DA8xx MUSB Glue and enable Host mode

2019-07-02 Thread Adam Ford
The da8xx can support the MUSB OTG controller. This patch enables it in host mode. There is still work to do for device/OTG, but this has been broken for a while, so host-only is still better than nothing at all. Signed-off-by: Adam Ford diff --git a/drivers/usb/musb-new/Kconfig b/drivers/usb/

[U-Boot] [PATCH 2/2] ARM: da850-evm: Enable MUSB USB 2.0 Controller

2019-07-02 Thread Adam Ford
With the MUSB now available with host-only support, this patch enables it for the various versions of the da850-evm. Signed-off-by: Adam Ford diff --git a/configs/da850evm_defconfig b/configs/da850evm_defconfig index 8affb8db23..bfddf4d020 100644 --- a/configs/da850evm_defconfig +++ b/configs/da

Re: [U-Boot] [PATCH v3 3/3] doc: relocate/rename Android README and add BCB overview

2019-07-02 Thread Eugeniu Rosca
Hi Simon, On Sat, Jun 22, 2019 at 08:09:51PM +0100, Simon Glass wrote: > On Thu, 23 May 2019 at 16:33, Eugeniu Rosca wrote: > > > > Rename: > > - doc/{README.avb2 => android/avb2.txt} > > This should be in a separate patch since it isn't related to adding > the new docs, actually. I will incor

Re: [U-Boot] [PATCH v3 3/3] doc: relocate/rename Android README and add BCB overview

2019-07-02 Thread Eugeniu Rosca
Hi Sam, On Tue, Jul 02, 2019 at 09:11:45PM +0300, Sam Protsenko wrote: > Hi Eugeniu, [..] > Sorry for the late review, but it seems like some links to renamed doc > weren't changed properly (easily found by grep). Can you please add > change [1] to this patch, so that we don't need to send it se

Re: [U-Boot] [PATCH v2 2/9] usb: sl811-hcd: return -ENOTSUPP from unimplemented submit_int_msg

2019-07-02 Thread Marek Vasut
On 7/2/19 9:35 PM, Michal Suchánek wrote: > On Tue, 2 Jul 2019 20:41:04 +0200 > Marek Vasut wrote: > >> On 7/2/19 7:55 PM, Michal Suchanek wrote: >> >> Commit message is still missing ... >> >>> Signed-off-by: Michal Suchanek >> [...] > > It says "usb: sl811-hcd: return -ENOTSUPP from unimple

Re: [U-Boot] [PATCH 3/8] usb_kdb: only process events succesfully received

2019-07-02 Thread Marek Vasut
On 7/2/19 9:31 PM, Michal Suchánek wrote: > On Tue, 2 Jul 2019 20:38:27 +0200 > Marek Vasut wrote: > >> On 7/2/19 7:50 PM, Michal Suchánek wrote: >>> On Tue, 2 Jul 2019 18:58:54 +0200 >>> Marek Vasut wrote: >>> On 7/2/19 4:22 PM, Michal Suchánek wrote: > On Tue, 2 Jul 2019 15:11:07

Re: [U-Boot] [PATCH v2] video: backlight: fix pwm invertation

2019-07-02 Thread Anatolij Gustschin
On Tue, 02 Jul 2019 22:08:33 +0200 marvi...@posteo.de marvi...@posteo.de wrote: > Fixes: 57e7775413 ("video: backlight: Parse PWM polarity cell") > > set_pwm will always fail with -ENOSYS if pwm_set_invert is not implemented, > leaving the backlight dark. Fix this by returning no error if > pwm_s

Re: [U-Boot] [BUG] Wandboard fails to boot via U-Boot bootefi, GRUB

2019-07-02 Thread Leif Lindholm
On Tue, Jul 02, 2019 at 07:35:31PM +0200, Heinrich Schuchardt wrote: > > This always felt somewhat precarious to me. > > > > Could you possibly: > > - add 'set debug=linux' in your grub.cfg and paste the logs > > - add some printouts to arm32-stub.c > > ? > > That debug output is ever so strange.

Re: [U-Boot] [PATCH v2 2/9] usb: sl811-hcd: return -ENOTSUPP from unimplemented submit_int_msg

2019-07-02 Thread Michal Suchánek
On Tue, 2 Jul 2019 20:41:04 +0200 Marek Vasut wrote: > On 7/2/19 7:55 PM, Michal Suchanek wrote: > > Commit message is still missing ... > > > Signed-off-by: Michal Suchanek > [...] It says "usb: sl811-hcd: return -ENOTSUPP from unimplemented submit_int_msg" Thanks Michal

Re: [U-Boot] [PATCH 3/8] usb_kdb: only process events succesfully received

2019-07-02 Thread Michal Suchánek
On Tue, 2 Jul 2019 20:38:27 +0200 Marek Vasut wrote: > On 7/2/19 7:50 PM, Michal Suchánek wrote: > > On Tue, 2 Jul 2019 18:58:54 +0200 > > Marek Vasut wrote: > > > >> On 7/2/19 4:22 PM, Michal Suchánek wrote: > >>> On Tue, 2 Jul 2019 15:11:07 +0200 > >>> Marek Vasut wrote: > >>> > >>>

Re: [U-Boot] [PATCH] drivers: net: phy: Ignore PHY ID 0 during PHY probing

2019-07-02 Thread Alex Marginean
Hi Joe, On 7/2/2019 12:17 AM, Joe Hershberger wrote: On Wed, Jun 19, 2019 at 4:07 AM Alexandru Marginean wrote: Current code fails to probe some C45 PHYs that also respond to C22 reads. This is the case for PHYs like Aquantia AQR112, Marvell 88X2242 (as previously posted on the u-boot list).

Re: [U-Boot] [PATCH] drivers: net: phy: Ignore PHY ID 0 during PHY probing

2019-07-02 Thread Alex Marginean
On 7/1/2019 11:15 AM, Bin Meng wrote: Hi Alex, On Wed, Jun 19, 2019 at 5:07 PM Alexandru Marginean wrote: Current code fails to probe some C45 PHYs that also respond to C22 reads. This is the case for PHYs like Aquantia AQR112, Marvell 88X2242 (as previously posted on the u-boot list). If the

Re: [U-Boot] [PATCH v9 0/9] Update SiFive Unleashed Drivers

2019-07-02 Thread Atish Patra
On Tue, 2019-06-25 at 06:30 +, Anup Patel wrote: > This series update SiFive Unleashed clock driver and Cadence MACB > driver > so that: > 1. It is in sync with upstream Linux driver > 2. It uses latest DT bindings as-per upstream Linux driver > > With this series, we can now use latest DT bin

Re: [U-Boot] efi_loader: test_efi_grub_net()

2019-07-02 Thread Alexander Graf
On 02.07.19 18:52, Heinrich Schuchardt wrote: On 7/2/19 6:16 PM, Alexander Graf wrote: On 30.06.19 17:17, Heinrich Schuchardt wrote: Hello Alex, the test/py/tests/test_efi_loader.py test for GRUB is failing for me. I get the following output: => tftpboot 4000 orangepi-pc/grubarm.efi Usi

Re: [U-Boot] What if ATF can be part of U-Boot source, like SPL?

2019-07-02 Thread Marek Vasut
On 6/30/19 3:38 AM, André Przywara wrote: > On 30/06/2019 00:03, Marek Vasut wrote: > > Marek, > > you seem to be quite defensive in your answer I am just correcting the mistakes I perceive in the previous email. >, but I was just talking > against merging ATF into U-Boot, not against U-Boot -

Re: [U-Boot] [PATCH v2 2/9] usb: sl811-hcd: return -ENOTSUPP from unimplemented submit_int_msg

2019-07-02 Thread Marek Vasut
On 7/2/19 7:55 PM, Michal Suchanek wrote: Commit message is still missing ... > Signed-off-by: Michal Suchanek [...] ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 3/8] usb_kdb: only process events succesfully received

2019-07-02 Thread Marek Vasut
On 7/2/19 7:50 PM, Michal Suchánek wrote: > On Tue, 2 Jul 2019 18:58:54 +0200 > Marek Vasut wrote: > >> On 7/2/19 4:22 PM, Michal Suchánek wrote: >>> On Tue, 2 Jul 2019 15:11:07 +0200 >>> Marek Vasut wrote: >>> On 7/2/19 3:04 PM, Michal Suchánek wrote: > On Tue, 2 Jul 2019 13:58:30

Re: [U-Boot] [PATCH] test/py: gpt: Use long options for sgdisk

2019-07-02 Thread Stephen Warren
On 7/2/19 12:20 PM, Sam Protsenko wrote: sgdisk 0.8.10.2 from AOSP doesn't support short options, failing with errors like this: sgdisk: invalid option -- 'U' Test fails due to that error. Let's use long options to make the test work with any sgdisk version. Acked-by: Stephen Warren ..

[U-Boot] [PATCH] test/py: gpt: Use long options for sgdisk

2019-07-02 Thread Sam Protsenko
sgdisk 0.8.10.2 from AOSP doesn't support short options, failing with errors like this: sgdisk: invalid option -- 'U' Test fails due to that error. Let's use long options to make the test work with any sgdisk version. Signed-off-by: Sam Protsenko --- test/py/tests/test_gpt.py | 11 +++-

[U-Boot] [PATCH] test/py: avb: Move AVB test to android dir

2019-07-02 Thread Sam Protsenko
Signed-off-by: Sam Protsenko --- test/py/tests/{ => test_android}/test_avb.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename test/py/tests/{ => test_android}/test_avb.py (100%) diff --git a/test/py/tests/test_avb.py b/test/py/tests/test_android/test_avb.py similarity index 100% ren

[U-Boot] [PATCH] doc: Move fastboot protocol doc to android dir

2019-07-02 Thread Sam Protsenko
Signed-off-by: Sam Protsenko --- .../fastboot-protocol.txt}| 0 doc/android/fastboot.txt | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename doc/{README.android-fastboot-protocol => android/fastboot-protocol.t

Re: [U-Boot] [PATCH v3 3/3] doc: relocate/rename Android README and add BCB overview

2019-07-02 Thread Sam Protsenko
Hi Eugeniu, On Thu, May 23, 2019 at 6:33 PM Eugeniu Rosca wrote: > > Rename: > - doc/{README.avb2 => android/avb2.txt} > - doc/{README.android-fastboot => android/fastboot.txt} > > Add a new file documenting the 'bcb' command: > - doc/android/bcb.txt > > The new directory structure has been re

Re: [U-Boot] [PATCH 3/8] usb_kdb: only process events succesfully received

2019-07-02 Thread Michal Suchánek
On Tue, 2 Jul 2019 19:50:05 +0200 Michal Suchánek wrote: > On Tue, 2 Jul 2019 18:58:54 +0200 > Marek Vasut wrote: > > > On 7/2/19 4:22 PM, Michal Suchánek wrote: > > > On Tue, 2 Jul 2019 15:11:07 +0200 > > > Marek Vasut wrote: > > > > > >> On 7/2/19 3:04 PM, Michal Suchánek wrote: >

Re: [U-Boot] [PATCH v4 6/6] env: am57xx: Implement A/B boot process

2019-07-02 Thread Sam Protsenko
Hi Igor, On Tue, Jul 2, 2019 at 11:51 AM Igor Opaniuk wrote: > > From: Ruslan Trofymenko > > Add support for A/B boot process on AM57xx based boards: > > 1. Define 'slot_suffix' variable (using 'ab_select' command) > 2. Extend 'emmc_android_boot' boot command (add commands for A/B boot >

[U-Boot] [PATCH v2 5/9] usb: storage: submit_int_msg -> usb_int_msg

2019-07-02 Thread Michal Suchanek
Use the wrapper because the unwrapped function prototype will be changed in the following patch. Signed-off-by: Michal Suchanek --- v2: usb_submit_int_msg -> usb_int_msg --- common/usb_storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/usb_storage.c b/common/usb

[U-Boot] [PATCH v2 7/9] usb: add usb_int_msg_nonblock

2019-07-02 Thread Michal Suchanek
Variant of the int_msg wrapper that does not introduce excessive retry delay on error. Signed-off-by: Michal Suchanek --- v2: usb_submit_int_msg -> usb_int_msg --- common/usb.c | 9 + include/usb.h | 2 ++ 2 files changed, 11 insertions(+) diff --git a/common/usb.c b/common/usb.c index

[U-Boot] [PATCH v2 9/9] dwc2: use the nonblock argument in submit_int_msg

2019-07-02 Thread Michal Suchanek
An USB 1.1 keyboard connected to dwc2 through a high-speed hub does not report status until it changes. With this patch you can enable keyboard by pressing a key while USB devices are probed. Without a keypress no state is reported and the probe times out. We don't want to wait for a keypress or ti

[U-Boot] [PATCH v2 4/9] usb: usb_submit_int_msg -> usb_int_msg

2019-07-02 Thread Michal Suchanek
This aligns naming with usb_bulk_msg and usb_control_msg. Signed-off-by: Michal Suchanek --- v2: new patch --- common/usb.c | 2 +- common/usb_kbd.c | 6 +++--- include/usb.h| 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/common/usb.c b/common/usb.c index b70f614d2

[U-Boot] [PATCH v2 8/9] usb: kbd: use usb_int_msg_nonblock for polling

2019-07-02 Thread Michal Suchanek
With the following patch it avoids excessive delays with USB 1.1 keyboard connected to high-speed USB hub conncted to dwc2. Signed-off-by: Michal Suchanek --- v2: usb_submit_int_msg -> usb_int_msg --- common/usb_kbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/usb

[U-Boot] [PATCH v2 3/9] usb_kdb: only process events succesfully received

2019-07-02 Thread Michal Suchanek
On error the data buffer does not contain valid data so do not submit it for processing. Usually it will contain the last data recieved so the last pressed key will be repeated indefinitely on device failure. Signed-off-by: Michal Suchanek --- v2: fix indentation --- common/usb_kbd.c | 7 +++

[U-Boot] [PATCH v2 6/9] usb: Add nonblock argument to submit_int_msg

2019-07-02 Thread Michal Suchanek
This will be used to implement non-blocking keyboard polling in case of errors. Signed-off-by: Michal Suchanek --- v2: ad missing hunk from last patch --- common/usb.c | 2 +- drivers/usb/host/dwc2.c | 12 +++- drivers/usb/host/ehci-hcd.c | 13 ++

[U-Boot] [PATCH v2 2/9] usb: sl811-hcd: return -ENOTSUPP from unimplemented submit_int_msg

2019-07-02 Thread Michal Suchanek
Signed-off-by: Michal Suchanek --- drivers/usb/host/sl811-hcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/sl811-hcd.c b/drivers/usb/host/sl811-hcd.c index daba0dcd1aee..4fd2ad464312 100644 --- a/drivers/usb/host/sl811-hcd.c +++ b/drivers/usb/host/sl811-h

[U-Boot] [PATCH v2 1/9] usb: r8a66597: return -ENOTSUPP from unimplemented submit_int_msg

2019-07-02 Thread Michal Suchanek
Signed-off-by: Michal Suchanek --- drivers/usb/host/r8a66597-hcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/r8a66597-hcd.c b/drivers/usb/host/r8a66597-hcd.c index 3c263e51c160..7b699d3f4788 100644 --- a/drivers/usb/host/r8a66597-hcd.c +++ b/drivers/usb/

[U-Boot] [PATCH 2/2] arm: am57xx: Allow bootm to load larger kernels

2019-07-02 Thread Sam Protsenko
linux-mainline with multi_v7_defconfig + Android configs takes more space than regular TI Android kernel and bootm will fail to load it. Let's increase max kernel size up to 64 MiB to make it possible to run such kernel. Signed-off-by: Sam Protsenko --- include/configs/am57xx_evm.h | 2 ++ 1 fil

[U-Boot] [PATCH 1/2] env: ti: Increase boot partition

2019-07-02 Thread Sam Protsenko
linux-mainline with multi_v7_defconfig + Android configs takes more space than regular TI Android kernel. Let's increase boot partition twice, so that boot_fit.img (with new zImage in it) can fit into "boot" partition. Signed-off-by: Sam Protsenko --- include/environment/ti/boot.h | 2 +- 1 file

Re: [U-Boot] [PATCH v4 5/6] doc: android: Add simple guide for A/B updates

2019-07-02 Thread Sam Protsenko
Hi Igor, On Tue, Jul 2, 2019 at 11:51 AM Igor Opaniuk wrote: > > From: Ruslan Trofymenko > > Add a short documentation for A/B enablement and 'ab_select' command > usage. > > Signed-off-by: Ruslan Trofymenko > Signed-off-by: Igor Opaniuk > Reviewed-by: Alistair Strachan > Reviewed-by: Sam Pro

Re: [U-Boot] [PATCH 3/8] usb_kdb: only process events succesfully received

2019-07-02 Thread Michal Suchánek
On Tue, 2 Jul 2019 18:58:54 +0200 Marek Vasut wrote: > On 7/2/19 4:22 PM, Michal Suchánek wrote: > > On Tue, 2 Jul 2019 15:11:07 +0200 > > Marek Vasut wrote: > > > >> On 7/2/19 3:04 PM, Michal Suchánek wrote: > >>> On Tue, 2 Jul 2019 13:58:30 +0200 > >>> Marek Vasut wrote: > >>> > >>>

Re: [U-Boot] [PATCH 6/6 v3] configs: ls1028a: enable networking options in rds, qds defconfig

2019-07-02 Thread Alex Marginean
On 7/1/2019 11:08 AM, Bin Meng wrote: Hi Alex, On Thu, Jun 20, 2019 at 10:48 PM Alex Marginean wrote: The commit title says: rds. It should be rdb. You're right, I'll fix it. You have a really good eye for detail! Thank you! Alex Enables ethernet, MDIO, PHY drivers for LS1028A RDB a

Re: [U-Boot] [PATCH v4 4/6] test/py: Add base test case for A/B updates

2019-07-02 Thread Sam Protsenko
Hi Igor, On Tue, Jul 2, 2019 at 11:51 AM Igor Opaniuk wrote: > > From: Ruslan Trofymenko > > Add sandbox test for 'ab_select' command. > > Test: ./test/py/test.py --bd sandbox --build -k test_ab > > Signed-off-by: Ruslan Trofymenko > Signed-off-by: Igor Opaniuk > Reviewed-by: Alistair Strachan

Re: [U-Boot] [PATCH 1/6 v3] include: configs: ls1028a: set SYS_RX_ETH_BUFFER to 8

2019-07-02 Thread Alex Marginean
Hi Bin, On 7/1/2019 11:08 AM, Bin Meng wrote: Hi Alex, On Thu, Jun 20, 2019 at 10:48 PM Alex Marginean wrote: LS1028A ethernet interfaces work with at least 8 BDs, set number of buffers to match that. Signed-off-by: Alex Marginean --- include/configs/ls1028a_common.h | 4 1 file ch

Re: [U-Boot] [BUG] Wandboard fails to boot via U-Boot bootefi, GRUB

2019-07-02 Thread Heinrich Schuchardt
On 7/2/19 6:55 PM, Leif Lindholm wrote: Hello Heinrich, On Sat, Jun 29, 2019 at 07:47:10PM +0200, Heinrich Schuchardt wrote: Hello Leif, the Wandboard Quad rev B1 cannot be booted via U-Boot, GRUB-efi-arm. GRUB loads the initial ramdisk into an area which the the mainline 4.19.55 kernel simply

Re: [U-Boot] [BUG] Wandboard fails to boot via U-Boot bootefi, GRUB

2019-07-02 Thread Leif Lindholm
On Tue, Jul 02, 2019 at 07:12:11PM +0200, Heinrich Schuchardt wrote: > > After LoadImage is called, the EFI stub of the kernel image determines > > where the runtime kernel is going to be decompressed to (and I think > > relocates zImage if necessary), and reserves this area, before > > actually ju

Re: [U-Boot] [PATCH 3/8] usb_kdb: only process events succesfully received

2019-07-02 Thread Marek Vasut
On 7/2/19 4:22 PM, Michal Suchánek wrote: > On Tue, 2 Jul 2019 15:11:07 +0200 > Marek Vasut wrote: > >> On 7/2/19 3:04 PM, Michal Suchánek wrote: >>> On Tue, 2 Jul 2019 13:58:30 +0200 >>> Marek Vasut wrote: >>> On 7/1/19 5:56 PM, Michal Suchanek wrote: > Causes unbound key repeat o

Re: [U-Boot] [U-Boot-Custodians] [U-Boot-Board-Maintainers] [ANN] U-Boot v2019.07-rc4 released

2019-07-02 Thread Marek Vasut
On 7/2/19 6:04 PM, Troy Benjegerdes wrote: > > >> On Jun 22, 2019, at 2:43 PM, Marek Vasut wrote: >> >> On 6/22/19 9:12 PM, Heinrich Schuchardt wrote: >>> On 6/22/19 8:15 PM, Simon Glass wrote: Hi, On Sat, 22 Jun 2019 at 16:10, Andreas Färber wrote: > > Hi Simon, > >>

Re: [U-Boot] [BUG] Wandboard fails to boot via U-Boot bootefi, GRUB

2019-07-02 Thread Heinrich Schuchardt
On 7/2/19 6:55 PM, Leif Lindholm wrote: Hello Heinrich, On Sat, Jun 29, 2019 at 07:47:10PM +0200, Heinrich Schuchardt wrote: Hello Leif, the Wandboard Quad rev B1 cannot be booted via U-Boot, GRUB-efi-arm. GRUB loads the initial ramdisk into an area which the the mainline 4.19.55 kernel simply

Re: [U-Boot] [BUG] Wandboard fails to boot via U-Boot bootefi, GRUB

2019-07-02 Thread Leif Lindholm
Hello Heinrich, On Sat, Jun 29, 2019 at 07:47:10PM +0200, Heinrich Schuchardt wrote: > Hello Leif, > > the Wandboard Quad rev B1 cannot be booted via U-Boot, GRUB-efi-arm. > GRUB loads the initial ramdisk into an area which the the mainline > 4.19.55 kernel simply does not accept because it think

Re: [U-Boot] efi_loader: test_efi_grub_net()

2019-07-02 Thread Heinrich Schuchardt
On 7/2/19 6:16 PM, Alexander Graf wrote: On 30.06.19 17:17, Heinrich Schuchardt wrote: Hello Alex, the test/py/tests/test_efi_loader.py test for GRUB is failing for me. I get the following output: => tftpboot 4000 orangepi-pc/grubarm.efi Using ethernet@1c3 device TFTP from server 192.

Re: [U-Boot] [PATCH 1/1] efi_loader: bump UEFI specification number to 2.8

2019-07-02 Thread Alexander Graf
On 28.06.19 19:39, Heinrich Schuchardt wrote: We are implementing UEFI variable RuntimeServicesSupported and set the unimplemented runtime functions return EFI_UNSUPPORTED as described in UEFI specification 2.8. So let's also advertise this specification version in our system table. Signed-off-

Re: [U-Boot] [PATCH 1/1] efi_loader: correct signature of ConvertPointer()

2019-07-02 Thread Alexander Graf
On 29.06.19 03:59, Heinrich Schuchardt wrote: ConvertPointer() must be EFIAPI. The first parameter should be of type efi_uint_t. Use the same parameter name as the UEFI specification. Signed-off-by: Heinrich Schuchardt Reviewed-by: Alexander Graf Alex --- include/efi_api.h | 3 ++-

Re: [U-Boot] [PATCH 1/1] efi_selftest: description of CMD_BOOTEFI_SELFTEST

2019-07-02 Thread Alexander Graf
On 30.06.19 07:27, Heinrich Schuchardt wrote: The current short description has a typo. Let it stand out clear that we provide unit tests. Improve the description of the CMD_BOOTEFI_SELFTEST configuration option. Signed-off-by: Heinrich Schuchardt --- lib/efi_selftest/Kconfig | 8

Re: [U-Boot] efi_loader: test_efi_grub_net()

2019-07-02 Thread Alexander Graf
On 30.06.19 17:17, Heinrich Schuchardt wrote: Hello Alex, the test/py/tests/test_efi_loader.py test for GRUB is failing for me. I get the following output: => tftpboot 4000 orangepi-pc/grubarm.efi Using ethernet@1c3 device TFTP from server 192.168.123.3; our IP address is 192.168.123.8

Re: [U-Boot] [U-Boot-Custodians] [U-Boot-Board-Maintainers] [ANN] U-Boot v2019.07-rc4 released

2019-07-02 Thread Troy Benjegerdes
> On Jun 22, 2019, at 2:43 PM, Marek Vasut wrote: > > On 6/22/19 9:12 PM, Heinrich Schuchardt wrote: >> On 6/22/19 8:15 PM, Simon Glass wrote: >>> Hi, >>> >>> On Sat, 22 Jun 2019 at 16:10, Andreas Färber wrote: Hi Simon, Am 22.06.19 um 16:55 schrieb Simon Glass: > I'

Re: [U-Boot] [PATCH 6/8] usb: add usb_submit_int_msg_nonblock

2019-07-02 Thread Michal Suchánek
On Tue, 2 Jul 2019 23:39:42 +0800 Bin Meng wrote: > On Tue, Jul 2, 2019 at 11:30 PM Michal Suchánek wrote: > > > > On Tue, 2 Jul 2019 23:11:01 +0800 > > Bin Meng wrote: > > > > > Hi Michal, > > > > > > On Tue, Jul 2, 2019 at 10:58 PM Michal Suchánek > > > wrote: > > > > > > > > On Tue, 2

Re: [U-Boot] [PATCH 6/8] usb: add usb_submit_int_msg_nonblock

2019-07-02 Thread Bin Meng
On Tue, Jul 2, 2019 at 11:30 PM Michal Suchánek wrote: > > On Tue, 2 Jul 2019 23:11:01 +0800 > Bin Meng wrote: > > > Hi Michal, > > > > On Tue, Jul 2, 2019 at 10:58 PM Michal Suchánek wrote: > > > > > > On Tue, 2 Jul 2019 22:29:42 +0800 > > > Bin Meng wrote: > > > > > > > Hi Michal, > > > > > >

[U-Boot] [PATCH] ARM: da850evm: Remove legacy OHCI referencs and unify platform

2019-07-02 Thread Adam Ford
OHCI was added with DM_USB support, so there are a few unneeded items in the header file that can be removed. This also unifies da850evm with NOR and NAND booting options so all have OHCI support. Signed-off-by: Adam Ford diff --git a/configs/da850evm_defconfig b/configs/da850evm_defconfig inde

Re: [U-Boot] [PATCH v2] qemu-x86: Use config_distro_bootcmd

2019-07-02 Thread Joshua Watt
On 7/2/19 9:24 AM, Bin Meng wrote: Hi Joshua, On Tue, Jul 2, 2019 at 9:26 PM Joshua Watt wrote: Converts qemu x86 machines to boot using distro_config. The intent is to allow u-boot in qemu to be maximally compatible with many boot methods without having to change the config. Previously, u-bo

Re: [U-Boot] [PATCH 6/8] usb: add usb_submit_int_msg_nonblock

2019-07-02 Thread Michal Suchánek
On Tue, 2 Jul 2019 23:11:01 +0800 Bin Meng wrote: > Hi Michal, > > On Tue, Jul 2, 2019 at 10:58 PM Michal Suchánek wrote: > > > > On Tue, 2 Jul 2019 22:29:42 +0800 > > Bin Meng wrote: > > > > > Hi Michal, > > > > > > On Tue, Jul 2, 2019 at 10:25 PM Michal Suchánek > > > wrote: > > > > >

Re: [U-Boot] [PATCH 6/8] usb: add usb_submit_int_msg_nonblock

2019-07-02 Thread Bin Meng
Hi Michal, On Tue, Jul 2, 2019 at 10:58 PM Michal Suchánek wrote: > > On Tue, 2 Jul 2019 22:29:42 +0800 > Bin Meng wrote: > > > Hi Michal, > > > > On Tue, Jul 2, 2019 at 10:25 PM Michal Suchánek wrote: > > > > > > On Tue, 2 Jul 2019 22:16:02 +0800 > > > Bin Meng wrote: > > > > > > > Hi Michal,

Re: [U-Boot] [PATCH 6/8] usb: add usb_submit_int_msg_nonblock

2019-07-02 Thread Michal Suchánek
On Tue, 2 Jul 2019 22:29:42 +0800 Bin Meng wrote: > Hi Michal, > > On Tue, Jul 2, 2019 at 10:25 PM Michal Suchánek wrote: > > > > On Tue, 2 Jul 2019 22:16:02 +0800 > > Bin Meng wrote: > > > > > Hi Michal, > > > > > > On Tue, Jul 2, 2019 at 10:14 PM Michal Suchánek > > > wrote: > > > > >

Re: [U-Boot] [PATCH 6/8] usb: add usb_submit_int_msg_nonblock

2019-07-02 Thread Bin Meng
Hi Michal, On Tue, Jul 2, 2019 at 10:25 PM Michal Suchánek wrote: > > On Tue, 2 Jul 2019 22:16:02 +0800 > Bin Meng wrote: > > > Hi Michal, > > > > On Tue, Jul 2, 2019 at 10:14 PM Michal Suchánek wrote: > > > > > > On Tue, 2 Jul 2019 13:59:49 +0200 > > > Marek Vasut wrote: > > > > > > > On 7/1/

Re: [U-Boot] [PATCH 6/8] usb: add usb_submit_int_msg_nonblock

2019-07-02 Thread Michal Suchánek
On Tue, 2 Jul 2019 22:16:02 +0800 Bin Meng wrote: > Hi Michal, > > On Tue, Jul 2, 2019 at 10:14 PM Michal Suchánek wrote: > > > > On Tue, 2 Jul 2019 13:59:49 +0200 > > Marek Vasut wrote: > > > > > On 7/1/19 5:56 PM, Michal Suchanek wrote: > > > > Signed-off-by: Michal Suchanek > > > > ---

Re: [U-Boot] [PATCH v2] qemu-x86: Use config_distro_bootcmd

2019-07-02 Thread Bin Meng
Hi Joshua, On Tue, Jul 2, 2019 at 9:26 PM Joshua Watt wrote: > > Converts qemu x86 machines to boot using distro_config. The intent is to > allow u-boot in qemu to be maximally compatible with many boot methods > without having to change the config. Previously, u-boot would only boot > in a very

Re: [U-Boot] [PATCH 3/8] usb_kdb: only process events succesfully received

2019-07-02 Thread Michal Suchánek
On Tue, 2 Jul 2019 15:11:07 +0200 Marek Vasut wrote: > On 7/2/19 3:04 PM, Michal Suchánek wrote: > > On Tue, 2 Jul 2019 13:58:30 +0200 > > Marek Vasut wrote: > > > >> On 7/1/19 5:56 PM, Michal Suchanek wrote: > >>> Causes unbound key repeat on error otherwise. > >>> > >>> Signed-off-by: Mic

Re: [U-Boot] [PATCH v2 4/8] x86: slimbootloader: Add serial driver

2019-07-02 Thread Bin Meng
Hi Aiden, On Wed, Jun 26, 2019 at 7:19 AM Park, Aiden wrote: > > - Get serial port information from the serial port info hob Again, the same question: does this serial port info hob apply to FSP based board? (eg: newer FSP produces such hob for bootloader to use?) If yes, we probably need rename

Re: [U-Boot] [PATCH v2 1/8] x86: Add new slimbootloader CPU type

2019-07-02 Thread Bin Meng
Hi Aiden, On Wed, Jun 26, 2019 at 7:15 AM Park, Aiden wrote: > Since this is the first patch in the series, could you please add a brief description about slim bootloader? > - Added CONFIG_SYS_SLIMBOOTLOADER to enable slimbootloader CPU type nits: Added -> Add > - Added new arch/x86/cpu/slimb

Re: [U-Boot] [PATCH v2 2/8] x86: slimbootloader: Add a function to access HOB

2019-07-02 Thread Bin Meng
Hi Aiden, On Wed, Jun 26, 2019 at 7:17 AM Park, Aiden wrote: > > - Added a function to get a GUID HOB data pointer from hob_list > We need some changes to arch/x86/lib/fsp/fsp_support.c: move these fsp_get_xxx() APIs to a separate module (hob.c?) and rename them to get_xxx() for both FSP based b

Re: [U-Boot] [PATCH v2 7/8] board: Add new slimbootloader board

2019-07-02 Thread Bin Meng
Hi Aiden, On Wed, Jun 26, 2019 at 7:21 AM Park, Aiden wrote: > > - Add new board/slimbootloader directory with minimum codes > - Add slimbootloader configuration files > - Add README in board/slimbootloader/slimbootloader/ > > Signed-off-by: Aiden Park > --- > arch/x86/Kconfig

Re: [U-Boot] [PATCH v2 8/8] x86: Skip setting up MTRRs in slimbootloader

2019-07-02 Thread Bin Meng
On Wed, Jun 26, 2019 at 7:23 AM Park, Aiden wrote: > > The setting up MTRRs have already been done in previous > Slim Bootloader stages. > > Signed-off-by: Aiden Park > --- > arch/x86/lib/init_helpers.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > Reviewed-by: Bin Meng _

Re: [U-Boot] [PATCH v2 3/8] x86: slimbootloader: Add memory configuration

2019-07-02 Thread Bin Meng
Hi Aiden, On Wed, Jun 26, 2019 at 7:18 AM Park, Aiden wrote: > > - Get memory size from the memory map info hob > - Set ram top for U-Boot relocation lower than 4GB > - Provide e820 entries from the memory map info hob > > Signed-off-by: Aiden Park > --- > arch/x86/cpu/slimbootloader/Makefile

  1   2   >