Re: [U-Boot] [PATCH v5 2/4] doc: bindings: Add description for MDIO MUX dts nodes

2019-07-11 Thread Bin Meng
Hi Alex, On Fri, Jul 12, 2019 at 2:39 PM Alex Marginean wrote: > > Adds a short bindings document describing the expected structure of a MDIO > MUX dts node. This is based on Linux binding and the example is in fact > copied from there. > > Signed-off-by: Alex Marginean > Acked-by: Joe Hershber

[U-Boot] [PATCH v5 4/4] test: dm: add a test for MDIO MUX DM uclass

2019-07-11 Thread Alex Marginean
Adds a test using a makeshift MDIO MUX. The test is based on the existing MDIO test. It uses the last emulated PHY register to verify MUX selection. Signed-off-by: Alex Marginean Acked-by: Joe Hershberger Reviewed-by: Bin Meng --- Changes in v2: - no change Changes in v3: - n

[U-Boot] [PATCH v5 1/4] net: add MDIO_MUX DM class

2019-07-11 Thread Alex Marginean
Adds a class for MDIO MUXes, which control access to a series of downstream child MDIOs. MDIO MUX drivers are required to implement a select function used to switch between child buses. MUX children are registered as MDIO buses and they can be used just like regular MDIOs. Signed-off-by: Alex Marg

[U-Boot] [PATCH v5 3/4] test: dm_mdio: add a 2nd register to the emulated PHY

2019-07-11 Thread Alex Marginean
This 2nd register is used by the follow-up MDIO MUX test. Signed-off-by: Alex Marginean Reviewed-by: Bin Meng Acked-by: Joe Hershberger --- Changes in v2: - no change Changes in v3: - no change, just fighting with the email server Changes in v4: - no change Changes in v

[U-Boot] [PATCH v5 2/4] doc: bindings: Add description for MDIO MUX dts nodes

2019-07-11 Thread Alex Marginean
Adds a short bindings document describing the expected structure of a MDIO MUX dts node. This is based on Linux binding and the example is in fact copied from there. Signed-off-by: Alex Marginean Acked-by: Joe Hershberger Reviewed-by: Bin Meng --- Changes in v2: - no change Changes in

Re: [U-Boot] [PATCH 1/1] efi_loader: duplicate IMAGE_SUBSYSTEM_EFI_APPLICATION

2019-07-11 Thread AKASHI Takahiro
On Fri, Jul 12, 2019 at 08:04:59AM +0200, Heinrich Schuchardt wrote: > On 7/12/19 2:59 AM, AKASHI Takahiro wrote: > >Heinrich, > > > >I wonder why we need "asm-generic/pe.h". > > The assembler cannot understand includes that contain C specific syntax. > So we cannot include "pe.h". This is why "as

Re: [U-Boot] [PATCH v5 3/3] fit: Support compat string property in configuration node

2019-07-11 Thread Simon Goldschmidt
On Thu, Jul 11, 2019 at 10:53 PM Julius Werner wrote: > > This patch adds support for an optional optimization to compatible > string matching where the compatible string property from the root node > of the kernel FDT can be copied into the configuration node of the FIT > image. This is most usef

Re: [U-Boot] [PATCH v5 2/3] fit: Support compression for non-kernel components (e.g. FDT)

