[U-Boot] [PATCH v2 0/8] rockchip: enable TPL for tinker-rk3288

2019-06-28 Thread Kever Yang
Tinker board has overflow the SRAM size limit, enable TPL for it so that there will be no size limit for SPL. Also some other fix to bring up Tinker board: - enabel sdmmc pinctrl with dts in SPL - extend raw u-boot.bin size limit Version 2 move related "u-boot,dm-pre-reloc" into -u-boot.dtsi C

[U-Boot] [PATCH v2 1/8] rockchip: rk3288: enable TPL configs to chip level

2019-06-28 Thread Kever Yang
More boards other than vyasa needs TPL, so enable the TPL configs at chip level instead of board level. Signed-off-by: Kever Yang Reviewed-by: Jagan Teki --- Changes in v2: None arch/arm/mach-rockchip/Kconfig| 14 ++ arch/arm/mach-rockchip/rk3288/Kconfig | 14 -

[U-Boot] [PATCH v2 5/8] rockchip: dts: rk3288-tinker: enable sdmmc pinctrl node in spl

2019-06-28 Thread Kever Yang
rockchip pinctrl driver has update to use dts, so we need to add the pinctrl config in SPL for sdmmc. Signed-off-by: Kever Yang --- Changes in v2: - update the tags in -u-boot.dtsi arch/arm/dts/rk3288-tinker-u-boot.dtsi | 24 1 file changed, 24 insertions(+) diff --gi

[U-Boot] [PATCH v2 6/8] rockchip: config: update config for TPL support on tinker-rk3288

2019-06-28 Thread Kever Yang
We need to update TEXT BASE for TPL/SPL/U-Boot; SPL no need relocate STACK after enable TPL, so remove it; Don't enable pinctrl names so that SPL can get pinctrl dts; Signed-off-by: Kever Yang --- Changes in v2: None configs/tinker-rk3288_defconfig | 13 + 1 file changed, 5 inserti

[U-Boot] [PATCH v2 4/8] rockchip: dts: tinker: migrate the dm-pre-reloc tag into -u-boot dts

2019-06-28 Thread Kever Yang
Migrate all the "u-boot,dm-pre-reloc" tag from rk3288-tinker.dts into rk3288-tinker-u-boot.dtsi Signed-off-by: Kever Yang --- Changes in v2: None arch/arm/dts/rk3288-tinker-u-boot.dtsi | 28 ++ arch/arm/dts/rk3288-tinker.dts | 20 +- 2 files chan

[U-Boot] [PATCH v2 3/8] rockchip: dts: rk3288: move reloc tag into -u-boot dts

2019-06-28 Thread Kever Yang
Move all the tag "u-boot,dm-pre-reloc" from rk3288.dtsi into rk3288-u-boot.dtsi. Signed-off-by: Kever Yang --- Changes in v2: None arch/arm/dts/rk3288-u-boot.dtsi | 36 + arch/arm/dts/rk3288.dtsi| 8 2 files changed, 36 insertions(+), 8 deletio

[U-Boot] [PATCH v2 2/8] rockchip: rk3288: add separate TPL STACK address

2019-06-28 Thread Kever Yang
TPL is at SRAM while other stage is at SDRAM, so it needs separate STACK. Signed-off-by: Kever Yang Reviewed-by: Jagan Teki --- Changes in v2: None arch/arm/mach-rockchip/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kc

[U-Boot] [PATCH v2 8/8] rockchip: rk3288: enable TPL for tinker-board

2019-06-28 Thread Kever Yang
All the config for TPL has been update, we can enable the TPL. Signed-off-by: Kever Yang --- Changes in v2: None arch/arm/mach-rockchip/rk3288/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-rockchip/rk3288/Kconfig b/arch/arm/mach-rockchip/rk3288/Kconfig index 541301

[U-Boot] [PATCH v2 7/8] rockchip: config: tiner-rk3288: extend CONFIG_SYS_MONITOR_LEN to 600KB

2019-06-28 Thread Kever Yang
The raw u-boot.bin for tinker board has been about 450KB without debug option, and 550KB with all debug on, and the default value is 200KB, which is not enough for run raw u-boot.bin. Signed-off-by: Kever Yang --- Changes in v2: None include/configs/tinker_rk3288.h | 2 +- 1 file changed, 1 in

[U-Boot] [GIT PULL] Pull request: u-boot-imx u -boot-imx-20190628

2019-06-28 Thread Stefano Babic
0400) are available in the Git repository at: git://www.denx.de/git/u-boot-imx.git u-boot-imx-20190628 for you to fetch changes up to 0ac662da35e48b859b5d43e0c86f233f25730ee5: apalis_imx6: increase phy autoneg timeout (2019-06-28 00:0

Re: [U-Boot] efi_loader: implementing non-volatile UEFI variables

2019-06-28 Thread Wolfgang Denk
Dear Takahiro, In message <20190627051518.gb19...@linaro.org> you wrote: > > In UEFI environment, *not* all the variables are to be authenticated, > but just a few. The signature verification for such "authenticated" > variables should be done *per* variable. I see. > * authenticated variables c

Re: [U-Boot] efi_loader: implementing non-volatile UEFI variables

2019-06-28 Thread Wolfgang Denk
Dear Ilias, In message <20190627070821.GA10271@apalos> you wrote: > > > > > > There have been thoughts about using signed environment storage > > > > > before. This is manageable as long as your environment is read-only. > > > > > But for writing ("env save") you need access to the private key to

Re: [U-Boot] [PATCH 3/5] ARM: socfpga: vining_fpga: Update generated headers

