Re: [U-Boot] [PATCH v2 4/4] lib: uuid: Fix unseeded PRNG on RANDOM_UUID=y

2019-05-07 Thread Lukasz Majewski
On Thu, 2 May 2019 14:27:06 +0200 Eugeniu Rosca wrote: > The random uuid values (enabled via CONFIG_RANDOM_UUID=y) on our > platform are always the same. Below is consistent on each cold boot: > > => ### interrupt autoboot > => env default -a; gpt write mmc 1 $partitions; print uuid_gpt_misc

Re: [U-Boot] [PATCH 4/4] efi_loader: unload applications upon Exit()

2019-05-07 Thread Heinrich Schuchardt
On 5/7/19 8:37 AM, Takahiro Akashi wrote: > On Tue, May 07, 2019 at 07:50:48AM +0200, Heinrich Schuchardt wrote: >> On 5/7/19 6:39 AM, Takahiro Akashi wrote: >>> On Sat, May 04, 2019 at 10:36:36AM +0200, Heinrich Schuchardt wrote: Implement unloading of images in the Exit() boot services:

Re: [U-Boot] [PATCH v6 04/13] arm: rockchip: rk3399: Move common configs in Kconfig

2019-05-07 Thread Kever Yang
Hi Jagan,     I would like to merge this patch set, all the patches looks fine to me, though this patch need to be rebased and not sure if other patches follow also need to do the rebase.     Philipp picks one of them(for Orangepi) in last PR, I think it would be better to get all the patches

[U-Boot] [PATCH v4 1/2] regulator: bd71837: copy the bd71837 pmic driver from NXP imx u-boot

2019-05-07 Thread Matti Vaittinen
https://source.codeaurora.org/external/imx/uboot-imx cherry picked, styled and merged commits: - MLK-18387 pmic: Add pmic driver for BD71837: e9a3bec2e95a - MLK-18590 pmic: bd71837: Change to use new fdt API: acdc5c297a96 Signed-off-by: Ye Li Signed-off-by: Matti Vaittinen Reviewed-by: Simon

[U-Boot] [PATCH v4 0/2] support for ROHM BD71837 and BD71847 PMICs

2019-05-07 Thread Matti Vaittinen
Patch series to support for ROHM BD71837 and BD71847 PMICs. ROHM BD71837 and BD71847 is PMIC intended for powering single-core, dual-core, and quad-core SoC’s such as NXP-i.MX 8M. BD71847 is used for example on NXP imx8mm EVK. Series adds PMIC driver with register read and write support, and

Re: [U-Boot] [PATCH 4/4] efi_loader: unload applications upon Exit()

2019-05-07 Thread Takahiro Akashi
On Tue, May 07, 2019 at 07:50:48AM +0200, Heinrich Schuchardt wrote: > On 5/7/19 6:39 AM, Takahiro Akashi wrote: > >On Sat, May 04, 2019 at 10:36:36AM +0200, Heinrich Schuchardt wrote: > >>Implement unloading of images in the Exit() boot services: > >> > >>* unload images that are not yet started,

Re: [U-Boot] [PATCH v2 7/9] Makefile.spl: Create u-boot-spl-rockchip.bin for rk3399

2019-05-07 Thread Kever Yang
Hi Jagan, On 04/28/2019 05:09 PM, Jagan Teki wrote: > Rockchip platform would require an explicit call to mkimage for > creating bootable images which indeed specific to SoC family > along with boot devices. > > Example of creating bootable image for rk3399 family with SD > boot device as > > ₹

Re: [U-Boot] [PATCH v6 03/13] Kconfig: Add default SPL_FIT_GENERATOR for rockchip

2019-05-07 Thread Jagan Teki
Hi Kever, On Tue, May 7, 2019 at 9:36 AM Kever Yang wrote: > > Hi Jagan, > > > On 04/27/2019 07:48 PM, Jagan Teki wrote: > > Add default SPL_FIT_GENERATOR py script for rockchip platforms if > > specific target enabled SPL_LOAD_FIT. > > > > So, this would help get rid of explicitly mentioning

Re: [U-Boot] [PATCH v2 7/9] Makefile.spl: Create u-boot-spl-rockchip.bin for rk3399

2019-05-07 Thread Jagan Teki
On Tue, May 7, 2019 at 12:04 PM Kever Yang wrote: > > Hi Jagan, > > On 04/28/2019 05:09 PM, Jagan Teki wrote: > > Rockchip platform would require an explicit call to mkimage for > > creating bootable images which indeed specific to SoC family > > along with boot devices. > > > > Example of

Re: [U-Boot] [PATCH 8/8] rockchip: rk3288: make both evb variants use atf

2019-05-07 Thread Heiko Stuebner
Hi Kever, Am Dienstag, 7. Mai 2019, 03:54:32 CEST schrieb 杨凯: > 1 does aarch32 using atf the same way like aarch64? eg. the load/boot flow is: > tpl->spl->atf->u-boot Yep, exactly like this - which is the beauty of using ATF :-) Btw. core rk3288 support meanwhile also reached upstream ATF:

Re: [U-Boot] [PATCH v2 3/4] cmd: gpt: fix and tidy up help message

2019-05-07 Thread Lukasz Majewski
On Thu, 2 May 2019 14:27:05 +0200 Eugeniu Rosca wrote: > Apply the following changes: > - Guard the 'gpt read' command by 'ifdef CONFIG_CMD_GPT_RENAME', >since 'gpt read' is not available on CMD_GPT_RENAME=n > - Prefix the {read,swap,rename} commands with one space for > consistency > -

Re: [U-Boot] [PATCH 1/4] efi_loader: mark started images

2019-05-07 Thread Heinrich Schuchardt
On 5/7/19 8:12 AM, Takahiro Akashi wrote: > On Tue, May 07, 2019 at 08:05:48AM +0200, Heinrich Schuchardt wrote: >> On 5/7/19 7:58 AM, Takahiro Akashi wrote: >>> On Tue, May 07, 2019 at 07:53:41AM +0200, Heinrich Schuchardt wrote: On 5/7/19 7:44 AM, Takahiro Akashi wrote: > On Tue, May

