Re: [U-Boot] [PATCH] net: macb: Clean 64b dma addresses if they are not detected

2018-09-19 Thread Michal Simek
On 19.9.2018 20:08, Edgar E. Iglesias wrote: > On Wed, Sep 19, 2018 at 06:08:18PM +0200, Michal Simek wrote: >> Clear ADDR64 dma bit in DMACFG register in case that HW_DMA_CAP_64B >> is not detected on 64bit system. >> The issue was observed when bootloader(u-boot) does not check macb >> feature at

Re: [U-Boot] [PATCH 1/2] Makefile: Use -fno-strict-aliasing globally

2018-09-19 Thread Bin Meng
Hi Tom, On Mon, Sep 17, 2018 at 1:30 PM Bin Meng wrote: > > The -fstrict-aliasing option is implicitly enabled at levels -O2, > -O3, -Os by GCC. This option allows the compiler to assume the > strictest aliasing rules applicable to the language being compiled. > For example, the practice of readi

Re: [U-Boot] [RESEND PATCH v2 15/15] riscv: Move do_reset() to a common place

2018-09-19 Thread Rick Chen
> From: Bin Meng [mailto:bmeng...@gmail.com] > Sent: Tuesday, September 11, 2018 12:55 PM > To: Rick Jian-Zhi Chen(陳建志); U-Boot Mailing List > Cc: Lukas Auer > Subject: [RESEND PATCH v2 15/15] riscv: Move do_reset() to a common place > > We don't have a reset method on any RISC-V board yet.

Re: [U-Boot] [RESEND PATCH v2 00/15] riscv: Add QEMU virt board support

2018-09-19 Thread Bin Meng
Hi Rick, On Thu, Sep 20, 2018 at 11:00 AM Rick Chen wrote: > > > Hi Rick, > > > > On Tue, Sep 11, 2018 at 12:50 PM Bin Meng wrote: > > > > > > This series adds QEMU RISC-V 'virt' board target support, with the > > > hope of helping people easily test U-Boot on RISC-V. > > > > > > Some ex

Re: [U-Boot] [RESEND PATCH v2 10/15] riscv: bootm: Pass mhartid CSR value to kernel

2018-09-19 Thread Rick Chen
> From: Bin Meng [mailto:bmeng...@gmail.com] > Sent: Tuesday, September 11, 2018 12:55 PM > To: Rick Jian-Zhi Chen(陳建志); U-Boot Mailing List > Cc: Lukas Auer > Subject: [RESEND PATCH v2 10/15] riscv: bootm: Pass mhartid CSR value to kernel > > So far this is hardcoded to zero, and we should

Re: [U-Boot] [RESEND PATCH v2 09/15] riscv: Remove CSR read/write defines in encoding.h

2018-09-19 Thread Rick Chen
> From: Bin Meng [mailto:bmeng...@gmail.com] > Sent: Tuesday, September 11, 2018 12:55 PM > To: Rick Jian-Zhi Chen(陳建志); U-Boot Mailing List > Cc: Lukas Auer > Subject: [RESEND PATCH v2 09/15] riscv: Remove CSR read/write defines in > encoding.h > > There is no reason to keep two versions o

Re: [U-Boot] [RESEND PATCH v2 03/15] riscv: bootm: Correct the 1st kernel argument to hart id

2018-09-19 Thread Rick Chen
> From: Bin Meng [mailto:bmeng...@gmail.com] > Sent: Tuesday, September 11, 2018 12:55 PM > To: Rick Jian-Zhi Chen(陳建志); U-Boot Mailing List > Cc: Lukas Auer > Subject: [RESEND PATCH v2 03/15] riscv: bootm: Correct the 1st kernel argument > to hart id > > The first argument of Linux kernel

Re: [U-Boot] [RESEND PATCH v2 01/15] riscv: kconfig: Normalize architecture name spelling

2018-09-19 Thread Rick Chen
> From: Bin Meng [mailto:bmeng...@gmail.com] > Sent: Tuesday, September 11, 2018 12:55 PM > To: Rick Jian-Zhi Chen(陳建志); U-Boot Mailing List > Cc: Lukas Auer > Subject: [RESEND PATCH v2 01/15] riscv: kconfig: Normalize architecture name > spelling > > It's RISC-V that is the official name,

Re: [U-Boot] [RESEND PATCH v2 00/15] riscv: Add QEMU virt board support

2018-09-19 Thread Rick Chen
> Hi Rick, > > On Tue, Sep 11, 2018 at 12:50 PM Bin Meng wrote: > > > > This series adds QEMU RISC-V 'virt' board target support, with the > > hope of helping people easily test U-Boot on RISC-V. > > > > Some existing RISC-V codes have been changed to make it easily to > > support new tar

Re: [U-Boot] [PATCH V3 2/2] pci: Update documentation to make 'compatible' string optional

2018-09-19 Thread Bin Meng
Hi Marek, On Wed, Sep 19, 2018 at 9:29 PM Marek Vasut wrote: > > On 09/18/2018 04:02 PM, Simon Glass wrote: > > Hi Marek, > > Hi, > > > On 18 September 2018 at 05:47, Marek Vasut wrote: > >> > >> On 09/14/2018 06:41 AM, Simon Glass wrote: > >>> Hi Marex, > >> > >> It's Marek btw ... > >> > >>> O

Re: [U-Boot] [PATCH V2 1/2] pci: Support parsing PCI controller DT subnodes

2018-09-19 Thread Bin Meng
Hi Marek, On Wed, Sep 19, 2018 at 9:28 PM Marek Vasut wrote: > > On 09/19/2018 11:41 AM, Bin Meng wrote: > > Hi Marek, > > > > On Wed, Sep 19, 2018 at 5:34 PM Marek Vasut wrote: > >> > >> On 09/19/2018 11:26 AM, Bin Meng wrote: > >>> Hi Marek, > >>> > >>> On Wed, Sep 19, 2018 at 4:21 PM Marek Va

