Re: [U-Boot] [PATCH] mach-stm32: Rename CONFIG_SPL_RESET_SUPPORT to CONFIG_SPL_DM_RESET

2018-07-13 Thread Tom Rini
On Wed, Jul 11, 2018 at 05:56:57PM +0800, Ley Foon Tan wrote: > Commit bfc6bae8fa1f2d8a9c51548767b02f1a1e0ffe52 > > This commit rename CONFIG_SPL_RESET_SUPPORT to CONFIG_SPL_DM_RESET. Update > with new CONFIG name. > > Signed-off-by: Ley Foon Tan With a slight reword to use the fixes tag,

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

2018-07-13 Thread Tom Rini
On Fri, Jul 13, 2018 at 11:04:36AM +0200, Marek Vasut wrote: > The following changes since commit 1612ff0dfba57b1002d8c7a54778eb553ace98f4: > > Merge branch 'master' of git://git.denx.de/u-boot-mips (2018-07-11 > 21:55:20 -0400) > > are available in the Git repository at: > >

[U-Boot] [PATCH 08/11] udoo_neo: Add Windows boot support for UDOO Neo

2018-07-13 Thread Henry Beberman
From: Henry Beberman This patch adds a new bootable configuration for Windows 10 IoT Core on the i.MX6 SoloX UDOO Neo. It also adds a new device tree sources file for imx6sx-udoo-neo.dts. This is not required by Windows or UEFI but the build system requires a device tree when building SPL with

[U-Boot] [PATCH 07/11] mx6cuboxi: Add Windows boot support for mx6cuboxi

2018-07-13 Thread Henry Beberman
From: Henry Beberman This patch adds a new bootable configuration for Windows 10 IoT Core on the i.MX6 Quad HummingBoard. It also adds a new device tree sources file for imx6qdl-mx6cuboxi.dts. This is not required by Windows or UEFI but the build system requires a device tree when building SPL

[U-Boot] [PATCH 09/11] cl-som-imx7: Add Windows boot support for cl-som-imx7

2018-07-13 Thread Henry Beberman
From: Henry Beberman This patch adds a new bootable configuration for Windows 10 IoT Core on the Compulab CL-SOM-iMX7. It also adds a new device tree sources file for imx7d-cl-som-imx7.dts. This is not required by Windows or UEFI but the build system requires a device tree when building SPL

[U-Boot] [PATCH 03/11] spl: Add FIT boot into OP-TEE then U-Boot proper

2018-07-13 Thread Henry Beberman
From: Henry Beberman This patch is a part of the i.MX Windows 10 IoT Core boot flow. It adds an entry path for OP-TEE when loaded from a FIT blob when loadable has the OS type IH_OS_TEE. This booth path flushes and disables caches, disables interrupts, and jumps into OP-TEE passing the entry

[U-Boot] [PATCH 11/11] imx: Add MAC addresses to global page to pass MAC into UEFI

2018-07-13 Thread Henry Beberman
From: Henry Beberman U-Boot already has logic for determining the platform MAC address on many i.MX platforms, such as pulling it from fuses or SPI flash. This configuration option saves the MAC address from the ethaddr (and potentially ethaddr1) into the global page and marks it as valid. This

[U-Boot] [PATCH 10/11] imx: Reserve a global page in memory to pass configuration to UEFI

2018-07-13 Thread Henry Beberman
From: Henry Beberman This patch is to enable U-Boot to pass configuration information available during U-Boot Proper into a subsequent OS. This is required for Windows because it lacks device tree support. When CONFIG_GLOBAL_PAGE and CONFIG_UEFI_BOOT are set on an i.MX6 or i.MX7 platform the go

[U-Boot] [PATCH 02/11] arm: Allow U-Boot Proper to run in normal world

2018-07-13 Thread Henry Beberman
From: Henry Beberman In order to minimize the surface area of secure world code, the i.MX Windows 10 IoT Core boot flow uses SPL to jump into OP-TEE as soon as possible. Once OP-TEE has locked down resources it returns into the entry point U-Boot Proper in normal world. The

[U-Boot] [PATCH 05/11] mx6sabresd: Add Windows boot support for iMX6 Sabre

2018-07-13 Thread Henry Beberman
From: Henry Beberman This patch adds a new bootable configuration for Windows 10 IoT Core on the i.MX6 Quad Sabre board. Add a new device tree sources file for imx6qdl-sdb. This is not required by Windows or UEFI but the build system requires a device tree when building SPL with flat image tree

[U-Boot] [PATCH 06/11] mx7dsabresd: Add Windows boot support for iMX7 Sabre

2018-07-13 Thread Henry Beberman
From: Henry Beberman This patch adds a new bootable configuration for Windows 10 IoT Core on the i.MX7 Dual Sabre board. It enables SPL on the i.MX7 Sabre in order to support the FIT load of OP-TEE and U-Boot proper. Signed-off-by: Henry Beberman Cc: Stefano Babic Cc: Fabio Estevam Cc:

[U-Boot] [PATCH 04/11] spl: imx: Add optional lds to keep SPL entirely in on-chip RAM

2018-07-13 Thread Henry Beberman
From: Henry Beberman This patch is part of the i.MX Windows 10 IoT Core boot flow. It adds a modified linker script for SPL to keep all segments in on-chip ram. This is to harden the device against potential leaks of device secrets by keeping them out of DRAM. Additionally if

[U-Boot] [PATCH 01/11] imx: Add bootcmd to load and run UEFI from mmc

