[U-Boot] [PATCH v2] mmc: correct the HS400 initialization process

2019-03-25 Thread BOUGH CHEN
After the commit b9a2a0e2e9c0 ("mmc: Add support for downgrading HS200/HS400 to HS mode"), it add a parameter in mmc_set_card_speed() which indicates that the HS200/HS400 to HS downgrade is happening. During the HS400 initialization, first select to HS200, and config the related clock rate, then d

Re: [U-Boot] saveenv corrupts QSPI flash with latest commit U-Boot 2019.04-rc4-00047-gcfb3e102c4

2019-03-25 Thread Vignesh Raghavendra
On 26/03/19 10:36 AM, Ashish Kumar wrote: > Hello Maintainers, > >   > > With latest commit I see that saveenv command corrupts QSPI-flash, > meaning if I read QSPI-flash at 0x0 offset RCW(reset configuration word) > is erased after saveenv command was executed. > > This is tested on LS1088ARD

Re: [U-Boot] [PATCH v2] spi: cadence_qspi: Add quad write support

2019-03-25 Thread Ley Foon Tan
On Mon, Mar 25, 2019 at 6:54 PM Marek Vasut wrote: > > On 3/25/19 6:24 AM, Ley Foon Tan wrote: > > On Mon, Mar 4, 2019 at 8:24 PM Jagan Teki > > wrote: > >> > >> On Wed, Feb 27, 2019 at 11:06 AM Ley Foon Tan > >> wrote: > >>> > >>> Use quad write if SPI_TX_QUAD flag is set. > >>> > >>> Tested

[U-Boot] saveenv corrupts QSPI flash with latest commit U-Boot 2019.04-rc4-00047-gcfb3e102c4

2019-03-25 Thread Ashish Kumar
Hello Maintainers, With latest commit I see that saveenv command corrupts QSPI-flash, meaning if I read QSPI-flash at 0x0 offset RCW(reset configuration word) is erased after saveenv command was executed. This is tested on LS1088ARDB, but it should not be limited to LS1088ARDB rather it will va

[U-Boot] [PATCH 1/1] efi_loader: sanity checks when freeing memory

2019-03-25 Thread Heinrich Schuchardt
Use a checksum to validate that efi_free_pool() is only called for memory allocated by efi_allocated_pool(). Add a plausibility check to efi_free_pages() checking that the address passed is page aligned. Update related function comments to match Sphinx style. Signed-off-by: Heinrich Schuchardt

[U-Boot] [PATCH 1/1] efi_selftest: avoid double free in dp utilities test

2019-03-25 Thread Heinrich Schuchardt
Avoid duplicate FreePool() in unit test for the device patch utilities protocol. Signed-off-by: Heinrich Schuchardt --- lib/efi_selftest/efi_selftest_devicepath_util.c | 5 - 1 file changed, 5 deletions(-) diff --git a/lib/efi_selftest/efi_selftest_devicepath_util.c b/lib/efi_selftest/efi_

Re: [U-Boot] [PATCH] Revert "arm: config: fix default console only to specify the device"

2019-03-25 Thread Seung-Woo Kim
Hello Anand, > -Original Message- > From: Anand Moon [mailto:linux.am...@gmail.com] > Sent: Monday, March 25, 2019 3:45 PM > To: Seung-Woo Kim > Cc: U-Boot Mailing List; Lukasz Majewski > Subject: Re: [U-Boot] [PATCH] Revert "arm: config: fix default console only > to specify the device"

[U-Boot] [PATCH v2 2/3] usb: ehci: ppc: adopt 32 bit address

2019-03-25 Thread Yinbo Zhu
From: Yinbo Zhu This patch is to adopt 32 bit address for ppc Signed-off-by: Yinbo Zhu --- drivers/usb/host/ehci-fsl.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c index 23e7e7125f..b8f8e7a794 100644 ---

[U-Boot] [PATCH v2 1/3] ppc: t2080qds: add usb node

2019-03-25 Thread Yinbo Zhu
From: Yinbo Zhu This patch is to add usb node for t2080qds Signed-off-by: Yinbo Zhu --- Change in v2: add York Sun for reviewing the patches set. arch/powerpc/dts/t2080.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/powerpc/dts/t2080.dtsi b

[U-Boot] [PATCH v2 3/3] configs: enable usb device module in T2080QDS

2019-03-25 Thread Yinbo Zhu
From: Yinbo Zhu This patch is to enable usb DM for T2080QDS in uboot Signed-off-by: Yinbo Zhu --- configs/T2080QDS_NAND_defconfig | 1 + configs/T2080QDS_SDCARD_defconfig | 1 + configs/T2080QDS_SECURE_BOOT_defconfig| 1 + configs/T2080QDS_SPIFLASH_defconfig | 1 +

[U-Boot] [PATCH v2 5/5] configs: enable eSDHC device module in T2080QDS

2019-03-25 Thread Yinbo Zhu
From: Yinbo Zhu This patch is to enable MMC DM for T2080QDS in uboot Signed-off-by: Yinbo Zhu --- configs/T2080QDS_NAND_defconfig | 3 +++ configs/T2080QDS_SDCARD_defconfig | 3 +++ configs/T2080QDS_SECURE_BOOT_defconfig| 3 +++ configs/T2080QDS_SPIFLASH_defconfig |

[U-Boot] [PATCH v2 3/5] mmc: fsl_esdhc: ppc: adopt 32 bit address

2019-03-25 Thread Yinbo Zhu
From: Yinbo Zhu This patch is to adopt 32 bit address for ppc Signed-off-by: Yinbo Zhu --- drivers/mmc/fsl_esdhc.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index a65e5c19db..e5f84debad 100644 --- a/drivers/mmc/fsl

[U-Boot] [PATCH v2 4/5] configs: enable device tree support for T2080QDS