Re: [U-Boot] Please pull u-boot-dm

2018-09-19 Thread Tom Rini
On Tue, Sep 18, 2018 at 06:13:24PM -0600, Simon Glass wrote: > Hi Tom, > > I was unable to get signed tags working, but here is a list of changes: I assume you read the link from before, can you talk about the issues a bit more? Thanks! > - MPC83xx device tree additions (CPU and RAM) > - Fix s

[U-Boot] [PATCH 4/4] rockchip: rk3399: Add Ficus EE board support

2018-09-19 Thread Manivannan Sadhasivam
Add board support for Ficus EE board from Vamrs. This board utilizes common Rock960 family support. Following peripherals are tested and known to work: * Gigabit Ethernet * USB 2.0 * MMC Signed-off-by: Ezequiel Garcia [Reworked based on common Rock960 family support] Signed-off-by: Manivannan Sa

[U-Boot] [PATCH 2/4] rockchip: rk3399: Add common Rock960 family from Vamrs

2018-09-19 Thread Manivannan Sadhasivam
Rock960 is a family of boards based on Rockchip RK3399 SoC from Vamrs. It consists of Rock960 (Consumer Edition) and Ficus (Enterprise Edition) 96Boards. Below are some of the key differences between both Rock960 and Ficus boards: 1. Different host enable GPIO for USB 2. Different power and reset

[U-Boot] [PATCH 3/4] rockchip: rk3399: Add Rock960 CE board support

2018-09-19 Thread Manivannan Sadhasivam
Add board support for Rock960 CE board from Vamrs. This board utilizes common Rock960 family support. Following peripherals are tested and known to work: * USB 2.0 * MMC This commit also adds DDR configuration for LPDDR3-2GiB-1866MHz. Signed-off-by: Manivannan Sadhasivam --- arch/arm/dts/Makef

[U-Boot] [PATCH 0/4] Add Rock960 and Ficus 96Board support

2018-09-19 Thread Manivannan Sadhasivam
This patchset adds support for Rock960 and Ficus 96Boards from Vamrs. Since both boards share most of the configurations, a common Rock960 family support is added with common support and the actual boards are based on this. The previous version of the patchseries were adding Rock960 [1] and Ficus

[U-Boot] [PATCH 1/4] arm: dts: rockchip: add some common pin-settings to rk3399

2018-09-19 Thread Manivannan Sadhasivam
From: Randy Li Those pins would be used by many boards. Commit grabbed from Linux: commit b41023282d07b61a53e2c9b9508912b1e7ce7b4f Author: Randy Li Date: Thu Jun 21 21:32:10 2018 +0800 arm64: dts: rockchip: add some common pin-settings to rk3399 Those pins would be used by many boa

Re: [U-Boot] [PATCH] nios2: 10m50: Add CPU pre-relocation in device tree

2018-09-19 Thread Thomas Chou
On 09/13/2017 02:19 PM, Marek Vasut wrote: On 07/28/2017 07:07 AM, Gan, Yau Wai wrote: Tag CPU with dm-pre-reloc to enable driver before relocation. Signed-off-by: Gan, Yau Wai Cc: Thomas Chou Reviewed-by: Marek Vasut Tom, please apply directly as the maintainer seems N/A. Dear all, So

[U-Boot] [Patch V3] ARM: da850evm_direct_nor_defconfig: Enable DM_SERIAL

2018-09-19 Thread Adam Ford
With DM enabled, this patch enables DM_SERIAL and removes the NS16550 initialization from da850_lowlevel since the driver will take care of that itself. Signed-off-by: Adam Ford --- V3: Make the include items referencing the serial info dependent on DM_SERIAL and not SPL or NOR since

Re: [U-Boot] [PATCH 2/2] colibri_imx7: prime get_ram_size() using imx_ddr_size()

2018-09-19 Thread Fabio Estevam
Hi Stefan, On Wed, Sep 19, 2018 at 12:48 PM, Stefan Agner wrote: > Hm, with that we take the MMDC register information as the upper bound, and > use regular U-Boot get_ram_size() to determine size by poking memory > addresses. Seems sensible. > > Acked-by: Stefan Agner > > Fabio, I guess othe

Re: [U-Boot] [PATCH 1/3] net: designware: socfpga: Add Arria10 extras

2018-09-19 Thread Joe Hershberger
Hi Marek, On Mon, Aug 13, 2018 at 1:56 PM, Marek Vasut wrote: > Add wrapper around the designware MAC driver to handle the SoCFPGA > specific configuration bits. On Arria10, this is configuration of > syscon phy_intf. > > Signed-off-by: Marek Vasut > Cc: Chin Liang See > Cc: Dinh Nguyen > Cc:

Re: [U-Boot] [PATCH v1 03/13] dts: db410c: add alias for USB

2018-09-19 Thread Peter Robinson
> > This should go into a -u-boot.dtsi file so that the > > dragonboard410c.dts can be synced from the linux kernel without > > change. > > > Hi Peter. > I thought that -u-boot.dtsi is only for u-boot specific stuff, > The alias is not specific to u-boot AFAIK. Yes, I did wonder if some of these c

[U-Boot] [PATCH v2 3/4] dm: core: Scan "/firmware" node by default

2018-09-19 Thread Rajan Vaja
All Linux firmware drivers are put under "/firmware" node and it has support to populate "/firmware" node by default. u-boot and Linux can share same DTB. In this case, driver probe for devices under "/firmware" will not be invoked as "/firmware" does not have its own "compatible" property. This

[U-Boot] [PATCH v1 00/13] Introduce fastboot support for dragonboard410c

