[U-Boot] [PATCH v6 13/16] cpu: Bind timer driver for boot hart

2019-02-08 Thread Anup Patel
From: Atish Patra Currently, timer driver is bound only for hart0. There is no mandatory requirement that hart0 should always come up. In fact, HiFive Unleashed SoC hart0 doesn't boot in S-mode because it only has M-mode. The timer driver should be bound for boot hart. Signed-off-by: Atish

[U-Boot] [PATCH v6 16/16] riscv: Enable CONFIG_SYS_BOOT_RAMDISK_HIGH for using initrd

2019-02-08 Thread Anup Patel
This patch enables CONFIG_SYS_BOOT_RAMDISK_HIGH for RISC-V because bootm will update initrd location in DTB only if CONFIG_SYS_BOOT_RAMDISK_HIGH is enabled. If we don't enable this option then bootm assumes DTB already has initrd details which is not the case most of the time. Signed-off-by:

[U-Boot] [PATCH v6 14/16] riscv: Add SiFive FU540 board support

2019-02-08 Thread Anup Patel
This patch adds SiFive FU540 board support. For now, only SiFive serial, SiFive PRCI, and Cadance MACB drivers are only enabled. The SiFive FU540 defconfig by default builds U-Boot for S-Mode because U-Boot on SiFive FU540 will run in S-Mode as payload of BBL or OpenSBI. Signed-off-by: Atish

[U-Boot] [PATCH v6 12/16] drivers: serial_sifive: Skip baudrate config if no input clock

2019-02-08 Thread Anup Patel
From: Atish Patra It is possible that input clock is not available because clk device was not available and 'clock-frequency' DT property is also not available. In this case, instead of failing we should just skip baudrate config by returning zero. Signed-off-by: Atish Patra Signed-off-by:

[U-Boot] [PATCH v6 10/16] clk: Add fixed-factor clock driver

2019-02-08 Thread Anup Patel
This patch adds fixed-factor clock driver which derives clock rate by dividing (div) and multiplying (mult) fixed factors to a parent clock. Signed-off-by: Atish Patra Signed-off-by: Anup Patel --- arch/sandbox/dts/test.dts | 8 drivers/clk/Makefile | 4 +-

[U-Boot] [PATCH v6 15/16] doc: Add a readme guide for SiFive FU540

2019-02-08 Thread Anup Patel
From: Atish Patra The readme guide describes the procedure to build, flash and boot Linux using U-boot on HiFive Unleashed. It also explains the current state of U-boot support and future action items. Signed-off-by: Atish Patra Signed-off-by: Anup Patel --- doc/README.sifive-fu540 | 302

[U-Boot] [PATCH v6 08/16] net: macb: Fix GEM hardware detection

2019-02-08 Thread Anup Patel
From: Atish Patra Fix MID bit field check to correctly identify all GEM hardwares. The check is updated as per macb driver in Linux location: /drivers/net/ethernet/cadence/macb_main.c:259 Signed-off-by: Atish Patra Signed-off-by: Anup Patel Reviewed-by: Alexander Graf Reviewed-by: Lukas

[U-Boot] [PATCH v6 11/16] drivers: serial_sifive: Fix baud rate calculation

2019-02-08 Thread Anup Patel
From: Atish Patra Compute the baud rate multipler with more precision. Signed-off-by: Atish Patra Signed-off-by: Anup Patel Reviewed-by: Alexander Graf Reviewed-by: Lukas Auer --- drivers/serial/serial_sifive.c | 28 ++-- 1 file changed, 26 insertions(+), 2

[U-Boot] [PATCH v6 09/16] clk: Add SiFive FU540 PRCI clock driver

2019-02-08 Thread Anup Patel
Add driver code for the SiFive FU540 PRCI IP block. This IP block handles reset and clock control for the SiFive FU540 device and implements SoC-level clock tree controls and dividers. Based on code written by Wesley Terpstra found in commit 999529edf517ed75b56659d456d221b2ee56bb60 of:

[U-Boot] [PATCH v6 07/16] net: macb: Fix clk API usage for RISC-V systems

2019-02-08 Thread Anup Patel
Don't fail in macb_enable_clk() if clk_enable() returns -ENOSYS because we get -ENOSYS for fixed-rate clocks. Signed-off-by: Anup Patel Reviewed-by: Bin Meng --- drivers/net/macb.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/net/macb.c

[U-Boot] [PATCH v6 04/16] riscv: Add asm/dma-mapping.h for DMA mappings

2019-02-08 Thread Anup Patel
This patch adds asm/dma-mapping.h for Linux-like DMA mappings APIs required by some of the drivers (such as, Cadance MACB Ethernet driver). Signed-off-by: Anup Patel Reviewed-by: Bin Meng Reviewed-by: Alexander Graf Reviewed-by: Lukas Auer --- arch/riscv/include/asm/dma-mapping.h | 38

[U-Boot] [PATCH v6 06/16] riscv: generic: Ensure that U-Boot runs within 4GB for 64bit systems