Re: [U-Boot] [PATCH 1/4] efi_loader: mark started images

2019-05-07 Thread Heinrich Schuchardt
On 5/7/19 7:58 AM, Takahiro Akashi wrote: On Tue, May 07, 2019 at 07:53:41AM +0200, Heinrich Schuchardt wrote: On 5/7/19 7:44 AM, Takahiro Akashi wrote: On Tue, May 07, 2019 at 07:26:46AM +0200, Heinrich Schuchardt wrote: On 5/7/19 5:02 AM, Takahiro Akashi wrote: On Sat, May 04, 2019 at

Re: [U-Boot] [PATCH v2 1/4] disk: efi: Fix memory leak on 'gpt guid'

2019-05-07 Thread Lukasz Majewski
On Thu, 2 May 2019 14:27:03 +0200 Eugeniu Rosca wrote: > Below is what happens on R-Car H3ULCB-KF using clean U-Boot > v2019.04-00810-g6aebc0d11a10 and r8a7795_ulcb_defconfig: > > => ### interrupt autoboot > => gpt guid mmc 1 > 21200400-0804-0146-9dcc-a8c51255994f > success! > => ###

Re: [U-Boot] [PATCH v2 2/4] disk: efi: Fix memory leak on 'gpt verify'

2019-05-07 Thread Lukasz Majewski
On Thu, 2 May 2019 14:27:04 +0200 Eugeniu Rosca wrote: > Below is what happens on R-Car H3ULCB-KF using clean U-Boot > v2019.04-00810-g6aebc0d11a10 and r8a7795_ulcb_defconfig: > > => ### interrupt autoboot > => gpt verify mmc 1 > No partition list provided - only basic check > Verify GPT:

Re: [U-Boot] [PATCH v6 04/13] arm: rockchip: rk3399: Move common configs in Kconfig

2019-05-07 Thread Jagan Teki
Hi Kever, On Tue, May 7, 2019 at 12:44 PM Kever Yang wrote: > > Hi Jagan, > > I would like to merge this patch set, all the patches looks fine to me, > > though this patch need to be rebased and not sure if other patches follow I have rebased this along with prior series on

Re: [U-Boot] [PATCH v2 1/1] efi_loader: optional data in load options are binary

2019-05-07 Thread Heinrich Schuchardt
On 5/7/19 7:16 AM, Heinrich Schuchardt wrote: On 5/7/19 3:53 AM, Takahiro Akashi wrote: On Tue, Apr 30, 2019 at 08:11:15AM +0200, Heinrich Schuchardt wrote: The field boot OptionalData in structure _EFI_LOAD_OPTIONS is for binary data. When we use `efidebug boot add` we should convert the 5th

Re: [U-Boot] [PATCH 1/4] efi_loader: mark started images

2019-05-07 Thread Takahiro Akashi
On Tue, May 07, 2019 at 08:05:48AM +0200, Heinrich Schuchardt wrote: > On 5/7/19 7:58 AM, Takahiro Akashi wrote: > >On Tue, May 07, 2019 at 07:53:41AM +0200, Heinrich Schuchardt wrote: > >>On 5/7/19 7:44 AM, Takahiro Akashi wrote: > >>>On Tue, May 07, 2019 at 07:26:46AM +0200, Heinrich Schuchardt

Re: [U-Boot] [PATCH v2 1/1] efi_loader: optional data in load options are binary

2019-05-07 Thread Takahiro Akashi
On Tue, May 07, 2019 at 09:12:56AM +0200, Heinrich Schuchardt wrote: > On 5/7/19 8:16 AM, Takahiro Akashi wrote: > > On Tue, May 07, 2019 at 08:04:26AM +0200, Heinrich Schuchardt wrote: > >> On 5/7/19 7:16 AM, Heinrich Schuchardt wrote: > >>> On 5/7/19 3:53 AM, Takahiro Akashi wrote: > On

Re: [U-Boot] [PATCH v2 1/1] efi_loader: optional data in load options are binary

2019-05-07 Thread Heinrich Schuchardt
On 5/7/19 8:16 AM, Takahiro Akashi wrote: > On Tue, May 07, 2019 at 08:04:26AM +0200, Heinrich Schuchardt wrote: >> On 5/7/19 7:16 AM, Heinrich Schuchardt wrote: >>> On 5/7/19 3:53 AM, Takahiro Akashi wrote: On Tue, Apr 30, 2019 at 08:11:15AM +0200, Heinrich Schuchardt wrote: > The field

Re: [U-Boot] [PATCH v2 1/4] disk: efi: Fix memory leak on 'gpt guid'

2019-05-07 Thread Eugeniu Rosca
Hi Lukasz, On Tue, May 07, 2019 at 09:03:15AM +0200, Lukasz Majewski wrote: [..] > Reviewed-by: Lukasz Majewski > > > Best regards, > > Lukasz Majewski > > -- > > DENX Software Engineering GmbH, Managing Director: Wolfgang Denk > HRB 165235 Munich, Office: Kirchenstr.5, D-82194

Re: [U-Boot] [PATCH] arm: socfpga: Re-add support for Aries MCV SoM and MCVEVK board

2019-05-07 Thread Wolfgang Grandegger
Am 06.05.19 um 22:16 schrieb Simon Goldschmidt: > Am 06.05.2019 um 17:45 schrieb Wolfgang Grandegger: >> Re-add support for Aries Embedded MCV SoM, which is CycloneV based >> and the associated MCVEVK baseboard. The board can boot from eMMC. >> Ethernet and USB is supported. >> >> The Aries

Re: [U-Boot] [PATCH v2 1/4] disk: efi: Fix memory leak on 'gpt guid'

