[PATCH v3 7/9] ram: octeon: Add MIPS Octeon3 DDR4 support (part 3/3)

2020-09-01 Thread Stefan Roese
From: Aaron Williams This Octeon 3 DDR driver is ported from the 2013 Cavium / Marvell U-Boot repository. It currently supports DDR4 on Octeon 3. It can be later extended to support also DDR3 and Octeon 2 platforms. Part 3 includes the DIMM SPD handling code and the Kconfig / Makefile integratio

[PATCH v3 9/9] mips: octeon: octeon_ebb7304: Add DDR4 support

2020-09-01 Thread Stefan Roese
This patch adds the board specific configuration (struct) for the Octeon 3 EBB7304 EVK. This struct is ported from the 2013er Cavium / Marvell U-Boot repository. Also, the Octeon RAM driver is enabled in the board defconfig for its usage. Tested with one and two DIMMs on the EBB7304 EVK (8 & 16 Gi

[PATCH v3 5/9] ram: octeon: Add MIPS Octeon3 DDR4 support (part 1/3)

2020-09-01 Thread Stefan Roese
From: Aaron Williams This Octeon 3 DDR driver is ported from the 2013 Cavium / Marvell U-Boot repository. It currently supports DDR4 on Octeon 3. It can be later extended to support also DDR3 and Octeon 2 platforms. Part 1 adds the base U-Boot RAM driver, which will be instantiated by the DT bas

[PATCH v3 4/9] mips: octeon: Add octeon_ddr.h header

2020-09-01 Thread Stefan Roese
From: Aaron Williams This header will be used by the DDR driver (lmc). Its ported from the 2013 Cavium / Marvell U-Boot repository. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- Changes in v3: - Remove "https://spdx.org/licenses"; line - Remove inclusion of "common.h" - Remov

[PATCH v3 0/9] mips: Add Octeon DDR4 init code

2020-09-01 Thread Stefan Roese
This patch adds the DDR4 init code. It is ported from the 2013 Cavium / Marvell U-Boot version with no functional change. This was done intentionally, as this code is very large and complex and is known to work on many boards "as-is". So any functional change might have introduced (hidden) incomp

[PATCH v3 2/9] mips: octeon: Add octeon-model.h header

2020-09-01 Thread Stefan Roese
From: Aaron Williams This header is used by the upcoming DDR driver and potentially by other drivers ported from the 2013 Cavium / Marvell U-Boot repository. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- Changes in v3: - Remove "https://spdx.org/licenses"; line - Move multipl

[PATCH v3 1/9] mips: octeon: dts: mrvl, cn73xx.dtsi: Add memory controller DT node

2020-09-01 Thread Stefan Roese
This patch adds the memory controller (LMC) DT node to the Octeon 3 dtsi file. It also adds the L2C DT node, as this is referenced by the DDR driver. Signed-off-by: Stefan Roese --- (no changes since v1) arch/mips/dts/mrvl,cn73xx.dtsi | 17 + 1 file changed, 17 insertions(+) d

[PATCH v3 8/9] mips: octeon: dram.c: Add RAM driver support

2020-09-01 Thread Stefan Roese
This patch adds the initialization call for the Octeon RAM driver to the Octeon platforms code. So if enabled via Kconfig, the DDR driver will be called and the RAM will be configured and used. If the RAM driver is not enabled, the L2 cache is still used as RAM. Signed-off-by: Stefan Roese ---

[RESEND PATCH v2 11/11] usb: xhci: convert to readx_poll_sleep_timeout()

2020-09-01 Thread Frank Wunderlich
From: Chunfeng Yun Use readx_poll_sleep_timeout() to poll the register status Change-Id: If05a68baf52c54ab30029279e349be6076f1d0ca Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci.c | 25 +++-- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/drivers/usb

[RESEND PATCH v2 10/11] usb: xhci: use macros with parameter to fill ep_info2

2020-09-01 Thread Frank Wunderlich
From: Chunfeng Yun Use macros with parameter to fill ep_info2, then some macros for MASK and SHIFT can be removed Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mem.c | 13 - drivers/usb/host/xhci.c | 3 +-- include/usb/xhci.h | 5 - 3 files changed, 5 ins

[RESEND PATCH v2 09/11] usb: xhci: convert to EP_TYPE()

2020-09-01 Thread Frank Wunderlich
From: Chunfeng Yun Use EP_TYPE(type) macro instead of ((type) << EP_TYPE_SHIFT) Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mem.c | 2 +- drivers/usb/host/xhci.c | 3 +-- include/usb/xhci.h | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/usb

[RESEND PATCH v2 04/11] usb: xhci: convert to HCS_MAX_PORTS()

2020-09-01 Thread Frank Wunderlich
From: Chunfeng Yun Use HCS_MAX_PORTS(p) instead of ((p & HCS_MAX_PORTS_MASK) >> HCS_MAX_PORTS_SHIFT) Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci.c | 3 +-- include/usb/xhci.h | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/usb/host/xhci.c b/drivers/

[RESEND PATCH v2 08/11] usb: xhci: convert to TRB_TX_TYPE()

2020-09-01 Thread Frank Wunderlich
From: Chunfeng Yun Use TRB_TX_TYPE() instead of (TRB_DATA_OUT/IN << TRB_TX_TYPE_SHIFT) Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-ring.c | 4 ++-- include/usb/xhci.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/usb/host/xhci-ring.c b/driver

[RESEND PATCH v2 06/11] usb: xhci: convert to TRB_INTR_TARGET()

2020-09-01 Thread Frank Wunderlich
From: Chunfeng Yun Use TRB_INTR_TARGET(x) instead of (((x) & TRB_INTR_TARGET_MASK) << TRB_INTR_TARGET_SHIFT) Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-ring.c | 10 -- include/usb/xhci.h | 2 -- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/driver

[RESEND PATCH v2 07/11] usb: xhci: convert to TRB_LEN()

2020-09-01 Thread Frank Wunderlich
From: Chunfeng Yun Use TRB_LEN(x) instead of ((x) & TRB_LEN_MASK) Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-ring.c | 8 include/usb/xhci.h | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-r

[RESEND PATCH v2 02/11] usb: xhci: create one unified function to calculate TRB TD remainder.

2020-09-01 Thread Frank Wunderlich
From: Chunfeng Yun xhci versions 1.0 and later report the untransferred data remaining in a TD a bit differently than older hosts. We used to have separate functions for these, and needed to check host version before calling the right function. Now Mediatek host has an additional quirk on how i

[RESEND PATCH v2 05/11] usb: xhci: convert to TRB_TYPE()

2020-09-01 Thread Frank Wunderlich
From: Chunfeng Yun Use TRB_TYPE(p) instead of ((p) << TRB_TYPE_SHIFT) Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mem.c | 3 +-- drivers/usb/host/xhci-ring.c | 11 +-- include/usb/xhci.h | 1 - 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/driver

[RESEND PATCH v2 01/11] usb: xhci: add a member hci_version in xhci_ctrl struct

2020-09-01 Thread Frank Wunderlich
From: Chunfeng Yun Add a member to save xHCI version, it's used some times. Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-ring.c | 4 ++-- drivers/usb/host/xhci.c | 1 + include/usb/xhci.h | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/usb/

[RESEND PATCH v2 03/11] usb: xhci: add quirks flag to support MediaTek xHCI 0.96

2020-09-01 Thread Frank Wunderlich
From: Chunfeng Yun There some vendor quirks for MTK xHCI 0.96 host controller: 1. It defines some extra SW scheduling parameters for HW to minimize the scheduling effort for synchronous and interrupt endpoints. The parameters are put into reseved DWs of slot context and endpoint context.

u-boot crash on T2080RDB_SPIFLASH

2020-09-01 Thread Chris Packham
Hi, Just tried out v2020.10-rc3 on my T2080RDB and I've got the following splat. Haven't had a chance to decode it yet (pointers on how to translate the addresses for powerpc welcome) but I figured I'd get this out just in case anyone was looking at the T2080RDB. SPI boot... Initializingusing

[PATCH v2 2/2] mips: dts: Fix PIC32MZDA GPIO register definitions

2020-09-01 Thread John Robertson
The GPIO bank name for banks J and K are not correct when using the 'gpio' command from the console. The driver derives the bank name from the device tree instance string by using the instance value and adding 'A': gpio0@xxaddrxx is Bank A, gpio1@yyaddryy is Bank B and so on. On the PIC32, there

[PATCH v2 1/2] mips: dts: Fix PIC32MZDA GPIO register definitions

2020-09-01 Thread John Robertson
GPIO state cannot be changed via the device tree (e.g. with gpio-hog) or using the 'gpio' command from the console. The root cause is a discrepancy between the driver and the device tree: the driver code expects an absolute I/O address in the property, while the device tree defines the address re

Re: Aw: [PATCH RESEND v2 01/11] usb: xhci: add a member hci_version in xhci_ctrl struct

2020-09-01 Thread Chunfeng Yun
Hi Frank, Would you please forward this mail to Marek, he doesn't receive email sent from MediaTek, thanks a lot Hi Marek, I always receive eth following massage, it seems the same for my workmate, --- Delivery has failed to these recipients or groups: ma...@denx.de A problem occurred while

Re: [PATCH] pinctrl: mediatek: mt8512: fix the wrong start address of ranges

2020-09-01 Thread Mingming Lee
On Fri, 2020-08-07 at 17:32 +0800, Chunfeng Yun wrote: > The start address of dout, pullen and pullsel ragnes are wrong, > so fix up them. > > Signed-off-by: Chunfeng Yun > --- > drivers/pinctrl/mediatek/pinctrl-mt8512.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --g

Re: [PATCH] Expose active mmc boot partition to scripts

2020-09-01 Thread Tom Rini
On Tue, Sep 01, 2020 at 10:01:18PM +, Reuben Dowle wrote: > This patch allows uboot scripts make choices about where to boot from based > on > the active mmc boot partition. This allows having two copies of kernel, > filesystems etc, and choosing which to boot from based off the active > b

[PATCH] Expose active mmc boot partition to scripts

2020-09-01 Thread Reuben Dowle
This patch allows uboot scripts make choices about where to boot from based on the active mmc boot partition. This allows having two copies of kernel, filesystems etc, and choosing which to boot from based off the active bootloader partition. Signed-off-by: Reuben Dowle --- cmd/mmc.c | 2 ++

[PATCH v2] Fix data abort caused by mis-aligning FIT data

2020-09-01 Thread Reuben Dowle
Attempting to place device tree immediately after an image in memory can lead to mis-aligned data accesses if that image size is not divisible by the alignment requirements of the architecture. Data aborts caused by this were observed on a custom Marvel A388 based system, where the image was a ubo

[RFC PATCH 0/1] Anti rollback protection for FIT Images

2020-09-01 Thread Thirupathaiah Annapureddy
Anti rollback protection is required when there is a need to retire previous versions of FIT images due to security flaws in them. Currently U-Boot Verified boot does not have rollback protection to protect against known security flaws. This RFC introduces a proposal to add anti-rollback protectio

[RFC PATCH 1/1] image: add anti rollback protection for FIT Images

2020-09-01 Thread Thirupathaiah Annapureddy
Anti rollback protection is required when there is a need to retire previous versions of FIT images due to security flaws in them. Currently U-Boot Verified boot does not have rollback protection to protect against known security flaws. This change adds anti-rollback protection for FIT images. Si

[PATCH v2] arm: dts: fix ast2500-evb inclusion for the correct soc family

2020-09-01 Thread Thirupathaiah Annapureddy
Include ast2500-evb.dtb for CONFIG_ASPEED_AST2500 instead of for all aspeed targets. ast2400 is based on ARM926EJ-S processor (ARMv5-architecture). ast2500 is based on ARM1176JZS processor (ARMv6-architecture). ast2600 is based on Cortex A7 processor (ARMv7-A architecture). Each of the above SOC i

Re: [PATCH 0/3] RISC-V tracing support

2020-09-01 Thread Sean Anderson
On 8/24/20 10:44 AM, Pragnesh Patel wrote: > This series add a support of tracing for RISC-V arch. > > This series is also available here [1] for testing. > Series depends on [2]. > > [1] https://github.com/pragnesh26992/u-boot/tree/trace > [2] > https://patchwork.ozlabs.org/project/uboot/cover/

[PATCH v3 7/7] riscv: Enable watchdog for the k210

2020-09-01 Thread Sean Anderson
This enables the necessary config options. Signed-off-by: Sean Anderson --- Changes in v3: - Note dependency on "time: Fix get_ticks being non-monotonic" - Add a few signed-off-bys which were sent for version 1 board/sipeed/maix/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boa

[PATCH v3 5/7] wdt: dw: Free the clock on error

2020-09-01 Thread Sean Anderson
The clock subsystem requires that clk_free be called on clocks obtained via clk_get_*. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- (no changes since v1) drivers/watchdog/designware_wdt.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/drive

[PATCH v3 6/7] riscv: Add watchdog bindings for the k210

2020-09-01 Thread Sean Anderson
This adds the necessary bindings. Most of them are already there. Signed-off-by: Sean Anderson Acked-by: Rick Chen --- (no changes since v2) Changes in v2: - Move watchdog enable to k210.dtsi as it does not depend on anything board-specific. arch/riscv/dts/k210.dtsi | 1 - 1 file changed,

[PATCH v3 4/7] wdt: dw: Enable the clock before using it

2020-09-01 Thread Sean Anderson
The watchdog won't work if the clock isn't enabled. Fixes: cf89ef8d10f240554541c20b2e1bdcdd58d1d7e6 Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- (no changes since v1) drivers/watchdog/designware_wdt.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/watchdog/design

[PATCH v3 3/7] wdt: dw: Fix clock rate being off by 1000

2020-09-01 Thread Sean Anderson
The clock subsystem returns clock rates in Hz. We need to divide by 1000 so the rate is in kHz. Fixes: cf89ef8d10f240554541c20b2e1bdcdd58d1d7e6 Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- (no changes since v1) drivers/watchdog/designware_wdt.c | 2 +- 1 file changed, 1 insertion

[PATCH v3 0/7] wdt: Add support for watchdogs on Kendryte K210

2020-09-01 Thread Sean Anderson
This series depends on https://patchwork.ozlabs.org/project/uboot/patch/20200901195548.542737-1-sean...@gmail.com/ Changes in v3: - Note dependency on "time: Fix get_ticks being non-monotonic" - Add a few signed-off-bys which were sent for version 1 Changes in v2: - Fix fls being off-by-one when

[PATCH v3 2/7] wdt: dw: Switch to if(CONFIG()) instead of using #if

2020-09-01 Thread Sean Anderson
This is preferred over #if because the compiler can check syntax even if the feature is disabled. This cannot be used for CONFIG_CLK because CONFIG_DW_WDT_CLOCK_KHZ is not defined on all platforms. Signed-off-by: Sean Anderson Reviewed-by: Heinrich Schuchardt --- (no changes since v1) drivers

[PATCH v3 1/7] wdt: dw: Switch to using fls for log2

2020-09-01 Thread Sean Anderson
log_2_n_round_up is only found in arm. fls performs the same job and is generic. Signed-off-by: Sean Anderson --- (no changes since v2) Changes in v2: - Fix fls being off-by-one when compared to log_2_n_round_up drivers/watchdog/designware_wdt.c | 3 +-- 1 file changed, 1 insertion(+), 2 dele

Re: [PATCH v3 2/2] arm64: mvebu: a37xx: Add support for EspressoBIN with eMMC

2020-09-01 Thread Pali Rohár
On Tuesday 01 September 2020 09:03:59 Andre Heider wrote: > From: Konstantin Porotchkin > > Add support for additional EspressoBIN board with installed > eMMC device (U11). > EspressoBIN boards with eMMC installed should use the DTS named > armada-3720-espressobin-emmc. > Update build documentati

Re: [PATCH 1/2] arm64: dts: armada-3720-espressobin: sync with downstream

2020-09-01 Thread Pali Rohár
On Monday 31 August 2020 11:59:28 Andre Heider wrote: > On 31/08/2020 10:46, Pali Rohár wrote: > > On Monday 31 August 2020 10:17:07 Andre Heider wrote: > > > On 31/08/2020 10:01, Pali Rohár wrote: > > > > On Monday 31 August 2020 05:34:07 Andre Heider wrote: > > > > > +/* U11 */ > > > > > +&sdhci1

[PATCH] time: Fix get_ticks being non-monotonic

2020-09-01 Thread Sean Anderson
get_ticks does not always succeed. Sometimes it can be called before the timer has been initialized. If it does, it returns a negative errno. This causes the timer to appear non-monotonic, because the value will become much smaller after the timer is initialized. No users of get_ticks which I chec

Re: Please pull u-boot-x86

2020-09-01 Thread Tom Rini
On Tue, Sep 01, 2020 at 10:36:31PM +0800, Bin Meng wrote: > Hi Tom, > > This PR includes the following x86 changes for v2020.10: > > - Fix parsing of "mtrr list" command > - Introduce USE_EARLY_BOARD_INIT option and remove dead codes for most > x86 boards > > Azure results : PASS > https://dev.

[PATCH v2 9/9] IPQ40xx: Add USB nodes

2020-09-01 Thread Robert Marko
There are drivers to support built in USB controller and PHY-s now, so lets add the USB nodes to DTSI. Signed-off-by: Robert Marko Cc: Luka Perkov --- arch/arm/dts/qcom-ipq4019.dtsi | 50 ++ 1 file changed, 50 insertions(+) diff --git a/arch/arm/dts/qcom-ipq401

[PATCH v2 7/9] usb: dwc3: Make PHY functions depend on CONFIG_USB_DWC3

2020-09-01 Thread Robert Marko
PHY handling functions should depend also on CONFIG_USB_DWC3 aka DM DWC3 version. Otherwise when using the non DM version with PHY subsystem enabled there will be a linking error due to missing dwc3_setup_phy and dwc3_shutdown_phy. Signed-off-by: Robert Marko Cc: Luka Perkov --- include/dwc3-

[PATCH v2 6/9] phy: add driver for Qualcomm IPQ40xx USB PHY

2020-09-01 Thread Robert Marko
Add a driver to setup the USB PHY-s on Qualcomm IPQ40xx series SoCs. The driver sets up HS and SS phys. Signed-off-by: Robert Marko Cc: Luka Perkov --- MAINTAINERS| 1 + drivers/phy/Kconfig| 6 ++ drivers/phy/Makefile | 1 + drivers/ph

[PATCH v2 8/9] usb: xhci: Add Qualcomm DWC3 xHCI driver

2020-09-01 Thread Robert Marko
Add driver for Qualcomm DWC3 based dual role xHCI USB controller. Currently tested on IPQ40xx, but should support other Qualcomm SoC families as well. Only host mode is supported. Signed-off-by: Robert Marko Cc: Luka Perkov --- MAINTAINERS | 2 + .../usb/qc

[PATCH v2 4/9] reset: Add IPQ40xx reset controller driver

2020-09-01 Thread Robert Marko
On Qualcomm IPQ40xx SoC series, GCC clock IP also handles the resets. So since this will be needed by further drivers, lets add a driver for the reset controller. Signed-off-by: Robert Marko Cc: Luka Perkov --- MAINTAINERS | 2 + drivers/reset/Kconfig

[PATCH v2 5/9] IPQ40xx: Add reset controller support

2020-09-01 Thread Robert Marko
Since we have a driver for the reset controller, lets add the necessary node. Signed-off-by: Robert Marko Cc: Luka Perkov --- arch/arm/Kconfig | 1 + arch/arm/dts/qcom-ipq4019.dtsi | 9 + 2 files changed, 10 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig i

[PATCH v2 2/9] IPQ40xx: clk: Use dt-bindings instead of hardcoding

2020-09-01 Thread Robert Marko
Its common to use dt-bindings instead of hard-coding clocks or resets. So lets use the imported Linux GCC bindings on IPQ40xx target. Signed-off-by: Robert Marko Cc: Luka Perkov --- arch/arm/dts/qcom-ipq4019.dtsi| 3 ++- arch/arm/mach-ipq40xx/clock-ipq4019.c | 4 +++- 2 files changed, 5

[PATCH v2 3/9] IPQ40xx: Add SMEM support

2020-09-01 Thread Robert Marko
There is already existing driver for SMEM so lets enable it for IPQ40xx as well. Signed-off-by: Robert Marko Cc: Luka Perkov --- arch/arm/Kconfig | 2 ++ arch/arm/dts/qcom-ipq4019.dtsi | 5 + drivers/smem/Kconfig | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-

[PATCH v2 1/9] dt-bindings: clock: import Qualcomm IPQ4019 bindings

2020-09-01 Thread Robert Marko
Import Qualcomm IPQ4019 GCC bindings from Linux. This will enable using bindings instead of raw clock numbers both in the driver and DTS like Linux does. Signed-off-by: Robert Marko Cc: Luka Perkov --- MAINTAINERS | 1 + include/dt-bindings/clock/qcom,ipq4019-

[PATCH v2 0/9] IPQ40xx: Improve support

2020-09-01 Thread Robert Marko
This patch series builds on the previously merged basic Qualcomm IPQ40xx series support. Signed-off-by: Robert Marko Cc: Luka Perkov Robert Marko (9): dt-bindings: clock: import Qualcomm IPQ4019 bindings IPQ40xx: clk: Use dt-bindings instead of hardcoding IPQ40xx: Add SMEM support reset

Re: [PATCH v4 20/27] Makefile: Warn against using CONFIG_SPL_FIT_GENERATOR

2020-09-01 Thread Simon Glass
Hi Michal, On Tue, 1 Sep 2020 at 09:15, Michal Simek wrote: > > Hi Simon, > > On 30. 08. 20 22:37, Simon Glass wrote: > > Hi Michal, > > > > On Wed, 26 Aug 2020 at 08:12, Michal Simek wrote: > >> > >> Hi, > >> > >> On 25. 08. 20 18:57, Simon Glass wrote: > >>> Hi Michal, > >>> > >>> On Tue, 25 A

Re: [PATCH v2 3/3] binman: Build FIT image subentries with the section etype

2020-09-01 Thread Simon Glass
On Mon, 31 Aug 2020 at 03:59, Alper Nebi Yasak wrote: > > When reading subentries of each image, the FIT entry type directly > concatenates their contents without padding them according to their > offset, size, align, align-size, align-end, pad-before, pad-after > properties. > > This patch makes

Re: [PATCH] binman: Call helper function binman_set_rom_offset() to fill offset

2020-09-01 Thread Simon Glass
On Wed, 26 Aug 2020 at 07:13, Michal Simek wrote: > > There is prepared function for filing rom_offset. That's why use it instead > of copying content of it. > > Signed-off-by: Michal Simek > --- > > lib/binman.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass

Re: [PATCH] binman: Allow FIT binaries to have missing external blobs

2020-09-01 Thread Simon Glass
Hi Alper, On Tue, 1 Sep 2020 at 06:23, Alper Nebi Yasak wrote: > > On 01/09/2020 13:36, Simon Glass wrote: > > Hi Alper, > > > > I found that evb-rk3288 fails to build with the final patch from your > > series. See u-boot-dm/testing for the tree. > > I had seen your patch and assumed that nothing

Re: [PATCH] binman: Fix typo in kernel-doc format for binman_symname()

2020-09-01 Thread Simon Glass
On Wed, 26 Aug 2020 at 07:34, Michal Simek wrote: > > Fix typo. > > Fixes: 19790632648b ("binman: Support accessing binman tables at run time") > Signed-off-by: Michal Simek > --- > > include/binman_sym.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Simon Glass Appli

Re: [PATCH v2 1/3] binman: Ignore hash*, signature* nodes in sections

2020-09-01 Thread Simon Glass
On Mon, 31 Aug 2020 at 03:59, Alper Nebi Yasak wrote: > > Switch to str.startswith for matching like the FIT etype does since the > current version doesn't ignore 'hash-1', 'hash-2', etc. > > Signed-off-by: Alper Nebi Yasak > --- > > Changes in v2: > - Add test to check that sections ignore hash*

Re: [PATCH v2 2/3] binman: Respect pad-before property of section subentries

2020-09-01 Thread Simon Glass
On Mon, 31 Aug 2020 at 03:59, Alper Nebi Yasak wrote: > > Other relevant properties (pad-after, offset, size, align, align-size, > align-end) already work since Pack() sets correct ranges for subentries' > data (.offset, .size variables), but some padding here is necessary to > align the data with

Re: [PATCH v4 20/27] Makefile: Warn against using CONFIG_SPL_FIT_GENERATOR

2020-09-01 Thread Michal Simek
Hi Simon, On 30. 08. 20 22:37, Simon Glass wrote: > Hi Michal, > > On Wed, 26 Aug 2020 at 08:12, Michal Simek wrote: >> >> Hi, >> >> On 25. 08. 20 18:57, Simon Glass wrote: >>> Hi Michal, >>> >>> On Tue, 25 Aug 2020 at 09:13, Michal Simek wrote: Hi Simon, On 25. 08. 20 17:04

Re: [PATCH 1/1] riscv: don't jump to 0x0 in handle_ipi()

2020-09-01 Thread Sean Anderson
On 9/1/20 7:23 AM, Heinrich Schuchardt wrote: > On 01.09.20 13:14, Sean Anderson wrote: >> On 9/1/20 6:51 AM, Heinrich Schuchardt wrote: >>> When resetting the sipeed_maix_bitm_defconfig without the patch I see a >>> crash: >>> >>> => reset >>> resetting ... >>> Unhandled exception: Illegal instruc

Please pull u-boot-x86

2020-09-01 Thread Bin Meng
Hi Tom, This PR includes the following x86 changes for v2020.10: - Fix parsing of "mtrr list" command - Introduce USE_EARLY_BOARD_INIT option and remove dead codes for most x86 boards Azure results : PASS https://dev.azure.com/bmeng/GitHub/_build/results?buildId=290&view=results The following c

Boot Over Ehternet- Linux Server to Raspberry Pis- Using U-boot

2020-09-01 Thread Ahsan Zia (TAU)
Hi All, I need some ideas regarding Boot Over Ehternet. I have been following the u boot document as well. I am attempting BoE from a Linux Server to a cluster of Raspberry Pis. i.e we have a Ubuntu (linux) Server with Raspbian image, the desired result is to somehow ''Mount'' the image, so th

Re: [PATCH v2] armv8: layerscape: don't remove crypto node if just partially disabled

2020-09-01 Thread Iuliana Prodan
Michael Walle-2 wrote > On all newer Layerscape SoCs, the crypto module is just partially > disabled on non-E parts. Thus it doesn't make sense to completely remove > the node. Linux will figure out what is there and what is not. > > Just remove it for older SoCs, where the module is indeed comple

Re: from https://gitlab.denx.de/u-boot/custodians/u-boot-mips:f3d8c7f8d3c02ff1de172aff7e6392a9ddd1f5b2 to master:

2020-09-01 Thread Daniel Schwierzeck
Am Dienstag, den 01.09.2020, 15:09 +0200 schrieb Mauro Condarelli: > Hi Daniel, > Hi Stefan, > comments inline below. > > Many Thanks > Mauro > > On 9/1/20 1:41 AM, Daniel Schwierzeck wrote: > > Am Montag, den 31.08.2020, 23:53 +0200 schrieb Mauro Condarelli: > > > Thanks Daniel. > > > > > > On

Re: from https://gitlab.denx.de/u-boot/custodians/u-boot-mips:f3d8c7f8d3c02ff1de172aff7e6392a9ddd1f5b2 to master:

2020-09-01 Thread Stefan Roese
Hi Mauro, On 01.09.20 15:09, Mauro Condarelli wrote: Now problem is "Unable to allocate 209398 bytes for LZMA" Full trace below. I assume I should enlarge #define CONFIG_SYS_MALLOC_LEN   (1024 * 1024) since GARDENA has: #define CONFIG_SYS_MALLOC_LEN   (16 * 1024 * 1024) but I

Re: from https://gitlab.denx.de/u-boot/custodians/u-boot-mips:f3d8c7f8d3c02ff1de172aff7e6392a9ddd1f5b2 to master:

2020-09-01 Thread Mauro Condarelli
Hi Daniel, Hi Stefan, comments inline below. Many Thanks Mauro On 9/1/20 1:41 AM, Daniel Schwierzeck wrote: > Am Montag, den 31.08.2020, 23:53 +0200 schrieb Mauro Condarelli: >> Thanks Daniel. >> >> On 8/31/20 10:36 PM, Daniel Schwierzeck wrote: >>> Hi Mauro, >>> >>> Am Montag, den 31.08.2020, 21

Re: [PATCH v2] fastboot: getvar: fix partition-size return value

2020-09-01 Thread Gary Bisson
Hi Sam, On Tue, Sep 01, 2020 at 01:31:46PM +0300, Sam Protsenko wrote: > Hi Gary, > > On Thu, 27 Aug 2020 at 11:51, Gary Bisson > wrote: > > > > The size returned by 'getvar partition-size' should be in bytes, not in > > blocks as fastboot uses that value to generate empty partition when > > run

Re: [GIT] Pull request: u-boot-dfu (30.08.2019)

2020-09-01 Thread Marek Vasut
On 8/30/20 9:42 PM, Lukasz Majewski wrote: > Dear Marek, Hi, > Please find a set of DFU/Gadget related fixes: > > The following changes since commit > 9f04a634ef331b4fc6b3e677f276156192a413c7: > > Merge branch '2020-08-27-misc-fixes' (2020-08-28 08:51:37 -0400) > > are available in the Git r

Re: [PATCH] binman: Allow FIT binaries to have missing external blobs

2020-09-01 Thread Alper Nebi Yasak
On 01/09/2020 13:36, Simon Glass wrote: > Hi Alper, > > I found that evb-rk3288 fails to build with the final patch from your > series. See u-boot-dm/testing for the tree. I had seen your patch and assumed that nothing was already using the allow-missing functionality in its FITs (since you're ad

Re: [PATCH 1/1] riscv: don't jump to 0x0 in handle_ipi()

2020-09-01 Thread Heinrich Schuchardt
On 01.09.20 13:14, Sean Anderson wrote: > On 9/1/20 6:51 AM, Heinrich Schuchardt wrote: >> On 8/18/20 11:00 AM, Heinrich Schuchardt wrote: >>> On 11.08.20 12:32, Sean Anderson wrote: On 8/11/20 3:50 AM, Heinrich Schuchardt wrote: > On 11.08.20 08:20, Rick Chen wrote: >> Hi Heinrich >>>

[PATCH v3 12/12] binman: sunxi: Add help message for missing sunxi ATF BL31

2020-09-01 Thread Simon Glass
Add a special help message pointing to the relevant README. Signed-off-by: Simon Glass --- (no changes since v1) arch/arm/dts/sunxi-u-boot.dtsi | 1 + tools/binman/missing-blob-help | 4 2 files changed, 5 insertions(+) diff --git a/arch/arm/dts/sunxi-u-boot.dtsi b/arch/arm/dts/sunxi-u-b

[PATCH v3 11/12] binman: Support help messages for missing blobs

2020-09-01 Thread Simon Glass
When an external blob is missing it can be quite confusing for the user. Add a way to provide a help message that is shown. Signed-off-by: Simon Glass --- Changes in v3: - Add a way to show help messages for missing blobs tools/binman/README| 6 ++ tools/binman/control

[PATCH v3 10/12] binman: Allow selecting default FIT configuration

2020-09-01 Thread Simon Glass
Add a new entry argument to the fit entry which allows selection of the default configuration to use. This is the 'default' property in the 'configurations' node. Update the Makefile to pass in the value of DEVICE_TREE or CONFIG_DEFAULT_DEVICE_TREE to provide this information. Signed-off-by: Simo

[PATCH v3 06/12] binman: Support generating FITs with multiple dtbs

2020-09-01 Thread Simon Glass
In some cases it is useful to generate a FIT which has a number of DTB images, selectable by configuration. Add support for this in binman, using a simple iterator and string substitution. Signed-off-by: Simon Glass --- Changes in v3: - Rebase on top of earlier binman series Changes in v2: - Ad

[PATCH v3 09/12] sunxi: Drop the FIT-generator script

2020-09-01 Thread Simon Glass
This file is no-longer used. Drop it. Signed-off-by: Simon Glass --- (no changes since v1) board/sunxi/mksunxi_fit_atf.sh | 87 -- 1 file changed, 87 deletions(-) delete mode 100755 board/sunxi/mksunxi_fit_atf.sh diff --git a/board/sunxi/mksunxi_fit_atf.sh b/b

[PATCH v3 08/12] sunxi: Convert 64-bit boards to use binman

2020-09-01 Thread Simon Glass
At present 64-bit sunxi boards use the Makefile to create a FIT, using USE_SPL_FIT_GENERATOR. This is deprecated. Update sunxi to use binman instead. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Add a 'fit-fdt-list' property - Fix 'board' typo in commit message Kconf

[PATCH v3 05/12] binman: Add support for ATF BL31

2020-09-01 Thread Simon Glass
Add an entry for ARM Trusted Firmware's 'BL31' payload, which is the device's main firmware. Typically this is U-Boot. Signed-off-by: Simon Glass --- Changes in v3: - Rebase on top of earlier binman series Changes in v2: - Add the URL of ARM Trusted Firmware and mention of U-Boot docs - Fix cop

[PATCH v3 04/12] binman: Move 'external' support into base class

2020-09-01 Thread Simon Glass
At present we have an Entry_blob_ext which implement a blob which holds an external binary. We need to support other entry types that hold external binaries, e.g. Entry_blob_named_by_arg. Move the support into the base Entry class to allow this. Signed-off-by: Simon Glass --- (no changes since v

[PATCH v3 07/12] Makefile: Support missing external blobs always

2020-09-01 Thread Simon Glass
At present binman warns about missing external blobs only when the BUILD_ROM is defined. Enable this behaviour always, since many boards are starting to use these (e.g. ARM Trusted Firmware's BL31). Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Add new patch to support m

Re: [PATCH 1/1] riscv: don't jump to 0x0 in handle_ipi()

2020-09-01 Thread Sean Anderson
On 9/1/20 6:51 AM, Heinrich Schuchardt wrote: > On 8/18/20 11:00 AM, Heinrich Schuchardt wrote: >> On 11.08.20 12:32, Sean Anderson wrote: >>> On 8/11/20 3:50 AM, Heinrich Schuchardt wrote: On 11.08.20 08:20, Rick Chen wrote: > Hi Heinrich > >> From: Heinrich Schuchardt [mailto:xyp

[PATCH v3 02/12] binman: Fix up a few missing comments

2020-09-01 Thread Simon Glass
Tidy up a few test functions which lack argument comments. Rename one that has the same name as a different test. Also fix up the comment for PrepareImagesAndDtbs(). Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/control.py | 5 + tools/binman/ftest.py | 22 +

[PATCH v3 03/12] libfdt: Detected out-of-space with fdt_finish()

2020-09-01 Thread Simon Glass
At present the Python sequential-write interface can produce an error when it calls fdt_finish(), since this needs to add a terminating tag to the end of the struct section. Fix this by automatically expanding the buffer if needed. Signed-off-by: Simon Glass --- (no changes since v1) scripts/

[PATCH v3 01/12] binman: Allow entry args to be required

2020-09-01 Thread Simon Glass
If an entry argument is needed by an entry but the entry argument is not present, then a strange error can occur when trying to read the file. Fix this by allowing arguments to be required. Select this option for the cros-ec-rw entry. If a filename is provided in the node, allow that to be used.

[PATCH v3 00/12] binman: Add support for generating more complex FITs

2020-09-01 Thread Simon Glass
This series allows binman to generate FITs that include multiple DTB images and the configuration to use them. It is then possible to remove the sunxi FIT generator script, so this series handles that also. With this, sunxi is fully converted to use binman. Note: This series is available at u-bo

Re: Missing BMP 565RGB video support

2020-09-01 Thread Anatolij Gustschin
Hi, On Fri, 28 Aug 2020 10:44:55 + Trommel, Kees (Contractor) kees.trommel.contrac...@draeger.com wrote: > Hi Agust, > > The latest version of the U-Boot does not support conversion from > 24BPP BMP to a 16BPP 565RGB encoded frame buffer. It uses always > 555RGB encoding (see function video_

"Drop ffs" functionality in MTD DFU backend

2020-09-01 Thread Guillermo Rodriguez Garcia
Hello all, I am using u-boot on a STM32MP1 EV1 board. Until recently, the NAND DFU backend was used to flash UBI images to the board. I used the DFU_NAND_TRIMFFS option to ensure that the UBI image was correctly flashed to NAND. Recently, ST has switched from the NAND DFU backend to the MTD DFU b

"Drop ffs" functionality in MTD DFU backend

2020-09-01 Thread Guillermo Rodriguez Garcia
Hello all, I am using u-boot on a STM32MP1 EV1 board. Until recently, the NAND DFU backend was used to flash UBI images to the board. I used the DFU_NAND_TRIMFFS option to ensure that the UBI image was correctly flashed to NAND. Recently, ST has switched from the NAND DFU backend to the MTD DFU b

[PATCH] mips: dts: Fix device tree warnings for PIC32MZDA

2020-09-01 Thread John Robertson
Signed-off-by: John Robertson --- arch/mips/dts/pic32mzda.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/mips/dts/pic32mzda.dtsi b/arch/mips/dts/pic32mzda.dtsi index 4c8b7a9a0b..8aff9eb812 100644 --- a/arch/mips/dts/pic32mzda.dtsi +++ b/arch/mips/dts/pic32mzda.dtsi

Re: [PATCH v2] fastboot: getvar: fix partition-size return value

2020-09-01 Thread Sam Protsenko
Hi Gary, On Thu, 27 Aug 2020 at 11:51, Gary Bisson wrote: > > The size returned by 'getvar partition-size' should be in bytes, not in > blocks as fastboot uses that value to generate empty partition when > running format [1]. > > Note that the function was already returning the proper size in byt

Re: [PATCH 1/1] riscv: don't jump to 0x0 in handle_ipi()

2020-09-01 Thread Heinrich Schuchardt
On 8/18/20 11:00 AM, Heinrich Schuchardt wrote: On 11.08.20 12:32, Sean Anderson wrote: On 8/11/20 3:50 AM, Heinrich Schuchardt wrote: On 11.08.20 08:20, Rick Chen wrote: Hi Heinrich From: Heinrich Schuchardt [mailto:xypron.g...@gmx.de] Sent: Tuesday, August 11, 2020 11:57 AM To: Rick Jian-Z

Re: [PATCH] binman: Allow FIT binaries to have missing external blobs

2020-09-01 Thread Simon Glass
Hi Alper, On Tue, 1 Sep 2020 at 04:35, Simon Glass wrote: > > At present if a FIT references a missing external blob, binman reports an > error, even if the image is supposed to allow this. > > Propagate this setting down to the child sections of the FIT, so that the > behaviour is consistent. >

[PATCH] binman: Allow FIT binaries to have missing external blobs

2020-09-01 Thread Simon Glass
At present if a FIT references a missing external blob, binman reports an error, even if the image is supposed to allow this. Propagate this setting down to the child sections of the FIT, so that the behaviour is consistent. This is a fix-up patch to: binman: Build FIT image subentries with t

[PATCH v3 7/7] riscv: Update SiFive device tree for new CLINT driver

2020-09-01 Thread Sean Anderson
We may need to add a clock-frequency binding like for the K210. Signed-off-by: Sean Anderson --- This patch builds but has NOT been tested. Changes in v3: - Rebase Changes in v2: - Fix SiFive CLINT not getting tick-rate from rtcclk arch/riscv/dts/fu540-c000-u-boot.dtsi | 8 ++--

[PATCH v3 5/7] riscv: clk: Add CLINT clock to kendryte clock driver

2020-09-01 Thread Sean Anderson
Another "virtual" clock (in the sense that it isn't configurable). This could possibly be done as a clock in the device tree, but I think this is a bit cleaner. Signed-off-by: Sean Anderson --- checkpatch still complains about this one, but I don't see any reason to break it up even further. It d

[PATCH v3 6/7] riscv: Update Kendryte device tree for new CLINT driver

2020-09-01 Thread Sean Anderson
AFAIK because the K210 clock driver does not come up until after relocation, the clint will always use the clock-frequency parameter. Ideally, it should update itself after relocation to take into account the actual CPU frequency. The interrupt controller property is removed from the clint binding

[PATCH v3 4/7] riscv: Rework Sifive CLINT as UCLASS_TIMER driver

2020-09-01 Thread Sean Anderson
This converts the clint driver from the riscv-specific interface to be a DM-based UCLASS_TIMER driver. We also need to re-add the initialization for IPI back into the SPL code. This was previously implicitly done when the timer was initialized. In addition, the SiFive DDR driver previously implicit

[PATCH v3 3/7] riscv: Clean up initialization in Andes PLIC

2020-09-01 Thread Sean Anderson
This merges the PLIC initialization code from two functions into one. Signed-off-by: Sean Anderson --- This patch builds but has NOT been tested. (no changes since v1) arch/riscv/lib/andes_plic.c | 58 - 1 file changed, 25 insertions(+), 33 deletions(-) dif

[PATCH v3 1/7] riscv: Rework riscv timer driver to only support S-mode

2020-09-01 Thread Sean Anderson
The riscv-timer driver currently serves as a shim for several riscv timer drivers. This is not too desirable because it bypasses the usual timer selection via the driver model. There is no easy way to specify an alternate timing driver, or have the tick rate depend on the cpu's configured frequency

  1   2   >