[PATCH v3] fsl-layerscape: enable dwc3 snooping feature

2020-08-05 Thread Ran Wang
Configure DWC3’s cache type to ‘cacheable’ for better performance. Actually related register definition and values are SoC specific, which means this setting is only applicable to Layerscape SoC, not generic for all platforms which have integrated DWC3 IP. Signed-off-by: Ran Wang --- Change in

RE: master u-boot broken for HiFive Unleashed

2020-08-05 Thread Pragnesh Patel
Hi Atish, I just sent a patch to solve this issue. https://patchwork.ozlabs.org/project/uboot/patch/20200805090053.11805-1-pragnesh.pa...@sifive.com/ Thanks, Pragnesh >-Original Message- >From: U-Boot On Behalf Of Pragnesh Patel >Sent: 04 August 2020 20:03 >To: Atish Patra ; Bin Meng

Re: [PATCH] common/board_f: make sure to call fix_fdt() before reserve_fdt()

2020-08-05 Thread Bin Meng
On Wed, Aug 5, 2020 at 5:01 PM Pragnesh Patel wrote: > > There may be a chance that board specific fix_fdt() will change the > size of FDT blob so it's safe to call reserve_fdt() after fix_fdt() > otherwise global data (gd) will overwrite with FDT blob values. > > Signed-off-by: Pragnesh Patel >

[PATCH v1] Makefile: socfpga: Generate spl/u-boot-splx4.sfp with 4 SPL images

2020-08-05 Thread Chee Hong Ang
Generate spl/u-boot-splx4.sfp which consist of 4 SPL images required for booting up Cyclone5/Arria10. Signed-off-by: Chee Hong Ang --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2629a74..13429a0 100644 --- a/Makefile +++

Re: [PATCH v2 0/4] usb: xhci: Prepare xHCI driver for MIPS Octeon big-endian support

2020-08-05 Thread Marek Vasut
On 8/5/20 7:57 AM, Stefan Roese wrote: > Hi Marek, > > On 30.07.20 08:59, Bin Meng wrote: >> Hi Marek, >> >> On Thu, Jul 30, 2020 at 2:32 PM Stefan Roese wrote: >>> >>> Hi Bin, >>> >>> On 21.07.20 10:46, Stefan Roese wrote: These patches fix a few issues, found while porting the xHCI

[PULL] u-boot-sh/master

2020-08-05 Thread Marek Vasut
The following changes since commit a2d051e7b6a8f87add1067d936bb0c805a47b0df: Merge branch '2020-07-31-more-env-updates' (2020-07-31 10:13:07 -0400) are available in the Git repository at: git://git.denx.de/u-boot-sh.git master for you to fetch changes up to

Re: [PATCH v2 0/8] regmap: Add managed API, regmap fields, regmap config

2020-08-05 Thread Pratyush Yadav
Hi Simon, On 06/06/20 02:00AM, Pratyush Yadav wrote: > Hi, > > This series is a re-spin of Jean-Jacques' earlier effort [0], the goal > of which was to facilitate porting drivers from the Linux kernel. It > adds the managed API, using the same API as Linux. It also adds support > for regmap

Re: [PATCH] Convert CONFIG_SYS_MMC_ENV_DEV et al to Kconfig

2020-08-05 Thread Stefan Roese
Hi Rasmus, On 05.08.20 10:47, Rasmus Villemoes wrote: On 24/07/2020 23.14, Tom Rini wrote: This converts the following to Kconfig: CONFIG_SYS_MMC_ENV_DEV CONFIG_SYS_MMC_ENV_PART Yes, please! That's the only thing preventing us from running a vanilla upstream U-Boot on a number of our

Re: [PATCH 1/1] riscv: fix building with CONFIG_SPL_SMP=n

2020-08-05 Thread Andy Shevchenko
On Wed, Aug 5, 2020 at 3:11 AM Bin Meng wrote: > On Tue, Aug 4, 2020 at 10:58 PM Heinrich Schuchardt > wrote: > > On 04.08.20 15:15, Bin Meng wrote: > > > On Tue, Aug 4, 2020 at 7:02 PM Heinrich Schuchardt > > > wrote: > > >> On 04.08.20 03:46, Bin Meng wrote: > > >>> On Tue, Aug 4, 2020 at

Re: [PATCH v2 12/18] board: ti: j7200: Introduce support for j7200 build targets

2020-08-05 Thread Vignesh Raghavendra
Hi On 27/07/20 3:15 pm, Lokesh Vutla wrote: > j7200-evm has minor differences with j721e-evm based on the IPs > available in the SoC. Introduce separate build targets for j7200-evm > to incorporate the differences. > > Signed-off-by: Lokesh Vutla > --- > board/ti/j721e/Kconfig | 53

[PATCH] common/board_f: make sure to call fix_fdt() before reserve_fdt()

2020-08-05 Thread Pragnesh Patel
There may be a chance that board specific fix_fdt() will change the size of FDT blob so it's safe to call reserve_fdt() after fix_fdt() otherwise global data (gd) will overwrite with FDT blob values. Signed-off-by: Pragnesh Patel --- common/board_f.c | 6 +++--- 1 file changed, 3 insertions(+),

Re: [PATCH v1] Makefile: socfpga: Generate spl/u-boot-splx4.sfp with 4 SPL images

2020-08-05 Thread Marek Vasut
On 8/5/20 10:15 AM, Chee Hong Ang wrote: > Generate spl/u-boot-splx4.sfp which consist of 4 SPL images required > for booting up Cyclone5/Arria10. > > Signed-off-by: Chee Hong Ang > --- > Makefile | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/Makefile b/Makefile

Re: [PATCH v1] Makefile: socfpga: Generate spl/u-boot-splx4.sfp with 4 SPL images

