[U-Boot] [PATCH 1/1] efi_loader: simplify efi_allocate_pages()

2019-05-10 Thread Heinrich Schuchardt
Replace unnecessary control structures by using return statements. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_memory.c | 43 + 1 file changed, 15 insertions(+), 28 deletions(-) diff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader/efi_memor

[U-Boot] [PATCH 1/1] efi_loader: AllocateAdress error handling

2019-05-10 Thread Heinrich Schuchardt
If AllocatePages() is called with AllocateAddress, the UEFI spec requires to return EFI_NOT_FOUND in case the memory page does not exist. The UEFI SCT II 2017 spec additionally requires to return EFI_NOT_FOUND if the page is already allocated. Check that *Memory refers to an unallocated page. UE

[U-Boot] [PATCH 1/1] efi_loader: out of resource in AllocatePages()

2019-05-10 Thread Heinrich Schuchardt
According to the UEFI AllocatePages() has to return EFI_OUT_OF_RESOURCES if sufficient memory is not available. Change the return value. UEFI SCT II (2017): 3.2.1 AllocatePages(), 5.1.2.1.8 Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_memory.c | 4 ++-- 1 file changed, 2 insertion

Re: [U-Boot] [PATCH v2] spl: add overall SPL size check

2019-05-10 Thread Tom Rini
On Mon, Apr 22, 2019 at 10:27:21PM +0200, Simon Goldschmidt wrote: > This adds a size check for SPL that can dynamically check generated > SPL binaries (including devicetree) for a size limit that ensures > this image plus global data, heap and stack fit in initial SRAM. > > Since some of these s

Re: [U-Boot] [PATCH] arm: mvebu: armada-370-xp.dtsi: Add "u-boot, dm-pre-reloc" to "internal-regs"

2019-05-10 Thread Chris Packham
On Fri, 10 May 2019, 11:34 PM Stefan Roese, wrote: > Without this U-Boot specific property, booting on Armada XP theadorable > fails in SPL. All nodes in the "internal-regs" (simple-bus) DT node are > not scanned, so the UART node is missing (and others). > > I'm not adding this property in an *u

Re: [U-Boot] [PATCH v2] include: android_bl_msg.h: Initial import

2019-05-10 Thread Sam Protsenko
Hi Eugeniu, On Fri, May 10, 2019 at 11:41 PM Eugeniu Rosca wrote: > > Hi Sam, > > On Fri, May 10, 2019 at 04:12:10PM +0300, Sam Protsenko wrote: > > From: Eugeniu Rosca > > > > Import the bootloader_message.h (former bootloader.h) from AOSP. > > > > The bootloader_message.h basically defines the

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

2019-05-10 Thread Joe Hershberger
Hi Vladimir and Tom, On Thu, May 9, 2019 at 7:51 AM Vladimir Oltean wrote: > > On 09.05.2019 02:05, Vladimir Oltean wrote: > > On 5/9/19 1:55 AM, Tom Rini wrote: > >> On Wed, May 08, 2019 at 10:52:28PM +, Vladimir Oltean wrote: > >>> On 5/9/19 1:48 AM, Tom Rini wrote: > On Wed, May 08, 2

[U-Boot] [PATCH 07/12] sh: rsk7269: Remove the board

2019-05-10 Thread Marek Vasut
Last change to this board was done in 2016, has no prospects of ever being converted to DM, drop it. Signed-off-by: Marek Vasut Cc: Chris Brandt Cc: Nobuhiro Iwamatsu Cc: Vladimir Zapolskiy Cc: Yoshihiro Shimoda --- arch/sh/Kconfig | 5 - board/renesas/rsk7269/Kconfig

[U-Boot] [PATCH 10/12] sh: ms7720se: Remove the board

2019-05-10 Thread Marek Vasut
Last change to this board was done in 2016, has no prospects of ever being converted to DM, drop it. Signed-off-by: Marek Vasut Cc: Chris Brandt Cc: Nobuhiro Iwamatsu Cc: Vladimir Zapolskiy Cc: Yoshihiro Shimoda --- arch/sh/Kconfig| 5 - board/ms7720se/Kconfig | 9

[U-Boot] [PATCH 11/12] sh: shmin: Remove the board

2019-05-10 Thread Marek Vasut
Last change to this board was done in 2016, has no prospects of ever being converted to DM, drop it. Signed-off-by: Marek Vasut Cc: Chris Brandt Cc: Nobuhiro Iwamatsu Cc: Vladimir Zapolskiy Cc: Yoshihiro Shimoda --- arch/sh/Kconfig | 5 --- board/shmin/Kconfig | 9

[U-Boot] [PATCH 09/12] sh: mpr2: Remove the board

2019-05-10 Thread Marek Vasut
Last change to this board was done in 2016, has no prospects of ever being converted to DM, drop it. Signed-off-by: Marek Vasut Cc: Chris Brandt Cc: Mark Jonas Cc: Nobuhiro Iwamatsu Cc: Vladimir Zapolskiy Cc: Yoshihiro Shimoda --- arch/sh/Kconfig| 5 -- board/mpr2/Kconfig

[U-Boot] [PATCH 05/12] sh: rsk7203: Remove the board

2019-05-10 Thread Marek Vasut
Last change to this board was done in 2016, has no prospects of ever being converted to DM, drop it. Signed-off-by: Marek Vasut Cc: Chris Brandt Cc: Nobuhiro Iwamatsu Cc: Vladimir Zapolskiy Cc: Yoshihiro Shimoda --- arch/sh/Kconfig | 5 - board/renesas/rsk7203/Kconfig

Re: [U-Boot] [PATCH v2] include: android_bl_msg.h: Initial import

