[PATCH v3] mmc: fsl_esdhc_imx: check the clock stable status after config the clock rate.

2020-09-01 Thread haibo . chen
From: Haibo Chen Currently, after config the clock rate, delay 10ms, this is quite a rough method. Check the clock stable status in the present status register is enough. Tested-by: Ji Luo Signed-off-by: Haibo Chen --- drivers/mmc/fsl_esdhc_imx.c | 7 ++- 1 file changed, 6 insertions(+),

[PATCH] mmc: fsl_esdhc_imx: replace all readl/writel to esdhc_read32/esdhc_write32

2020-09-01 Thread haibo . chen
From: Haibo Chen Currently, readl/writel and esdhc_read32/esdhc_write32 are used. To align the usage, change to only use esdhc_read32/esdhc_write32. Signed-off-by: Haibo Chen --- drivers/mmc/fsl_esdhc_imx.c | 64 ++--- 1 file changed, 32 insertions(+), 32

[v4, 11/11] configs: lx2160ardb: enable eMMC HS400 mode support

2020-09-01 Thread Yangbo Lu
Enable eMMC HS400 mode support on LX2160ARDB. Signed-off-by: Yangbo Lu --- Changes for v2: - None. Changes for v3: - None. Changes for v4: - None. --- configs/lx2160ardb_tfa_SECURE_BOOT_defconfig | 1 + configs/lx2160ardb_tfa_defconfig | 1 +

[v4, 08/11] mmc: fsl_esdhc: fix mmc->clock with actual clock

2020-09-01 Thread Yangbo Lu
Fix mmc->clock with actual clock which is divided by the controller, and record it with priv->clock which was removed accidentally. Signed-off-by: Yangbo Lu --- Changes for v2: - Added this patch. Changes for v3: - None. Changes for v4: - None. ---

[v4, 10/11] arm: dts: lx2160ardb: support eMMC HS400 mode

2020-09-01 Thread Yangbo Lu
Add properties related to eMMC HS400 mode. mmc-hs400-1_8v; bus-width = <8>; They had been already in kernel dts file since the first lx2160ardb dts patch. b068890 arm64: dts: add LX2160ARDB board support Signed-off-by: Yangbo Lu --- Changes for v2: - None. Changes for v3: -

[v4, 07/11] mmc: fsl_esdhc: support eMMC HS400 mode

2020-09-01 Thread Yangbo Lu
The process for eMMC HS400 mode for eSDHC is, 1. Perform the Tuning Process at the HS400 target operating frequency. Latched the clock division value. 2. if read transaction, then set the SDTIMNGCTL[FLW_CTL_BG]. 3. Switch to High Speed mode and then set the card clock frequency to a value

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

2020-09-01 Thread Andre Heider
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 documentation accordingly. Change-Id: Id1a4f3ca01a6e52df57bf7279f33f0fe45f8ed18

Re: [PATCH v2 05/16] x86: zboot: Correct image type

