Re: [U-Boot] [v2 1/5] Revert "ata: fsl_ahci: Add sata DM support for Freescale powerpc socs"

2019-12-02 Thread Stefan Roese
Hi Peng, On 02.12.19 04:40, Peng Ma wrote: This reverts commit 1ee494291880fd51ef0c5f7342e072bdb069d7ff. Commit 1ee494291880 ("ata: fsl_ahci: Add sata DM support for Freescale powerpc socs") introduced SCSI layer to call AHCI private API in order to support sata operations, In DM mode, This is

Re: [U-Boot] [PATCH v3] gpio: at91_gpio: Add bank names

2019-12-02 Thread Eugen.Hristev
On 26.11.2019 13:52, James Byrne wrote: > Make the at91_gpio driver set sensible GPIO bank names in the platform > data. This makes the 'gpio status' command a lot more useful. > > Signed-off-by: James Byrne > > --- > Applied to u-boot-atmel/master Thanks! _

Re: [U-Boot] [PATCH] board: Remove unnecessary inclusion of micrel.h from boards

2019-12-02 Thread Eugen.Hristev
On 15.11.2019 19:11, James Byrne wrote: > Several boards still unnecessarily included micrel.h but no longer > require it since the switch to Device Tree configuration. > > Signed-off-by: James Byrne > Applied to u-boot-atmel/master Thanks! ___ U-

Re: [U-Boot] [PATCH v2 0/2] Fix BMP decode when BMP size is bigger than framebuffer

2019-12-02 Thread Patrice CHOTARD
Hi Anatolij Just a reminder for this series which fixes stm32f746-disco boot when trying to display a splashcreen. Thanks Patrice On 11/20/19 2:11 PM, Patrice Chotard wrote: > This series is fixing 2 issues found when trying to decode BMP > bigger than the framebuffer: > - Convert panel_pictu

Re: [U-Boot] [EXT] Re: [v2 1/5] Revert "ata: fsl_ahci: Add sata DM support for Freescale powerpc socs"

2019-12-02 Thread Peng Ma
>-Original Message- >From: Stefan Roese >Sent: 2019年12月2日 15:59 >To: Peng Ma ; Priyanka Jain ; >w...@denx.de; Ruchika Gupta ; Shengzhou Liu > >Cc: Yinbo Zhu ; Z.q. Hou ; >s...@chromium.org; ja...@openedev.com; andre.przyw...@arm.com; >sm...@web.de; Andy Tang ; u-boot@lists.denx.de >Subje

[U-Boot] [PATCH RESEND v2 00/10] dma: ti: k3-udma: Add support for J721e

2019-12-02 Thread Vignesh Raghavendra
This series adds DMA support for J721e using exist K3 UDMA driver. One main change is thati, on J721e, DMA resources such as DMA channels are shared between different entities running on different cores of the SoC. Therefore, U-Boot running on A72 core should request range of resources allocated t

[U-Boot] [PATCH RESEND v2 08/10] dma: ti: k3-udma: Fix ring push operation for 32 bit cores

2019-12-02 Thread Vignesh Raghavendra
UDMA always expects 64 bit address pointer of the transfer descriptor in the Ring. But on 32 bit cores like R5, pointer is always 32 bit in size. Therefore copy over 32 bit pointer value to 64 bit variable before pushing it over to the ring, so that upper 32 bits are 0s. Signed-off-by: Vignesh Rag

[U-Boot] [PATCH RESEND v2 09/10] dma: ti: k3-udma: Fix build warnings when building for 32 bit platforms

2019-12-02 Thread Vignesh Raghavendra
Cast pointers properly so as to avoid warnings when driver is built for 32 bit platforms Signed-off-by: Vignesh Raghavendra --- drivers/dma/ti/k3-udma.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/dma/ti/k3-udma.c b/drivers/dma/ti/k3-udma.c index

[U-Boot] [PATCH RESEND v2 07/10] dma: ti: k3-udma: Switch to exposed ring mode

2019-12-02 Thread Vignesh Raghavendra
Exposed ring mode works well with 32 bit and 64 bit cores without need for Proxies for 32 bit cores. Therefore switch to exposed ring mode. Signed-off-by: Vignesh Raghavendra --- drivers/dma/ti/k3-udma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/ti/k3-ud

[U-Boot] [PATCH RESEND v2 01/10] lib: Import few bitmap functions from Linux

2019-12-02 Thread Vignesh Raghavendra
Import few basic bitmap functions (bitmap_{weight,fill,set,clear,or}()) and their dependencies from Linux. These are required for upcoming DMA resource allocation support for TI's K3 SoCs. Signed-off-by: Vignesh Raghavendra --- include/linux/bitmap.h | 133 +++

[U-Boot] [PATCH RESEND v2 05/10] dma: ti: k3-udma: Remove coherency check for cache ops

2019-12-02 Thread Vignesh Raghavendra
Remove redundant coherency checks before calling cache ops in UDMA driver. This is now handled in arch specific cache operation implementation based on Kconfig option Signed-off-by: Vignesh Raghavendra --- drivers/dma/ti/k3-udma.c | 49 +--- 1 file changed, 16

[U-Boot] [PATCH RESEND v2 04/10] soc: ti: k3-navss-ringacc: Get SYSFW reference from DT phandle

2019-12-02 Thread Vignesh Raghavendra
Instead of looking getting reference to SYSFW device using name which is not guaranteed to be constant, use phandle supplied in the DT node to get reference to SYSFW Signed-off-by: Vignesh Raghavendra --- drivers/soc/ti/k3-navss-ringacc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[U-Boot] [PATCH RESEND v2 10/10] dma: ti: k3-udma: Add new compatible to J721e

2019-12-02 Thread Vignesh Raghavendra
Add new compatible to handle UDMA support for J721e SoC Signed-off-by: Vignesh Raghavendra --- drivers/dma/ti/k3-udma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/ti/k3-udma.c b/drivers/dma/ti/k3-udma.c index 03c48c9d1ee2..def3c5c38c66 100644 --- a/drivers/dma/ti/k3-udma.c +