2019-06-28 Thread Simon Goldschmidt
On Thu, Jun 27, 2019 at 2:06 PM Marek Vasut wrote: > > On 6/27/19 11:33 AM, Simon Goldschmidt wrote: > > On Thu, Jun 27, 2019 at 12:21 AM Marek Vasut wrote: > >> > >> Update headers generated by quartus to the latest version. > > > > Would it be good to add the version you used? > > I don't think

Re: [U-Boot] [PATCH] usb: dwc3: Fix default dr_mode setting

2019-06-28 Thread Jean-Jacques Hiblot
On 27/06/2019 18:30, Marek Vasut wrote: On 6/27/19 6:17 PM, Jean-Jacques Hiblot wrote: On 27/06/2019 18:12, Marek Vasut wrote: On 6/27/19 5:53 PM, Jean-Jacques Hiblot wrote: The IS_ENABLED() macro requires the complete CONFIG option including the 'CONFIG_' prefix. Use CONFIG_IS_ENABLED to ma

Re: [U-Boot] [EXT] Re: [v2] board: ls1028a: Add an empty video hw init function

2019-06-28 Thread Wen He
> -Original Message- > From: Bin Meng > Sent: 2019年5月16日 20:15 > To: Wen He ; Simon Glass ; Tom > Rini > Cc: Prabhakar Kushwaha ; Jagdish Gediya > ; u-boot@lists.denx.de > Subject: [EXT] Re: [U-Boot] [v2] board: ls1028a: Add an empty video hw init > function > > Caution: EXT Email > >

[U-Boot] [PULL] u-boot-stm32 for v2019.07​ (round 7)

2019-06-28 Thread Patrice CHOTARD
Hi Tom The following changes since commit 5eea874b5e989e62519824ad140aa086432d01ee:   Merge https://gitlab.denx.de/u-boot/custodians/u-boot-x86 (2019-06-22 12:09:33 -0400) are available in the Git repository at:   https://gitlab.denx.de/u-boot/custodians/u-boot-stm tags/u-boot-stm32-20190628

[U-Boot] U-Boot/EBBR plugfest at ELC-EU?

2019-06-28 Thread Grant Likely
Quick poll: who would be interested in a U-Boot/EBBR plugfest event collocates with ELC-EU this year (week of 28th Oct)? In the EBBR meetings we’ve tossed around the idea of an U-Boot/EBBR plugfest to work out compatibility issues between OS distros and upstream U-Boot SBC support. The idea is

Re: [U-Boot] [PATCH v1 06/11] mmc: if possible, poll the busy state using DAT0

2019-06-28 Thread Jean-Jacques Hiblot
On 28/06/2019 02:07, Marek Vasut wrote: On 6/27/19 12:31 PM, Jean-Jacques Hiblot wrote: Using the DAT0 line as a rdy/busy line is an alternative to reading the status register of the card. It especially useful in situation where the bus is not in a good shape, like when modes are switched. This

[U-Boot] [PATCH 0/4] SiFive SPI MMC Support

2019-06-28 Thread Anup Patel
This patchset adds: 1. SiFive SPI driver 2. New MMC SPI driver based on DM_MMC and DM_SPI 3. Enables SiFive SPI driver and MMC SPI driver for SiFive Unleashed board With this patch series, we can now load files from SD card on SiFive Unleashed board. Many thanks to Bhargav for porting SiFive SPI d

[U-Boot] [PATCH 1/4] spi: Add SiFive SPI driver

2019-06-28 Thread Anup Patel
From: Bhargav Shah This patch adds SiFive SPI driver. The driver is 100% DM driver and it determines input clock using clk framework. The SiFive SPI block is found on SiFive FU540 SOC and is used to access flash and MMC devices on SiFive Unleashed board. This driver implementation is inspired f

[U-Boot] [PATCH 2/4] mmc: skip select_mode_and_width for MMC SPI host

2019-06-28 Thread Anup Patel
The MMC mode and width are fixed for MMC SPI host hence we skip sd_select_mode_and_width() and mmc_select_mode_and_width() for MMC SPI host. Signed-off-by: Anup Patel --- drivers/mmc/mmc.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c i

[U-Boot] [PATCH 3/4] mmc: mmc_spi: Re-write driver using DM framework

2019-06-28 Thread Anup Patel
From: Bhargav Shah This patch rewrites MMC SPI driver using U-Boot DM framework and get it's working on SiFive Unleashed board. Signed-off-by: Bhargav Shah Signed-off-by: Anup Patel --- drivers/mmc/Kconfig | 18 ++ drivers/mmc/mmc_spi.c | 455 ++ 2 f

[U-Boot] [PATCH 4/4] riscv: sifive: fu540: Enable SiFive SPI and MMC SPI drivers

2019-06-28 Thread Anup Patel
From: Bhargav Shah This patch enables SiFive SPI and MMC SPI drivers for the SiFive Unleashed board. Signed-off-by: Bhargav Shah Signed-off-by: Anup Patel --- board/sifive/fu540/Kconfig | 8 1 file changed, 8 insertions(+) diff --git a/board/sifive/fu540/Kconfig b/board/sifive/fu540

Re: [U-Boot] [PATCH v2 2/2] xilinx_xiic: Fix transfer initialisation

2019-06-28 Thread Melin Tomas
Hi, + Richard, Ben On 6/27/19 3:05 PM, Heiko Schocher wrote: > Hi Marek, Tomas, > > Am 27.06.2019 um 13:32 schrieb Marek Vasut: >> On 6/27/19 7:53 AM, Melin Tomas wrote: >>> >>> On 6/27/19 4:41 AM, Marek Vasut wrote: On 6/26/19 8:17 PM, Melin Tomas wrote: > On 6/26/19 4:36 PM, Marek Vas

Re: [U-Boot] [PATCH] fastboot: mmc: add support for flashing boot partitions

