Re: [U-Boot] [PATCH v3 2/2] x86: efi_loader: Use efi_add_conventional_memory_map()

2019-09-09 Thread Bin Meng
On Wed, Sep 4, 2019 at 1:43 AM Park, Aiden wrote: > > Use efi_add_conventional_memory_map() to configure EFI conventional memory > properly with ram_top value. This will give 32bit mode U-Boot proper nits: 32-bit > conventional memory regions even if e820 has a entry which is greater than nits:

Re: [U-Boot] [PATCH 1/1] x86: show UEFI images involved in crash

2019-09-09 Thread Bin Meng
On Thu, Aug 29, 2019 at 12:46 PM Bin Meng wrote: > > On Mon, Aug 26, 2019 at 1:55 AM Heinrich Schuchardt > wrote: > > > > If a crash occurs, show the loaded UEFI images to facilitate analysis. > > > > This is an example output: > > > > => bootefi 0x100 > > Found 0 disks > > Hello world of bu

Re: [U-Boot] [PATCH 1/1] doc: slimbootloader: Update Linux booting steps on QEMU

2019-09-09 Thread Bin Meng
On Mon, Aug 26, 2019 at 12:46 PM Bin Meng wrote: > > Hi Aiden, > > On Mon, Aug 26, 2019 at 11:20 AM Park, Aiden wrote: > > > > Hi Bin, > > > > > -Original Message- > > > From: Bin Meng [mailto:bmeng...@gmail.com] > > > Sent: Sunday, August 25, 2019 7:36 PM > > > To: Park, Aiden > > > Cc:

Re: [U-Boot] [PATCH 3/4] x86: qemu: Support getting high memory size

2019-09-09 Thread Bin Meng
On Wed, Sep 4, 2019 at 12:55 AM Park, Aiden wrote: > > > > > -Original Message- > > From: Bin Meng [mailto:bmeng...@gmail.com] > > Sent: Thursday, August 29, 2019 2:53 AM > > To: Simon Glass ; Park, Aiden ; > > U-Boot Mailing List > > Cc: Heinrich Schuchardt > > Subject: [PATCH 3/4] x86:

Re: [U-Boot] [PATCH 4/4] x86: qemu: Report high memory in the E820 table

2019-09-09 Thread Bin Meng
On Wed, Sep 4, 2019 at 12:56 AM Park, Aiden wrote: > > > > > -Original Message- > > From: Bin Meng [mailto:bmeng...@gmail.com] > > Sent: Thursday, August 29, 2019 2:53 AM > > To: Simon Glass ; Park, Aiden ; > > U-Boot Mailing List > > Cc: Heinrich Schuchardt > > Subject: [PATCH 4/4] x86:

Re: [U-Boot] [PATCH 2/4] x86: qemu: Extract getting memory size to a separate routine

2019-09-09 Thread Bin Meng
On Wed, Sep 4, 2019 at 12:54 AM Park, Aiden wrote: > > > > > -Original Message- > > From: Bin Meng [mailto:bmeng...@gmail.com] > > Sent: Thursday, August 29, 2019 2:53 AM > > To: Simon Glass ; Park, Aiden ; > > U-Boot Mailing List > > Cc: Heinrich Schuchardt > > Subject: [PATCH 2/4] x86:

Re: [U-Boot] [PATCH 1/4] x86: Drop weak version board_get_usable_ram_top()

2019-09-09 Thread Bin Meng
On Fri, Aug 30, 2019 at 4:46 AM Park, Aiden wrote: > > > -Original Message- > > From: Heinrich Schuchardt [mailto:xypron.g...@gmx.de] > > Sent: Thursday, August 29, 2019 12:27 PM > > To: Bin Meng ; Simon Glass ; Park, > > Aiden ; U-Boot Mailing List > > Subject: Re: [PATCH 1/4] x86: Drop

Re: [U-Boot] [PATCH v3 2/2] x86: efi_loader: Use efi_add_conventional_memory_map()

2019-09-09 Thread Bin Meng
Hi Aiden, On Tue, Sep 10, 2019 at 1:40 PM Park, Aiden wrote: > > Hi Bin, > > > -Original Message- > > From: Heinrich Schuchardt [mailto:xypron.g...@gmx.de] > > Sent: Tuesday, September 3, 2019 12:21 PM > > To: Park, Aiden ; Bin Meng ; > > Alexander Graf ; u-boot@lists.denx.de > > Subject:

Re: [U-Boot] [PATCH v4 0/1] imx: support i.MX8QM ROM 7720 a1 board

2019-09-09 Thread Peng Fan
> Subject: [PATCH v4 0/1] imx: support i.MX8QM ROM 7720 a1 board > > Hello list, > > need some information howto avoid the imx-mkimage repo and create full > boostream directly from u-boot with all the binary blobs. Try the diff, and see whether it helps. diff --git a/arch/arm/mach-imx/Makefile

Re: [U-Boot] [PATCH 1/1] doc: slimbootloader: Update Linux booting steps on QEMU

2019-09-09 Thread Park, Aiden
Hi Bin, > -Original Message- > From: Park, Aiden > Sent: Sunday, August 25, 2019 9:56 PM > To: 'Bin Meng' > Cc: Andy Shevchenko ; u-boot@lists.denx.de > Subject: RE: [PATCH 1/1] doc: slimbootloader: Update Linux booting steps on > QEMU > > Hi Bin, > > > -Original Message- > > Fr

Re: [U-Boot] [PATCH v3 2/2] x86: efi_loader: Use efi_add_conventional_memory_map()

2019-09-09 Thread Park, Aiden
Hi Bin, > -Original Message- > From: Heinrich Schuchardt [mailto:xypron.g...@gmx.de] > Sent: Tuesday, September 3, 2019 12:21 PM > To: Park, Aiden ; Bin Meng ; > Alexander Graf ; u-boot@lists.denx.de > Subject: Re: [PATCH v3 2/2] x86: efi_loader: Use > efi_add_conventional_memory_map() >