[U-Boot] [PATCH RESEND v2 03/10] soc: ti: k3-navss-ringacc: Flush/invalidate caches on ring push/pop

2019-12-02 Thread Vignesh Raghavendra
Flush caches when pushing an element to ring and invalidate caches when popping an element from ring in Exposed Ring mode. Otherwise DMA transfers don't work properly in R5 SPL (with caches enabled) where the core is not in coherency domain. Reviewed-by: Grygorii Strashko Signed-off-by: Vignesh R

[U-Boot] [PATCH RESEND v2 06/10] dma: ti: k3-udma: Fix debug prints during enabling MEM_TO_DEV transfers

2019-12-02 Thread Vignesh Raghavendra
Fix up the debug prints that were dumping state of TCHAN RT registers to use tchan for MEM_TO_DEV transfers. Signed-off-by: Vignesh Raghavendra --- drivers/dma/ti/k3-udma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/ti/k3-udma.c b/drivers/dma/ti/k3-udma.c

[U-Boot] [PATCH RESEND v2 02/10] dma: ti: k3-udma: Query DMA channels allocated from Resource Manager

2019-12-02 Thread Vignesh Raghavendra
On K3 SoCs, DMA channels are shared across multiple entities, therefore U-Boot DMA driver needs to query resource range from centralised resource management controller i.e SystemFirmware and use DMA channels allocated for A72 host. Add support for the same. Signed-off-by: Vignesh Raghavendra ---

[U-Boot] [PATCH v2 2/6] dma: ti: k3-udma: Implement dma_get_cfg() interface

2019-12-02 Thread Vignesh Raghavendra
Implement dma_get_cfg() interface to pass flow id information for DMA clients to use. This is needed because on K3 SoCs, CPSW (ethernet) and UDMA (DMA provider) support "flows" within a given RX DMA channel. This allows different network packets to be segregated while using same RX DMA channel. In

[U-Boot] [PATCH v2 1/6] dma: Introduce dma_get_cfg() interface

2019-12-02 Thread Vignesh Raghavendra
Sometimes, there would be a need to exchange data between DMA provider and DMA client which are very specific to DMA driver of the SoC/platform and are not generic enough to be put into struct dma. Therefore, introduce dma_get_cfg() interface to get DMA provider specific data from client device. Cl

[U-Boot] [PATCH v2 4/6] net: ti: am65-cpsw-nuss: Add new compatible for J721e

2019-12-02 Thread Vignesh Raghavendra
Add new compatible to handle J721e SoC Signed-off-by: Vignesh Raghavendra Acked-by: Joe Hershberger --- drivers/dma/ti/k3-udma.c| 2 +- drivers/net/ti/am65-cpsw-nuss.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/dma/ti/k3-udma.c b/drivers/dma/ti/k3-udma.

[U-Boot] [PATCH v2 6/6] configs: j721e_evm_a72_defconfig: Enable DMA and Ethernet

2019-12-02 Thread Vignesh Raghavendra
Enable configs related to DMA and Ethernet so as to support networking at U-Boot prompt Signed-off-by: Vignesh Raghavendra Acked-by: Joe Hershberger --- configs/j721e_evm_a72_defconfig | 8 1 file changed, 8 insertions(+) diff --git a/configs/j721e_evm_a72_defconfig b/configs/j721e_ev

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

2019-12-02 Thread Vignesh Raghavendra
This patch enables networking support for TI's J721e SoC. Patch 1 adds a new interface to DMA uclass to get channel specific private/configuration data. Patch 2 to 4 use this interface to pass data from J721e's UDMA driver to CPSW ethernet driver. Last two patches add DMA and CPSW DT nodes and conf

[U-Boot] [PATCH v2 5/6] arm: dts: k3-j721e-common-proc-board: Add DMA and CPSW related DT nodes

2019-12-02 Thread Vignesh Raghavendra
Add DT nodes related to DMA and CPSW to -u-boot.dtsi to get networking up on J721e EVM. Signed-off-by: Vignesh Raghavendra Acked-by: Joe Hershberger --- .../k3-j721e-common-proc-board-u-boot.dtsi| 239 ++ 1 file changed, 239 insertions(+) diff --git a/arch/arm/dts/k3-j721e-

[U-Boot] [PATCH v2 3/6] net: ti: am65-cpsw-nuss: Rework RX flow ID handling

2019-12-02 Thread Vignesh Raghavendra
Get flow ID information for RX DMA channel using dma_get_cfg() interface instead of reading from DT. This is required in order to avoid DT update whenever there is change in the range of flow ID allocated to the host. Signed-off-by: Vignesh Raghavendra Acked-by: Joe Hershberger --- drivers/net/

Re: [U-Boot] [PATCH] drivers: pci: ignore disabled devices

2019-12-02 Thread Alexandru Marginean
On 12/1/2019 5:45 PM, Michael Walle wrote: PCI devices may be disabled in the device tree. Devices which are probed by the device tree handle the "status" property and are skipped if disabled. Devices which are probed by the PCI enumeration don't check that property. Fix it. Signed-off-by: Micha

Re: [U-Boot] [PATCH] drivers: pci: ignore disabled devices

2019-12-02 Thread Bin Meng
On Mon, Dec 2, 2019 at 12:45 AM Michael Walle wrote: > > PCI devices may be disabled in the device tree. Devices which are probed > by the device tree handle the "status" property and are skipped if > disabled. Devices which are probed by the PCI enumeration don't check > that property. Fix it. >

[U-Boot] [RESEND PATCH v2] spl: Introduce SPL_DM_GPIO Kconfig define