2018-09-19 Thread Ramon Fried
This set of patches introduce fastboot support for Qualcomm db410c. As part of the patch, a small quirk is added to ci_udc through a weaklly linked function. Ramon Fried (13): ehci: Replace board_prepare_usb with board_usb_init ehci: msm: Add missing platdata dts: db410c: add alias for USB

[U-Boot] [PATCH v2 2/4] dm: core: Move "/clock" node scan into function

2018-09-19 Thread Rajan Vaja
Create separate function for scanning node by path and move "/clock" node scan code into that function. This will be usable if scanning of more node is required. Signed-off-by: Rajan Vaja Reviewed-by: Simon Glass --- Changes in v2: * None --- drivers/core/root.c | 33 ++--

[U-Boot] [PATCH v2 0/4] dm: core: Scan "/firmware" node by default

2018-09-19 Thread Rajan Vaja
All Linux firmware drivers are put under "/firmware" node and it has support to populate "/firmware" node by default. u-boot and Linux can share same DTB. In this case, driver probe for devices under "/firmware" will not be invoked as "/firmware" does not have its own "compatible" property. This

[U-Boot] [PATCH v2 4/4] dm: test: Add "/firmware" node scan test

2018-09-19 Thread Rajan Vaja
Add a test which verifies that all subnodes under "/firmware" nodes are scanned. Signed-off-by: Rajan Vaja --- Changes in v2: * New patch --- arch/sandbox/dts/test.dts | 7 +++ drivers/firmware/Makefile | 1 + drivers/firmware/firmware-sandbox.c | 20 +

[U-Boot] [PATCH v2 1/4] firmware: Add FIRMWARE config prompt string

2018-09-19 Thread Rajan Vaja
There is no prompt string for FIRMWARE config. Without this, FIRMWARE config cannot be enabled through menuconfing or config file. Fix this by adding prompt summary. Signed-off-by: Rajan Vaja --- Changes in v2: * New patch --- drivers/firmware/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1

[U-Boot] [PATCH] u-boot: align cache flushes in load_elf_image_shdr to line boundaries

2018-09-19 Thread Neil Stainton
Prevent cache warning messages when using the 'bootelf' command on an Arm target. Round down each section start address and round up the respective section end to the nearest cache line. Signed-off-by: Neil Stainton --- This is a repeat of commit 8744d6c5 as this file changed significantly bet

Re: [U-Boot] [PATCH v1 03/13] dts: db410c: add alias for USB

2018-09-19 Thread Ramon Fried
On Wed, Sep 19, 2018 at 10:28 PM Peter Robinson wrote: > > This should go into a -u-boot.dtsi file so that the > dragonboard410c.dts can be synced from the linux kernel without > change. > Hi Peter. I thought that -u-boot.dtsi is only for u-boot specific stuff, The alias is not specific to u-boot

Re: [U-Boot] [PATCH v12 1/3] Consolidating UDP header functions.

2018-09-19 Thread Joe Hershberger
On Wed, Sep 19, 2018 at 2:24 PM, Duncan Hare wrote: > >>On Sun, Jun 24, 2018 at 5:40 PM, wrote:. >>From: Duncan Hare >> >>> To make it possible to add TCP versions of the same, while reusing >>> IP portions. This patch should not change any behavior. >>> >>> All references to TCP removed >>> Use

[U-Boot] [PATCH 1/1] dm: video: support more escape sequences

2018-09-19 Thread Heinrich Schuchardt
The EFI subsystems needs to know the size of the terminal. If the environment variable stdout = serial,vidconsole this size cannot be read from the video console. So the EFI subsystem sends escape sequences to read the size. With this patch we get support for the following escape sequence

Re: [U-Boot] [PATCH v1 03/13] dts: db410c: add alias for USB

2018-09-19 Thread Peter Robinson
This should go into a -u-boot.dtsi file so that the dragonboard410c.dts can be synced from the linux kernel without change. Peter On Wed, Sep 19, 2018 at 7:31 PM Ramon Fried wrote: > > Alias is required so req-seq will be filled. > > Signed-off-by: Ramon Fried > --- > > arch/arm/dts/dragonboar

Re: [U-Boot] [PATCH v12 1/3] Consolidating UDP header functions.

2018-09-19 Thread Duncan Hare
>On Sun, Jun 24, 2018 at 5:40 PM,  wrote:. >From: Duncan Hare > >> To make it possible to add TCP versions of the same, while reusing >> IP portions. This patch should not change any behavior. >> >> All references to TCP removed >> Used most recent version of u-boot June 22 13, 2918 >> Series to

Re: [U-Boot] [PATCH v12 1/3] Consolidating UDP header functions.

2018-09-19 Thread Joe Hershberger
On Sun, Jun 24, 2018 at 5:40 PM, wrote: > From: Duncan Hare > > To make it possible to add TCP versions of the same, while reusing > IP portions. This patch should not change any behavior. > > All references to TCP removed > Used most recent version of u-boot June 22 13, 2918 > Series to fix pat

[U-Boot] [PATCH v1 10/13] usb:ci_udc: Introduce init_after_reset phy function

2018-09-19 Thread Ramon Fried
MSM variant of Chipidea must reinitalize the phy after controller reset. Introduce ci_init_after_reset() weak function that can be used to achieve the above init. Signed-off-by: Ramon Fried --- drivers/usb/gadget/ci_udc.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/gad

[U-Boot] [PATCH v1 11/13] usb: ehci-msm: Add init_after_reset for CI_UDC

2018-09-19 Thread Ramon Fried
MSM uses the chipidea controller IP, however it requires to reinit the phy after controller reset. in EHCI mode there's a dedicated callback for it. In device mode however there's no such callback. Add implementaion of ci_init_after_reset() to implement the above requirement in case CI_UDC driver i

[U-Boot] [PATCH v1 07/13] configs: db410c: Enable USB PHY