2019-03-25 Thread Yinbo Zhu
From: Yinbo Zhu This patch is to enable device tree support for T2080QDS Signed-off-by: Yinbo Zhu --- configs/T2080QDS_SECURE_BOOT_defconfig| 2 ++ configs/T2080QDS_SRIO_PCIE_BOOT_defconfig | 3 +++ 2 files changed, 5 insertions(+) diff --git a/configs/T2080QDS_SECURE_BOOT_defconfig b/co

[U-Boot] [PATCH v2 1/5] ppc: t2080qds: add eSDHC node

2019-03-25 Thread Yinbo Zhu
From: Yinbo Zhu This patch is to add eSDHC node for t2080qds Signed-off-by: Yinbo Zhu --- Change in v2: add York sun for reviewing the patches set arch/powerpc/dts/t2080.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/powerpc/dts/t2080.dtsi b/arch/po

[U-Boot] [PATCH v2 2/5] mmc: fsl_esdhc: ppc: set sdhc clock

2019-03-25 Thread Yinbo Zhu
From: Yinbo Zhu This patch is to set sdhc clock for ppc Signed-off-by: Yinbo Zhu --- drivers/mmc/fsl_esdhc.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index 9e34557d16..a65e5c19db 100644 --- a/drivers/mmc/fsl_es

Re: [U-Boot] [REGRESSION: PATCH 34/34] drivers/net/fec: phy_init: remove redundant logic

2019-03-25 Thread Lukasz Majewski
Hi Marcel, > Hi Stefano > > On Wed, 2019-03-13 at 08:28 +, sba...@denx.de wrote: > > > The phy_connect_dev(...) function from phy.c does all the handling > > > (inclusive catching fixed-link). > > > So we drop here the single steps and call just > > > phy_connect_dev(...). > > > Signed-off-by

Re: [U-Boot] [PATCH] pico-imx7: Disable video support

2019-03-25 Thread Fabio Estevam
Hi Michael, On Mon, Mar 25, 2019 at 1:56 PM Fabio Estevam wrote: > U-Boot 2019.04-rc4-00047-gcfb3e102c4 (Mar 23 2019 - 10:45:10 -0300) > > CPU: Freescale i.MX7D rev1.2 1000 MHz (running at 792 MHz) > CPU: Commercial temperature grade (0C to 95C) at 40C > Reset cause: POR > Board: i.MX7D PICO

Re: [U-Boot] mmc: Align MMC_TRACE with tiny printf

2019-03-25 Thread Tom Rini
On Sat, Mar 23, 2019 at 06:54:45PM +0100, Marek Vasut wrote: > The tiny printf implementation only supports %x format specifier, > it does not support %X . Since it makes little difference whether > the debug output prints hex numbers in capitals or not, change it > to %x and make the MMC_TRACE ou

Re: [U-Boot] scripts/Makefile.extrawarn: Silence more DTC warnings

2019-03-25 Thread Tom Rini
On Fri, Mar 22, 2019 at 09:47:39AM -0400, Tom Rini wrote: > While our "extrawarns" logic has gotten out of sync with upstream > Kbuild, for now lets start by bringing in the latest set of DTC_FLAGS > from the Linux Kernel 5.0 to match their behavior in silencing warnings > from dtc. > > Cc: Masah

Re: [U-Boot] rsa: check that pointer checksum isn't NULL before using it

2019-03-25 Thread Tom Rini
On Tue, Mar 19, 2019 at 10:55:40AM +0100, Philippe Reynes wrote: > The pointer checksum were used before checking that it > isn't NULL. We move the code that use it after the check. > > Reported-by: Coverity (CID: 185835) > Signed-off-by: Philippe Reynes > Reviewed-by: Simon Glass Applied to u

Re: [U-Boot] Revert "cmd: Kconfig: Do not include EEPROM if DM_I2C is used without DM_I2C_COMPAT"

2019-03-25 Thread Simon Goldschmidt
On 25.03.19 18:17, Tom Rini wrote: On Mon, Mar 25, 2019 at 05:42:13PM +0100, Simon Goldschmidt wrote: Tom Rini schrieb am Mo., 25. März 2019, 16:43: On Thu, Mar 14, 2019 at 09:57:42PM +0100, Simon Goldschmidt wrote: This reverts commit 65a97e7fcf54feb7c4ebe1aee8a572830af4cf51. The 'eepro

[U-Boot] [RFC PATCH 2/2] board: ti: am654: select SYS_ARCH_IS_COHERENT for arm64

2019-03-25 Thread Vignesh Raghavendra
AM654 SoC is IO coherent wrt A53 cores, therefore enable SYS_ARCH_IS_COHERENT to avoid cache operations in A53 SPL/U-Boot. Signed-off-by: Vignesh Raghavendra --- board/ti/am65x/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/board/ti/am65x/Kconfig b/board/ti/am65x/Kconfig index d4b36

[U-Boot] [RFC PATCH 0/2] Add Kconfig to disable cache ops

2019-03-25 Thread Vignesh Raghavendra
This series adds a Kconfig to disable cache maintenance operations on a coherent architectures. And disable cache flush/invalidate ops for SPL/U-Boot code running on A53 core of AM654 SoC(which is IO coherent) Vignesh Raghavendra (2): arch: armv8: Provide a way to disable cache maintenance ops

[U-Boot] [RFC PATCH 1/2] arch: armv8: Provide a way to disable cache maintenance ops

2019-03-25 Thread Vignesh Raghavendra
On AM654 SoC(arm64) which is IO coherent and has L3 Cache, cache maintenance operations being done to support non-coherent platforms causes issues. For example, here is how U-Boot prepares/handles a buffer to receive data from a device (DMA Write). This may vary slightly depending on the driver fr

Re: [U-Boot] Revert "cmd: Kconfig: Do not include EEPROM if DM_I2C is used without DM_I2C_COMPAT"