2019-12-02 Thread Lukasz Majewski
This define indicates if DM_GPIO shall be supported in SPL. This allows proper operation of DM converted GPIO drivers in SPL, which use boards. Signed-off-by: Lukasz Majewski --- Changes in v2: - Add dependency on DM_GPIO Note: - Board which is using DM_GPIO in SPL with OF_PLATDATA (XEA - i.MX

Re: [U-Boot] [PATCH 0/4] omapl138_lcdk: fix MMC boot

2019-12-02 Thread Bartosz Golaszewski
czw., 14 lis 2019 o 16:10 Bartosz Golaszewski napisał(a): > > From: Bartosz Golaszewski > > Booting from MMC on omapl138-lcdk is currently broken after we enabled > driver-model in SPL. While I know what's wrong - the bind() callback not > being called - I can't for the life of me figure out how

Re: [U-Boot] [PATCH 0/8] Transition of fsl qspi driver to spi-mem framework

2019-12-02 Thread Stefan Roese
Hi Kuldeep, On 29.11.19 06:54, Kuldeep Singh wrote: This entire patch series migrate freescale qspi driver to spi-mem framework. Patch 1 removes the old fsl qspi driver Patch 2 adds new qspi driver incorporating spi-mem framework which is ported version of linux qspi driver. Initial port was d

[U-Boot] [PATCH] rockchip: config: add support for firefly-px30 board

2019-12-02 Thread Kever Yang
This is a core board named Core-PX30-JD4 with a mainboard from Firefly, name it as firefly-px30 for now. This board can re-use the dts of PX30, the only difference is the UART IO, the firefly use UART2 M1 while evb use UART2 M0. Signed-off-by: Kever Yang --- board/rockchip/evb_px30/MAINTAINERS

[U-Boot] [PATCH v1 00/20] Enable ARM Trusted Firmware for U-Boot

2019-12-02 Thread chee . hong . ang
From: "Ang, Chee Hong" New U-boot flow with ARM Trusted Firmware (ATF) support: SPL (EL3) -> ATF-BL31 (EL3) -> U-Boot Proper (EL2) -> Linux (EL1) SPL loads the u-boot.itb which consist of: 1) u-boot-nodtb.bin (U-Boot Proper image) 2) u-boot.dtb (U-Boot Proper DTB) 3) bl31.bin (ATF-BL31 image) S

[U-Boot] [PATCH v1 01/20] configs: stratix10: Remove CONFIG_OF_EMBED

2019-12-02 Thread chee . hong . ang
From: Dalon Westergreen CONFIG_OF_EMBED was primarily enabled to support the stratix10 spl hex file requirements. Since this option now produces a warning during build, and the spl hex can be created using alternate methods, CONFIG_OF_EMBED is no longer needed. Signed-off-by: Dalon Westergreen

[U-Boot] [PATCH v1 04/20] arm: socfpga: Load FIT image with ATF support

2019-12-02 Thread chee . hong . ang
From: Chee Hong Ang Instead of loading u-boot proper image (u-boot.img), SPL now loads FIT image (u-boot.itb) which includes u-boot proper, ATF and u-boot proper's DTB. Signed-off-by: Chee Hong Ang --- include/configs/socfpga_soc64_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[U-Boot] [PATCH v1 05/20] arm: socfpga: Override 'lowlevel_init' to support ATF

2019-12-02 Thread chee . hong . ang
From: Chee Hong Ang Override 'lowlevel_init' to support booting ATF from SPL on Intel SOCFPGA (64bits) platforms. Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpga/Makefile| 2 ++ arch/arm/mach-socfpga/lowlevel_init.S | 48 +++ 2 files changed, 50

[U-Boot] [PATCH v1 11/20] arm: socfpga: Secure register access for clock manager (SoC 64bits)

2019-12-02 Thread chee . hong . ang
From: Chee Hong Ang Allow clock manager driver to access the System Manager's Boot Scratch Register 0 in non-secure mode (EL2) on SoC 64bits platform. Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpga/clock_manager_agilex.c | 5 +++-- arch/arm/mach-socfpga/clock_manager_s10.c| 5 +++--

[U-Boot] [PATCH v1 02/20] arm: socfpga: add fit source file for pack itb with ATF

2019-12-02 Thread chee . hong . ang
From: Chee Hong Ang Generate a FIT image for Intel SOCFPGA(64bits) which include U-boot proper, ATF and DTB for U-boot proper. Signed-off-by: Chee Hong Ang --- board/altera/soc64/its/fit_spl_atf.its | 51 ++ 1 file changed, 51 insertions(+) create mode 100644 b

[U-Boot] [PATCH v1 03/20] arm: socfpga: Add function for checking description from FIT image

2019-12-02 Thread chee . hong . ang
From: Chee Hong Ang Add board_fit_config_name_match() for matching board name with device tree files in FIT image. This will ensure correct DTB file is loaded for different board type. Currently, we are not supporting multiple device tree files in FIT image therefore this function basically do no

[U-Boot] [PATCH v1 16/20] arm: socfpga: Secure register access in Reset Manager driver

2019-12-02 Thread chee . hong . ang
From: Chee Hong Ang Allow socfpga_bridges_reset() function in Reset Manager driver to access System Manager's register in non-secure mode (EL2). Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpga/reset_manager_s10.c | 31 ++- 1 file changed, 18 insertions(+), 13

[U-Boot] [PATCH v1 17/20] arm: socfpga: stratix10: Initialize timer in SPL

2019-12-02 Thread chee . hong . ang
From: Chee Hong Ang Initialize timer in SPL running in secure mode (EL3) and skip timer initialization in U-Boot proper running in non-secure mode (EL2). Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpga/timer_s10.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arc

[U-Boot] [PATCH v1 09/20] arm: socfpga: Define SMC function identifiers for PSCI SiP services

2019-12-02 Thread chee . hong . ang
From: Chee Hong Ang This header file defines the Secure Monitor Call (SMC) message protocol for ATF (BL31) PSCI runtime services. It includes all the PSCI SiP function identifiers for the secure runtime services provided by ATF. The secure runtime services include System Manager's registers acces