2018-09-19 Thread Ramon Fried
Enable USB PHY driver. Also fixed the alphabetically ordering of the config. Signed-off-by: Ramon Fried --- configs/dragonboard410c_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/dragonboard410c_defconfig b/configs/dragonboard410c_defconfig index 96a831443a..0d9008deb7 1

[U-Boot] [PATCH v1 13/13] db410c: automatically launch fastboot

2018-09-19 Thread Ramon Fried
If during boot the key-vol-down press is detected we'll fall back to fastboot. Signed-off-by: Ramon Fried --- board/qualcomm/dragonboard410c/dragonboard410c.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/qualcomm/dragonboard410c/dragonboard410c.c b/board/qualcomm

[U-Boot] [PATCH v1 09/13] ehci: msm: use init_type in probe

2018-09-19 Thread Ramon Fried
Change ehci_usb_probe() function to initialize the USB according to the init_type provided. Signed-off-by: Ramon Fried --- drivers/usb/host/ehci-msm.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/ehci-msm.c b/drivers/usb/host/ehci-msm.c index a27a58

[U-Boot] [PATCH v1 05/13] phy: db410c: Add MSM USB PHY driver

2018-09-19 Thread Ramon Fried
Add a PHY driver for the Qualcomm dragonboard 410c which allows switching on/off and resetting the phy connected to the EHCI controllers and USBHS controller. Signed-off-by: Ramon Fried --- MAINTAINERS| 1 + drivers/phy/Kconfig| 8 +++ drivers/phy/Makefile

[U-Boot] [PATCH v1 12/13] DB410c: Enable fastboot support

2018-09-19 Thread Ramon Fried
Signed-off-by: Ramon Fried --- configs/dragonboard410c_defconfig | 10 ++ 1 file changed, 10 insertions(+) diff --git a/configs/dragonboard410c_defconfig b/configs/dragonboard410c_defconfig index 0d9008deb7..a55abaf8df 100644 --- a/configs/dragonboard410c_defconfig +++ b/configs/dragon

[U-Boot] [PATCH v1 03/13] dts: db410c: add alias for USB

2018-09-19 Thread Ramon Fried
Alias is required so req-seq will be filled. Signed-off-by: Ramon Fried --- arch/arm/dts/dragonboard410c.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/dragonboard410c.dts b/arch/arm/dts/dragonboard410c.dts index f4f7c350ec..75f28300b7 100644 --- a/arch/arm/dts/dragonb

[U-Boot] [PATCH v1 04/13] db410c: serial# env using msm board serial

2018-09-19 Thread Ramon Fried
The serial# environment variable needs to be defined so it will be used by fastboot as serial for the endpoint descriptor. Signed-off-by: Ramon Fried --- arch/arm/mach-snapdragon/Kconfig | 1 + board/qualcomm/dragonboard410c/dragonboard410c.c | 10 ++ 2 files changed, 1

[U-Boot] [PATCH v1 08/13] ehci: msm: switch to generic PHY uclass

2018-09-19 Thread Ramon Fried
All the underlying USB PHY was handled in the ehci driver. Use the generic phy API instead. Signed-off-by: Ramon Fried --- drivers/usb/host/Kconfig| 3 +-- drivers/usb/host/ehci-msm.c | 52 +++-- 2 files changed, 10 insertions(+), 45 deletions(-) diff --git

[U-Boot] [PATCH v1 06/13] dts: db410c: Add bindings for MSM USB phy

2018-09-19 Thread Ramon Fried
Signed-off-by: Ramon Fried --- arch/arm/dts/dragonboard410c.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/dts/dragonboard410c.dts b/arch/arm/dts/dragonboard410c.dts index 75f28300b7..fa348bc621 100644 --- a/arch/arm/dts/dragonboard410c.dts +++ b/arch/arm/dts/dragonboard

[U-Boot] [PATCH v1 02/13] ehci: msm: Add missing platdata

2018-09-19 Thread Ramon Fried
platdata_auto_alloc_size was not initialized in structure. Caused null pointer dereference when configuring device as gadget. Signed-off-by: Ramon Fried --- drivers/usb/host/ehci-msm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/ehci-msm.c b/drivers/usb/host/ehci-msm.c

[U-Boot] [PATCH v1 01/13] ehci: Replace board_prepare_usb with board_usb_init

2018-09-19 Thread Ramon Fried
Use standard board_usb_init() instead of the specific board_prepare_usb. Signed-off-by: Ramon Fried --- board/qualcomm/dragonboard410c/dragonboard410c.c | 4 ++-- drivers/usb/host/ehci-msm.c | 9 ++--- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/boar

[U-Boot] [PATCH 1/1] dm: video: adjust struct vidconsole_priv description

2018-09-19 Thread Heinrich Schuchardt
The third component of struct vidconsole_priv is ycur. Signed-off-by: Heinrich Schuchardt --- include/video_console.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/video_console.h b/include/video_console.h index 63af741778..44e7bdbe29 100644 --- a/include/video_cons

[U-Boot] [PATCH 1/1] MAINTAINERS: assign include/video*.h

2018-09-19 Thread Heinrich Schuchardt
The include/video*.h files are part of the drivers in drivers/video. So it makes sense to assign them to the same maintainer. Signed-off-by: Heinrich Schuchardt --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 5e740d85b9..ec9635a4c9 100644 --- a

Re: [U-Boot] [PATCH] net: macb: Clean 64b dma addresses if they are not detected

2018-09-19 Thread Edgar E. Iglesias
On Wed, Sep 19, 2018 at 06:08:18PM +0200, Michal Simek wrote: > Clear ADDR64 dma bit in DMACFG register in case that HW_DMA_CAP_64B > is not detected on 64bit system. > The issue was observed when bootloader(u-boot) does not check macb > feature at DCFG6 register (DAW64_OFFSET) and enabling 64bit d

[U-Boot] [PATCH 1/1] dm: video: check bounds for column and row