2019-05-07 Thread Lukasz Majewski
On Tue, 7 May 2019 09:10:28 +0200 Eugeniu Rosca wrote: > Hi Lukasz, > > On Tue, May 07, 2019 at 09:03:15AM +0200, Lukasz Majewski wrote: > [..] > > Reviewed-by: Lukasz Majewski > > > > > > Best regards, > > > > Lukasz Majewski > > > > -- > > > > DENX Software Engineering GmbH,

Re: [U-Boot] [PATCH 1/2] fdtdec: Use fdt_setprop_u32() for fdtdec_set_phandle()

2019-05-07 Thread Thierry Reding
On Mon, May 06, 2019 at 09:52:00PM -0600, Simon Glass wrote: > Hi Thierry, > > On Thu, 25 Apr 2019 at 07:25, Thierry Reding wrote: > > > > On Mon, Apr 15, 2019 at 10:08:20AM +0200, Thierry Reding wrote: > > > From: Thierry Reding > > > > > > The fdt_setprop_u32() function does everything that

[U-Boot] [PATCH] arm: socfpga: stratix10: Fix SPI flash ENV_SECT_SIZE

2019-05-07 Thread Ley Foon Tan
Fix SPI flash environment erase size error. Erase size of flash mt25qu02g on Stratix 10 should be 64KB. SOCFPGA_STRATIX10 # saveenv Saving Environment to SPI Flash... SF: Detected mt25qu02g with page size 256 Bytes, erase size 64 KiB, total 256 MiB Erasing SPI flash...SF: Erase offset/length

Re: [U-Boot] [PATCH v2 1/1] efi_loader: optional data in load options are binary

2019-05-07 Thread Takahiro Akashi
On Tue, May 07, 2019 at 08:04:26AM +0200, Heinrich Schuchardt wrote: > On 5/7/19 7:16 AM, Heinrich Schuchardt wrote: > >On 5/7/19 3:53 AM, Takahiro Akashi wrote: > >>On Tue, Apr 30, 2019 at 08:11:15AM +0200, Heinrich Schuchardt wrote: > >>>The field boot OptionalData in structure _EFI_LOAD_OPTIONS

Re: [U-Boot] DM for ci_udc

2019-05-07 Thread Jean-Jacques Hiblot
Hi, On 06/05/2019 14:17, Lukasz Majewski wrote: Hi Sven, Marek, Jean-Jacques, On 5/6/19 12:12 PM, Sven Schwermer wrote: Hi, I’m running into linking issues when enabling CONFIG_DM_USB_GADGET with CONFIG_CI_UDC because dm_usb_gadget_handle_interrupts is not available. That made me look into

[U-Boot] [PATCH v4 2/2] regulator: bd718x7: support ROHM BD71837 and BD71847 PMICs

2019-05-07 Thread Matti Vaittinen
BD71837 and BD71847 is PMIC intended for powering single-core, dual-core, and quad-core SoC’s such as NXP-i.MX 8M. BD71847 is used for example on NXP imx8mm EVK. Add regulator driver for ROHM BD71837 and BD71847 PMICs. BD71837 contains 8 bucks and 7 LDOS. BD71847 is reduced version containing 6

[U-Boot] [PATCH v13 5/9] ARM: socfpga: Add FPGA drivers for Arria 10 FPGA bitstream loading

2019-05-07 Thread tien . fong . chee
From: Tien Fong Chee Add FPGA driver to support program FPGA with FPGA bitstream loading from filesystem. The driver are designed based on generic firmware loader framework. The driver can handle FPGA program operation from loading FPGA bitstream in flash to memory and then to program FPGA.

[U-Boot] [PATCH v13 7/9] spl : socfpga: Implement fpga bitstream loading with socfpga loadfs

2019-05-07 Thread tien . fong . chee
From: Tien Fong Chee Add support for loading FPGA bitstream to get DDR up running before U-Boot is loaded into DDR. Boot device initialization, generic firmware loader and SPL FAT support are required for this whole mechanism to work. Signed-off-by: Tien Fong Chee --- changes for v13 - No

Re: [U-Boot] [PATCH v3 15/18] x86: Update the memory map a little

2019-05-07 Thread Bin Meng
On Tue, May 7, 2019 at 5:31 PM Bin Meng wrote: > > On Fri, May 3, 2019 at 12:52 AM Simon Glass wrote: > > > > The memory map currently omits the environment and the MRC region. Add > > these in for completeness. > > > > Signed-off-by: Simon Glass > > Reviewed-by: Bin Meng > > --- > > > >

Re: [U-Boot] [PATCH v2 1/1] efi_loader: optional data in load options are binary

2019-05-07 Thread Graf, Alexander
On 07.05.19 09:30, Takahiro Akashi wrote: On Tue, May 07, 2019 at 09:12:56AM +0200, Heinrich Schuchardt wrote: On 5/7/19 8:16 AM, Takahiro Akashi wrote: On Tue, May 07, 2019 at 08:04:26AM +0200, Heinrich Schuchardt wrote: On 5/7/19 7:16 AM, Heinrich Schuchardt wrote: On 5/7/19 3:53 AM,

[U-Boot] [PATCH 05/12] arm: spear: Fix the main comment in start.S

2019-05-07 Thread Miquel Raynal
This comment describes the board state at the moment where we enter the SPL. The description is entirely wrong; re-write it to fit the reality. Signed-off-by: Miquel Raynal --- arch/arm/cpu/arm926ejs/spear/start.S | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git

[U-Boot] [PATCH 06/12] arm: spear: Purely cosmetic changes in start.S

2019-05-07 Thread Miquel Raynal
Before cleaning a bit further the spear/start.S file, apply a few cosmetic changes: capital letters, comment indentation and small rewriting. Signed-off-by: Miquel Raynal --- arch/arm/cpu/arm926ejs/spear/start.S | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git

