Re: [U-Boot] [EXT] Re: [PATCH 2/2] fsl_qspi: Improve QSPI driver to incorporate 4 byte commands

2019-04-30 Thread Ashish Kumar
> -Original Message- > From: U-Boot On Behalf Of Schrempf Frieder > Sent: Tuesday, April 30, 2019 1:14 PM > To: Vignesh Raghavendra ; Rajat Srivastava > ; u-boot@lists.denx.de; ja...@openedev.com > Subject: [EXT] Re: [U-Boot] [PATCH 2/2] fsl_qspi: Improve QSPI driver to > incorporate 4

Re: [U-Boot] Pull request: u-boot-net.git master

2019-04-30 Thread Tom Rini
On Wed, May 01, 2019 at 12:56:30AM +, Joe Hershberger wrote: > On Tue, Apr 30, 2019 at 4:29 PM Tom Rini wrote: > > > > On Tue, Apr 30, 2019 at 09:15:33PM +, Joe Hershberger wrote: > > > On Tue, Mar 19, 2019 at 5:41 PM Tom Rini wrote: > > > > > > > > On Tue, Mar 12, 2019 at 01:15:46PM

Re: [U-Boot] Pull request: u-boot-net.git master

2019-04-30 Thread Joe Hershberger
On Tue, Apr 30, 2019 at 4:29 PM Tom Rini wrote: > > On Tue, Apr 30, 2019 at 09:15:33PM +, Joe Hershberger wrote: > > On Tue, Mar 19, 2019 at 5:41 PM Tom Rini wrote: > > > > > > On Tue, Mar 12, 2019 at 01:15:46PM -0500, Joe Hershberger wrote: > > > > > > > Hi Tom, > > > > > > > > These

Re: [U-Boot] [PATCH 1/2 v2] fit: Support compression for non-kernel components (e.g. FDT)

2019-04-30 Thread Julius Werner
On Tue, Apr 30, 2019 at 11:25 AM Simon Goldschmidt wrote: > > Am 18.04.2019 um 23:08 schrieb Julius Werner: > > This patch adds support for compressing non-kernel image nodes in a FIT > > image (kernel nodes could already be compressed previously). This can > > reduce the size of FIT images and

Re: [U-Boot] [RESEND PATCH 0/3] arm: Introduce writel/readl_relaxed accessors

2019-04-30 Thread André Przywara
On 29/04/2019 18:16, Jagan Teki wrote: Hi, > On Sun, Feb 10, 2019 at 9:49 PM Andre Przywara wrote: >> >> Hi, this is a resend of what I posted some weeks ago, just adding the >> missing Signed-off-by: in patch 2/3, as pointed out by Philipp. I used >> the opportunity to add his Reviewed-by:

Re: [U-Boot] [PATCH v2 2/2] RISCV: image: Parse Image.gz support in booti.

2019-04-30 Thread Atish Patra
On 4/30/19 2:42 PM, Marek Vasut wrote: On 4/30/19 10:38 PM, Atish Patra wrote: On 4/30/19 12:11 PM, Marek Vasut wrote: On 4/30/19 8:13 PM, Atish Patra wrote: On 4/30/19 2:52 AM, Marek Vasut wrote: On 4/30/19 3:27 AM, Atish Patra wrote: [...] Yes. FIT image parsing can be done in that way.

Re: [U-Boot] [PATCH v2 2/2] RISCV: image: Parse Image.gz support in booti.

2019-04-30 Thread Marek Vasut
On 4/30/19 10:38 PM, Atish Patra wrote: > On 4/30/19 12:11 PM, Marek Vasut wrote: >> On 4/30/19 8:13 PM, Atish Patra wrote: >>> On 4/30/19 2:52 AM, Marek Vasut wrote: On 4/30/19 3:27 AM, Atish Patra wrote: [...] >>> Yes. FIT image parsing can be done in that way. However,

Re: [U-Boot] cyclone5 reboot: warm or cold reset?

2019-04-30 Thread Westergreen, Dalon
On Tue, 2019-04-30 at 22:09 +0200, Marek Vasut wrote: > On 4/30/19 10:05 PM, Simon Goldschmidt wrote: > > Am 30.04.2019 um 22:01 schrieb Marek Vasut: > > > On 4/30/19 9:19 PM, Simon Goldschmidt wrote: > > > > Am 30.04.2019 um 21:08 schrieb Marek Vasut: > > > > > On 4/30/19 8:56 PM, Simon

Re: [U-Boot] Pull request: u-boot-net.git master

2019-04-30 Thread Tom Rini
On Tue, Apr 30, 2019 at 09:15:33PM +, Joe Hershberger wrote: > On Tue, Mar 19, 2019 at 5:41 PM Tom Rini wrote: > > > > On Tue, Mar 12, 2019 at 01:15:46PM -0500, Joe Hershberger wrote: > > > > > Hi Tom, > > > > > > These patches passed the CI build here: > > >

Re: [U-Boot] [PATCH 3/3] common: bouncebuf: handle address in sram for rockchip platform

2019-04-30 Thread Christoph Müllner
Hi Kever, On 4/2/19 10:46 AM, Kever Yang wrote: > Rockchip SOC's mmc controller does not support read data > from mmc to sram, we need a bounce buffer(in sdram), and then > copy to sram. what exactly is the limitation here? I mean a DMA engine does not care where it is copying to. Additionally

Re: [U-Boot] Pull request: u-boot-net.git master

2019-04-30 Thread Joe Hershberger
On Tue, Mar 19, 2019 at 5:41 PM Tom Rini wrote: > > On Tue, Mar 12, 2019 at 01:15:46PM -0500, Joe Hershberger wrote: > > > Hi Tom, > > > > These patches passed the CI build here: > > https://travis-ci.org/jhershbe/u-boot/builds/501807294 > > > > The following changes since commit