2019-06-28 Thread Neil Armstrong
Hi Fabien, On 25/06/2019 18:43, Fabien Parent wrote: > MMC storage supports 4 hardware partitions: > * User partition > * 2 boot partitions > * RPMB partition > > Flashing to the User partition is already supported, and this commit > adds support for flashing to the 2 boot parti

Re: [U-Boot] [PATCH v2 1/2] regulator: Factor out common enable code

2019-06-28 Thread Lukasz Majewski
On Mon, 24 Jun 2019 13:03:33 +0200 s...@svenschwermer.de wrote: > From: Sven Schwermer > > In preparation of being able to enable/disable GPIO regulators, the > code that will be shared among the two kinds to regulators is factored > out into its own source files. > > Signed-off-by: Sven Schwer

Re: [U-Boot] [PATCH v2 2/2] regulator: Allow enabling GPIO regulator

2019-06-28 Thread Lukasz Majewski
On Mon, 24 Jun 2019 13:03:34 +0200 s...@svenschwermer.de wrote: > From: Sven Schwermer > > Drivers need to be able to enable regulators that may be implemented > as GPIO regulators. Example: fsl_esdhc enables the vqmmc supply which > is commonly implemented as a GPIO regulator in order to switch

Re: [U-Boot] [PATCH v2 2/2] xilinx_xiic: Fix transfer initialisation

2019-06-28 Thread Heiko Schocher
Hello Tomas, Am 28.06.2019 um 10:58 schrieb Melin Tomas: Hi, + Richard, Ben On 6/27/19 3:05 PM, Heiko Schocher wrote: Hi Marek, Tomas, Am 27.06.2019 um 13:32 schrieb Marek Vasut: On 6/27/19 7:53 AM, Melin Tomas wrote: On 6/27/19 4:41 AM, Marek Vasut wrote: On 6/26/19 8:17 PM, Melin Toma

Re: [U-Boot] U-Boot/EBBR plugfest at ELC-EU?

2019-06-28 Thread Heinrich Schuchardt
I would be interested in joining. I hope that for the plugfest no ELC conference ticket will be needed. The problems with booting Linux via U-Boot UEFI I know of are on 32bit ARM systems. It could be helpful to have GRUB developers joining. Best regards Heinrich Am 28.06.19 um 10:19 schrie

[U-Boot] [PATCH v3 0/8] rockchip: enable TPL for tinker-rk3288

2019-06-28 Thread Kever Yang
Tinker board has overflow the SRAM size limit, enable TPL for it so that there will be no size limit for SPL. Also some other fix to bring up Tinker board: - enabel sdmmc pinctrl with dts in SPL - extend raw u-boot.bin size limit Version 2 move related "u-boot,dm-pre-reloc" into -u-boot.dtsi C

[U-Boot] [PATCH v3 1/8] rockchip: rk3288: enable TPL configs to chip level

2019-06-28 Thread Kever Yang
More boards other than vyasa needs TPL, so enable the TPL configs at chip level instead of board level. Signed-off-by: Kever Yang Reviewed-by: Jagan Teki --- Changes in v3: None Changes in v2: None arch/arm/mach-rockchip/Kconfig| 14 ++ arch/arm/mach-rockchip/rk3288/Kconfi

[U-Boot] [PATCH v3 2/8] rockchip: rk3288: add separate TPL STACK address

2019-06-28 Thread Kever Yang
TPL is at SRAM while other stage is at SDRAM, so it needs separate STACK. Signed-off-by: Kever Yang Reviewed-by: Jagan Teki --- Changes in v3: None Changes in v2: None arch/arm/mach-rockchip/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/

[U-Boot] [PATCH v3 6/8] rockchip: config: update config for TPL support on tinker-rk3288

2019-06-28 Thread Kever Yang
We need to update TEXT BASE for TPL/SPL/U-Boot; SPL no need relocate STACK after enable TPL, so remove it; Don't enable pinctrl names so that SPL can get pinctrl dts; Signed-off-by: Kever Yang --- Changes in v3: None Changes in v2: None configs/tinker-rk3288_defconfig | 13 + 1 fil

[U-Boot] [PATCH v3 3/8] rockchip: dts: rk3288: move reloc tag into -u-boot dts

2019-06-28 Thread Kever Yang
Move all the tag "u-boot,dm-pre-reloc" from rk3288.dtsi into rk3288-u-boot.dtsi. Signed-off-by: Kever Yang --- Changes in v3: - include "rk3288-u-boot.dtsi" for board already have board level -u-boot.dtsi Changes in v2: None arch/arm/dts/rk3288-u-boot.dtsi | 36 +++

[U-Boot] [PATCH v3 5/8] rockchip: dts: rk3288-tinker: enable sdmmc pinctrl node in spl

2019-06-28 Thread Kever Yang
rockchip pinctrl driver has update to use dts, so we need to add the pinctrl config in SPL for sdmmc. Signed-off-by: Kever Yang --- Changes in v3: None Changes in v2: - update the tags in -u-boot.dtsi arch/arm/dts/rk3288-tinker-u-boot.dtsi | 24 1 file changed, 24 inse

[U-Boot] [PATCH v3 7/8] rockchip: config: tiner-rk3288: extend CONFIG_SYS_MONITOR_LEN to 600KB

2019-06-28 Thread Kever Yang
The raw u-boot.bin for tinker board has been about 450KB without debug option, and 550KB with all debug on, and the default value is 200KB, which is not enough for run raw u-boot.bin. Signed-off-by: Kever Yang --- Changes in v3: None Changes in v2: None include/configs/tinker_rk3288.h | 2 +-

[U-Boot] [PATCH v3 4/8] rockchip: dts: tinker: migrate the dm-pre-reloc tag into -u-boot dts

