[U-Boot] [PATCH] mtd: add spi flash id s25f064l

2019-02-08 Thread Heiko Schocher
Add support for SPANSION s25f064l Signed-off-by: Heiko Schocher --- drivers/mtd/spi/spi-nor-ids.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index 3215e2431d..662c009764 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++ b/drive

[U-Boot] [RFC v2 00/15] dm, efi: integrate efi objects into DM

2019-02-08 Thread AKASHI Takahiro
# bootefi doesn't work with this patch set yet This patch set came from the past discussion[1] on my "removable device support" patch and is intended to be an attempt to integrate efi objects into u-boot's Driver Model as much seamlessly as possible. [1] https://lists.denx.de/pipermail/u-boot/20

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

2019-02-08 Thread AKASHI Takahiro
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 any efi objects, which are just part of it. All efi

[U-Boot] [RFC v2 03/15] efi_loader: image_loader: aligned with DM

2019-02-08 Thread AKASHI Takahiro
Signed-off-by: AKASHI Takahiro --- cmd/bootefi.c | 61 ++- include/efi_loader.h | 4 +- lib/efi_loader/efi_image_loader.c | 61 +++ 3 files changed, 67 insertions(+), 59 deletions(-) diff --git a/cmd/bootef

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

2019-02-08 Thread AKASHI Takahiro
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 b/include/efi_loader.h index 4d5e22564a72..5882cd7dd3b0 100644 --

[U-Boot] [RFC v2 05/15] efi_loader: convert efi_root_node to DM

2019-02-08 Thread AKASHI Takahiro
All the efi-specific objects, except for existing devices, will show up under "efi root node" device. Signed-off-by: AKASHI Takahiro --- include/efi_loader.h | 3 +++ lib/efi_loader/efi_root_node.c | 14 +- lib/efi_loader/efi_setup.c | 49 +-

[U-Boot] [RFC v2 06/15] efi_loader: device path: convert efi_device_path to DM

2019-02-08 Thread AKASHI Takahiro
Signed-off-by: AKASHI Takahiro --- include/efi_loader.h | 4 +- lib/efi_loader/efi_device_path.c | 136 ++--- lib/efi_loader/efi_device_path_to_text.c | 55 + lib/efi_loader/efi_device_path_utilities.c | 14 +++ 4 files changed, 164 in

[U-Boot] [RFC v2 04/15] efi_driver: rename UCLASS_EFI to UCLASS_EFI_DRIVER

2019-02-08 Thread AKASHI Takahiro
UCLASS_EFI will be reused later for efi root (EFI sub system itself). Signed-off-by: AKASHI Takahiro --- include/dm/uclass-id.h| 3 ++- lib/efi_driver/efi_block_device.c | 2 +- lib/efi_driver/efi_uclass.c | 10 +- 3 files changed, 8 insertions(+), 7 deletions(-) dif

[U-Boot] [RFC v2 08/15] efi_loader: console: convert efi console input/output to DM

2019-02-08 Thread AKASHI Takahiro
Signed-off-by: AKASHI Takahiro --- drivers/serial/serial-uclass.c | 6 lib/efi_loader/efi_console.c | 64 ++ lib/efi_loader/efi_setup.c | 3 -- 3 files changed, 56 insertions(+), 17 deletions(-) diff --git a/drivers/serial/serial-uclass.c b/drivers/se

[U-Boot] [RFC v2 07/15] efi_loader: unicode_collation: converted to DM

2019-02-08 Thread AKASHI Takahiro
Signed-off-by: AKASHI Takahiro --- lib/efi_loader/efi_unicode_collation.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/lib/efi_loader/efi_unicode_collation.c b/lib/efi_loader/efi_unicode_collation.c index 7f3ea3c77e4e..9b47693d3ee5 100644 --- a/lib/efi_loader/efi_unic

[U-Boot] [RFC v2 09/15] efi_loader: net: convert efi_net_obj to DM