[U-Boot] [PATCH 02/12] arm: spear: Drop useless board_init_r call

2019-05-07 Thread Miquel Raynal
It is clearly stated that board_init_f should *not* call board_init_r. Indeed, board_init_f should return. The code will continue through arch/arm/lib/crt0.S which will do more setup before calling board_init_r. Signed-off-by: Miquel Raynal --- arch/arm/cpu/arm926ejs/spear/spl.c | 2 -- 1 file

[U-Boot] [PATCH 1/3] board_f: Add mach specific DMA address check function.

2019-05-07 Thread Christoph Muellner
From: Christoph Müllner Some machines have limited DMA engines, which cannot deal with arbitrary addresses. This patch introduces a function to model these restrictions on a machine level. Signed-off-by: Christoph Müllner Signed-off-by: Christoph Muellner --- common/board_f.c | 5 +

Re: [U-Boot] [PATCH] spl: kconfig: separate sysreset and firmware drivers from misc

2019-05-07 Thread Simon Goldschmidt
On Tue, May 7, 2019 at 10:07 AM Lokesh Vutla wrote: > > > > On 05/05/19 1:33 AM, Simon Goldschmidt wrote: > > This adds separate kconfig options for drivers/sysreset and > > drivers/firmware. > > > > Up to now, CONFIG_SPL_DRIVERS_MISC_SUPPORT added drivers/misc to SPL > > build but also added

[U-Boot] [PATCH 1/5] dt-bindings: spi: add bindings for Atmel QSPI driver

2019-05-07 Thread Tudor.Ambarus
From: Tudor Ambarus Describe the DT bindings for the driver of the Atmel QSPI controller. Taken form linux v5.1-rc5. Signed-off-by: Tudor Ambarus --- doc/device-tree-bindings/spi/atmel-quadspi.txt | 37 ++ 1 file changed, 37 insertions(+) create mode 100644

[U-Boot] [PATCH 0/5] spi: Add Atmel QuadSPI driver

2019-05-07 Thread Tudor.Ambarus
From: Tudor Ambarus Backport the driver from linux v5.1-rc5 and adapt it for u-boot. Tested on sama5d2_xplained Rev B with mx25l25635e spi-nor flash. => sf probe 1:0 SF: Detected mx25l25635e with page size 256 Bytes, erase size 64 KiB, total 32 MiB => sf erase 0 10 SF: 1048576 bytes @ 0x0

[U-Boot] [PATCH] usb: ohci: ohci-da8xx: Cleanup Error handling and fix flags

2019-05-07 Thread Adam Ford
Per feedback from Marek, he suggested better handling and to enable DM_FLAG_OS_PREPARE, this patch re-orders some of the error checking, and errors returns the error code right away and also sets DM_FLAG_OS_PREPARE. Signed-off-by: Adam Ford diff --git a/drivers/usb/host/ohci-da8xx.c

Re: [U-Boot] [PATCH v6 09/13] rockchip: rk3399: Add Nanopc T4 board support

2019-05-07 Thread Jagan Teki
On Tue, May 7, 2019 at 2:42 PM Paul Kocialkowski wrote: > > Hi, > > On Sat, 2019-04-27 at 17:18 +0530, Jagan Teki wrote: > > diff --git a/board/rockchip/evb_rk3399/MAINTAINERS > > b/board/rockchip/evb_rk3399/MAINTAINERS > > index ae43805a6a..5917abb9c1 100644 > > ---

Re: [U-Boot] [PATCH 02/12] arm: spear: Drop useless board_init_r call

2019-05-07 Thread Stefan Roese
On 07.05.19 14:18, Miquel Raynal wrote: It is clearly stated that board_init_f should *not* call board_init_r. Indeed, board_init_f should return. The code will continue through arch/arm/lib/crt0.S which will do more setup before calling board_init_r. Signed-off-by: Miquel Raynal

Re: [U-Boot] [PATCH 04/12] arm: spear: Drop false comment

2019-05-07 Thread Stefan Roese
On 07.05.19 14:18, Miquel Raynal wrote: SPL BSS lies in SRAM and is actually initialized to 0 by the SPL in arch/arm/lib/crt0.S:_main(), which is called by cpu_init_crit. Signed-off-by: Miquel Raynal Reviewed-by: Stefan Roese Thanks, Stefan ___

Re: [U-Boot] [PATCH 05/12] arm: spear: Fix the main comment in start.S

2019-05-07 Thread Stefan Roese
On 07.05.19 14:18, Miquel Raynal wrote: This comment describes the board state at the moment where we enter the SPL. The description is entirely wrong; re-write it to fit the reality. Signed-off-by: Miquel Raynal Reviewed-by: Stefan Roese Thanks, Stefan

Re: [U-Boot] [PATCH 08/12] arm: spear: Reference the link register with LR instead of R14

2019-05-07 Thread Stefan Roese
On 07.05.19 14:18, Miquel Raynal wrote: The link register is stored in R14. ARM assembly code allows to use the 'lr' name to reference it instead of 'r14' which is not very meaningful. Do the substitution to ease the reading. Signed-off-by: Miquel Raynal Reviewed-by: Stefan Roese Thanks,

Re: [U-Boot] [PATCH 12/12] arm: spear: Return to BootROM if failing to boot from the main device

2019-05-07 Thread Stefan Roese
On 07.05.19 14:18, Miquel Raynal wrote: Overload the weak function board_boot_order() so that besides choosing the main boot device, we can fallback on USB boot by returning in the BootROM, eg. if the NOR flash is empty while it was the primary boot medium. Signed-off-by: Miquel Raynal

[U-Boot] [PATCH] rockchip: rk3399-puma: Re-disable SPL_ATF_NO_PLATFORM_PARAM

2019-05-07 Thread Christoph Muellner
This reverts commit c869d63f2785ccde22582f96cf40cb8809f838ba. Mainline ATF already supports fdt-parsing, which allows us to pass rk3399-puma specific data to setup things like the correct UART. Therefore we can re-enable platform parameterss again. Signed-off-by: Christoph Muellner ---