2018-07-13 Thread Henry Beberman
From: Henry Beberman This patch enables i.MX platforms to easily add a boot script to their U-Boot Proper environment to automatically load and execute an EFI firmware from the first FAT partition of an MMC device. This is a portion of enabling the Windows 10 IoT Core boot path. The go command

[U-Boot] [PATCH 00/11] Enable Windows 10 IoT Core on i.MX6 and i.MX7

2018-07-13 Thread Henry Beberman
From: Henry Beberman This patch series is a collaboration between Microsoft and NXP to enable Windows 10 IoT Core on NXP's iMX6 and iMX7 platforms. The series contains reference configurations to enable Windows boot on the following platforms: mx6sabresd, mx7dsabresd, mx6cuboxi, udoo_neo, and

[U-Boot] EBBR v0.6 Release Announcement

2018-07-13 Thread Grant Likely
I'm pleased to announce the release of version 0.6 of the Embedded Base Boot Requirements (EBBR) specification. https://github.com/ARM-software/ebbr/releases/tag/v0.6 EBBR is a new specification defining a standard boot environment suitable for full feature operating systems running on

Re: [U-Boot] [PATCH 0/2] dm: Complete CONFIG_BLK migration

2018-07-13 Thread Adam Ford
On Fri, Jul 13, 2018 at 10:43 AM Adam Ford wrote: > > On Fri, Jul 13, 2018 at 10:23 AM Lukasz Majewski wrote: > > > > On Fri, 13 Jul 2018 16:53:53 +0200 > > Marek Vasut wrote: > > > > > On 07/13/2018 03:34 PM, Adam Ford wrote: > > > > On Fri, Jun 29, 2018 at 3:21 PM Adam Ford > > > > wrote: >

Re: [U-Boot] [PATCH] mtd: nand: denali: Replace the ad-hoc cache management with bouncebuf

2018-07-13 Thread Masahiro Yamada
2018-07-14 3:15 GMT+09:00 Marek Vasut : > On 07/13/2018 05:09 PM, Masahiro Yamada wrote: >> 2018-07-13 23:51 GMT+09:00 Marek Vasut : >>> On 07/13/2018 01:05 PM, Masahiro Yamada wrote: 2018-07-13 19:58 GMT+09:00 Marek Vasut : > On 07/13/2018 12:52 PM, Masahiro Yamada wrote: >>

Re: [U-Boot] [PATCH] sandbox_flattree: Switch to TPMv2 support

2018-07-13 Thread Miquel Raynal
Hi Simon, > >> >> > > > In order to have the test.py tests for TPMv2 run automatically we > >> >> > > > need > >> >> > > > to have one of our sandbox builds use TPMv2 rather than TPMv1. > >> >> > > > Switch > >> >> > > > sandbox_flattree over to this style of TPM. > >> >> > > > >> >> > >

[U-Boot] [PATCH] usb: musb-new: omap2430: Remove dead code

2018-07-13 Thread Adam Ford
A bunch of code was encapsulated in #ifdef's whether or not it is building or for U-Boot. Since this code is always building for U-Boot, this patch removes the dead code. Signed-off-by: Adam Ford diff --git a/drivers/usb/musb-new/omap2430.c b/drivers/usb/musb-new/omap2430.c index

[U-Boot] [PATCH] ARM: configs: omap3_logic: remove Legacy OMAP3 USB driver

2018-07-13 Thread Adam Ford
Only the MUSB driver is currently supported on the omap3_logic boards. The driver is using the new-musb and not the legacy version, so this patch removes the dead code references. Signed-off-by: Adam Ford diff --git a/configs/omap3_logic_defconfig b/configs/omap3_logic_defconfig index

Re: [U-Boot] tpm TIS TPMv2.0

2018-07-13 Thread Miquel Raynal
Hi Martin, > > > > > Is there any specific reason why the new tpm2_tis_spi_xfer doesn't > > > > support full duplex? It seems we did some work in parallel but you > > > > sent the patches earlier. Is that codes tested against an existing > > > > TPM v2? I have a working implementation what runs

Re: [U-Boot] [PATCH] mx25: fix the offset between the USB ports' registers

2018-07-13 Thread Fabio Estevam
Hi Martin, Thanks for the patch! On Fri, Jul 13, 2018 at 5:02 AM, Martin Kaiser wrote: > From: Martin Kaiser > > The USBOH module on imx25 chips contains two USB controllers, which are > called USB OTG Controller and USB Host Controller. Each one has its EHCI > root hub. The OTG Controller's

Re: [U-Boot] [PATCH 0/2] dm: Complete CONFIG_BLK migration

2018-07-13 Thread Marek Vasut
On 07/13/2018 05:22 PM, Lukasz Majewski wrote: > On Fri, 13 Jul 2018 16:53:53 +0200 > Marek Vasut wrote: > >> On 07/13/2018 03:34 PM, Adam Ford wrote: >>> On Fri, Jun 29, 2018 at 3:21 PM Adam Ford >>> wrote: On Fri, Jun 29, 2018 at 2:09 PM Tom Rini wrote: > > On Thu,

Re: [U-Boot] [PATCH 0/2] dm: Complete CONFIG_BLK migration

2018-07-13 Thread Adam Ford
On Fri, Jul 13, 2018 at 10:23 AM Lukasz Majewski wrote: > > On Fri, 13 Jul 2018 16:53:53 +0200 > Marek Vasut wrote: > > > On 07/13/2018 03:34 PM, Adam Ford wrote: > > > On Fri, Jun 29, 2018 at 3:21 PM Adam Ford > > > wrote: > > >> > > >> On Fri, Jun 29, 2018 at 2:09 PM Tom Rini > > >> wrote: >