2018-09-19 Thread Heinrich Schuchardt
CSI H can be used to position the cursor. The calling application may specify a location that is beyond the limits of the screen. This may lead to an illegal memory access. Signed-off-by: Heinrich Schuchardt --- drivers/video/vidconsole-uclass.c | 8 1 file changed, 8 insertions(+) dif

Re: [U-Boot] [PATCH] net: macb: Clean 64b dma addresses if they are not detected

2018-09-19 Thread Joe Hershberger
On Wed, Sep 19, 2018 at 11:08 AM Michal Simek wrote: > > Clear ADDR64 dma bit in DMACFG register in case that HW_DMA_CAP_64B > is not detected on 64bit system. > The issue was observed when bootloader(u-boot) does not check macb > feature at DCFG6 register (DAW64_OFFSET) and enabling 64bit dma sup

Re: [U-Boot] [PATCH 1/1] test/py: catch errors occurring when reading the console

2018-09-19 Thread Heinrich Schuchardt
On 09/19/2018 05:24 PM, Stephen Warren wrote: > On 09/18/2018 06:43 PM, Heinrich Schuchardt wrote: >> On 09/18/2018 07:23 PM, Stephen Warren wrote: >>> On 09/18/2018 11:21 AM, Heinrich Schuchardt wrote: Spawn.exept has a try block without 'except'. If no output is available an OSErro

Re: [U-Boot] [PATCH] uclass: Use uclass_foreach_dev() macro instead of open coding

2018-09-19 Thread Liviu Dudau
On Wed, Sep 19, 2018 at 09:30:37AM -0600, Simon Glass wrote: > Hi, > > On 18 September 2018 at 02:08, Liviu Dudau wrote: > > > > On Tue, Sep 18, 2018 at 04:06:13AM +0200, Simon Glass wrote: > > > On 17 September 2018 at 10:44, Liviu Dudau > > > wrote: > > > > Use the uclass_foreach_dev() macro

[U-Boot] [PATCH] net: macb: Clean 64b dma addresses if they are not detected

2018-09-19 Thread Michal Simek
Clear ADDR64 dma bit in DMACFG register in case that HW_DMA_CAP_64B is not detected on 64bit system. The issue was observed when bootloader(u-boot) does not check macb feature at DCFG6 register (DAW64_OFFSET) and enabling 64bit dma support by default. Then macb driver is reading DMACFG register bac

Re: [U-Boot] [PATCH 2/2] colibri_imx7: prime get_ram_size() using imx_ddr_size()

2018-09-19 Thread Stefan Agner
Hi, On 9/19/18 4:01 AM, Marcel Ziswiler wrote: > From: Fabio Estevam > > Rather than passing a hardcoded maxsize to the generic get_ram_size() > function use the i.MX 7 specific imx_ddr_size() function, which extracts > the memory size at runtime by reading the DDR controller registers. > > Thi

Re: [U-Boot] [PATCH] i2c: rcar_iic: Scale delays

2018-09-19 Thread Marek Vasut
On 09/19/2018 04:52 PM, Heiko Schocher wrote: > Hello Marek, > > Am 19.09.2018 um 16:31 schrieb Marek Vasut: >> On 09/19/2018 02:42 PM, Marek Vasut wrote: >>> The delays in this driver used to depend on an incorrect timer >>> frequency. >>> This was corrected in 7984ac8d1635, which caused this dri

Re: [U-Boot] [PATCH] uclass: Use uclass_foreach_dev() macro instead of open coding

2018-09-19 Thread Simon Glass
Hi, On 18 September 2018 at 02:08, Liviu Dudau wrote: > > On Tue, Sep 18, 2018 at 04:06:13AM +0200, Simon Glass wrote: > > On 17 September 2018 at 10:44, Liviu Dudau wrote: > > > Use the uclass_foreach_dev() macro instead of the open coded version. > > > > > > Signed-off-by: Liviu Dudau > > > -

Re: [U-Boot] [PATCH v4 12/17] board_f: Use static print_cpuinfo if CONFIG_CPU is active

2018-09-19 Thread Simon Glass
Hi Mario, On 6 August 2018 at 02:23, Mario Six wrote: > When the DM CPU drivers are active, printing information about a CPU > should be delegated to a matching driver. > > Hence, add a static print_cpuinfo that implements this delegation when > DM CPU drivers are active. > > Reviewed-by: Simon G

Re: [U-Boot] [PATCH 1/1] test/py: catch errors occurring when reading the console

2018-09-19 Thread Simon Glass
Hi Heinrich, On 18 September 2018 at 18:43, Heinrich Schuchardt wrote: > On 09/18/2018 07:23 PM, Stephen Warren wrote: >> On 09/18/2018 11:21 AM, Heinrich Schuchardt wrote: >>> Spawn.exept has a try block without 'except'. >>> >>> If no output is available an OSError may arise. Catch this excepti

Re: [U-Boot] [PATCH 1/1] test/py: catch errors occurring when reading the console

2018-09-19 Thread Stephen Warren
On 09/18/2018 06:43 PM, Heinrich Schuchardt wrote: On 09/18/2018 07:23 PM, Stephen Warren wrote: On 09/18/2018 11:21 AM, Heinrich Schuchardt wrote: Spawn.exept has a try block without 'except'. If no output is available an OSError may arise. Catch this exception and continue testing. Signed-o

[U-Boot] [PULL] Please pull u-boot-imx

2018-09-19 Thread Stefano Babic
Hi Tom, please pull from u-boot-imx with following changes: - changes in pico-* boards - fix imx6ull pinmux Thanks, Stefano The following changes since commit b57f1895b669e3fbdca486e7c40dfea00f22bb93: Merge git://git.denx.de/u-boot-x86 (2018-09-17 08:04:25 -0400) are available in the Git r