2019-05-10 Thread Eugeniu Rosca
Hi Sam, On Fri, May 10, 2019 at 04:12:10PM +0300, Sam Protsenko wrote: > From: Eugeniu Rosca > > Import the bootloader_message.h (former bootloader.h) from AOSP. > > The bootloader_message.h basically defines the flash layout of a > dedicated partition (usually called 'misc') and is needed in U

[U-Boot] [PATCH 12/12] sh: sh3: Remove CPU support

2019-05-10 Thread Marek Vasut
This CPU core is old, no boards using the CPU are left in mainline, it has no prospects of ever being converted to DM, drop it. Signed-off-by: Marek Vasut Cc: Chris Brandt Cc: Nobuhiro Iwamatsu Cc: Vladimir Zapolskiy Cc: Yoshihiro Shimoda --- arch/sh/Kconfig | 4 - arch/sh

[U-Boot] [PATCH 08/12] sh: sh2: Remove CPU support

2019-05-10 Thread Marek Vasut
This CPU core is old, no boards using the CPU are left in mainline, it has no prospects of ever being converted to DM, drop it. Signed-off-by: Marek Vasut Cc: Chris Brandt Cc: Nobuhiro Iwamatsu Cc: Vladimir Zapolskiy Cc: Yoshihiro Shimoda --- arch/sh/Kconfig | 8 --- arch/s

[U-Boot] [PATCH 03/12] serial: sh: Drop RTS7751R2D support

2019-05-10 Thread Marek Vasut
There is no RTS7751R2D support in U-Boot, drop all the RTS7751R2D macros. Signed-off-by: Marek Vasut Cc: Chris Brandt Cc: Nobuhiro Iwamatsu Cc: Vladimir Zapolskiy Cc: Yoshihiro Shimoda --- drivers/serial/serial_sh.h | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/serial/seria

[U-Boot] [PATCH 06/12] sh: rsk7264: Remove the board

2019-05-10 Thread Marek Vasut
Last change to this board was done in 2016, has no prospects of ever being converted to DM, drop it. Signed-off-by: Marek Vasut Cc: Chris Brandt Cc: Nobuhiro Iwamatsu Cc: Vladimir Zapolskiy Cc: Yoshihiro Shimoda --- arch/sh/Kconfig | 5 - board/renesas/rsk7264/Kconfig

[U-Boot] [PATCH 04/12] serial: sh: Drop assorted SH3, SH4, SH5 macros

2019-05-10 Thread Marek Vasut
Drop unused macros from the header to clean it up. Signed-off-by: Marek Vasut Cc: Chris Brandt Cc: Nobuhiro Iwamatsu Cc: Vladimir Zapolskiy Cc: Yoshihiro Shimoda --- drivers/serial/serial_sh.c | 12 +--- drivers/serial/serial_sh.h | 111 +++-- 2 files changed

[U-Boot] [PATCH 02/12] serial: sh: Drop SH2007 support

2019-05-10 Thread Marek Vasut
There is no SH2007 support in U-Boot, drop all the SH2007 macros. Signed-off-by: Marek Vasut Cc: Chris Brandt Cc: Nobuhiro Iwamatsu Cc: Vladimir Zapolskiy Cc: Yoshihiro Shimoda --- drivers/serial/serial_sh.h | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drive

[U-Boot] [PATCH 01/12] serial: sh: Drop H8 support

2019-05-10 Thread Marek Vasut
There is no H8 support in U-Boot, drop all the H8 macros. Signed-off-by: Marek Vasut Cc: Chris Brandt Cc: Nobuhiro Iwamatsu Cc: Vladimir Zapolskiy Cc: Yoshihiro Shimoda --- drivers/serial/serial_sh.h | 84 -- 1 file changed, 84 deletions(-) diff --git a/d

Re: [U-Boot] [PATCH 1/2] include: android_bl_msg.h: Initial import

2019-05-10 Thread Eugeniu Rosca
Hello Sam, On Fri, May 10, 2019 at 05:23:26PM +0300, Sam Protsenko wrote: > On Thu, May 9, 2019 at 4:41 AM Eugeniu Rosca wrote: [..] > > "bcb load 1 misc" should be also supported, in case it helps. > > Yes. Can you please send v2 for "bcb" command, accounting for next: > 1. I've already sent

[U-Boot] [PATCH 1/1] efi_loader: check memory address before freeing

2019-05-10 Thread Heinrich Schuchardt
When we call FreePages() we essentially add memory to our memory map. We shouldn't do this for memory that does not exit. Check if the memory that is to be freed via FreePages() or FreePool() is in our memory map and is not EFI_CONVENTIONAL_MEMORY. This check is mandated by the UEFI specification

[U-Boot] [RFC PATCH] drivers: ata: ahci_sunxi: Increased SATA/AHCI DMA TX/RX FIFOs