2019-02-08 Thread Anup Patel
On 64bit systems, the DRAM top can be easily beyond 4GB and U-Boot DMA mapping APIs will generate DMA addresses beyond 4GB. This breaks DMA programming in 32bit DMA capable devices (such as Cadence MACB ethernet). For example, If DRAM is more then 2GB on QEMU sifive_u machine then Cadence MACB

[U-Boot] [PATCH v6 05/16] riscv: Add place-holder asm/arch/clk.h for driver compilation

2019-02-08 Thread Anup Patel
Some of the drivers expect asm/arch/clk.h to be provided by arch support code so we add place-holder asm/arch/clk.h for RISC-V support. Signed-off-by: Anup Patel --- arch/riscv/include/asm/arch/clk.h | 14 ++ 1 file changed, 14 insertions(+) create mode 100644

[U-Boot] [PATCH v6 03/16] riscv: Rename cpu/qemu to cpu/generic

2019-02-08 Thread Anup Patel
The QEMU CPU support under arch/riscv is pretty much generic and works fine for SiFive Unleashed as well. In fact, there will be quite a few RISC-V SOCs for which QEMU CPU support will work fine. This patch renames cpu/qemu to cpu/generic to indicate the above fact. If there are SOC specific

[U-Boot] [PATCH v6 02/16] Makefile: Fix mrproper make target

2019-02-08 Thread Anup Patel
Currently, the mrproper make target tries to force remove all "arch/*/include/asm/arch" paths assuming they are symlinks but this prevents us from adding place-holder headers under the arch/riscv/include/asm/arch directory. To solve this, we fix mrproper make target to only remove

[U-Boot] [PATCH v6 00/16] SiFive FU540 Support