2019-06-28 Thread Kever Yang
Migrate all the "u-boot,dm-pre-reloc" tag from rk3288-tinker.dts into rk3288-tinker-u-boot.dtsi. When both board level and soc level '-u-boot.dtsi' files exist, we need to include the soc level 'rk3288-u-boot.dtsi' manually. --- Changes in v3: - include "rk3288-u-boot.dtsi" in dts. Signed-off-by:

[U-Boot] [PATCH v3 8/8] rockchip: rk3288: enable TPL for tinker-board

2019-06-28 Thread Kever Yang
All the config for TPL has been update, we can enable the TPL. Signed-off-by: Kever Yang --- Changes in v3: None Changes in v2: None arch/arm/mach-rockchip/rk3288/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-rockchip/rk3288/Kconfig b/arch/arm/mach-rockchip/rk3288/

Re: [U-Boot] U-Boot/EBBR plugfest at ELC-EU?

2019-06-28 Thread Alexander Graf
On 28.06.19 12:03, Heinrich Schuchardt wrote: I would be interested in joining. I hope that for the plugfest no ELC conference ticket will be needed. The easiest option for that would be to submit a talk to ELC-E. IIRC the CfP is still open until July 1st. You could easily give one on "Prog

Re: [U-Boot] [GIT PULL] Pull request: u-boot-imx u -boot-imx-20190628

2019-06-28 Thread Fabio Estevam
Hi Stefano, On Fri, Jun 28, 2019 at 4:26 AM Stefano Babic wrote: > > Hi Tom, > > please pull some fixes for i.MX, thanks ! Could you please also consider the following series for Wandboard? https://patchwork.ozlabs.org/project/uboot/list/?submitter=6978 It fixes a regression for wandboard imx6q

Re: [U-Boot] U-Boot/EBBR plugfest at ELC-EU?

2019-06-28 Thread Leif Lindholm
On Fri, Jun 28, 2019 at 12:17:54PM +0200, Alexander Graf wrote: > On 28.06.19 12:03, Heinrich Schuchardt wrote: > > I would be interested in joining. I hope that for the plugfest no ELC > > conference ticket will be needed. > > The easiest option for that would be to submit a talk to ELC-E. IIRC

[U-Boot] [PATCH v2 1/6] efi_loader: move efi_query_variable_info()

2019-06-28 Thread Heinrich Schuchardt
Let's keep similar things together. Move efi_query_variable_info() to lib/efi_loader/efi_variable.c Signed-off-by: Heinrich Schuchardt --- v2 no change --- include/efi_loader.h | 5 + lib/efi_loader/efi_runtime.c | 27 --- lib/efi_loader/efi_variab

[U-Boot] [PATCH v2 6/6] efi_selftest: test variable services at runtime

2019-06-28 Thread Heinrich Schuchardt
Provide a unit test for the variable services at runtime. Currently we expect EFI_UNSUPPORTED to be returned as the runtime implementation is still missing. Signed-off-by: Heinrich Schuchardt --- v2 rebase patch --- lib/efi_selftest/Makefile | 1 + .../efi_selftest_

[U-Boot] [PATCH v2 3/6] efi_loader: clean up runtime detaching

2019-06-28 Thread Heinrich Schuchardt
The detaching of the runtime will have to move to ExitBootServices() to encompass operating system that do not call SetVirtualAddressMap(). This patch changes the logic for the relocation of the pointers in the runtime table such that the relocation becomes independent of the entries in the detach

[U-Boot] [PATCH v2 5/6] efi_loader: unimplemented runtime services

2019-06-28 Thread Heinrich Schuchardt
Unimplemented runtime services should always return EFI_UNSUPPORTED as described in the UEFI 2.8 spec. Signed-off-by: Heinrich Schuchardt --- v2 no change --- lib/efi_loader/efi_runtime.c | 34 ++ 1 file changed, 2 insertions(+), 32 deletions(-) diff --gi

[U-Boot] [PATCH v2 4/6] efi_loader: let the variable driver patch out the runtime

2019-06-28 Thread Heinrich Schuchardt
Our variable services are only provided at boottime. Therefore when leaving boottime the variable function are replaced by dummy functions returning EFI_UNSUPPORTED. Move this patching of the runtime table to the variable services implementation. Executed it in ExitBootServices(). Signed-off-by: H

[U-Boot] [PATCH v2 0/6] efi_loader: clean up runtime detaching

2019-06-28 Thread Heinrich Schuchardt
This patch series moves the detaching of variable services from SetVirtualAddressMap() to ExitBootServices(). The return value of unimplemented runtime services is changed to EFI_UNSUPPORTED. A unit test for variable services at runtime is implmented. In the current version it expects EFI_UNSUPPO

[U-Boot] [PATCH v2 2/6] efi_loader: initialization of variable services

2019-06-28 Thread Heinrich Schuchardt
Provide an initialization routine for variable services. Signed-off-by: Heinrich Schuchardt --- v2 rebase patch --- include/efi_loader.h | 2 ++ lib/efi_loader/efi_setup.c| 5 + lib/efi_loader/efi_variable.c | 10 ++ 3 files changed, 17 insertions(+) diff --gi

Re: [U-Boot] [GIT PULL] Pull request: u-boot-imx u -boot-imx-20190628

2019-06-28 Thread Stefano Babic
Hi Fabio, On 28/06/19 12:37, Fabio Estevam wrote: > Hi Stefano, > > On Fri, Jun 28, 2019 at 4:26 AM Stefano Babic wrote: >> >> Hi Tom, >> >> please pull some fixes for i.MX, thanks ! > > Could you please also consider the following series for Wandboard? > https://patchwork.ozlabs.org/project/ub

[U-Boot] [PATCH v3 1/2] xilinx_xiic: Fix fill tx fifo loop