[U-Boot] [PATCH 3/3] rockchip: clk: rk3399: allow requests for all UART clocks

2019-05-07 Thread Christoph Muellner
This patch adds the rate for UART1 and UART3 the same way as already implemented for UART0 and UART2. This is required for boards, which have their console output on these UARTs. Signed-off-by: Christoph Muellner --- drivers/clk/rockchip/clk_rk3399.c | 2 ++ 1 file changed, 2 insertions(+)

[U-Boot] [PATCH 2/3] rockchip: rk3399: Add option to print on UART3.

2019-05-07 Thread Christoph Muellner
The RK3399 SPL does not use a pinctrl driver to setup the UART pins. Instead it works based on config macros, which set the base address of the actual UART block. Currently the RK3399 SPL support UART0 and UART2. This patch adds UART3 in the same way as UART0. Signed-off-by: Christoph Muellner

[U-Boot] [PATCH 1/3] rockchip: pinctrl: rk3399: Add support for UART3.

2019-05-07 Thread Christoph Muellner
This patch adds the missing GRF bit definitions for UART3 on the RK3399. Signed-off-by: Christoph Muellner --- arch/arm/include/asm/arch-rockchip/grf_rk3399.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/include/asm/arch-rockchip/grf_rk3399.h

Re: [U-Boot] [PATCH v3 10/18] x86: Update device tree for Chromium OS verified boot

2019-05-07 Thread Bin Meng
On Fri, May 3, 2019 at 12:52 AM Simon Glass wrote: > > The standard image generated by U-Boot on x86 is u-boot.rom. Add a > separate image called image.bin for verified boot. This supports > verification in TPL of which SPL/U-Boot to start, then jumping to the > correct one, with SPL setting up

Re: [U-Boot] [PATCH v3 09/18] x86: Update device tree for TPL

2019-05-07 Thread Bin Meng
On Tue, May 7, 2019 at 5:10 PM Bin Meng wrote: > > On Fri, May 3, 2019 at 12:52 AM Simon Glass wrote: > > > > Add TPL binaries to the device x86 binman desciption. When enabled, TPL > > will start first, doing the 16-bit init, then jump to SPL and finally > > U-Boot proper. > > > >

Re: [U-Boot] [PATCH v5] ARM: am335x: Add phyCORE AM335x R2 support

2019-05-07 Thread Niel Fourie
Hi Tom, On 5/6/19 7:24 PM, Tom Rini wrote: On Mon, May 06, 2019 at 06:44:48PM +0200, Niel Fourie wrote: Hi Tom, On 5/6/19 4:18 PM, Tom Rini wrote: On Mon, May 06, 2019 at 04:02:53PM +0200, Niel Fourie wrote: Support for Phytech phyCORE AM335x R2 SOM (PCL060) on the Phytec phyBOARD-Wega

Re: [U-Boot] [PATCH 00/12] Enable returning back to BootROM from spear SPL

2019-05-07 Thread Stefan Roese
On 07.05.19 14:18, Miquel Raynal wrote: Spear machines currently have only the possibility to boot from NOR while an interesting alternative exist: booting from USB. For this, the BootROM will enumerate an USB device and wait for a RAM driver (likely, the SPL). It will load the driver in SRAM

[U-Boot] [RFC PATCH] pxe: add support for FDT overlays

2019-05-07 Thread Neil Armstrong
This adds support for specicyinf FDT overlays in an extlinux/pxelinux configuration file. Without this, there is no simple way to apply overlays when the kernel and ftd is loaded by the pxe command. This change adds the 'fdtoverlays' keyword for a label, supporting multiple overlay files to be

[U-Boot] [PATCH 2/2] rk3399: gru: Fix DTS compilation issues.

2019-05-07 Thread Christoph Muellner
A previous commit changed the USB3 node names, which breaks compilation of the gru DTS files. This patch addresses this issue by fixing the referenced node names. Signed-off-by: Christoph Muellner --- arch/arm/dts/rk3399-gru-chromebook.dtsi | 7 +-- arch/arm/dts/rk3399-gru.dtsi

[U-Boot] [PATCH 1/2] rk3399: Restore broken USB3 DTS description.

2019-05-07 Thread Christoph Muellner
This is a partial revert of commit 0a09f2f1173d ("rockchip: Adjust rk3399 device tree to be closer to linux"). Harmonizing the rk3399.dtsi with the one from Linux is a good idea. However, this is only true if the information within that file can be used by U-Boot. Before the named commit USB3 was

[U-Boot] [PATCH 2/3] bouncebuf: Add DMA validation check to addr_aligned().

2019-05-07 Thread Christoph Muellner
Currently addr_aligned() performs an alignment and a length check to validate the DMA address. However, some machines have stricter restrictions of DMA-able addresses. This patch adds a call to mach_addr_is_dmaable() to honor this machine specific restrictions. Signed-off-by: Christoph Muellner

[U-Boot] [PATCH 3/3] rk3399: Add restriction for DMA-able addresses.

2019-05-07 Thread Christoph Muellner
Patches on the U-Boot mailing list from Rockchip engineers indicate, that the RK3399's DMA engines are not able to use addresses in high-memory (above 0xf800). This patch models this restriction in an RK3399 specific mach_addr_is_dmaable() function. Signed-off-by: Christoph Muellner ---

Re: [U-Boot] [PATCH] rockchip: rk3399-puma: Re-disable SPL_ATF_NO_PLATFORM_PARAM

2019-05-07 Thread Christoph Müllner
Hi Mark, On 07.05.19 10:57, Mark Kettenis wrote: >> From: Christoph Muellner >> Date: Tue, 7 May 2019 10:39:54 +0200 >> >> This reverts commit c869d63f2785ccde22582f96cf40cb8809f838ba. >> >> Mainline ATF already supports fdt-parsing, which allows us to >> pass rk3399-puma specific data to setup