2019-02-08 Thread Anup Patel
This patchset adds SiFive Freedom Unleashed (FU540) support to RISC-V U-Boot. The patches are based upon latest RISC-V U-Boot tree (git://git.denx.de/u-boot-riscv.git) at commit id 91882c472d8c0aef4db699d3f2de55bf43d4ae4b All drivers namely: SiFive PRCI, SiFive Serial, and Cadance MACB Ethernet

[U-Boot] [PATCH v6 01/16] .gitignore: Don't ignore arch/riscv/include/asm/arch

2019-02-08 Thread Anup Patel
We will be adding place-holder headers under include/asm/arch for RISC-V so this patch updates .gitignore to not consider files under arch/riscv/include/asm/arch Signed-off-by: Anup Patel --- arch/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/.gitignore b/arch/.gitignore

Re: [U-Boot] [PATCH v5 00/15] SiFive FU540 Support

2019-02-08 Thread Anup Patel
> -Original Message- > From: Anup Patel > Sent: Tuesday, February 5, 2019 6:34 PM > To: Rick Chen ; Bin Meng ; > Joe Hershberger ; Michal Simek > ; Michal Simek ; Lukas Auer > ; Masahiro Yamada > ; Simon Glass > Cc: Alexander Graf ; Palmer Dabbelt ; > Paul Walmsley ; Atish Patra > ;

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

2019-02-08 Thread Tom Rini
On Fri, Feb 08, 2019 at 11:19:46AM +0100, Marek Vasut wrote: > SD/MMC and filesystem fixes below ... > > The following changes since commit e5fd39c886485e3dec77f4438a6e364c2987cf5f: > > Merge tag 'for-master-20190201' of git://git.denx.de/u-boot-rockchip > (2019-02-02 10:11:20 -0500) > > are

Re: [U-Boot] [U-Boot, 2/3] net: add higmacv300 Ethernet driver for HiSilicon platform

2019-02-08 Thread Tom Rini
On Mon, Jan 28, 2019 at 05:13:55PM +0800, Shawn Guo wrote: > It adds the driver for HIGMACV300 Ethernet controller found on HiSilicon > SoCs like Hi3798CV200. It's based on a downstream U-Boot driver, but > quite a lot of code gets rewritten and cleaned up to adopt driver model > and PHY API. >

Re: [U-Boot] [PATCH] arm: socfpga: move gen5 SDR driver to DM

2019-02-08 Thread Dalon L Westergreen
On Fri, 2019-02-08 at 21:36 +0100, Simon Goldschmidt wrote: > > > Am Fr., 8. Feb. 2019, 21:28 hat Dalon L Westergreen < > dalon.westergr...@linux.intel.com> geschrieben: > > On Thu, 2019-02-07 at 22:23 +0100, Simon Goldschmidt wrote: > > > To clean up reset handling for socfpga gen5, let's move

Re: [U-Boot] [PATCH v1 24/26] colibri_imx6: switch to zimage

2019-02-08 Thread Marcel Ziswiler
Hi Lukasz On Fri, 2019-02-08 at 22:42 +0100, Lukasz Majewski wrote: > Hi Marcel, > > > From: Bhuvanchandra DV > > > > Switch to the generic compressed Kernel image type (zImage) instead > > of > > the U-Boot specific uImage format. > > > > I would recommend switching to use fitImage instead

Re: [U-Boot] [PATCH v1 24/26] colibri_imx6: switch to zimage

2019-02-08 Thread Lukasz Majewski
Hi Marcel, > From: Bhuvanchandra DV > > Switch to the generic compressed Kernel image type (zImage) instead of > the U-Boot specific uImage format. > I would recommend switching to use fitImage instead of zImage. You can look on display5 board for a reference. > While at it also fix device

Re: [U-Boot] [U-Boot,v2] spl: implement CRC check on U-Boot uImage

2019-02-08 Thread Tom Rini
On Fri, Feb 08, 2019 at 10:05:41PM +0100, Simon Goldschmidt wrote: > On Fri, Feb 8, 2019 at 8:46 PM Tom Rini wrote: > > > > On Wed, Nov 28, 2018 at 09:52:45PM +0100, Simon Goldschmidt wrote: > > > > > SPL currently does not check uImage CRCs when loading U-Boot. > > > > > > This patch adds

Re: [U-Boot] [U-Boot,v2] spl: implement CRC check on U-Boot uImage

2019-02-08 Thread Simon Goldschmidt
On Fri, Feb 8, 2019 at 8:46 PM Tom Rini wrote: > > On Wed, Nov 28, 2018 at 09:52:45PM +0100, Simon Goldschmidt wrote: > > > SPL currently does not check uImage CRCs when loading U-Boot. > > > > This patch adds checking the uImage CRC when SPL loads U-Boot. It does > > this by reusing the existing

Re: [U-Boot] [PATCH] arm: socfpga: move gen5 SDR driver to DM

2019-02-08 Thread Simon Goldschmidt
Am Fr., 8. Feb. 2019, 21:28 hat Dalon L Westergreen < dalon.westergr...@linux.intel.com> geschrieben: > On Thu, 2019-02-07 at 22:23 +0100, Simon Goldschmidt wrote: > > To clean up reset handling for socfpga gen5, let's move the code snippet > > taking the DDR controller out of reset from SPL to

Re: [U-Boot] [PATCH] drivers: net: ldpaa_eth: fix resource leak

2019-02-08 Thread Joe Hershberger
On Fri, Feb 8, 2019 at 2:46 AM Pankaj Bansal wrote: > > if an error occurs in ldpaa_eth_init, need to free all resources > before returning the error. > > Threfore, free net_dev before returning from ldpaa_eth_init. > > Signed-off-by: Pankaj Bansal > Acked-by: Joe Hershberger

Re: [U-Boot] [U-Boot,v2] spl: implement CRC check on U-Boot uImage

2019-02-08 Thread Tom Rini
On Wed, Nov 28, 2018 at 09:52:45PM +0100, Simon Goldschmidt wrote: > SPL currently does not check uImage CRCs when loading U-Boot. > > This patch adds checking the uImage CRC when SPL loads U-Boot. It does > this by reusing the existing config option SPL_CRC32_SUPPORT to allow > leaving out the

[U-Boot] [PATCH v2 3/4] efi_loader: use efi_start_image() for bootefi

2019-02-08 Thread Heinrich Schuchardt
Remove the duplicate code in efi_do_enter() and use efi_start_image() to start the image invoked by the bootefi command. Signed-off-by: Heinrich Schuchardt --- v2 use EFI_CALL --- cmd/bootefi.c | 22 +- include/efi_loader.h | 4

[U-Boot] [PATCH v2 1/4] efi_loader: LoadImage: always allocate new pages

2019-02-08 Thread Heinrich Schuchardt
If we want to properly unload images in Exit() the memory should always be allocated in the same way. As we allocate memory when reading from file we should do the same when the original image is in memory. A further patch will be needed to free the memory when Exit() is called. Signed-off-by:

[U-Boot] [PATCH v2 2/4] efi_loader: set entry point in efi_load_pe()

2019-02-08 Thread Heinrich Schuchardt
Up to now efi_load_pe() returns the entry point or NULL in case of an error. This does not allow to return correct error codes from LoadImage(). Let efi_load_pe() return a status code and fill in the entry point in the corresponding field of the image object. Signed-off-by: Heinrich Schuchardt

[U-Boot] [PATCH v2 0/4] efi_loader: rework loading and starting of images

2019-02-08 Thread Heinrich Schuchardt
This patch series starts the necessary changes needed to correctly implement the unloading of images in Exit(). If we want to properly unload images in Exit() the memory should always be allocated in the same way. As we allocate memory when reading from file we should do the same when the

[U-Boot] [PATCH v2 4/4] efi_loader: clean up bootefi_test_prepare()

2019-02-08 Thread Heinrich Schuchardt
Free resources upon failure. Correct the function description. As there is no need for any special address in the dummy memory device path passed via the EFI_LOADED_IMAGE_PROTOCOL simply use 0 as address. Signed-off-by: Heinrich Schuchardt --- v2 new patch --- cmd/bootefi.c | 58

Re: [U-Boot] [RFC v2 02/15] efi_loader: boottime: convert efi_loaded_image_obj to DM

2019-02-08 Thread Heinrich Schuchardt
On 2/8/19 9:15 AM, AKASHI Takahiro wrote: > Signed-off-by: AKASHI Takahiro > --- > include/efi_loader.h | 2 +- > lib/efi_loader/efi_boottime.c | 61 +++ > 2 files changed, 35 insertions(+), 28 deletions(-) > > diff --git a/include/efi_loader.h

Re: [U-Boot] [RFC v2 01/15] efi_loader: efi objects and protocols as DM devices

2019-02-08 Thread Heinrich Schuchardt
On 2/8/19 9:15 AM, AKASHI Takahiro wrote: > All efi objects are presented as DM devices, either existing device types > or efi-specific, and efi_handle_t is an opaque pointer to "struct udevice." > > We still maintain efi_obj_list as it is quite inefficient to traverse > the DM hierarchy to find

[U-Boot] [PATCH v1 26/26] board: colibri_imx6: check for and report ecc errors in fuses

2019-02-08 Thread Marcel Ziswiler
From: Gerard Salvatella The PMIC on the Colibri iMX6 may have ECC errors in fuses that will prevent correct settings. Up to one bit error per fuse bank can be reported and corrected by the ECC logic. Two bit errors can only be reported. Signed-off-by: Gerard Salvatella Acked-by: Marcel

[U-Boot] [PATCH v1 14/26] colibri_imx6: print also 64-bit IT

2019-02-08 Thread Marcel Ziswiler
From: Max Krummenacher Print also for Colibri iMX6 512MB IT with 64-bit RAM bus. Signed-off-by: Max Krummenacher Acked-by: Marcel Ziswiler --- board/toradex/colibri_imx6/colibri_imx6.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/toradex/colibri_imx6/colibri_imx6.c

[U-Boot] [PATCH v1 15/26] colibri_imx6: add distroboot support

2019-02-08 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_mmc1 run bootcmd_usb run bootcmd_dhcp

[U-Boot] [PATCH v1 22/26] configs: colibri_imx6: Use ext4 file system by default

2019-02-08 Thread Marcel Ziswiler
From: Sanchayan Maity Use ext4 file system by default. Signed-off-by: Sanchayan Maity Acked-by: Max Krummenacher Acked-by: Marcel Ziswiler --- include/configs/colibri_imx6.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/configs/colibri_imx6.h

[U-Boot] [PATCH v1 13/26] colibri_imx6: drop CONFIG_OF_SYSTEM_SETUP

2019-02-08 Thread Marcel Ziswiler
From: Max Krummenacher This doesn't do anything anymore, probably never did. Signed-off-by: Max Krummenacher Acked-by: Marcel Ziswiler --- board/toradex/colibri_imx6/colibri_imx6.c | 7 --- include/configs/colibri_imx6.h| 2 -- 2 files changed, 9 deletions(-) diff --git

[U-Boot] [PATCH v1 23/26] colibri_imx6: use SDP if USB serial downloader has been used

2019-02-08 Thread Marcel Ziswiler
From: Stefan Agner In case USB serial downloader has been used to load U-Boot start the serial download protocol (SDP) emulation. This allows to download complete images such as Toradex Easy Installer over USB SDP as well. This code uses the boot ROM provided boot information to reliably detect

[U-Boot] [PATCH v1 25/26] colibri_imx6: added nreset gpio on reboot

2019-02-08 Thread Marcel Ziswiler
From: Gerard Salvatella RGMII_RD1 pin (active high, GPIO6_IO27) is triggered on reboot during the SPL phase. This asserts (active low) nReset_Out from the PMIC. Only V1.1 and later Colibri iMX6 modules implement this in hw. Previous versions do not use this pin, so it is safe to leave it enabled

[U-Boot] [PATCH v1 24/26] colibri_imx6: switch to zimage

2019-02-08 Thread Marcel Ziswiler
From: Bhuvanchandra DV Switch to the generic compressed Kernel image type (zImage) instead of the U-Boot specific uImage format. While at it also fix device tree naming for MMC DFU. Signed-off-by: Bhuvanchandra DV Acked-by: Marcel Ziswiler --- include/configs/colibri_imx6.h | 22

[U-Boot] [PATCH v1 00/26] colibri imx6 fixes, device tree enablement and driver model conversion

2019-02-08 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. Bhuvanchandra DV (2): toradex: colibri_imx6: overwrite CMA

[U-Boot] [PATCH v1 20/26] colibri_imx6: revert fuse value set in mfgr_fuse

2019-02-08 Thread Marcel Ziswiler
From: Max Krummenacher We have two commands to change the bootmode fuses: mfgr_fuse which set fuse 0/5 and 0/6 and updt_fuse which burns bit 4 of 0/5. Before Image 2.6 we fused in mfgr_fuse 0x5062, which boots from the user partition of the eMMC. To workaround certain hangs we moved to fastboot

[U-Boot] [PATCH v1 09/26] colibri_imx6: migrate i2c to using driver model

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Migrate I2C to using driver model. Signed-off-by: Marcel Ziswiler --- board/toradex/colibri_imx6/colibri_imx6.c | 50 + board/toradex/colibri_imx6/pf0100.c | 54 --- configs/colibri_imx6_defconfig| 1 +

[U-Boot] [PATCH v1 18/26] colibri imx6: disable ri and dcd irq in uarts

2019-02-08 Thread Marcel Ziswiler
From: Max Krummenacher If the UART is used in DTE mode the RI and DCD bits in UCR3 become irq enable bits. Both are set to enabled after reset and both likely are pending. Disable the bits also on UARTs not used in the boot loader to prevent an interrupt storm when Linux enables the UART

[U-Boot] [PATCH v1 16/26] colibri_imx6: unify sd/mmc drive strenght with linux kernel settings

2019-02-08 Thread Marcel Ziswiler
From: Max Krummenacher In the linux device tree we use 40Ohm drive strenght. So use the same value in U-Boot. Signed-off-by: Max Krummenacher Acked-by: Marcel Ziswiler --- board/toradex/colibri_imx6/colibri_imx6.c | 24 +-- 1 file changed, 14 insertions(+), 10

[U-Boot] [PATCH v1 11/26] colibri_imx6: migrate mmc to using driver model

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Migrate MMC to using driver model. Signed-off-by: Marcel Ziswiler --- board/toradex/colibri_imx6/colibri_imx6.c | 38 +++ configs/colibri_imx6_defconfig| 1 + 2 files changed, 5 insertions(+), 34 deletions(-) diff --git

[U-Boot] [PATCH v1 19/26] colibri_imx6: change pmic fusing according to hw 1.1 requirements

2019-02-08 Thread Marcel Ziswiler
From: Max Krummenacher Colibri iMX6 V1.1 HW can use the PMIC GEN3 to power the NVCC_SD1. Change the settings fused into the PMIC's OTP to powerup with GEN3 set to output 3.3V. Signed-off-by: Max Krummenacher Acked-by: Stefan Agner Acked-by: Marcel Ziswiler ---

[U-Boot] [PATCH v1 17/26] colibri imx6: pf0100: reorder and cleanup message printing

2019-02-08 Thread Marcel Ziswiler
From: Max Krummenacher Keep debug code at the end of the function. Use a one line informational message for the PMIC only. Signed-off-by: Max Krummenacher Acked-by: Marcel Ziswiler --- board/toradex/colibri_imx6/pf0100.c | 82 ++--- 1 file changed, 41 insertions(+),

[U-Boot] [PATCH v1 08/26] colibri_imx6: enable pin control driver

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Enable pin control driver as required for further driver model migration. Signed-off-by: Marcel Ziswiler --- configs/colibri_imx6_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/colibri_imx6_defconfig b/configs/colibri_imx6_defconfig index

[U-Boot] [PATCH v1 06/26] colibri_imx6: migrate to using device tree

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Migrate to using device tree required for further driver model integration. Signed-off-by: Marcel Ziswiler --- arch/arm/dts/imx6-colibri.dts | 411 + board/toradex/colibri_imx6/MAINTAINERS | 2 + configs/colibri_imx6_defconfig

[U-Boot] [PATCH v1 01/26] colibri_imx6: get rid of obsolete nospl configurations

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Now with SPL long since being in place even for recovery using SDP finally get rid of those nospl configurations. Signed-off-by: Marcel Ziswiler --- .../toradex/colibri_imx6/800mhz_2x64mx16.cfg | 58 --- .../toradex/colibri_imx6/800mhz_4x64mx16.cfg | 58

[U-Boot] [PATCH v1 21/26] toradex: colibri_imx6: overwrite CMA memory set in device tree

2019-02-08 Thread Marcel Ziswiler
From: Bhuvanchandra DV Make sure CMA memory is not greater than 50% of available physical memory. Allow user to change the CMA memory via 'cma-size' U-Boot environment variable. Signed-off-by: Bhuvanchandra DV Acked-by: Marcel Ziswiler --- board/toradex/colibri_imx6/colibri_imx6.c | 14

[U-Boot] [PATCH v1 04/26] colibri_imx6: enable fit image, gpt, imx thermal, efi loader support

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Enbale FIT image, GPT command, i.MX thermal and EFI loader support. Signed-off-by: Marcel Ziswiler --- configs/colibri_imx6_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configs/colibri_imx6_defconfig b/configs/colibri_imx6_defconfig

[U-Boot] [PATCH v1 10/26] colibri_imx6: migrate pmic and regulator to using driver model

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Migrate PMIC and regulator to using driver model. Signed-off-by: Marcel Ziswiler --- configs/colibri_imx6_defconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/configs/colibri_imx6_defconfig b/configs/colibri_imx6_defconfig index dea6ca6270..6fd050a99f

[U-Boot] [PATCH v1 12/26] colibri_imx6: migrate usb to using driver model

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Migrate USB to using driver model. Signed-off-by: Marcel Ziswiler --- board/toradex/colibri_imx6/colibri_imx6.c | 23 +-- configs/colibri_imx6_defconfig| 1 + 2 files changed, 2 insertions(+), 22 deletions(-) diff --git

[U-Boot] [PATCH v1 05/26] colibri_imx6: remove obsolete USB_GADGET_MASS_STORAGE configuration

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Remove obsolete USB_GADGET_MASS_STORAGE configuration. Signed-off-by: Marcel Ziswiler --- include/configs/colibri_imx6.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/configs/colibri_imx6.h b/include/configs/colibri_imx6.h index 9e45d63245..f029a885d2

[U-Boot] [PATCH v1 07/26] colibri_imx6: clean-up and migrate gpios to using driver model

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Migrate GPIOs to using driver model, properly request backlight, MMC/SD card detect and USB power enable GPIOs and also enable SION bit in pin muxing for auxiliary, backlight and USB power enable GPIOs. While at it also update copyright year, clean-up/re-order includes,

[U-Boot] [PATCH v1 02/26] colibri_imx6: use distro defaults

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Use distro defaults and minimise default configuration again using savedefconfig. Signed-off-by: Marcel Ziswiler --- configs/colibri_imx6_defconfig | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/configs/colibri_imx6_defconfig

[U-Boot] [PATCH v1 03/26] colibri_imx6: move console in env from header file to defconfig

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Move console in env from header file to defconfig. While at it also update copyright year. Signed-off-by: Marcel Ziswiler --- configs/colibri_imx6_defconfig | 1 + include/configs/colibri_imx6.h | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH v3 0/3] stm32mp1: add trusted boot with TF-A