2019-03-25 Thread Tom Rini
On Mon, Mar 25, 2019 at 05:42:13PM +0100, Simon Goldschmidt wrote: > Tom Rini schrieb am Mo., 25. März 2019, 16:43: > > > On Thu, Mar 14, 2019 at 09:57:42PM +0100, Simon Goldschmidt wrote: > > > > > This reverts commit 65a97e7fcf54feb7c4ebe1aee8a572830af4cf51. > > > > > > The 'eeprom' command has

Re: [U-Boot] [PATCH] pico-imx7: Disable video support

2019-03-25 Thread Michael Nazzareno Trimarchi
Hi On Mon, Mar 25, 2019 at 5:56 PM Fabio Estevam wrote: > > Hi Michael, > > On Mon, Mar 25, 2019 at 1:51 PM Michael Nazzareno Trimarchi > wrote: > > > Let me summarize ;). Do you have any reset from the tool? does it > > sends everything > > using usb? Does SPL log appear and the stop? > > Here

Re: [U-Boot] [PATCH] pico-imx7: Disable video support

2019-03-25 Thread Fabio Estevam
Hi Michael, On Mon, Mar 25, 2019 at 1:51 PM Michael Nazzareno Trimarchi wrote: > Let me summarize ;). Do you have any reset from the tool? does it > sends everything > using usb? Does SPL log appear and the stop? Here is the way to send SPL and u-boot.img via imx usb loader: $ sudo ./imx_usb S

[U-Boot] [PATCH v2 00/22] colibri vybrid fixes, device tree enablement and driver model conversion

2019-03-25 Thread Marcel Ziswiler
This series addresses some shortcomings, enables/introduces device tree support and converts all except video to using the driver model. This is fully tested both running our latest downstream BSP as well as the mainline Linux kernel. This series is based on Lukasz' previous work on Vybrid [1] an

[U-Boot] [PATCH v2 07/22] configs: move CONFIG_MXC_OCOTP to Kconfig

2019-03-25 Thread Marcel Ziswiler
From: Marcel Ziswiler While commit 3e020f03e94f ("driver: misc: add MXC_OCOTP Kconfig entry") introduced a Kconfig entry it did not actually migrate all configurations to using it. As CONFIG_MXC_OCOTP was in mx{6/7}_common.h enable it by default on those architectures. Additionally, also enable

Re: [U-Boot] [PATCH] pico-imx7: Disable video support

2019-03-25 Thread Michael Nazzareno Trimarchi
Hi On Mon, Mar 25, 2019 at 5:48 PM Fabio Estevam wrote: > > Hi Michael, > > On Mon, Mar 25, 2019 at 1:38 PM Michael Nazzareno Trimarchi > wrote: > > > + /* Perform DDR DRAM calibration */ > > + udelay(100); > > + mmdc_do_write_level_calibration(&ddr_sysinfo); > > + mmdc_d

Re: [U-Boot] [PATCH] pico-imx7: Disable video support

2019-03-25 Thread Fabio Estevam
Hi Michael, On Mon, Mar 25, 2019 at 1:38 PM Michael Nazzareno Trimarchi wrote: > + /* Perform DDR DRAM calibration */ > + udelay(100); > + mmdc_do_write_level_calibration(&ddr_sysinfo); > + mmdc_do_dqs_calibration(&ddr_sysinfo); Thanks for the suggestion, but this is i.M

Re: [U-Boot] Revert "cmd: Kconfig: Do not include EEPROM if DM_I2C is used without DM_I2C_COMPAT"

2019-03-25 Thread Simon Goldschmidt
Tom Rini schrieb am Mo., 25. März 2019, 16:43: > On Thu, Mar 14, 2019 at 09:57:42PM +0100, Simon Goldschmidt wrote: > > > This reverts commit 65a97e7fcf54feb7c4ebe1aee8a572830af4cf51. > > > > The 'eeprom' command has been converted to work with DM_I2C in a patch > > submitted around the same time

Re: [U-Boot] [PATCH v1] ARM: dts: i.MX6Q: fix avoid_unnecessary_addr_size warnings

2019-03-25 Thread Fabio Estevam
Hi Marcel, On Mon, Mar 25, 2019 at 1:36 PM Marcel Ziswiler wrote: > diff --git a/arch/arm/dts/imx6q.dtsi b/arch/arm/dts/imx6q.dtsi > index ab1716b6b0..8381d24eff 100644 > --- a/arch/arm/dts/imx6q.dtsi > +++ b/arch/arm/dts/imx6q.dtsi > @@ -234,6 +234,8 @@ > }; > >

Re: [U-Boot] [PATCH] pico-imx7: Disable video support

2019-03-25 Thread Michael Nazzareno Trimarchi
Hi On Mon, Mar 25, 2019 at 5:37 PM Fabio Estevam wrote: > > Hi Michael, > > On Mon, Mar 25, 2019 at 1:29 PM Michael Nazzareno Trimarchi > wrote: > > > Can you use ddr calibration instead of fixed value? Does this happen before > > migration to DT > > Yes, this happens before migration to DM. > >

[U-Boot] [PATCH v1] apalis/colibri_imx6: add device trees to makefile

2019-03-25 Thread Marcel Ziswiler
From: Marcel Ziswiler Add device trees to Makefile to avoid newly introduced error: Device Tree Source is not correctly specified. Please define 'CONFIG_DEFAULT_DEVICE_TREE' or build with 'DEVICE_TREE=' argument make[1]: *** [dts/Makefile:28: arch/arm/dts/imx6-apalis.dtb] Error 1 make: *** [Mak

Re: [U-Boot] [PATCH] pico-imx7: Disable video support

2019-03-25 Thread Fabio Estevam
Hi Michael, On Mon, Mar 25, 2019 at 1:29 PM Michael Nazzareno Trimarchi wrote: > Can you use ddr calibration instead of fixed value? Does this happen before > migration to DT Yes, this happens before migration to DM. I am not sure how I can use DDR calibration instead of fixed value. Would you

[U-Boot] [PATCH v1] ARM: dts: i.MX6Q: fix avoid_unnecessary_addr_size warnings

2019-03-25 Thread Marcel Ziswiler
From: Marcel Ziswiler This fixes the following warnings: w+arch/arm/dts/imx6-apalis.dtb: Warning (reg_format): /soc/ipu@280/ port@2/endpoint@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) w+arch/arm/dts/imx6-apalis.dtb: Warning (reg_format): /soc/ipu@2