Re: [U-Boot] [PATCH v4 5/5] riscv: configs: AE350 will use CONFIG_OF_SEPARATE when boots from flash

2019-04-30 Thread Auer, Lukas
Hi Rick, On Tue, 2019-04-30 at 13:49 +0800, Andes wrote: > From: Rick Chen > > When AE350 boots from flash, use CONFIG_OF_SEPARATE instead of > CONFIG_OF_BOARD. > > Also remove unused code about prior_stage_fdt_address. > And modify CONFIG_SYS_FDT_BASE as flash address. > > Signed-off-by:

Re: [U-Boot] [PATCH v4 3/5] riscv: prior_stage_fdt_address should only be used when OF_PRIOR_STAGE is enabled

2019-04-30 Thread Auer, Lukas
On Tue, 2019-04-30 at 13:49 +0800, Andes wrote: > From: Rick Chen > > This patch will fix prior_stage_fdt_address write failure problem, when > AE350 boots from flash. > > When AE350 boots from flash, prior_stage_fdt_address will be flash > address, we shall avoid it to be written. > >

Re: [U-Boot] [PATCH 8/8] spi: Kconfig: Mark LPC32XX_SSP has BROKEN

2019-04-30 Thread Vladimir Zapolskiy
Hi Jagan, On 04/28/2019 11:48 PM, Jagan Teki wrote: > Mark LPC32XX_SSP has BROKEN, this so the resulting build shows > warning for broken configuration enabled and associated code > will remove in v2019.07 release. > > Cc: Vladimir Zapolskiy > Cc: Albert ARIBAUD > Signed-off-by: Jagan Teki >

Re: [U-Boot] [PATCH v2 2/2] RISCV: image: Parse Image.gz support in booti.

2019-04-30 Thread Atish Patra
On 4/30/19 12:11 PM, Marek Vasut wrote: On 4/30/19 8:13 PM, Atish Patra wrote: On 4/30/19 2:52 AM, Marek Vasut wrote: On 4/30/19 3:27 AM, Atish Patra wrote: [...] Yes. FIT image parsing can be done in that way. However, the idea was here to load Image.gz directly. Image.gz is default

[U-Boot] [BUG] test_avb_persistent_values() fails

2019-04-30 Thread Heinrich Schuchardt
Hello Igor, when I run `make tests` with current origin/master commit a69120a0d7c8d4044cdaceea9eb03913ba4e49c7 I get an error. I think your submitted this test recently: commit fc1fe01b08ce ("avb: add support for named persistent values") u_boot_console =

Re: [U-Boot] [PATCH] Convert CONFIG_SUPPORT_EMMC_BOOT to Kconfig

2019-04-30 Thread Sébastien Szymanski
Hi, On 4/19/19 6:38 AM, Alex Kiernan wrote: > This converts the following to Kconfig: >CONFIG_SUPPORT_EMMC_BOOT > > Signed-off-by: Alex Kiernan > --- > Green travis build: > > https://travis-ci.org/akiernan/u-boot/builds/521906850 > > Testing affected boards for configuration changes: >

Re: [U-Boot] cyclone5 reboot: warm or cold reset?

2019-04-30 Thread Marek Vasut
On 4/30/19 10:05 PM, Simon Goldschmidt wrote: > Am 30.04.2019 um 22:01 schrieb Marek Vasut: >> On 4/30/19 9:19 PM, Simon Goldschmidt wrote: >>> Am 30.04.2019 um 21:08 schrieb Marek Vasut: On 4/30/19 8:56 PM, Simon Goldschmidt wrote: > Hi all, Hi, > I added some of those

Re: [U-Boot] cyclone5 reboot: warm or cold reset?

2019-04-30 Thread Simon Goldschmidt
Am 30.04.2019 um 22:01 schrieb Marek Vasut: On 4/30/19 9:19 PM, Simon Goldschmidt wrote: Am 30.04.2019 um 21:08 schrieb Marek Vasut: On 4/30/19 8:56 PM, Simon Goldschmidt wrote: Hi all, Hi, I added some of those I think worth discussing this. I was chasing a reboot problem on one of our

Re: [U-Boot] cyclone5 reboot: warm or cold reset?

2019-04-30 Thread Marek Vasut
On 4/30/19 9:19 PM, Simon Goldschmidt wrote: > Am 30.04.2019 um 21:08 schrieb Marek Vasut: >> On 4/30/19 8:56 PM, Simon Goldschmidt wrote: >>> Hi all, >> >> Hi, >> >>> I added some of those I think worth discussing this. >>> >>> I was chasing a reboot problem on one of our cyclone5 boards today.

Re: [U-Boot] Booting MX6 via Serial Download after DM conversion

2019-04-30 Thread Tom Rini
On Tue, Apr 30, 2019 at 02:39:17PM -0300, Fabio Estevam wrote: > Hi Tom, > > On Mon, Apr 29, 2019 at 2:57 PM Tom Rini wrote: > > > imx_usb is doing some checking of the second binary it sends along? > > That sounds odd to start with, is there some specific history there? > > My understanding

Re: [U-Boot] [PATCH V2 1/2] usb: ohci: ohci-da8xx: Enable da850-ohci driver with DM support

2019-04-30 Thread Marek Vasut
On 4/30/19 12:21 PM, Adam Ford wrote: [..] > +#if CONFIG_IS_ENABLED(DM_USB) > +static int ohci_da8xx_probe(struct udevice *dev) > +{ > + struct ohci_regs *regs = (struct ohci_regs *)devfdt_get_addr(dev); > + struct da8xx_ohci *priv = dev_get_priv(dev); > + int i, err, ret, clock_nb; >

Re: [U-Boot] cyclone5 reboot: warm or cold reset?