[U-Boot] Please pull u-boot-marvell/master

2018-09-19 Thread Stefan Roese
Hi Tom, please pull the Marvell U-Boot patches with these changes: - Multiples updates to the turris boards / platform - Changes / enhancements to the Marvell PHY drivers, mainly to support the turris platform - Many fixes and enhancements to the pxa3xx NAND driver - Fixes for the UART boot mo

Re: [U-Boot] [PATCH] i2c: rcar_iic: Scale delays

2018-09-19 Thread Heiko Schocher
Hello Marek, Am 19.09.2018 um 16:31 schrieb Marek Vasut: On 09/19/2018 02:42 PM, Marek Vasut wrote: The delays in this driver used to depend on an incorrect timer frequency. This was corrected in 7984ac8d1635, which caused this driver to function incorrectly. Scale the delays accordingly to rep

[U-Boot] [PATCH] ARM: rmobile: Repair TMU clock on Gen2

2018-09-19 Thread Marek Vasut
The CPfi/4 is derived from XTAL clock and is not fixed. Undo the previous commit 7984ac8d1635aebd11175c96b07f937a39f0384d. Signed-off-by: Marek Vasut --- include/configs/rcar-gen2-common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/rcar-gen2-common.h b/i

Re: [U-Boot] [PATCH] i2c: rcar_iic: Scale delays

2018-09-19 Thread Marek Vasut
On 09/19/2018 02:42 PM, Marek Vasut wrote: > The delays in this driver used to depend on an incorrect timer frequency. > This was corrected in 7984ac8d1635, which caused this driver to function > incorrectly. Scale the delays accordingly to repair the malfunction. > > Signed-off-by: Marek Vasut >

Re: [U-Boot] [PATCH V3 2/2] pci: Update documentation to make 'compatible' string optional

2018-09-19 Thread Marek Vasut
On 09/18/2018 04:02 PM, Simon Glass wrote: > Hi Marek, Hi, > On 18 September 2018 at 05:47, Marek Vasut wrote: >> >> On 09/14/2018 06:41 AM, Simon Glass wrote: >>> Hi Marex, >> >> It's Marek btw ... >> >>> On 11 September 2018 at 14:58, Marek Vasut wrote: Reword the documentation to make i

Re: [U-Boot] [PATCH V2 1/2] pci: Support parsing PCI controller DT subnodes

2018-09-19 Thread Marek Vasut
On 09/19/2018 11:41 AM, Bin Meng wrote: > Hi Marek, > > On Wed, Sep 19, 2018 at 5:34 PM Marek Vasut wrote: >> >> On 09/19/2018 11:26 AM, Bin Meng wrote: >>> Hi Marek, >>> >>> On Wed, Sep 19, 2018 at 4:21 PM Marek Vasut wrote: On 09/18/2018 03:52 PM, Simon Glass wrote: > Hi Marek, >

Re: [U-Boot] [PATCH] arm: mvebu: clearfog: enable eMMC boot partitions support

2018-09-19 Thread Stefan Roese
On 13.09.2018 11:41, Baruch Siach wrote: The Clearfog SOM can optionally have eMMC installed. Enable support for eMMC boot partitions by default. Signed-off-by: Baruch Siach --- include/configs/clearfog.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/clearfog.h b/in

Re: [U-Boot] [PATCH] phy: marvell: add SATA comphy RX/TX polarity invert support

2018-09-19 Thread Stefan Roese
On 06.09.2018 11:37, Baruch Siach wrote: From: Rabeeh Khoury This patch adds support to Armada 7k/8k comphy RX/TX lane swap. The 'phy-invert' DT property defines the inverted signals. Signed-off-by: Rabeeh Khoury Signed-off-by: Baruch Siach --- drivers/phy/marvell/comphy_cp110.c | 19 +

Re: [U-Boot] [PATCH 5/5] defconfig: db-88f6820-gp: Add bubt command to the build

2018-09-19 Thread Stefan Roese
On 29.08.2018 15:34, kos...@marvell.com wrote: From: Konstantin Porotchkin Add Marvell bubt command to db-88f6820-gp defconfig Signed-off-by: Konstantin Porotchkin Cc: Igal Liberman Cc: Stefan Roese --- configs/db-88f6820-gp_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/c

Re: [U-Boot] [PATCH 4/5] cmd: mvebu: bubt: Add support for legacy Marvell SoCs

2018-09-19 Thread Stefan Roese
On 29.08.2018 15:34, kos...@marvell.com wrote: From: Konstantin Porotchkin Add support for image load and basic verification in bubt for legacy Marvell SoCs (A38x, A39x, ...) Signed-off-by: Konstantin Porotchkin Cc: Igal Liberman Cc: Stefan Roese --- cmd/mvebu/bubt.c | 75

Re: [U-Boot] [PATCH 3/5] fix: cmd: mvebu: Eclude mvebu commands from SPL builds

2018-09-19 Thread Stefan Roese
On 29.08.2018 15:34, kos...@marvell.com wrote: From: Konstantin Porotchkin Exclude mvebu commands from SPL builds Signed-off-by: Konstantin Porotchkin Cc: Igal Liberman Cc: Stefan Roese --- cmd/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/Makefile b/

Re: [U-Boot] [PATCH 2/5] fix: mvebu: Add SPI parameters for environment setup

2018-09-19 Thread Stefan Roese
On 29.08.2018 15:34, kos...@marvell.com wrote: From: Konstantin Porotchkin Add definitions for CONFIG_ENV_SPI_BUS and CONFIG_ENV_SPI_CS to Armada-388-GP board configuration Signed-off-by: Konstantin Porotchkin Cc: Igal Liberman Cc: Stefan Roese --- include/configs/db-88f6820-gp.h | 6

Re: [U-Boot] [PATCH 1/5] fix: env: Fix the SPI flash device setup for DM mode