2019-02-08 Thread Patrick Delaunay
This patch serie add a new configuration stm32mp15_trusted_defconfig to handle STM32MP157 boards with TF-A as secure first stage bootloader. TF-A code is available in GitHub https://github.com/ARM-software/arm-trusted-firmware With platform stm32mp1 platform

[U-Boot] [PATCH v5 2/3] net: phy: ti: use generic helpers to access MMD registers

2019-02-08 Thread Carlo Caione
Now that generic helpers are available, use those instead of relying on ti specific functions. Signed-off-by: Carlo Caione Signed-off-by: Vladimir Oltean Acked-by: Joe Hershberger --- drivers/net/phy/ti.c | 130 +-- 1 file changed, 25 insertions(+), 105

[U-Boot] [PATCH v5 3/3] cmd: mdio: Switch to generic helpers when accessing the registers

2019-02-08 Thread Carlo Caione
Switch to use the generic helpers to access the MMD registers so that we can used the same command also for C45 PHYs, C22 PHYs with direct and indirect access and PHYs implementing a custom way to access the registers. Signed-off-by: Carlo Caione --- cmd/mdio.c | 27 ---

[U-Boot] [PATCH v3 3/3] stm32mp1: display board information

2019-02-08 Thread Patrick Delaunay
Implement checkboard() function to display - the boot chain used: basic or trusted - the board compatible in device tree - the board identifier and revision, saved in OTP59 for ST boards Signed-off-by: Patrick Delaunay --- Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v5 1/3] net: phy: Add generic helpers to access MMD PHY registers