Re: [U-Boot] [PATCH 0/2] dm: Complete CONFIG_BLK migration

2018-07-13 Thread Lukasz Majewski
On Fri, 13 Jul 2018 16:53:53 +0200 Marek Vasut wrote: > On 07/13/2018 03:34 PM, Adam Ford wrote: > > On Fri, Jun 29, 2018 at 3:21 PM Adam Ford > > wrote: > >> > >> On Fri, Jun 29, 2018 at 2:09 PM Tom Rini > >> wrote: > >>> > >>> On Thu, Jun 28, 2018 at 09:30:19PM -0500, Derald D. Woods

Re: [U-Boot] [PATCH 0/2] dm: Complete CONFIG_BLK migration

2018-07-13 Thread Marek Vasut
On 07/13/2018 03:34 PM, Adam Ford wrote: > On Fri, Jun 29, 2018 at 3:21 PM Adam Ford wrote: >> >> On Fri, Jun 29, 2018 at 2:09 PM Tom Rini wrote: >>> >>> On Thu, Jun 28, 2018 at 09:30:19PM -0500, Derald D. Woods wrote: On Thu, Jun 28, 2018 at 10:47:36AM -0500, Adam Ford wrote: > On Wed,

Re: [U-Boot] [PATCH] mtd: nand: denali: Replace the ad-hoc cache management with bouncebuf

2018-07-13 Thread Marek Vasut
On 07/13/2018 05:09 PM, Masahiro Yamada wrote: > 2018-07-13 23:51 GMT+09:00 Marek Vasut : >> On 07/13/2018 01:05 PM, Masahiro Yamada wrote: >>> 2018-07-13 19:58 GMT+09:00 Marek Vasut : On 07/13/2018 12:52 PM, Masahiro Yamada wrote: > 2018-07-13 19:35 GMT+09:00 Marek Vasut : >> On

Re: [U-Boot] [PATCH 1/1] avb2.0: add get_size_of_partition()

2018-07-13 Thread Andrew F. Davis
On 07/13/2018 12:09 PM, Igor Opaniuk wrote: > Hi Andrew, > Sorry I missed your message. > > On 9 July 2018 at 18:21, Andrew F. Davis wrote: >> On 07/09/2018 09:52 AM, Sam Protsenko wrote: >>> On Mon, Jul 9, 2018 at 3:15 PM, Igor Opaniuk >>> wrote: Implement get_size_of_partition()

Re: [U-Boot] [PATCH] snow: set fdtfile

2018-07-13 Thread Peter Robinson
On Thu, Jun 14, 2018 at 9:34 PM, Guillaume GARDET wrote: > Needed to boot with EFI distro boot. > > Signed-off-by: Guillaume GARDET > > Cc: Akshay Saraswat > Cc: Tom Rini > --- > include/configs/snow.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/include/configs/snow.h

Re: [U-Boot] [PATCH 1/1] avb2.0: add get_size_of_partition()

2018-07-13 Thread Igor Opaniuk
Hi Andrew, Sorry I missed your message. On 9 July 2018 at 18:21, Andrew F. Davis wrote: > On 07/09/2018 09:52 AM, Sam Protsenko wrote: >> On Mon, Jul 9, 2018 at 3:15 PM, Igor Opaniuk wrote: >>> Implement get_size_of_partition() operation, >>> which is required by the latest upstream libavb [1].

Re: [U-Boot] [PATCH] snow: set fdtfile

2018-07-13 Thread Guillaume Gardet
Hi, This is a reminder for this patch. Guillaume Le 14/06/2018 à 22:34, Guillaume GARDET a écrit : Needed to boot with EFI distro boot. Signed-off-by: Guillaume GARDET Cc: Akshay Saraswat Cc: Tom Rini --- include/configs/snow.h | 3 +++ 1 file changed, 3 insertions(+) diff --git

[U-Boot] [PATCH 2/2] mtd: nand: sunxi: Return on set_feature only when not ENOTSUPP

2018-07-13 Thread Mylène Josserand
Return the error code of the set_features function only if the error code is not ENOTSUPP. Otherwise, if this function is not supported, it will return and fail to initialize the NAND. Signed-off-by: Mylène Josserand --- drivers/mtd/nand/sunxi_nand.c | 2 +- 1 file changed, 1 insertion(+), 1

[U-Boot] [PATCH 1/2] mtd: nand: nand_base: Convert EINVAL into ENOTSUPP

2018-07-13 Thread Mylène Josserand
Convert the EINVAL error into ENOTSUPP when the GET/SET_FEATURES is not supported. Signed-off-by: Mylène Josserand --- drivers/mtd/nand/nand_base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index

[U-Boot] [PATCH 0/2] NAND: sunxi: Return ENOTSUPP on onfi functions

2018-07-13 Thread Mylène Josserand
Hello everyone, This is a first version of this series that fix code for NAND chip that does not have ONFI get/set features support. Patch 01: The current code returns an invalid error if it is not supported. It should return ENOTSUPP instead. Patch 02: In sunxi_nand driver, we should return of

[U-Boot] [PATCH 1/2] avb2.0: add proper dependencies

2018-07-13 Thread Igor Opaniuk
1. Since libavb library alone is highly portable, introduce dedicated Kconfig symbol for AVB compiler-dependent operations, so it's possible to build libavb separately. 2. Add CONFIG_FASTBOOT dependency, as fastboot buffer is re-used in partition verification operations. Reported-by: Eugeniu

[U-Boot] [PATCH 2/2] avb2.0: use block API in AVB ops