2019-02-08 Thread AKASHI Takahiro
Signed-off-by: AKASHI Takahiro --- lib/efi_loader/efi_net.c | 50 +++--- lib/efi_loader/efi_setup.c | 5 net/eth-uclass.c | 5 3 files changed, 46 insertions(+), 14 deletions(-) diff --git a/lib/efi_loader/efi_net.c b/lib/efi_loader/efi_net

[U-Boot] [RFC v2 10/15] efi_loader: gop: convert efi_gop_obj to DM

2019-02-08 Thread AKASHI Takahiro
Signed-off-by: AKASHI Takahiro --- drivers/video/video-uclass.c | 9 + lib/efi_loader/efi_gop.c | 28 ++-- lib/efi_loader/efi_setup.c | 3 ++- 3 files changed, 33 insertions(+), 7 deletions(-) diff --git a/drivers/video/video-uclass.c b/drivers/video/video

[U-Boot] [RFC v2 13/15] drivers: align block device drivers with DM-efi integration

2019-02-08 Thread AKASHI Takahiro
Efi_disk_create() should be hook up at every creation of block device at each driver. Associated blk_desc must be properly set up before calling this function. Signed-off-by: AKASHI Takahiro --- common/usb_storage.c | 27 +-- drivers/scsi/scsi.c

[U-Boot] [RFC v2 12/15] efi_loader: disk: convert efi_disk_obj to DM

2019-02-08 Thread AKASHI Takahiro
efi_disk_create() will initialize efi_disk attributes for each device, either UCLASS_BLK or UCLASS_PARTITION, which will now be associated with efi_disk (EFI_BLOCK_IO_PROTOCOL). Currently (temporarily), efi_disk_obj structure is embedded into blk_desc to hold efi-specific attributes. Signed-off-b

[U-Boot] [RFC v2 15/15] cmd: efidebug: aligned with DM-efi integration

2019-02-08 Thread AKASHI Takahiro
Signed-off-by: AKASHI Takahiro --- cmd/efidebug.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/efidebug.c b/cmd/efidebug.c index 39398669e18f..e1c3628f72fb 100644 --- a/cmd/efidebug.c +++ b/cmd/efidebug.c @@ -8,6 +8,7 @@ #include #include #include +#include

[U-Boot] [RFC v2 11/15] dm: blk: add UCLASS_PARTITION

2019-02-08 Thread AKASHI Takahiro
UCLASS_PARTITION device will be created as a child node of UCLASS_BLK device. Signed-off-by: AKASHI Takahiro --- drivers/block/blk-uclass.c | 52 ++ include/dm/uclass-id.h | 1 + 2 files changed, 53 insertions(+) diff --git a/drivers/block/blk-uclass.c b

[U-Boot] [RFC v2 14/15] efi_driver: converted to DM

2019-02-08 Thread AKASHI Takahiro
Signed-off-by: AKASHI Takahiro --- lib/efi_driver/efi_block_device.c | 4 lib/efi_driver/efi_uclass.c | 27 ++- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/lib/efi_driver/efi_block_device.c b/lib/efi_driver/efi_block_device.c index acef1b20

Re: [U-Boot] [PATCH] cros: Expand the Chromium OS documentation

2019-02-08 Thread Tristan Bastian
Hi Simon, Simon Glass – Fri, 8. February 2019 5:12 > Hi Tristan, > > On Mon, 4 Feb 2019 at 08:01, Tristan Bastian wrote: > > > > Hi Simon, > > > > I'm using the nyan-big chromebook (tegra124). > > Is it possible to replace coreboot + depthcharge with just u-boot on the > internal spi flash? > >

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

2019-02-08 Thread Pankaj Bansal
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 diff --git a/drivers/net/ldpaa_eth/ldpaa_eth.c b/drivers/net/ldpaa_eth/ldpaa_eth.c index 73b7ba29df..34253e3924

[U-Boot] [PATCH] drivers: net: ldpaa_eth: check if the dpmac is enabled