[U-Boot] [PATCH v1 18/20] arm: socfpga: stratix10: Refactor FPGA reconfig driver to support ATF

2019-12-02 Thread chee . hong . ang
From: Chee Hong Ang Refactor the FPGA recpnfiguration driver to call the ATF's PSCI runtime services as it no longer handles the Secure Device Manager (SDM) mailbox communication and FPGA reconfiguration logic. Signed-off-by: Chee Hong Ang --- drivers/fpga/stratix10.c | 261 +++

[U-Boot] [PATCH v1 15/20] net: designware: socfpga: Secure register access in MAC driver

2019-12-02 Thread chee . hong . ang
From: Chee Hong Ang Allow MAC driver to access System Manager's EMAC control registers in non-secure mode. Signed-off-by: Chee Hong Ang --- drivers/net/dwmac_socfpga.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/dwmac_socfpga.c b/drivers/net/dwmac_socfp

[U-Boot] [PATCH v1 07/20] arm: socfpga: Disable "spin-table" method for booting Linux

2019-12-02 Thread chee . hong . ang
From: Chee Hong Ang Standard PSCI function "CPU_ON" provided by ATF is now used by Linux kernel to bring up the secondary CPUs to enable SMP booting in Linux on SoC 64bits platform. Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpga/Kconfig | 2 -- 1 file changed, 2 deletions(-) diff --gi

[U-Boot] [PATCH v1 12/20] arm: socfpga: Secure register access in PHY mode setup

2019-12-02 Thread chee . hong . ang
From: Chee Hong Ang Allow access to System Manager's EMAC control register from non-secure mode during PHY mode setup. Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpga/misc_s10.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-socfpga/misc_s10.c b

[U-Boot] [PATCH v1 13/20] arm: socfpga: Secure register access for reading PLL frequency

2019-12-02 Thread chee . hong . ang
From: Chee Hong Ang Allow reading external oscillator and FPGA clock's frequency from System Manager's Boot Scratch Register 1 and Boot Scratch Register 2 in non-secure mode (EL2) on SoC 64bits platform. Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpga/wrap_pll_config_s10.c | 9 +

[U-Boot] [PATCH v1 10/20] arm: socfpga: Add secure register access helper functions for SoC 64bits

2019-12-02 Thread chee . hong . ang
From: Chee Hong Ang These secure register access functions allow U-Boot proper running at EL2 (non-secure) to access System Manager's secure registers by calling the ATF's PSCI runtime services (EL3/secure). If these helper functions are called from secure mode (EL3), the helper function will dir

[U-Boot] [PATCH v1 14/20] mmc: dwmmc: socfpga: Secure register access in MMC driver

2019-12-02 Thread chee . hong . ang
From: Chee Hong Ang Allow MMC driver to access System Manager's SDMMC control register in non-secure mode (EL2). Signed-off-by: Chee Hong Ang --- drivers/mmc/socfpga_dw_mmc.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/socfpga_dw_mmc.c b/drivers/mmc/s

[U-Boot] [PATCH v1 19/20] arm: socfpga: Bridge reset now invokes SMC calls to query FPGA config status

2019-12-02 Thread chee . hong . ang
From: Chee Hong Ang Since SSBL is now running in non-secure mode (EL2), do_bridge_reset() no longer send mailbox commands to SDM directly to query the status of the FPGA configuration. Now, it invokes SMC service calls to ATF (running at EL3) to perform the query. Signed-off-by: Chee Hong Ang -

[U-Boot] [PATCH v1 06/20] configs: socfpga: Enable FIT image loading with ATF support

2019-12-02 Thread chee . hong . ang
From: Chee Hong Ang SPL now loads ATF (BL31), U-Boot proper and DTB from FIT image. The new boot flow with ATF support is as follow: SPL -> ATF (BL31) -> U-Boot proper -> OS (Linux) Signed-off-by: Chee Hong Ang --- configs/socfpga_agilex_defconfig| 8 +++- configs/socfpga_stratix10_de

[U-Boot] [PATCH v1 08/20] arm: socfpga: Add SMC helper function for Intel SOCFPGA (64bits)

2019-12-02 Thread chee . hong . ang
From: Chee Hong Ang Allow U-Boot proper running in non-secure mode (EL2) to invoke SMC call to ATF's PSCI runtime services such as System Manager's registers access, 2nd phase bitstream FPGA reconfiguration, Remote System Update (RSU) and etc. Signed-off-by: Chee Hong Ang --- arch/arm/mach-soc

[U-Boot] [PATCH v1 20/20] sysreset: socfpga: Invoke PSCI call for COLD reset

2019-12-02 Thread chee . hong . ang
From: Chee Hong Ang Instead of sending mailbox command to trigger COLD reset, sysreset driver now call "SYSTEM_RESET" PSCI runtime service provided by ATF to trigger COLD reset. Signed-off-by: Chee Hong Ang --- drivers/sysreset/sysreset_socfpga_s10.c | 4 +--- 1 file changed, 1 insertion(+), 3

Re: [U-Boot] [EXT] Re: [PATCH 0/8] Transition of fsl qspi driver to spi-mem framework

2019-12-02 Thread Kuldeep Singh
+ Ye li Hi Stefan, > -Original Message- > From: Stefan Roese > Sent: Monday, December 2, 2019 3:38 PM > To: Kuldeep Singh ; u-boot@lists.denx.de > Cc: Priyanka Jain ; ja...@amarulasolutions.com; > frieder.schre...@kontron.de > Subject: [EXT] Re: [PATCH 0/8] Transition of fsl qspi driver

[U-Boot] [PATCH] configs: ls1028aqds: enable mdio muxing by default