[U-Boot] [PATCH v2 18/22] config: colibri_vf: enable mtd partitions via dt

2019-03-25 Thread Marcel Ziswiler
From: Stefan Agner Use device tree to set MTD partitions of the NAND chip. Signed-off-by: Stefan Agner Acked-by: Marcel Ziswiler Reviewed-by: Igor Opaniuk --- Changes in v2: None configs/colibri_vf_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/colibri_vf_defconfig

[U-Boot] [PATCH v2 09/22] configs: colibri_vf: disable obscure options

2019-03-25 Thread Marcel Ziswiler
From: Marcel Ziswiler Disable more obscure options to save another 26 KB in preparation of the upcoming driver model migration. Signed-off-by: Marcel Ziswiler --- Changes in v2: None configs/colibri_vf_defconfig | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/c

[U-Boot] [PATCH v2 04/22] configs: move CONFIG_USB_EHCI_VF to Kconfig

2019-03-25 Thread Marcel Ziswiler
From: Marcel Ziswiler Move CONFIG_USB_EHCI_VF to drivers/usb/host/Kconfig and update the one and only user thereof being colibri_vf. Signed-off-by: Marcel Ziswiler Reviewed-by: Igor Opaniuk --- Changes in v2: None drivers/usb/host/Kconfig | 7 +++ include/configs/colibri_vf.h | 1 -

[U-Boot] [PATCH v2 16/22] colibri_vf: enable user debug by default

2019-03-25 Thread Marcel Ziswiler
From: Stefan Agner Let the kernel print some debug messages when a user program crashes due to an exception. Signed-off-by: Stefan Agner Acked-by: Marcel Ziswiler Reviewed-by: Igor Opaniuk --- Changes in v2: None include/configs/colibri_vf.h | 2 +- 1 file changed, 1 insertion(+), 1 delet

[U-Boot] [PATCH v2 21/22] colibri_vf: use leveling evaluated by DDR validation tools

2019-03-25 Thread Marcel Ziswiler
From: Stefan Agner The DDR validation tool (which is part of Processor Expert) allows to evaluate leveling parameters for CR105/CR106/CR110. Several runs have been made with Colibri VF50 and VF61 and it seems to evaluate very similar values. Use this values by default. Note: The newly evaluated

[U-Boot] [PATCH v2 17/22] colibri_vf: disable undefined instruction events in user debug

2019-03-25 Thread Marcel Ziswiler
From: Stefan Agner It turns out that OpenSSL calls undefined instructions to detect ARM capabilities at runtime (via SIGILL handler). This leads to stack traces e.g. when logging in using SSH: [ 877.464442] sshd (613): undefined instruction: pc=76ee2da8 ... Disable undefined instruction eve

[U-Boot] [PATCH v2 12/22] config: colibri_vf: use macros from linux/sizes.h

2019-03-25 Thread Marcel Ziswiler
From: Marcel Ziswiler Use SZ_X{MK} macros from linux/sizes.h for include/configs/colibri_vf.h. Signed-off-by: Marcel Ziswiler Reviewed-by: Igor Opaniuk --- Changes in v2: None include/configs/colibri_vf.h | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/co

[U-Boot] [PATCH v2 20/22] colibri_vf: adjust timing according to data sheet

2019-03-25 Thread Marcel Ziswiler
From: Stefan Agner Using the DDR Validation tool in Processor Expert uncovered two timing inconsistencies. Since those timings are related to the suspend mode they do not affect or change regular memory behaviour. Signed-off-by: Stefan Agner Acked-by: Marcel Ziswiler --- Changes in v2: None

[U-Boot] [PATCH v2 22/22] colibri_vf: fix sdboot for vybrid modules

2019-03-25 Thread Marcel Ziswiler
From: Gerard Salvatella Currently, Vybrid's sdboot variable tries to load the kernel from /boot of the root partition (typically second partition when using the sdcard image). However, since we moved to flash the kernel in a separate UBI volume, we no longer deploy the kernel/device tree to /boot

[U-Boot] [PATCH v2 19/22] arm: vf610: add uart2 clock/pinmux support

2019-03-25 Thread Marcel Ziswiler
From: Stefan Agner Add support for Vybrid's UART2 (Colibri UART_B). Signed-off-by: Stefan Agner Acked-by: Marcel Ziswiler --- Changes in v2: None arch/arm/include/asm/arch-vf610/crm_regs.h| 1 + arch/arm/include/asm/arch-vf610/iomux-vf610.h | 6 +- 2 files changed, 6 insertions(+),

Re: [U-Boot] [PATCH] pico-imx7: Disable video support

2019-03-25 Thread Michael Nazzareno Trimarchi
Hi On Mon, Mar 25, 2019 at 4:25 PM Fabio Estevam wrote: > > Hi Michael, > > On Sat, Mar 23, 2019 at 7:19 PM Michael Nazzareno Trimarchi > wrote: > > > Are you sure about memory calibration? > > I couldn't spot an issue with regards to memory initialization. > > The interesting thing is that the

[U-Boot] [PATCH v2 15/22] colibri_vf: sync the board info message

2019-03-25 Thread Marcel Ziswiler
From: Bhuvanchandra DV Use similar info message as on other modules. Signed-off-by: Bhuvanchandra DV Acked-by: Marcel Ziswiler Reviewed-by: Igor Opaniuk --- Changes in v2: None board/toradex/colibri_vf/colibri_vf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bo

[U-Boot] [PATCH v2 13/22] colibri_vf: add distroboot support