2020-09-01 Thread Bin Meng
On Sun, Aug 30, 2020 at 5:42 AM Simon Glass wrote: > > At present U-Boot sets a loader type of 8 which means LILO version 8, > according to the spec. Update it to 0x80, which means U-Boot with no > particular version. > > Signed-off-by: Simon Glass > Reviewed-by: Wolfgang Wallner > --- > > (no

[v4, 04/11] mmc: fsl_esdhc: clean TBCTL[TB_EN] manually during init

2020-09-01 Thread Yangbo Lu
Clean TBCTL[TB_EN] manually during init since it is not able to be reset by reset all operation. Signed-off-by: Yangbo Lu --- Changes for v2: - None. Changes for v3: - None. Changes for v4: - None. --- drivers/mmc/fsl_esdhc.c | 3 +++ 1 file changed, 3 insertions(+)

[v4, 02/11] mmc: fsl_esdhc: add a reinit() callback

2020-09-01 Thread Yangbo Lu
Add a reinit() callback for mmc rescan. Signed-off-by: Yangbo Lu Reviewed-by: Jaehoon Chung --- Changes for v2: - None. Changes for v3: - None. Changes for v4: - Added Reviewed-by. --- drivers/mmc/fsl_esdhc.c | 9 + 1 file changed, 9 insertions(+) diff --git

[v4, 01/11] mmc: add a reinit() API

2020-09-01 Thread Yangbo Lu
For DM_MMC, the controller re-initialization is needed to clear old configuration for mmc rescan. Signed-off-by: Yangbo Lu Reviewed-by: Jaehoon Chung --- Changes for v2: - None. Changes for v3: - None. Changes for v4: - Added Reviewed-by. --- drivers/mmc/mmc-uclass.c |

[v4, 00/11] mmc: fsl_esdhc: support eMMC HS200/HS400 modes

2020-09-01 Thread Yangbo Lu
This patch-set is to support eMMC HS200 and HS400 speed modes for eSDHC, and enable them on LX2160ARDB board. CI build link https://travis-ci.org/github/yangbolu1991/u-boot-test/builds/720875619 Changes for v2: - Added two patches to fix stability issue. Changes for v3: -

x86: multiple definition of `_X86EMU_env'

2020-09-01 Thread Heinrich Schuchardt
Dear Simon, make chromebook_coral_defconfig make using gcc (Debian 10.2.0-5) 10.2.0 and GNU ld (GNU Binutils for Debian) 2.35 results in: ld.bfd: drivers/built-in.o:drivers/bios_emulator/x86emu/sys.c:47: multiple definition of `_X86EMU_env'; arch/x86/lib/built-in.o:arch/x86/lib/bios.c:25: first

Re: [PATCH v2 03/16] x86: zimage: Avoid using #ifdef

2020-09-01 Thread Bin Meng
On Sun, Aug 30, 2020 at 5:42 AM Simon Glass wrote: > > Use IS_ENABLED() instead of #ifdef in this file. > > Signed-off-by: Simon Glass > Reviewed-by: Wolfgang Wallner > --- > > (no changes since v1) > > arch/x86/lib/zimage.c | 14 +- > 1 file changed, 5 insertions(+), 9

Re: [PATCH v2 02/16] x86: zimage: Use a state struct to hold the state

2020-09-01 Thread Bin Meng
On Sun, Aug 30, 2020 at 5:42 AM Simon Glass wrote: > > At present the 'zboot' command does everything in one go. It would be > better if it supported sub-commands like bootm, so it is possible to > examine what will be booted before actually booting it. > > In preparation for this, move the

Re: [PATCH v2 15/15] x86: qemu: Remove dead code

2020-09-01 Thread Bin Meng
Hi Andy, On Thu, Aug 20, 2020 at 6:02 PM Andy Shevchenko wrote: > > start.S does nothing and can be safely removed. Makefile is still being used > by the build system, so simply drop the rule from it. > > Signed-off-by: Andy Shevchenko > Reviewed-by: Simon Glass > --- > v2: added Rb tag(s) > >

[v4, 03/11] mmc: fsl_esdhc: support tuning for eMMC HS200

2020-09-01 Thread Yangbo Lu
Support tuning process for eMMC HS200 for eSDHC. Signed-off-by: Yangbo Lu --- Changes for v2: - None. Changes for v3: - Rebased. Changes for v4: - None. --- drivers/mmc/fsl_esdhc.c | 106 ++-- include/fsl_esdhc.h | 17

[v4, 05/11] mmc: add a hs400_tuning flag

2020-09-01 Thread Yangbo Lu
Some controllers may have difference between HS200 tuning and HS400 tuning, such as different registers setting, different procedure, or different errata. This patch is to add a hs400_tuning flag to identify the tuning for HS400 mode. Signed-off-by: Yangbo Lu --- Changes for v2: - None.

[v4, 09/11] mmc: fsl_esdhc: fix eMMC HS400 stability issue

2020-09-01 Thread Yangbo Lu
There was a fix-up for eMMC HS400 stability issue in Linux. Patch link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/ commit/?id=58d0bf843b49fa99588ac9f85178bd8dfd651b53 Description: Currently only LX2160A eSDHC supports eMMC HS400. According to a large number of tests,

[v4, 06/11] mmc: add a mmc_hs400_prepare_ddr() interface

2020-09-01 Thread Yangbo Lu
Add a mmc_hs400_prepare_ddr() interface for controllers which needs preparation before switching to DDR mode for HS400 mode. Signed-off-by: Yangbo Lu --- Changes for v2: - None. Changes for v3: - None. Changes for v4: - Checked returning of mmc_hs400_prepare_ddr(). ---

Re: [PATCH v2 15/15] x86: qemu: Remove dead code

2020-09-01 Thread Andy Shevchenko
On Tue, Sep 01, 2020 at 02:15:32PM +0800, Bin Meng wrote: > Hi Andy, > > On Thu, Aug 20, 2020 at 6:02 PM Andy Shevchenko > wrote: > > > > start.S does nothing and can be safely removed. Makefile is still being used > > by the build system, so simply drop the rule from it. > > > > Signed-off-by:

Re: [PATCH v2 04/16] x86: zboot: Move kernel-version code into a function

2020-09-01 Thread Bin Meng
On Sun, Aug 30, 2020 at 5:42 AM Simon Glass wrote: > > To help reduce the size and complexity of load_zimage(), move the code > that reads the kernel version into a separate function. Update > get_boot_protocol() to allow printing the 'Magic signature' message only > once, under control of its

Re: [PATCH v3] x86: qemu: Remove dead code

2020-09-01 Thread Bin Meng
On Tue, Sep 1, 2020 at 4:33 PM Andy Shevchenko wrote: > > start.S does nothing and can be safely removed. Makefile is still being used > by the build system, so simply replace the rule in it. We use stub C-file > like it's done for other boards. > > Signed-off-by: Andy Shevchenko > Reviewed-by:

[PATCH] lx2160: Correct sd_boot environment variable

2020-09-01 Thread meenakshi . aggarwal
From: Meenakshi Aggarwal Signed-off-by: Meenakshi Aggarwal --- include/configs/lx2160aqds.h | 2 +- include/configs/lx2160ardb.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/configs/lx2160aqds.h b/include/configs/lx2160aqds.h index 3dd071f..1cc015c 100644 ---

Re: [PATCH v2 01/16] x86: Update the bootparam header

2020-09-01 Thread Bin Meng
+Andy Shevchenko On Sun, Aug 30, 2020 at 5:42 AM Simon Glass wrote: > > This header is missing a few of the newer features from the specification. > Add these as well as a link to the spec. Also use the BIT() macros where > appropriate. > > Signed-off-by: Simon Glass > Reviewed-by: Wolfgang

Re: [PATCH v2 15/15] x86: qemu: Remove dead code

2020-09-01 Thread Andy Shevchenko
On Tue, Sep 01, 2020 at 10:05:00AM +0300, Andy Shevchenko wrote: > On Tue, Sep 01, 2020 at 02:15:32PM +0800, Bin Meng wrote: > > On Thu, Aug 20, 2020 at 6:02 PM Andy Shevchenko > > wrote: ... > > > -obj-y += start.o > > > > Unfortunately this does not build. > > > > We possibly need to fix

[PATCH v3] x86: qemu: Remove dead code

2020-09-01 Thread Andy Shevchenko
start.S does nothing and can be safely removed. Makefile is still being used by the build system, so simply replace the rule in it. We use stub C-file like it's done for other boards. Signed-off-by: Andy Shevchenko Reviewed-by: Simon Glass Reviewed-by: Bin Meng --- v3: fixed linker error (Bin)

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

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

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

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

[PATCH 0/2] Add support for LX2162AQDS board

2020-09-01 Thread meenakshi . aggarwal
From: Meenakshi Aggarwal This patch set add support for LX2162AQDS board. LX2162A is a variant of LX2160A. Meenakshi Aggarwal (2): armv8: lx2162a: Add Soc changes to support LX2162A armv8: lx2162aqds: Add support for LX2162AQDS platform arch/arm/Kconfig |

[PATCH 2/2] armv8: lx2162aqds: Add support for LX2162AQDS platform

2020-09-01 Thread meenakshi . aggarwal
From: Meenakshi Aggarwal This patch add base support for LX2162AQDS board. LX2162 is LX2160 based SoC, it has same die as of LX2160 with different packaging. LX2162A support 4GB ddr memory, i2c, micro-click module, microSD card, serial console, qspi nor flash, qsgmii, sgmii, 25g, 40g, 50g

Re: [PATCH v2 11/16] x86: zboot: Set environment variables for image locations

2020-09-01 Thread Bin Meng
Hi Simon, On Sun, Aug 30, 2020 at 5:42 AM Simon Glass wrote: > > At present it is not possible to tell from a script where the setup block > is, or where the image was loaded to. Add environment variables for this. > > Signed-off-by: Simon Glass > Reviewed-by: Wolfgang Wallner > --- > > (no

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

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

[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

[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

[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

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

[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 1/2] armv8: lx2162a: Add Soc changes to support LX2162A

2020-09-01 Thread meenakshi . aggarwal
From: Meenakshi Aggarwal LX2162 is LX2160 based SoC, it has same die as of LX2160 with different packaging. LX2162A support 4GB ddr memory, i2c, micro-click module, microSD card, serial console, qspi nor flash, qsgmii, sgmii, 25g, 40g, 50g network interface,one usb 3.0 and serdes interface to

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

[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

Re: [PATCH v2 08/16] x86: zboot: Add a 'go' subcommand

2020-09-01 Thread Bin Meng
On Sun, Aug 30, 2020 at 5:42 AM Simon Glass wrote: > > Split out the code that actually boots linux into a separate sub-command. > Add base_ptr to the state to support this. > > Show an error if the boot fails, since this should not happen. > > Signed-off-by: Simon Glass > Reviewed-by: Wolfgang

Re: [PATCH v2 10/16] x86: zboot: Add an 'setup' subcommand

2020-09-01 Thread Bin Meng
Hi Simon, On Sun, Aug 30, 2020 at 5:42 AM Simon Glass wrote: > > Add a subcommand that sets up the kernel ready for execution. This commit actually adds 2 subcommands. > > Signed-off-by: Simon Glass > Reviewed-by: Wolfgang Wallner > --- > > (no changes since v1) > > arch/x86/lib/zimage.c |

Re: [PATCH v2 06/16] x86: zimage: Disable interrupts just before booting

2020-09-01 Thread Bin Meng
On Sun, Aug 30, 2020 at 5:42 AM Simon Glass wrote: > > At present if an error occurs while setting up the boot, interrupts are > left disabled. Move this call later in the sequence to avoid this problem. > > Signed-off-by: Simon Glass > Reviewed-by: Wolfgang Wallner > --- > > (no changes since

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

[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

[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

[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

[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

[PATCH v3 2/7] riscv: Rework Andes PLMT as a UCLASS_TIMER driver

2020-09-01 Thread Sean Anderson
This converts the PLMT driver from the riscv-specific timer interface to be a DM-based UCLASS_TIMER driver. The clock-frequency/clocks properties are preferred over timebase-frequency for two reasons. First, properties which affect a device should be located near its binding in the device tree.

[PATCH v3 0/7] riscv: Clean up timer drivers

2020-09-01 Thread Sean Anderson
This series cleans up the timer drivers in RISC-V and converts them to DM. This series depends on [1]. This series needs to be tested! I have only tested it on QEMU and the K210. Notably, this means that the HiFive and anything Andes is completely untested. CI for this series is located at [2].

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

"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

"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

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

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

Re: [PATCH v2 07/16] x86: zboot: Set up a sub-command structure

2020-09-01 Thread Bin Meng
Hi Simon, On Sun, Aug 30, 2020 at 5:42 AM Simon Glass wrote: > > Add subcommands to zboot. At present there is only one called 'start' > which does the whole boot. It is the default command so is optional. > > Change the 's' string variable to const while we are here. > Signed-off-by: Simon

Re: [PATCH v2 15/16] cros: Update chromium documentation

2020-09-01 Thread Bin Meng
On Sun, Aug 30, 2020 at 5:45 AM Simon Glass wrote: > > A few things have changed since this was written about 18 months ago. > Update the README. > > Signed-off-by: Simon Glass > Reviewed-by: Wolfgang Wallner > --- > > (no changes since v1) > > doc/README.chromium | 9 ++--- > 1 file

Re: [PATCH v2 09/16] x86: zboot: Add an 'info' subcommand

2020-09-01 Thread Bin Meng
On Sun, Aug 30, 2020 at 5:42 AM Simon Glass wrote: > > Add a little subcommand that prints out where the kernel was loaded and > its setup pointer. Run it by default in the normal boot. > > Signed-off-by: Simon Glass > Reviewed-by: Wolfgang Wallner > --- > > (no changes since v1) > >

Re: [PATCH v2 13/16] x86: zboot: Add an option to dump the setup information

2020-09-01 Thread Bin Meng
On Sun, Aug 30, 2020 at 5:42 AM Simon Glass wrote: > > There is a lot of information in the setup block and it is quite hard to > decode manually. Add a 'zboot dump' command to decode it into a > human-readable format. > > Signed-off-by: Simon Glass > Reviewed-by: Wolfgang Wallner > --- > > (no

Re: [PATCH v2 16/16] cros: Add information about booting Chrome OS on x86

2020-09-01 Thread Bin Meng
On Sun, Aug 30, 2020 at 5:44 AM Simon Glass wrote: > > Recent versions of Chrome OS do not have a kernel in the root disk, to > save space. > > With the improvements to the 'zboot' command it is fairly easy to load > the kernel from the raw partition. Add instructions on how to do this. > >

Re: [PATCH v2 12/16] x86: zboot: Allow setting a separate setup base address

2020-09-01 Thread Bin Meng
On Sun, Aug 30, 2020 at 5:42 AM Simon Glass wrote: > > At present the setup block is always obtained from the image > automatically. In some cases it can be useful to use a setup block > obtained elsewhere, e.g. if the image has already been unpacked. Add an > argument to support this and update

Re: [PATCH v2 14/16] x86: zboot: Allow overriding the command line

2020-09-01 Thread Bin Meng
On Sun, Aug 30, 2020 at 5:42 AM Simon Glass wrote: > > When booting Chrome OS images the command line is stored separately > from the kernel. Add a way to specify this address so that images boot > correctly. > > Also add comments to the zimage.h header. > > Signed-off-by: Simon Glass >

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

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

[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

[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

[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

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

[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

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

[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

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

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

[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

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

[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

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

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

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 >

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

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

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,

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

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

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

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

  1   2   >