2018-09-19 Thread Stefan Roese
On 29.08.2018 15:34, kos...@marvell.com wrote: From: Konstantin Porotchkin For some reason the spi_flash_probe_bus_cs() is called inside the setup_flash_device() with zero values in place of configurated SPI flash mode and maximum flash speed. This code causes HALT error during startup environm

[U-Boot] [PATCH] ARM: dts: rmobile: Reinstate missing i2c6 on Porter

2018-09-19 Thread Marek Vasut
The I2C6 is used to communicate with the PMIC and it was removed during DT sync with Linux 4.17. Reinstate it. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- arch/arm/dts/r8a7791-porter.dts | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/dts/r8a7791-porter.dts b/arch/arm

[U-Boot] [PATCH] i2c: rcar_iic: Scale delays

2018-09-19 Thread Marek Vasut
The delays in this driver used to depend on an incorrect timer frequency. This was corrected in 7984ac8d1635, which caused this driver to function incorrectly. Scale the delays accordingly to repair the malfunction. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- drivers/i2c/rcar_iic.c | 1

Re: [U-Boot] [PATCH 16/19] fix: nand: Replace hardcoded page chunk size with calculated one

2018-09-19 Thread Stefan Roese
On 29.08.2018 10:56, kos...@marvell.com wrote: From: Konstantin Porotchkin Replace the hardcoded value of page chink with value that depends on flash page size and ECC strength. This fixes nand access errors for 2K page flashes with 8-bit ECC. Move the initial flash commannd function assignment

Re: [U-Boot] [PATCH 18/19] nand: pxa3xx: Add support for 8KB page 4 and 8 bit ECC NAND

2018-09-19 Thread Stefan Roese
On 29.08.2018 10:56, kos...@marvell.com wrote: From: Konstantin Porotchkin Add support for NAND chips with 8KB page, 4 and 8 bit ECC (ONFI). Signed-off-by: Konstantin Porotchkin Reviewed-by: Ofer Heifetz Cc: Stefan Roese Cc: Simon Glass --- drivers/mtd/nand/pxa3xx_nand.c | 72 +++

Re: [U-Boot] [PATCH 14/19] mtd: nand: pxa3xx: add support for 2KB 8-bit flash

2018-09-19 Thread Stefan Roese
On 29.08.2018 10:56, kos...@marvell.com wrote: From: Victor Axelrod Add support for 2KB page 8-bit ECC strength flash layout Signed-off-by: Victor Axelrod Reviewed-by: Igal Liberman Cc: Stefan Roese Cc: Simon Glass --- drivers/mtd/nand/pxa3xx_nand.c | 27 +++ 1 f

Re: [U-Boot] [PATCH 17/19] nand: pxa3xx: cosmetic: add comments to the timing layout structures

2018-09-19 Thread Stefan Roese
On 29.08.2018 10:56, kos...@marvell.com wrote: From: Konstantin Porotchkin Add comments with timing parameter names and some details about nand layout fileds. Remove unneeded definition. Signed-off-by: Konstantin Porotchkin Reviewed-by: Igal Liberman Cc: Stefan Roese Cc: Simon Glass ---

Re: [U-Boot] [PATCH 15/19] mtd: nand: pxa3xx: add support for Toshiba flash

2018-09-19 Thread Stefan Roese
On 29.08.2018 10:56, kos...@marvell.com wrote: From: Konstantin Porotchkin Add timings and device ID for Toshiba TC58NVG1S3HTA00 flash Signed-off-by: Konstantin Porotchkin Reviewed-by: Igal Liberman Cc: Stefan Roese Cc: Simon Glass --- drivers/mtd/nand/pxa3xx_nand.c | 3 +++ 1 file chan

Re: [U-Boot] [PATCH 13/19] mtd: nand: pxa3xx: Fix READOOB implementation