2019-12-02 Thread Alex Marginean
LS1028A QDS boards have a MDIO MUX and they require the driver for it for PHYs to work. Signed-off-by: Alex Marginean --- configs/ls1028aqds_tfa_SECURE_BOOT_defconfig | 2 ++ configs/ls1028aqds_tfa_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configs/ls1028aqds_tf

[U-Boot] [PATCH v4 2/6] fat: write: adjust data written in each partial write

2019-12-02 Thread Marek Szyprowski
The code for handing file overwrite incorrectly calculated the amount of data to write when writing to the last non-cluster aligned chunk. Fix this by ensuring that no more data than the 'filesize' is written to disk. While touching min()-based calculations, change it to type-safe min_t() function.

[U-Boot] [PATCH v4 0/6] Raspberry Pi4: add support for DFU over USB

2019-12-02 Thread Marek Szyprowski
Hi All! This patchset enables support for DFU over USB protocol on Raspberry Pi4 board. The board has DWC2 UDC controller connected to the USB-C power connector. Enabling DFU on it, make the u-boot development much more convenient, as one no longer needs to swap SD-card between RPi4 board and host

[U-Boot] [PATCH v4 5/6] usb: dwc2_udc_otg: add bcm2835 SoC (Raspberry Pi4) support

2019-12-02 Thread Marek Szyprowski
Broadcom 2835 SoC requires special conversion of physical memory addresses for DMA purpose, so add needed wrappers to dwc2_udc_otg driver. Also extend the list of compatible devices with 'brcm,bcm2835-usb' entry. This allows to use USB gadget drivers (i.e. DFU) on Raspberry Pi4 boards. Signed-off-

[U-Boot] [PATCH v4 4/6] dfu: mmc: remove file size limit for io operations

2019-12-02 Thread Marek Szyprowski
Add support for operations on files larger than CONFIG_SYS_DFU_MAX_FILE_SIZE. The buffered io mechanism is still used for aggregating io requests, so for files up to CONFIG_SYS_DFU_MAX_FILE_SIZE nothing is changed and they will be handled in a single filesystem call. Signed-off-by: Marek Szyprowsk

[U-Boot] [PATCH v4 1/6] fat: write: fix broken write to fragmented files

2019-12-02 Thread Marek Szyprowski
The code for handing file overwrite incorrectly assumed that the file on disk is always contiguous. This resulted in corrupting disk structure every time when write to existing fragmented file happened. Fix this by adding proper check for cluster discontinuity and adjust chunk size on each partial

[U-Boot] [PATCH v4 6/6] config: enable DFU over USB on Raspberry Pi4 boards

2019-12-02 Thread Marek Szyprowski
Enable support for DFU over USB. This requires to enable USB gadget, DWC2 UDC OTG driver and DFU command. DFU entities are defined for the following firmware objects: u-boot.bin, uboot.env, config.txt, and zImage/Image. Signed-off-by: Marek Szyprowski Reviewed-by: Lukasz Majewski --- configs/rp

[U-Boot] [PATCH v4 3/6] dfu: mmc: rearrange the code

2019-12-02 Thread Marek Szyprowski
Rename functions for bufferred file io operations to make them easier to understand. Also add missing file offset argument to them (currently unused). All this is a preparation to remove predefined file size limit (CONFIG_SYS_DFU_MAX_FILE_SIZE) for DFU read/write operations. Signed-off-by: Marek S

Re: [U-Boot] [PATCH RESEND v2 02/10] dma: ti: k3-udma: Query DMA channels allocated from Resource Manager

2019-12-02 Thread Grygorii Strashko
On 02/12/2019 10:54, Vignesh Raghavendra wrote: On K3 SoCs, DMA channels are shared across multiple entities, therefore U-Boot DMA driver needs to query resource range from centralised resource management controller i.e SystemFirmware and use DMA channels allocated for A72 host. Add support for

Re: [U-Boot] [PATCH RESEND v2 00/10] dma: ti: k3-udma: Add support for J721e

2019-12-02 Thread Grygorii Strashko
On 02/12/2019 10:54, Vignesh Raghavendra wrote: This series adds DMA support for J721e using exist K3 UDMA driver. One main change is thati, on J721e, DMA resources such as DMA channels are shared between different entities running on different cores of the SoC. Therefore, U-Boot running on A7

Re: [U-Boot] [PATCH] net: eth-uclass: ignore unavailable devices

2019-12-02 Thread Alexandru Marginean
On 12/1/2019 5:43 PM, Michael Walle wrote: Am 2019-12-01 01:55, schrieb Alexandru Marginean: Hi Michael, On 10/22/2019 1:03 AM, Michael Walle wrote: device_probe() may fail in which case the seq_id will be -1. Don't display these devices during startup. While this is only a cosmetic change, th

Re: [U-Boot] [PATCH v2 3/6] net: ti: am65-cpsw-nuss: Rework RX flow ID handling

2019-12-02 Thread Grygorii Strashko
On 02/12/2019 10:59, Vignesh Raghavendra wrote: Get flow ID information for RX DMA channel using dma_get_cfg() interface instead of reading from DT. This is required in order to avoid DT update whenever there is change in the range of flow ID allocated to the host. Signed-off-by: Vignesh Ragha

Re: [U-Boot] [PATCH v2 5/6] arm: dts: k3-j721e-common-proc-board: Add DMA and CPSW related DT nodes

2019-12-02 Thread Grygorii Strashko
On 02/12/2019 10:59, Vignesh Raghavendra wrote: Add DT nodes related to DMA and CPSW to -u-boot.dtsi to get networking up on J721e EVM. Signed-off-by: Vignesh Raghavendra Acked-by: Joe Hershberger --- .../k3-j721e-common-proc-board-u-boot.dtsi| 239 ++ 1 file changed,

Re: [U-Boot] [PATCH v2 0/6] J721e: Add networking support