2020-08-05 Thread Marek Vasut
On 8/5/20 11:15 AM, Tan, Ley Foon wrote: [...] >>> diff --git a/Makefile b/Makefile >>> index 2629a74..13429a0 100644 >>> --- a/Makefile >>> +++ b/Makefile >>> @@ -1578,8 +1578,9 @@ u-boot.spr: spl/u-boot-spl.img u-boot.img >> FORCE >>> ifneq ($(CONFIG_ARCH_SOCFPGA),) quiet_cmd_socboot = SOCBOOT

RE: [PATCH v1] Makefile: socfpga: Generate spl/u-boot-splx4.sfp with 4 SPL images

2020-08-05 Thread Tan, Ley Foon
> -Original Message- > From: Marek Vasut > Sent: Wednesday, August 5, 2020 4:23 PM > To: Ang, Chee Hong ; u-boot@lists.denx.de > Cc: Simon Goldschmidt ; Tom Rini > ; See, Chin Liang ; Tan, Ley > Foon ; Chee, Tien Fong > ; Lim, Elly Siew Chin > > Subject: Re: [PATCH v1] Makefile:

Re: [PATCH v1 03/24] pci: pci-uclass: Dynamically allocate the PCI regions

2020-08-05 Thread Stefan Roese
Hi Marek, On 30.07.20 17:16, Stefan Roese wrote: Hi Simon, On 28.07.20 21:01, Simon Glass wrote: Hi Stefan, On Fri, 24 Jul 2020 at 04:09, Stefan Roese wrote: Instead of using a fixed length pre-allocated array of regions, this patch moves to dynamically allocating the regions based on the

Re: [PATCH v2 0/2] reset: Add a managed API

2020-08-05 Thread Pratyush Yadav
Hi Simon, On 12/06/20 05:38PM, Pratyush Yadav wrote: > Hi, > > This is the 4th of a few series that are re-rolls of Jean-Jacques' > earlier efforts. The goal is to facilitate porting drivers from the > Linux kernel. > > This particular series is about reset controllers. It adds a managed API, >

Re: [PATCH 1/1] cmd: exception: unaligned data access on RISC-V

2020-08-05 Thread Rick Chen
Hi Heinrich > From: Heinrich Schuchardt [mailto:xypron.g...@gmx.de] > Sent: Tuesday, August 04, 2020 7:10 PM > To: Rick Jian-Zhi Chen(陳建志) > Cc: u-boot@lists.denx.de; Heinrich Schuchardt > Subject: [PATCH 1/1] cmd: exception: unaligned data access on RISC-V > > The command 'exception' can be used

Re: [PATCH] Convert CONFIG_SYS_MMC_ENV_DEV et al to Kconfig

2020-08-05 Thread Rasmus Villemoes
On 24/07/2020 23.14, Tom Rini wrote: > This converts the following to Kconfig: >CONFIG_SYS_MMC_ENV_DEV >CONFIG_SYS_MMC_ENV_PART Yes, please! That's the only thing preventing us from running a vanilla upstream U-Boot on a number of our boards where we have the defconfig out of tree - we

Re: [PATCH 1/1] cmd: exception: unaligned data access on RISC-V

2020-08-05 Thread Rick Chen
Hi Heinrich > >> From: Heinrich Schuchardt [mailto:xypron.g...@gmx.de] > >> Sent: Tuesday, August 04, 2020 7:10 PM > >> To: Rick Jian-Zhi Chen(陳建志) > >> Cc: u-boot@lists.denx.de; Heinrich Schuchardt > >> Subject: [PATCH 1/1] cmd: exception: unaligned data access on RISC-V > >> > >> The command

RE: [PATCH v1] arm: socfpga: Use DM watchdog timer

2020-08-05 Thread Tan, Ley Foon
> -Original Message- > From: Ang, Chee Hong > Sent: Wednesday, August 5, 2020 9:51 PM > To: u-boot@lists.denx.de > Cc: Marek Vasut ; Simon Goldschmidt > ; Tom Rini ; See, > Chin Liang ; Tan, Ley Foon > ; Ang, Chee Hong ; > Chee, Tien Fong ; Lim, Elly Siew Chin > > Subject: [PATCH v1]

RE: [PATCH v1] arm: socfpga: soc64: Check FPGA Config status register before bridge reset

2020-08-05 Thread Tan, Ley Foon
> -Original Message- > From: Ang, Chee Hong > Sent: Wednesday, August 5, 2020 8:55 PM > To: u-boot@lists.denx.de > Cc: Marek Vasut ; Simon Goldschmidt > ; Tom Rini ; See, > Chin Liang ; Tan, Ley Foon > ; Ang, Chee Hong ; > Chee, Tien Fong ; Lim, Elly Siew Chin > > Subject: [PATCH v1]

RE: [PATCH v1 1/2] arm: socfpga: soc64: Add SDM triggered warm reset bit mask