2019-04-30 Thread Simon Goldschmidt
Am 30.04.2019 um 21:08 schrieb Marek Vasut: On 4/30/19 8:56 PM, Simon Goldschmidt wrote: Hi all, Hi, I added some of those I think worth discussing this. I was chasing a reboot problem on one of our cyclone5 boards today. That board boots from a "n25q256a" qspi flash. Up to now, U-Boot

Re: [U-Boot] [PATCH v2 2/2] RISCV: image: Parse Image.gz support in booti.

2019-04-30 Thread Marek Vasut
On 4/30/19 8:13 PM, Atish Patra wrote: > On 4/30/19 2:52 AM, Marek Vasut wrote: >> On 4/30/19 3:27 AM, Atish Patra wrote: >> >> [...] >> > Yes. FIT image parsing can be done in that way. However, the idea was > here to load Image.gz directly. Image.gz is default compressed Linux >

Re: [U-Boot] cyclone5 reboot: warm or cold reset?

2019-04-30 Thread Marek Vasut
On 4/30/19 8:56 PM, Simon Goldschmidt wrote: > Hi all, Hi, > I added some of those I think worth discussing this. > > I was chasing a reboot problem on one of our cyclone5 boards today. That > board boots from a "n25q256a" qspi flash. Up to now, U-Boot configures > the boot ROM to just jump to

Re: [U-Boot] [PATCH 4/4] lib: uuid: Improve randomness of uuid values on RANDOM_UUID=y

2019-04-30 Thread Heinrich Schuchardt
On 4/30/19 4:53 AM, Eugeniu Rosca wrote: The random uuid values (enabled via CONFIG_RANDOM_UUID=y) on our platform are always the same. Below is consistent on each cold boot: => ### interrupt autoboot => env default -a; gpt write mmc 1 $partitions; print uuid_gpt_misc ...

[U-Boot] cyclone5 reboot: warm or cold reset?

2019-04-30 Thread Simon Goldschmidt
Hi all, I added some of those I think worth discussing this. I was chasing a reboot problem on one of our cyclone5 boards today. That board boots from a "n25q256a" qspi flash. Up to now, U-Boot configures the boot ROM to just jump to OCRAM when rebooting and hope that the SPL is still there

Re: [U-Boot] [PATCH 1/2 v2] fit: Support compression for non-kernel components (e.g. FDT)

