[U-Boot] [PATCH v4 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 v4 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 --- Changes in v2: - no change Changes in v3: - no change, just fighting with the email server Chan

[U-Boot] [PATCH v4 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 drivers/ne

[U-Boot] [PATCH v4 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 --- Changes in v2: - no change Changes in v3: - no change, just fighting with the e

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

2019-07-11 Thread Peng Fan
Hi Bin > Subject: Re: [PATCH v3 3/6] mmc: mmc_spi: Re-write driver using DM > framework > > Hi Peng, > > On Thu, Jul 11, 2019 at 2:36 PM Peng Fan wrote: > > > > Hi Anup, > > > > > Subject: [PATCH v3 3/6] mmc: mmc_spi: Re-write driver using DM > > > framework > > > > > > From: Bhargav Shah > >

[U-Boot] [PATCH] blk: Invalidate block cache when switching hwpart

2019-07-11 Thread Weijie Gao
Some storage devices have multiple hw partitions and both address from zero, for example eMMC. However currently block cache invalidation only applies to block write/erase. This can cause a problem that data of current hw partition is cached before switching to another hw partition. And the followi

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

2019-07-11 Thread Bin Meng
Hi Peng, On Thu, Jul 11, 2019 at 3:10 PM Peng Fan wrote: > > Hi Bin > > > Subject: Re: [PATCH v3 3/6] mmc: mmc_spi: Re-write driver using DM > > framework > > > > Hi Peng, > > > > On Thu, Jul 11, 2019 at 2:36 PM Peng Fan wrote: > > > > > > Hi Anup, > > > > > > > Subject: [PATCH v3 3/6] mmc: mmc_

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

2019-07-11 Thread Peng Fan
> Subject: Re: [PATCH v3 3/6] mmc: mmc_spi: Re-write driver using DM > framework > > Hi Peng, > > On Thu, Jul 11, 2019 at 3:10 PM Peng Fan wrote: > > > > Hi Bin > > > > > Subject: Re: [PATCH v3 3/6] mmc: mmc_spi: Re-write driver using DM > > > framework > > > > > > Hi Peng, > > > > > > On Thu,

Re: [U-Boot] Standalone program help needed

2019-07-11 Thread Wolfgang Denk
Dear Szabolcs, In message you wrote: > > I read the past posts (eg. from 2014) in this topic, but wasn't helpful. Did you also read the FAQ? I think not yet... > I downloaded the u-boot repo, hello_world.c > I got all files: like hello_world, hello_world.bin, hello_world.srec.. etc > > Run >

[U-Boot] [PATCH] dm: uclass: fix comment copy/paste error

2019-07-11 Thread Baruch Siach
The uclass_next_device() routine continues a previously started device iteration. Change the description that is copied from uclass_first_device(). Signed-off-by: Baruch Siach --- include/dm/uclass.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dm/uclass.h b/includ

Re: [U-Boot] [PATCH 0/6] Enabled DM_VIDEO for Colibri iMX7 NAND/iMX6ULL

2019-07-11 Thread Igor Opaniuk
+ Oleksandr On Wed, Jun 19, 2019 at 11:47 AM Igor Opaniuk wrote: > > From: Igor Opaniuk > > This patch-series fixes some issues in mxsfb fbdev bindings (incorrect > structure). Currently there is a support only for old format, new one > wil be introduced soon [1]. > > Also it enables support of

Re: [U-Boot] [PATCH 1/6] video: mxsfb: fix mxsfb fbdev binding issues

2019-07-11 Thread Igor Opaniuk
+ Oleksandr On Wed, Jun 19, 2019 at 11:47 AM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Add support for display and bits-per-pixel properties. > > Signed-off-by: Igor Opaniuk > --- > drivers/video/mxsfb.c | 74 --- > 1 file changed, 62 insertions(+),

Re: [U-Boot] [PATCH 2/6] ARM: dts: colibri_imx7: Fix lcdif node definition

2019-07-11 Thread Igor Opaniuk
+ Oleksandr On Wed, Jun 19, 2019 at 11:47 AM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Fix lcdif DT node and make it conform to the structure defined in the > Linux devicetree bindings [1]. Currently there is support only for > old style lcdif node definitions. > > [1] > https://www.kernel

Re: [U-Boot] [PATCH 3/6] configs: colibri_imx7: enable DM_VIDEO

2019-07-11 Thread Igor Opaniuk
+ Oleksandr On Wed, Jun 19, 2019 at 11:47 AM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Enable DM_VIDEO support for Colibri iMX7 NAND version. > > Signed-off-by: Igor Opaniuk > --- > configs/colibri_imx7_defconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/con

Re: [U-Boot] [PATCH 4/6] colibri-imx6ull: support building with DM_VIDEO=y

2019-07-11 Thread Igor Opaniuk
+ Oleksandr On Wed, Jun 19, 2019 at 11:47 AM Igor Opaniuk wrote: > > From: Igor Opaniuk > > 1. This fixes linking issues when building with DM_VIDEO enabled mxsfb > driver. > 2. Provide proper defines for both VIDEO=y and DM_VIDEO=y. > > Signed-off-by: Igor Opaniuk > --- > arch/arm/mach-imx/mx

Re: [U-Boot] [PATCH 5/6] ARM: dts: colibri-imx6ull: extend lcdif node

2019-07-11 Thread Igor Opaniuk
+ Oleksandr On Wed, Jun 19, 2019 at 11:47 AM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Provide proper display timings for lcdif node, used by mxsfb DM_VIDEO > enabled framebuffer driver. > > Signed-off-by: Igor Opaniuk > --- > arch/arm/dts/imx6ull-colibri.dts | 32

Re: [U-Boot] [PATCH 4/9] spl: sata: support U-Boot load from raw sata disk

2019-07-11 Thread Stefan Roese
Hi Baruch, On 16.05.19 12:03, Baruch Siach wrote: Support load of the U-Boot image from raw SATA disk sector. This is equivalent to load from MMC raw sector. Signed-off-by: Baruch Siach This patch breaks cm_t54: $ ./tools/buildman/buildman cm_t54 Building current source for 1 boards (1 thre

Re: [U-Boot] [PATCH 6/6] configs: colibri-imx6ull: switch to DM_VIDEO

2019-07-11 Thread Igor Opaniuk
+Oleksandr On Wed, Jun 19, 2019 at 11:47 AM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Use CONFIG_DM_VIDEO=y by default for Colibri iMX6ULL. > > Signed-off-by: Igor Opaniuk > --- > configs/colibri-imx6ull_defconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/co

[U-Boot] [PATCH] clk: initialize clk->data when using default xlate

2019-07-11 Thread Sekhar Nori
Right now when using clk_of_xlate_default(), clk->data remains un-initialized because clk_get_bulk() does not initialize memory on allocation of clock structure. This can cause problems when data is used to match if two clocks pointers are exactly the same underlying clocks, for example. Fix it b

Re: [U-Boot] [PATCH 1/6] video: mxsfb: fix mxsfb fbdev binding issues

2019-07-11 Thread Oleksandr Suvorov
On Thu, 11 Jul 2019 at 11:57, Igor Opaniuk wrote: > > + Oleksandr > > On Wed, Jun 19, 2019 at 11:47 AM Igor Opaniuk wrote: > > > > From: Igor Opaniuk > > > > Add support for display and bits-per-pixel properties. > > > > Signed-off-by: Igor Opaniuk > > --- > > drivers/video/mxsfb.c | 74 ++

Re: [U-Boot] [PATCH 2/6] ARM: dts: colibri_imx7: Fix lcdif node definition

2019-07-11 Thread Oleksandr Suvorov
On Thu, 11 Jul 2019 at 11:58, Igor Opaniuk wrote: > > + Oleksandr > > On Wed, Jun 19, 2019 at 11:47 AM Igor Opaniuk wrote: > > > > From: Igor Opaniuk > > > > Fix lcdif DT node and make it conform to the structure defined in the > > Linux devicetree bindings [1]. Currently there is support only f

Re: [U-Boot] [PATCH 3/6] configs: colibri_imx7: enable DM_VIDEO

2019-07-11 Thread Oleksandr Suvorov
On Thu, 11 Jul 2019 at 11:58, Igor Opaniuk wrote: > > + Oleksandr > > On Wed, Jun 19, 2019 at 11:47 AM Igor Opaniuk wrote: > > > > From: Igor Opaniuk > > > > Enable DM_VIDEO support for Colibri iMX7 NAND version. > > > > Signed-off-by: Igor Opaniuk > > --- > > configs/colibri_imx7_defconfig |

Re: [U-Boot] [PATCH 4/6] colibri-imx6ull: support building with DM_VIDEO=y

2019-07-11 Thread Oleksandr Suvorov
On Thu, 11 Jul 2019 at 11:59, Igor Opaniuk wrote: > > + Oleksandr > > On Wed, Jun 19, 2019 at 11:47 AM Igor Opaniuk wrote: > > > > From: Igor Opaniuk > > > > 1. This fixes linking issues when building with DM_VIDEO enabled mxsfb > > driver. > > 2. Provide proper defines for both VIDEO=y and DM_V

Re: [U-Boot] [PATCH 5/6] ARM: dts: colibri-imx6ull: extend lcdif node

2019-07-11 Thread Oleksandr Suvorov
On Thu, 11 Jul 2019 at 11:59, Igor Opaniuk wrote: > > + Oleksandr > > On Wed, Jun 19, 2019 at 11:47 AM Igor Opaniuk wrote: > > > > From: Igor Opaniuk > > > > Provide proper display timings for lcdif node, used by mxsfb DM_VIDEO > > enabled framebuffer driver. > > > > Signed-off-by: Igor Opaniuk

Re: [U-Boot] [PATCH 6/6] configs: colibri-imx6ull: switch to DM_VIDEO

2019-07-11 Thread Oleksandr Suvorov
On Thu, 11 Jul 2019 at 11:59, Igor Opaniuk wrote: > > +Oleksandr > > On Wed, Jun 19, 2019 at 11:47 AM Igor Opaniuk wrote: > > > > From: Igor Opaniuk > > > > Use CONFIG_DM_VIDEO=y by default for Colibri iMX6ULL. > > > > Signed-off-by: Igor Opaniuk > > --- > > configs/colibri-imx6ull_defconfig |

Re: [U-Boot] [PATCH v2 1/1] colibri_imx7: introduce androidboot wrapper

2019-07-11 Thread Igor Opaniuk
+ Oleksandr, Philippe, Dominik On Tue, Jun 18, 2019 at 2:57 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > 1. Introduce androidboot wrapper for booting AOSP. > 2. Add partitions_android env var for simplifying the process of > writing new gpt table from U-boot shell/fastboot. > > Signed-off-b

Re: [U-Boot] [PATCH v2 1/1] colibri_imx7: introduce androidboot wrapper

2019-07-11 Thread Oleksandr Suvorov
On Thu, 11 Jul 2019 at 12:27, Igor Opaniuk wrote: > > + Oleksandr, Philippe, Dominik > > On Tue, Jun 18, 2019 at 2:57 PM Igor Opaniuk wrote: > > > > From: Igor Opaniuk > > > > 1. Introduce androidboot wrapper for booting AOSP. > > 2. Add partitions_android env var for simplifying the process of

Re: [U-Boot] [PATCH v2] rtc: Add rtc driver for stm32mp1

2019-07-11 Thread Patrick DELAUNAY
Hi Benjamin, > From: Benjamin GAIGNARD > Sent: mardi 9 juillet 2019 14:48 > > Add support of STM32MP1 rtc driver. > Enable it for basic and trusted configurations. > > Signed-off-by: Benjamin Gaignard > --- > version 2: > - release clock on on error cases. In V2, you also drop a part of the

[U-Boot] [PATCH] buildman: fix invocation examples typos

2019-07-11 Thread Baruch Siach
Also, make command line example indentation consistent. Signed-off-by: Baruch Siach --- tools/buildman/README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/buildman/README b/tools/buildman/README index 56a99c70a2ac..e36619216d4d 100644 --- a/tools/buildman/README

Re: [U-Boot] [PATCH v7 7/9] riscv: sifive: fu540: Setup ethaddr env variable using OTP

2019-07-11 Thread Ramon Fried
On July 11, 2019 7:28:59 AM GMT+03:00, Anup Patel wrote: > > >> -Original Message- >> From: Troy Benjegerdes >> Sent: Wednesday, July 10, 2019 10:45 PM >> To: Anup Patel ; Sagar Karandikar >> ; Joey Hewitt >> Cc: Rick Chen ; Bin Meng ; >> Lukas Auer ; Simon Glass >> ; Ramon Fried ; Joe

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

2019-07-11 Thread Igor Opaniuk
+ 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 the HWRNG. However it seems like > it's currently not possible to boot a mainline ker

Re: [U-Boot] [PATCH 0/6] Enabled DM_VIDEO for Colibri iMX7 NAND/iMX6ULL

2019-07-11 Thread Igor Opaniuk
Hi Anatolij, On Wed, Jun 19, 2019 at 11:47 AM Igor Opaniuk wrote: > > From: Igor Opaniuk > > This patch-series fixes some issues in mxsfb fbdev bindings (incorrect > structure). Currently there is a support only for old format, new one > wil be introduced soon [1]. > > Also it enables support of

Re: [U-Boot] Standalone program help needed

2019-07-11 Thread Wolfgang Denk
Dear Szabolcs, it is always good style to keep the mailing list on Cc: so others can benefit as well from any replies you get. [Also it's a good idea to post a summary after you solved the problem.] In message you wrote: > > Yes, I tried 200 different options/ versions.., therefore the two dif

[U-Boot] [PATCH v3 2/2] rtc: Add rtc driver for stm32mp1

2019-07-11 Thread Benjamin Gaignard
Add support of STM32MP1 rtc driver. Enable it for basic and trusted configurations. Signed-off-by: Benjamin Gaignard --- version 3: - release clock only on error cases. configs/stm32mp15_basic_defconfig | 2 + configs/stm32mp15_trusted_defconfig | 2 + drivers/rtc/Kconfig

[U-Boot] [PATCH v3 1/2] clk: stm32mp1: Add RTC clock entry

2019-07-11 Thread Benjamin Gaignard
From: Patrick Delaunay Add RTCAPB and RTC clock support. Signed-off-by: Benjamin Gaignard Signed-off-by: Patrick Delaunay --- drivers/clk/clk_stm32mp1.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/clk/clk_stm32mp1.c b/drivers/clk/clk_stm32mp1.c index f295e4864b..97d4a

[U-Boot] [PATCH v3 0/2] Add RTC driver for STM32MP1

2019-07-11 Thread Benjamin Gaignard
This series add support of RTC driver for stm32mp1 SoC. First it adds the missing clocks for RTC hadrware block and after the driver itself (enabled for basic and trusted configurations). version 3: - release clock only on error cases. Benjamin Gaignard (1): rtc: Add rtc driver for stm32mp1 Pa

[U-Boot] Export Function Mechanism on i386 Minnowmax board

2019-07-11 Thread prateek
Hi, I am trying to use the exported function "install_hdlr" on the minnowmax board. I have observed that the first argument is never passed correctly. On closer inspection, I see that the eax register is overwritten by the export function mechanism. What would be the cleanest way to cor

Re: [U-Boot] [PATCH 1/2] env: Move CONFIG_ENV_UBI_VOLUME_REDUND in Kconfig

2019-07-11 Thread Patrick DELAUNAY
Hi, > From: Patrick DELAUNAY > Sent: vendredi 14 juin 2019 13:06 > ; Michal Simek ; York Sun > ; U-Boot STM32 mailman.stormreply.com>; Vipul Kumar ; Patrice > CHOTARD ; Heinrich Schuchardt > ; Alexey Brodkin > Subject: [PATCH 1/2] env: Move CONFIG_ENV_UBI_VOLUME_REDUND in > Kconfig > Importance

Re: [U-Boot] [PATCH 00/18] autoboot: Tidy up autoboot code

2019-07-11 Thread Tom Rini
On Sun, May 05, 2019 at 03:53:24PM -0600, Simon Glass wrote: > This series cleans up autoboot.c a bit to: > > - Convert options to Kconfig > - Use C code instead of C preprocessor where possible > - Add a few comments > > > Simon Glass (18): > main: Use conditional run_preboot_environment_com

[U-Boot] Data abort during relocation

2019-07-11 Thread Arnout Diels
Hello all, I ran into a data abort in uboot during relocation (in relocate_code in relocate.S), in the "fixloop macro": ENTRY(relocate_code) . /* * fix .rel.dyn relocations */ ldr r2, =__rel_dyn_start /*

[U-Boot] incorrect include/config.h causes?

2019-07-11 Thread Amos, Brian J
Hello, Would anyone be kind enough to help point me in the right direction for debugging the auto-generated '/include/config.h' file? I've got a missing .h file name in line 8 of /include/config.h and a suspicious looking CONFIG_BOARDDIR I'm attempting to add support for a custom board to

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

2019-07-11 Thread Igor Opaniuk
Hi Tobias, On Wed, Jul 10, 2019 at 3:35 PM Tobias Junghans wrote: > > > > NXP downstream kernel uses legacy method to enable other cores, > > > which requires kernel to run in a security mode (althought upstream > > > kernel > > > uses PSCI for this). > > > > > > As we're using NXP kernel in our

Re: [U-Boot] [GIT PULL] UniPhier SoC updates for v2019.10-rc1

2019-07-11 Thread Masahiro Yamada
+CC list, just in case. On Thu, Jul 11, 2019 at 11:19 PM Masahiro Yamada wrote: > > Hi Tom, > > Here is a pretty big bulk of changes for -rc1. Please pull! > > > > The following changes since commit b4944e25744aa42dc23c6912e1cd4ccad270c4e0: > > Merge tag 'u-boot-atmel-2019.10-a' of > https://

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

2019-07-11 Thread Igor Opaniuk
+ 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 etc.). > > Add wrappers for all init functions, that will let to prov

Re: [U-Boot] [RFC 0/4] Convert fsl_dcu_fb to DM_VIDEO

2019-07-11 Thread Igor Opaniuk
+ Oleksandr, Philippe On Mon, Jun 10, 2019 at 2:47 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > This series of patches refactors and extends NXP DCU video driver to > be built with DM_VIDEO enabled. DTS files must additionally include > 'u-boot,dm-pre-reloc' property in soc and child nodes

Re: [U-Boot] [RFC 3/4] ARM: dts: colibri_vf: Add dcu0 node

2019-07-11 Thread Igor Opaniuk
+ Oleksandr, Philippe On Mon, Jun 10, 2019 at 2:48 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Add dumb node for NXP Display Control Unit0(DCU), which permits DM_ENABLED > converted driver to be probed. Currently no display timings are provided > in this node. > > Signed-off-by: Igor Opani

Re: [U-Boot] [RFC 2/4] video: fsl_dcu_fb: add DM_VIDEO support

2019-07-11 Thread Igor Opaniuk
+ Oleksandr, Philippe On Mon, Jun 10, 2019 at 2:47 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Extend the driver to build with DM_VIDEO enabled. DTS files > must additionally include 'u-boot,dm-pre-reloc' property in > soc and child nodes to enable driver binding to fsl_dcu_fb device. > >

Re: [U-Boot] [RFC 4/4] colibri_vf: enable DM_VIDEO

2019-07-11 Thread Igor Opaniuk
+ Oleksandr, Philippe On Mon, Jun 10, 2019 at 2:48 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Enable DM_VIDEO for Colibri VF. > > Signed-off-by: Igor Opaniuk > --- > configs/colibri_vf_defconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/configs/colibri_vf_

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

[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] [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] 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] 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

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] [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

[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

[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

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

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 __

[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

[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 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 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 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

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

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 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: >

[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] [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

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()

[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

[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 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:

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

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] [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
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

[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 ++

[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 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 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 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

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

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] 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/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 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 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 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 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 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 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 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 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 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 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] 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

  1   2   >