Re: [U-Boot] [PATCH v3 16/18] x86: broadwell: Update PCH to work in TPL

2019-05-07 Thread Bin Meng
On Fri, May 3, 2019 at 12:52 AM Simon Glass wrote: > > The early init should only happen once. Update the probe method to > deal with TPL, SPL and U-Boot proper. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in v2: > - Add a new patch to update

Re: [U-Boot] [PATCH v3 14/18] x86: Enable the RTC on all boards

2019-05-07 Thread Bin Meng
On Tue, May 7, 2019 at 5:10 PM Bin Meng wrote: > > On Fri, May 3, 2019 at 12:52 AM Simon Glass wrote: > > > > With the move to Kconfig this option should be set in Kconfig, not in the > > config header file. Move it. > > > > Signed-off-by: Simon Glass > > --- > > > > Changes in v3: > > - Drop

[U-Boot] [PATCH v13 3/9] ARM: socfpga: Cleaning up and ensuring consistent format messages in driver

2019-05-07 Thread tien . fong . chee
From: Tien Fong Chee Ensure all the debug messages are always prefix with "FPGA: " and comment beginning with uppercase letter. Signed-off-by: Tien Fong Chee --- changes for v13 - No changes. changes for v12 - Improved the commit messages. changes for v11 - No changes. changes for v10 -

[U-Boot] [PATCH v13 2/9] ARM: socfpga: Add default FPGA bitstream fitImage for Arria10 SoCDK

2019-05-07 Thread tien . fong . chee
From: Tien Fong Chee Add default fitImage file bundling FPGA bitstreams for Arria10. Signed-off-by: Tien Fong Chee --- changes for v13 - No changes. changes for v12 - No changes. changes for v11 - Replaced core image node "-2" with "-1", the numeric associates the core and periph images

Re: [U-Boot] [PATCH] arm: socfpga: Re-add support for Aries MCV SoM and MCVEVK board

2019-05-07 Thread Simon Goldschmidt
On Tue, May 7, 2019 at 9:41 AM Wolfgang Grandegger wrote: > > > > Am 06.05.19 um 22:16 schrieb Simon Goldschmidt: > > Am 06.05.2019 um 17:45 schrieb Wolfgang Grandegger: > >> Re-add support for Aries Embedded MCV SoM, which is CycloneV based > >> and the associated MCVEVK baseboard. The board

[U-Boot] [PATCH v3 1/3] usb: dwc3: Add Meson G12A USB Glue

2019-05-07 Thread Neil Armstrong
Adds support for Amlogic G12A USB Control Glue HW. The Amlogic G12A SoC Family embeds 2 USB Controllers : - a DWC3 IP configured as Host for USB2 and USB3 - a DWC2 IP configured as Peripheral USB2 Only A glue connects these both controllers to 2 USB2 PHYs, and optionnally to an USB3+PCIE Combo

[U-Boot] [PATCH v3 2/3] phy: meson: add Amlogic G12A USB2 and USB3+PCIE PHY drivers

2019-05-07 Thread Neil Armstrong
This adds support for the USB PHYs found in the Amlogic G12A SoC Family. The USB2 PHY supports Host and/or Peripheral mode, depending on it's position. The first PHY is only used as Host, but the second supports Dual modes defined by the USB Control Glue HW in front of the USB Controllers. The

[U-Boot] [PATCH] rockchip: rk3399-puma: Reduce SPL size.

2019-05-07 Thread Christoph Muellner
This commit reduces the SPL size by fixing typos in the removed property string list, switching to the tiny versions of printf/memset and disabling SPL_DOS/EFI_PARTITION support. Signed-off-by: Christoph Muellner --- configs/puma-rk3399_defconfig | 6 +- 1 file changed, 5 insertions(+), 1

[U-Boot] [PATCH] rockchip: rk3399-puma: Move ENV_OFFSET to end of SPI NOR.

2019-05-07 Thread Christoph Muellner
Puma SoMs have a 4 MB SPI NOR flash. Therefore we can move the environment to the end of the flash (4 MiB - 16 kiB) in order to not overlap with SPL. Reported-by: Jakob Unterwurzacher Signed-off-by: Christoph Muellner --- board/theobroma-systems/puma_rk3399/Kconfig | 2 +- 1 file changed, 1

Re: [U-Boot] [PATCH 2/2] fdtdec: Remove fdt_{addr,size}_unpack()

2019-05-07 Thread Thierry Reding
On Mon, May 06, 2019 at 09:52:02PM -0600, Simon Glass wrote: > Hi Thierry, > > On Fri, 26 Apr 2019 at 06:01, Thierry Reding wrote: > > > > On Mon, Apr 15, 2019 at 10:08:21AM +0200, Thierry Reding wrote: > > > From: Thierry Reding > > > > > > U-Boot already defines the {upper,lower}_32_bits()

[U-Boot] [PATCH v3 3/3] mach-meson: g12a: add DWC2 peripheral mode support

2019-05-07 Thread Neil Armstrong
Adds support for Amlogic G12A USB Device mode. The DWC2 Controller behind the Glue can be connected to an OTG capable PHY. The Glue setups the PHY mode. This patch implements Device mode support by adding a board_usb_init/cleanup setting up the DWC2 controller and switch the OTG capable port to

[U-Boot] [PATCH v3 0/3] ARM: meson: Add G12A USB Support

2019-05-07 Thread Neil Armstrong
This patchset adds support for USB on Amlogic G12A SoCs. This patchset is composed with : - PHY Drivers - USB Control Glue driver - G12A board setup for Device mode Device Tree nodes will be added in a separate patchset when applied on a tagged Linux tree. The Amlogic G12A USB Complex is

Re: [U-Boot] [PATCH v3 03/18] x86: sysreset: Separate out the EFI code