2019-02-08 Thread Pankaj Bansal
some dpmacs in armv8a based freescale layerscape SOCs can be configured via both serdes(sgmii, xfi, xlaui etc) bits and via EC*_PMUX(rgmii) bits in RCW. e.g. dpmac 17 and 18 in LX2160A can be configured as SGMII from serdes bits and as RGMII via EC1_PMUX/EC2_PMUX bits Now if a dpmac is enabled by s

[U-Boot] [PATCH] cmd: date: Do not overwrite arguments

2019-02-08 Thread Roman Kapl
Arguments are const and belong to the caller. Calling date in a hush loop will yield different results from the second invocation. Signed-off-by: Roman Kapl --- cmd/date.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/date.c b/cmd/date.c index 1115b6c8d6..7fa950

Re: [U-Boot] [RFC v2 00/15] dm, efi: integrate efi objects into DM

2019-02-08 Thread Heinrich Schuchardt
On 2/8/19 9:15 AM, AKASHI Takahiro wrote: > # bootefi doesn't work with this patch set yet > > This patch set came from the past discussion[1] on my "removable device > support" patch and is intended to be an attempt to integrate efi objects > into u-boot's Driver Model as much seamlessly as po

Re: [U-Boot] [PATCH] mtd: add spi flash id s25f064l

2019-02-08 Thread Vignesh R
Hi, On 08/02/19 1:34 PM, Heiko Schocher wrote: > Add support for SPANSION s25f064l > s/s25f064l/s25fl064l as per: https://www.cypress.com/file/316661/download > Signed-off-by: Heiko Schocher > --- > > drivers/mtd/spi/spi-nor-ids.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/dr

[U-Boot] i.MX HAB: U-Boot loading from SPI NOR flash

2019-02-08 Thread Fernando AE
Hello all, I'm trying to make the High Assurance Boot (HAB) work in an iMX6UL-based board. Here is the context of my experiment: 0) Reference documentation: [1] Secure Boot on i.MX 50, i.MX 53, i.MX 6 and i.MX 7 Series using HABv4, Document Number: AN4581, Rev. 2 , 05/2018 [2] i.MX 6UltraLite Ap

Re: [U-Boot] [PATCH 00/11] sound: Add sound support for Nyan

2019-02-08 Thread Jon Hunter
On 08/02/2019 04:14, Simon Glass wrote: > Hi Tom, > > On Mon, 21 Jan 2019 at 16:43, Simon Glass wrote: >> >> Hi Tom, >> >> On Mon, 21 Jan 2019 at 10:46, Tom Warren wrote: >>> >>> Let's have Jon Hunter take a look, I'll take it in to tegra/master if he >>> acks it. >> >> OK thank you. For now I

[U-Boot] [PATCH v3 0/2] Load splash from FIT image (internal, external, offset)

2019-02-08 Thread Mark Jonas
We store a splash screen in SPI-NOR. We chose to use a FIT image as a container because we want to - store more than just the splash screen in SPI-NOR, - do not create a bunch of MTD partitions, - do not waste storage space, and - avoid the overhead of a real file system. In general U-Boot

[U-Boot] [PATCH v3 1/2] splash: Use splashfile instead of location->name

2019-02-08 Thread Mark Jonas
From: Leo Ruan The splash image could be loaded from different sources (e.g. sf, mmc) with different formats (e.g. raw, file-system). These sources are structured by a board dependent object 'splash_location'. To decide where is the splash image loaded, following environment variables are used to

[U-Boot] [PATCH v3 2/2] splash: Load internal and external data from FIT

2019-02-08 Thread Mark Jonas
From: Leo Ruan The FIT image could contain the splash data in 3 different structure: - The splash data is embedded in FIT image (internal) In this case, the property 'data' presents in FIT image header. And internal information 'start' and 'end' represent the location and size of splash dat

[U-Boot] [PATCH v1 2/2] configs: Enable CONFIG_BLK in am57xx_evm and am57xx_hs_evm