2018-07-13 Thread Igor Opaniuk
Use blk_dread()/blk_dwrite() in mmc_read()/mmc_write() AVB operation implementations. This fixes compilation issues when CONFIG_BLK is enabled. Signed-off-by: Igor Opaniuk --- common/avb_verify.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/common/avb_verify.c

[U-Boot] [PATCH 0/2] avb 2.0: fix multiple compilation issues in sandbox

2018-07-13 Thread Igor Opaniuk
This series of two patches fixes compilation issues when AVB 2.0 is enabled for the 'sandbox' architecture: 1. Since libavb library alone is highly portable, it introduce dedicated Kconfig symbol for AVB compiler-dependent operations, so it's possible to build libavb separately. 2. Add

[U-Boot] [PATCH 2/2] arm: zynq: add support for the zybo z7 board

2018-07-13 Thread Luis Araneda
The board is manufactured by Digilent Main features: - Soc: XC7Z010 (Z7-10) or XC7Z020 (Z7-20) - RAM: 1 GB DDR3L - FLASH: 16 MB QSPI - 1 Gbps Ethernet - USB 2.0 - microSD slot - Pcam camera connector - HDMI Tx and Rx - Audio codec: stereo out, stereo in, mic - 5 (Z7-10) or 6 (Z7-20) Pmod ports - 6

[U-Boot] [PATCH 0/2] arm: zynq: add support for the zybo z7 board

2018-07-13 Thread Luis Araneda
This series adds support for the Digilent Zybo Z7 board The only think, that I tested, and is not working yet, is reading the MAC address from the OTP region of the SPI flash memory, but I pretend to work on that I decided to split this series in two patches because the first contains the

[U-Boot] [PATCH 1/4] stm32mp1: add gpio led support

2018-07-13 Thread Patrick Delaunay
This patch add the 4 LED available on the ED1 board and activated gpio led driver. Signed-off-by: Patrick Delaunay --- arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi | 24 configs/stm32mp15_basic_defconfig| 2 ++ 2 files changed, 26 insertions(+) diff --git

[U-Boot] [PATCH 4/4] stm32mp1: use new function led default state

2018-07-13 Thread Patrick Delaunay
Initialize the led with the default state defined in device tree. Signed-off-by: Patrick Delaunay --- board/st/stm32mp1/stm32mp1.c | 4 1 file changed, 4 insertions(+) diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c index cc39fa6..db8c805 100644 ---

[U-Boot] [PATCH 3/4] dm: led: move default state support in led uclass

2018-07-13 Thread Patrick Delaunay
This patch save common LED property "default-state" value in post bind of LED uclass. The configuration for this default state is only performed when led_default_state() is called; It can be called in your board_init() or it could added in init_sequence_r[] in future. Signed-off-by: Patrick

[U-Boot] [PATCH 0/4] dm: led: remove auto probe in binding function

2018-07-13 Thread Patrick Delaunay
Hi, The commit bc882f5d5c7b4d6ed5e927bf838863af43c786e7 introduce auto probe of LED in binding function but that cause issue on my board. This first patch of this patchset activateis the LED on my board to explain the issue, the second patch revert this commit and the third one propose an other

[U-Boot] [PATCH 2/4] Revert "dm: led: auto probe() LEDs with "default-state""

2018-07-13 Thread Patrick Delaunay
This reverts commit bc882f5d5c7b4d6ed5e927bf838863af43c786e7. Signed-off-by: Patrick Delaunay --- drivers/led/led_gpio.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/led/led_gpio.c b/drivers/led/led_gpio.c index a36942b..533587d 100644 --- a/drivers/led/led_gpio.c +++

[U-Boot] [PATCH v2] gpio: xilinx: Convert driver to DM

2018-07-13 Thread Michal Simek
This patch is enabling GPIO_DM support to have an option to use this driver together with zynq gpio driver. !DM part is kept there till Microblaze is cleanup which will be done hopefully soon. Just a note: There is no reason to initialize uc-priv->name because it is completely unused.

[U-Boot] [PATCH] sysreset: Add support for Microblaze soft reset jump

2018-07-13 Thread Michal Simek
Microblaze is storing reset vector at address 0x0. It means soft reset can be done by just jumping to this address. This code was in platform code but sysreset interface is providing enough capabilities to have more options how to reset the system. It can go from gpio reset through watchdog reset

Re: [U-Boot] [PATCH] mtd: nand: denali: Replace the ad-hoc cache management with bouncebuf

2018-07-13 Thread Masahiro Yamada
2018-07-13 23:51 GMT+09:00 Marek Vasut : > On 07/13/2018 01:05 PM, Masahiro Yamada wrote: >> 2018-07-13 19:58 GMT+09:00 Marek Vasut : >>> On 07/13/2018 12:52 PM, Masahiro Yamada wrote: 2018-07-13 19:35 GMT+09:00 Marek Vasut : > On 07/13/2018 12:22 PM, Masahiro Yamada wrote: >>

Re: [U-Boot] [PATCH] serial: ns16550: Add register shift variable

2018-07-13 Thread Alexander Graf
On 07/13/2018 04:43 PM, Felix Brack wrote: This patch adds a new Kconfig variable that allows setting the register shift value for the ns16550 driver to some other value then 0 if not defined by the DT. All credit for this patch goes to Lokesh Vutla as it was his idea. The motivation for

Re: [U-Boot] SoCFPGA PL330 DMA driver and ECC scrubbing

2018-07-13 Thread Marek Vasut
On 07/13/2018 02:50 PM, Jason Rush wrote: > On 7/11/2018 1:54 PM, Marek Vasut wrote: >> On 07/11/2018 07:30 PM, Trent Piepho wrote: >>> On Wed, 2018-07-11 at 08:56 -0500, Jason Rush wrote: On 7/11/2018 8:48 AM, Marek Vasut wrote: > On 07/11/2018 03:49 PM, Jason Rush wrote: >> My