2019-05-07 Thread Bin Meng
On Fri, May 3, 2019 at 12:52 AM Simon Glass wrote: > > The EFI implementation of reset sits inside the driver and is called > directly from outside the driver, breaking the normal driver-model > conventions. Worse, it passed NULL as the device pointer, hoping that > the called function won't use

Re: [U-Boot] [PATCH v3 05/18] x86: sysreset: Implement the get_last() method

2019-05-07 Thread Bin Meng
On Fri, May 3, 2019 at 12:52 AM Simon Glass wrote: > > Add a default implementation of this method which always indicates that > the last reset was a power-on reset. This is the most likely type of reset > and without a PCH-specific driver we cannot determine any other type. > > Signed-off-by:

Re: [U-Boot] [PATCH v3 04/18] x86: sysreset: Implement power-off if available

2019-05-07 Thread Bin Meng
On Fri, May 3, 2019 at 12:52 AM Simon Glass wrote: > > On modern x86 devices we can power the system off using the power- > management features of the PCH. Add an implementation for this. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: > - Use acpi_s3.h header

Re: [U-Boot] [PATCH v3 17/18] x86: Add a way to jump from TPL to SPL

2019-05-07 Thread Bin Meng
On Fri, May 3, 2019 at 12:52 AM Simon Glass wrote: > > When TPL finishes it needs to jump to SPL with the stack set up correctly. > Add a function to handle this. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in v2: > - Add a new patch allowing

Re: [U-Boot] [PATCH v3 15/18] x86: Update the memory map a little

2019-05-07 Thread Bin Meng
On Fri, May 3, 2019 at 12:52 AM Simon Glass wrote: > > The memory map currently omits the environment and the MRC region. Add > these in for completeness. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in v2: None > > doc/README.x86 | 2 ++ > 1

[U-Boot] [PATCH 07/12] arm: spear: Use PUSH/POP mnemonics when relevant

2019-05-07 Thread Miquel Raynal
Quoting ARM "RealView Compilation Tools Assembler Guide v4.0": PUSH and POP are synonyms for STMDB and LDM (or LDMIA), with the base register sp (r13), and the adjusted address written back to the base register. PUSH and POP are the preferred mnemonic in these

[U-Boot] [PATCH 11/12] arm: spear: Do not link the _main branch

2019-05-07 Thread Miquel Raynal
The _main call is not supposed to return at all: don't link the branch. Signed-off-by: Miquel Raynal --- arch/arm/cpu/arm926ejs/spear/start.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/cpu/arm926ejs/spear/start.S b/arch/arm/cpu/arm926ejs/spear/start.S index

[U-Boot] [PATCH 08/12] arm: spear: Reference the link register with LR instead of R14

2019-05-07 Thread Miquel Raynal
The link register is stored in R14. ARM assembly code allows to use the 'lr' name to reference it instead of 'r14' which is not very meaningful. Do the substitution to ease the reading. Signed-off-by: Miquel Raynal --- arch/arm/cpu/arm926ejs/spear/start.S | 2 +- 1 file changed, 1 insertion(+),

[U-Boot] [PATCH 10/12] arm: spear: Support returning to BootROM

2019-05-07 Thread Miquel Raynal
Implement the weak board_return_to_bootrom() function so that when enabling the spl_bootrom.c driver, one can make use of usbboot on spear platforms. All necessary information to return to the BootROM are stored in the BootROM's stack. The SPL stack pointer is reset so we save the BootROM's stack

[U-Boot] [PATCH 12/12] arm: spear: Return to BootROM if failing to boot from the main device

2019-05-07 Thread Miquel Raynal
Overload the weak function board_boot_order() so that besides choosing the main boot device, we can fallback on USB boot by returning in the BootROM, eg. if the NOR flash is empty while it was the primary boot medium. Signed-off-by: Miquel Raynal --- arch/arm/cpu/arm926ejs/spear/spl.c | 12

[U-Boot] [PATCH 09/12] arm: spear: Simplify start.S organization

2019-05-07 Thread Miquel Raynal
There is no reason to do the few spear-related initialization, in a different procedure than 'reset'. Spare one branching and get a linear code flow by removing this indirection. Signed-off-by: Miquel Raynal --- arch/arm/cpu/arm926ejs/spear/start.S | 17 ++--- 1 file changed, 2

Re: [U-Boot] [PATCH 4/4] lib: uuid: Improve randomness of uuid values on RANDOM_UUID=y

2019-05-07 Thread Eugeniu Rosca
On Fri, May 03, 2019 at 06:09:28PM +0200, Eugeniu Rosca wrote: > On Thu, May 02, 2019 at 12:32:53AM +0200, Eugeniu Rosca wrote: > > Hi Tom, > > > > On Wed, May 01, 2019 at 03:51:49PM -0400, Tom Rini wrote: > > [..] > > > > > > Agreed, this patch sounds like it addresses a number of problems

Re: [U-Boot] [PATCH 03/12] arm: spear: Call the SPL 'SPL', not 'Xloader'

2019-05-07 Thread Stefan Roese
On 07.05.19 14:18, Miquel Raynal wrote: Rename Xloader as SPL in comments. Signed-off-by: Miquel Raynal Reviewed-by: Stefan Roese Thanks, Stefan ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 06/12] arm: spear: Purely cosmetic changes in start.S

2019-05-07 Thread Stefan Roese
On 07.05.19 14:18, Miquel Raynal wrote: Before cleaning a bit further the spear/start.S file, apply a few cosmetic changes: capital letters, comment indentation and small rewriting. Signed-off-by: Miquel Raynal Reviewed-by: Stefan Roese Thanks, Stefan

Re: [U-Boot] [PATCH 01/12] spl: Fix typo in kernel doc

2019-05-07 Thread Stefan Roese
On 07.05.19 14:18, Miquel Raynal wrote: Fix a tiny typo in boot_from_devices() kernel doc. Signed-off-by: Miquel Raynal Reviewed-by: Stefan Roese Thanks, Stefan ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 1/2] rk3399: Restore broken USB3 DTS description.