2019-02-08 Thread Jean-Jacques Hiblot
Enable CONFIG_DM_SCSI and CONFIG_BLK. Signed-off-by: Jean-Jacques Hiblot --- configs/am57xx_evm_defconfig| 5 +++-- configs/am57xx_hs_evm_defconfig | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/configs/am57xx_evm_defconfig b/configs/am57xx_evm_defconfig index 84

[U-Boot] [PATCH v1 1/2] configs: k2g_evm: Enable CONFIG_BLK

2019-02-08 Thread Jean-Jacques Hiblot
CONFIG_BLK can be safely enabled as DM_MMC and DM_USB are already enabled. Signed-off-by: Jean-Jacques Hiblot --- configs/k2g_evm_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/k2g_evm_defconfig b/configs/k2g_evm_defconfig index c518b707a5..838b6f14b6 100644 --- a/configs/

Re: [U-Boot] [PATCH v2 0/7] Align U-Boot I2C DM bus ID handling with Linux

2019-02-08 Thread Heiko Schocher
Hello Michael, Am 31.01.2019 um 16:30 schrieb Michal Simek: U-Boot with I2C_DM enabled is not capable to list i2c busses connected to i2c mux. For getting this work there is a need to find out highest alias ID and use this uniq number for new buses connected to I2C mux. This series is making thi

[U-Boot] [PATCH v2] mtd: add spi flash id s25fl064l

2019-02-08 Thread Heiko Schocher
Add support for SPANSION s25fl064l Signed-off-by: Heiko Schocher --- Changes in v2: - s/s25f064l/s25fl064l as Vignesh R suggested drivers/mtd/spi/spi-nor-ids.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index 3215e2431d..

Re: [U-Boot] [PATCH v1 2/2] configs: Enable CONFIG_BLK in am57xx_evm and am57xx_hs_evm

2019-02-08 Thread Lokesh Vutla
On 08/02/19 3:25 PM, Jean-Jacques Hiblot wrote: > Enable CONFIG_DM_SCSI and CONFIG_BLK. > > Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.d

Re: [U-Boot] [PATCH v3 2/5] dts: switch spi-flash to jedec, spi-nor compatible

2019-02-08 Thread Patrick DELAUNAY
Hi Neil, > From: U-Boot On Behalf Of Neil Armstrong > Sent: mardi 15 janvier 2019 13:59 > To: ja...@openedev.com; u-boot@lists.denx.de; > simon.k.r.goldschm...@gmail.com > Cc: tr...@konsulko.com; uboot-snps-...@synopsys.com; uboot-stm32@st-md- > mailman.stormreply.com; macp...@andestech.com; Stef

Re: [U-Boot] [PATCH v1 1/2] configs: k2g_evm: Enable CONFIG_BLK

2019-02-08 Thread Lokesh Vutla
On 08/02/19 3:25 PM, Jean-Jacques Hiblot wrote: > CONFIG_BLK can be safely enabled as DM_MMC and DM_USB are already enabled. > > Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh ___ U-Boot mailing list U-Boot

Re: [U-Boot] [PATCH v3 5/5] doc: device-tree-bindings: switch from spi-flash to jedec, spi-nor

2019-02-08 Thread Patrick DELAUNAY
Hi Neil, > From: U-Boot On Behalf Of Neil Armstrong > Sent: mardi 15 janvier 2019 13:59 > To: ja...@openedev.com; u-boot@lists.denx.de; > simon.k.r.goldschm...@gmail.com > Cc: uboot-st...@st-md-mailman.stormreply.com; tr...@konsulko.com > Subject: [U-Boot] [PATCH v3 5/5] doc: device-tree-bindings

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

2019-02-08 Thread Marek Vasut
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 available in the Git repository at: git://git.denx.de/u-boot-sh.git master

[U-Boot] [PATCH v6] lx2160aqds : Add support for LX2160AQDS platform

2019-02-08 Thread Pankaj Bansal
LX2160AQDS is a development board that supports LX2160A family SoCs. This patch add base support for this board. Signed-off-by: Wasim Khan Signed-off-by: Sriram Dash Signed-off-by: Pankaj Bansal --- Notes: This patch depends on following patches: http://patchwork.ozlabs.org/patch/1