2019-03-25 Thread Marcel Ziswiler
From: Stefan Agner Add support for distro boot. This is especially helpful for external devices. There is a global boot command which scans a predefined list of boot targets: run distro_bootcmd As well as direct boot commands such as: run bootcmd_mmc0 run bootcmd_usb run bootcmd_dhcp .

[U-Boot] [PATCH v2 08/22] ARM: dts: colibri_vf: update device trees

2019-03-25 Thread Marcel Ziswiler
From: Marcel Ziswiler Update device tree in preparation of further driver model migration: Ethernet FEC, ESDHC aka MMC/SD card, I2C, NFC aka NAND flash controller, USBH_PEN GPIO regulator. Add iomux resp. pinctrl entries to be removed from proprietary platform data: DSPI, ESDHC, FEC, I2C, NFC, U

[U-Boot] [PATCH v2 14/22] colibri_vf: set fdtfile for distroboot

2019-03-25 Thread Marcel Ziswiler
From: Stefan Agner Set fdtfile to represent the current board. This allows distribution to load the correct device tree, which in the module case often deviates from the common fallback ${soc}-${board}${boardver}.dtb... Signed-off-by: Stefan Agner Acked-by: Max Krummenacher Acked-by: Marcel Zi

[U-Boot] [PATCH v2 05/22] configs: colibri_vf: remove obsolete mmc/sd card environment

2019-03-25 Thread Marcel Ziswiler
From: Marcel Ziswiler Remove obsolete MMC/SD card environment configuration dating back to un-fused samples times. While at it also remove meanwhile spurious "USB Storage" comment. Signed-off-by: Marcel Ziswiler Reviewed-by: Igor Opaniuk --- Changes in v2: None include/configs/colibri_vf.

[U-Boot] [PATCH v2 10/22] colibri_vf: migrate pinctrl and regulators to dtb/dm

2019-03-25 Thread Marcel Ziswiler
From: Marcel Ziswiler Migrate pinctrl and regulators to device tree resp. driver model: DDR, DSPI, ENET, ESDHC, I2C, NFC and UART. Enable CMD_DM, PINCTRL and DM_REGULATOR. While at it also update copyright period and sort include files. Signed-off-by: Marcel Ziswiler --- Changes in v2: None

[U-Boot] [PATCH v2 06/22] configs: colibri_vf: limit size of malloc() pool before relocation

2019-03-25 Thread Marcel Ziswiler
From: Marcel Ziswiler Limit the size of the malloc() pool before relocation (SYS_MALLOC_F_LEN). Signed-off-by: Marcel Ziswiler Reviewed-by: Igor Opaniuk --- Changes in v2: None configs/colibri_vf_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/colibri_vf_defconfig b/c

[U-Boot] [PATCH v2 11/22] colibri_vf: migrate fec, esdhc, nfc and usb to driver model

2019-03-25 Thread Marcel Ziswiler
From: Marcel Ziswiler Migrate FEC, ESDHC, NFC and USB to driver model. While at it also do no longer enable optional I2C clock in board file as the generic clock code now handles this. Note for space reason and as it is not required just for booting we do not enable I2C in U-Boot by default. Wh

[U-Boot] [PATCH v2 02/22] vf610: ddrmc: add missing include

2019-03-25 Thread Marcel Ziswiler
From: Marcel Ziswiler The DDR memory controller include file for the Vybrid uses iomux_v3_cfg_t without actually including iomux-vf610.h. Signed-off-by: Marcel Ziswiler Reviewed-by: Igor Opaniuk --- Changes in v2: None arch/arm/include/asm/arch-vf610/ddrmc-vf610.h | 2 ++ 1 file changed, 2

[U-Boot] [PATCH v2 03/22] imx: bootaux: add dependency on vf610

2019-03-25 Thread Marcel Ziswiler
From: Marcel Ziswiler Allow using bootaux also on VF610 aka Vybrid. Signed-off-by: Marcel Ziswiler Reviewed-by: Igor Opaniuk --- Changes in v2: None arch/arm/mach-imx/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/K

[U-Boot] [PATCH v2 01/22] Add missing space in comment

2019-03-25 Thread Marcel Ziswiler
From: Marcel Ziswiler Spotted two missing spaces in comments. Signed-off-by: Marcel Ziswiler Reviewed-by: Igor Opaniuk --- Changes in v2: None board/freescale/imx8qxp_mek/imx8qxp_mek.c | 2 +- drivers/video/videomodes.c| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-

[U-Boot] [RESEND RFC PATCH v1] MLK-12883 usb: limit USB_MAX_XFER_BLK to 256

2019-03-25 Thread Marcel Ziswiler
From: Peng Fan For Some USB mass storage devices, such as: " - Kingston DataTraveler 2.0 001D7D06CF09B04199C7B3EA - Class: (from Interface) Mass Storage - PacketSize: 64 Configurations: 1 - Vendor: 0x0930 Product 0x6545 Version 1.16 " When `usb read 0x8000 0 0x2000`, we met "EHCI timed

[U-Boot] [PATCH v2 2/3] toradex: common: unify behaviour when config block is missing

2019-03-25 Thread Marcel Ziswiler
From: Bhuvanchandra DV If the config block is missing, various things may fail or behave strangely on certain modules. This patch unifies that behaviour by using a fake MAC address, until user updates the config block. Signed-off-by: Bhuvanchandra DV Acked-by: Marcel Ziswiler --- Changes in

[U-Boot] [PATCH v2 3/3] tdx-cfg-block: fix off by one issue

2019-03-25 Thread Marcel Ziswiler
From: Marcel Ziswiler Fix toradex_modules array off by one issue potentially leading to spurious printout during boot e.g. Model: Toradex V1.2A, instead of Model: Toradex UNKNOWN MODULE V1.2A. Signed-off-by: Marcel Ziswiler Acked-by: Max Krummenacher Reviewed-by: Igor Opaniuk ---