2019-12-02 Thread Grygorii Strashko
On 02/12/2019 10:59, Vignesh Raghavendra wrote: This patch enables networking support for TI's J721e SoC. Patch 1 adds a new interface to DMA uclass to get channel specific private/configuration data. Patch 2 to 4 use this interface to pass data from J721e's UDMA driver to CPSW ethernet driver.

Re: [U-Boot] [PATCH 0/4] omapl138_lcdk: fix MMC boot

2019-12-02 Thread Adam Ford
On Mon, Dec 2, 2019 at 3:32 AM Bartosz Golaszewski wrote: > > czw., 14 lis 2019 o 16:10 Bartosz Golaszewski napisał(a): > > > > From: Bartosz Golaszewski > > > > Booting from MMC on omapl138-lcdk is currently broken after we enabled > > driver-model in SPL. While I know what's wrong - the bind()

Re: [U-Boot] [PATCH 0/8] Transition of fsl qspi driver to spi-mem framework

2019-12-02 Thread Schrempf Frieder
+ Ashish Hi Kuldeep, On 29.11.19 06:54, Kuldeep Singh wrote: > This entire patch series migrate freescale qspi driver to spi-mem framework. First, thanks for working on this. I have this on my list for quite a long time, but struggled to find enough time to actually get it done. > > Patch 1 r

Re: [U-Boot] [PATCH v2 1/6] net: introduce DSA class for Ethernet switches

2019-12-02 Thread Alexandru Marginean
On 12/1/2019 5:17 AM, Florian Fainelli wrote: On 11/30/2019 6:21 PM, Alexandru Marginean wrote: Hi Joe, On 11/30/2019 1:56 AM, Joe Hershberger wrote: Hi Alex, On Mon, Nov 25, 2019 at 9:54 AM Alex Marginean wrote: DSA stands for Distributed Switch Architecture and it covers switches that

Re: [U-Boot] [PATCH v1 00/20] Enable ARM Trusted Firmware for U-Boot

2019-12-02 Thread Simon Goldschmidt
On Mon, Dec 2, 2019 at 11:25 AM wrote: > > From: "Ang, Chee Hong" > > New U-boot flow with ARM Trusted Firmware (ATF) support: > SPL (EL3) -> ATF-BL31 (EL3) -> U-Boot Proper (EL2) -> Linux (EL1) Adding support for ATF means that using U-Boot on Stratix10 and Agilex without ATF keeps working, rig

Re: [U-Boot] [PATCH v1 00/20] Enable ARM Trusted Firmware for U-Boot

2019-12-02 Thread Ang, Chee Hong
> On Mon, Dec 2, 2019 at 11:25 AM wrote: > > > > From: "Ang, Chee Hong" > > > > New U-boot flow with ARM Trusted Firmware (ATF) support: > > SPL (EL3) -> ATF-BL31 (EL3) -> U-Boot Proper (EL2) -> Linux (EL1) > > Adding support for ATF means that using U-Boot on Stratix10 and Agilex without > ATF

Re: [U-Boot] [PATCH] tools/imximage: fix reported DCD information for MX7ULP

2019-12-02 Thread Fabio Estevam
Hi Jorge, Adding Breno. On Thu, Nov 28, 2019 at 7:33 AM Jorge Ramirez-Ortiz wrote: > > On the MX7ULP, OCRAM for DCD is at 0x2f01 > > Signed-off-by: Jorge Ramirez-Ortiz > --- > tools/imximage.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/tools/imximage.c b/tools/imximage.

Re: [U-Boot] [PATCH v1 00/20] Enable ARM Trusted Firmware for U-Boot

2019-12-02 Thread Simon Goldschmidt
On Mon, Dec 2, 2019 at 2:38 PM Ang, Chee Hong wrote: > > > On Mon, Dec 2, 2019 at 11:25 AM wrote: > > > > > > From: "Ang, Chee Hong" > > > > > > New U-boot flow with ARM Trusted Firmware (ATF) support: > > > SPL (EL3) -> ATF-BL31 (EL3) -> U-Boot Proper (EL2) -> Linux (EL1) > > > > Adding support

Re: [U-Boot] [PATCH v1 00/20] Enable ARM Trusted Firmware for U-Boot

2019-12-02 Thread Ang, Chee Hong
> On Mon, Dec 2, 2019 at 2:38 PM Ang, Chee Hong > wrote: > > > > > On Mon, Dec 2, 2019 at 11:25 AM wrote: > > > > > > > > From: "Ang, Chee Hong" > > > > > > > > New U-boot flow with ARM Trusted Firmware (ATF) support: > > > > SPL (EL3) -> ATF-BL31 (EL3) -> U-Boot Proper (EL2) -> Linux (EL1) > >

Re: [U-Boot] [PATCH v1 00/20] Enable ARM Trusted Firmware for U-Boot