2019-07-11 Thread Simon Goldschmidt
On Thu, Jul 11, 2019 at 10:53 PM Julius Werner wrote: > > This patch adds support for compressing non-kernel image nodes in a FIT > image (kernel nodes could already be compressed previously). This can > reduce the size of FIT images and therefore improve boot times > (especially when an image bun

Re: [U-Boot] [PATCH v5 1/3] common: Move bootm_decomp_image() to image.c (as image_decomp())

2019-07-11 Thread Simon Goldschmidt
On Thu, Jul 11, 2019 at 10:53 PM Julius Werner wrote: > > Upcoming patches want to add decompression to use cases that are no > longer directly related to booting. It makes sense to retain a single > decompression routine, but it should no longer be in bootm.c (which is > not compiled for all conf

Re: [U-Boot] [PATCH 1/1] efi_loader: duplicate IMAGE_SUBSYSTEM_EFI_APPLICATION

2019-07-11 Thread Heinrich Schuchardt
On 7/12/19 2:59 AM, AKASHI Takahiro wrote: Heinrich, I wonder why we need "asm-generic/pe.h". The assembler cannot understand includes that contain C specific syntax. So we cannot include "pe.h". This is why "asm-generic/pe.h" has been split off. If IMAGE_SUBSYSTEM_EFI_APPLICATION can be arc

Re: [U-Boot] [PATCH v5 0/3] fit: Image node compression

2019-07-11 Thread Simon Goldschmidt
On Thu, Jul 11, 2019 at 10:53 PM Julius Werner wrote: > > This patch series adds compression support for non-kernel FIT image > nodes (e.g. FDTs). The first patch is a preparatory refactoring, the > second adds the compression support itself, and the third adds a new > feature to compatible string

Re: [U-Boot] [PATCH v2] arm: socfpga: do not reboot via SRAM

2019-07-11 Thread Simon Goldschmidt
On Fri, Jul 12, 2019 at 7:27 AM Marek Vasut wrote: > > On 7/12/19 7:20 AM, Simon Goldschmidt wrote: > > On Fri, Jul 12, 2019 at 7:15 AM Marek Vasut wrote: > >> > >> On 7/10/19 9:06 PM, Simon Goldschmidt wrote: > >>> This removes the code that enables the Boot ROM to just jump to SRAM > >>> instea

Re: [U-Boot] [PATCH 2/2] arm: socfpga: gen5: don't zero bss in board_init_f()

2019-07-11 Thread Simon Goldschmidt
On Fri, Jul 12, 2019 at 7:15 AM Marek Vasut wrote: > > On 7/11/19 9:18 PM, Simon Goldschmidt wrote: > > The socfpga gen5 SPL manually zeroed bss in board_init_f(). Now that the > > DDR driver does not use bss any more, bss is not used before board_init_r() > > and we can remove this hack. > > > >

Re: [U-Boot] [PATCH v2] arm: socfpga: do not reboot via SRAM

2019-07-11 Thread Marek Vasut
On 7/12/19 7:20 AM, Simon Goldschmidt wrote: > On Fri, Jul 12, 2019 at 7:15 AM Marek Vasut wrote: >> >> On 7/10/19 9:06 PM, Simon Goldschmidt wrote: >>> This removes the code that enables the Boot ROM to just jump to SRAM >>> instead of loading SPL from the original boot source on warm reboot. >>>

Re: [U-Boot] [PATCH v3 2/4] sysreset: socfpga: gen5: add sysreset driver

2019-07-11 Thread Simon Goldschmidt
On Fri, Jul 12, 2019 at 7:15 AM Marek Vasut wrote: > > On 7/10/19 9:22 PM, Simon Goldschmidt wrote: > > Am 09.05.2019 um 21:53 schrieb Marek Vasut: > >> On 5/9/19 8:55 PM, Simon Goldschmidt wrote: > >>> > >>> > >>> On 09.05.19 20:08, Simon Goldschmidt wrote: > This adds a UCLASS_SYSRESET sysr

Re: [U-Boot] [PATCH v2] arm: socfpga: do not reboot via SRAM

2019-07-11 Thread Simon Goldschmidt
On Fri, Jul 12, 2019 at 7:15 AM Marek Vasut wrote: > > On 7/10/19 9:06 PM, Simon Goldschmidt wrote: > > This removes the code that enables the Boot ROM to just jump to SRAM > > instead of loading SPL from the original boot source on warm reboot. > > > > The reason for removing this is that it is i

Re: [U-Boot] [PATCH 2/2] arm: socfpga: gen5: don't zero bss in board_init_f()

2019-07-11 Thread Marek Vasut
On 7/11/19 9:18 PM, Simon Goldschmidt wrote: > The socfpga gen5 SPL manually zeroed bss in board_init_f(). Now that the > DDR driver does not use bss any more, bss is not used before board_init_r() > and we can remove this hack. > > Signed-off-by: Simon Goldschmidt > --- > > arch/arm/mach-socfp

Re: [U-Boot] [PATCH 1/2] dm: ddr: socfpga: fix gen5 ddr driver to not use bss

2019-07-11 Thread Marek Vasut
On 7/11/19 9:18 PM, Simon Goldschmidt wrote: > This driver uses bss from SPL board_init_f(). Change it to move all the > data from bss to a common struct allocated on the stack (64 byte). > > In addition to saving 28 bytes of bss, the code even gets 264 bytes > smaller. > > Signed-off-by: Simon G

Re: [U-Boot] [PATCH v2] arm: socfpga: fix 3 boards missing env var "socfpga_legacy_reset_compat"

2019-07-11 Thread Marek Vasut
On 7/10/19 10:09 PM, Simon Goldschmidt wrote: > This fixes 3 boards that don't use CONFIG_EXTRA_ENV_SETTINGS from > socfpga_common.h. They need to enable reset manager compatibility > mode unless all peripheral drivers in Linux support reset handling. > > Fixes: commit 4b2e32efa4e7 ("arm: socfpga:

Re: [U-Boot] [PATCH v3 1/7] usb_kdb: only process events succesfully received

2019-07-11 Thread Marek Vasut
On 7/10/19 5:47 PM, Michal Suchánek wrote: > On Fri, 5 Jul 2019 14:12:36 +0200 > Marek Vasut wrote: > >> On 7/5/19 12:44 PM, Michal Suchanek wrote: >>> Causes unbound key repeat on error otherwise. >>> >>> Signed-off-by: Michal Suchanek >>> --- >>> v2: fix indentation >> >> What changed in V3

Re: [U-Boot] [PATCH v3 5/7] usb: add usb_int_msg_nonblock

2019-07-11 Thread Marek Vasut
On 7/10/19 5:52 PM, Michal Suchánek wrote: > On Fri, 5 Jul 2019 14:13:50 +0200 > Marek Vasut wrote: > >> On 7/5/19 12:44 PM, Michal Suchanek wrote: >>> Variant of the int_msg wrapper that does not introduce excessive retry >>> delay on error. >>> >>> Signed-off-by: Michal Suchanek >>> --- >>> v2

Re: [U-Boot] [PATCH v3 2/4] sysreset: socfpga: gen5: add sysreset driver

2019-07-11 Thread Marek Vasut
On 7/10/19 9:22 PM, Simon Goldschmidt wrote: > Am 09.05.2019 um 21:53 schrieb Marek Vasut: >> On 5/9/19 8:55 PM, Simon Goldschmidt wrote: >>> >>> >>> On 09.05.19 20:08, Simon Goldschmidt wrote: This adds a UCLASS_SYSRESET sysreset driver for socfgpa gen5. Signed-off-by: Simon Goldsch

Re: [U-Boot] [PATCH v2] arm: socfpga: do not reboot via SRAM

2019-07-11 Thread Marek Vasut
On 7/10/19 9:06 PM, Simon Goldschmidt wrote: > This removes the code that enables the Boot ROM to just jump to SRAM > instead of loading SPL from the original boot source on warm reboot. > > The reason for removing this is that it is insecure: SRAM might be > overwritten at the time the warm reboo

Re: [U-Boot] [PATCH V2 2/3] usb: musb-new: Add support for da8xx-musb

2019-07-11 Thread Marek Vasut
On 7/10/19 8:59 PM, Adam Ford wrote: > With the recently added phy driver, this patch will enable the > musb driver on the da8xx to operate in host mode. > > Signed-off-by: Adam Ford > --- > drivers/usb/musb-new/Kconfig | 8 + > drivers/usb/musb-new/Makefile | 1 + > drivers/usb/musb-new/da

Re: [U-Boot] [PATCH V2 1/2] watchdog: Split WDT from SPL_WDT

2019-07-11 Thread Suniel Mahesh
On 02/07/19 01:55, Marek Vasut wrote: > On 7/1/19 8:45 AM, Suniel Mahesh wrote: >> Hi Marek, >> >> May I know if this patch series is still under review ? > > I guess Stefano is taking them for next ... or ? > Hi Marek/Stefano, Because of this entry "Make SPL_WATCHDOG_SUPPORT imply SPL_WDT if !

Re: [U-Boot] [PATCH v2 1/2] arm: dts: Add devicetree support for iMXQXP AI_ML board

2019-07-11 Thread Peng Fan
> Subject: [PATCH v2 1/2] arm: dts: Add devicetree support for iMXQXP AI_ML > board > > Add devicetree support for iMXQXP AI_ML board from Einfochips. > > Signed-off-by: Manivannan Sadhasivam > > --- > arch/arm/dts/Makefile | 1 + > arch/arm/dts/fsl-imx8qxp-ai_ml-u-boot.

Re: [U-Boot] [PATCH v2 2/2] board: Add support for iMXQXP AI_ML board

2019-07-11 Thread Peng Fan
> Subject: [PATCH v2 2/2] board: Add support for iMXQXP AI_ML board > > This commit adds initial board support for iMXQXP AI_ML board from > Einfochips. This board is one of the 96Boards Consumer Edition and AI boards > of the 96Boards family based on i.MXQXP SoC from NXP/Freescale. > > This init

Re: [U-Boot] imx7d: CPU core issue in secure mode

2019-07-11 Thread Peng Fan
> Subject: Re: [U-Boot] imx7d: CPU core issue in secure mode > > + Peng > > Hi Tobias, Peng, > > On Thu, Jul 4, 2019 at 2:20 PM Tobias Junghans > wrote: > > > > Hi, > > > > I'm trying to get an imx7d-based Colibris board running in secure mode > > in order to be able to use the CAAM, especially

Re: [U-Boot] [PATCH v2] x86: edison: Enable SD slot

2019-07-11 Thread Bin Meng
On Fri, Jul 12, 2019 at 10:42 AM Bin Meng wrote: > > On Wed, Jun 26, 2019 at 4:52 AM Andy Shevchenko > wrote: > > > > Enable SD slot on Intel Edison platform. > > > > By default firmware doesn't put device on active state. Thus, > > we have to do this explicitly. > > > > Signed-off-by: Andy Shevc

Re: [U-Boot] [PATCH v2] x86: edison: Enable SD slot

2019-07-11 Thread Bin Meng
On Wed, Jun 26, 2019 at 4:52 AM Andy Shevchenko wrote: > > Enable SD slot on Intel Edison platform. > > By default firmware doesn't put device on active state. Thus, > we have to do this explicitly. > > Signed-off-by: Andy Shevchenko > --- > - fix conflict when applying patch > arch/x86/dts/edis

Re: [U-Boot] [PATCH v3 4/4] test: pci_ep: add basic pci_ep tests

2019-07-11 Thread Tom Rini
On Thu, Jul 11, 2019 at 06:04:55PM -0400, Tom Rini wrote: > On Sat, Apr 27, 2019 at 11:15:24AM +0300, Ramon Fried wrote: > > > Add basic PCI endpoint sandbox testing. > > > > Signed-off-by: Ramon Fried > > Reviewed-by: Simon Glass > > Applied to u-boot/master, thanks! This is however now brea

Re: [U-Boot] [PATCH] net: add comments to phy APIs

2019-07-11 Thread Bin Meng
On Thu, Jul 11, 2019 at 11:33 PM Alex Marginean wrote: > > Added a comment on the limitations of phy_find_by_mask API when scanning > MDIO buses with multiple PHYs present. Added short descriptions to the > other APIs in phy.h for consistency. > > Signed-off-by: Alex Marginean > --- > include/p

Re: [U-Boot] [PATCH v4 4/4] test: dm: add a test for MDIO MUX DM uclass

2019-07-11 Thread Bin Meng
On Thu, Jul 11, 2019 at 3:07 PM Alex Marginean wrote: > > Adds a test using a makeshift MDIO MUX. The test is based on the existing > MDIO test. It uses the last emulated PHY register to verify MUX selection. > > Signed-off-by: Alex Marginean > --- > > Changes in v2: > - no change > Cha

Re: [U-Boot] [PATCH v4 2/4] doc: bindings: Add description for MDIO MUX dts nodes

2019-07-11 Thread Bin Meng
On Thu, Jul 11, 2019 at 3:07 PM Alex Marginean wrote: > > Adds a short bindings document describing the expected structure of a MDIO > MUX dts node. This is based on Linux binding and the example is in fact > copied from there. > > Signed-off-by: Alex Marginean > --- > > Changes in v2: >

Re: [U-Boot] [PATCH 1/1] board: Arcturus: ucp1020: Removing obsoleted stuff

2019-07-11 Thread Bin Meng
On Thu, Jul 11, 2019 at 11:53 PM Oleksandr Zhadan wrote: > > Removed one of the defconfig(obsoleted) file > and unused CONFIG_MMC_SPI definition to avoid confusion > about if this board using non-DM stuff or not. > uCP1020 is completely DM free board, tested and runs well. > > Signed-off-by: Oleks

Re: [U-Boot] [PATCH 1/1] efi_loader: duplicate IMAGE_SUBSYSTEM_EFI_APPLICATION

2019-07-11 Thread AKASHI Takahiro
Heinrich, I wonder why we need "asm-generic/pe.h." If IMAGE_SUBSYSTEM_EFI_APPLICATION can be arch-specific, why not move other definitions, like * relocation types, too? -Takahiro Akashi On Thu, Jul 11, 2019 at 06:28:24PM +0200, Heinrich Schuchardt wrote: > IMAGE_SUBSYSTEM_EFI_APPLICATION is alr

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

2019-07-11 Thread Tom Rini
On Thu, May 23, 2019 at 05:32:23PM +0200, 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 revie

Re: [U-Boot] [PATCH v3 2/3] cmd: Add 'bcb' command to read/modify/write BCB fields

2019-07-11 Thread Tom Rini
On Thu, May 23, 2019 at 05:32:22PM +0200, Eugeniu Rosca wrote: > 'Bootloader Control Block' (BCB) is a well established term/acronym in > the Android namespace which refers to a location in a dedicated raw > (i.e. FS-unaware) flash (e.g. eMMC) partition, usually called "misc", > which is used as m

Re: [U-Boot] [PATCH] arm: mach-omap2: am33xx: Init pinmux before clock

2019-07-11 Thread Tom Rini
On Sat, May 25, 2019 at 10:40:35PM +0200, Marek Vasut wrote: > The board_early_init_f() inits clock before initing pinmux. However, > the clock configuration code might need to adjust PMIC settings of a > PMIC on I2C bus (e.g. board/ti/am335x/board.c does that). If the I2C > bus pin muxing is not

Re: [U-Boot] [PATCH] gpio: pca953x: Add TI TCA9539 compatible string

2019-07-11 Thread Tom Rini
On Sat, May 25, 2019 at 10:52:20PM +0200, Marek Vasut wrote: > Add TI TCA9539 compatible string for yet another I2C GPIO expander. > > Signed-off-by: Marek Vasut > Cc: Mario Six > Cc: Peng Fan > Cc: Simon Glass > Reviewed-by: Peng Fan Applied to u-boot/master, thanks! -- Tom signature.a

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

2019-07-11 Thread Tom Rini
On Tue, May 07, 2019 at 02:18:54PM +0200, 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. > > Sign

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

2019-07-11 Thread Tom Rini
On Tue, May 07, 2019 at 02:18:46PM +0200, 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 Applied to u-boot/master, thanks!

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

2019-07-11 Thread Tom Rini
On Tue, May 07, 2019 at 02:18:53PM +0200, 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 Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [PATCHv2 1/2] configs: Rename CONFIG_IMAGE_FORMAT_LEGACY to CONFIG_LEGACY_IMAGE_FORMAT

2019-07-11 Thread Tom Rini
On Thu, May 23, 2019 at 07:14:07AM -0400, Tom Rini wrote: > The name CONFIG_LEGACY_IMAGE_FORMAT reads slightly better along with > allowing us to avoid a rather nasty Kbuild/Kconfig issue down the line > with CONFIG_IS_ENABLED(IMAGE_FORMAT_LEGACY). In a few places outside of > cmd/ switch to usin

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

2019-07-11 Thread Tom Rini
On Tue, May 07, 2019 at 02:18:50PM +0200, 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 > Review

Re: [U-Boot] [PATCHv2 2/2] SPL: Default to disabling legacy image support when using FIT

2019-07-11 Thread Tom Rini
On Thu, May 23, 2019 at 07:14:08AM -0400, Tom Rini wrote: > When we have a FIT image being used by SPL by default that means the > most common case is that we'll never run into a legacy image. Disable > legacy image support by default in that case to reclaim space. > > Signed-off-by: Tom Rini

Re: [U-Boot] [PATCH v3 1/3] include: android_bootloader_message.h: Minimize the diff to AOSP

2019-07-11 Thread Tom Rini
On Thu, May 23, 2019 at 05:32:21PM +0200, Eugeniu Rosca wrote: > Perform the following updates: > - Relocate the commit id from the file to the description of U-Boot >commit. The AOSP commit is c784ce50e8c10eaf70e1f97e24e8324aef45faf5. >This is done to avoid stale references in the file i

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

2019-07-11 Thread Tom Rini
On Tue, May 07, 2019 at 02:18:43PM +0200, Miquel Raynal wrote: > Fix a tiny typo in boot_from_devices() kernel doc. > > Signed-off-by: Miquel Raynal > Reviewed-by: Stefan Roese Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___

Re: [U-Boot] [PATCH] tpm: wait for valid status

2019-07-11 Thread Tom Rini
On Thu, May 16, 2019 at 06:32:48PM +0200, Roman Kapl wrote: > The TPM specification says that the EXPECT_DATA bit is not valid until > the VALID bit is set. Wait for that bit to be set. Fixes problems with > Ifineon SPI TPM. > > Signed-off-by: Roman Kapl Applied to u-boot/master, thanks! -- T

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

2019-07-11 Thread Tom Rini
On Tue, May 07, 2019 at 02:18:52PM +0200, 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'

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

2019-07-11 Thread Tom Rini
On Tue, May 07, 2019 at 02:18:51PM +0200, 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:

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

2019-07-11 Thread Tom Rini
On Tue, May 07, 2019 at 02:18:47PM +0200, 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 Applied to u-boot/ma

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

2019-07-11 Thread Tom Rini
On Tue, May 07, 2019 at 02:18:48PM +0200, 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 Applied to u-boot/mast

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

2019-07-11 Thread Tom Rini
On Tue, May 07, 2019 at 02:18:49PM +0200, 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 bas

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

2019-07-11 Thread Tom Rini
On Tue, May 07, 2019 at 02:18:45PM +0200, Miquel Raynal wrote: > Rename Xloader as SPL in comments. > > Signed-off-by: Miquel Raynal > Reviewed-by: Stefan Roese Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___

Re: [U-Boot] [PATCH v3 3/4] pci_ep: add pci endpoint sandbox driver

2019-07-11 Thread Tom Rini
On Sat, Apr 27, 2019 at 11:15:23AM +0300, Ramon Fried wrote: > Add a dummy PCI endpoint for sandbox. > Supporting only a single function, it allows setting > and reading header configuration. > > Signed-off-by: Ramon Fried > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom

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

2019-07-11 Thread Tom Rini
On Tue, May 07, 2019 at 02:18:44PM +0200, 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

Re: [U-Boot] [PATCH v3 2/4] pci_ep: add Cadence PCIe endpoint driver

2019-07-11 Thread Tom Rini
On Sat, Apr 27, 2019 at 11:15:22AM +0300, Ramon Fried wrote: > Add Cadence PCIe endpoint driver supporting configuration > of header, bars and MSI for device. > > Signed-off-by: Ramon Fried > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP s

Re: [U-Boot] [PATCH v3 4/4] test: pci_ep: add basic pci_ep tests

2019-07-11 Thread Tom Rini
On Sat, Apr 27, 2019 at 11:15:24AM +0300, Ramon Fried wrote: > Add basic PCI endpoint sandbox testing. > > Signed-off-by: Ramon Fried > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___

Re: [U-Boot] [PATCH v3 1/4] drivers: pci_ep: Introduce UCLASS_PCI_EP uclass

2019-07-11 Thread Tom Rini
On Sat, Apr 27, 2019 at 11:15:21AM +0300, Ramon Fried wrote: > Introduce new UCLASS_PCI_EP class for handling PCI endpoint > devices, allowing to set various attributes of the PCI endpoint > device, such as: > * configuration space header > * BAR definitions > * outband memory mapping > * start/st

Re: [U-Boot] [PATCH] env: ti: boot: Handle reboot reason from BCB

2019-07-11 Thread Eugeniu Rosca
Hi Sam, On Tue, Jul 09, 2019 at 05:45:43PM +0300, Sam Protsenko wrote: > "emmc_android_boot=" \ > + "if bcb load " __stringify(CONFIG_FASTBOOT_FLASH_MMC_DEV) " misc; " \ > + "then " \ > + "if bcb test command = bootonce-bootloader; then " \ > + "echo B

Re: [U-Boot] [PATCH v3 1/2] net: introduce packet capture support

2019-07-11 Thread Joe Hershberger
On Sat, Jun 22, 2019 at 1:50 PM Ramon Fried wrote: > > Add support for capturing ethernet packets and storing > them in memory in PCAP(2.4) format, later to be analyzed by > any PCAP viewer software (IE. Wireshark) > > This feature greatly assist debugging network issues such > as detecting droppe

Re: [U-Boot] [PATCH v2 2/2] doc: pcap: add pcap cmd documentation

2019-07-11 Thread Joe Hershberger
On Sat, Jun 22, 2019 at 1:53 PM Ramon Fried wrote: > > Add documentation for new "pcap" command. > > Signed-off-by: Ramon Fried > --- > v2: remove duplicated lines from example > doc/README.pcap | 61 + > 1 file changed, 61 insertions(+) > create

Re: [U-Boot] [PATCH v3 1/2] net: introduce packet capture support

2019-07-11 Thread Joe Hershberger
On Sat, Jun 22, 2019 at 1:50 PM Ramon Fried wrote: > > Add support for capturing ethernet packets and storing > them in memory in PCAP(2.4) format, later to be analyzed by > any PCAP viewer software (IE. Wireshark) > > This feature greatly assist debugging network issues such > as detecting droppe

Re: [U-Boot] [PATCH v4 1/2] fit: Support compression for non-kernel components (e.g. FDT)

2019-07-11 Thread Julius Werner
Hi Tom, > This breaks tools-only_defconfig in non-trivial ways due to calling > bootm_decomp_image() which is not normally available to it. Can you > please update things (it may just end up being common/Makefile that > needs tweaking) so that tools-only builds? I'll then take a look and > make

[U-Boot] [PATCH v5 3/3] fit: Support compat string property in configuration node

2019-07-11 Thread Julius Werner
This patch adds support for an optional optimization to compatible string matching where the compatible string property from the root node of the kernel FDT can be copied into the configuration node of the FIT image. This is most useful when using compressed FDTs or when using FDT overlays, where t

[U-Boot] [PATCH v5 2/3] fit: Support compression for non-kernel components (e.g. FDT)

2019-07-11 Thread Julius Werner
This patch adds support for compressing non-kernel image nodes in a FIT image (kernel nodes could already be compressed previously). This can reduce the size of FIT images and therefore improve boot times (especially when an image bundles many different kernel FDTs). The images will automatically b

[U-Boot] [PATCH v5 1/3] common: Move bootm_decomp_image() to image.c (as image_decomp())

2019-07-11 Thread Julius Werner
Upcoming patches want to add decompression to use cases that are no longer directly related to booting. It makes sense to retain a single decompression routine, but it should no longer be in bootm.c (which is not compiled for all configurations). This patch moves bootm_decomp_image() to image.c and

[U-Boot] [PATCH v5 0/3] fit: Image node compression

2019-07-11 Thread Julius Werner
This patch series adds compression support for non-kernel FIT image nodes (e.g. FDTs). The first patch is a preparatory refactoring, the second adds the compression support itself, and the third adds a new feature to compatible string matching that allows it to be useful with compressed FDTs. Sand

[U-Boot] [PATCH 2/2] arm: socfpga: gen5: don't zero bss in board_init_f()

2019-07-11 Thread Simon Goldschmidt
The socfpga gen5 SPL manually zeroed bss in board_init_f(). Now that the DDR driver does not use bss any more, bss is not used before board_init_r() and we can remove this hack. Signed-off-by: Simon Goldschmidt --- arch/arm/mach-socfpga/spl_gen5.c | 2 -- 1 file changed, 2 deletions(-) diff --

[U-Boot] [PATCH 0/2] arm: socfpga: gen5 SPL bss cleanup

2019-07-11 Thread Simon Goldschmidt
This series removes the invalid usage of bss before board_init_r in SPL. Simon Goldschmidt (2): dm: ddr: socfpga: fix gen5 ddr driver to not use bss arm: socfpga: gen5: don't zero bss in board_init_f() arch/arm/mach-socfpga/spl_gen5.c |2 - drivers/ddr/altera/sequencer.c | 1346 ++

Re: [U-Boot] [RFC] bug.h: Drop filename from BUG/WARNING logs if building for TPL/SPL

2019-07-11 Thread Andreas Dannenberg
Hi Tom, On Thu, Jul 11, 2019 at 02:43:17PM -0400, Tom Rini wrote: > On Thu, Jul 11, 2019 at 01:12:16PM -0500, Andreas Dannenberg wrote: > > Also some additional background why I am even looking into this. One of > > our platforms (AM335x) has a regression building on Travis CI with some > > of

Re: [U-Boot] [RFC] bug.h: Drop filename from BUG/WARNING logs if building for TPL/SPL

2019-07-11 Thread Tom Rini
On Thu, Jul 11, 2019 at 01:12:16PM -0500, Andreas Dannenberg wrote: > Yamada-san, > > On Fri, Jul 12, 2019 at 02:29:02AM +0900, Masahiro Yamada wrote: > > On Fri, Jul 12, 2019 at 12:34 AM Andreas Dannenberg > > wrote: > > > > > > On Wed, Jul 10, 2019 at 04:30:44PM -0500, Andreas Dannenberg wrote

Re: [U-Boot] [RFC] bug.h: Drop filename from BUG/WARNING logs if building for TPL/SPL

2019-07-11 Thread Andreas Dannenberg
Yamada-san, On Fri, Jul 12, 2019 at 02:29:02AM +0900, Masahiro Yamada wrote: > On Fri, Jul 12, 2019 at 12:34 AM Andreas Dannenberg wrote: > > > > On Wed, Jul 10, 2019 at 04:30:44PM -0500, Andreas Dannenberg wrote: > > > On several platforms space is very tight when building for SPL or TPL. > > >

Re: [U-Boot] [PATCH v4 1/2] fit: Support compression for non-kernel components (e.g. FDT)

2019-07-11 Thread Tom Rini
On Wed, May 15, 2019 at 03:29:57PM -0700, Julius Werner wrote: > This patch adds support for compressing non-kernel image nodes in a FIT > image (kernel nodes could already be compressed previously). This can > reduce the size of FIT images and therefore improve boot times > (especially when an im

[U-Boot] [PATCH v2 2/2] board: Add support for iMXQXP AI_ML board

2019-07-11 Thread Manivannan Sadhasivam
This commit adds initial board support for iMXQXP AI_ML board from Einfochips. This board is one of the 96Boards Consumer Edition and AI boards of the 96Boards family based on i.MXQXP SoC from NXP/Freescale. This initial supports contains following peripherals which are tested and known to work:

[U-Boot] [PATCH v2 1/2] arm: dts: Add devicetree support for iMXQXP AI_ML board

2019-07-11 Thread Manivannan Sadhasivam
Add devicetree support for iMXQXP AI_ML board from Einfochips. Signed-off-by: Manivannan Sadhasivam --- arch/arm/dts/Makefile | 1 + arch/arm/dts/fsl-imx8qxp-ai_ml-u-boot.dtsi | 117 + arch/arm/dts/fsl-imx8qxp-ai_ml.dts | 181 + 3 fi

[U-Boot] [PATCH v2 0/2] Add board support for iMX8QXP AI_ML board

2019-07-11 Thread Manivannan Sadhasivam
Hello, This patchset adds initial board support for iMX8QXP AI_ML board from Einfochips. This board is one of the Consumer Edition and AI boards of the 96Boards family. This initial supports contains following peripherals which are tested and known to work: 1. Debug serial via UART2 2. SD ca

Re: [U-Boot] [RFC] bug.h: Drop filename from BUG/WARNING logs if building for TPL/SPL

2019-07-11 Thread Masahiro Yamada
On Fri, Jul 12, 2019 at 12:34 AM Andreas Dannenberg wrote: > > On Wed, Jul 10, 2019 at 04:30:44PM -0500, Andreas Dannenberg wrote: > > On several platforms space is very tight when building for SPL or TPL. > > To claw back a few bytes to be used for code remove the __FILE__ name > > from the BUG()

Re: [U-Boot] [RFC PATCH] fastboot: Implement fetching uboot env variables via fastboot getvar

2019-07-11 Thread Sam Protsenko
Hi Priit, On Wed, Jul 10, 2019 at 11:42 AM Eugeniu Rosca wrote: > > Hi Priit, > > On Tue, Jul 09, 2019 at 02:52:56PM +0300, Priit Laes wrote: > > From: Priit Laes > > > > Add u-boot specific getvar "extension" to fetch u-boot environment > > variables via `fastboot getvar uboot:var`. This makes

[U-Boot] Please pull u-boot-dm

2019-07-11 Thread Simon Glass
Hi Tom, I picked up a different patch for the unicode handling. Passing build here: https://travis-ci.org/sglass68/u-boot/builds/557041198 The following changes since commit ef8b7e045ec744dce385cac4b1438c9be6e2bbc8: Merge https://gitlab.denx.de/u-boot/custodians/u-boot-i2c (2019-07-10 13:51:

Re: [U-Boot] [PATCH v2 01/21] patman: Update cros_subprocess to use bytes

2019-07-11 Thread Simon Glass
On Wed, 10 Jul 2019 at 16:51, Simon Glass wrote: > > At present this function uses lists and strings. This does not work so > well with Python 3, and testing against '' does not work for a bytearray. > Update the code to fix these issues. > > Signed-off-by: Simon Glass > --- > > Changes in v2: >

Re: [U-Boot] Please pull u-boot-dm

2019-07-11 Thread Simon Glass
Hi Tom, On Wed, 10 Jul 2019 at 08:39, Tom Rini wrote: > > On Tue, Jul 09, 2019 at 11:16:18AM -0600, Simon Glass wrote: > > > Hi Tom, > > > > Build is here: > > > > https://travis-ci.org/sglass68/u-boot/builds/556001438 > > > > (looks like there is a unicode issue I need to look at) > > > > The fo

Re: [U-Boot] [PATCH 3/3] board: puma: Use rockchip_* helpers to setup cpuid and macaddr

2019-07-11 Thread Philipp Tomsich
> On 11.07.2019, at 18:28, Rohan Garg wrote: > > Signed-off-by: Rohan Garg Your commit message is empty on this one. Please revise. Thanks, Philipp. ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH 1/1] efi_loader: use predefined constants in crt0_*_efi.S

2019-07-11 Thread Heinrich Schuchardt
We should use predefined constants instead of magic numbers. Move some constant definitions from include/pe.h to include/asm-generic/pe.h. Use these constants in crt0_*_efi.S. Signed-off-by: Heinrich Schuchardt --- arch/arm/lib/crt0_aarch64_efi.S | 9 - arch/arm/lib/crt0_arm_efi.S

[U-Boot] [PATCH 1/3] rockchip: rk3399: derive ethaddr from cpuid

2019-07-11 Thread Rohan Garg
Generate a MAC address based on the cpuid available in the efuse block: Use the first 6 byte of the cpuid's SHA256 hash and set the locally administered bits. Also ensure that the multicast bit is cleared. The MAC address is only generated and set if there is no ethaddr present in the saved enviro

[U-Boot] [PATCH 3/3] board: puma: Use rockchip_* helpers to setup cpuid and macaddr

2019-07-11 Thread Rohan Garg
Signed-off-by: Rohan Garg --- .../puma_rk3399/puma-rk3399.c | 98 ++- 1 file changed, 8 insertions(+), 90 deletions(-) diff --git a/board/theobroma-systems/puma_rk3399/puma-rk3399.c b/board/theobroma-systems/puma_rk3399/puma-rk3399.c index 251cd2d566..af94ed998a

[U-Boot] [PATCH 2/3] rockchip: rk3399: Enable CONFIG_MISC_INIT_R for the Rock PI 4

2019-07-11 Thread Rohan Garg
This enables us to set a static MAC address Signed-off-by: Rohan Garg --- configs/rock-pi-4-rk3399_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/rock-pi-4-rk3399_defconfig b/configs/rock-pi-4-rk3399_defconfig index be670df23f..dc84ded86c 100644 --- a/configs/rock-pi-4-r

[U-Boot] [PATCH 1/1] efi_loader: duplicate IMAGE_SUBSYSTEM_EFI_APPLICATION

2019-07-11 Thread Heinrich Schuchardt
IMAGE_SUBSYSTEM_EFI_APPLICATION is already defined in include/asm-generic/pe.h which is included in include/pe.h. We should not define it twice. Signed-off-by: Heinrich Schuchardt --- include/pe.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/pe.h b/include/pe.h index 36e1908b7e..c7

Re: [U-Boot] [PATCH v4 2/4] doc: bindings: Add description for MDIO MUX dts nodes

2019-07-11 Thread Joe Hershberger
On Thu, Jul 11, 2019 at 2:07 AM Alex Marginean wrote: > > Adds a short bindings document describing the expected structure of a MDIO > MUX dts node. This is based on Linux binding and the example is in fact > copied from there. > > Signed-off-by: Alex Marginean Acked-by: Joe Hershberger __

Re: [U-Boot] [PATCH v4 4/4] test: dm: add a test for MDIO MUX DM uclass

2019-07-11 Thread Joe Hershberger
On Thu, Jul 11, 2019 at 2:08 AM Alex Marginean wrote: > > Adds a test using a makeshift MDIO MUX. The test is based on the existing > MDIO test. It uses the last emulated PHY register to verify MUX selection. > > Signed-off-by: Alex Marginean Acked-by: Joe Hershberger

[U-Boot] Please pull u-boot-marvell/master

2019-07-11 Thread Stefan Roese
Hi Tom, please pull the following Marvell related patches: - SPL SATA enhancements to allow booting from RAW SATA device needed for Clearfog (Baruch) - Enable SATA booting on Clearfog (Baruch) - Misc changes to Turris Omnia (Mare

[U-Boot] [PATCH 1/1] board: Arcturus: ucp1020: Removing obsoleted stuff

2019-07-11 Thread Oleksandr Zhadan
Removed one of the defconfig(obsoleted) file and unused CONFIG_MMC_SPI definition to avoid confusion about if this board using non-DM stuff or not. uCP1020 is completely DM free board, tested and runs well. Signed-off-by: Oleksandr Zhadan Signed-off-by: Michael Durrant --- configs/UCP1020_SPIFL

Re: [U-Boot] [PATCH] net: add comments to phy APIs

2019-07-11 Thread Joe Hershberger
On Thu, Jul 11, 2019 at 10:33 AM Alex Marginean wrote: > > Added a comment on the limitations of phy_find_by_mask API when scanning > MDIO buses with multiple PHYs present. Added short descriptions to the > other APIs in phy.h for consistency. > > Signed-off-by: Alex Marginean Thanks for doing

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

2019-07-11 Thread Alex Marginean
On 7/9/2019 7:15 PM, Joe Hershberger wrote: On Tue, Jul 9, 2019 at 10:17 AM Alex Marginean wrote: On 7/9/2019 4:25 PM, Joe Hershberger wrote: On Tue, Jul 9, 2019 at 7:53 AM Alex Marginean wrote: Hi Joe, On 7/8/2019 8:08 PM, Joe Hershberger wrote: On Wed, Jul 3, 2019 at 4:01 AM Alex Margi

Re: [U-Boot] [RFC] bug.h: Drop filename from BUG/WARNING logs if building for TPL/SPL

2019-07-11 Thread Andreas Dannenberg
On Wed, Jul 10, 2019 at 04:30:44PM -0500, Andreas Dannenberg wrote: > On several platforms space is very tight when building for SPL or TPL. > To claw back a few bytes to be used for code remove the __FILE__ name > from the BUG() and WARN() type macros. Since those macros still print > the function

[U-Boot] [PATCH] net: add comments to phy APIs

2019-07-11 Thread Alex Marginean
Added a comment on the limitations of phy_find_by_mask API when scanning MDIO buses with multiple PHYs present. Added short descriptions to the other APIs in phy.h for consistency. Signed-off-by: Alex Marginean --- include/phy.h | 80 +++ 1 file c

Re: [U-Boot] [RFC 1/4] video: fsl_dcu_fb: refactor init functions

2019-07-11 Thread Oleksandr Suvorov
On Thu, 11 Jul 2019 at 17:26, Igor Opaniuk wrote: > > + Oleksandr, Philippe > > On Mon, Jun 10, 2019 at 2:47 PM Igor Opaniuk wrote: > > > > From: Igor Opaniuk > > > > Move dcu-related code to fsl_dcu_probe_common, keep in video_hw_init() > > only legacy video stack (filling GraphicPanel struct e

[U-Boot] [PATCH] video: arm: rpi: Bail out early if querying video information fails

2019-07-11 Thread matthias . bgg
From: Fabian Vogt When probing we query for the width and hight of the display. If the firmware does not report any connected display the system will crash. See https://github.com/raspberrypi/firmware/issues/1157 for details. Signed-off-by: Fabian Vogt [mb: update commit message] Signed-off-by:

Re: [U-Boot] [PATCH v1] colibri_imx7: boot kernel in secure mode

2019-07-11 Thread Philippe Schenker
On Wed, 2019-07-10 at 12:19 +, Philippe Schenker wrote: > On Wed, 2019-07-03 at 16:50 +0300, Igor Opaniuk wrote: > > From: Igor Opaniuk > > > > NXP downstream kernel uses legacy method to enable other cores, > > which requires kernel to run in a security mode (althought upstream kernel > > us

  1   2   >