[U-Boot] [PATCH v2 0/3] toradex: common: fix/improve config block handling

2019-03-25 Thread Marcel Ziswiler
This series adds a -y parameter to cfgblock create command, unifies the behaviour when the config block is missing and fixes an off-by-one issue. Changes in v2: - Introduced a define for the Toradex OUI ("0x00142dUL") as suggested by Igor. - Removed redundant comment as suggested by Igor. Bhuv

[U-Boot] [PATCH v2 1/3] toradex: configblock: add an -y parameter to 'cfgblock create’

2019-03-25 Thread Marcel Ziswiler
From: Dominik Sliwa Add an optional -y parameter to 'cfgblock create’ to simplify automation. Signed-off-by: Dominik Sliwa Acked-by: Stefan Agner Acked-by: Marcel Ziswiler Reviewed-by: Igor Opaniuk --- Changes in v2: None board/toradex/common/tdx-cfg-block.c | 39 ++--

[U-Boot] [REGRESSION: PATCH 34/34] drivers/net/fec: phy_init: remove redundant logic

2019-03-25 Thread Marcel Ziswiler
Hi Stefano On Wed, 2019-03-13 at 08:28 +, sba...@denx.de wrote: > > The phy_connect_dev(...) function from phy.c does all the handling > > (inclusive catching fixed-link). > > So we drop here the single steps and call just > > phy_connect_dev(...). > > Signed-off-by: Hannes Schmelzer > > > >

Re: [U-Boot] Revert "cmd: Kconfig: Do not include EEPROM if DM_I2C is used without DM_I2C_COMPAT"