Re: [U-Boot] [PATCH 2/3] ARM: rmobile: Add basic PSCI support for r8a7790 SoC

2019-02-08 Thread Oleksandr
On 05.02.19 20:55, Marek Vasut wrote: Hi Marek On 1/31/19 6:38 PM, Oleksandr Tyshchenko wrote: From: Oleksandr Tyshchenko Also enable PSCI support for Stout and Lager boards where actually the r8a7790 SoC is installed. All secondary CPUs will be switched to a non-secure HYP mode after boot

Re: [U-Boot] [PATCH v2 0/7] Align U-Boot I2C DM bus ID handling with Linux

2019-02-08 Thread Michal Simek
On 08. 02. 19 10:57, Heiko Schocher wrote: > Hello Michael, > > Am 31.01.2019 um 16:30 schrieb Michal Simek: >> U-Boot with I2C_DM enabled is not capable to list i2c busses connected >> to i2c mux. For getting this work there is a need to find out highest >> alias ID and use this uniq number for n

Re: [U-Boot] [PATCH v2 0/7] Align U-Boot I2C DM bus ID handling with Linux

2019-02-08 Thread Michal Simek
On 08. 02. 19 12:14, Michal Simek wrote: > On 08. 02. 19 10:57, Heiko Schocher wrote: >> Hello Michael, >> >> Am 31.01.2019 um 16:30 schrieb Michal Simek: >>> U-Boot with I2C_DM enabled is not capable to list i2c busses connected >>> to i2c mux. For getting this work there is a need to find out hig

Re: [U-Boot] [PATCH] test: fs: Add filesystem integrity checks

2019-02-08 Thread Jean-Jacques Hiblot
+ Simon On 05/02/2019 15:48, Jean-Jacques Hiblot wrote: On 05/02/2019 14:45, Tom Rini wrote: On Mon, Feb 04, 2019 at 12:19:19PM +0100, Jean-Jacques Hiblot wrote: We need to make sure that file writes,file creation, etc. are properly performed and do not corrupt the filesystem. To help with th

Re: [U-Boot] [PATCH 1/3] ARM: rmobile: Switch CPU to non-secure HYP mode for r8a7790 based boards

2019-02-08 Thread Oleksandr
On 07.02.19 19:19, Oleksandr wrote: On 07.02.19 17:49, Marek Vasut wrote: On 2/7/19 4:28 PM, Oleksandr wrote: On 05.02.19 20:48, Marek Vasut wrote: Hi Marek Hi, Hi, On 1/31/19 6:38 PM, Oleksandr Tyshchenko wrote: From: Oleksandr Tyshchenko Both Lager and Stout boards are based on r

Re: [U-Boot] [PATCH v3 1/2] splash: Use splashfile instead of location->name