Re: [U-Boot] [PATCH] mtd: nand: denali: Replace the ad-hoc cache management with bouncebuf

2018-07-13 Thread Marek Vasut
On 07/13/2018 01:05 PM, Masahiro Yamada wrote: > 2018-07-13 19:58 GMT+09:00 Marek Vasut : >> On 07/13/2018 12:52 PM, Masahiro Yamada wrote: >>> 2018-07-13 19:35 GMT+09:00 Marek Vasut : On 07/13/2018 12:22 PM, Masahiro Yamada wrote: > 2018-07-13 19:18 GMT+09:00 Marek Vasut : >> On

[U-Boot] [PATCH] serial: ns16550: Add register shift variable

2018-07-13 Thread Felix Brack
This patch adds a new Kconfig variable that allows setting the register shift value for the ns16550 driver to some other value then 0 if not defined by the DT. All credit for this patch goes to Lokesh Vutla as it was his idea. The motivation for writing this patch originates in the effort of

Re: [U-Boot] [PATCH 0/2] dm: Complete CONFIG_BLK migration

2018-07-13 Thread Adam Ford
On Fri, Jun 29, 2018 at 3:21 PM Adam Ford wrote: > > On Fri, Jun 29, 2018 at 2:09 PM Tom Rini wrote: > > > > On Thu, Jun 28, 2018 at 09:30:19PM -0500, Derald D. Woods wrote: > > > On Thu, Jun 28, 2018 at 10:47:36AM -0500, Adam Ford wrote: > > > > On Wed, Jun 27, 2018 at 4:41 PM Tom Rini wrote:

[U-Boot] [PATCH v2 3/3] dfu: Provide more verbose error message

2018-07-13 Thread Sam Protsenko
It might be useful for user to see some human-readable root cause message in addition to "configuration failed" message, so that the issue can be fixed quickly. Signed-off-by: Sam Protsenko --- Changes in v2: - None drivers/dfu/dfu.c | 1 + 1 file changed, 1 insertion(+) diff --git

[U-Boot] [PATCH v2 2/3] dfu: Fix memory leak in dfu_init_env_entities()

2018-07-13 Thread Sam Protsenko
In case of error in dfu_init_env_entities(), env_bkp will leak. Fix it by providing single return path. Signed-off-by: Sam Protsenko --- Changes in v2: - None drivers/dfu/dfu.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c

[U-Boot] [PATCH v2 1/3] dfu: Fix data abort in dfu_free_entities()

2018-07-13 Thread Sam Protsenko
Commit 5d8fae79163e ("dfu: avoid memory leak") brings a regression which described below. This patch is effectively reverting that commit, adding corresponding comment to avoid such regressions in future. In case of error in dfu_config_entities(), it frees "dfu" array, which leads to "data abort"

Re: [U-Boot] [PATCH 1/3] dfu: Fix data abort in dfu_free_entities()