2019-03-25 Thread Tom Rini
On Thu, Mar 14, 2019 at 09:57:42PM +0100, Simon Goldschmidt wrote: > This reverts commit 65a97e7fcf54feb7c4ebe1aee8a572830af4cf51. > > The 'eeprom' command has been converted to work with DM_I2C in a patch > submitted around the same time as this commit: > commit 0c07a9b4078d ("eeprom: Add device

Re: [U-Boot] [PATCH] pico-imx7: Disable video support

2019-03-25 Thread Fabio Estevam
Hi Michael, On Sat, Mar 23, 2019 at 7:19 PM Michael Nazzareno Trimarchi wrote: > Are you sure about memory calibration? I couldn't spot an issue with regards to memory initialization. The interesting thing is that the hang does not happen when booting from eMMC. I can only see it when booting

[U-Boot] [PATCHv3 4/6] dm: cache: add the pl310 cache controller driver

2019-03-25 Thread Dinh Nguyen
Add a PL310 cache controller driver that is usually found on ARMv7(32-bit) devices. The driver configures the cache settings that can be found in the device tree files. This initial revision only configures basic settings(data & instruction prefetch, shared-override, data & tag latency). I believe

[U-Boot] [PATCHv3 5/6] ARM: socfpga: use the pl310 driver to configure the cache

2019-03-25 Thread Dinh Nguyen
Find the UCLASS_CACHE driver to configure the cache controller's settings. Reviewed-by: Marek Vasut Reviewed-by: Simon Glass Signed-off-by: Dinh Nguyen --- arch/arm/mach-socfpga/misc.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/arch/arm/mach-socfpga/m

[U-Boot] [PATCHv3 3/6] dm: cache: Create a uclass for cache

2019-03-25 Thread Dinh Nguyen
The cache UCLASS will be used for configure settings that can be found in a CPU's L2 cache controller. Add a uclass and a test for cache. Signed-off-by: Dinh Nguyen --- v3: Add cache_get_info() to check for non-zero value Add comments to cache_info struct v2: separate out uclass patch from d

[U-Boot] [PATCHv3 6/6] configs: socfpga: add imply pl310 cache controller

2019-03-25 Thread Dinh Nguyen
Select the PL310 UCLASS_CACHE driver for SoCFPGA. Reviewed-by: Marek Vasut Reviewed-by: Simon Glass Signed-off-by: Dinh Nguyen --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index f42eccef80..f4c6262bb0 100644 --- a/arch/arm/Kconfig

[U-Boot] [PATCHv3 2/6] ARM: pl310: Add macro's for handling tag and data latency mask

2019-03-25 Thread Dinh Nguyen
Add the PL310 macros for latency control setup, read and write bits. Reviewed-by: Marek Vasut Reviewed-by: Simon Glass Signed-off-by: Dinh Nguyen --- arch/arm/include/asm/pl310.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/include/asm/pl310.h b/arch/arm/include/asm/pl310.h

[U-Boot] [PATCHv3 1/6] Documentation: dts: Add pl310 cache controller dts documentation

2019-03-25 Thread Dinh Nguyen
Linux commit 8ecd7f5970c5 ("ARM: 8483/1: Documentation: l2c: Rename l2cc to l2c2x0") Linux docs: Documentation/devicetree/bindings/arm/l2c2x0.txt Copied from Linux kernel v5.0. "The documentation in the l2cc.txt is specific to the L2 cache controllers L2C210/L2C220/L2C310 (also known as PL210/PL

[U-Boot] [PATCHv3 0/6] dm: cache: add dm cache driver

2019-03-25 Thread Dinh Nguyen
Hi, This is V3 of the series to add a UCLASS_CACHE dm driver to handling the configuration of cache settings. Place this new driver under /drivers/cache. In this initial revision, the driver is only configuring what I think are essential cache settings. The more comprehensive cache settings can be

Re: [U-Boot] [PATCH 08/11] Makefile.spl: Move generate AT91SAM NAND image boot.bin to spl directory

2019-03-25 Thread Eugen.Hristev
On 19.03.2019 17:56, Stefan Roese wrote: > External E-Mail > > > This patch moves the AT91SAM NAND booting SPL image "boot.bin" which > includes the ECC values from the root directory into the spl directory, > where all SPL related images are located. Hi Stefan, Yes, indeed, but someone may b

Re: [U-Boot] [PATCH 1/2] ARM: socfpga: Pull PL310 clearing into common code

2019-03-25 Thread Marek Vasut
On 3/25/19 2:51 PM, Dinh Nguyen wrote: > > > On 3/22/19 9:30 AM, Marek Vasut wrote: >> Pull the PL310 clearing code into common code, so it can be reused >> by Arria10. >> >> Signed-off-by: Marek Vasut >> Cc: Dalon Westergreen >> Cc: Dinh Nguyen >> --- >> arch/arm/mach-socfpga/include/mach/mi

Re: [U-Boot] [PATCH 03/11] serial: atmel_usart: Use fixed clock value in SPL version

2019-03-25 Thread Stefan Roese
On 25.03.19 15:27, eugen.hris...@microchip.com wrote: On 20.03.2019 09:30, Stefan Roese wrote: On 20.03.19 08:25, eugen.hris...@microchip.com wrote: On 19.03.2019 17:56, Stefan Roese wrote: External E-Mail This patch adds an alterative SPL version of atmel_serial_enable_clk(). This enab

[U-Boot] [PATCH] Makefile: Prioritize external dtb if defined

2019-03-25 Thread Michal Simek
Prioritize external dtb if its passed via EXT_DTB than the dtb that was built in the tree. With this patch it appends the specified external dtb to the u-boot image. Signed-off-by: Michal Simek Signed-off-by: Siva Durga Prasad Paladugu --- Makefile | 5 + 1 file changed, 5 insertions(+) d

[U-Boot] [PATCH] arm: zynq: Add an info message about post config

2019-03-25 Thread Michal Simek
From: Siva Durga Prasad Paladugu Post configuration cant be run at u-boot as u-boot didn't has any info about the design.So,this patch adds an info message that post config was not run and needs to be run manually if needed. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek

[U-Boot] [PATCH] arm64: zynqmp: Add idcode for new RFSoC silicon ZU39DR

2019-03-25 Thread Michal Simek
From: Siva Durga Prasad Paladugu This patch adds "zu39dr" to the list of zynqmp devices The zu39DR is the new RFSoC silicon with id value of 0x66. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- board/xilinx/zynqmp/zynqmp.c | 4 1 file changed, 4 insertions(+)

Re: [U-Boot] Adding F2FS support

2019-03-25 Thread Lukasz Majewski
Hi Juraj, > Hello, > > I've started to work on adding F2FS support to U-boot. > > After a quick search of the U-Boot mailing archives, I see that > support for multiple file systems, like ZFS was already added by > reusing existing GRUB code. > > F2FS was added to GRUB last year, in this commit

Re: [U-Boot] [PATCH 03/11] serial: atmel_usart: Use fixed clock value in SPL version

2019-03-25 Thread Eugen.Hristev
On 20.03.2019 09:30, Stefan Roese wrote: > > On 20.03.19 08:25, eugen.hris...@microchip.com wrote: >> >> >> On 19.03.2019 17:56, Stefan Roese wrote: >>> External E-Mail >>> >>> >>> This patch adds an alterative SPL version of atmel_serial_enable_clk(). >>> This enables the usage of this driver w

Re: [U-Boot] [PATCH 08/11] Makefile.spl: Move generate AT91SAM NAND image boot.bin to spl directory

2019-03-25 Thread Stefan Roese
On 25.03.19 15:22, eugen.hris...@microchip.com wrote: On 19.03.2019 17:56, Stefan Roese wrote: External E-Mail This patch moves the AT91SAM NAND booting SPL image "boot.bin" which includes the ECC values from the root directory into the spl directory, where all SPL related images are located

Re: [U-Boot] [PATCH v2] driver: net: update copyright info

2019-03-25 Thread Tom Rini
On Mon, Mar 25, 2019 at 10:12:12AM +, Pankaj Bansal wrote: > Update copyright info for the issues reported after running > check-legal test. > > Signed-off-by: Pankaj Bansal > --- > > Notes: > V2: > - Removed past tense from commit description and body > > drivers/net/fsl-mc/mc.c

[U-Boot] Adding F2FS support

2019-03-25 Thread Juraj Vijtiuk
Hello, I've started to work on adding F2FS support to U-boot. After a quick search of the U-Boot mailing archives, I see that support for multiple file systems, like ZFS was already added by reusing existing GRUB code. F2FS was added to GRUB last year, in this commit: http://git.savannah.gnu.org

Re: [U-Boot] [PATCH 1/2] ARM: socfpga: Pull PL310 clearing into common code

2019-03-25 Thread Dinh Nguyen
On 3/22/19 9:30 AM, Marek Vasut wrote: > Pull the PL310 clearing code into common code, so it can be reused > by Arria10. > > Signed-off-by: Marek Vasut > Cc: Dalon Westergreen > Cc: Dinh Nguyen > --- > arch/arm/mach-socfpga/include/mach/misc.h | 1 + > arch/arm/mach-socfpga/misc.c

Re: [U-Boot] [PATCH 5/5] pico-imx7d: Increase u-boot size for dfu request

2019-03-25 Thread Fabio Estevam
On Mon, Mar 25, 2019 at 9:52 AM Joris Offouga wrote: > > After DM conversion, the size of U-Boot binary to increase. > Previous size is 480K after DM Conversion the new size is 557K > So it's necessary to increase the dfu request for store u-boot-dtb.img in > eMMC. > > Signed-off-by: Joris Offoug

Re: [U-Boot] [PATCH 3/5] pico-imx7d: defconfig Enable DM gpio pinctrl and pinctrl_imx7

2019-03-25 Thread Fabio Estevam
On Mon, Mar 25, 2019 at 9:52 AM Joris Offouga wrote: > > This patch is necessary for convert this board to dm driver model > > DM GPIO requires gpio_request() to be called explicitly before > doing any gpio operation > > Signed-off-by: Joris Offouga Tested-by: Fabio Estevam

Re: [U-Boot] [PATCH 2/5] pico-imx7d: defconfig: Add DT file hooks

2019-03-25 Thread Fabio Estevam
On Mon, Mar 25, 2019 at 9:52 AM Joris Offouga wrote: > > This patch adds DT file hooks for Pico i.MX7D SOM and variant boards > > Signed-off-by: Joris Offouga Tested-by: Fabio Estevam ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/

Re: [U-Boot] [PATCH 1/5] Arm: imx7d-pico: Import all Linux device tree for Pico i.MX7D SOM

2019-03-25 Thread Fabio Estevam
On Mon, Mar 25, 2019 at 9:52 AM Joris Offouga wrote: > > This patch imports the Linux kernel base board imx7d-pico.dtsi, > pi board imx7d-pico-pi.dts and hobbit board imx7d-pico-hobbit.dts > from Linux v5.1-rc1. > > Signed-off-by: Joris Offouga Tested-by: Fabio Estevam _

Re: [U-Boot] [PATCH 0/5] Convert Pico i.MX7 to DM

2019-03-25 Thread Otavio Salvador
On Mon, Mar 25, 2019 at 9:55 AM Joris Offouga wrote: > > This series introduce DM Conversion for Pico i.MX7 Som and > variant boards > > Joris Offouga (5): > Arm: imx7d-pico: Import all Linux device tree for Pico i.MX7D SOM > pico-imx7d: defconfig: Add DT file hooks > pico-imx7d: defconfig E

[U-Boot] [PATCH 0/5] Convert Pico i.MX7 to DM

2019-03-25 Thread Joris Offouga
This series introduce DM Conversion for Pico i.MX7 Som and variant boards Joris Offouga (5): Arm: imx7d-pico: Import all Linux device tree for Pico i.MX7D SOM pico-imx7d: defconfig: Add DT file hooks pico-imx7d: defconfig Enable DM gpio pinctrl and pinctrl_imx7 pico-imx7d: Convert DM MMC

[U-Boot] [PATCH 5/5] pico-imx7d: Increase u-boot size for dfu request

2019-03-25 Thread Joris Offouga
After DM conversion, the size of U-Boot binary to increase. Previous size is 480K after DM Conversion the new size is 557K So it's necessary to increase the dfu request for store u-boot-dtb.img in eMMC. Signed-off-by: Joris Offouga --- include/configs/pico-imx7d.h | 2 +- 1 file changed, 1 inser

[U-Boot] [PATCH 4/5] pico-imx7d: Convert DM MMC

2019-03-25 Thread Joris Offouga
This patch enable convert DM MMC for imx7d-pico board and variant. Before the DM conversion only usdhc3 was enabled and therefore it appeared as MMC 0 to u-boot. After enabling MMC DM though usdhc3 defaults to MMC 2, which left unattended would drive changes to existing pico-pi bootscripts and env

[U-Boot] [PATCH 1/5] Arm: imx7d-pico: Import all Linux device tree for Pico i.MX7D SOM

2019-03-25 Thread Joris Offouga
This patch imports the Linux kernel base board imx7d-pico.dtsi, pi board imx7d-pico-pi.dts and hobbit board imx7d-pico-hobbit.dts from Linux v5.1-rc1. Signed-off-by: Joris Offouga --- arch/arm/dts/imx7d-pico-hobbit.dts | 105 ++ arch/arm/dts/imx7d-pico-pi.dts | 93 + arch/arm/dts/im

[U-Boot] [PATCH 3/5] pico-imx7d: defconfig Enable DM gpio pinctrl and pinctrl_imx7

2019-03-25 Thread Joris Offouga
This patch is necessary for convert this board to dm driver model DM GPIO requires gpio_request() to be called explicitly before doing any gpio operation Signed-off-by: Joris Offouga --- board/technexion/pico-imx7d/pico-imx7d.c | 4 +++- configs/pico-hobbit-imx7d_defconfig | 3 +++ configs

[U-Boot] [PATCH 2/5] pico-imx7d: defconfig: Add DT file hooks

2019-03-25 Thread Joris Offouga
This patch adds DT file hooks for Pico i.MX7D SOM and variant boards Signed-off-by: Joris Offouga --- configs/pico-hobbit-imx7d_defconfig | 3 ++- configs/pico-imx7d_defconfig| 3 ++- configs/pico-pi-imx7d_defconfig | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --gi

[U-Boot] [PATCH 0/5] Convert Pico i.MX7 to DM

2019-03-25 Thread Joris Offouga
From: Joris Offouga This series introduce DM Conversion for Pico i.MX7 Som and variant boards Joris Offouga (5): Arm: imx7d-pico: Import all Linux device tree for Pico i.MX7D SOM pico-imx7d: defconfig: Add DT file hooks pico-imx7d: defconfig Enable DM gpio pinctrl and pinctrl_imx7 pico

[U-Boot] [V6 PATCH 3/3] sunxi: Use clrsetbits_le32 instead of multiple instruction

2019-03-25 Thread Shyam Saini
From: Michael Trimarchi This will improve code readabilty Signed-off-by: Michael Trimarchi Signed-off-by: Shyam Saini --- Changelogs: V1->V2: none V2->V3: Fix use of clrsetbits_le32 and setbits_le32 functions V3->V4: Rebase to original series's patch 2 and 3

Re: [U-Boot] [PATCH] mmc: correct the HS400 initialization process

2019-03-25 Thread Marek Vasut
On 3/25/19 1:10 PM, Tom Rini wrote: > On Mon, Mar 25, 2019 at 12:16:53PM +0100, Marek Vasut wrote: >> On 3/25/19 11:24 AM, BOUGH CHEN wrote: >>> -Original Message- From: Marek Vasut [mailto:marek.va...@gmail.com] Sent: 2019年3月18日 19:53 To: BOUGH CHEN ; jh80.ch...@samsung

  1   2   >