2019-02-08 Thread Carlo Caione
Two new helper functions (phy_read_mmd() and phy_write_mmd()) are added to allow access to the MMD PHY registers. The MMD PHY registers can be accessed by several means: 1. Using two new MMD access function hooks in the PHY driver. These functions can be implemented when the PHY driver does not

[U-Boot] [PATCH v5 0/3] Add MMD PHY helpers

2019-02-08 Thread Carlo Caione
Introduce phy_{read|write}_mmd() helpers and modify the mdio command to make good use of them. Fix the ti driver in the same patchset. Carlo Caione (3): net: phy: Add generic helpers to access MMD PHY registers net: phy: ti: use generic helpers to access MMD registers cmd: mdio: Switch to

[U-Boot] [PATCH v3 1/3] stm32mp1: add trusted boot with TF-A

2019-02-08 Thread Patrick Delaunay
Add support of trusted boot, using TF-A as first stage bootloader, The boot sequence is BootRom >=> TF-A.stm32 (clock & DDR) >=> U-Boot.stm32 The TF-A monitor provides secure monitor with support of SMC - proprietary to manage secure devices (BSEC for example) - PSCI for power The same device

[U-Boot] [PATCH v3 2/3] stm32mp1: bsec: access with SMC for trusted boot

2019-02-08 Thread Patrick Delaunay
As BSEC is secure aware, all register access need to be done by TF-A for TRUSTED boot chain, when U-Boot is executed in normal world. Signed-off-by: Patrick Delaunay --- Changes in v3: None Changes in v2: None arch/arm/mach-stm32mp/bsec.c | 28 ++