2018-07-13 Thread Sam Protsenko
Hi Lukasz, On Fri, Jul 13, 2018 at 12:49 PM, Lukasz Majewski wrote: > Hi Sam, > >> The story of this change goes further... Just checked the reason, the >> bug was introduced here [1]. So we can either use my patch (which adds >> corresponding comment to ensure we won't "fix" it later), or the

Re: [U-Boot] [PATCH 1/3] dfu: Fix data abort in dfu_free_entities()

2018-07-13 Thread Sam Protsenko
On Fri, Jul 13, 2018 at 5:32 AM, Andy Shevchenko wrote: > On Fri, Jul 13, 2018 at 1:10 AM, Sam Protsenko > wrote: >> The story of this change goes further... Just checked the reason, the >> bug was introduced here [1]. So we can either use my patch (which adds >> corresponding comment to ensure

[U-Boot] [RFC] cmd: add bootslot command to select/boot slot based on boot counts

2018-07-13 Thread Martin Hundebøll
The existing bootcount feature is targeted systems with a primary, and a rescue boot setup, where the number of boot tries to the primary boot is tracked. If the number exceeds the limit, the alternative/rescue is booted. This patch adds support for a more sophisticated setup, where more than two

Re: [U-Boot] [PATCH] sysreset: Add support for gpio-restart

2018-07-13 Thread Dr. Philipp Tomsich
> On 13 Jul 2018, at 11:15, Michal Simek wrote: > > The Linux kernel has binding for gpio-restart node. > This patch is adding basic support without supporting any optional > properties. Nice. This may also give us an opportunity to streamline some of the reset logic (and the FDT-interface to

Re: [U-Boot] SoCFPGA PL330 DMA driver and ECC scrubbing

2018-07-13 Thread Jason Rush
On 7/11/2018 1:54 PM, Marek Vasut wrote: > On 07/11/2018 07:30 PM, Trent Piepho wrote: >> On Wed, 2018-07-11 at 08:56 -0500, Jason Rush wrote: >>> On 7/11/2018 8:48 AM, Marek Vasut wrote: On 07/11/2018 03:49 PM, Jason Rush wrote: > My mistake. I did disable the dcache after scrubbing

[U-Boot] [PATCH v4 20/27] mtd: declare MTD_PARTITIONS symbol in Kconfig

2018-07-13 Thread Miquel Raynal
UBI selects MTD_PARTITIONS which is the symbol to compile drivers/mtd/mtdpart.c. Unfortunately, the symbol was not defined in Kconfig and this worked only with board files defining it. Fix this by adding a boolean in Kconfig so boards defined by defconfig files only will work as expected.

[U-Boot] [PATCH v4 25/27] mtd: uclass: add probe function

2018-07-13 Thread Miquel Raynal
The user might want to trigger the probe of any MTD device, export these functions so they can be called from a command source file. Signed-off-by: Miquel Raynal --- drivers/mtd/mtd-uclass.c | 9 + include/linux/mtd/mtd.h | 3 +++ 2 files changed, 12 insertions(+) diff --git

[U-Boot] [PATCH v4 26/27] cmd: mtd: add 'mtd' command

2018-07-13 Thread Miquel Raynal
There should not be a 'nand' command, a 'sf' command and certainly not another 'spi-nand'. Write a 'mtd' command instead to manage all MTD devices at once. This should be the preferred way to access any MTD device. Signed-off-by: Miquel Raynal --- cmd/Kconfig | 7 + cmd/Makefile

[U-Boot] [PATCH v4 22/27] cmd: mtdparts: accept spi-nand devices

2018-07-13 Thread Miquel Raynal
Let spi-nand devices be recognized by mtdparts. This is superfluous but a full mtdparts rework would be very time-consuming. Signed-off-by: Miquel Raynal --- cmd/mtdparts.c | 13 - include/jffs2/load_kernel.h | 7 +-- 2 files changed, 13 insertions(+), 7

[U-Boot] [PATCH v4 24/27] cmd: mtdparts: remove useless 'mtdparts=' prefix

2018-07-13 Thread Miquel Raynal
All U-Boot users must define the mtdparts environment variable with: setenv mtdparts mtdparts=... This is a pure software limitation and is a complete non-sense. Remove this limitation but keep the backward compatibility. Signed-off-by: Miquel Raynal --- cmd/mtdparts.c | 17 ++---

[U-Boot] [PATCH v4 23/27] cmd: mtdparts: add a generic 'mtdparts' parser

2018-07-13 Thread Miquel Raynal
The current parser is very specific to U-Boot mtdparts implementation. It does not use MTD structures like mtd_info and mtd_partition. Write some kind of a wrapper around the current implementation to allow other commands to benefit from this parsing in a user-friendly way. This new command will

[U-Boot] [PATCH v4 13/27] spi: Extend the core to ease integration of SPI memory controllers

2018-07-13 Thread Miquel Raynal
From: Boris Brezillon Some controllers are exposing high-level interfaces to access various kind of SPI memories. Unfortunately they do not fit in the current spi_controller model and usually have drivers placed in drivers/mtd/spi-nor which are only supporting SPI NORs and not SPI memories in

[U-Boot] [PATCH v4 18/27] mtd: spinand: Add initial support for the MX35LF2GE4AB chip

2018-07-13 Thread Miquel Raynal
Add support for the MX35LF2GE4AB chip, which is similar to its cousin MX35LF1GE4AB, with two planes instead of one. Signed-off-by: Miquel Raynal --- drivers/mtd/nand/spi/macronix.c | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-) diff --git

[U-Boot] [PATCH v4 21/27] cmd: ubi: delete useless and misleading definitions

2018-07-13 Thread Miquel Raynal
These definitions are simply not used and are misleading because similar definitions exist in jffs2/load_kernel.h and are used widely to define MTD device types (which is, by the way, totally redundant with what the MTD core does). Remove these definitions. Signed-off-by: Miquel Raynal ---

[U-Boot] [PATCH v4 14/27] mtd: nand: Add core infrastructure to support SPI NANDs

2018-07-13 Thread Miquel Raynal
From: Peter Pan Add a SPI NAND framework based on the generic NAND framework and the spi-mem infrastructure. In its current state, this framework supports the following features: - single/dual/quad IO modes - on-die ECC Signed-off-by: Peter Pan Signed-off-by: Boris Brezillon Signed-off-by:

[U-Boot] [PATCH v4 19/27] dt-bindings: Add bindings for SPI NAND devices

2018-07-13 Thread Miquel Raynal
From: Boris Brezillon Add bindings for SPI NAND chips. Signed-off-by: Boris Brezillon Signed-off-by: Miquel Raynal --- doc/device-tree-bindings/mtd/spi-nand.txt | 5 + 1 file changed, 5 insertions(+) create mode 100644 doc/device-tree-bindings/mtd/spi-nand.txt diff --git

[U-Boot] [PATCH v4 27/27] cmd: mtdparts: try to probe the MTD devices as a fallback

2018-07-13 Thread Miquel Raynal
Current implementation of mtdparts command errors out if the desired MTD device is not found. Fallback to the new probe function in this case before erroring out. This will the save the user the need to call something like 'mtd list' before mtdparts. Signed-off-by: Miquel Raynal ---

[U-Boot] [PATCH v4 02/27] mtd: Uninline mtd_write_oob and move it to mtdcore.c

2018-07-13 Thread Miquel Raynal
From: Ezequiel Garcia There's no reason for having mtd_write_oob inlined in mtd.h header. Move it to mtdcore.c where it belongs. Signed-off-by: Ezequiel Garcia Acked-by: Boris Brezillon Signed-off-by: Jacek Anaszewski Signed-off-by: Miquel Raynal --- drivers/mtd/mtdcore.c | 12

[U-Boot] [PATCH v4 16/27] mtd: spinand: Add initial support for Winbond W25M02GV

2018-07-13 Thread Miquel Raynal
From: Frieder Schrempf Add support for the W25M02GV chip. Signed-off-by: Frieder Schrempf Signed-off-by: Boris Brezillon Signed-off-by: Miquel Raynal --- drivers/mtd/nand/spi/Makefile | 2 +- drivers/mtd/nand/spi/core.c| 1 + drivers/mtd/nand/spi/winbond.c | 143

[U-Boot] [PATCH v4 17/27] mtd: spinand: Add initial support for the MX35LF1GE4AB chip

2018-07-13 Thread Miquel Raynal
From: Boris Brezillon Add minimal support for the MX35LF1GE4AB SPI NAND chip. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/spi/Makefile | 2 +- drivers/mtd/nand/spi/core.c | 1 + drivers/mtd/nand/spi/macronix.c | 138

[U-Boot] [PATCH v4 12/27] mtd: nand: Pass mode information to nand_page_io_req

2018-07-13 Thread Miquel Raynal
From: Boris Brezillon The NAND sub-layers are likely to need the MTD_OPS_XXX mode information in order to decide if they should enable/disable ECC or how they should place the OOB bytes in the provided OOB buffer. Add a field to nand_page_io_req to pass this information. Signed-off-by: Boris

[U-Boot] [PATCH v4 15/27] mtd: spinand: Add initial support for Micron MT29F2G01ABAGD

2018-07-13 Thread Miquel Raynal
From: Peter Pan Add a basic driver for Micron SPI NANDs. Only one device is supported right now, but the driver will be extended to support more devices afterwards. Signed-off-by: Peter Pan Signed-off-by: Boris Brezillon Signed-off-by: Miquel Raynal --- drivers/mtd/nand/spi/Makefile | 2

[U-Boot] [PATCH v4 11/27] mtd: nand: Add core infrastructure to deal with NAND devices

2018-07-13 Thread Miquel Raynal
From: Boris Brezillon Add an intermediate layer to abstract NAND device interface so that some logic can be shared between SPI NANDs, parallel/raw NANDs, OneNANDs, ... Signed-off-by: Boris Brezillon Signed-off-by: Miquel Raynal --- drivers/mtd/nand/Kconfig | 3 + drivers/mtd/nand/Makefile

[U-Boot] [PATCH v4 08/27] mtd: move all flash categories inside MTD submenu

2018-07-13 Thread Miquel Raynal
There is no reason to have NAND, SPI flashes and UBI sections outside of the MTD submenu in Kconfig. Signed-off-by: Miquel Raynal Reviewed-by: Jagan Teki --- drivers/mtd/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig

[U-Boot] [PATCH v4 09/27] mtd: move NAND files into a raw/ subdirectory

2018-07-13 Thread Miquel Raynal
NAND flavors, like serial and parallel, have a lot in common and would benefit to share code. Let's move raw (parallel) NAND specific code in a raw/ subdirectory, to ease the addition of a core file in nand/ and the introduction of a spi/ subdirectory specific to SPI NANDs. Signed-off-by: Miquel

[U-Boot] [PATCH v4 10/27] mtd: rename nand into rawnand in Kconfig prompt

2018-07-13 Thread Miquel Raynal
Sync the Kconfig raw NAND entry title with the code architecture. Signed-off-by: Miquel Raynal --- drivers/mtd/nand/raw/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig index bdc272142e..118fae7620 100644 ---

[U-Boot] [PATCH v4 07/27] mtd: move definitions to enlarge their range

2018-07-13 Thread Miquel Raynal
Some helpers might be useful in a future 'mtd' U-Boot command to parse MTD device list. Signed-off-by: Miquel Raynal --- drivers/mtd/mtdcore.h | 6 -- include/linux/mtd/mtd.h | 6 ++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/mtd/mtdcore.h

[U-Boot] [PATCH v4 04/27] mtd: Fallback to ->_read/write() when ->_read/write_oob() is missing

2018-07-13 Thread Miquel Raynal
Some MTD sublayers/drivers are implementing ->_read/write() and not ->_read/write_oob(). While for NAND devices both are usually valid, for NOR devices, using the _oob variant has no real meaning. But, as the MTD layer is supposed to hide as much as possible the flash complexity to the user,

[U-Boot] [PATCH v4 05/27] mtd: add get/set of_node/flash_node helpers

2018-07-13 Thread Miquel Raynal
From: Brian Norris We are going to begin using the mtd->dev.of_node field for MTD device nodes, so let's add helpers for it. Also, we'll be making some conversions on spi_nor (and nand_chip eventually) too, so get that ready with their own helpers. Signed-off-by: Brian Norris Reviewed-by:

[U-Boot] [PATCH v4 01/27] mtd: Fallback to ->_read/write_oob() when ->_read/write() is missing

2018-07-13 Thread Miquel Raynal
From: Boris Brezillon Some MTD sublayers/drivers are implementing ->_read/write_oob() and provide dummy wrappers for their ->_read/write() implementations. Let the core handle this case instead of duplicating the logic. Signed-off-by: Boris Brezillon Acked-by: Robert Jarzmik Acked-by: Brian

[U-Boot] [PATCH v4 06/27] mtd: fix build issue with includes

2018-07-13 Thread Miquel Raynal
Fix build errors produced by mtd.h and dm/device.h if not included in the right order. Signed-off-by: Miquel Raynal Reviewed-by: Jagan Teki --- include/linux/mtd/mtd.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index

[U-Boot] [PATCH v4 03/27] mtd: Add sanity checks in mtd_write/read_oob()

2018-07-13 Thread Miquel Raynal
From: Boris Brezillon Unlike what's done in mtd_read/write(), there are no checks to make sure the parameters passed to mtd_read/write_oob() are consistent, which forces implementers of ->_read/write_oob() to do it, which in turn leads to code duplication and possibly errors in the logic. Do

[U-Boot] [PATCH v4 00/27] SPI-NAND support

2018-07-13 Thread Miquel Raynal
During the last months, Boris Brezillon shared his work to support serial flashes within Linux. First, he delivered (and merged) a new layer called spi-mem. He also initiated in Linux MTD subsystem the move of all 'raw' NAND related code to a raw/ subdirectory, adding at the same time a NAND core

Re: [U-Boot] [PATCH v3 00/21] SPI-NAND support

2018-07-13 Thread Miquel Raynal
Hi Miquel, Miquel Raynal wrote on Thu, 12 Jul 2018 15:24:45 +0200: > During the last months, Boris Brezillon shared his work to support > serial flashes within Linux. First, he delivered (and merged) a new > layer called spi-mem. He also initiated in Linux MTD subsystem the move > of all 'raw'

[U-Boot] [ v2 06/10] video: add MIPI DSI host controller bridge

2018-07-13 Thread Yannick Fertré
Add a Synopsys Designware MIPI DSI host bridge driver, based on the Rockchip version from rockchip/dw-mipi-dsi.c with phy & bridge APIs. Signed-off-by: Yannick Fertré --- drivers/video/Kconfig | 9 + drivers/video/Makefile | 1 + drivers/video/dw_mipi_dsi.c | 826

[U-Boot] [ v2 10/10] board: Add STM32F769 SoC, discovery board support

2018-07-13 Thread Yannick Fertré
Signed-off-by: Yannick Fertré --- configs/stm32f769-disco_defconfig | 67 +++ 1 file changed, 67 insertions(+) create mode 100644 configs/stm32f769-disco_defconfig diff --git a/configs/stm32f769-disco_defconfig b/configs/stm32f769-disco_defconfig new file

[U-Boot] [ v2 09/10] arm: dts: stm32: add display for STM32F769 disco board

2018-07-13 Thread Yannick Fertré
Enable the display controller, mipi dsi bridge & panel. Set panel display timings. Signed-off-by: Yannick Fertré --- arch/arm/dts/stm32f769-disco.dts | 41 1 file changed, 41 insertions(+) diff --git a/arch/arm/dts/stm32f769-disco.dts

[U-Boot] [ v2 08/10] arm: dts: stm32: add dsi for STM32F746

2018-07-13 Thread Yannick Fertré
Add mipi dsi bridge node in device-tree. Signed-off-by: Yannick Fertré --- arch/arm/dts/stm32f746.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/dts/stm32f746.dtsi b/arch/arm/dts/stm32f746.dtsi index afa7832..005d267 100644 --- a/arch/arm/dts/stm32f746.dtsi +++

[U-Boot] [ v2 07/10] video: add support of STM32 MIPI DSI controller driver

2018-07-13 Thread Yannick Fertré
Add the STM32 DSI controller driver that uses the Synopsys DesignWare MIPI DSI host controller bridge. Signed-off-by: Yannick Fertré --- drivers/video/stm32/Kconfig | 10 + drivers/video/stm32/Makefile| 1 + drivers/video/stm32/stm32_dsi.c | 427

[U-Boot] [ v2 04/10] video: add support of panel OTM8009A

2018-07-13 Thread Yannick Fertré
Support for Orise Tech otm8009a 480p dsi 2dl video mode panel. Signed-off-by: Yannick Fertré --- drivers/video/Kconfig | 8 + drivers/video/Makefile | 1 + drivers/video/orisetech_otm8009a.c | 366 + 3 files changed, 375

[U-Boot] [ v2 05/10] video: add support of panel RM68200

2018-07-13 Thread Yannick Fertré
Support for Raydium RM68200 720p dsi 2dl video mode panel. This rm68200 panel driver is based on the Linux Kernel driver from drivers/gpu/drm/panel/panel-raydium-rm68200.c. Signed-off-by: Yannick Fertré --- drivers/video/Kconfig | 8 + drivers/video/Makefile | 1 +

[U-Boot] [ v2 03/10] video: add support of MIPI DSI interface

2018-07-13 Thread Yannick Fertré
Mipi_display.c contains a set of dsi helpers. This file is a copy of file drm_mipi_dsi.c (linux kernel). Signed-off-by: Yannick Fertré --- drivers/video/Kconfig| 9 + drivers/video/Makefile | 1 + drivers/video/mipi_display.c | 817 +++

[U-Boot] [ v2 00/10] splash screen on the stm32f769 disco board

2018-07-13 Thread Yannick Fertré
Version 1: - Initial commit: Version2: - swap patches to avoid compilation issue. - remove panel timings from device tree This serie contains all patchsets needed for displaying a splash screen on the stm32f769 disco board. A new config has been created configs/stm32f769-disco_defconfig. This

[U-Boot] [ v2 02/10] video: stm32: stm32_ltdc: add bridge to display controller

2018-07-13 Thread Yannick Fertré
Manage a bridge insert between the display controller & a panel. Signed-off-by: Yannick Fertré --- drivers/video/stm32/stm32_ltdc.c | 154 +++ 1 file changed, 92 insertions(+), 62 deletions(-) diff --git a/drivers/video/stm32/stm32_ltdc.c

[U-Boot] [ v2 01/10] dm: panel: get timings from panel

2018-07-13 Thread Yannick Fertré
Get timings from panel instead of read device tree. Signed-off-by: Yannick Fertré --- drivers/video/panel-uclass.c | 11 +++ include/panel.h | 18 ++ 2 files changed, 29 insertions(+) diff --git a/drivers/video/panel-uclass.c b/drivers/video/panel-uclass.c

  1   2   >