2019-06-28 Thread Melin Tomas
Comparison should be against the actual message length, not loop index. len is used for stopping while loop, pos is position in message. stop should be sent when entire message is sent, not when len and pos meet. Signed-off-by: Tomas Melin --- Changes in v2: - Added reasoning to commit message

[U-Boot] [PATCH v3 2/2] xilinx_xiic: Fix transfer initialisation

2019-06-28 Thread Melin Tomas
Prior to starting a new transfer, conditionally wait for bus to not be busy. Reinitialise controller as otherwise operation is not stable. For reference, see linux kernel commit: 9656eeebf3f1 ("i2c: Revert "i2c: xiic: Do not reset controller before every transfer"") Signed-off-by: Tomas Melin --

Re: [U-Boot] [PATCH v3 2/2] xilinx_xiic: Fix transfer initialisation

2019-06-28 Thread Melin Tomas
Hi, On 6/28/19 3:08 PM, Melin Tomas wrote: > Prior to starting a new transfer, conditionally wait for bus to not > be busy. > > Reinitialise controller as otherwise operation is not stable. > For reference, see linux kernel commit: 9656eeebf3f1 ("i2c: Revert > "i2c: xiic: Do not reset controller b

[U-Boot] [PATCH] mmc: rpmb: fix response type of CMD25

2019-06-28 Thread Masahiro Yamada
From: Akio Hirayama The response type of CMD25 is R1 instead of R1b. Signed-off-by: Akio Hirayama [masahiro: add log ] Signed-off-by: Masahiro Yamada --- drivers/mmc/rpmb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/rpmb.c b/drivers/mmc/rpmb.c index 9

Re: [U-Boot] [PATCH] usb: dwc3: Fix default dr_mode setting

2019-06-28 Thread Marek Vasut
On 6/28/19 10:00 AM, Jean-Jacques Hiblot wrote: > > On 27/06/2019 18:30, Marek Vasut wrote: >> On 6/27/19 6:17 PM, Jean-Jacques Hiblot wrote: >>> On 27/06/2019 18:12, Marek Vasut wrote: On 6/27/19 5:53 PM, Jean-Jacques Hiblot wrote: > The IS_ENABLED() macro requires the complete CONFIG op

Re: [U-Boot] [PATCH 3/5] ARM: socfpga: vining_fpga: Update generated headers

2019-06-28 Thread Marek Vasut
On 6/28/19 9:50 AM, Simon Goldschmidt wrote: > On Thu, Jun 27, 2019 at 2:06 PM Marek Vasut wrote: >> >> On 6/27/19 11:33 AM, Simon Goldschmidt wrote: >>> On Thu, Jun 27, 2019 at 12:21 AM Marek Vasut wrote: Update headers generated by quartus to the latest version. >>> >>> Would it be go

Re: [U-Boot] python3 support for pylibfdt

2019-06-28 Thread Peter Robinson
> > > > With the EOL of python2 soon I've been looking at the Fedora U-Boot > > > > builds to see what it would take to move over to python3. There's a > > > > couple of issues building the bundled pylibfdt, the first is the > > > > Makefile hard codes python2, the second is that the generated > >

[U-Boot] [PATCH v2 1/5] fpga: altera: Add some more device sizes

2019-06-28 Thread Alexander Dahl
There seems to be only one place, where this is checked against: `altera_validate()`. It should be non zero. Otherwise it is only used to display it, so it probably does not really matter at the moment. But we had the datasheet open anyway … Sizes in datasheet are bit counts, display here is in by

[U-Boot] [PATCH v2 0/5] fpga: collected patches

2019-06-28 Thread Alexander Dahl
Hei hei, after some Feedback from Michal Simek, I made a v2 of this patch series, and based it onto v2019.07-rc4 now. The patch number 2 is new, fixing all kinds of checkpatch warnings in 'drivers/fpga/cyclon2.c' before fixing the indentation in that file in patch number 3 (which was part of v1 a

[U-Boot] [PATCH v2 5/5] cmd: fpga: Change return value to avoid printing usage text

2019-06-28 Thread Alexander Dahl
In cmd/fpga.c the commands should return enum command_ret_t, e.g. CMD_RET_USAGE, CMD_RET_SUCCESS, or CMD_RET_FAILURE. What they actually do is passing a return value from different 'fpga_' functions. Passing on a return value of -1 from a called function leads to printing out usage text. In case o

[U-Boot] [PATCH v2 2/5] fpga: altera: cyclon2: Fix most checkpatch warnings

2019-06-28 Thread Alexander Dahl
Nothing special, but done before further cleanup. * spacing * braces * __FUNCTION__ → __func__ Suggested-by: Michal Simek Signed-off-by: Alexander Dahl --- drivers/fpga/cyclon2.c | 81 -- 1 file changed, 39 insertions(+), 42 deletions(-) diff --

[U-Boot] [PATCH v2 4/5] fpga: altera: cyclon2: Check function pointer before calling

2019-06-28 Thread Alexander Dahl
As already done for the 'pre' function, a check is added to not follow a NULL pointer, if somebody has not assigned a 'post' function. Signed-off-by: Alexander Dahl --- drivers/fpga/cyclon2.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/fpga/cyclon2.c b/driver

[U-Boot] [PATCH v2 3/5] fpga: altera: cyclon2: Fix indentation

2019-06-28 Thread Alexander Dahl
Some code parts stood too far left … Signed-off-by: Alexander Dahl --- drivers/fpga/cyclon2.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/fpga/cyclon2.c b/drivers/fpga/cyclon2.c index 99a64d437c..ab979b017a 100644 --- a/drivers/f

Re: [U-Boot] [PATCH v3 2/2] xilinx_xiic: Fix transfer initialisation

2019-06-28 Thread Heiko Schocher
Hello Tomas, Am 28.06.2019 um 14:13 schrieb Melin Tomas: Hi, On 6/28/19 3:08 PM, Melin Tomas wrote: Prior to starting a new transfer, conditionally wait for bus to not be busy. Reinitialise controller as otherwise operation is not stable. For reference, see linux kernel commit: 9656eeebf3f1 (

Re: [U-Boot] python3 support for pylibfdt

2019-06-28 Thread Tom Rini
On Fri, Jun 28, 2019 at 01:38:01PM +0100, Peter Robinson wrote: > > > > > With the EOL of python2 soon I've been looking at the Fedora U-Boot > > > > > builds to see what it would take to move over to python3. There's a > > > > > couple of issues building the bundled pylibfdt, the first is the > >

[U-Boot] [PATCH 2/4] ARM: dts: stm32: Use kernel qspi compatible string for stm32f469-disco-uboot.dtsi

2019-06-28 Thread Patrice Chotard
For STM32 QSPI driver, "st,stm32-qspi" compatible string was first introduced in U-boot. But later in kernel side, "st,stm32f469-qspi" was used. To simplify, align U-boot QSPI compatible string with kernel one. Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32f469-disco-u-boot.dtsi | 2 +-

[U-Boot] [PATCH 4/4] doc: device-tree-bindings: alignment with v5.2-rc6 for spi-stm32-qspi.txt

2019-06-28 Thread Patrice Chotard
Align doc/device-tree-bindings/spi/spi-stm32-qspi.txt with kernel v5.2-rc6 Signed-off-by: Patrice Chotard --- .../spi/spi-stm32-qspi.txt| 71 ++- 1 file changed, 38 insertions(+), 33 deletions(-) diff --git a/doc/device-tree-bindings/spi/spi-stm32-qspi.txt

[U-Boot] [PATCH 1/4] ARM: dts: stm32: Use kernel qspi compatible string for stm32f7-uboot.dtsi

2019-06-28 Thread Patrice Chotard
For STM32 QSPI driver, "st,stm32-qspi" compatible string was first introduced in U-boot. But later in kernel side, "st,stm32f469-qspi" was used. To simplify, align U-boot QSPI compatible string with kernel one. Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32f7-u-boot.dtsi | 2 +- 1 file c

[U-Boot] [PATCH 3/4] spi: stm32_qspi: Remove "st, stm32-qspi" compatible string

2019-06-28 Thread Patrice Chotard
"st,stm32-qspi" is no more used, remove it. Signed-off-by: Patrice Chotard --- drivers/spi/stm32_qspi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/spi/stm32_qspi.c b/drivers/spi/stm32_qspi.c index bb1067ff4a..c5878e4058 100644 --- a/drivers/spi/stm32_qspi.c +++ b/drivers/spi/stm

[U-Boot] [PATCH 0/4] Align QSPI compatible string with kernel one:

2019-06-28 Thread Patrice Chotard
Initially, QSPI compatible string was first introduced in U-boot. On kernel side a different one was used, so align U-boot with kernel. Patrice Chotard (4): ARM: dts: stm32: Use kernel qspi compatible string for stm32f7-uboot.dtsi ARM: dts: stm32: Use kernel qspi compatible string for

Re: [U-Boot] U-Boot/EBBR plugfest at ELC-EU?

2019-06-28 Thread Neil Armstrong
On 28/06/2019 10:19, Grant Likely wrote: > Quick poll: who would be interested in a U-Boot/EBBR plugfest event > collocates with ELC-EU this year (week of 28th Oct)? > > In the EBBR meetings we’ve tossed around the idea of an U-Boot/EBBR plugfest > to work out compatibility issues between OS dis

Re: [U-Boot] [PATCH v1 06/11] mmc: if possible, poll the busy state using DAT0

2019-06-28 Thread Marek Vasut
On 6/28/19 10:28 AM, Jean-Jacques Hiblot wrote: > > On 28/06/2019 02:07, Marek Vasut wrote: >> On 6/27/19 12:31 PM, Jean-Jacques Hiblot wrote: >>> Using the DAT0 line as a rdy/busy line is an alternative to reading the >>> status register of the card. It especially useful in situation where the >>

Re: [U-Boot] python3 support for pylibfdt

2019-06-28 Thread Simon Glass
Hi Tom, On Fri, 28 Jun 2019 at 06:51, Tom Rini wrote: > > On Fri, Jun 28, 2019 at 01:38:01PM +0100, Peter Robinson wrote: > > > > > > With the EOL of python2 soon I've been looking at the Fedora U-Boot > > > > > > builds to see what it would take to move over to python3. There's a > > > > > > cou

Re: [U-Boot] [PATCH 00/17] sandbox: Various bug fixes

2019-06-28 Thread Simon Glass
Hi, On Sat, 18 May 2019 at 11:59, Simon Glass wrote: > > This series collects together a lot of fixes for sandbox (mostly) that > were discovered in the last release. Most of them are minor. > > > Simon Glass (17): > spl: misc: Allow misc drivers in SPL and TPL > Add an empty stdint.h file >

Re: [U-Boot] [PATCH 1/2] fdtdec: test: Fix memory leak

2019-06-28 Thread Simon Glass
On Tue, 21 May 2019 at 10:43, Simon Glass wrote: > > Hi Thierry, > > On Tue, 21 May 2019 at 04:21, Thierry Reding wrote: > > > > On Mon, May 20, 2019 at 02:51:08PM -0600, Simon Glass wrote: > > > Hi Thierry, > > > > > > On Mon, 20 May 2019 at 10:05, Thierry Reding > > > wrote: > > > > > > > > F

Re: [U-Boot] [PATCH v3 1/3] test: check u-boot properties in SPL device tree

2019-06-28 Thread Simon Glass
On Tue, 21 May 2019 at 18:53, Simon Glass wrote: > > On Tue, 21 May 2019 at 11:19, Patrick Delaunay > wrote: > > > > Add a test to check the management of the U-boot relocation properties > > for device tree SPL generation (fdtgrep result) and platdata: > > - 'dm-pre-proper' and 'dm-tpl' not inc

Re: [U-Boot] [PATCH 1/1] imx6: wandboard: allow booting from MMC 2

2019-06-28 Thread Simon Glass
On Sun, 23 Jun 2019 at 07:33, Fabio Estevam wrote: > > Hi Heinrich, > > On Sun, Jun 23, 2019 at 4:55 AM Heinrich Schuchardt > wrote: > > > > One of the SD-CARD slots on the Wandboard Quad B1 is MMC 2. Enable it as a > > boot device. > > > > Signed-off-by: Heinrich Schuchardt > > Reviewed-by: Fa

Re: [U-Boot] [PATCH 1/1] trace: undefined reference to `trace_early_init'

2019-06-28 Thread Simon Glass
On Sat, 22 Jun 2019 at 13:10, Simon Glass wrote: > > On Sat, 1 Jun 2019 at 23:59, Heinrich Schuchardt wrote: > > > > Compiling with TRACE but without TRACE_EARLY results in an error > > aarch64-linux-gnu-ld.bfd: > > common/built-in.o:(.rodata.init_sequence_f+0x10): > > undefined reference to `tra

Re: [U-Boot] [PATCH v3 3/3] dm: doc: add documentation for pre-reloc properties in SPL and TPL

2019-06-28 Thread Simon Glass
On Tue, 21 May 2019 at 11:19, Patrick Delaunay wrote: > > Add documentation for the pre-reloc property in SPL and TPL device-tree: > - u-boot,dm-pre-proper > - u-boot,dm-pre-reloc > - u-boot,dm-spl > - u-boot,dm-tpl > > Signed-off-by: Patrick Delaunay > Reviewed-by: Simon Glass > --- > > Changes

Re: [U-Boot] [PATCH 2/4 v3] drivers: pci: add map_bar support for Enhanced Allocation

2019-06-28 Thread Simon Glass
On Fri, 7 Jun 2019 at 02:24, Alex Marginean wrote: > > Makes dm_pci_map_bar API available for integrated PCI devices that > support Enhanced Allocation instead of the original PCI BAR mechanism. > > Signed-off-by: Alex Marginean > Reviewed-by: Bin Meng > --- > > Changes in v2: > - fixed

Re: [U-Boot] [PATCH 4/4 v3] drivers: pci: add API to issue FLR on a PCI function if supported

2019-06-28 Thread Simon Glass
On Fri, 7 Jun 2019 at 02:24, Alex Marginean wrote: > > Adds dm_pci_flr API that issues a Function Level reset on a PCI-e function, > if FLR is supported. > > Signed-off-by: Alex Marginean > Reviewed-by: Bin Meng > --- > > Changes in v2: > - Use kernel PCI_EXP macros for register offsets

Re: [U-Boot] [PATCH 1/4 v2] pci: fixed dm_pci_map_bar comment

2019-06-28 Thread Simon Glass
On Wed, 5 Jun 2019 at 04:05, Bin Meng wrote: > > On Tue, Jun 4, 2019 at 8:46 PM Alex Marginean wrote: > > > > The comment now indicates that the input argument bar is a register offset, > > not a BAR index. > > It also mentions which BARs are supported for type 0/1 and that the > > function can r

Re: [U-Boot] [PATCH 1/1] trace: make call depth limit customizable

2019-06-28 Thread Simon Glass
On Sat, 22 Jun 2019 at 13:10, Simon Glass wrote: > > On Sun, 2 Jun 2019 at 12:30, Heinrich Schuchardt wrote: > > > > Up to now we had hard coded values for the call depth up to which trace > > records are created: 200 for early tracing, 15 thereafter. UEFI > > applications reach a call depth of 8

Re: [U-Boot] [PATCH 1/1] trace: do not limit trace buffer to 2GiB

2019-06-28 Thread Simon Glass
On Sat, 22 Jun 2019 at 13:10, Simon Glass wrote: > > On Fri, 14 Jun 2019 at 20:51, Heinrich Schuchardt wrote: > > > > There is no good reason to limit the trace buffer to 2GiB on a 64bit > > system. Adjust the types of the relevant parameters. > > > > Signed-off-by: Heinrich Schuchardt > > --- >

Re: [U-Boot] [PATCH 1/1] trace: conserve gd register

2019-06-28 Thread Simon Glass
On Sat, 22 Jun 2019 at 13:10, Simon Glass wrote: > > On Sun, 2 Jun 2019 at 12:05, Heinrich Schuchardt wrote: > > > > An UEFI application may change the value of the register that gd lives in. > > But some of our functions like get_ticks() access this register. So we > > have to set the gd registe

Re: [U-Boot] [PATCH v3 0/3] fdt: Allow indicating a node is for U-Boot proper only

2019-06-28 Thread Simon Glass
On Thu, 13 Jun 2019 at 10:33, Simon Glass wrote: > > Hi Patrick, > > On Thu, 13 Jun 2019 at 09:12, Patrick DELAUNAY > wrote: > > > > Hi Simon, > > > > > > > > Hi, > > > > > > I create this serie with: > > > > > > 1/ documentation update for previous patch > > >[U-Boot,v2] dm: remove pre relo

Re: [U-Boot] [PATCH 3/4 v3] test: dm: Add a test for PCI Enhanced Allocation

2019-06-28 Thread Simon Glass
On Fri, 7 Jun 2019 at 02:24, Alex Marginean wrote: > > This test is built on top of the existing swap_case driver. It adds EA > capability structure support to swap_case and uses that to map BARs. > BAR1 works as it used to, swapping upper/lower case. BARs 2,4 map to a > couple of magic values.

Re: [U-Boot] [PATCH 1/1] trace: trace buffer may exceed 2GiB

2019-06-28 Thread Simon Glass
On Sat, 22 Jun 2019 at 13:10, Simon Glass wrote: > > On Fri, 14 Jun 2019 at 20:52, Heinrich Schuchardt wrote: > > > > Correct the debug output for the trace buffer size to accommodate trace > > buffers exceeding 2GiB. > > > > Signed-off-by: Heinrich Schuchardt > > --- > > common/board_f.c | 4 +

[U-Boot] [PATCH 00/37] binman: Add CBFS support

2019-06-28 Thread Simon Glass
CBFS (Coreboot Filesystem) is a simple ROM-based filesystem used for locating data needed during booting. It has particular features for x86 such as defining a boot block at the top of the ROM image. At run-time, boot loaders can locate files in the ROM by searching for a header and magic strings i

[U-Boot] [PATCH 20/37] binman: Update entry.SetOffsetSize to be optional

2019-06-28 Thread Simon Glass
At present this function always sets both the offset and the size of entries. But in some cases we want to set only one or the other, for example with the forthcoming ifwi entry, where we only set the offset. Update the function to handle this. Signed-off-by: Simon Glass --- tools/binman/bsecti

[U-Boot] [PATCH 14/37] binman: Detect skipped tests

2019-06-28 Thread Simon Glass
If tests are skipped we should ideally exit with an error, since there may be a missing dependency. However at present this is not desirable since it breaks travis tests. For now, just report the skips. Signed-off-by: Simon Glass --- tools/binman/binman.py | 9 +++-- 1 file changed, 7 inser

[U-Boot] [PATCH 01/37] x86: Add ifwitool for Intel Integrated Firmware Image

2019-06-28 Thread Simon Glass
Some Intel SoCs from about 2016 boot using an internal microcontroller via an 'IFWI' image. This is a special format which can hold firmware images. In U-Boot's case it holds u-boot-tpl.bin. Add this tool, taken from coreboot, so that we can build bootable images on apollolake SoCs. This tool its

[U-Boot] [PATCH 19/37] binman: Don't assume there is an ME region

2019-06-28 Thread Simon Glass
At present having a descriptor means that there is an ME (Intel Management Engine) entry as well. The descriptor provides the ME location and assumes that it is present. For some SoCs this is not true. Before providing the location of a potentially non-existent entry, check if it is present. Upda

[U-Boot] [PATCH 17/37] binman: Ensure that coverage has access to site packages

2019-06-28 Thread Simon Glass
Code coverage tests fail on binman due to dist-packages being dropped from the python path on Ubuntu 16.04. Add them in so that we can find the elffile module, which is required by binman. Signed-off-by: Simon Glass --- tools/binman/binman.py | 8 1 file changed, 8 insertions(+) diff

[U-Boot] [PATCH 18/37] binman: Assume Intel descriptor is at the start of the image

2019-06-28 Thread Simon Glass
At present binman requires that the Intel descriptor has an explicit offset. Generally this is 0 since the descriptor is at the start of the image. Add a default to handle this, so users don't need to specify the offset. Signed-off-by: Simon Glass --- tools/binman/bsection.py | 8

[U-Boot] [PATCH 03/37] cbfs: Rename checksum to attributes_offset

2019-06-28 Thread Simon Glass
It seems that this field has been renamed in later version of coreboot. Update it. Signed-off-by: Simon Glass --- fs/cbfs/cbfs.c | 4 ++-- include/cbfs.h | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/fs/cbfs/cbfs.c b/fs/cbfs/cbfs.c index 7b2513cb24b..af4d3c5e564 1006

[U-Boot] [PATCH 02/37] cbfs: Add an enum and comment for the magic number

2019-06-28 Thread Simon Glass
This field is not commented in the original file. Add a comment. Signed-off-by: Simon Glass --- include/cbfs.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/cbfs.h b/include/cbfs.h index bd1bf75bbfc..f2ede25f517 100644 --- a/include/cbfs.h +++ b/include/cbfs.h @@ -40,

[U-Boot] [PATCH 13/37] binman: Use a better error for missing Intel descriptor

2019-06-28 Thread Simon Glass
FD is a bit confusing so write this out in full. Also avoid splitting the string so that people can grep for the error message more easily. Signed-off-by: Simon Glass --- tools/binman/etype/intel_descriptor.py | 2 +- tools/binman/ftest.py | 4 ++-- 2 files changed, 3 insertion

[U-Boot] [PATCH 07/37] binman: Add coverage tools info for Python 3

2019-06-28 Thread Simon Glass
Test coverage with Python 3 requires a new package. Add details about this. Signed-off-by: Simon Glass --- tools/binman/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/binman/README b/tools/binman/README index ac193f16cf7..decca47bbf3 100644 --- a/tools/binman/R

[U-Boot] [PATCH 12/37] binman: Tidy up help for --indir

2019-06-28 Thread Simon Glass
The current help is confusing. Adjust it to indicate what the flag actually does. Signed-off-by: Simon Glass --- tools/binman/cmdline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/binman/cmdline.py b/tools/binman/cmdline.py index ee19c5e33fe..39b835666ea 100644 --

[U-Boot] [PATCH 04/37] tools: Drop duplicate raise_on_error argument

2019-06-28 Thread Simon Glass
If kwargs contains raise_on_error then this function generates an error due to a duplicate argument. Fix this. Signed-off-by: Simon Glass --- tools/patman/command.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/patman/command.py b/tools/patman/command.py index 1

  1   2   >