2019-05-10 Thread Uenal Mutlu
Increasing the SATA/AHCI DMA TX/RX FIFOs (P0DMACR.TXTS and .RXTS) from default 0x0 each to 0x3 each gives a write performance boost of 120MB/s from lame 36MB/s to 45MB/s previously. Read performance is about 200MB/s [tested on SSD using dd bs=4K count=512K]. Tested on the Banana Pi R1 (aka Lamobo

[U-Boot] [PATCH] Fix RK3328-evb Floating GPIO0_D6 - pull up - 4ma

2019-05-10 Thread Mister Fix-IT
Pin GPIO0_30 (D6) is left floating. In the case of the new revision of Pine64 Rock64 Rev3, this pin needs to be pulled up 4ma. Otherwise uboot fails to boot from sd stating "Card did not respond to voltage select". --- arch/arm/dts/rk3328-evb.dts | 2 ++ 1 file changed, 2 insertions(+) diff --g

Re: [U-Boot] [PATCH 08/14] arm: socfpga: agilex: Add CCU support for Agilex

2019-05-10 Thread Simon Goldschmidt
Am 10.05.2019 um 07:54 schrieb Ley Foon Tan: Add CCU support for Agilex. This description could be a bit longer: what's CCU, and why do you add it or when/by what will it be used. Regards, Simon Signed-off-by: Ley Foon Tan --- arch/arm/mach-socfpga/Makefile| 3 + arch

Re: [U-Boot] [PATCH 04/14] arm: socfpga: agilex: Add reset manager support

2019-05-10 Thread Simon Goldschmidt
Am 10.05.2019 um 07:54 schrieb Ley Foon Tan: Add reset manager support for Agilex. Signed-off-by: Ley Foon Tan --- .../mach-socfpga/include/mach/reset_manager.h | 5 ++- .../include/mach/reset_manager_agilex.h | 38 +++ arch/arm/mach-socfpga/reset_manager.c |

Re: [U-Boot] [PATCH 01/14] arm: socfpga: agilex: Add base address for Intel Agilex SoC

2019-05-10 Thread Simon Goldschmidt
Am 10.05.2019 um 16:59 schrieb Dinh Nguyen: On 5/10/19 12:54 AM, Ley Foon Tan wrote: Add base address for Intel Agilex SoC. Signed-off-by: Ley Foon Tan --- .../include/mach/base_addr_agilex.h | 38 +++ 1 file changed, 38 insertions(+) create mode 100644 arch/ar

[U-Boot] [PATCH 1/1] efi_loader: error code in UninstallProtocolInterface()

2019-05-10 Thread Heinrich Schuchardt
According to the UEFI specification UninstallProtocolInteface() has to return EFI_NOT_FOUND if the interface is not found. Correct the return value. Cf. UEFI SCT II spec (2017), 3.3.2 UninstallProtocolInterface(), 5.1.3.2.4 Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c |

[U-Boot] [PATCH 1/1] efi_loader: superfluous check in efi_remove_protocol()

2019-05-10 Thread Heinrich Schuchardt
efi_search_protocol() already checks that the GUID matches. Don't check a second time. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index a1fac60ee1..7263b2e

[U-Boot] [PATCH] net: phy: ti: Fix clock output DT property

2019-05-10 Thread Trent Piepho
The code block reading the DT property for the clock output control was before the phy's DT node pointer was set, so it could never work. Move it after the node pointer is set. Also store the unsigned 32-bit property into an unsigned value, not a signed value, as the former will cause a problem i

[U-Boot] [PATCH] core: ofnode: Have ofnode_read_u32_default return a u32

2019-05-10 Thread Trent Piepho
It was returning an int, which doesn't work if the u32 it is reading, or the default value, will overflow a signed int. While it could be made to work, when using a C standard/compiler where casting negative signed values to unsigned has a defined behavior, combined with careful casting, it seems

[U-Boot] [PATCH 1/1] efi_loader: LocateDevicePath() incorrect parameter check

2019-05-10 Thread Heinrich Schuchardt
A parameter check in LocateDevicePath() does not match the requirements of the UEFI spec. If device is NULL, only return EFI_INVALID_PARAMETER if a matching handle is found. Cf. UEFI SCT II specification (2017)3.3.7 LocateDevicePath(), 5.1.3.7.3 Signed-off-by: Heinrich Schuchardt --- lib/efi_l

[U-Boot] [PATCH 1/1] efi_loader: fix typo in efi_locate_handle() comment

2019-05-10 Thread Heinrich Schuchardt
%s/not buffer/no buffer/ Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index b97d55cb45..887baaab02 100644 --- a/lib/efi_loader/efi_boottime.c

[U-Boot] [PATCH 06/13] env: enable saveenv command when one CONFIG_ENV_IS_IN is activated

2019-05-10 Thread Patrice Chotard
From: Patrick Delaunay Introduce ENV_IS_IN_DEVICE to test if one the CONFIG_ENV_IS_IN_ is defined and support the command saveenv even if CONFIG_ENV_IS_NOWHERE is activated Signed-off-by: Patrick Delaunay Signed-off-by: Patrice Chotard --- cmd/nvedit.c | 36 +-

Re: [U-Boot] [PATCH 2/5] net: dwc_eth_qos: add Ethernet stm32mp1 support

2019-05-10 Thread Joe Hershberger
On Fri, May 10, 2019 at 8:59 AM Christophe ROULLIER wrote: > > Hi Joe, > > On 09/05/2019 23:07, Joe Hershberger wrote: > > On Fri, Apr 26, 2019 at 6:16 AM Christophe Roullier > > wrote: > >> Synopsys GMAC 4.20 is used. And Phy mode for eval and disco is RMII > >> with PHY Realtek RTL8211 (RGMII)

[U-Boot] [PATCH 10/13] stm32mp1: Move ENV_SIZE to Kconfig

2019-05-10 Thread Patrice Chotard
Move ENV_SIZE from include/configs/stm32mp1.h to arch/arm/mach-stm32mp/Kconfig Increase ENV_SIZE from 4 to 8 Ko Signed-off-by: Patrick Delaunay Signed-off-by: Patrice Chotard --- arch/arm/mach-stm32mp/Kconfig | 3 +++ env/Kconfig | 2 +- include/configs/stm32mp1.h| 5 ---

[U-Boot] [PATCH 11/13] configs: stm32mp15: Enable ENV_IS_IN_UBI

2019-05-10 Thread Patrice Chotard
Add all relative flags needed by ENV_IS_IN_UBI Signed-off-by: Patrice Chotard --- configs/stm32mp15_basic_defconfig | 4 configs/stm32mp15_trusted_defconfig | 4 include/configs/stm32mp1.h | 4 3 files changed, 12 insertions(+) diff --git a/configs/stm32mp15_basic_def

[U-Boot] [PATCH 12/13] configs: stm32mp15: Enable ENV_IS_SPI_FLASH

2019-05-10 Thread Patrice Chotard
Add all relative flags needed by ENV_IS_IN_SPI_FLASH Reserved a 256KB partition in NOR to save the U-Boot environment. Signed-off-by: Patrice Chotard --- configs/stm32mp15_basic_defconfig | 1 + configs/stm32mp15_trusted_defconfig | 1 + include/configs/stm32mp1.h | 7 ++- 3 fil

[U-Boot] [PATCH 00/13] Add saveenv support for STM32MP1

2019-05-10 Thread Patrice Chotard
This series adds saveenv support for STM32MP1 on several boot devices. STM32MP1 is able to boot on eMMC, sdcard and NOR (NAND support is not fully supported). On eMMC and sdcard, environment is saved in EXT4 partition On NOR, environment is saved in a dedicated partition On NAND, environment is s

[U-Boot] [PATCH 05/13] env: allow ENV_IS_NOWHERE with other storage target

2019-05-10 Thread Patrice Chotard
Allow U-Boot to get default environment for some boot mode (USB for example), and to select storage location when it is booting from flash device; ENVL_NOWHERE is present in env_locations with other one. Signed-off-by: Patrick Delaunay Signed-off-by: Patrice Chotard --- env/Kconfig | 18 ++

[U-Boot] [PATCH 09/13] mtd: Fix get_mtdparts()

2019-05-10 Thread Patrice Chotard
When ENV_IS_IN_UBI is enable, get_mtdparts is called before relocation. During first get_mtdparts() call, mtdparts is not available in environment, it can be retrieved by calling board_mtdparts_default(), but following env_set() do nothing as we are before relocation. Finally mtdparts is still not

[U-Boot] [PATCH 13/13] stm32mp1: Update env_get_location for NOR support

2019-05-10 Thread Patrice Chotard
Update env_get_location() to be able to save environment into NOR (SPI_FLASH). Signed-off-by: Patrice Chotard --- 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 4f7d24a..af607c5 100644 --- a/

[U-Boot] [PATCH 04/13] board: stm32mp1: Add env_ext4_get_dev_part() and env_ext4_get_intf()

2019-05-10 Thread Patrice Chotard
This allows to : - select the current device to save the environment file - select the correct EXT4 boot device instance and partition to save the environment file. For EXT4, device is mmc, device instance is 0 for sdcard or 1 for eMMC. The partition is set to "auto" to select the first partitio

[U-Boot] [PATCH 07/13] configs: stm32mp15: Enable ENV_IS_IN_EXT4 and all relative flags

2019-05-10 Thread Patrice Chotard
From: Patrick Delaunay Enable ENV_IS_IN_EXT4 and all relative flags to be able to load/save environment in EXT4 partition. This will allows to load/save environment on both sdcard and eMMC. As for stm32mp15, bootfs has not the same partition number on sdcard and on eMMC, we use "auto" key which

[U-Boot] [PATCH 08/13] stm32mp1: Add env_get_location()

2019-05-10 Thread Patrice Chotard
In case of several environment location support, env_get_location is needed to select the correct location depending of the boot device . Signed-off-by: Patrice Chotard --- board/st/stm32mp1/stm32mp1.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/board/st/stm32mp

[U-Boot] [PATCH 03/13] env: ext4: Allow overriding interface, device and partition

2019-05-10 Thread Patrice Chotard
For platform which can boot on different device, this allows to override interface, device and partition from board code. Signed-off-by: Patrice Chotard --- env/ext4.c | 34 +- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/env/ext4.c b/env/ext4.

[U-Boot] [PATCH 02/13] stm32mp1: support dynamic MTDPARTS

2019-05-10 Thread Patrice Chotard
This patch configure the default value for mtdids and mtparts dynamically according the presence of nor and nand in the board device tree Signed-off-by: Patrick Delaunay Signed-off-by: Christophe Kerello Signed-off-by: Patrice Chotard --- board/st/stm32mp1/stm32mp1.c | 85

[U-Boot] [PATCH 01/13] stm32mp1: activate NAND and NOR support on EV1

2019-05-10 Thread Patrice Chotard
From: Patrick Delaunay Add the necessary configuration to have NAND and NOR support on ev1 board for BASIC boot (with SPL) or for TRUSTED boot (with TF-A). STM32MP> nand info Device 0: nand0, sector size 256 KiB Page size 4096 b OOB size 224 b Erase size262144 b subpag

Re: [U-Boot] [PATCH 00/14] Add saveenv support for STM32MP1

2019-05-10 Thread Patrice CHOTARD
Sorry, i sent one useless patch, i will resend this series Patrice On 5/10/19 6:11 PM, Patrice Chotard wrote: > > This series adds saveenv support for STM32MP1 on several boot > devices. STM32MP1 is able to boot on eMMC, sdcard and NOR > (NAND support is not fully supported). > > On eMMC and sd

[U-Boot] [PATCH 14/14] stm32mp1: Update env_get_location for NOR support

2019-05-10 Thread Patrice Chotard
Update env_get_location() to be able to save environment into NOR (SPI_FLASH). Signed-off-by: Patrice Chotard --- 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 4f7d24a..af607c5 100644 --- a/

[U-Boot] [PATCH 04/14] env: ext4: Allow overriding interface, device and partition

2019-05-10 Thread Patrice Chotard
For platform which can boot on different device, this allows to override interface, device and partition from board code. Signed-off-by: Patrice Chotard --- env/ext4.c | 34 +- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/env/ext4.c b/env/ext4.

[U-Boot] [PATCH 01/14] Prepare v2019.07-rc1

2019-05-10 Thread Patrice Chotard
From: Tom Rini Signed-off-by: Tom Rini Signed-off-by: Patrice Chotard --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f2c7bb6..d6a6ef1 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,9 @@ # SPDX-License-Identifier: GPL-2.0+ VE

[U-Boot] [PATCH 12/14] configs: stm32mp15: Enable ENV_IS_IN_UBI

2019-05-10 Thread Patrice Chotard
Add all relative flags needed by ENV_IS_IN_UBI Signed-off-by: Patrice Chotard --- configs/stm32mp15_basic_defconfig | 4 configs/stm32mp15_trusted_defconfig | 4 include/configs/stm32mp1.h | 4 3 files changed, 12 insertions(+) diff --git a/configs/stm32mp15_basic_def

[U-Boot] [PATCH 05/14] board: stm32mp1: Add env_ext4_get_dev_part() and env_ext4_get_intf()

2019-05-10 Thread Patrice Chotard
This allows to : - select the current device to save the environment file - select the correct EXT4 boot device instance and partition to save the environment file. For EXT4, device is mmc, device instance is 0 for sdcard or 1 for eMMC. The partition is set to "auto" to select the first partitio

[U-Boot] [PATCH 13/14] configs: stm32mp15: Enable ENV_IS_SPI_FLASH

2019-05-10 Thread Patrice Chotard
Add all relative flags needed by ENV_IS_IN_SPI_FLASH Reserved a 256KB partition in NOR to save the U-Boot environment. Signed-off-by: Patrice Chotard --- configs/stm32mp15_basic_defconfig | 1 + configs/stm32mp15_trusted_defconfig | 1 + include/configs/stm32mp1.h | 7 ++- 3 fil

[U-Boot] [PATCH 10/14] mtd: Fix get_mtdparts()

2019-05-10 Thread Patrice Chotard
When ENV_IS_IN_UBI is enable, get_mtdparts is called before relocation. During first get_mtdparts() call, mtdparts is not available in environment, it can be retrieved by calling board_mtdparts_default(), but following env_set() do nothing as we are before relocation. Finally mtdparts is still not

[U-Boot] [PATCH 11/14] stm32mp1: Move ENV_SIZE to Kconfig

2019-05-10 Thread Patrice Chotard
Move ENV_SIZE from include/configs/stm32mp1.h to arch/arm/mach-stm32mp/Kconfig Increase ENV_SIZE from 4 to 8 Ko Signed-off-by: Patrick Delaunay Signed-off-by: Patrice Chotard --- arch/arm/mach-stm32mp/Kconfig | 3 +++ env/Kconfig | 2 +- include/configs/stm32mp1.h| 5 ---

[U-Boot] [PATCH 00/14] Add saveenv support for STM32MP1

2019-05-10 Thread Patrice Chotard
This series adds saveenv support for STM32MP1 on several boot devices. STM32MP1 is able to boot on eMMC, sdcard and NOR (NAND support is not fully supported). On eMMC and sdcard, environment is saved in EXT4 partition On NOR, environment is saved in a dedicated partition On NAND, environment is s

[U-Boot] [PATCH 07/14] env: enable saveenv command when one CONFIG_ENV_IS_IN is activated

2019-05-10 Thread Patrice Chotard
From: Patrick Delaunay Introduce ENV_IS_IN_DEVICE to test if one the CONFIG_ENV_IS_IN_ is defined and support the command saveenv even if CONFIG_ENV_IS_NOWHERE is activated Signed-off-by: Patrick Delaunay Signed-off-by: Patrice Chotard --- cmd/nvedit.c | 36 +-

[U-Boot] [PATCH 08/14] configs: stm32mp15: Enable ENV_IS_IN_EXT4 and all relative flags

2019-05-10 Thread Patrice Chotard
From: Patrick Delaunay Enable ENV_IS_IN_EXT4 and all relative flags to be able to load/save environment in EXT4 partition. This will allows to load/save environment on both sdcard and eMMC. As for stm32mp15, bootfs has not the same partition number on sdcard and on eMMC, we use "auto" key which

[U-Boot] [PATCH 02/14] stm32mp1: activate NAND and NOR support on EV1

2019-05-10 Thread Patrice Chotard
From: Patrick Delaunay Add the necessary configuration to have NAND and NOR support on ev1 board for BASIC boot (with SPL) or for TRUSTED boot (with TF-A). STM32MP> nand info Device 0: nand0, sector size 256 KiB Page size 4096 b OOB size 224 b Erase size262144 b subpag

[U-Boot] [PATCH 06/14] env: allow ENV_IS_NOWHERE with other storage target

2019-05-10 Thread Patrice Chotard
Allow U-Boot to get default environment for some boot mode (USB for example), and to select storage location when it is booting from flash device; ENVL_NOWHERE is present in env_locations with other one. Signed-off-by: Patrick Delaunay Signed-off-by: Patrice Chotard --- env/Kconfig | 18 ++

[U-Boot] [PATCH 09/14] stm32mp1: Add env_get_location()

2019-05-10 Thread Patrice Chotard
In case of several environment location support, env_get_location is needed to select the correct location depending of the boot device . Signed-off-by: Patrice Chotard --- board/st/stm32mp1/stm32mp1.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/board/st/stm32mp

[U-Boot] [PATCH 03/14] stm32mp1: support dynamic MTDPARTS

2019-05-10 Thread Patrice Chotard
This patch configure the default value for mtdids and mtparts dynamically according the presence of nor and nand in the board device tree Signed-off-by: Patrick Delaunay Signed-off-by: Christophe Kerello Signed-off-by: Patrice Chotard --- board/st/stm32mp1/stm32mp1.c | 85

Re: [U-Boot] [PATCH v2] include: android_bl_msg.h: Initial import

2019-05-10 Thread Heinrich Schuchardt
On 5/10/19 3:12 PM, Sam Protsenko wrote: From: Eugeniu Rosca Import the bootloader_message.h (former bootloader.h) from AOSP. The bootloader_message.h basically defines the flash layout of a dedicated partition (usually called 'misc') and is needed in U-Boot in order to be able to implement a

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

2019-05-10 Thread Stephen Warren
On 5/10/19 5:12 AM, Tom Rini wrote: On Tue, Apr 16, 2019 at 04:04:49PM -0600, 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

Re: [U-Boot] [PATCH 04/14] arm: socfpga: agilex: Add reset manager support

2019-05-10 Thread Dinh Nguyen
On 5/10/19 12:54 AM, Ley Foon Tan wrote: > Add reset manager support for Agilex. > > Signed-off-by: Ley Foon Tan > --- > .../mach-socfpga/include/mach/reset_manager.h | 5 ++- > .../include/mach/reset_manager_agilex.h | 38 +++ AFAIK, there's really nothing different in

Re: [U-Boot] [EXT] Re: [ARMv8] kernel entry point

2019-05-10 Thread Tom Rini
On Fri, May 10, 2019 at 03:14:40PM +, Pankaj Bansal wrote: > > > > -Original Message- > > From: Tom Rini > > Sent: Friday, 10 May, 2019 08:36 PM > > To: Pankaj Bansal > > Cc: u-boot@lists.denx.de; Prabhakar Kushwaha > > ; Varun Sethi > > Subject: Re: [EXT] Re: [ARMv8] kernel entry

Re: [U-Boot] [PATCH 1/2] sysreset: select DM_GPIO instead of GPIO

2019-05-10 Thread Tom Rini
On Sat, Apr 13, 2019 at 08:35:23PM +1200, Chris Packham wrote: > CONFIG_GPIO does not exist. sysreset_gpio.c uses the DM gpio APIs so the > correct option to select is DM_GPIO. > > Reported-by: Robert P. J. Day > Signed-off-by: Chris Packham > Reviewed-by: Simon Glass Applied to u-boot/master

Re: [U-Boot] [PATCH 2/4] mtd: ubi: Remove select for non existent option

2019-05-10 Thread Tom Rini
On Sat, Apr 13, 2019 at 09:13:57PM +1200, Chris Packham wrote: > There is no 'config CRC32' remove the select that was attempting to use > it. > > Reported-by: Robert P. J. Day > Signed-off-by: Chris Packham > Reviewed-by: Heiko Schocher Applied to u-boot/master, thanks! -- Tom signature.

Re: [U-Boot] [PATCH 1/4] cmd: ubifs: Remove select for non-existent option

2019-05-10 Thread Tom Rini
On Sat, Apr 13, 2019 at 09:13:56PM +1200, Chris Packham wrote: > There is no 'config CRC32', remove the select that was attempting to use > it. > > Reported-by: Robert P. J. Day > Signed-off-by: Chris Packham > Reviewed-by: Heiko Schocher Applied to u-boot/master, thanks! -- Tom signature

Re: [U-Boot] [PATCH 3/4] Remove #define CONFIG_CRC32

2019-05-10 Thread Tom Rini
On Sat, Apr 13, 2019 at 09:13:58PM +1200, Chris Packham wrote: > There is no check for CONFIG_CRC32 so the #define in image.h does > nothing. Remove it. > > Reported-by: Robert P. J. Day > Signed-off-by: Chris Packham > Reviewed-by: Stefano Babic > Reviewed-by: Heiko Schocher Applied to u-bo

Re: [U-Boot] [EXT] Re: [ARMv8] kernel entry point

2019-05-10 Thread Pankaj Bansal
> -Original Message- > From: Tom Rini > Sent: Friday, 10 May, 2019 08:36 PM > To: Pankaj Bansal > Cc: u-boot@lists.denx.de; Prabhakar Kushwaha > ; Varun Sethi > Subject: Re: [EXT] Re: [ARMv8] kernel entry point > > On Fri, May 10, 2019 at 02:40:52PM +, Pankaj Bansal wrote: > > Hi

Re: [U-Boot] [PATCH 4/4] Remove whitelist entry for CONFIG_CRC32

2019-05-10 Thread Tom Rini
On Sat, Apr 13, 2019 at 09:13:59PM +1200, Chris Packham wrote: > There are no longer any references to this in the code so this can be > removed. > > Signed-off-by: Chris Packham > Reviewed-by: Heiko Schocher Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [PATCH 2/2] Remove whitelist entry for CONFIG_GPIO

2019-05-10 Thread Tom Rini
On Sat, Apr 13, 2019 at 08:35:24PM +1200, Chris Packham wrote: > CONFIG_GPIO does not exist. There is one hit for it in tegra_gpio.c but > it is a variable name. > > Signed-off-by: Chris Packham > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description:

Re: [U-Boot] [EXT] Re: [ARMv8] kernel entry point

2019-05-10 Thread Tom Rini
On Fri, May 10, 2019 at 02:40:52PM +, Pankaj Bansal wrote: > Hi Tom, > > Further update. > I asked this question to linux maintainer, and he pointed out that load > address that I am using is not correct. > The linux load address should be (2 MB aligned + text_offset). > The text_offset can b

Re: [U-Boot] [PATCH 01/14] arm: socfpga: agilex: Add base address for Intel Agilex SoC

2019-05-10 Thread Dinh Nguyen
On 5/10/19 12:54 AM, Ley Foon Tan wrote: > Add base address for Intel Agilex SoC. > > Signed-off-by: Ley Foon Tan > --- > .../include/mach/base_addr_agilex.h | 38 +++ > 1 file changed, 38 insertions(+) > create mode 100644 arch/arm/mach-socfpga/include/mach/base_add

Re: [U-Boot] [EXT] Re: [ARMv8] kernel entry point

2019-05-10 Thread Pankaj Bansal
Hi Tom, Further update. I asked this question to linux maintainer, and he pointed out that load address that I am using is not correct. The linux load address should be (2 MB aligned + text_offset). The text_offset can be obtained from first 64 bytes in linux Image. For our use case it comes out

Re: [U-Boot] [PATCH 1/2] include: android_bl_msg.h: Initial import

2019-05-10 Thread Sam Protsenko
Hi Eugeniu, On Thu, May 9, 2019 at 4:41 AM Eugeniu Rosca wrote: > > Hi Sam, > > Thanks for the amazing effort to put the recent BCB/AB-related > advancements together and make them work. I really look forward to > seeing this part of mainline. Still, I have some concerns/questions > and hope to g

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

2019-05-10 Thread Bartosz Golaszewski
pt., 10 maj 2019 o 14:51 Bartosz Golaszewski napisał(a): > > pt., 10 maj 2019 o 14:31 Adam Ford napisał(a): > > > > On Fri, May 10, 2019 at 7:22 AM Bartosz Golaszewski wrote: > > > > > > czw., 9 maj 2019 o 20:48 Joe Hershberger > > > napisał(a): > > > > > > > > On Tue, Apr 30, 2019 at 11:04 AM

Re: [U-Boot] [PATCH 2/5] net: dwc_eth_qos: add Ethernet stm32mp1 support

2019-05-10 Thread Christophe ROULLIER
Hi Joe, On 09/05/2019 23:07, Joe Hershberger wrote: > On Fri, Apr 26, 2019 at 6:16 AM Christophe Roullier > wrote: >> Synopsys GMAC 4.20 is used. And Phy mode for eval and disco is RMII >> with PHY Realtek RTL8211 (RGMII) >> We also support some other PHY config on stm32mp157c >> PHY_MODE

Re: [U-Boot] [PATCH v2] include: android_bl_msg.h: Initial import

2019-05-10 Thread Sam Protsenko
Hi Eugeniu, Sent this patch on behalf of you (authorship is preserved), hope you don't mind. All comments are addressed (please check "Changes in v2" section). Please let me know what you think. If it's ok with you, please add your "Reviewed-by" tag, so that it can be merged and we can continue wi

[U-Boot] [PATCH v2] include: android_bl_msg.h: Initial import

2019-05-10 Thread Sam Protsenko
From: Eugeniu Rosca Import the bootloader_message.h (former bootloader.h) from AOSP. The bootloader_message.h basically defines the flash layout of a dedicated partition (usually called 'misc') and is needed in U-Boot in order to be able to implement a subset of Android Bootloader Requirements [

Re: [U-Boot] [PATCH] watchdog: ulp_wdog: Remove unused ULP watchdog driver and its references

2019-05-10 Thread Peng Fan
> Subject: Re: [PATCH] watchdog: ulp_wdog: Remove unused ULP watchdog > driver and its references > > Hi Peng, > > On 10.05.19 15:01, Peng Fan wrote: > > Hi Stefan, > > > >> Subject: [PATCH] watchdog: ulp_wdog: Remove unused ULP watchdog > >> driver and its references > > > > We will convert it

Re: [U-Boot] [PATCH] watchdog: ulp_wdog: Remove unused ULP watchdog driver and its references

2019-05-10 Thread Stefan Roese
Hi Peng, On 10.05.19 15:01, Peng Fan wrote: Hi Stefan, Subject: [PATCH] watchdog: ulp_wdog: Remove unused ULP watchdog driver and its references We will convert it do DM, please keep it for a while. Conversion alone is not enough in this case. You need to actually use it in one or more boa

Re: [U-Boot] [PATCH] watchdog: ulp_wdog: Remove unused ULP watchdog driver and its references

2019-05-10 Thread Peng Fan
Hi Stefan, > Subject: [PATCH] watchdog: ulp_wdog: Remove unused ULP watchdog driver > and its references We will convert it do DM, please keep it for a while. Thanks, Peng. > > The ULP watchdog is not used in mainline U-Boot at all. This patch removes > the driver and its references (CONFIG_UL

Re: [U-Boot] [PATCH] MAINTAINERS: Add imx dts files to i.MX maintainers list

2019-05-10 Thread Peng Fan
> Subject: [PATCH] MAINTAINERS: Add imx dts files to i.MX maintainers list > > Add imx dts files to the MAINTAINERS file list, so that i.MX devicetree > related > patches can be properly sent to the i.MX folks. > > Reported-by: Adam Ford > Signed-off-by: Fabio Estevam > --- > MAINTAINERS | 1

Re: [U-Boot] [PATCH 1/1] pci: pci_mvebu: ignore the local device

2019-05-10 Thread Stefan Roese
On 10.05.19 13:44, Marek Behun wrote: On Fri, 10 May 2019 10:15:25 +0200 Stefan Roese wrote: On 10.05.19 04:56, Marek Behún wrote: The local device (host "bridge"?) on pci_mvebu controller reports PCI_CLASS_MEMORY_OTHER in the class register. This does not work in U-Boot, because U-Boot then

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

2019-05-10 Thread Bartosz Golaszewski
pt., 10 maj 2019 o 14:31 Adam Ford napisał(a): > > On Fri, May 10, 2019 at 7:22 AM Bartosz Golaszewski wrote: > > > > czw., 9 maj 2019 o 20:48 Joe Hershberger > > napisał(a): > > > > > > On Tue, Apr 30, 2019 at 11:04 AM Bartosz Golaszewski > > > wrote: > > > > > > > > From: Bartosz Golaszewsk

Re: [U-Boot] [PATCH 1/2] Convert CONFIG_NAND to Kconfig

2019-05-10 Thread Tom Rini
On Fri, May 10, 2019 at 07:00:19AM -0500, Adam Ford wrote: > On Sat, Mar 9, 2019 at 6:03 PM Adam Ford wrote: > > > > This converts the following to Kconfig: > >CONFIG_NAND > > > > A bunch of boards have dependent NAND drivers, and CONFIG_NAND > > is already in Kconfig, so this patch en

[U-Boot] [PATCH] watchdog: bcm2835_wdt: Remove unused BCM283x watchdog driver and its references

2019-05-10 Thread Stefan Roese
The BCM2835/2836 watchdog is not used in mainline U-Boot at all. This patch removes the driver and its references (CONFIG_BCM2835_WDT) completely. Signed-off-by: Stefan Roese Cc: Paolo Pisati --- arch/arm/mach-bcm283x/reset.c | 4 drivers/watchdog/Kconfig | 9 - drivers/wa

Re: [U-Boot] [PATCH] ARM: DTS: imx6q-logicpd: Resync with Linux 5.1

2019-05-10 Thread Fabio Estevam
Hi Adam, On Fri, May 10, 2019 at 9:06 AM Adam Ford wrote: > Sorry. I thought I had done that. I wish the get_maintainer.pl > script was able to determine that. Just sent a patch that will make get_maintainer.pl capture the correct email addresses for i.MX dt files. ___

[U-Boot] [PATCH] watchdog: ulp_wdog: Remove unused ULP watchdog driver and its references

2019-05-10 Thread Stefan Roese
The ULP watchdog is not used in mainline U-Boot at all. This patch removes the driver and its references (CONFIG_ULP_WATCHDOG) completely. Signed-off-by: Stefan Roese Cc: Peng Fan Cc: Ye Li Cc: Stefano Babic --- arch/arm/mach-imx/mx7ulp/soc.c | 2 - drivers/watchdog/Kconfig | 5 -- dr

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

2019-05-10 Thread Adam Ford
On Fri, May 10, 2019 at 7:22 AM Bartosz Golaszewski wrote: > > czw., 9 maj 2019 o 20:48 Joe Hershberger napisał(a): > > > > On Tue, Apr 30, 2019 at 11:04 AM Bartosz Golaszewski wrote: > > > > > > From: Bartosz Golaszewski > > > > > > Add support for CONFIG_DM_ETH to the davinci_emac driver. Opt

[U-Boot] [PATCH] MAINTAINERS: Add imx dts files to i.MX maintainers list

2019-05-10 Thread Fabio Estevam
Add imx dts files to the MAINTAINERS file list, so that i.MX devicetree related patches can be properly sent to the i.MX folks. Reported-by: Adam Ford Signed-off-by: Fabio Estevam --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 09f31cd483..f11

Re: [U-Boot] [PATCH 05/14] arm: socfpga: Move Stratix10 and Agilex system manager common code

2019-05-10 Thread Marek Vasut
On 5/10/19 7:54 AM, Ley Foon Tan wrote: > Move Stratix10 and Agilex system manager common code to system_manager.h. > > Signed-off-by: Ley Foon Tan This becomes quite a bit of ifdeffery . Why don't you have the system_manager.h include system_manager_$soc.h like e.g. here? http://git.denx.de/?p

Re: [U-Boot] [PATCH 13/14] arm: dts: agilex: Add base dtsi and devkit dts

2019-05-10 Thread Marek Vasut
On 5/10/19 7:54 AM, Ley Foon Tan wrote: > Add device tree files for Agilex SoC platform. > > Signed-off-by: Ley Foon Tan Are these from Linux ? If so, which version and commit ? -- Best regards, Marek Vasut ___ U-Boot mailing list U-Boot@lists.denx.d

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

2019-05-10 Thread Bartosz Golaszewski
czw., 9 maj 2019 o 20:48 Joe Hershberger napisał(a): > > On Tue, Apr 30, 2019 at 11:04 AM Bartosz Golaszewski wrote: > > > > 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

Re: [U-Boot] [PATCH 10/14] ddr: altera: agilex: Add SDRAM driver for Agilex

2019-05-10 Thread Marek Vasut
On 5/10/19 7:54 AM, Ley Foon Tan wrote: > Add SDRAM driver for Agilex SoC. > > Signed-off-by: Tien Fong Chee > Signed-off-by: Ley Foon Tan > --- > drivers/ddr/altera/Kconfig| 6 +- > drivers/ddr/altera/Makefile | 1 + > drivers/ddr/altera/sdram_agilex.c | 158 +

Re: [U-Boot] [PATCH 07/14] arm: socfpga: agilex: Add clock manager support

2019-05-10 Thread Marek Vasut
On 5/10/19 7:54 AM, Ley Foon Tan wrote: > Add clock manager support for Agilex. > > Signed-off-by: Chee Hong Ang > Signed-off-by: Ley Foon Tan > --- > arch/arm/mach-socfpga/Makefile| 4 + > arch/arm/mach-socfpga/clock_manager_agilex.c | 582 ++ > .../mach-socf

  1   2   >