2020-08-05 Thread Tan, Ley Foon
> -Original Message- > From: Ang, Chee Hong > Sent: Wednesday, August 5, 2020 9:16 PM > To: u-boot@lists.denx.de > Cc: Marek Vasut ; Simon Goldschmidt > ; Tom Rini ; See, > Chin Liang ; Tan, Ley Foon > ; Ang, Chee Hong ; > Chee, Tien Fong ; Lim, Elly Siew Chin > > Subject: [PATCH v1

Re: [PATCH 6/6] riscv: sifive/fu540: Move SPL related functions to spl.c

2020-08-05 Thread Leo Liang
On Sun, Aug 02, 2020 at 11:09:06PM -0700, Bin Meng wrote: > From: Bin Meng > > It's better to keep all SPL related functions in the same spl.c. > > Signed-off-by: Bin Meng > --- > > board/sifive/fu540/fu540.c | 33 - > board/sifive/fu540/spl.c | 33

Re: [PATCH 5/6] riscv: sifive/fu540: Drop NET_RANDOM_ETHADDR

2020-08-05 Thread Leo Liang
On Sun, Aug 02, 2020 at 11:09:05PM -0700, Bin Meng wrote: > From: Bin Meng > > This option was enabled during the earlier U-Boot porting time. Now > we already have the OTP driver in place and the unique MAC address > is read from the OTP, there is no need to turn on this option. > >

RE: [PATCH] ddr: socfpga: stratix10: Use phys_size_t for memory size

2020-08-05 Thread Tan, Ley Foon
> -Original Message- > From: Chee, Tien Fong > Sent: Tuesday, August 4, 2020 6:02 PM > To: u-boot@lists.denx.de > Cc: Simon Goldschmidt ; Marek Vasut > ; See, Chin Liang ; Tan, Ley > Foon ; Lim, Elly Siew Chin > ; Ang, Chee Hong > ; Chee, Tien Fong > Subject: [PATCH] ddr: socfpga:

RE: [PATCH v1 2/2] arm: socfpga: soc64: Show reset state in SPL

2020-08-05 Thread Tan, Ley Foon
> -Original Message- > From: Ang, Chee Hong > Sent: Wednesday, August 5, 2020 9:16 PM > To: u-boot@lists.denx.de > Cc: Marek Vasut ; Simon Goldschmidt > ; Tom Rini ; See, > Chin Liang ; Tan, Ley Foon > ; Ang, Chee Hong ; > Chee, Tien Fong ; Lim, Elly Siew Chin > > Subject: [PATCH v1

Re: [PATCH 1/1] cmd: exception: unaligned data access on RISC-V

2020-08-05 Thread Leo Liang
Hi Heinrich, On Thu, Aug 06, 2020 at 10:15:28AM +0800, Rick Chen wrote: > Hi Heinrich > > > >> From: Heinrich Schuchardt [mailto:xypron.g...@gmx.de] > > >> Sent: Tuesday, August 04, 2020 7:10 PM > > >> To: Rick Jian-Zhi Chen(陳建志) > > >> Cc: u-boot@lists.denx.de; Heinrich Schuchardt > > >>

Re: [PATCH 3/6] riscv: sifive/fu540: spl: Rename soc_spl_init()

2020-08-05 Thread Rick Chen
> From: Bin Meng [mailto:bmeng...@gmail.com] > Sent: Monday, August 03, 2020 2:09 PM > To: Rick Jian-Zhi Chen(陳建志); Pragnesh Patel; U-Boot Mailing List > Cc: Bin Meng > Subject: [PATCH 3/6] riscv: sifive/fu540: spl: Rename soc_spl_init() > > From: Bin Meng > > spl_soc_init() seems to be a better

[PATCH v2] arm: socfpga: Use DM watchdog timer

2020-08-05 Thread Chee Hong Ang
All SoCFPGA platforms (except Cyclone V) are now switching to CONFIG_WDT (driver model for watchdog timer drivers) from CONFIG_HW_WATCHDOG. Signed-off-by: Chee Hong Ang --- arch/arm/dts/socfpga_agilex_socdk-u-boot.dtsi| 4 arch/arm/dts/socfpga_arria10_socdk-u-boot.dtsi | 4

Re: [PATCH] common/board_f: make sure to call fix_fdt() before reserve_fdt()

2020-08-05 Thread Rick Chen
Hi Pragnesh > From: Pragnesh Patel [mailto:pragnesh.pa...@sifive.com] > Sent: Wednesday, August 05, 2020 5:01 PM > To: atish.pa...@wdc.com; bmeng...@gmail.com; u-boot@lists.denx.de; > anup.pa...@wdc.com; sagar.ka...@sifive.com; Rick Jian-Zhi Chen(陳建志) > Cc: paul.walms...@sifive.com; Pragnesh

[PATCH v2] arm: socfpga: soc64: Check FPGA Config status register before bridge reset

2020-08-05 Thread Chee Hong Ang
Instead of querying SDM for FPGA configuration status through mailbox messages, U-Boot now checks System Manager's FPGA Config status register for FPGA configuration status before resetting bridge. Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpga/include/mach/misc.h | 5

RE: [PATCH] common/board_f: make sure to call fix_fdt() before reserve_fdt()

2020-08-05 Thread Pragnesh Patel
Hi Rick, >-Original Message- >From: Rick Chen >Sent: 06 August 2020 08:22 >To: Pragnesh Patel >Cc: U-Boot Mailing List ; Atish Patra >; Bin Meng ; Anup Patel >; Sagar Kadam ; Paul >Walmsley ( Sifive) ; Simon Glass >; ovpan...@gmail.com; swar...@nvidia.com; >patrick.delau...@st.com;

Re: [PATCH] Convert CONFIG_SYS_MMC_ENV_DEV et al to Kconfig

2020-08-05 Thread Tom Rini
On Wed, Aug 05, 2020 at 02:04:02PM +0100, David Woodhouse wrote: > > > On 5 August 2020 13:51:43 BST, Tom Rini wrote: > >On Wed, Aug 05, 2020 at 11:07:15AM +0200, Stefan Roese wrote: > >> Hi Rasmus, > >> > >> On 05.08.20 10:47, Rasmus Villemoes wrote: > >> > On 24/07/2020 23.14, Tom Rini

[PATCH] env: nowhere: Implement .load callback

2020-08-05 Thread Marek Vasut
Add .load callback for the 'nowhere' environment driver. This is useful for when the 'nowhere' driver is used in combination with other drivers and should be used to load the default environment. Signed-off-by: Marek Vasut Reviewed-by: Tom Rini --- V2: No change --- env/nowhere.c | 6 ++ 1

[PATCH v1] arm: socfpga: Use DM watchdog timer

2020-08-05 Thread Chee Hong Ang
All SoCFPGA platforms (except Cyclone V) are now switching to CONFIG_WDT (driver model for watchdog timer drivers) from CONFIG_HW_WATCHDOG. Signed-off-by: Chee Hong Ang --- arch/arm/dts/socfpga_agilex_socdk-u-boot.dtsi | 4 arch/arm/dts/socfpga_arria10_socdk-u-boot.dtsi | 4

Re: [PATCH 2/4] ARM: imx: Add support for switching primary/secondary boot mode to bmode

2020-08-05 Thread Stefano Babic
On 05.08.20 15:34, Marek Vasut wrote: > The i.MX6/i.MX7 is capable of booting a secondary "redundant" system > image in case the primary one is corrupted. The user can force this > boot mode as well by explicitly setting SRC GPR10 bit 30. This can be > potentially useful when upgrading the

Re: [PATCH] Convert CONFIG_SYS_MMC_ENV_DEV et al to Kconfig

2020-08-05 Thread Tom Rini
On Wed, Aug 05, 2020 at 02:22:35PM +0100, David Woodhouse wrote: > On 5 August 2020 14:14:58 BST, Tom Rini wrote: > >On Wed, Aug 05, 2020 at 02:04:02PM +0100, David Woodhouse wrote: > >> > >> > >> On 5 August 2020 13:51:43 BST, Tom Rini wrote: > >> >On Wed, Aug 05, 2020 at 11:07:15AM +0200,

Re: [PATCH] Convert CONFIG_SYS_MMC_ENV_DEV et al to Kconfig

2020-08-05 Thread David Woodhouse
On 5 August 2020 14:14:58 BST, Tom Rini wrote: >On Wed, Aug 05, 2020 at 02:04:02PM +0100, David Woodhouse wrote: >> >> >> On 5 August 2020 13:51:43 BST, Tom Rini wrote: >> >On Wed, Aug 05, 2020 at 11:07:15AM +0200, Stefan Roese wrote: >> >> Hi Rasmus, >> >> >> >> On 05.08.20 10:47, Rasmus

[PATCH 2/4] ARM: imx: Add support for switching primary/secondary boot mode to bmode

2020-08-05 Thread Marek Vasut
The i.MX6/i.MX7 is capable of booting a secondary "redundant" system image in case the primary one is corrupted. The user can force this boot mode as well by explicitly setting SRC GPR10 bit 30. This can be potentially useful when upgrading the bootloader itself. Expose this functionality to the

[PATCH 3/4] ARM: imx: Add support for reading out the primary/secondary bmode

2020-08-05 Thread Marek Vasut
Add new 'getprisec' subcommand to 'bmode' command, which sets the return value of the 'bmode' command to either 0 if the system booted from primary copy or to 1 if the system booted from secondary copy. This can be used e.g. in 'test' command to determine which copy of the system is running.

[PATCH 4/4] ARM: imx: Add support for reading out the primary/secondary bmode to MX7

2020-08-05 Thread Marek Vasut
Implement the 'getprisec' subcommand of 'bmode' command for i.MX7 by reading out the SRC GPR10 bit 30. This bit is either set by the BootROM if it switched to the secondary copy due to primary copy being corrupted OR it can be overridden by the user. Signed-off-by: Marek Vasut Cc: Fabio Estevam

sunxi/arm64 build broken (was: [PATCH v4 12/27] x86: Makefile: Drop explicit targets built by binman)

2020-08-05 Thread André Przywara
On 19/07/2020 20:56, Simon Glass wrote: Hi, > On x86 various files that need to be created by binman. It does not make > sense to enumerate these in the Makefile. They are described in the > configuration (devicetree) for each board and we can simply run binman > (always) to generate them. > >

Re: I2C on imx8qm - Failed to enable ipg clk

2020-08-05 Thread Anatolij Gustschin
Hi Oliver, On Wed, 5 Aug 2020 15:47:07 +0200 Oliver Graute oliver.gra...@gmail.com wrote: > Hello, > > I try to get my I2C working on imx8qm. But I run into this issue: > > => i2c bus > Bus 3: i2c@5a83 > => i2c dev 3 > Setting bus to 3 > Failed to enable ipg clk > Failure changing bus

[PATCH] ARM: imx: ddr: Add deskew register programming

2020-08-05 Thread Marek Vasut
Fill is code for programming the DDR_PHY_CMD_DESKEW_CONx registers, which are optional, but can be used to fill in the byte lane delays. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: NXP i.MX U-Boot Team Cc: Peng Fan Cc: Stefano Babic --- arch/arm/include/asm/arch-mx7/mx7-ddr.h | 16

Re: [PATCH] env: nowhere: Implement .load callback

2020-08-05 Thread Tom Rini
On Wed, Aug 05, 2020 at 03:29:55PM +0200, Marek Vasut wrote: > Add .load callback for the 'nowhere' environment driver. This is useful > for when the 'nowhere' driver is used in combination with other drivers > and should be used to load the default environment. > > Signed-off-by: Marek Vasut >

Re: [PATCH] firmware: psci: Do not bind driver if U-Boot runs in EL3

2020-08-05 Thread Michal Simek
On 05. 08. 20 14:37, Michal Simek wrote: > There is no reason to bind psci driver if U-Boot runs in EL3 because > SMC/HVC instructions can't be called. That's why detect this state and > don't let user to crash from prompt by performing reset or poweroff > commands (if enabled). > >

Re: [PATCH 1/4] ARM: imx: Add bmode support for iMX7

2020-08-05 Thread Stefano Babic
Hi Marek, On 05.08.20 15:34, Marek Vasut wrote: > Add the basic differentiation between i.MX6 and i.MX7 into the bmode > command, the mechanism really works almost the same on both platforms. > > Signed-off-by: Marek Vasut > Cc: Fabio Estevam > Cc: NXP i.MX U-Boot Team > Cc: Peng Fan > Cc:

Re: [PATCH v2 12/18] board: ti: j7200: Introduce support for j7200 build targets

2020-08-05 Thread Lokesh Vutla
On 05/08/20 2:20 pm, Vignesh Raghavendra wrote: > Hi > > On 27/07/20 3:15 pm, Lokesh Vutla wrote: >> j7200-evm has minor differences with j721e-evm based on the IPs >> available in the SoC. Introduce separate build targets for j7200-evm >> to incorporate the differences. >> >> Signed-off-by:

Re: [PATCH 1/4] ARM: imx: Add bmode support for iMX7

2020-08-05 Thread Marek Vasut
On 8/5/20 3:59 PM, Stefano Babic wrote: > Hi Marek, Hi, > On 05.08.20 15:34, Marek Vasut wrote: >> Add the basic differentiation between i.MX6 and i.MX7 into the bmode >> command, the mechanism really works almost the same on both platforms. >> >> Signed-off-by: Marek Vasut >> Cc: Fabio Estevam

Re: [PATCH 1/4] ARM: imx: Add bmode support for iMX7

2020-08-05 Thread Stefano Babic
On 05.08.20 16:40, Marek Vasut wrote: > On 8/5/20 3:59 PM, Stefano Babic wrote: >> Hi Marek, > > Hi, > >> On 05.08.20 15:34, Marek Vasut wrote: >>> Add the basic differentiation between i.MX6 and i.MX7 into the bmode >>> command, the mechanism really works almost the same on both platforms. >>>

Re: sunxi/arm64 build broken (was: [PATCH v4 12/27] x86: Makefile: Drop explicit targets built by binman)

2020-08-05 Thread Simon Glass
Hi André, On Wed, 5 Aug 2020 at 08:20, André Przywara wrote: > > On 19/07/2020 20:56, Simon Glass wrote: > > Hi, > > > On x86 various files that need to be created by binman. It does not make > > sense to enumerate these in the Makefile. They are described in the > > configuration (devicetree)

Re: sunxi/arm64 build broken (was: [PATCH v4 12/27] x86: Makefile: Drop explicit targets built by binman)

2020-08-05 Thread André Przywara
On 05/08/2020 16:05, Simon Glass wrote: > Hi André, > > On Wed, 5 Aug 2020 at 08:20, André Przywara wrote: >> >> On 19/07/2020 20:56, Simon Glass wrote: >> >> Hi, >> >>> On x86 various files that need to be created by binman. It does not make >>> sense to enumerate these in the Makefile. They

RE: [PATCH] ddr: socfpga: Fix integer overflow that caused DDR size mismatched

2020-08-05 Thread Tan, Ley Foon
> -Original Message- > From: Chee, Tien Fong > Sent: Wednesday, August 5, 2020 11:59 AM > To: u-boot@lists.denx.de > Cc: Simon Goldschmidt ; Marek Vasut > ; See, Chin Liang ; Tan, Ley > Foon ; Lim, Elly Siew Chin > ; Ang, Chee Hong > ; Chee, Tien Fong > Subject: [PATCH] ddr: socfpga:

RE: [PATCH] ddr: socfpga: stratix10: Use phys_size_t for memory size

2020-08-05 Thread Tan, Ley Foon
> -Original Message- > From: Chee, Tien Fong > Sent: Tuesday, August 4, 2020 6:02 PM > To: u-boot@lists.denx.de > Cc: Simon Goldschmidt ; Marek Vasut > ; See, Chin Liang ; Tan, Ley > Foon ; Lim, Elly Siew Chin > ; Ang, Chee Hong > ; Chee, Tien Fong > Subject: [PATCH] ddr: socfpga:

[PATCH v1] spi: cadence-qspi: Fix QSPI write issues

2020-08-05 Thread Chee Hong Ang
QSPI driver perform chip select on every flash read/write access. The driver need to disable/enable the QSPI controller while performing chip select. This may cause some data lost especially the QSPI controller is configured to run at slower speed as it may take longer time to access the flash

RE: [PATCH v1] spi: cadence-qspi: Fix QSPI write issues

2020-08-05 Thread Tan, Ley Foon
> -Original Message- > From: Ang, Chee Hong > Sent: Wednesday, August 5, 2020 5:33 PM > To: u-boot@lists.denx.de > Cc: Phil Edworthy ; Vignesh R > ; Tom Rini ; See, Chin Liang > ; Tan, Ley Foon ; Ang, > Chee Hong ; Chee, Tien Fong > ; Lim, Elly Siew Chin > > Subject: [PATCH v1] spi:

Re: [PATCH 1/1] cmd: exception: unaligned data access on RISC-V

2020-08-05 Thread Heinrich Schuchardt
On 8/5/20 10:47 AM, Rick Chen wrote: > Hi Heinrich > >> From: Heinrich Schuchardt [mailto:xypron.g...@gmx.de] >> Sent: Tuesday, August 04, 2020 7:10 PM >> To: Rick Jian-Zhi Chen(陳建志) >> Cc: u-boot@lists.denx.de; Heinrich Schuchardt >> Subject: [PATCH 1/1] cmd: exception: unaligned data access on

[PATCH v1] configs: socfpga: soc64: Avoid SPL enter infinite loop during exception

2020-08-05 Thread Chee Hong Ang
From: Chin Liang See In current implementation, any exception would trigger a CPU reset. But a bad written SPL would cause infinite loop where the system will reload the same SPL instead of loading factory safe image. Hence this patch is to ensure any exception will cause a hang. At this

Re: [PATCH v1] spi: cadence_qspi: Probe fail if QSPI clock is not set

2020-08-05 Thread Vignesh Raghavendra
Hi, On 05/08/20 3:48 pm, Chee Hong Ang wrote: If the QSPI clock is not set (read as 0), QSPI driver probe shall fail and prevent further QSPI access. Signed-off-by: Chee Hong Ang --- drivers/spi/cadence_qspi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH 8/8] xilinx: zynqmp: Remove one static variable

2020-08-05 Thread Michal Simek
There is no reason to have name variable saved in BSS section when it doesn't need to be really used. That's why remove static from variable definition and use strdup() to duplicate string with exact size from malloc area instead. Signed-off-by: Michal Simek --- board/xilinx/zynqmp/zynqmp.c |

[PATCH 5/8] xilinx: zynqmp: remove chip_id function

2020-08-05 Thread Michal Simek
From: Ibai Erkiaga Remove chip_id function and integrate the firmware call in the zynqmp_get_silicon_idcode_name function. The change avoids querying the firmware twice and makes the code bit more clear. Signed-off-by: Ibai Erkiaga Signed-off-by: Michal Simek ---

[PATCH] xilinx: versal: Enable i2c misc eeprom driver

2020-08-05 Thread Michal Simek
Enable this driver to be able to work with i2c based eeproms on Versal. Signed-off-by: Michal Simek --- configs/xilinx_versal_virt_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/xilinx_versal_virt_defconfig b/configs/xilinx_versal_virt_defconfig index

[PATCH v1 2/2] arm: socfpga: soc64: Show reset state in SPL

2020-08-05 Thread Chee Hong Ang
Print reset state (warm/cold) together with the source (watchdog/MPU) which has triggered the warm reset on S10 & Agilex. Signed-off-by: Chee Hong Ang --- .../include/mach/reset_manager_soc64.h | 1 + arch/arm/mach-socfpga/reset_manager_s10.c | 22 ++

[PATCH v1 0/2] Print reset information in SPL

2020-08-05 Thread Chee Hong Ang
Show reset information such as reset types (cold/warm) and which events triggered the reset. Chee Hong Ang (2): arm: socfpga: soc64: Add SDM triggered warm reset bit mask arm: socfpga: soc64: Show reset state in SPL .../include/mach/reset_manager_soc64.h | 12 ++--

[PATCH v1 1/2] arm: socfpga: soc64: Add SDM triggered warm reset bit mask

2020-08-05 Thread Chee Hong Ang
Include SDM triggered warm reset bit (BIT1) in Reset Manager's stat register when checking for HPS warm reset status. Refactor the warm reset mask macro for clarity purpose. Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpga/include/mach/reset_manager_soc64.h | 11 +-- 1 file

Re: [PATCH] Convert CONFIG_SYS_MMC_ENV_DEV et al to Kconfig

2020-08-05 Thread David Woodhouse
On 5 August 2020 14:14:58 BST, Tom Rini wrote: >On Wed, Aug 05, 2020 at 02:04:02PM +0100, David Woodhouse wrote: >> >> >> On 5 August 2020 13:51:43 BST, Tom Rini wrote: >> >On Wed, Aug 05, 2020 at 11:07:15AM +0200, Stefan Roese wrote: >> >> Hi Rasmus, >> >> >> >> On 05.08.20 10:47, Rasmus

Re: [PATCH v1 16/24] pci: Add PCI controller driver for OcteonTX / TX2

2020-08-05 Thread Stefan Roese
Hi Simon, On 31.07.20 20:44, Simon Glass wrote: Hi Stefan, On Thu, 30 Jul 2020 at 10:26, Stefan Roese wrote: Hi Simon, On 28.07.20 21:01, Simon Glass wrote: Hi Stefan, On Fri, 24 Jul 2020 at 04:09, Stefan Roese wrote: From: Suneel Garapati Adds support for PCI ECAM/PEM controllers

[PATCH] ARM: imx: soc: Add reset for non-DM case

2020-08-05 Thread Marek Vasut
This is another in series of patches which remove ad-hoc reset_cpu() hacks from board files. This one is for iMX7, so implement default reset_cpu() there to prevent it from showing up in board files. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: NXP i.MX U-Boot Team Cc: Peng Fan Cc:

[PATCH 1/4] ARM: imx: Add bmode support for iMX7

2020-08-05 Thread Marek Vasut
Add the basic differentiation between i.MX6 and i.MX7 into the bmode command, the mechanism really works almost the same on both platforms. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: NXP i.MX U-Boot Team Cc: Peng Fan Cc: Stefano Babic --- arch/arm/include/asm/mach-imx/sys_proto.h | 6

Re: [PATCH v1 22/24] watchdog: Add reset support for OcteonTX / TX2

2020-08-05 Thread Stefan Roese
Hi Simon, On 31.07.20 16:25, Stefan Roese wrote: Hi Simon, On 28.07.20 21:01, Simon Glass wrote: On Fri, 24 Jul 2020 at 04:09, Stefan Roese wrote: From: Suneel Garapati Adds support for Core 0 watchdog poke on OcteonTX and OcteonTX2 platforms. Signed-off-by: Suneel Garapati

I2C on imx8qm - Failed to enable ipg clk

2020-08-05 Thread Oliver Graute
Hello, I try to get my I2C working on imx8qm. But I run into this issue: => i2c bus Bus 3: i2c@5a83 => i2c dev 3 Setting bus to 3 Failed to enable ipg clk Failure changing bus number (-524) Some idea how to fix that? I'am using U-Boot 2020.04 Best regards, Oliver

[PATCH v1] sysreset: socfpga: agilex: Enable sysreset support

2020-08-05 Thread Chee Hong Ang
Enable sysreset support for Agilex platform. Signed-off-by: Chee Hong Ang --- arch/arm/Kconfig | 2 +- drivers/sysreset/Kconfig | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 6b8a32c38d..105b5f08a9 100644 ---

RE: [PATCH v1] sysreset: socfpga: agilex: Enable sysreset support

2020-08-05 Thread Tan, Ley Foon
> -Original Message- > From: Ang, Chee Hong > Sent: Wednesday, August 5, 2020 5:54 PM > To: u-boot@lists.denx.de > Cc: Marek Vasut ; Simon Goldschmidt > ; Tom Rini ; See, > Chin Liang ; Tan, Ley Foon > ; Ang, Chee Hong ; > Chee, Tien Fong ; Lim, Elly Siew Chin > > Subject: [PATCH v1]

[PATCH 3/8] xilinx: zynqmp: get chip ID using firmware driver

2020-08-05 Thread Michal Simek
From: Ibai Erkiaga Current implementation for getting chip ID uses either raw access on EL3 or a SMC call to get the silicon information. Following change simplifies the code using always the firmware driver. Signed-off-by: Ibai Erkiaga Signed-off-by: Michal Simek ---

[PATCH 6/8] xilinx: zynqmp: refactor silicon name function

2020-08-05 Thread Michal Simek
From: Ibai Erkiaga Current algorithm used to get the silicon name is bit complicated and hard to follow. Updated to use more straightforward mechanism based on the Device ID code table (Table 1-2). The full IDCODE register is used (except device revision bits [31:28]) to get the device name and

[PATCH 4/8] xilinx: zynqmp: get chip ID at EL3

2020-08-05 Thread Michal Simek
From: Ibai Erkiaga Modify the board init function to allow getting the chip ID when U-Boot proper is executed at EL3. Signed-off-by: Ibai Erkiaga Signed-off-by: Michal Simek --- board/xilinx/zynqmp/zynqmp.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git

[PATCH 7/8] xilinx: zynqmp: fix incorrect map not align with IPI HW

2020-08-05 Thread Michal Simek
From: Ibai Erkiaga Current IPI module register description is not align with IPI HW. The registers with the wrong offset are not used so it does not cause real issues. This patch aligns the register description. Additionally comments added to explain why recv function does not check any flag

[PATCH 0/8] xilinx: zynqmp: Silicon name cleanup

2020-08-05 Thread Michal Simek
Hi, This patch series is intended to cleanup the functions used to get the silicon name for ZynqMPSoC devices. It make use the firmware driver rather than SMC call and impements more understandable agorithm to compute the device name. Thanks, Ibai/Michal Ibai Erkiaga (7): xilinx: zynqmp:

[PATCH 1/8] xilinx: zynqmp: synchronize firmware call return payload

2020-08-05 Thread Michal Simek
From: Ibai Erkiaga Removes duplicated definition of PAYLOAD_ARG_CNT and define it in the firmware driver. Additionally fixes payload buffer declarations without macro usage Signed-off-by: Ibai Erkiaga Signed-off-by: Michal Simek --- arch/arm/mach-versal/include/mach/sys_proto.h | 2 --

[PATCH 2/8] xilinx: zynqmp: merge firmware calls for EL2 and EL3

2020-08-05 Thread Michal Simek
From: Ibai Erkiaga This patch merges ZynqMP firmware calls under xilinx_pm_request in order to make trainsparent the EL. Calls at EL3 are send through IPI messages and EL2 through SMC calls. The EL2 call uses fixed payload and arg size as the EL3 call. The firmware is capable to handle

Re: [PATCH 1/1] clk: kendryte/pll.h: do not redefine nop()

2020-08-05 Thread Heinrich Schuchardt
On 05.08.20 13:45, Sean Anderson wrote: > On 8/3/20 2:20 PM, Heinrich Schuchardt wrote: >> On 03.08.20 16:08, Sean Anderson wrote: >>> Maybe. Because we are configuring the PLL, the CPU clock is temporarily >>> set to the in0 oscillator, so the timer would give an incorrect delay. >>> However, it

Re: [PATCH] log: Allow LOG_DEBUG to always enable log output

2020-08-05 Thread Tom Rini
On Sun, Jul 26, 2020 at 08:27:35PM -0600, Simon Glass wrote: > At present if CONFIG_LOG enabled, putting LOG_DEBUG at the top of a file > (before log.h inclusion) causes _log() to be executed for every log() > call, regardless of the build- or run-time logging level. > > However there is no

Re: [PATCH] log: Allow LOG_DEBUG to always enable log output

2020-08-05 Thread Tom Rini
On Wed, Aug 05, 2020 at 02:54:05PM +0200, Heinrich Schuchardt wrote: > On 05.08.20 14:18, Tom Rini wrote: > > On Sun, Jul 26, 2020 at 08:27:35PM -0600, Simon Glass wrote: > > > >> At present if CONFIG_LOG enabled, putting LOG_DEBUG at the top of a file > >> (before log.h inclusion) causes _log()

RE: [PATCH v1] spi: cadence_qspi: Probe fail if QSPI clock is not set

2020-08-05 Thread Ang, Chee Hong
> Hi, > > On 05/08/20 3:48 pm, Chee Hong Ang wrote: > > If the QSPI clock is not set (read as 0), QSPI driver probe shall fail > > and prevent further QSPI access. > > > > Signed-off-by: Chee Hong Ang > > --- > > drivers/spi/cadence_qspi.c | 3 +++ > > 1 file changed, 3 insertions(+) > > > >

[PATCH] firmware: psci: Do not bind driver if U-Boot runs in EL3

2020-08-05 Thread Michal Simek
There is no reason to bind psci driver if U-Boot runs in EL3 because SMC/HVC instructions can't be called. That's why detect this state and don't let user to crash from prompt by performing reset or poweroff commands (if enabled). Signed-off-by: Michal Simek --- Maybe there is a better way how

Re: [PATCH] log: Allow LOG_DEBUG to always enable log output

2020-08-05 Thread Heinrich Schuchardt
On 05.08.20 14:18, Tom Rini wrote: > On Sun, Jul 26, 2020 at 08:27:35PM -0600, Simon Glass wrote: > >> At present if CONFIG_LOG enabled, putting LOG_DEBUG at the top of a file >> (before log.h inclusion) causes _log() to be executed for every log() >> call, regardless of the build- or run-time

[PATCH v1] arm: socfpga: soc64: Check FPGA Config status register before bridge reset

2020-08-05 Thread Chee Hong Ang
Instead of querying SDM for FPGA configuration status through mailbox messages, U-Boot now checks System Manager's FPGA Config status register for FPGA configuration status before resetting bridge. Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpga/include/mach/misc.h | 5

[PATCH] spi: octeon_spi: Use a fixed 100MHz input clock on Octeon TX2

2020-08-05 Thread Stefan Roese
Octeon TX2 sets the TB100_EN bit in the config register. We need to use a fixed 100MHz clock for this as well to work properly. Signed-off-by: Stefan Roese Cc: Aaron Williams Cc: Suneel Garapati Cc: Chandrakala Chavva Cc: Jagan Teki --- drivers/spi/octeon_spi.c | 5 - 1 file changed, 4

RE: [PATCH v1] sysreset: socfpga: agilex: Enable sysreset support

2020-08-05 Thread Ang, Chee Hong
> > -Original Message- > > From: Ang, Chee Hong > > Sent: Wednesday, August 5, 2020 5:54 PM > > To: u-boot@lists.denx.de > > Cc: Marek Vasut ; Simon Goldschmidt > > ; Tom Rini ; See, > > Chin Liang ; Tan, Ley Foon > > ; Ang, Chee Hong ; > > Chee, Tien Fong ; Lim, Elly Siew Chin > > > >

Re: [PATCH 1/1] clk: kendryte/pll.h: do not redefine nop()

2020-08-05 Thread Sean Anderson
On 8/3/20 2:20 PM, Heinrich Schuchardt wrote: > On 03.08.20 16:08, Sean Anderson wrote: >> Maybe. Because we are configuring the PLL, the CPU clock is temporarily >> set to the in0 oscillator, so the timer would give an incorrect delay. >> However, it would probably be fine even if incorrect. The

[PATCH] xilinx: Change logic around zynq_board_read_rom_ethaddr()

2020-08-05 Thread Michal Simek
There is no reason to build private function when CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET is not defined. There is already weak function which handles default case properly. Signed-off-by: Michal Simek --- board/xilinx/common/board.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff

[PATCH] xilinx: Add support for ENV_VARS_UBOOT_RUNTIME_CONFIG

2020-08-05 Thread Michal Simek
Start to use ENV_VARS_UBOOT_RUNTIME_CONFIG to enable/disable updating variables with run time information. Signed-off-by: Michal Simek --- arch/arm/Kconfig | 3 +++ board/xilinx/versal/board.c | 3 +++ board/xilinx/zynq/board.c| 8 board/xilinx/zynqmp/zynqmp.c | 3 +++

Re: [PATCH] Convert CONFIG_SYS_MMC_ENV_DEV et al to Kconfig

2020-08-05 Thread Tom Rini
On Wed, Aug 05, 2020 at 11:07:15AM +0200, Stefan Roese wrote: > Hi Rasmus, > > On 05.08.20 10:47, Rasmus Villemoes wrote: > > On 24/07/2020 23.14, Tom Rini wrote: > > > This converts the following to Kconfig: > > > CONFIG_SYS_MMC_ENV_DEV > > > CONFIG_SYS_MMC_ENV_PART > > > > Yes, please!

RE: [PATCH v1] Makefile: socfpga: Generate spl/u-boot-splx4.sfp with 4 SPL images

2020-08-05 Thread Tan, Ley Foon
> -Original Message- > From: Marek Vasut > Sent: Wednesday, August 5, 2020 5:18 PM > To: Tan, Ley Foon ; Ang, Chee Hong > ; u-boot@lists.denx.de > Cc: Simon Goldschmidt ; Tom Rini > ; See, Chin Liang ; Chee, > Tien Fong ; Lim, Elly Siew Chin > > Subject: Re: [PATCH v1] Makefile:

RE: [PATCH v1] sysreset: socfpga: agilex: Enable sysreset support

2020-08-05 Thread Tan, Ley Foon
> -Original Message- > From: Ang, Chee Hong > Sent: Wednesday, August 5, 2020 6:08 PM > To: Tan, Ley Foon ; u-boot@lists.denx.de > Cc: Marek Vasut ; Simon Goldschmidt > ; Tom Rini ; See, > Chin Liang ; Chee, Tien Fong > ; Lim, Elly Siew Chin > > Subject: RE: [PATCH v1] sysreset:

[PATCH v1] spi: cadence_qspi: Probe fail if QSPI clock is not set

2020-08-05 Thread Chee Hong Ang
If the QSPI clock is not set (read as 0), QSPI driver probe shall fail and prevent further QSPI access. Signed-off-by: Chee Hong Ang --- drivers/spi/cadence_qspi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/spi/cadence_qspi.c b/drivers/spi/cadence_qspi.c index

Re: [PATCH v1] Makefile: socfpga: Generate spl/u-boot-splx4.sfp with 4 SPL images

2020-08-05 Thread Marek Vasut
On 8/5/20 11:26 AM, Tan, Ley Foon wrote: Hi, [...] > diff --git a/Makefile b/Makefile > index 2629a74..13429a0 100644 > --- a/Makefile > +++ b/Makefile > @@ -1578,8 +1578,9 @@ u-boot.spr: spl/u-boot-spl.img u-boot.img FORCE > ifneq ($(CONFIG_ARCH_SOCFPGA),)

[PATCH] xilinx: Check return value from variable setup

2020-08-05 Thread Michal Simek
env_set..() can failed that's why check return status and report it back to make sure that user is aware that's something went wrong. Signed-off-by: Michal Simek --- board/xilinx/common/board.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git

Re: [PATCH] Convert CONFIG_SYS_MMC_ENV_DEV et al to Kconfig

2020-08-05 Thread David Woodhouse
On 5 August 2020 13:51:43 BST, Tom Rini wrote: >On Wed, Aug 05, 2020 at 11:07:15AM +0200, Stefan Roese wrote: >> Hi Rasmus, >> >> On 05.08.20 10:47, Rasmus Villemoes wrote: >> > On 24/07/2020 23.14, Tom Rini wrote: >> > > This converts the following to Kconfig: >> > >

[PATCH v2 1/2] sysreset: socfpga: soc64: Rename SYSRESET SoCFPGA driver for S10 to SoC64

2020-08-05 Thread Chee Hong Ang
Rename the driver from S10 to SoC64 because Intel Agilex platform also using the this SYSRESET SoCFPGA driver for S10. Signed-off-by: Chee Hong Ang --- arch/arm/Kconfig| 2 +- drivers/sysreset/Kconfig

  1   2   3   >