[U-Boot] [PATCH 6/6] configs: j721e_evm_a72_defconfig: Add HBMC related configs

2019-09-09 Thread Vignesh Raghavendra
Enable HBMC and HyperFlash in A72 SPL and A72 U-Boot Signed-off-by: Vignesh Raghavendra --- configs/j721e_evm_a72_defconfig | 12 1 file changed, 12 insertions(+) diff --git a/configs/j721e_evm_a72_defconfig b/configs/j721e_evm_a72_defconfig index 56df452fb6ca..ef91d07aa33f 100644

[U-Boot] [PATCH 2/6] mtd: Add TI HyperBus Memory Controller driver

2019-09-09 Thread Vignesh Raghavendra
AM654/J721e has HyperBus Memory Controller that supports HyperFlash and HyperRAM devices. It provides a memory mapped interface to interact with these devices. Add a driver to support the same. Driver calibrates the controller, setups up for MMIO access and probes HyperFlash child node. Signed-off

[U-Boot] [PATCH 1/6] mtd: cfi_flash: Use CONFIG_SYS_MONITOR_BASE only when defined

2019-09-09 Thread Vignesh Raghavendra
Make use of CONFIG_SYS_MONITOR_BASE only when available to avoid build error when CONFIG_SYS_MONITOR_BASE is not defined. Signed-off-by: Vignesh Raghavendra --- drivers/mtd/cfi_flash.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/c

[U-Boot] [PATCH 3/6] arm: dts: k3-j721e-mcu-wakeup: Add HyperBus Controller node

2019-09-09 Thread Vignesh Raghavendra
Add DT node for HyperBus Memory Controller in the FSS. On J721e, its not possible to use OSPI0 and HBMC simultaneously as they are muxed within the Flash Subsystem hence disable HBMC by default as keep OSPI enabled. Bootloader will fixup DT when it detects HyperFlash instead of OSPI. Signed-off-by

[U-Boot] [PATCH 4/6] arm: dts: k3-j721e-som-p0: Add HyperFlash node

2019-09-09 Thread Vignesh Raghavendra
J721e SoM as a 64MB HyperFlash on board. Add pinmux and DT node for the same. Signed-off-by: Vignesh Raghavendra --- arch/arm/dts/k3-j721e-som-p0.dtsi | 34 +++ 1 file changed, 34 insertions(+) diff --git a/arch/arm/dts/k3-j721e-som-p0.dtsi b/arch/arm/dts/k3-j721e-s

[U-Boot] [PATCH 5/6] configs: j721e_evm.h: Define CONFIG_SYS_MAX_FLASH_BANKS_DETECT

2019-09-09 Thread Vignesh Raghavendra
Define CONFIG_SYS_MAX_FLASH_BANKS_DETECT so that number of flash banks are automatically detected by CFI flash driver Signed-off-by: Vignesh Raghavendra --- include/configs/j721e_evm.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.

[U-Boot] [PATCH 0/6] J721e: Add HyperBus support

2019-09-09 Thread Vignesh Raghavendra
This series adds support for HyperBus Memory Controller of TI's J721e and AM654 SoCs. Vignesh Raghavendra (6): mtd: cfi_flash: Use CONFIG_SYS_MONITOR_BASE only when defined mtd: Add TI HyperBus Memory Controller driver arm: dts: k3-j721e-mcu-wakeup: Add HyperBus Controller node arm: dts: k

Re: [U-Boot] Regressions in MTD / SPI FLASH

2019-09-09 Thread Vignesh Raghavendra
Hi, On 10/09/19 12:18 AM, Eugeniy Paltsev wrote: > Hi! > Comments are inlined: > >> On 04/09/19 11:37 PM, Eugeniy Paltsev wrote: >>> We faced with regressions caused by >>> commit c4e8862308d4 (mtd: spi: Switch to new SPI NOR framework) >>> This switch was performed by removing entire u-boot spi-

Re: [U-Boot] [PATCH 07/10] ufs: Add glue layer driver for TI J721E devices

2019-09-09 Thread Vignesh Raghavendra
On 09/09/19 1:49 PM, Faiz Abbas wrote: > Add glue layer driver for the controller present on TI's J721E devices. > > Signed-off-by: Faiz Abbas > --- > drivers/ufs/Kconfig| 6 +++ > drivers/ufs/Makefile | 1 + > drivers/ufs/ti-j721e-ufs.c | 75 +++

Re: [U-Boot] [PATCH 05/10] ufs: Add Initial Support for UFS subsystem

2019-09-09 Thread Vignesh Raghavendra
On 09/09/19 1:49 PM, Faiz Abbas wrote: > Add Support for UFS Host Controller Interface (UFSHCI) for communicating > with Universal Flash Storage (UFS) devices. The steps to initialize the > host controller interface are the following: > > - Initiate the Host Controller Initialization process by

Re: [U-Boot] [PATCH 02/10] scsi: Add max_bytes to scsi_platdata