2018-09-19 Thread Stefan Roese
On 29.08.2018 10:56, kos...@marvell.com wrote: From: Boris Brezillon In the current driver, OOB bytes are accessed in raw mode, and when a page access is done with NDCR_SPARE_EN set and NDCR_ECC_EN cleared, the driver must read the whole spare area (64 bytes in case of a 2k page, 16 bytes for a

Re: [U-Boot] [PATCH 12/19] fix: nand: pxa3xx: Add SoC-specific enable function

2018-09-19 Thread Stefan Roese
On 29.08.2018 10:56, kos...@marvell.com wrote: From: Igal Liberman Add SoC-dependent function to the NAND driver for selecting NAND interface in DEVBUS MUX register. This selection is done in the BootROM if the boot device is NAND, but may be missing othervise. The NAND is selected only if it i

Re: [U-Boot] [PATCH 11/19] a70x0: a80x0: add soc type and revision printing in boot log

2018-09-19 Thread Stefan Roese
On 29.08.2018 10:56, kos...@marvell.com wrote: From: zachary zhang This patch adds SoC type and revision and each module's type and revision printing for a7k and a8k boards. Signed-off-by: zachary zhang Reviewed-by: Igal Liberman Cc: Stefan Roese Cc: Simon Glass --- arch/arm/mach-mvebu/a

Re: [U-Boot] [PATCH 10/19] mtd: nand: pxa3xx_nand: add support for partial chunks

2018-09-19 Thread Stefan Roese
On 29.08.2018 10:56, kos...@marvell.com wrote: From: Ofer Heifetz This commit is needed to properly support the 8-bits ECC configuration with 4KB pages. When pages larger than 2 KB are used on platforms using the PXA3xx NAND controller, the reading/programming operations need to be split in ch

Re: [U-Boot] [PATCH 09/19] mtd: pxa3xx_nand: Simplify pxa3xx_nand_scan

2018-09-19 Thread Stefan Roese
On 29.08.2018 10:56, kos...@marvell.com wrote: From: Ofer Heifetz This commit simplifies the initial configuration performed by pxa3xx_nand_scan. No functionality change is intended. This commit is taken from Linux: 'commit 154f50fbde53' ("mtd: pxa3xx_nand: Simplify pxa3xx_nand_scan") Signed-

Re: [U-Boot] [PATCH 06/19] nand: pxa3xx: Increase READ_ID buffer and make the size static

2018-09-19 Thread Stefan Roese
On 29.08.2018 10:56, kos...@marvell.com wrote: From: Ofer Heifetz The read ID count should be made as large as the maximum READ_ID size, so there's no need to have dynamic size. This commit sets the hardware maximum read ID count, which should be more than enough on all cases. Also, we get rid

Re: [U-Boot] [PATCH 05/19] mtd: nand: pxa3xx-nand: fix random command timeouts

2018-09-19 Thread Stefan Roese
On 29.08.2018 10:56, kos...@marvell.com wrote: From: Ofer Heifetz When 2 commands are submitted in a row, and the second is very quick, the completion of the second command might never come. This happens especially if the second command is quick, such as a status read after an erase This patch

Re: [U-Boot] [PATCH 07/19] mtd: pxa3xx_nand: Increase the initial chunk size

2018-09-19 Thread Stefan Roese
On 29.08.2018 10:56, kos...@marvell.com wrote: From: Ofer Heifetz The chunk size represents the size of the data chunks, which is used by the controllers that allow to split transferred data. However, the initial chunk size is used in a non-split way, during device identification. Therefore, i

Re: [U-Boot] [PATCH 08/19] mtd: pxa3xx_nand: Fix initial controller configuration

2018-09-19 Thread Stefan Roese
On 29.08.2018 10:56, kos...@marvell.com wrote: From: Ofer Heifetz The Data Flash Control Register (NDCR) contains two types of parameters: those that are needed for device identification, and those that can only be set after device identification. Therefore, the driver can't set them all at on

Re: [U-Boot] [PATCH 03/19] mtd: nand: pxa3xx_nand: sync pxa3xx_nand_set_sdr_timing()

2018-09-19 Thread Stefan Roese
On 29.08.2018 10:56, kos...@marvell.com wrote: From: Ofer Heifetz Since the pxa3xx_nand driver was added there has been a discrepancy in pxa3xx_nand_set_sdr_timing() around the setting of tWP_min and tRP_min. This brings us into line with the current Linux code. Signed-off-by: Chris Packham S

Re: [U-Boot] [PATCH 04/19] mtd: nand: pxa3xx_nand: fix early spurious interrupt

2018-09-19 Thread Stefan Roese
On 29.08.2018 10:56, kos...@marvell.com wrote: From: Ofer Heifetz When the nand is first probe, and upon the first command start, the status bits should be cleared before the interrupts are unmasked. This commit is taken from Linux: 'commit 0b14392db2e' ("mtd: nand: pxa3xx_nand: fix early spur

Re: [U-Boot] [PATCH 02/19] mtd: nand: pxa3xx_nand: use nand_to_mtd()

2018-09-19 Thread Stefan Roese
On 29.08.2018 10:56, kos...@marvell.com wrote: From: Ofer Heifetz Don't store struct mtd_info in struct pxa3xx_nand_host. Instead use the one that is already part of struct nand_chip. This brings us in line with current U-boot and Linux conventions. Signed-off-by: Chris Packham Signed-off-by:

Re: [U-Boot] [PATCH 01/19] mtd: nand: pxa3xx_nand: Increase initial buffer size

2018-09-19 Thread Stefan Roese
On 29.08.2018 10:56, kos...@marvell.com wrote: From: Ofer Heifetz The initial buffer is used for the initial commands used to detect a flash device (STATUS, READID and PARAM). ONFI param page is 256 bytes, and there are three redundant copies to be read. JEDEC param page is 512 bytes, and ther

Re: [U-Boot] [PATCH u-boot-marvell v3 04/12] board: turris_mox: Fixup U-Boot's device tree if PCIe connected

2018-09-19 Thread Stefan Roese
On 21.08.2018 12:22, Marek Behún wrote: If PCIe Mox module is connected we want to have PCIe node enabled in U-Boot's device tree. Signed-off-by: Marek Behun --- arch/arm/dts/armada-3720-turris-mox.dts | 7 +++ board/CZ.NIC/turris_mox/turris_mox.c| 82 +

Re: [U-Boot] [PATCH] dts: mvebu: mcbin: drop redundant SD slot node

2018-09-19 Thread Stefan Roese
On 20.08.2018 14:12, Baruch Siach wrote: Commit 61dccf73d302 (dts: mvebu: a80x0: Enable SD/eMMC interfaces) added a redundant DT node for SD card slot. Drop it. Cc: Konstantin Porotchkin Signed-off-by: Baruch Siach --- arch/arm/dts/armada-8040-mcbin.dts | 8 1 file changed, 8 delet

Re: [U-Boot] [PATCH u-boot-marvell v2 12/12] arch/arm/mvebu: Support 1 GB version of Turris Mox

2018-09-19 Thread Stefan Roese
On 17.08.2018 12:59, Marek Behún wrote: Add configuration variables to differentiate between the 512 MB and 1 GB versions of Turris Mox and change the RAM size in U-Boot's device tree accordingly. Signed-off-by: Marek Behun --- MAINTAINERS | 7 +++ ar

Re: [U-Boot] [PATCH u-boot-marvell v2 11/12] arch/arm/dts: Update Turris Mox device tree

2018-09-19 Thread Stefan Roese
On 17.08.2018 12:59, Marek Behún wrote: Remove smi_pins definition since it is already in armada-37xx.dtsi. Add assigned-clocks definitions to spi0. Signed-off-by: Marek Behun --- arch/arm/dts/armada-3720-turris-mox.dts | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff -

  1   2   >