2019-04-30 Thread Simon Goldschmidt
Am 18.04.2019 um 23:08 schrieb Julius Werner: This patch adds support for compressing non-kernel image nodes in a FIT image (kernel nodes could already be compressed previously). This can reduce the size of FIT images and therefore improve boot times (especially when an image bundles many

Re: [U-Boot] [PATCH 1/2 v2] fit: Support compression for non-kernel components (e.g. FDT)

2019-04-30 Thread Simon Goldschmidt
Am 30.04.2019 um 06:05 schrieb Simon Goldschmidt: Julius Werner mailto:jwer...@chromium.org>> schrieb am Di., 30. Apr. 2019, 02:38: > However, compared to my above mentioned RFC patch, this here somehow > fails when loading something from the image, e.g. using the cmd 'fpga >

Re: [U-Boot] [PATCH v2 2/2] RISCV: image: Parse Image.gz support in booti.

2019-04-30 Thread Atish Patra
On 4/30/19 2:52 AM, Marek Vasut wrote: On 4/30/19 3:27 AM, Atish Patra wrote: [...] Yes. FIT image parsing can be done in that way. However, the idea was here to load Image.gz directly. Image.gz is default compressed Linux kernel image format in RISC-V. Sigh, and the image header is

Re: [U-Boot] [PATCH 3/4] cmd: gpt: fix and tidy up help message

2019-04-30 Thread Heinrich Schuchardt
On 4/30/19 4:53 AM, Eugeniu Rosca wrote: Apply the following changes: - Guard the 'gpt read' command by 'ifdef CONFIG_CMD_GPT_RENAME', since 'gpt read' is not available on CMD_GPT_RENAME=n - Prefix the {read,swap,rename} commands with one space for consistency - Prefix the 'guid'

Re: [U-Boot] [PATCH 2/4] disk: efi: Fix memory leak on 'gpt verify'

2019-04-30 Thread Heinrich Schuchardt
On 4/30/19 4:53 AM, Eugeniu Rosca wrote: Below is what happens on R-Car H3ULCB-KF using clean U-Boot v2019.04-00810-g6aebc0d11a10 and r8a7795_ulcb_defconfig: => ### interrupt autoboot => gpt verify mmc 1 No partition list provided - only basic check Verify GPT: success! => ### keep

Re: [U-Boot] [PATCH 1/4] disk: efi: Fix memory leak on 'gpt guid'

2019-04-30 Thread Heinrich Schuchardt
On 4/30/19 4:53 AM, Eugeniu Rosca wrote: Below is what happens on R-Car H3ULCB-KF using clean U-Boot v2019.04-00810-g6aebc0d11a10 and r8a7795_ulcb_defconfig: => ### interrupt autoboot => gpt guid mmc 1 21200400-0804-0146-9dcc-a8c51255994f success! => ### keep calling 'gpt guid mmc 1'

Re: [U-Boot] Booting MX6 via Serial Download after DM conversion

2019-04-30 Thread Fabio Estevam
Hi Tom, On Mon, Apr 29, 2019 at 2:57 PM Tom Rini wrote: > imx_usb is doing some checking of the second binary it sends along? > That sounds odd to start with, is there some specific history there? My understanding is that imx_usb_loader expects to find a valid IVT entry. After the conversion

Re: [U-Boot] [PATCH 2/2] ti: Add am335x-pocketbeagle to am335x_evm_defconfig.

2019-04-30 Thread Tom Rini
On Tue, Apr 30, 2019 at 10:02:11AM -0700, Vagrant Cascadian wrote: > On 2019-04-30, Tom Rini wrote: > > On Mon, Apr 29, 2019 at 04:12:30PM -0700, Vagrant Cascadian wrote: > > > >> Add am335x-pocketbeagle to CONFIG_OF_LIST in am335x_evm_defconfig. > >> > >> Signed-off-by: Vagrant Cascadian > > >

Re: [U-Boot] [PATCH] i2c: mxc: Hide kconfig based control in DM_I2C mode

2019-04-30 Thread Trent Piepho
On Tue, 2019-04-30 at 09:20 +0200, Heiko Schocher wrote: > > Am 12.04.2019 um 21:19 schrieb Trent Piepho: > > > These options only apply when not using DM_I2C. When using device > > > trees, the dt will enable and control the speeds of the I2C > > > controller(s) and these configuration options

Re: [U-Boot] [PATCH] Makefile: Create single image for imx6 socs based boards

2019-04-30 Thread Stefano Babic
On 30/04/19 19:08, Jagan Teki wrote: > On Tue, Apr 30, 2019 at 10:30 PM Stefano Babic wrote: >> >> On 30/04/19 18:56, Jagan Teki wrote: >>> Hi Stefano, >>> >>> On Tue, Apr 30, 2019 at 9:36 PM Stefano Babic wrote: Hi Shyam, On 30/04/19 12:33, Shyam Saini wrote: > IMX6

Re: [U-Boot] [PATCH] Makefile: Create single image for imx6 socs based boards

2019-04-30 Thread Jagan Teki
On Tue, Apr 30, 2019 at 10:30 PM Stefano Babic wrote: > > On 30/04/19 18:56, Jagan Teki wrote: > > Hi Stefano, > > > > On Tue, Apr 30, 2019 at 9:36 PM Stefano Babic wrote: > >> > >> Hi Shyam, > >> > >> On 30/04/19 12:33, Shyam Saini wrote: > >>> IMX6 platform has two stage boot loaders like SPL

Re: [U-Boot] [PATCH 2/2] ti: Add am335x-pocketbeagle to am335x_evm_defconfig.

2019-04-30 Thread Vagrant Cascadian
On 2019-04-30, Tom Rini wrote: > On Mon, Apr 29, 2019 at 04:12:30PM -0700, Vagrant Cascadian wrote: > >> Add am335x-pocketbeagle to CONFIG_OF_LIST in am335x_evm_defconfig. >> >> Signed-off-by: Vagrant Cascadian > > We need to update include/configs/am335x_evm.h too so that it detects > this

Re: [U-Boot] [PATCH] Makefile: Create single image for imx6 socs based boards

2019-04-30 Thread Stefano Babic
On 30/04/19 18:56, Jagan Teki wrote: > Hi Stefano, > > On Tue, Apr 30, 2019 at 9:36 PM Stefano Babic wrote: >> >> Hi Shyam, >> >> On 30/04/19 12:33, Shyam Saini wrote: >>> IMX6 platform has two stage boot loaders like SPL and >>> U-Boot proper. For each stage we need to burn the image >>> on to

Re: [U-Boot] [PATCH] Makefile: Create single image for imx6 socs based boards

2019-04-30 Thread Jagan Teki
Hi Stefano, On Tue, Apr 30, 2019 at 9:36 PM Stefano Babic wrote: > > Hi Shyam, > > On 30/04/19 12:33, Shyam Saini wrote: > > IMX6 platform has two stage boot loaders like SPL and > > U-Boot proper. For each stage we need to burn the image > > on to flash with respective offsets. > > > > This

Re: [U-Boot] [PATCH] test/py: don't use mmc_rd config for other mmc tests

2019-04-30 Thread Marek Vasut
On 4/30/19 5:29 PM, Stephen Warren wrote: > On 4/16/19 4:04 PM, Stephen Warren wrote: >> From: Stephen Warren >> >> Fix test_mmc_dev(), test_mmc_rescan(), test_mmc_info() not to use the >> same configuration data that test_mmc_rd() does. Doing so causes the >> following issues: >> >> * The new

[U-Boot] [PATCH] board: stm32mp1: Update power supply check via USB TYPE-C

2019-04-30 Thread Patrice Chotard
Add 2 new checks: - detect when USB TYPE-C cable is not plugged correctly. In this case, GND and VBUS pins are connected but not CC1 and CC2 pins. - detect is an USB Type-C charger supplies more than 3 Amps which is not compliant with the USB Type-C specification In these 2

[U-Boot] Pull request: u-boot-imx u-boot-imx-20190426

2019-04-30 Thread Stefano Babic
Hi Tom, next chunk of patches, another big chunk will follow. Please pull from u-boot-imx, thanks ! Travis: --- https://travis-ci.org/sbabic/u-boot-imx/builds/524580462 The following changes since commit 3fbd2dce351ab5d40d3244f26bd713caa4f826e2: Merge branch '2019-04-22-master-imports'

[U-Boot] [PATCH 2/3] spi: stm32: Add Serial Peripheral Interface driver for STM32MP

2019-04-30 Thread Patrice Chotard
Add SPI driver support for STM32MP SoCs family. Signed-off-by: Patrice Chotard --- MAINTAINERS | 1 + drivers/spi/Kconfig | 8 + drivers/spi/Makefile| 1 + drivers/spi/stm32_spi.c | 615 4 files changed, 625

[U-Boot] [PATCH 3/3] configs: stm32mp15: Enable SPI relative flags

2019-04-30 Thread Patrice Chotard
Enable STM32_SPI, SPI, DM_SPI and CMD_SPI flags. This enables the SPI support for STM32MP15. Signed-off-by: Patrice Chotard --- configs/stm32mp15_basic_defconfig | 4 configs/stm32mp15_trusted_defconfig | 4 2 files changed, 8 insertions(+) diff --git

[U-Boot] [PATCH 1/3] clk: stm32mp1: Add SPI1 clock entry

2019-04-30 Thread Patrice Chotard
Add missing SPI1 clock needed by SPI1 instance. Signed-off-by: Patrice Chotard --- drivers/clk/clk_stm32mp1.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/clk/clk_stm32mp1.c b/drivers/clk/clk_stm32mp1.c index 24859fd..800ded7 100644 --- a/drivers/clk/clk_stm32mp1.c +++

[U-Boot] [PATCH 0/3] Add SPI driver suport for STM32MP1

2019-04-30 Thread Patrice Chotard
This series: - adds SPI1 clock entry in clock driver - adds STM32MP1 SPI driver - enables SPI for STM32MP1 Patrice Chotard (3): clk: stm32mp1: Add SPI1 clock entry spi: stm32: Add Serial Peripheral Interface driver for STM32MP configs: stm32mp15: Enable SPI relative flags MAINTAINERS

[U-Boot] [PATCH 2/2 v2] i2c: mxc_i2c: Fix read and read->write xfers in DM mode

2019-04-30 Thread Trent Piepho
This is an old driver that supports both device mapped and non-mapped mode, and covers a wide range of hardware. It's hard to change without risking breaking something. I have to tried to be exceedingly detailed in this patch, so please excuse the length of the commit essay that follows. In

[U-Boot] [PATCH 1/2 v2] i2c: mxc_i2c: Document how non-DM functions work

2019-04-30 Thread Trent Piepho
It is not very clear how these work in relation to the exact I2C xfers they produce. In paticular, the address length is somewhat overloaded in the read method. Clearly document the existing behavior. Maybe this will help the next person who needs to work on this driver and not break non-DM

Re: [U-Boot] [PATCH] Makefile: Create single image for imx6 socs based boards

2019-04-30 Thread Stefano Babic
Hi Shyam, On 30/04/19 12:33, Shyam Saini wrote: > IMX6 platform has two stage boot loaders like SPL and > U-Boot proper. For each stage we need to burn the image > on to flash with respective offsets. > > This patch create a single image using binman, so that > user can get rid of burning

Re: [U-Boot] [PATCH 2/4] crypto/fsl: Use __sec_set_jr_context_normal

2019-04-30 Thread Breno Matheus Lima
Hi Bryan, Em ter, 30 de abr de 2019 às 05:13, Bryan O'Donoghue escreveu: > > > > On 30/04/2019 02:28, Bryan O'Donoghue wrote: > > > > > > On 25/04/2019 04:24, Breno Matheus Lima wrote: > >> I couldn't get encrypted boot working in my first attempt, doing the > >> exact same procedure with commit

Re: [U-Boot] [PATCH 2/2] i2c: mxc_i2c: Fix read and read->write xfers in DM mode

2019-04-30 Thread Trent Piepho
On Tue, 2019-04-30 at 06:34 +0200, Heiko Schocher wrote: > Hello Trent, > > Am 16.04.2019 um 00:02 schrieb Trent Piepho: > > This is an old driver that supports both device mapped and non-mapped > > mode, and covers a wide range of hardware. It's hard to change without > > risking breaking

[U-Boot] [PATCH] net: davinci_emac: use driver model (CONFIG_DM_ETH)

2019-04-30 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Add support for CONFIG_DM_ETH to the davinci_emac driver. Optimally we should only support DM-enabled platforms but there are several non-DT boards that still use it so either we need to keep supporting it or drop the boards from u-boot. For now we're stuck with ugly

Re: [U-Boot] [PATCH] test/py: don't use mmc_rd config for other mmc tests

2019-04-30 Thread Stephen Warren
On 4/16/19 4:04 PM, Stephen Warren wrote: From: Stephen Warren Fix test_mmc_dev(), test_mmc_rescan(), test_mmc_info() not to use the same configuration data that test_mmc_rd() does. Doing so causes the following issues: * The new code uncondtionally expects certain keys to exist in the

[U-Boot] [PATCH v2 3/4] watchdog: stm32mp: Add watchdog driver

2019-04-30 Thread Patrice Chotard
This patch adds IWDG (Independent WatchDoG) support for STM32MP platform. Signed-off-by: Christophe Kerello Signed-off-by: Patrice Chotard --- Changes in v2: - Rename timeout variable in timeout_ms in stm32mp_wdt_start() MAINTAINERS| 1 +

[U-Boot] [PATCH v2 4/4] configs: stm32mp15: Enable WDT flags

2019-04-30 Thread Patrice Chotard
This allows to enable WATCHDOG and WDT flags to be able to reset the watchdog and to support watchdog driver model. Signed-off-by: Patrice Chotard --- Changes in v2: None configs/stm32mp15_basic_defconfig | 2 ++ configs/stm32mp15_trusted_defconfig | 2 ++ 2 files changed, 4 insertions(+)

[U-Boot] [PATCH v2 1/4] watchdog: Kconfig: Sort entry alphabetically

2019-04-30 Thread Patrice Chotard
To make adding new entry easier, sort Kconfig entries in alphabetical order. Signed-off-by: Patrice Chotard Reviewed-by: Stefan Roese --- Changes in v2: None drivers/watchdog/Kconfig | 87 1 file changed, 44 insertions(+), 43 deletions(-)

[U-Boot] [PATCH v2 2/4] ARM: dts: stm32mp: Add iwdg2 support for stm32mp157c

2019-04-30 Thread Patrice Chotard
This patch adds independent watchdog support for stm32mp157c in SPL. Signed-off-by: Patrice Chotard --- Changes in v2: None arch/arm/dts/stm32mp157-u-boot.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/stm32mp157-u-boot.dtsi b/arch/arm/dts/stm32mp157-u-boot.dtsi

[U-Boot] [PATCH v2 0/4] Add watchdog support for STM32MP1

2019-04-30 Thread Patrice Chotard
This series: - sorts Kconfig entries in alphabetical order - enable watchdog support in SPL for STM32MP1 - adds watchdog support to STM32MP1 boards Changes in v2: - Rename timeout variable in timeout_ms in stm32mp_wdt_start() Patrice Chotard (4): watchdog: Kconfig: Sort entry

Re: [U-Boot] [PATCH 1/2] ti: Add device-tree for am335x-pocketbeagle.

2019-04-30 Thread Tom Rini
On Mon, Apr 29, 2019 at 04:12:29PM -0700, Vagrant Cascadian wrote: > Add device-tree files from linux 5.1-rc7 needed to complete support > for PocketBeagle. > > Signed-off-by: Vagrant Cascadian Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [PATCH 2/2] ti: Add am335x-pocketbeagle to am335x_evm_defconfig.

2019-04-30 Thread Tom Rini
On Mon, Apr 29, 2019 at 04:12:30PM -0700, Vagrant Cascadian wrote: > Add am335x-pocketbeagle to CONFIG_OF_LIST in am335x_evm_defconfig. > > Signed-off-by: Vagrant Cascadian We need to update include/configs/am335x_evm.h too so that it detects this variant and loads the right dtb. -- Tom

Re: [U-Boot] [PATCH] Makefile: Create single image for imx6 socs based boards

2019-04-30 Thread Jagan Teki
Hi Fabio, On Tue, Apr 30, 2019 at 6:17 PM Fabio Estevam wrote: > > Hi Shyam, > > On Tue, Apr 30, 2019 at 7:34 AM Shyam Saini > wrote: > > > > IMX6 platform has two stage boot loaders like SPL and > > U-Boot proper. For each stage we need to burn the image > > on to flash with respective

Re: [U-Boot] [PATCH 1/4] crypto/fsl: Introduce API to save/restore job-ring context

2019-04-30 Thread Bryan O'Donoghue
On 25/04/2019 23:13, Breno Matheus Lima wrote: Hi Bryan, Em ter, 23 de abr de 2019 às 07:20, Bryan O'Donoghue escreveu: We need to handle the case where DEK blobs are passed to the BootROM. In this case, unlike in HAB authentication the BootROM checks job-ring ownership set to secure

Re: [U-Boot] [PATCH 0/4] Tidy up some dangling OP-TEE gotchas

2019-04-30 Thread Fabio Estevam
On Mon, Apr 29, 2019 at 10:31 PM Bryan O'Donoghue wrote: > > > > On 24/04/2019 01:43, Bryan O'Donoghue wrote: > > Rober P Day rightly pointed out that some odd OP-TEE specific defines were > > appearing in his defconfig, despite not having CONFIG_OPTEE=y set in his > > defconfig. > > Ping, > >

[U-Boot] [PATCH] ARM: dts: logicpd-som-lv: Fix MMC1 card detect

2019-04-30 Thread Adam Ford
The card detect pin was incorrectly using IRQ_TYPE_LEVEL_LOW instead of GPIO_ACTIVE_LOW when reading the state of the CD pin. Without this patch, MMC1 won't be detected. This is the same patch submitted to linux-omap, but I was hoping to get it applied to U-Boot without having to wait for the

Re: [U-Boot] [PATCH] Makefile: Create single image for imx6 socs based boards

2019-04-30 Thread Fabio Estevam
Hi Shyam, On Tue, Apr 30, 2019 at 7:34 AM Shyam Saini wrote: > > IMX6 platform has two stage boot loaders like SPL and > U-Boot proper. For each stage we need to burn the image > on to flash with respective offsets. > > This patch create a single image using binman, so that > user can get rid of

Re: [U-Boot] [PATCH] core: ofnode: Fix ASAN-reported stack-buffer-overflow in of_get_address

2019-04-30 Thread Eugeniu Rosca
Hi Jeremy, Would you kindly feedback if it's possible to include commit https://github.com/getpatchwork/patchwork/commit/67faf96ab96d932 into U-Boot's patchwork to avoid occasional glitches in the description of U-Boot commits? On Sun, Apr 14, 2019 at 07:39:19PM -0400, Tom Rini wrote: > On Sun,

Re: [U-Boot] [PATCH v12 9/9] ARM: socfpga: Increase Malloc pool size to support FAT filesystem in SPL

2019-04-30 Thread Simon Goldschmidt
On Tue, Apr 30, 2019 at 2:19 PM Chee, Tien Fong wrote: > > On Sat, 2019-04-27 at 21:50 +0200, Simon Goldschmidt wrote: > > > > On 19.03.19 09:50, tien.fong.c...@intel.com wrote: > > > > > > From: Tien Fong Chee > > > > > > Increasing Malloc pool size up to 0x15000 is required to support > > >

Re: [U-Boot] [PATCH v12 5/9] ARM: socfpga: Add FPGA drivers for Arria 10 FPGA bitstream loading

2019-04-30 Thread Simon Goldschmidt
On Tue, Apr 30, 2019 at 2:09 PM Chee, Tien Fong wrote: > > On Sat, 2019-04-27 at 21:57 +0200, Simon Goldschmidt wrote: > > > > On 19.03.19 09:50, tien.fong.c...@intel.com wrote: > > > > > > From: Tien Fong Chee > > > > > > Add FPGA driver to support program FPGA with FPGA bitstream loading > > >

Re: [U-Boot] [PATCH] README: davinci: update the documentation for DaVinci

2019-04-30 Thread Sekhar Nori
On 30/04/19 2:38 PM, Adam Ford wrote: > On Tue, Apr 30, 2019 at 2:39 AM Bartosz Golaszewski wrote: >> >> From: Bartosz Golaszewski >> >> The DM* family of SOCs is no longer supported. We now support the >> omap-l138 lcdk board and Lego EV3 platform. Reflect those changes > > Don't forget about

Re: [U-Boot] [PATCH v12 9/9] ARM: socfpga: Increase Malloc pool size to support FAT filesystem in SPL

2019-04-30 Thread Chee, Tien Fong
On Sat, 2019-04-27 at 21:50 +0200, Simon Goldschmidt wrote: > > On 19.03.19 09:50, tien.fong.c...@intel.com wrote: > > > > From: Tien Fong Chee > > > > Increasing Malloc pool size up to 0x15000 is required to support > > FAT in SPL > > . The result of calculation is come from after applying

Re: [U-Boot] [PATCH v12 5/9] ARM: socfpga: Add FPGA drivers for Arria 10 FPGA bitstream loading

2019-04-30 Thread Chee, Tien Fong
On Sat, 2019-04-27 at 21:57 +0200, Simon Goldschmidt wrote: > > On 19.03.19 09:50, tien.fong.c...@intel.com wrote: > > > > From: Tien Fong Chee > > > > Add FPGA driver to support program FPGA with FPGA bitstream loading > > from > > filesystem. The driver are designed based on generic firmware

Re: [U-Boot] [PATCH v12 4/9] ARM: socfpga: Moving the watchdog reset to the for-loop status polling

2019-04-30 Thread Chee, Tien Fong
On Sat, 2019-04-27 at 21:34 +0200, Simon Goldschmidt wrote: > > On 19.03.19 09:50, tien.fong.c...@intel.com wrote: > > > > From: Tien Fong Chee > > > > Ensure the watchdog is reset timely on each status polling. > I would have expected a longer commit message here explaining why > this  > is

Re: [U-Boot] [PATCH 0/4] Tidy up some dangling OP-TEE gotchas

2019-04-30 Thread Rui Miguel Silva
Hi Bryan, On Tue 30 Apr 2019 at 02:30, Bryan O'Donoghue wrote: > On 24/04/2019 01:43, Bryan O'Donoghue wrote: >> Rober P Day rightly pointed out that some odd OP-TEE specific defines were >> appearing in his defconfig, despite not having CONFIG_OPTEE=y set in his >> defconfig. > > Ping, > >

[U-Boot] [PATCH] Makefile: Create single image for imx6 socs based boards

2019-04-30 Thread Shyam Saini
IMX6 platform has two stage boot loaders like SPL and U-Boot proper. For each stage we need to burn the image on to flash with respective offsets. This patch create a single image using binman, so that user can get rid of burning different stage boot images. without this patch:

[U-Boot] [PATCH 2/2] ARM: da850evm: Enable da850-ohci USB host controller

2019-04-30 Thread Adam Ford
The DA850 EVM has one USB 1.1 OHCI Host controller. With the host controller now support DM_USB, this patch enables the respective functions for the da850evm. Signed-off-by: Adam Ford --- V2: No changes diff --git a/configs/da850evm_defconfig b/configs/da850evm_defconfig index

[U-Boot] [i.MX8MM+CCF 38/41] clk: add composite clk support

2019-04-30 Thread Peng Fan
Import clk composite clk support from Linux Kernel 5.1-rc5 Signed-off-by: Peng Fan --- drivers/clk/Kconfig | 14 drivers/clk/Makefile | 1 + drivers/clk/clk-composite.c | 165 +++ include/linux/clk-provider.h | 22 ++ 4

[U-Boot] [i.MX8MM+CCF 24/41] imx: add get_cpu_rev support for i.MX8MM

2019-04-30 Thread Peng Fan
There are several variants based on i.MX8MM, add the support in get_cpu_rev Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 57 +++ 1 file changed, 47 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach-imx/imx8m/soc.c

[U-Boot] [PATCH V2 0/2] Enable DA830 OHCI USB Controller with DM_USB

2019-04-30 Thread Adam Ford
This patch enables the DA830 USB Host controller with DM_USB. Adam Ford (2): usb: ohci: ohci-da8xx: Enable da850-ohci driver with DM support ARM: da850evm: Enable da850-ohci USB host controller configs/da850evm_defconfig| 7 +- drivers/usb/host/Kconfig | 5 ++

[U-Boot] [i.MX8MM+CCF 28/41] imx8m: soc: probe clk before relocation

2019-04-30 Thread Peng Fan
probe clk device before relocation to get cpu clk. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index 42b99945b4..07cda86bdd 100644 ---

[U-Boot] [i.MX8MM+CCF 30/41] imx: add i.MX8MM PE property

2019-04-30 Thread Peng Fan
i.MX8MM does not have LVTTL, it has a PE property Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/iomux-v3.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/include/asm/mach-imx/iomux-v3.h b/arch/arm/include/asm/mach-imx/iomux-v3.h index b899a4ff6f..720e8f7043 100644

[U-Boot] [i.MX8MM+CCF 35/41] serial: Kconfig: make MXC_UART usable for MX7 and IMX8M

2019-04-30 Thread Peng Fan
i.MX7 and i.MX8M use mxc uart driver, so let's make the SoC could use MXC_UART kconfig. Signed-off-by: Peng Fan --- drivers/serial/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index fcbb0a81ed..a37b2d60f2 100644 ---

[U-Boot] [i.MX8MM+CCF 25/41] imx8m: rename clock to clock_imx8mq

2019-04-30 Thread Peng Fan
i.MX8MQ and i.MX8MM has totally different pll design, so rename clock to clock_imx8mq. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/Makefile| 3 ++- arch/arm/mach-imx/imx8m/{clock.c => clock_imx8mq.c} | 0 2 files changed, 2 insertions(+), 1 deletion(-) rename

[U-Boot] [PATCH V2 1/2] usb: ohci: ohci-da8xx: Enable da850-ohci driver with DM support

2019-04-30 Thread Adam Ford
This patch reuses some former code for the hawkboard, combines it with some some similar DM_USB compatible code for the OHCI driver, and enables the use of the da850's OHCI controller with DM_USB compatibility. Signed-off-by: Adam Ford --- V2: Replace timeout with get_timer and

[U-Boot] [i.MX8MM+CCF 18/41] imx: add IMX8MQ kconfig entry

2019-04-30 Thread Peng Fan
Add IMX8MQ kconfig entry, preparing support IMX8MM Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/Kconfig | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/imx8m/Kconfig b/arch/arm/mach-imx/imx8m/Kconfig index 317dee9bc1..9c487870a6 100644 ---

[U-Boot] [i.MX8MM+CCF 26/41] imx8m: restructure clock.h

2019-04-30 Thread Peng Fan
i.MX8MQ and i.MX8MM use different analog pll design, but they share same ccm design. Add clock_imx8mq.h for i.MX8MQ keep common part in clock.h Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/clock.h| 491 +++--

[U-Boot] [i.MX8MM+CCF 31/41] imx8m: Fix MMU table issue for OPTEE memory

2019-04-30 Thread Peng Fan
When running with OPTEE, the MMU table in u-boot does not remove the OPTEE memory from its settings. So ARM speculative prefetch in u-boot may access that OPTEE memory. Due to trust zone is enabled by OPTEE and that memory is set to secure access, then the speculative prefetch will fail and cause

[U-Boot] [i.MX8MM+CCF 21/41] imx: add i.MX8MM cpu type

2019-04-30 Thread Peng Fan
Add i.MX8MM cpu type and related helper functions Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx/cpu.h | 6 ++ arch/arm/include/asm/mach-imx/sys_proto.h | 8 arch/arm/mach-imx/cpu.c | 12 3 files changed, 26 insertions(+) diff

[U-Boot] [i.MX8MM+CCF 40/41] clk: imx: add i.MX8MM clk driver

2019-04-30 Thread Peng Fan
Add i.MX8MM clk driver support. Signed-off-by: Peng Fan --- drivers/clk/imx/Makefile | 1 + drivers/clk/imx/clk-imx8mm.c | 415 +++ 2 files changed, 416 insertions(+) create mode 100644 drivers/clk/imx/clk-imx8mm.c diff --git

[U-Boot] [i.MX8MM+CCF 34/41] imx8m: soc: enable SCTR clock before timer init

2019-04-30 Thread Peng Fan
To i.MX8MM SCTR clock is disabled by ROM, so before timer init need to enable it. To i.MX8MQ, it does not hurt the clock is enabled again. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-imx/imx8m/soc.c

[U-Boot] [i.MX8MM+CCF 23/41] imx8m: update imx-regs for i.MX8MM

2019-04-30 Thread Peng Fan
i.MX8MM has similar architecture with i.MX8MQ, but it has totally different PLL design and some register layout change. Note: Some registers in this file are not updated because not used now. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/imx-regs.h | 75

[U-Boot] [i.MX8MM+CCF 27/41] imx8m: add clk support for i.MX8MM

2019-04-30 Thread Peng Fan
Introduce clk implementation for i.MX8MM, including pll configuration, ccm configuration. Mostly will be done clk dm driver, but such as DRAM part, we still use non clk dm driver, because we have limited sram. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/clock.h| 2 +

[U-Boot] [i.MX8MM+CCF 32/41] imx8m: set BYPASS ID SWAP to avoid AXI bus errors

2019-04-30 Thread Peng Fan
set the BYPASS ID SWAP bit (GPR10 bit 1) in order for GPU not to generated AXI bus errors with TZC380 enabled. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index

[U-Boot] [i.MX8MM+CCF 17/41] ddr: imx8m: fix ddr firmware location when enable SPL OF

2019-04-30 Thread Peng Fan
With SPL_OF_SPERATE, the device tree will be padded to end of the u-boot-spl-nodtb.bin, however we also put the ddr firmware file to this location, so need to adapt the code with SPL OF and align to 16bytes to ease copy firmware. Signed-off-by: Peng Fan --- drivers/ddr/imx/imx8m/helper.c | 12

[U-Boot] [i.MX8MM+CCF 29/41] imx8m: add pin header for i.MX8MM

2019-04-30 Thread Peng Fan
Add pin header file for i.MX8MM To IMX8MM_PAD_NAND_WE_B_USDHC3_CLK, IOMUX_CONFIG_SION needs to be selected. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/imx8mm_pins.h | 691 ++ 1 file changed, 691 insertions(+) create mode 100644

[U-Boot] [i.MX8MM+CCF 33/41] imx8m: Configure trustzone region 0 for non-secure access

2019-04-30 Thread Peng Fan
From: Ye Li Set trustzone region 0 to allow both non-secure and secure access when trust zone is enabled. We found USB controller fails to access DDR if the default region 0 is secure access only. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 6 ++ 1

[U-Boot] [i.MX8MM+CCF 16/41] drivers: core: use strcmp when find device by name

2019-04-30 Thread Peng Fan
`if (!strncmp(dev->name, name, strlen(name)))` might find out the wrong device, it might find out `dram_pll_ref_sel`, when name is `dram_pll`. So use strcmp to avoid such issue. Signed-off-by: Peng Fan --- drivers/core/uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [i.MX8MM+CCF 37/41] clk: imx: add pll14xx driver

2019-04-30 Thread Peng Fan
Add pll14xx driver Signed-off-by: Peng Fan --- drivers/clk/imx/clk-pll14xx.c | 377 ++ drivers/clk/imx/clk.h | 25 +++ 2 files changed, 402 insertions(+) create mode 100644 drivers/clk/imx/clk-pll14xx.c diff --git

[U-Boot] [i.MX8MM+CCF 36/41] clk: imx: add Kconfig entry for i.MX8MM

2019-04-30 Thread Peng Fan
Add Kconfig entry for i.MX8MM, select CLK_CCF and SPL_CLK_CCF Signed-off-by: Peng Fan --- drivers/clk/imx/Kconfig | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/clk/imx/Kconfig b/drivers/clk/imx/Kconfig index 469768b5c3..0e4c68659c 100644 --- a/drivers/clk/imx/Kconfig +++

  1   2   >