2019-09-09 Thread Vignesh Raghavendra
On 09/09/19 1:49 PM, Faiz Abbas wrote: > diff --git a/include/scsi.h b/include/scsi.h > index 81ab43c842..076bdbc6a0 100644 > --- a/include/scsi.h > +++ b/include/scsi.h > @@ -168,6 +168,7 @@ struct scsi_platdata { > unsigned long base; > unsigned long max_lun; > unsigned long m

Re: [U-Boot] [PATCH v1 6/7] mmc: fsl_esdhc: Add emmc hs200 support

2019-09-09 Thread Yinbo Zhu
Hi York Sun, Could you help me merge that series patch to uboot upstream tree. Regards, Yinbo Zhu Original Message- From: Peng Fan Sent: 2019年8月28日 9:04 To: Yinbo Zhu ; York Sun ; u-boot@lists.denx.de Cc: Jiafei Pan ; Yinbo Zhu ; Xiaobo Xie Subject: RE: [U-Boot] [PATCH v1 6/7] mmc: fs

Re: [U-Boot] [PATCH] spl: dm_mmc: Initialize only the required mmc device

2019-09-09 Thread Peng Fan
> Subject: [PATCH] spl: dm_mmc: Initialize only the required mmc device > > In SPL, all the available mmc devices gets initialized during boot. > This might not work in cases where clocks are not available for certain mmc > devices(other than boot device) and the support for enabling device might

Re: [U-Boot] [PATCH] usb: xhci-dwc3: Add support for dis_u2_susphy_quirk

2019-09-09 Thread Bin Meng
On Tue, Sep 10, 2019 at 2:52 AM Neil Armstrong wrote: > > This quirk is necessary for the Amlogic GXL SoCs otherwise the > Port 2 PHY doesn't get out of suspend and U-Boot resets the board after: > > XHCI timeout on event type 33... cannot recover. > BUG: failure at drivers/usb/host/xhci-ring.c:47

Re: [U-Boot] [PATCH 1/2] Convert CONFIG_SYS_FSL_ESDHC_HAS_DDR_MODE to Kconfig

2019-09-09 Thread Peng Fan
+Y.b > -Original Message- > From: Sébastien Szymanski > Sent: 2019年9月9日 14:36 > To: Peng Fan ; u-boot@lists.denx.de > Cc: Fabio Estevam ; Otavio Salvador > > Subject: Re: [PATCH 1/2] Convert CONFIG_SYS_FSL_ESDHC_HAS_DDR_MODE > to Kconfig > > Hello, > > On 9/9/19 3:59 AM, Peng Fan wrote

Re: [U-Boot] [RFC] FAT errors

2019-09-09 Thread AKASHI Takahiro
On Sun, Sep 08, 2019 at 01:49:30AM +0200, Heinrich Schuchardt wrote: > On 9/5/19 10:37 AM, AKASHI Takahiro wrote: > >On Thu, Sep 05, 2019 at 08:43:43AM +0200, Heinrich Schuchardt wrote: > >>Currently we do no have a maintainer for the FAT file system. Takahiro > >>has done a great job fixing some o

Re: [U-Boot] Using CONFIG_ENV_FLAGS_LIST

2019-09-09 Thread AKASHI Takahiro
On Mon, Sep 09, 2019 at 02:04:50PM +0200, Lukasz Majewski wrote: > Hi Claudius, > > > Hi Lukasz, > > > > On 07/09/2019 00.23, Lukasz Majewski wrote: > > > Hi Claudius, > > > > > >> Hi, > > >> > > >> I am currently looking into variable flags in order to make some > > >> variables read-only for

Re: [U-Boot] [EXT][xhci] XHCI Short Packet Issues

2019-09-09 Thread Aaron Williams
Hi Bin, I have some more data. It looks like U-Boot is not properly handling the short transfer case according to section 4.10.1.1.2 in the XHCI 3.1 specification. In this case, when the data fits in the first TRB, two transfer event TRBs will be generated. The first one will indicate that ther

Re: [U-Boot] Should I create a new UCLASS for Bootstate or Add new Ops to UCLASS_BOOTCOUNT ??

2019-09-09 Thread Philipp Tomsich
Joel, > On 10.09.2019, at 01:07, Simon Glass wrote: > > Hi Joel, > > On Sat, 7 Sep 2019 at 18:34, Joel Peshkin wrote: >> >> >> Hi Simon, >> >> I need to create and upstream driver for a set of functions that manage >> volatile information that persist across reboots. These are simple

Re: [U-Boot] Should I create a new UCLASS for Bootstate or Add new Ops to UCLASS_BOOTCOUNT ??

2019-09-09 Thread Simon Glass
Hi Joel, On Sat, 7 Sep 2019 at 18:34, Joel Peshkin wrote: > > > Hi Simon, > >I need to create and upstream driver for a set of functions that manage > volatile information that persist across reboots. These are simple > registers that survive reboot but get cleared on power-cycle. The k

Re: [U-Boot] Buffer overrun risk in UBI SPL for secure boot

2019-09-09 Thread Joel Peshkin
Hi Heiko, Adding a size limit without breaking things turns out to be much more difficult that it would seem. So, instead of capping the size, we have changed the memory map we are using for uboot. It is probably worthwhile for others using UBISPL in a secure boot nevironment to do the same.

Re: [U-Boot] U-Boot: Environment flags broken for U-Boot

2019-09-09 Thread Tom Rini
On Wed, Sep 04, 2019 at 01:30:02PM -0500, Joe Hershberger wrote: > On Wed, Sep 4, 2019 at 1:01 PM Tom Rini wrote: > > > > On Tue, Sep 03, 2019 at 10:04:42AM +0200, Wolfgang Denk wrote: > > > Dear Tom, > > > > > > In message Heiko Schocher > > > wrote: > > > > > > > > I am just testing U-Boot Env

Re: [U-Boot] [PATCH] clk: sifive: Fix ethernet regression on HiFive Unleashed

2019-09-09 Thread Marcus Comstedt
Hi Bin, Bin Meng writes: >> Yes, but in which Linux? This whole thing started because U-Boot will > > The latest Linux kernel v5.3. Thanks. I'll try it later. As if to prove my point, the one from 5.2.11 (which is the Linux version I'm currently running) did not work (I got MMC but no ether

[U-Boot] [PATCH v2 1/2] MTD: SPI: add missing SST26* flash IC protection ops

2019-09-09 Thread Eugeniy Paltsev
Commit c4e8862308d4 (mtd: spi: Switch to new SPI NOR framework) performs switch from previous 'spi_flash' infrastructure without proper testing/investigations which results in a regressions for SST26 flash series. Add missing SST26* flash IC protection ops which were introduced previously by Commi

[U-Boot] [PATCH v2 2/2] MTD: SPI: enable protection ops for SST26 flash series

2019-09-09 Thread Eugeniy Paltsev
Commit c4e8862308d4 (mtd: spi: Switch to new SPI NOR framework) performs switch from previous 'spi_flash' infrastructure without proper testing/investigations which results in a regressions for SST26 flash series. Enable protection ops for SST26 flash series which were previously enabled by Commit

Re: [U-Boot] [PATCH 1/1] MTD: SPI: revert removing SST26* flash IC protection ops

2019-09-09 Thread Eugeniy Paltsev
>On Wed, Sep 4, 2019 at 11:37 PM Eugeniy Paltsev > wrote: >> >> Commit c4e8862308d4 (mtd: spi: Switch to new SPI NOR framework) >> performs switch from previous 'spi_flash' infrastructure without >> proper testing/investigations which results in regressions. >> >> Fix regression related to SST26 fl

[U-Boot] [PATCH] usb: xhci-dwc3: Add support for dis_u2_susphy_quirk

2019-09-09 Thread Neil Armstrong
This quirk is necessary for the Amlogic GXL SoCs otherwise the Port 2 PHY doesn't get out of suspend and U-Boot resets the board after: XHCI timeout on event type 33... cannot recover. BUG: failure at drivers/usb/host/xhci-ring.c:474/xhci_wait_for_event()! BUG! This quirk is also handled in the d

Re: [U-Boot] Regressions in MTD / SPI FLASH

2019-09-09 Thread Eugeniy Paltsev
Hi! Comments are inlined: >On 04/09/19 11:37 PM, Eugeniy Paltsev wrote: >> We faced with regressions caused by >> commit c4e8862308d4 (mtd: spi: Switch to new SPI NOR framework) >> This switch was performed by removing entire u-boot spi-flash >> core implementation and copying it from another proj

[U-Boot] [PATCHv1 5/5] arm: socfpga: enable RSU build

2019-09-09 Thread richard . gong
From: Richard Gong Add build support for RSU. Signed-off-by: Richard Gong --- arch/arm/mach-socfpga/Makefile | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-socfpga/Makefile b/arch/arm/mach-socfpga/Makefile index fc1181c..17ec0bf 100644 --- a/arch/arm/mach-socfpga/Makef

[U-Boot] [PATCHv1 4/5] arm: socfpga: stratix10: add console commands for RSU support

2019-09-09 Thread richard . gong
From: Richard Gong The Intel Remote System Update (RSU) provides a way for users to update the QSPI configuration bitstream of a Intel Stratix 10 SoC device with significantly reduced risk of corrupting the bitstream storage and bricking the system. This patch provides console commands to exerci

[U-Boot] [PATCHv1 3/5] arm: socfpga: stratix10: add environment variables for RSU support

2019-09-09 Thread richard . gong
From: Richard Gong Add two RSU environment variables: 1. rsu_log_level the variable is unsigned integer and its default value is RSU_DEBUG (7), which only show log with RSU_INFO,RSU_WARNING and RSU_ERR. To enable all logs (RSU_ERR, RSU_WARNING, RSU_INFO and RSU_DE

[U-Boot] [PATCHv1 2/5] arm: socfpga: stratix10: add RSU support for Stratix10 SoC

2019-09-09 Thread richard . gong
From: Richard Gong The Intel Remote System Update (RSU) provides a way for users to update the QSPI configuration bitstream of an Intel Stratix 10 SoC device with significantly reduced risk of corrupting the bitstream storage and bricking the system. This patch adds RSU support which allows user

[U-Boot] [PATCHv1 1/5] arm: socfpga: stratix10: add RSU mailbox support

2019-09-09 Thread richard . gong
From: Richard Gong Add Remote System Update (RSU) related mailbox support. This includes RSU_STATUS which reports status of bitstream loaded by Configuration Management Firmware (CMF), RSU_UPDATE which will invokes CMF to load new bitstream, GET_SUBPARTITION_TABLE which will query CMF on the star

[U-Boot] [PATCHv1 0/5] support remote system update on Intel Stratix10 SoC

2019-09-09 Thread richard . gong
From: Richard Gong The Intel Remote System Update (RSU) provides a way for users to update the QSPI configuration bitstream of a Intel Stratix10 SoC device with significantly reduced risk of corrupting the bitstream storage and bricking the system. The patchset adds RSU support which allows user

Re: [U-Boot] [RFC][PATCH] bootcount: add support to customize bootcount variable name

2019-09-09 Thread Philippe REYNES
Hi Wolfgang, > Dear Philippe, > > In message <1568037413-28155-1-git-send-email-philippe.rey...@softathome.com> > you wrote: >> This commit add an option to customize the bootcount variable >> name in the u-boot environment. To stay compatible with old config, >> the default name is bootcount. >

Re: [U-Boot] [PATCH] arm: ti: Add missing "=" from previous fix

2019-09-09 Thread Tom Rini
On Mon, Sep 09, 2019 at 10:57:24AM -0400, Tom Rini wrote: > While the original patch to fix a regression in distro boot for mmc on > these platforms had the correct syntax, I broke the change while > applying. Add back in the missing "=" here so that the syntax is > correct. > > Reported-by: And

Re: [U-Boot] [PULL] u-boot-mmc mmc-9-6-2019

2019-09-09 Thread Tom Rini
On Mon, Sep 09, 2019 at 01:12:16AM +, Peng Fan wrote: > Hi Tom, > > Please pull u-boot-mmc tag mmc-9-6-2019. > > > Bug fixes to mmc_spi > Add Aspeed SD driver > Fix dw_mmc timeout calculation > Fix timeout values passed to mmc_wait_dat

[U-Boot] [PATCH v2] rpi4: enable dram bank initialization

2019-09-09 Thread matthias . bgg
From: Matthias Brugger When booting through the efi stub, the memory map get's created by reading the dram bank information. Depending on the version of the RPi4 this information changes. Read the device tree to initialize the dram bank data structure. This way the kernel is able to access the wh

Re: [U-Boot] [RFC][PATCH] bootcount: add support to customize bootcount variable name

2019-09-09 Thread Wolfgang Denk
Dear Philippe, In message <1568037413-28155-1-git-send-email-philippe.rey...@softathome.com> you wrote: > This commit add an option to customize the bootcount variable > name in the u-boot environment. To stay compatible with old config, > the default name is bootcount. Which exact problem are y

Re: [U-Boot] [usb dwc3] xHCI driver -- a hint needed.

2019-09-09 Thread Neil Armstrong
Hi Bin, On 08/09/2019 14:35, Bin Meng wrote: > Hi Neil, > > On Sun, Sep 8, 2019 at 8:33 PM Neil Armstrong wrote: >> >> Hi Bin, >> >> Le 07/09/2019 à 05:44, Bin Meng a écrit : >>> Hi Neil, >>> >>> On Thu, Sep 5, 2019 at 11:48 PM Neil Armstrong >>> wrote: Hi Bin, I've been h

Re: [U-Boot] [PATCH 00/10] Add Support for UFS subsystem for TI's J721e

2019-09-09 Thread Tom Rini
On Mon, Sep 09, 2019 at 08:27:23PM +0530, Faiz Abbas wrote: > Hi Tom, > > On 09/09/19 8:22 PM, Tom Rini wrote: > > On Mon, Sep 09, 2019 at 01:49:49PM +0530, Faiz Abbas wrote: > >> The following patches add support for the Universal Flash Storage (UFS) > >> subsystem and its implementation on TI's

[U-Boot] [PATCH 6/6] net: ti: cpsw: convert to use dev/ofnode api

2019-09-09 Thread Grygorii Strashko
Conver TI CPSW driver to use dev/ofnode api. Signed-off-by: Grygorii Strashko --- drivers/net/ti/cpsw.c | 118 ++ include/cpsw.h| 2 +- 2 files changed, 51 insertions(+), 69 deletions(-) diff --git a/drivers/net/ti/cpsw.c b/drivers/net/ti/cpsw.c

[U-Boot] [PATCH 1/6] net: ti: cpsw: enable 10Mbps link speed support in rgmii mode

2019-09-09 Thread Grygorii Strashko
According to TRMs the 10Mbps link speed is supported in RGMII only when CPSW2G MAC SL is configured for External Control ("in band") mode CPSW_SL_MACCTRL.EXT_EN(18) = 1. Hence update cpsw_slave_update_link() to follow documentation. [1] https://patchwork.kernel.org/patch/10285239/ Signed-off-by:

[U-Boot] [PATCH 3/6] net: ti: cpsw: add support for standard eth "max-speed" dt property

2019-09-09 Thread Grygorii Strashko
This patch adds support for standard Ethernet "max-speed" DT property to allow PHY link speed limitation. Signed-off-by: Grygorii Strashko --- drivers/net/ti/cpsw.c | 14 ++ include/cpsw.h| 1 + 2 files changed, 15 insertions(+) diff --git a/drivers/net/ti/cpsw.c b/drivers/

[U-Boot] [PATCH 5/6] net: ti: am65x-cpsw: fix mac tx internal delay for rgmii-rxid mode

2019-09-09 Thread Grygorii Strashko
Now AM65x CPSW2G driver will disable MAC TX internal delay for PHY interface mode "rgmii-rxid" which is incorrect. Hence, fix it by keeping default value (enabled) for MAC TX internal delay when "rgmii-rxid" interface mode is selected. Signed-off-by: Grygorii Strashko --- drivers/net/ti/am65-cps

[U-Boot] [PATCH 4/6] net: ti: cpsw: fix mac tx internal delay for rgmii-rxid mode

2019-09-09 Thread Grygorii Strashko
Now TI CPSW driver will disable MAC TX internal delay for PHY interface mode "rgmii-rxid" which is incorrect. Hence, fix it by keeping default value (enabled) for MAC TX internal delay when "rgmii-rxid" interface mode is selected. Signed-off-by: Grygorii Strashko --- drivers/net/ti/cpsw.c | 2 +

[U-Boot] [PATCH 2/6] net: ti: cpsw: move parsing of dt port's parameters in separate func

2019-09-09 Thread Grygorii Strashko
Move parsing of dt port's parameters in separate func for better code readability. Signed-off-by: Grygorii Strashko --- drivers/net/ti/cpsw.c | 57 +-- 1 file changed, 33 insertions(+), 24 deletions(-) diff --git a/drivers/net/ti/cpsw.c b/drivers/net/ti/c

[U-Boot] [PATCH 0/6] net: ti: net: to: set of fixes and improvements

2019-09-09 Thread Grygorii Strashko
Hi All, This series introduces set of fixes and improvements for TI CPSW and AM654x CPSW networking drivers. Patch 1 - Enables support of 10Mbit link speeds for TI CPSW driver. Patch 3 - Adds support of standard Ethernet "max-speed" DT property. Patches 4-5 - fix mac tx internal delay for rgmii-r

[U-Boot] [PATCH] arm: ti: Add missing "=" from previous fix

2019-09-09 Thread Tom Rini
While the original patch to fix a regression in distro boot for mmc on these platforms had the correct syntax, I broke the change while applying. Add back in the missing "=" here so that the syntax is correct. Reported-by: Andre Heider Fixes: 27e0f3bcf075 ("arm: ti: Fix regression in distro boot

Re: [U-Boot] [PATCH 00/10] Add Support for UFS subsystem for TI's J721e

2019-09-09 Thread Faiz Abbas
Hi Tom, On 09/09/19 8:22 PM, Tom Rini wrote: > On Mon, Sep 09, 2019 at 01:49:49PM +0530, Faiz Abbas wrote: >> The following patches add support for the Universal Flash Storage (UFS) >> subsystem and its implementation on TI's J721e platform. >> >> The UFS Application Layer (UAP) uses SCSI SAM-4 co

Re: [U-Boot] Regression after "distro: not taint environment variables if possible"

2019-09-09 Thread Tom Rini
On Mon, Sep 09, 2019 at 12:17:47PM +0200, Andre Heider wrote: > Hi, > > wrt my other mail "TI mmc env bug?", Nuno sent a proper patch, yet the > commit has the syntax error (missing "="): > > https://gitlab.denx.de/u-boot/u-boot/commit/27e0f3bcf07530a9cd272953797efda54ebb8f5e Ugh, I don't know h

Re: [U-Boot] [PATCH 00/10] Add Support for UFS subsystem for TI's J721e

2019-09-09 Thread Tom Rini
On Mon, Sep 09, 2019 at 01:49:49PM +0530, Faiz Abbas wrote: > The following patches add support for the Universal Flash Storage (UFS) > subsystem and its implementation on TI's J721e platform. > > The UFS Application Layer (UAP) uses SCSI SAM-4 command set for > communication with the device. Ther

[U-Boot] [RFC][PATCH] bootcount: add support to customize bootcount variable name

2019-09-09 Thread Philippe Reynes
This commit add an option to customize the bootcount variable name in the u-boot environment. To stay compatible with old config, the default name is bootcount. Signed-off-by: Philippe Reynes --- drivers/bootcount/Kconfig | 8 drivers/bootcount/bootcount_env.c | 4 ++-- 2 files

Re: [U-Boot] [PATCH v4 2/4] USB: host: Add the USB3 host driver

2019-09-09 Thread Sherry Sun
Hi Jean, > > Hi Sherry, > > On 03/09/2019 14:44, Sherry Sun wrote: > > Hi Jean, > > > >> > >> On 02/09/2019 13:29, Sherry Sun wrote: > >>> Hi Vignesh, > >>> > Hi Sherry, > > [...] > >> AFAIK, U-Boot does not support runtime switching of USB port to > >> host from device an

Re: [U-Boot] [PATCH 0/3] Support distro boot in pico-imx7d BL33 case

2019-09-09 Thread Jun Nie
Peng Fan 于2019年9月3日周二 上午9:39写道: > > Hi Jun, > > > Subject: Re: [PATCH 0/3] Support distro boot in pico-imx7d BL33 case > > > > Jun Nie 于2019年8月8日周四 下午12:04写道: > > > > > > Jun Nie 于2019年7月16日周二 下午3:43写道: > > > > > > > > Support distro boot in pico-imx7d BL33 case with changing the > > > > envirom

[U-Boot] [PATCH v2] imx: Introduce CONFIG_SPL_FORCE_MMC_BOOT to force MMC boot on falcon mode

2019-09-09 Thread Lukasz Majewski
This change tries to fix the following problem: - The board boots (to be more precise - ROM loads SPL) from a slow SPI-NOR memory. As a result the spl_boot_device() will return SPI-NOR as a boot device (which is correct). - The problem is that in 'falcon boot' the eMMC is used as a boot med

Re: [U-Boot] Using CONFIG_ENV_FLAGS_LIST

2019-09-09 Thread Stefano Babic
On 09/09/19 14:54, Claudius Heine wrote: > Hi Stefano, > > On 09/09/2019 13.26, Stefano Babic wrote: >> Hi Claudius, >> >> On 02/09/19 16:02, Claudius Heine wrote: >>> Hi, >>> >>> I am currently looking into variable flags in order to make some >>> variables read-only for secure boot. >>> >>> The

[U-Boot] [PATCH v2 4/4] test: dm: spi: Fix sandbox dm_test_spi_find()

2019-09-09 Thread Bin Meng
Per sandbox_cs_info(), sandbox spi controller only supports chip select 0. Current test case tries to locate devices on chip select 1, and any call to spi_get_bus_and_cs() or spi_cs_info() with cs number 1 should not return 0. This updates the test case to handle it correctly. Signed-off-by: Bin

[U-Boot] [PATCH v2 3/4] dm: spi: Check cs number before accessing slaves

2019-09-09 Thread Bin Meng
Add chip select number check in spi_find_chip_select(). Signed-off-by: Bin Meng --- Changes in v2: - move the chip select number check to spi_find_chip_select() drivers/spi/spi-uclass.c | 45 ++--- include/spi.h| 3 ++- 2 files changed, 28

[U-Boot] [PATCH v2 1/4] dm: spi: Return 0 if driver does not implement ops->cs_info

2019-09-09 Thread Bin Meng
If an SPI controller driver does not implement ops->cs_info, that probably means any chip select number could be valid, hence let's return 0 for spi_cs_info(). Signed-off-by: Bin Meng Reviewed-by: Jagan Teki --- Changes in v2: - update spi-howto.rst to reflect the code changes doc/driver-mod

[U-Boot] [PATCH v2 2/4] dm: spi: Change cs_info op to return -EINVAL for invalid cs num

2019-09-09 Thread Bin Meng
We need distinguish the following two situations in various SPI APIs: - given chip select num is invalid - given chip select num is valid, but no device is attached Currently -ENODEV is returned for both cases. For the first case, it's more reasonable to return -EINVAL instead of -ENODEV for inv

Re: [U-Boot] Using CONFIG_ENV_FLAGS_LIST

2019-09-09 Thread Claudius Heine
Hi Stefano, On 09/09/2019 13.26, Stefano Babic wrote: > Hi Claudius, > > On 02/09/19 16:02, Claudius Heine wrote: >> Hi, >> >> I am currently looking into variable flags in order to make some >> variables read-only for secure boot. >> >> The idea is that the u-boot binary is signed, while the env

Re: [U-Boot] Using CONFIG_ENV_FLAGS_LIST

2019-09-09 Thread Lukasz Majewski
Hi Claudius, > Hi Lukasz, > > On 07/09/2019 00.23, Lukasz Majewski wrote: > > Hi Claudius, > > > >> Hi, > >> > >> I am currently looking into variable flags in order to make some > >> variables read-only for secure boot. > >> > >> The idea is that the u-boot binary is signed, while the environ

Re: [U-Boot] [PATCH v3 0/3] spi: Split CONFIG_DM_SPI* to CONFIG_{SPL_TPL}DM_SPI*

2019-09-09 Thread Lukasz Majewski
On Mon, 9 Sep 2019 11:11:50 + Schrempf Frieder wrote: > Hi Lukasz, > > On 05.09.19 20:09, Tom Rini wrote: > > On Thu, Sep 05, 2019 at 12:16:36AM +0200, Lukasz Majewski wrote: > >> This patch series introduces new SPL and TPL specific Kconfig > >> entries for DM_SPI* options. Such change al

Re: [U-Boot] [RFC] xz compression for U-Boot images

2019-09-09 Thread Wolfgang Denk
Dear Heinrich, In message <845c6856-5a75-2789-18d1-a1e8f9d1f...@gmx.de> you wrote: > > Are you aware off any prior efforts to prepend U-Boot with a > self-extractor? No - why add yet aother level of complexity? > With xz a U-Boot image can be compressed by a factor of more than 2.5. > The self-

Re: [U-Boot] [PATCH v4 2/4] USB: host: Add the USB3 host driver

2019-09-09 Thread Jean-Jacques Hiblot
Hi Sherry, On 03/09/2019 14:44, Sherry Sun wrote: Hi Jean, On 02/09/2019 13:29, Sherry Sun wrote: Hi Vignesh, Hi Sherry, [...] AFAIK, U-Boot does not support runtime switching of USB port to host from device and vice versa. This is the case for existing driver like DWC3/MUSB etc. Ideal

Re: [U-Boot] [PATCH] rpi4: enable dram bank initialization

2019-09-09 Thread Andrei Gherzan
On 06/09/2019 13.58, Matthias Brugger wrote: > > On 06/09/2019 14:11, Alexander Graf wrote: >> On 06.09.19 13:56, matthias@kernel.org wrote: >>> From: Matthias Brugger >>> >>> When booting through the efi stub, the memory map get's created by >>> reading the dram bank information. Depending on

[U-Boot] u-boot working version for Rasberry Pi 4

2019-09-09 Thread Sachin Mehrotra
Dear Concern, I am working for u-boot for rpi4, may I know do we have updated working version for Raspberry Pi 4. I was testing the version https://gitlab.denx.de/u-boot/u-boot with rpi4 but getting error in file arch/arm/cpu/armv8/cpu.c:13 if

Re: [U-Boot] Issue in u-boot; TFTP error: trying to overwrite reserved memory...

2019-09-09 Thread Moses Christopher
Hi Simon, Thanks for the prompt reply. On Fri, 6 Sep, 2019, 8:13 AM Simon Goldschmidt, < simon.k.r.goldschm...@gmail.com> wrote: Hi, On Thu, Sep 5, 2019 at 4:14 PM Moses Christopher wrote: > Hello together, > > I was trying to build u-boot and spl for the arm target and tried to boot via usb-

Re: [U-Boot] [PATCH] imx: Introduce CONFIG_SPL_FORCE_MMC_BOOT to force MMC boot on falcon mode

2019-09-09 Thread Stefano Babic
On 09/09/19 10:02, Lukasz Majewski wrote: > Hi Heiko, Stefano > >> Hello Lukasz, >> >> Am 05.09.2019 um 11:42 schrieb Lukasz Majewski: >>> Hi Stefano, >>> On 04/09/19 12:35, Lukasz Majewski wrote: > On Wed, 4 Sep 2019 11:54:40 +0200 > Lukasz Majewski wrote: > >> Hi

Re: [U-Boot] Using CONFIG_ENV_FLAGS_LIST

2019-09-09 Thread Stefano Babic
Hi Claudius, On 02/09/19 16:02, Claudius Heine wrote: > Hi, > > I am currently looking into variable flags in order to make some > variables read-only for secure boot. > > The idea is that the u-boot binary is signed, while the environment > file/partition is not. So the built-in default environ

Re: [U-Boot] [PATCH] MAINTAINERS: Change fsl-qoriq, mpc86xx, mpc85xx maintainers

2019-09-09 Thread Prabhakar Kushwaha
> -Original Message- > From: U-Boot On Behalf Of Prabhakar > Kushwaha > Sent: Monday, September 9, 2019 4:55 PM > To: u-boot@lists.denx.de > Cc: tr...@konsulko.com; York Sun ; Priyanka Jain > > Subject: [U-Boot] [PATCH] MAINTAINERS: Change fsl-qoriq, mpc86xx, mpc85xx > maintainers > > F

[U-Boot] [PATCH] MAINTAINERS: Change fsl-qoriq, mpc86xx, mpc85xx maintainers

2019-09-09 Thread Prabhakar Kushwaha
From: Priyanka Jain Change maintainers to Priyanka Jain for fsl-qoriq, mpc85xx Signed-off-by: Priyanka Jain --- MAINTAINERS | 6 +++--- board/freescale/mpc8536ds/MAINTAINERS | 2 +- board/freescale/mpc8541cds/MAINTAINERS | 2 +- board/freescale/mpc8544ds/MAINTAIN

Re: [U-Boot] [PATCH v3 0/3] spi: Split CONFIG_DM_SPI* to CONFIG_{SPL_TPL}DM_SPI*

2019-09-09 Thread Schrempf Frieder
Hi Lukasz, On 05.09.19 20:09, Tom Rini wrote: > On Thu, Sep 05, 2019 at 12:16:36AM +0200, Lukasz Majewski wrote: >> This patch series introduces new SPL and TPL specific Kconfig entries for >> DM_SPI* options. Such change allows using the spi driver in SPL/TPL or >> U-Boot proper. >> >> First two

Re: [U-Boot] Using CONFIG_ENV_FLAGS_LIST

2019-09-09 Thread Claudius Heine
Hi Lukasz, On 07/09/2019 00.23, Lukasz Majewski wrote: > Hi Claudius, > >> Hi, >> >> I am currently looking into variable flags in order to make some >> variables read-only for secure boot. >> >> The idea is that the u-boot binary is signed, while the environment >> file/partition is not. So the

Re: [U-Boot] FDT placement in OpenSBI + U-Boot + Linux kernel issue for RISC-V

2019-09-09 Thread David Abdurachmanov
On Mon, Sep 9, 2019 at 8:05 AM Anup Patel wrote: > > Hi, > > I think keeping FDT placement in-sync between U-Boot and OpenSBI > across platforms is going to be painful. > > I suggest that for all platforms U-Boot explicitly load FDT from somewhere > so: > 1. U-Boot ${fdt_addr_r} default value will

Re: [U-Boot] Regression after "distro: not taint environment variables if possible"

2019-09-09 Thread Andre Heider
Hi, wrt my other mail "TI mmc env bug?", Nuno sent a proper patch, yet the commit has the syntax error (missing "="): https://gitlab.denx.de/u-boot/u-boot/commit/27e0f3bcf07530a9cd272953797efda54ebb8f5e Regards, Andre On 27/08/2019 02:17, Tom Rini wrote: On Wed, Jul 10, 2019 at 01:46:57PM +

Re: [U-Boot] FDT placement in OpenSBI + U-Boot + Linux kernel issue for RISC-V

2019-09-09 Thread David Abdurachmanov
On Sun, Sep 8, 2019 at 3:10 PM Atish Patra wrote: > > Hi All, > > I noticed following issues around U-Boot fdt location in Unleashed and > Qemu virt machine. > > OpenSBI copies the FDT to following addresses for respective platforms > > Qemu: 0x8220 > Unleashed: 0x8800 > > >

[U-Boot] [PATCH] spl: Introduce SPL_DM_SPI Kconfig define

2019-09-09 Thread Lukasz Majewski
This define indicates if DM_SPI shall be supported in SPL. This allows proper operation of DM converted SPI drivers in SPL, which use #if !CONFIG_IS_ENABLED(DM_SPI) to also support not yet DM/DTS converted boards. Signed-off-by: Lukasz Majewski --- Applied on top of -master branch: SHA1: 448f11

Re: [U-Boot] [GIT PULL] rpi: updates for v2019.10

2019-09-09 Thread Andrei Gherzan
On 07/09/2019 18.49, Tom Rini wrote: > On Fri, Sep 06, 2019 at 06:41:09PM +0200, Matthias Brugger wrote: > >> Hi Tom, >> >> Please have a look on the following updates for Raspberry Pi. >> Especially we introduce basic RPi4 support \o/ >> >> I did some mistake while creating the tag, so I had to fi

[U-Boot] [PATCH] spl: dm_mmc: Initialize only the required mmc device

2019-09-09 Thread Lokesh Vutla
In SPL, all the available mmc devices gets initialized during boot. This might not work in cases where clocks are not available for certain mmc devices(other than boot device) and the support for enabling device might not be ready. Texas Instruments' K3 J721E device having a central system control

[U-Boot] [PATCH 07/10] ufs: Add glue layer driver for TI J721E devices

2019-09-09 Thread Faiz Abbas
Add glue layer driver for the controller present on TI's J721E devices. Signed-off-by: Faiz Abbas --- drivers/ufs/Kconfig| 6 +++ drivers/ufs/Makefile | 1 + drivers/ufs/ti-j721e-ufs.c | 75 ++ 3 files changed, 82 insertions(+) create mode 100

[U-Boot] [PATCH 10/10] configs: j721e_evm_a72: Enable configs for UFS

2019-09-09 Thread Faiz Abbas
Enable SCSI and UFS related configs. Signed-off-by: Faiz Abbas --- configs/j721e_evm_a72_defconfig | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configs/j721e_evm_a72_defconfig b/configs/j721e_evm_a72_defconfig index 237dc6b601..4c7d1173b4 100644 --- a/configs/j721e_e

[U-Boot] [PATCH 09/10] cmd: Add Support for UFS commands

2019-09-09 Thread Faiz Abbas
Add Support for commands to initialize and configure UFS devices. TODO: Add Support for commands to resize and reconfigure LUNs Signed-off-by: Faiz Abbas --- cmd/Kconfig | 7 +++ cmd/Makefile | 2 +- cmd/ufs.c| 28 3 files changed, 36 insertions(+), 1 dele

[U-Boot] [PATCH 05/10] ufs: Add Initial Support for UFS subsystem

2019-09-09 Thread Faiz Abbas
Add Support for UFS Host Controller Interface (UFSHCI) for communicating with Universal Flash Storage (UFS) devices. The steps to initialize the host controller interface are the following: - Initiate the Host Controller Initialization process by writing to the Host controller enable register. - C

[U-Boot] [PATCH 08/10] arm: dts: k3-j721e-main: Add UFS nodes

2019-09-09 Thread Faiz Abbas
Add TI UFS glue layer and Cadence UFS Host controller DT nodes. Signed-off-by: Faiz Abbas --- arch/arm/dts/k3-j721e-main.dtsi | 25 + 1 file changed, 25 insertions(+) diff --git a/arch/arm/dts/k3-j721e-main.dtsi b/arch/arm/dts/k3-j721e-main.dtsi index 3445784293..23a7cb9

[U-Boot] [PATCH 02/10] scsi: Add max_bytes to scsi_platdata

2019-09-09 Thread Faiz Abbas
Add max_platdata to scsi_platdata to enable the host driver to limit the number of bytes that can be read/written per request. Signed-off-by: Faiz Abbas --- drivers/scsi/scsi.c | 45 ++--- include/scsi.h | 1 + 2 files changed, 27 insertions(+), 19 d

[U-Boot] [PATCH 06/10] ufs: Add Support for Cadence platform UFS driver

2019-09-09 Thread Faiz Abbas
Add Support for the platform driver for the Cadence device present on TI's J721e device. Signed-off-by: Faiz Abbas --- drivers/ufs/Kconfig | 8 +++ drivers/ufs/Makefile| 1 + drivers/ufs/cdns-platform.c | 122 3 files changed, 131 insertio

[U-Boot] [PATCH 03/10] scsi: Retry inquiry 3 times to overcome Unit Attention condition

2019-09-09 Thread Faiz Abbas
The UFS SCSI device LUNs are observed to return failure the first time a unit ready inquiry is sent and pass on the second try. Send this inquiry 3 times to make sure device is ready. Signed-off-by: Faiz Abbas --- drivers/scsi/scsi.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletion

  1   2   >