2019-05-07 Thread Mark Kettenis
> From: Christoph Muellner > Date: Tue, 7 May 2019 10:49:13 +0200 > > This is a partial revert of commit 0a09f2f1173d > ("rockchip: Adjust rk3399 device tree to be closer to linux"). > > Harmonizing the rk3399.dtsi with the one from Linux is a good idea. > However, this is only true if the

Re: [U-Boot] [PATCH v3 00/18] x86: Add support for booting from TPL

2019-05-07 Thread Bin Meng
Hi Simon, On Fri, May 3, 2019 at 12:52 AM Simon Glass wrote: > > At present SPL is used on 64-bit platforms, to allow SPL to be built as > a 32-bit program and U-Boot proper to be built as 64-bit. > > However it is useful to be able to use SPL on any x86 platform, where > U-Boot needs to be

Re: [U-Boot] [PATCH] spl: kconfig: separate sysreset and firmware drivers from misc

2019-05-07 Thread Lokesh Vutla
On 05/05/19 1:33 AM, Simon Goldschmidt wrote: > This adds separate kconfig options for drivers/sysreset and > drivers/firmware. > > Up to now, CONFIG_SPL_DRIVERS_MISC_SUPPORT added drivers/misc to SPL > build but also added drivers/firmware and drivers/sysreset at the same > time. > > Since

Re: [U-Boot] [PATCH v2 1/4] disk: efi: Fix memory leak on 'gpt guid'

2019-05-07 Thread Eugeniu Rosca
On Tue, May 07, 2019 at 10:11:18AM +0200, Lukasz Majewski wrote: > On Tue, 7 May 2019 09:10:28 +0200 > Eugeniu Rosca wrote: > > > Hi Lukasz, > > > > On Tue, May 07, 2019 at 09:03:15AM +0200, Lukasz Majewski wrote: > > [..] > > > Reviewed-by: Lukasz Majewski > > > > Thanks for the recent

Re: [U-Boot] [PATCH 09/12] arm: spear: Simplify start.S organization

2019-05-07 Thread Stefan Roese
On 07.05.19 14:18, Miquel Raynal wrote: There is no reason to do the few spear-related initialization, in a different procedure than 'reset'. Spare one branching and get a linear code flow by removing this indirection. Signed-off-by: Miquel Raynal Reviewed-by: Stefan Roese Thanks, Stefan

Re: [U-Boot] [PATCH 07/12] arm: spear: Use PUSH/POP mnemonics when relevant

2019-05-07 Thread Stefan Roese
On 07.05.19 14:18, Miquel Raynal wrote: Quoting ARM "RealView Compilation Tools Assembler Guide v4.0": PUSH and POP are synonyms for STMDB and LDM (or LDMIA), with the base register sp (r13), and the adjusted address written back to the base register. PUSH and

Re: [U-Boot] [PATCH 11/12] arm: spear: Do not link the _main branch

2019-05-07 Thread Stefan Roese
On 07.05.19 14:18, Miquel Raynal wrote: The _main call is not supposed to return at all: don't link the branch. Signed-off-by: Miquel Raynal Reviewed-by: Stefan Roese Thanks, Stefan ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH 10/12] arm: spear: Support returning to BootROM

2019-05-07 Thread Stefan Roese
On 07.05.19 14:18, Miquel Raynal wrote: Implement the weak board_return_to_bootrom() function so that when enabling the spl_bootrom.c driver, one can make use of usbboot on spear platforms. All necessary information to return to the BootROM are stored in the BootROM's stack. The SPL stack

[U-Boot] [PATCH 4/6] spl: mmc: support loading i.MX container format file

2019-05-07 Thread Peng Fan
i.MX8 only support AHAB secure boot with Container format image, we could not use FIT to support secure boot, so introduce container support to let SPL could load container images. Cc: Simon Goldschmidt Cc: Tien Fong Chee Cc: York Sun Cc: Marek Vasut Cc: Alex Kiernan Cc: Simon Glass Cc:

[U-Boot] [PATCH 6/6] imx8qxp_mek: switch to use container image

2019-05-07 Thread Peng Fan
Because FIT could not be used for AHAB secure boot on i.MX8, so switch to use container image that could let SPL verify ATF and U-Boot with AHAB. Note: The AHAB related code has not been added. Signed-off-by: Peng Fan --- board/freescale/imx8qxp_mek/README | 4 +---

Re: [U-Boot] [PATCH] rockchip: rk3399-puma: Re-disable SPL_ATF_NO_PLATFORM_PARAM

2019-05-07 Thread Mark Kettenis
> From: Christoph Muellner > Date: Tue, 7 May 2019 10:39:54 +0200 > > This reverts commit c869d63f2785ccde22582f96cf40cb8809f838ba. > > Mainline ATF already supports fdt-parsing, which allows us to > pass rk3399-puma specific data to setup things like the correct > UART. Therefore we can

[U-Boot] [PATCH 1/2] bouncebuf: Add static buffer allocation method for SPL.

2019-05-07 Thread Christoph Muellner
If we are using malloc-simple, we get into the problem, that calls to free() won't free any memory. When using bouncebuf in SPL with malloc-simple this means, that every allocated buffer is lost. This can quickly consume the whole heap. This patch addresses this memory wasting by introducing a

Re: [U-Boot] [PATCH v3 09/18] x86: Update device tree for TPL

2019-05-07 Thread Bin Meng
On Fri, May 3, 2019 at 12:52 AM Simon Glass wrote: > > Add TPL binaries to the device x86 binman desciption. When enabled, TPL > will start first, doing the 16-bit init, then jump to SPL and finally > U-Boot proper. > > Signed-off-by: Simon Glass > --- > > Changes in v3: None > Changes in v2: >

  1   2   3   4   >