[U-Boot] [PATCH v2 1/4] stm32mp1: add trusted boot with TF-A

2019-02-08 Thread Patrick Delaunay
Add support of trusted boot, using TF-A as first stage bootloader, The boot sequence is BootRom >=> TF-A.stm32 (clock & DDR) >=> U-Boot.stm32 The TF-A monitor provides secure monitor with support of SMC - proprietary to manage secure devices (BSEC for example) - PSCI for power The same device

[U-Boot] [PATCH v2 0/4] stm32mp1: add trusted boot with TF-A

2019-02-08 Thread Patrick Delaunay
This patch serie add a new configuration stm32mp15_trusted_defconfig to handle STM32MP157 boards with TF-A as secure first stage bootloader. TF-A code is available in GitHub https://github.com/ARM-software/arm-trusted-firmware With platform stm32mp1 platform

[U-Boot] [PATCH v2 22/23] apalis_imx6: switch to zimage

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Switch to the generic compressed Kernel image type (zImage) instead of the U-Boot specific uImage format. While at it also fix device tree naming for MMC DFU. Signed-off-by: Bhuvanchandra DV Acked-by: Marcel Ziswiler --- Changes in v2: - Also fix device tree naming

[U-Boot] [PATCH v2 3/4] stm32mp1: display board information