2019-02-08 Thread Melin Tomas
Hi, On 2/8/19 11:51 AM, Mark Jonas wrote: > diff --git a/common/splash_source.c b/common/splash_source.c > index 62763b9..e1e73db 100644 > --- a/common/splash_source.c > +++ b/common/splash_source.c > @@ -303,6 +303,7 @@ static int splash_load_fit(struct splash_location > *location, u32 bmp_load_

Re: [U-Boot] [PATCH 3/3] ARM: rmobile: Add possibility to debug main PSCI commands

2019-02-08 Thread Oleksandr
On 05.02.19 20:56, Marek Vasut wrote: Hi Marek On 1/31/19 6:38 PM, Oleksandr Tyshchenko wrote: From: Oleksandr Tyshchenko Also take care of the fact that Lager and Stout boards use different serial interface for console. This describes something else than $subject , please split the patchs

Re: [U-Boot] [PATCH 1/2] fdt: Allow indicating a node is for U-Boot proper only

2019-02-08 Thread Patrick DELAUNAY
Hi Marek, > From: Marek Vasut > Sent: jeudi 7 février 2019 18:48 > > On 2/7/19 6:40 PM, Patrick DELAUNAY wrote: > > Hi Marek, > > > >> From: Marek Vasut > >> Sent: mardi 5 février 2019 09:55 > >> > >> On 2/4/19 3:40 PM, Simon Glass wrote: > >>> On Mon, 4 Feb 2019 at 03:15, Patrick Delaunay > >>

Re: [U-Boot] [PATCH v4 00/20] SF: Migrate to Linux SPI NOR framework

2019-02-08 Thread Vignesh R
On 07/02/19 6:13 PM, Jagan Teki wrote: > On Tue, Feb 5, 2019 at 11:29 AM Vignesh R wrote: [...] >> >> Vignesh R (20): >> configs: Move CONFIG_SPI_FLASH into defconfigs >> bitops: Fix GENMASK definition for Sandbox >> spi: spi-mem: Allow use of spi_mem_exec_op for all SPI modes >> spi: sp

Re: [U-Boot] Booting linux zImage on vexpress-a15

2019-02-08 Thread Andre Wagner
Hi Liviu, I got the qemu + uboot + zImage running now! The solution was to use qemu version 3.1 like you and not the ancient 2.11 version of Ubuntu 18.04. Thank you very much for your support. I was completely lost in the debugging of linux, qemu and u-boot... Greetings, André On 07.02.1

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

2019-02-08 Thread Tom Rini
On Mon, Jan 28, 2019 at 11:25:05AM +0100, Patrick Delaunay wrote: > 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

Re: [U-Boot] [PATCH v2] arm: dts: am33xx: introduce 'am33xx-u-boot.dtsi'

2019-02-08 Thread Felix Brack
Hi Hannes, On 07.02.19 18:14, Hannes Schmelzer wrote: > > On 2/7/19 5:47 PM, Felix Brack wrote: >> Hi Hannes, > Hi Felix, >> On 06.02.19 12:49, Hannes Schmelzer wrote: >>> commit fdce9d35dc36 ("arm: dts: am33xx: Sync dts with Linux 4.20.0") >>> did remove the "u-boot,dm-spl" flag from the 'ocp' b

Re: [U-Boot] [PATCH 6/6] ARM: MediaTek: Add support for MT8516 SoC

2019-02-08 Thread Tom Rini
On Mon, Feb 04, 2019 at 11:58:46AM +0100, Fabien Parent wrote: > Add support for MediaTek MT8516 SoC. This include the file > that will initialize the SoC after boot and its device tree. > > Signed-off-by: Fabien Parent [snip] > + topckgen: clock-controller@1000 { > + compati

Re: [U-Boot] cmd: image_info: Add checking of default FIT config

2019-02-08 Thread Tom Rini
On Fri, Jan 18, 2019 at 05:17:35PM +, Bryan O'Donoghue wrote: > This patch adds a check for the default FIT config to iminfo. Once applied > any signing of the config will show a pass fail similar to rsa+/rsa-. > > Output looks like this: > >Hash(es) for Image 0 (kernel@1): sha1+ >Ha

[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 --

[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 b/configs/apali

[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 a/configs/apalis_imx6_d

[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. co

[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 + board/toradex/apalis_imx6/pf010

[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 b/configs/apalis_imx6_defc

[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 copyr

[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 a1ba16fc

[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 changed

[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 clean

[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 + includ

[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 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 a

[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 insertio

[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 deletions(-)

[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 ++ arch/arm/mach-stm32mp/include/mach/st

[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 in

[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 interru

[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 60c4d97

[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 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 mo

[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 - .../toradex/apalis_imx6/1066mhz_4x256m

[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

[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 a/include/configs/apalis

[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 for

[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 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 https://github.com/ARM-software/arm-t

[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 t

[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 ++ arch/arm/mach-stm

[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 t

[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 arch/arm/mach-stm32mp/include/m

[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 s

[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 g

[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 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 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 https://github.com/ARM-software/arm-t

[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 a/co

[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 b/configs/

[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, add

[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 100

[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 a/board/toradex/

[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 i

[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 10

[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 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 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

  1   2   >