2019-12-02 Thread Ang, Chee Hong
> > On Mon, Dec 2, 2019 at 2:38 PM Ang, Chee Hong > > > > wrote: > > > > > > > On Mon, Dec 2, 2019 at 11:25 AM wrote: > > > > > > > > > > From: "Ang, Chee Hong" > > > > > > > > > > New U-boot flow with ARM Trusted Firmware (ATF) support: > > > > > SPL (EL3) -> ATF-BL31 (EL3) -> U-Boot Proper (EL

Re: [U-Boot] Load Debian/Fedora via EFI

2019-12-02 Thread Michal Simek
On 29. 11. 19 19:23, Heinrich Schuchardt wrote: > On 11/29/19 11:16 AM, Michal Simek wrote: >> Hi, >> >> I tried to boot latest debian and fedora rootfs via distro boot and >> getting errors. >> I have tried to run just one command and it is failing. >> >> ZynqMP> bootefi bootmgr ${fdtcontroladdr}

Re: [U-Boot] [PATCH v5 100/101] x86: apl: Add FSP support

2019-12-02 Thread Bin Meng
Hi Simon, On Mon, Nov 25, 2019 at 12:12 PM Simon Glass wrote: > > The memory and silicon init parts of the FSP need support code to work. > Add this for Apollo Lake. > > Signed-off-by: Simon Glass > --- > > Changes in v5: > - Allocate the FSP-S data instead of using the stack > - Rename APOLLOLA

Re: [U-Boot] [PATCH v5 101/101] x86: Add chromebook_coral

2019-12-02 Thread Bin Meng
Hi Simon, On Mon, Nov 25, 2019 at 12:12 PM Simon Glass wrote: > > Add support for coral which is a range of Apollo Lake-based Chromebook > released in 2017. This also includes reef released in 2016, since it is > based on the same SoC. > > Signed-off-by: Simon Glass > --- > > Changes in v5: > -

Re: [U-Boot] [PATCH v4 2/2] cmd: Add dtimg command

2019-12-02 Thread Eugeniu Rosca
Dear Igor and Sam, Cc: Tom, Simon On Mon, Nov 18, 2019 at 10:27:32PM +0100, Eugeniu Rosca wrote: > Hello Igor, hello Sam, > > We still have high hopes getting your response to > https://patchwork.ozlabs.org/patch/958594/#2302310 > > If not given, we will proceed with implementing the proposal fr

Re: [U-Boot] [PATCH v1 00/20] Enable ARM Trusted Firmware for U-Boot

2019-12-02 Thread Simon Goldschmidt
On Mon, Dec 2, 2019 at 3:08 PM Ang, Chee Hong wrote: > > > On Mon, Dec 2, 2019 at 2:38 PM Ang, Chee Hong > > wrote: > > > > > > > On Mon, Dec 2, 2019 at 11:25 AM wrote: > > > > > > > > > > From: "Ang, Chee Hong" > > > > > > > > > > New U-boot flow with ARM Trusted Firmware (ATF) support: > > >

[U-Boot] [PATCH] iminfo: add missing map_sysmem

2019-12-02 Thread Philippe Reynes
The command iminfo fails on sandbox because the address is used directly. To fix this issue, we call the function map_sysmem to translate the address. Signed-off-by: Philippe Reynes --- cmd/bootm.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/cmd/bootm.c b/cmd

Re: [U-Boot] [PULL] Pull request: u-boot-stm32 u-boot-stm32-20191126

2019-12-02 Thread Tom Rini
On Wed, Nov 27, 2019 at 01:42:24PM +, Patrick DELAUNAY wrote: > Hi Tom > > Please pull the STM32 related patches for u-boot-stm32-20191126 > > With the following changes: > - Solve warning for stih410-b2260 > - Device tree alignment on v5.4-rc4 for all stm32 boards > - Correct the eMMC pin c

Re: [U-Boot] pull request u-boot-mpc85xx

2019-12-02 Thread Tom Rini
On Tue, Nov 26, 2019 at 04:49:39AM +, Priyanka Jain wrote: > Dear Tom, > > Please find my pull-request for u-boot-mpc85xx/master > https://travis-ci.org/p-priyanka-jain/u-boot/builds/616526169 > > Summary > powerpc: Fix DM_MMC related build warnings by adding > eSDHC device module support fo

Re: [U-Boot] Please pull mmc-11-27-2019

2019-12-02 Thread Tom Rini
On Thu, Nov 28, 2019 at 01:20:07AM +, Peng Fan wrote: > Hi Tom, > > Please pull mmc-11-27-2019 > CI: https://travis-ci.org/MrVan/u-boot/builds/617615361 > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-

Re: [U-Boot] [PULL] u-boot-socfpga/master

2019-12-02 Thread Tom Rini
On Thu, Nov 28, 2019 at 11:17:58AM +0100, Marek Vasut wrote: > The following changes since commit 9a0cbae22a613dfd55e15565785749b74c19fdf0: > > Merge tag 'u-boot-rockchip-20191124' of > https://gitlab.denx.de/u-boot/custodians/u-boot-rockchip (2019-11-23 > 20:50:11 -0500) > > are available in

Re: [U-Boot] [PULL] u-boot-usb/master

2019-12-02 Thread Tom Rini
On Thu, Nov 28, 2019 at 11:17:36AM +0100, Marek Vasut wrote: > The following changes since commit 9a0cbae22a613dfd55e15565785749b74c19fdf0: > > Merge tag 'u-boot-rockchip-20191124' of > https://gitlab.denx.de/u-boot/custodians/u-boot-rockchip (2019-11-23 > 20:50:11 -0500) > > are available in

Re: [U-Boot] [PATCH v1 00/20] Enable ARM Trusted Firmware for U-Boot

2019-12-02 Thread Ang, Chee Hong
> On Mon, Dec 2, 2019 at 3:08 PM Ang, Chee Hong > wrote: > > > > > On Mon, Dec 2, 2019 at 2:38 PM Ang, Chee Hong > > > > > > wrote: > > > > > > > > > On Mon, Dec 2, 2019 at 11:25 AM wrote: > > > > > > > > > > > > From: "Ang, Chee Hong" > > > > > > > > > > > > New U-boot flow with ARM Trusted Fi

Re: [U-Boot] [PATCH v1 00/20] Enable ARM Trusted Firmware for U-Boot

2019-12-02 Thread Simon Goldschmidt
On Mon, Dec 2, 2019 at 4:18 PM Ang, Chee Hong wrote: > > > On Mon, Dec 2, 2019 at 3:08 PM Ang, Chee Hong > > wrote: > > > > > > > On Mon, Dec 2, 2019 at 2:38 PM Ang, Chee Hong > > > > > > > > wrote: > > > > > > > > > > > On Mon, Dec 2, 2019 at 11:25 AM wrote: > > > > > > > > > > > > > > From: "

Re: [U-Boot] [PATCH] arm: dts: bcm283x: Allow UARTs to work before relocation

2019-12-02 Thread Tom Rini
On Sun, Dec 01, 2019 at 07:33:56PM -0700, Simon Glass wrote: > At present the pinctrl nodes are not enabled in pre-relocation U-Boot so > the UARTs do not correctly select the pinconfig to enable the UART pins. > Fix this so that the U-Boot banner is printed. > > Signed-off-by: Simon Glass > Fix

[U-Boot] [PATCHv2] blk: Make use of CONFIG_HAVE_BLOCK_DEVICE more

2019-12-02 Thread Tom Rini
When we do not have CONFIG_BLK (or SPL/TPL) enabled there are very few cases where we need the blk_legacy code linked in. To catch these, build when we have CONFIG_HAVE_BLOCK_DEVICE set. In addition, we only need cmd/blk_common.o to be linked in when we have CONFIG_HAVE_BLOCK_DEVICE set, so make u

Re: [U-Boot] [PATCH v2] spl: Allow cache drivers to be used in SPL

2019-12-02 Thread Tom Rini
On Fri, Nov 29, 2019 at 09:59:26AM +0800, Ley Foon Tan wrote: > Add an option for building cache drivers in SPL. > > Signed-off-by: Ley Foon Tan > Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Bo

Re: [U-Boot] [PATCH] test.py: Make search for autoconf.mk more permission

2019-12-02 Thread Stephen Warren
On 12/1/19 7:34 PM, Simon Glass wrote: Buildman doesn't store this file in the same directory as a normal build. Update the conftest code to handle both cases. Shouldn't we just fix buildman so that it puts the files in the standard locations? That way, we don't have to separately update every

Re: [U-Boot] One u-boot.bin for Raspberry PI 3 and 4 - possible?

2019-12-02 Thread Matthias Brugger
Hi Geoff, On 03/10/2019 03:44, Geoff Williams wrote: >> And with a U-Boot based on f5c626c64874d6e1482edf4a76aa22e5e54be63d without >> my >> patches you see correct behavior? > > The screen turning off issue was caused by a deployment script copying the > wrong > u-boot binary to the SD card! T

Re: [U-Boot] [PATCH v1 00/20] Enable ARM Trusted Firmware for U-Boot

2019-12-02 Thread Ang, Chee Hong
> On Mon, Dec 2, 2019 at 4:18 PM Ang, Chee Hong > wrote: > > > > > On Mon, Dec 2, 2019 at 3:08 PM Ang, Chee Hong > > > > > > wrote: > > > > > > > > > On Mon, Dec 2, 2019 at 2:38 PM Ang, Chee Hong > > > > > > > > > > wrote: > > > > > > > > > > > > > On Mon, Dec 2, 2019 at 11:25 AM > wrote: > > >

[U-Boot] [PATCH] cmd: cp: add missing map_sysmem

2019-12-02 Thread Philippe Reynes
The command cp fails on sandbox because the address is used directly. To fix this issue, we call the function map_sysmem to translate the address. Signed-off-by: Philippe Reynes --- cmd/mem.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/cmd/mem.c b/cmd/me

Re: [U-Boot] [NXP-IMX] please pull imx-master-11-21

2019-12-02 Thread Stefano Babic
On 22/11/19 07:42, Peng Fan wrote: > Hi Stefano, > > Please pull imx-master-11-21, based on imx/master. > CI: https://travis-ci.org/MrVan/u-boot/builds/614830163 > > > i.mx6qp noc settings > i.mx7ulp update and artists com board support > -

Re: [U-Boot] [PATCH v2 1/8] image: android: Add functions for handling dtb field

2019-12-02 Thread Sam Protsenko
Hi Eugeniu, On Tue, Oct 29, 2019 at 3:49 AM Eugeniu Rosca wrote: > > Hi Sam, > > On Wed, Oct 23, 2019 at 05:34:20PM +0300, Sam Protsenko wrote: > > Android Boot Image v2 adds "DTB" payload (and corresponding field in the > > image header). Provide functions for its handling: > > I believe this to

Re: [U-Boot] [NXP-IMX] please pull imx-master-11-21

2019-12-02 Thread Fabio Estevam
Hi Stefano, On Mon, Dec 2, 2019 at 2:04 PM Stefano Babic wrote: > About mx7ulp (and warp7, > > Tom has merged this one: > > commit a09fea1d28fe3c69a64bee092f5a764274d26ca2 > Author: Tom Rini > Date: Mon Nov 18 20:02:10 2019 -0500 > > env: Finish migration of common ENV options > > This dr

Re: [U-Boot] [PATCH v2 7/8] env: ti: boot: Boot Android with dynamic partitions

2019-12-02 Thread Sam Protsenko
Hi Tom, On Sun, Nov 3, 2019 at 4:35 PM Tom Rini wrote: > > On Wed, Oct 23, 2019 at 05:34:26PM +0300, Sam Protsenko wrote: > > > Changes: > > - use boot.img instead of boot_fit.img > > - use .dtb from boot.img v2 > > - implement recovery boot > > - always boot ramdisk from boot.img, we can

Re: [U-Boot] [NXP-IMX] please pull imx-master-11-21

2019-12-02 Thread Stefano Babic
On 02/12/19 18:28, Fabio Estevam wrote: > Hi Stefano, > > On Mon, Dec 2, 2019 at 2:04 PM Stefano Babic wrote: > >> About mx7ulp (and warp7, >> >> Tom has merged this one: >> >> commit a09fea1d28fe3c69a64bee092f5a764274d26ca2 >> Author: Tom Rini >> Date: Mon Nov 18 20:02:10 2019 -0500 >> >>

Re: [U-Boot] [NXP-IMX] please pull imx-master-11-21

2019-12-02 Thread Fabio Estevam
Hi Stefano, On Mon, Dec 2, 2019 at 2:40 PM Stefano Babic wrote: > I am fine, thanks. Excellent! Please ping me when all my i.MX7ULP patches have been applied to your tree and then I will submit an updated version of the i.MX7ULP Embedded Artists board patch. Thanks! __

  1   2   >