2019-02-08 Thread Patrick Delaunay
Implement checkboard() function to display - the boot chain used: basic or trusted - the board compatible in device tree - the board identifier and revision, saved in OTP59 for ST boards Signed-off-by: Patrick Delaunay --- Changes in v2: None arch/arm/mach-stm32mp/include/mach/stm32.h | 4

[U-Boot] [PATCH v2 20/23] configs: apalis_imx6: Use ext4 file system by default

2019-02-08 Thread Marcel Ziswiler
From: Sanchayan Maity Use ext4 file system by default. Signed-off-by: Sanchayan Maity Acked-by: Max Krummenacher Acked-by: Marcel Ziswiler --- Changes in v2: None include/configs/apalis_imx6.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[U-Boot] [PATCH v2 4/4] clk: stm32m1: add debug information

2019-02-08 Thread Patrick Delaunay
Add support of clk dump command and display information during probe (under CONFIG_DISPLAY_CPUINFO). Signed-off-by: Patrick Delaunay --- Changes in v2: None configs/stm32mp15_basic_defconfig | 1 + configs/stm32mp15_trusted_defconfig | 1 + drivers/clk/clk_stm32mp1.c | 83

[U-Boot] [PATCH v2 21/23] apalis_imx6: use SDP if USB serial downloader has been used

2019-02-08 Thread Marcel Ziswiler
From: Stefan Agner In case USB serial downloader has been used to load U-Boot start the serial download protocol (SDP) emulation. This allows to download complete images such as Toradex Easy Installer over USB SDP as well. This code uses the boot ROM provided boot information to reliably detect

[U-Boot] [PATCH v2 19/23] apalis_imx6: revert fuse value set in mfgr_fuse

2019-02-08 Thread Marcel Ziswiler
From: Max Krummenacher We have two commands to change the bootmode fuses: mfgr_fuse which set fuse 0/5 and 0/6 and updt_fuse which burns bit 4 of 0/5. Before BSP 2.6 we fused in mfgr_fuse 0x5062, which boots from the user partition of the eMMC. To workaround certain hangs we moved to fastboot

[U-Boot] [PATCH v2 01/23] apalis_imx6: get rid of obsolete nospl configurations

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Now with SPL long since being in place even for recovery using SDP finally get rid of those nospl configurations. Signed-off-by: Marcel Ziswiler --- Changes in v2: None .../toradex/apalis_imx6/1066mhz_4x128mx16.cfg | 47 -

[U-Boot] [PATCH v2 14/23] apalis_imx6: add distroboot support

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler 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_mmc1 run bootcmd_mmc2 run bootcmd_usb

[U-Boot] [PATCH v2 10/23] apalis_imx6: migrate pmic and regulator to using driver model

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Migrate PMIC and regulator to using driver model. Signed-off-by: Marcel Ziswiler --- Changes in v2: None configs/apalis_imx6_defconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/configs/apalis_imx6_defconfig b/configs/apalis_imx6_defconfig index

[U-Boot] [PATCH v2 18/23] apalis_imx6: disable ri and dcd irq in uarts

2019-02-08 Thread Marcel Ziswiler
From: Max Krummenacher If the UART is used in DTE mode the RI and DCD bits in UCR3 become irq enable bits. Both are set to enabled after reset and both likely are pending. Disable the bits also on UARTs not used in the boot loader to prevent an interrupt storm when Linux enables the UART

[U-Boot] [PATCH v2 00/23] apalis imx6 fixes, device tree enablement and driver model conversion

2019-02-08 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. Changes in v2: - Remove spurious mentioning of DFU MMC both

[U-Boot] [PATCH v2 2/4] stm32mp1: bsec: access with SMC for trusted boot

2019-02-08 Thread Patrick Delaunay
As BSEC is secure aware, all register access need to be done by TF-A for TRUSTED boot chain, when U-Boot is executed in normal world. Signed-off-by: Patrick Delaunay --- Changes in v2: None arch/arm/mach-stm32mp/bsec.c | 28 ++

[U-Boot] [PATCH v2 16/23] apalis_imx6: unify sd/mmc drive strength with linux kernel settings

2019-02-08 Thread Marcel Ziswiler
From: Max Krummenacher In the Linux device tree we use 40Ohm drive strength. So use the same value in U-Boot. Signed-off-by: Max Krummenacher Acked-by: Marcel Ziswiler --- Changes in v2: None board/toradex/apalis_imx6/apalis_imx6.c | 24 ++-- 1 file changed, 14

[U-Boot] [PATCH v2 13/23] apalis_imx6: drop CONFIG_OF_SYSTEM_SETUP

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler This doesn't do anything anymore, probably never did. Signed-off-by: Max Krummenacher Acked-by: Marcel Ziswiler --- Changes in v2: None board/toradex/apalis_imx6/apalis_imx6.c | 7 --- include/configs/apalis_imx6.h | 2 -- 2 files changed, 9

[U-Boot] [PATCH v2 12/23] apalis_imx6: migrate usb to using driver model

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Migrate USB to using driver model. Signed-off-by: Marcel Ziswiler --- Changes in v2: None board/toradex/apalis_imx6/apalis_imx6.c | 22 -- configs/apalis_imx6_defconfig | 1 + 2 files changed, 1 insertion(+), 22 deletions(-) diff --git

[U-Boot] [PATCH v2 23/23] board: apalis_imx6: check for and report ecc errors in fuses

2019-02-08 Thread Marcel Ziswiler
From: Gerard Salvatella The PMIC on Apalis iMX6 may have ECC errors in fuses that will prevent correct settings. Up to one bit error per fuse bank may be reported and corrected by the ECC logic. Two bit errors can only be reported. Signed-off-by: Gerard Salvatella Acked-by: Marcel Ziswiler

[U-Boot] [PATCH v2 11/23] apalis_imx6: migrate mmc and sata to using driver model

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Migrate MMC and SATA to using driver model. While at it also enable SCSI driver model. Signed-off-by: Marcel Ziswiler --- Changes in v2: None board/toradex/apalis_imx6/apalis_imx6.c | 98 +++-- configs/apalis_imx6_defconfig | 3 +

[U-Boot] [PATCH v2 15/23] apalis_imx6: use both sd/mmc interfaces for setsdupdate

2019-02-08 Thread Marcel Ziswiler
From: Max Krummenacher During porting to 2016.11 the check of a SD (mmc2) interface was dropped, this was unintended. Signed-off-by: Max Krummenacher Acked-by: Marcel Ziswiler --- Changes in v2: None include/configs/apalis_imx6.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-)

[U-Boot] [PATCH v2 06/23] apalis_imx6: migrate to using device tree

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Migrate to using device tree required for further driver model integration. Signed-off-by: Marcel Ziswiler --- Changes in v2: - Use GPL-2.0+ OR X11 instead of GPL-2.0 OR MIT to be more consistent with all our other device trees. - Further comments and white-space

[U-Boot] [PATCH v2 17/23] apalis_imx6: pf0100: reorder and cleanup message printing

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Keep debug code at the end of the function. Use a one line informational message for the PMIC only. Signed-off-by: Max Krummenacher Acked-by: Marcel Ziswiler --- Changes in v2: None board/toradex/apalis_imx6/pf0100.c | 110 +++-- 1 file

[U-Boot] [PATCH v2 05/23] apalis_imx6: remove obsolete USB_GADGET_MASS_STORAGE configuration

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Remove obsolete USB_GADGET_MASS_STORAGE configuration. Signed-off-by: Marcel Ziswiler --- Changes in v2: None include/configs/apalis_imx6.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/configs/apalis_imx6.h b/include/configs/apalis_imx6.h index

[U-Boot] [PATCH v2 07/23] apalis_imx6: clean-up and migrate gpios to using driver model

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Migrate GPIOs to using driver model, properly request backlight, Ethernet PHY reset, MMC/SD card detect and USB power GPIOs and also enable SION bit in pin muxing for Apalis, backlight, eMMC reset, Ethernet PHY reset and USB power enable GPIOs. While at it also update

[U-Boot] [PATCH v2 09/23] apalis_imx6: migrate i2c to using driver model

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Migrate I2C to using driver model. Signed-off-by: Marcel Ziswiler --- Changes in v2: - Also update copyright year in PMIC header file. - And drop compiler.h include. board/toradex/apalis_imx6/apalis_imx6.c | 88 +

[U-Boot] [PATCH v2 08/23] apalis_imx6: enable pin control driver

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Enable pin control driver as required for further driver model migration. Signed-off-by: Marcel Ziswiler --- Changes in v2: None configs/apalis_imx6_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/apalis_imx6_defconfig

[U-Boot] [PATCH v2 03/23] apalis_imx6: move console in env from header file to defconfig

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Move console in env from header file to defconfig. While at it also update copyright year and remove spurious comments and new lines. Signed-off-by: Marcel Ziswiler --- Changes in v2: - Remove spurious mentioning of DFU MMC both in subject as well as description.

[U-Boot] [PATCH v2 02/23] apalis_imx6: use distro defaults

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Use distro defaults and minimise default configuration again using savedefconfig. Signed-off-by: Marcel Ziswiler --- Changes in v2: None configs/apalis_imx6_defconfig | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git

[U-Boot] [PATCH v2 04/23] apalis_imx6: enable fit image, gpt, imx thermal, efi loader support

2019-02-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Enbale FIT image, GPT command, i.MX thermal and EFI loader support. Signed-off-by: Marcel Ziswiler --- Changes in v2: None configs/apalis_imx6_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configs/apalis_imx6_defconfig

[U-Boot] [PATCH] configs: am57xx_evm: define CONFIG_SPL_LOAD_FIT_ADDRESS for SPL-DFU

2019-02-08 Thread Bin Liu
Define CONFIG_SPL_LOAD_FIT_ADDRESS to enable SPL-DFU for am57x platform. Signed-off-by: Bin Liu --- include/configs/am57xx_evm.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/configs/am57xx_evm.h b/include/configs/am57xx_evm.h index d61fdf9f7a36..70aa4250605b 100644

  1   2   >