[U-Boot] [PATCH v4] board/BuR/brsmarc1: initial commit

2019-07-30 Thread Hannes Schmelzer
This commit adds support for the B brsmarc1 SoM. The SoM is based on TI's AM335x SoC. Mainly vxWorks 6.9.4.x is running on the board, doing some PLC stuff on various carrier boards. Signed-off-by: Hannes Schmelzer --- Changes in v4: - rebase to current master Changes in v3: - rebase to

Re: [U-Boot] [PATCH 1/2] configs: am65x_evm_a53: Disable K3_SYSTEM_CONTROLLER

2019-07-30 Thread Lokesh Vutla
On 30/07/19 9:48 PM, Tom Rini wrote: > On Tue, Jul 30, 2019 at 11:16:19AM -0500, Suman Anna wrote: >> Hi Lokesh, >> >> On 7/29/19 11:08 PM, Lokesh Vutla wrote: >>> >>> >>> On 29/07/19 10:18 PM, Suman Anna wrote: The K3 System Controller driver is used for loading and starting the

Re: [U-Boot] [PATCH] riscv : serial: use rx watermark to indicate rx data is present

2019-07-30 Thread Rick Chen
Hi Anup > Hi Rick, > > On Fri, Jul 26, 2019 at 12:32 PM Rick Chen wrote: > > > > Hi Sagar > > > > > From: Sagar Kadam [mailto:sagar.ka...@sifive.com] > > > Sent: Friday, July 19, 2019 7:37 PM > > > To: Rick Jian-Zhi Chen(陳建志) > > > Subject: Re: [U-Boot] [PATCH] riscv : serial: use rx watermark

Re: [U-Boot] x86 FSP 2

2019-07-30 Thread Bin Meng
Hi Simon, On Wed, Jul 31, 2019 at 10:55 AM Simon Glass wrote: > > Hi Bin, > > On Thu, 23 May 2019 at 08:04, Bin Meng wrote: > > > > Hi Simon, > > > > On Thu, May 23, 2019 at 8:20 PM Simon Glass wrote: > > > > > > Hi Bin, > > > > > > I'm looking at Apollo Lake and it seems to use a newer FSP

Re: [U-Boot] x86 FSP 2

2019-07-30 Thread Simon Glass
Hi Bin, On Thu, 23 May 2019 at 08:04, Bin Meng wrote: > > Hi Simon, > > On Thu, May 23, 2019 at 8:20 PM Simon Glass wrote: > > > > Hi Bin, > > > > I'm looking at Apollo Lake and it seems to use a newer FSP version > > (2.0). The API differences seem to be fairly minor but the packaging > >

Re: [U-Boot] [PATCH v2 1/1] test: dm_mdio: avoid out of bounds access

2019-07-30 Thread Joe Hershberger
On Tue, Jul 30, 2019 at 4:49 PM Heinrich Schuchardt wrote: > > SANDBOX_PHY_REG_CNT is not an allowable index for the array > u16 reg[SANDBOX_PHY_REG_CNT]. > > Identified by cppcheck. > > Fixes: b47edf8069cc ("test: dm_mdio: add a 2nd register to the emulated PHY") > Signed-off-by: Heinrich

Re: [U-Boot] [PATCH 1/1] drivers: net: pfe_eth: undefined return value

2019-07-30 Thread Joe Hershberger
On Tue, Jul 30, 2019 at 5:01 PM Heinrich Schuchardt wrote: > > Do not use random value from stack as return value of pfe_phy_write(). > > Indicated by cppcheck. > > Signed-off-by: Heinrich Schuchardt Acked-by: Joe Hershberger ___ U-Boot mailing list

Re: [U-Boot] [PATCH v2] net: mvpp2: support setting hardware addresses from ethernet core

2019-07-30 Thread Joe Hershberger
On Tue, Jul 30, 2019 at 8:41 AM Matt Pelland wrote: > > mvpp2 already has support for setting MAC addresses but this > functionality was not exposed to the ethernet core. This commit exposes > this functionality so that MAC address assignments stored in U-Boot's > environment are correctly

[U-Boot] [PATCH 1/1] drivers: net: pfe_eth: undefined return value

2019-07-30 Thread Heinrich Schuchardt
Do not use random value from stack as return value of pfe_phy_write(). Indicated by cppcheck. Signed-off-by: Heinrich Schuchardt --- drivers/net/pfe_eth/pfe_mdio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/pfe_eth/pfe_mdio.c

[U-Boot] [PATCH 1/2] net: Fix Covarity Defect 244093

2019-07-30 Thread Joe Hershberger
Don't allow unterminated strings Signed-off-by: Joe Hershberger --- net/mdio-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mdio-uclass.c b/net/mdio-uclass.c index 36a404ff44..1c0d25272a 100644 --- a/net/mdio-uclass.c +++ b/net/mdio-uclass.c @@ -75,7 +75,7 @@

[U-Boot] [PATCH 2/2] net: mdio: Clarify code flow Covarity 244085 & 244090

2019-07-30 Thread Joe Hershberger
Document that the lack of breaks is intentional. Signed-off-by: Joe Hershberger --- cmd/mdio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/mdio.c b/cmd/mdio.c index add6440813..22c8fbe856 100644 --- a/cmd/mdio.c +++ b/cmd/mdio.c @@ -253,12 +253,13 @@ static int

Re: [U-Boot] [PATCH 32/39] env: Rename the redundancy flags

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:27 AM Simon Glass wrote: > > Add an ENV prefix to these two flags so that it is clear what they relate > to. Also move them to env.h since they are part of the public API. Use an > enum rather than a #define to tie them together. > > Signed-off-by: Simon Glass > --- > >

[U-Boot] [PATCH v2 1/1] test: dm_mdio: avoid out of bounds access

2019-07-30 Thread Heinrich Schuchardt
SANDBOX_PHY_REG_CNT is not an allowable index for the array u16 reg[SANDBOX_PHY_REG_CNT]. Identified by cppcheck. Fixes: b47edf8069cc ("test: dm_mdio: add a 2nd register to the emulated PHY") Signed-off-by: Heinrich Schuchardt --- v2 the same error occurs twice ---

[U-Boot] [PATCH 1/1] test: dm_mdio: avoid out of bounds access

2019-07-30 Thread Heinrich Schuchardt
SANDBOX_PHY_REG_CNT is not an allowable index for the array u16 reg[SANDBOX_PHY_REG_CNT]. Identified by cppcheck. Fixes: b47edf8069cc ("test: dm_mdio: add a 2nd register to the emulated PHY") Signed-off-by: Heinrich Schuchardt --- drivers/net/mdio_sandbox.c | 2 +- 1 file changed, 1

Re: [U-Boot] [PATCH 31/39] env: Drop _ENTRY

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:28 AM Simon Glass wrote: > > This typedef does not need to be defined in the search.h header since it > is only used in one file (hashtable.c). Remove it from the header and > change it to a struct. > > Signed-off-by: Simon Glass > --- > > include/search.h | 2 +- >

Re: [U-Boot] [PATCH 34/39] env: Drop the double underscores in search.h

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:29 AM Simon Glass wrote: > > There doesn't seem to be any good reason for using __ in the arguments in > this header file. A double underscore is usually reserved for compiler > features. > > Drop these and remove the unnecessary 'extern' as well. > > Signed-off-by:

[U-Boot] [PATCH 1/1] nand: davinci: avoid out of bounds array access

2019-07-30 Thread Heinrich Schuchardt
The array bounds have to be checked before accessing the array element. Identified by cppcheck. Fixes: 67ac6ffaeefb ("mtd: nand: davinci: add opportunity to write keystone U-boot image") Signed-off-by: Heinrich Schuchardt --- drivers/mtd/nand/raw/davinci_nand.c | 4 ++-- 1 file changed, 2

Re: [U-Boot] [PATCH 29/39] env: Move callback definitions to env.h

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:28 AM Simon Glass wrote: > > These definitions are effectively part of the 'public' API of the > environment implementation since they do not require access to any > internal variables. Move them to the env.h header. > > Signed-off-by: Simon Glass Acked-by: Joe

Re: [U-Boot] [PATCH 27/39] env: Rename environment to embedded_environment

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:29 AM Simon Glass wrote: > > The name 'environment' is widely used in U-Boot so is not a very useful > name of a variable. Rename it to better indicate its purpose. > > Signed-off-by: Simon Glass Acked-by: Joe Hershberger

Re: [U-Boot] [PATCH 26/39] env: Move env_reloc() to env.h

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:29 AM Simon Glass wrote: > > Move env_reloc() over to the new header file. > > Signed-off-by: Simon Glass Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 23/39] env: Drop env_crc_update()

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:27 AM Simon Glass wrote: > > This function is not defined or used in U-Boot. Drop it. > > Signed-off-by: Simon Glass Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH 25/39] env: Move env_get_char() to env.h

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:26 AM Simon Glass wrote: > > Move env_get_char() over to the new header file. > > Signed-off-by: Simon Glass Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 36/39] env: Drop environment.h header file where not needed

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:24 AM Simon Glass wrote: > > This header file is now only used by files that access internal > environment features. Drop it from various places where it is not needed. > > Signed-off-by: Simon Glass Acked-by: Joe Hershberger

Re: [U-Boot] [PATCH 16/39] env: Move env_set() to env.h

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:24 AM Simon Glass wrote: > > Move env_set() over to the new header file. > > Signed-off-by: Simon Glass Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 30/39] env: Drop the ENTRY typdef

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:24 AM Simon Glass wrote: > > U-Boot is not supposed to use typedef for structs anymore. Also this name > is the same as the ENTRY() macro used in assembler files, and 'entry' > itself is widely used in U-Boot (>8k matches). > > Drop the typedef and rename the struct to

Re: [U-Boot] [PATCH 35/39] env: Move TOTAL_MALLOC_LEN to environment.h

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:24 AM Simon Glass wrote: > > This declaration is only used in three files. Although it relates to > malloc() it is actually only used during malloc() init. It uses CONFIG > options including CONFIG_ENV_ADDR which are defined only in environment.h > so this header must be

Re: [U-Boot] [PATCH 33/39] env: Drop the ACTION typedef

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:22 AM Simon Glass wrote: > > Avoid using a typedef here which is unnecessary. Add an 'env_' prefix to > both the enum and its members to make it clear that these are related to > the environment. > > Add an ENV prefix to these two flags so that it is clear what they

Re: [U-Boot] [PATCH 12/39] env: Move env_set_ulong() to env.h

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:22 AM Simon Glass wrote: > > Move env_set_ulong() over to the new header file. > > Signed-off-by: Simon Glass Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 17/39] env: Move env_get() to env.h

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:22 AM Simon Glass wrote: > > Move env_get() over to the new header file. > > Signed-off-by: Simon Glass Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH 1/1] clk: meson: remove duplicate logic

2019-07-30 Thread Heinrich Schuchardt
First thing we check in meson_clk_set_rate_by_id() is current_rate == rate. There is not need to check it again. Signed-off-by: Heinrich Schuchardt --- drivers/clk/meson/gxbb.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/clk/meson/gxbb.c

Re: [U-Boot] [PATCH 37/39] env: Rename environment.h to env_internal.h

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:22 AM Simon Glass wrote: > > This file contains lots of internal details about the environment. Most > code can include env.h instead, calling the functions there as needed. > > Rename this file and add a comment at the top to indicate its internal > nature. > >

Re: [U-Boot] [PATCH 10/39] env: Move envmatch() to env.h

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:15 AM Simon Glass wrote: > > Move envmatch() over to the new header file. Also rename it to env_match() > to better line up with other functions. > > Signed-off-by: Simon Glass Acked-by: Joe Hershberger ___ U-Boot mailing

Re: [U-Boot] [PATCH 19/39] env: Move uncommon functions to env.h

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:21 AM Simon Glass wrote: > > Move eth_parse_enetaddr() and env_fix_drivers() over to the new header > file. > > Signed-off-by: Simon Glass > --- > > cmd/ethsw.c | 1 + > include/env.h | 16 > include/environment.h | 7 --- > 3

Re: [U-Boot] [PATCH 20/39] env: Move set_default_vars to env.h

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:21 AM Simon Glass wrote: > > Move this function to the new header file and rename it so it has an env_ > prefix. > > Signed-off-by: Simon Glass Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH 22/39] env: Move env import/export functions to env.h

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:20 AM Simon Glass wrote: > > Move these functions to the new header file. > > Signed-off-by: Simon Glass Nit below. Acked-by: Joe Hershberger > > include/env.h | 38 ++ > include/environment.h | 12 > 2 files

Re: [U-Boot] [PATCH 21/39] env: Move env_load/save functions to env.h

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:19 AM Simon Glass wrote: > > Move these function to the new header file. > > Signed-off-by: Simon Glass Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 28/39] env: Move env_valid to env.h

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:19 AM Simon Glass wrote: > > This enum is somewhat widely used to determine if the environment is valid > or not. Move it to the common environment header file. > > Signed-off-by: Simon Glass Acked-by: Joe Hershberger ___

Re: [U-Boot] [PATCH 18/39] env: Move eth_env_get/set_enetaddr() to env.h

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:16 AM Simon Glass wrote: > > Move these two functions over to the new header file. > > Signed-off-by: Simon Glass Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 24/39] env: Move get/set_default_env() to env.h

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:12 AM Simon Glass wrote: > > Move these functions to the new header file and rename set_default_env() > to env_set_default() so that it has a consistent env_ prefix. > > Signed-off-by: Simon Glass Acked-by: Joe Hershberger

Re: [U-Boot] [PATCH 13/39] env: Move env_get_ulong() to env.h

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:09 AM Simon Glass wrote: > > Move env_get_ulong() over to the new header file. > > Signed-off-by: Simon Glass Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 08/39] env: Move env_init() to env.h

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:16 AM Simon Glass wrote: > > Move env_init() over to the new header file. > > Signed-off-by: Simon Glass Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 05/10] bios_emulator: Add some VESA interface debugging

2019-07-30 Thread Heinrich Schuchardt
On 12/30/14 3:32 AM, Simon Glass wrote: Allow the supported modes to be listed when in debug mode. Signed-off-by: Simon Glass --- drivers/bios_emulator/atibios.c | 161 +++- include/vbe.h | 9 ++- 2 files changed, 148 insertions(+),

Re: [U-Boot] [PATCH 05/39] env: Create a new file for environment functions

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:12 AM Simon Glass wrote: > > At present we have environment.h but this file includes all the > environment-related header files as well as internals such as > default_environment. > > It seems desirable to have a new header to hold the commonly used > environment

Re: [U-Boot] [PATCH 06/39] env: Move get_env_id() to env.h

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:11 AM Simon Glass wrote: > > Move this function over to the new header file. Also rename it to have an > env_ prefix like the other functions. > > Signed-off-by: Simon Glass Acked-by: Joe Hershberger ___ U-Boot mailing list

Re: [U-Boot] [PATCH 07/39] env: Move env_get_f() to env.h

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:11 AM Simon Glass wrote: > > Move this function over to the new header file. > > Signed-off-by: Simon Glass Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 11/39] env: Move env_set_hex() to env.h

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:10 AM Simon Glass wrote: > > Move env_set_hex() over to the new header file along with env_set_addr() > which uses it. > > Signed-off-by: Simon Glass Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH 14/39] env: Move env_get_yesno() to env.h

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:10 AM Simon Glass wrote: > > Move env_get_yesno() over to the new header file. > > Signed-off-by: Simon Glass Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 15/39] env: Move env_get_hex() to env.h

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:09 AM Simon Glass wrote: > > Move env_get_hex() over to the new header file. > > Signed-off-by: Simon Glass Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 09/39] env: Move env_relocate() to env.h

2019-07-30 Thread Joe Hershberger
On Sun, Jul 28, 2019 at 9:09 AM Simon Glass wrote: > > Move env_relocate() over to the new header file. > > Signed-off-by: Simon Glass Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 5/5] armv8: ls1028a: add icid setup for platform devices

2019-07-30 Thread Horia Geanta
On 7/30/2019 5:30 PM, laurentiu.tu...@nxp.com wrote: > From: Laurentiu Tudor > > Add ICID setup for the platform devices contained on this chip: usb, > sata, sdhc, edma, qdma, gpu, display and sec. > > Signed-off-by: Laurentiu Tudor Reviewed-by: Horia Geantă Thanks, Horia

Re: [U-Boot] [PATCH 4/5] armv8: ls1088a: add icid setup for platform devices

2019-07-30 Thread Horia Geanta
On 7/30/2019 5:30 PM, laurentiu.tu...@nxp.com wrote: > From: Laurentiu Tudor > > Add ICID setup for the platform devices contained on this chip: usb, > sata, sdhc, sec. The ICID macros for SEC needed to be adapted because > the format of the registers is different. > > Signed-off-by: Laurentiu

Re: [U-Boot] [PATCH 3/5] armv8: fsl-layerscape: make icid setup endianness aware

2019-07-30 Thread Horia Geanta
On 7/30/2019 5:30 PM, laurentiu.tu...@nxp.com wrote: > From: Laurentiu Tudor > > The current implementation assumes that the registers holding the ICIDs > are universally big endian. That's no longer the case on newer > platforms so update the code to take into account the endianness of > each

Re: [U-Boot] [PATCH 1/5] armv8: fsl-layerscape: add missing sec jr base address defines

2019-07-30 Thread Horia Geanta
On 7/30/2019 5:30 PM, laurentiu.tu...@nxp.com wrote: > From: Laurentiu Tudor > > Add defines for all the SEC job rings base addresses. > > Signed-off-by: Laurentiu Tudor Reviewed-by: Horia Geantă Thanks, Horia ___ U-Boot mailing list

[U-Boot] [PATCH v2 2/4] efi_loader: definition of efi_virtual_address_map()

2019-07-30 Thread Heinrich Schuchardt
Use efi_uintn_t where the UEFI spec uses UINTN. Use efi_uintn_t also for the result of the division of two efi_uintn_t. Signed-off-by: Heinrich Schuchardt --- v2 no change --- include/efi_api.h| 4 ++-- lib/efi_loader/efi_runtime.c | 14 +++--- 2 files changed, 9

[U-Boot] [PATCH v2 4/4] efi_selftest: sharpen ConvertPointer() test

2019-07-30 Thread Heinrich Schuchardt
Now that ConvertPointer() is implemented throw an error if the result is incorrect. Signed-off-by: Heinrich Schuchardt --- v2 no change --- .../efi_selftest_set_virtual_address_map.c| 30 ++- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git

[U-Boot] [PATCH v2 3/4] efi_loader: implement ConvertPointer()

2019-07-30 Thread Heinrich Schuchardt
Implement the ConvertPointer() runtime service. Suggested-by: AKASHI Takahiro Signed-off-by: Heinrich Schuchardt --- v2 replace || by | when setting RuntimeServicesSupported variable --- lib/efi_loader/efi_runtime.c | 75 ++-- 1 file changed, 71

[U-Boot] [PATCH v2 0/4] efi_loader: implement ConvertPointer()

2019-07-30 Thread Heinrich Schuchardt
Correct the signature of efi_virtual_address_map(). Implement the ConvertPointer() runtime service. Adjust the unit test for ConvertPointer(). v2 replace || by | when setting RuntimeServicesSupported variable Heinrich Schuchardt (4): efi_selftest: fix SetVirtualAddressMap unit test

[U-Boot] [PATCH v2 1/4] efi_selftest: fix SetVirtualAddressMap unit test

2019-07-30 Thread Heinrich Schuchardt
We read the address map before assigning the memory for the pages that will be mapped to virtual addresses. So these pages will overlap with the entry for EFI_CONVENTIONAL_MEMORY. We have to ensure that every page is described at most once in the map. Remove EFI_CONVENTIONAL_MEMORY from the map

[U-Boot] Please pull u-boot-video

2019-07-30 Thread Anatolij Gustschin
Hi Tom, here some more video patches I missed to include in the recent pull request. Travis CI: https://travis-ci.org/vdsao/u-boot-video/builds/565440648 Thanks, Anatolij The following changes since commit 970baf16d1322d3930a57fc78ddfb15d594d690c: video: arm: rpi: Bail out early if querying

[U-Boot] [PATCH 40/48] stm32mp1: ram: cosmetic: remove unused prototype

2019-07-30 Thread Patrick Delaunay
Signed-off-by: Patrick Delaunay --- drivers/ram/stm32mp1/stm32mp1_ddr.h | 4 1 file changed, 4 deletions(-) diff --git a/drivers/ram/stm32mp1/stm32mp1_ddr.h b/drivers/ram/stm32mp1/stm32mp1_ddr.h index a8eed89..52b748f 100644 --- a/drivers/ram/stm32mp1/stm32mp1_ddr.h +++

Re: [U-Boot] [PATCH] sifive: riscv: update Hifive Unleashed configuration infrastructure

2019-07-30 Thread Sagar Kadam
Hello Anup, On Tue, Jul 30, 2019 at 9:12 AM Anup Patel wrote: > > On Mon, Jul 29, 2019 at 6:13 PM Sagar Shrikant Kadam > wrote: > > > > This patch aligns the current implementation of HiFive Unleashed > > board configuration framework with the one described in doc/README.kconfig. > > > >

[U-Boot] [PATCH 32/48] stm32mp1: board: protect the led function calls

2019-07-30 Thread Patrick Delaunay
Avoid compilation issue when CONFIG_LED is not activated Signed-off-by: Patrick Delaunay --- board/st/stm32mp1/stm32mp1.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c index 61a4253..181409c 100644 ---

[U-Boot] [PATCH 24/48] stm32mp1: configs: add CONFIG_CMD_BMP

2019-07-30 Thread Patrick Delaunay
Activate command BMP for splash screen support Signed-off-by: Patrick Delaunay --- configs/stm32mp15_basic_defconfig | 1 + configs/stm32mp15_optee_defconfig | 1 + configs/stm32mp15_trusted_defconfig | 1 + 3 files changed, 3 insertions(+) diff --git a/configs/stm32mp15_basic_defconfig

[U-Boot] [PATCH 23/48] stm32mp1: configs: add BACKLIGHT_GPIO support

2019-07-30 Thread Patrick Delaunay
Backlight of panel raydium RM68200 is controlled by a simple gpio, thus we activate the support for the needed driver. Signed-off-by: Patrick Delaunay --- configs/stm32mp15_basic_defconfig | 1 + configs/stm32mp15_optee_defconfig | 1 + configs/stm32mp15_trusted_defconfig | 1 + 3 files

[U-Boot] [PATCH 38/48] serial: stm32: add Framing error support

2019-07-30 Thread Patrick Delaunay
Add management of Bit 1 of USART_ISR = FE: Framing error This bit is set by hardware when a de-synchronization, excessive noise or a break character is detected. It is cleared by software, writing 1 to the FECF bit in the USART_ICR register (for stm32 after f4). Signed-off-by: Patrick Delaunay

[U-Boot] [PATCH 48/48] MAINTAINERS: update ARM STM STM32MP and STM32MP1 BOARD

2019-07-30 Thread Patrick Delaunay
Add the missing driver and files for mach-stm32mp / stm32mp1 product. Signed-off-by: Patrick Delaunay --- MAINTAINERS | 19 +-- board/st/stm32mp1/MAINTAINERS | 5 +++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS

[U-Boot] [PATCH 31/48] stm32mp1: board: support of error led on ed1/ev1 board

2019-07-30 Thread Patrick Delaunay
Create a function led_error_blink and add node in device tree. Signed-off-by: Patrick Delaunay --- arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi | 21 -- board/st/stm32mp1/stm32mp1.c | 48 ++-- 2 files changed, 39 insertions(+), 30 deletions(-)

[U-Boot] [PATCH 39/48] serial: stm32: remove unused include

2019-07-30 Thread Patrick Delaunay
The "serial_stm32.h" is only used by drivers/serial/serial_stm32.c and it is the file ./drivers/serial/serial_stm32.h Signed-off-by: Patrick Delaunay --- include/dm/platform_data/serial_stm32.h | 15 --- 1 file changed, 15 deletions(-) delete mode 100644

[U-Boot] [PATCH 17/48] stm32mp1: configs: select CONFIG_STM32_SERIAL

2019-07-30 Thread Patrick Delaunay
Select the serial driver mandatory for the console. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/Kconfig | 1 + configs/stm32mp15_basic_defconfig | 1 - configs/stm32mp15_optee_defconfig | 1 - configs/stm32mp15_trusted_defconfig | 1 - 4 files changed, 1 insertion(+), 3

[U-Boot] [PATCH 37/48] mmc: stm32_sdmmc2: reload watchdog

2019-07-30 Thread Patrick Delaunay
From: Christophe Kerello This patch solves a watchdog reset issue during mmc erase command. Signed-off-by: Christophe Kerello Signed-off-by: Patrick Delaunay --- drivers/mmc/stm32_sdmmc2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mmc/stm32_sdmmc2.c

[U-Boot] [PATCH 46/48] stm32mp1: clk: remove debug traces

2019-07-30 Thread Patrick Delaunay
Remove many debug trace. Signed-off-by: Patrick Delaunay --- drivers/clk/clk_stm32mp1.c | 21 - 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/drivers/clk/clk_stm32mp1.c b/drivers/clk/clk_stm32mp1.c index 5806d48..359c2b9 100644 ---

[U-Boot] [PATCH 14/48] stm32mp1: configs: activate CONFIG_SILENT_CONSOLE

2019-07-30 Thread Patrick Delaunay
Allow to disable console with environment variable 'silent': > env set silent 1; env save Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-stm32mp/Kconfig b/arch/arm/mach-stm32mp/Kconfig index 9dc3c4d..e5f05af

[U-Boot] [PATCH 18/48] stm32mp1: configs: Activate DISABLE_CONSOLE

2019-07-30 Thread Patrick Delaunay
Activate DISABLE_CONSOLE needed for stm32prog support on uart. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-stm32mp/Kconfig b/arch/arm/mach-stm32mp/Kconfig index 0de9b3e..cee3ce1 100644 ---

[U-Boot] [PATCH 22/48] stm32mp1: configs: add CONFIG_DM_VIDEO

2019-07-30 Thread Patrick Delaunay
Activate command DM_VIDEO for LCD support Signed-off-by: Patrick Delaunay --- configs/stm32mp15_basic_defconfig | 1 + configs/stm32mp15_optee_defconfig | 1 + configs/stm32mp15_trusted_defconfig | 1 + 3 files changed, 3 insertions(+) diff --git a/configs/stm32mp15_basic_defconfig

[U-Boot] [PATCH 20/48] stm32mp1: configs: imply CONFIG_OF_LIBFDT_OVERLAY

2019-07-30 Thread Patrick Delaunay
Add imply for FDT overlay that can be usefuill for kernel device tree management but it is not mandatory (can be removed to gain space) Signed-off-by: Patrick Delaunay --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index

[U-Boot] [PATCH 10/48] ARM: dts: stm32mp1: add pull-up on serial rx of console connected to STLINK

2019-07-30 Thread Patrick Delaunay
Avoid U-Boot auto-boot interruption for line break detection on console when the RX line connected to STLINK is floating (-IO error in getc cause by framing error and testc return 1) Same workaround is applied on all the STMicroelectonics board. Signed-off-by: Patrick Delaunay ---

[U-Boot] [PATCH 45/48] stm32mp1: Makefile cleanup

2019-07-30 Thread Patrick Delaunay
Don't compile psci for SPL build. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-stm32mp/Makefile b/arch/arm/mach-stm32mp/Makefile index 7745060..299f9a7 100644 ---

[U-Boot] [PATCH 25/48] stm32mp1: configs: add condition to activate WATCHDOG in SPL

2019-07-30 Thread Patrick Delaunay
Only activate WATCHDOG in SPL when CONFIG_WATCHDOG is activated in U-Boot. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-stm32mp/Kconfig b/arch/arm/mach-stm32mp/Kconfig index cee3ce1..187be17

[U-Boot] [PATCH 19/48] stm32mp1: configs: support MTDPARTS only if needed

2019-07-30 Thread Patrick Delaunay
MTD is only use if NAND or NOR driver is activated. Signed-off-by: Patrick Delaunay --- include/configs/stm32mp1.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/stm32mp1.h b/include/configs/stm32mp1.h index 033291e..b2b8660 100644 --- a/include/configs/stm32mp1.h +++

[U-Boot] [PATCH 00/48] stm32mp1 patches for v2019.10

2019-07-30 Thread Patrick Delaunay
Second serie of patches for stm32mp1 support in U-Boot - sync device tree with kernel v5.3-rc2 - update configs - update board stm32mp1 - few ram and clk driver update Christophe Kerello (1): mmc: stm32_sdmmc2: reload watchdog Patrice Chotard (2): pinctrl: pinctrl_stm32: cosmetic: Reorder

[U-Boot] [PATCH 43/48] stm32mp1: ram: reload watchdog during ddr test

2019-07-30 Thread Patrick Delaunay
Avoid watchdog during infinite DDR test. Signed-off-by: Patrick Delaunay --- drivers/ram/stm32mp1/stm32mp1_tests.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/ram/stm32mp1/stm32mp1_tests.c b/drivers/ram/stm32mp1/stm32mp1_tests.c index 7356802..f947b5d 100644 ---

[U-Boot] [PATCH 12/48] stpmic1: program pmic to keep only the debug unit on

2019-07-30 Thread Patrick Delaunay
Depending on backup register value, we maintain the debug unit powered-on for debugging purpose. Only BUCK1 is required for powering the debug unit, so revert the setting for all the other power lanes, except BUCK3 that has to be always on. Signed-off-by: Patrick Delaunay ---

[U-Boot] [PATCH 42/48] stm32mp1: ram: update loop management in infinite test

2019-07-30 Thread Patrick Delaunay
Reduce verbosity of the infinite tests to avoid CubeMX issue. test and display loop by 1024*1024 accesses: read or write. Signed-off-by: Patrick Delaunay --- drivers/ram/stm32mp1/stm32mp1_tests.c | 38 +++ 1 file changed, 25 insertions(+), 13 deletions(-) diff

[U-Boot] [PATCH 47/48] stm32mp1: clk: use gd to store frequency information

2019-07-30 Thread Patrick Delaunay
Use existing gd structure to store frequency information which can be used in drivers or arch without new request. Signed-off-by: Patrick Delaunay --- drivers/clk/clk_stm32mp1.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/clk/clk_stm32mp1.c

[U-Boot] [PATCH 16/48] stm32mp1: configs: deactivate ARMV7_VIRT for basic boot

2019-07-30 Thread Patrick Delaunay
for the moment basic and trusted configuration must start CPU in Supervisor mode and not in Hypervisor Signed-off-by: Patrick Delaunay --- configs/stm32mp15_basic_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/stm32mp15_basic_defconfig

[U-Boot] [PATCH 44/48] stm32mp1: ram: add pattern parameter in infinite write test

2019-07-30 Thread Patrick Delaunay
Add pattern for infinite test_read and test_write, that allow to change the pattern to test without recompilation; default pattern is 0xA5A5AA55. Signed-off-by: Patrick Delaunay --- drivers/ram/stm32mp1/stm32mp1_tests.c | 31 --- 1 file changed, 20 insertions(+), 11

[U-Boot] [PATCH 13/48] stm32mp1: configs: remove CONFIG_SYS_HZ

2019-07-30 Thread Patrick Delaunay
Use the default value from lib/Kconfig. Signed-off-by: Patrick Delaunay --- include/configs/stm32mp1.h | 5 - 1 file changed, 5 deletions(-) diff --git a/include/configs/stm32mp1.h b/include/configs/stm32mp1.h index 1bed570..033291e 100644 --- a/include/configs/stm32mp1.h +++

[U-Boot] [PATCH 36/48] stm32mp1: board: cosmetic: cleanup file

2019-07-30 Thread Patrick Delaunay
- reorder include files - remove one comment Signed-off-by: Patrick Delaunay --- board/st/stm32mp1/stm32mp1.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c index a67e33e..7085bd5 100644 ---

[U-Boot] [PATCH 33/48] stm32mp1: board: check the boot-source to disable bootdelay

2019-07-30 Thread Patrick Delaunay
Allows to avoid to wait 2 second in U-Boot before to start STM32CubeProgrammer command. Signed-off-by: Patrick Delaunay --- board/st/stm32mp1/stm32mp1.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c index 181409c..c61a562

[U-Boot] [PATCH 06/48] ARM: dts: stm32mp1: Add iwdg2 support for SPL

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

[U-Boot] [PATCH 21/48] stm32mp1: configs: Deactivate SPI_FLASH_BAR

2019-07-30 Thread Patrick Delaunay
Remove CONFIG_SPI_FLASH_BAR as the SPI NOR layer uses stateless 4 byte opcodes by default. Signed-off-by: Patrick Delaunay --- configs/stm32mp15_basic_defconfig | 1 - configs/stm32mp15_optee_defconfig | 1 - configs/stm32mp15_trusted_defconfig | 1 - 3 files changed, 3 deletions(-) diff

[U-Boot] [PATCH 35/48] stm32mp1: board: remove board_check_usb_power when ADC is not activated

2019-07-30 Thread Patrick Delaunay
Avoid compilation issue when CONFIG_ADC is not activated 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 a96e675..a67e33e 100644 ---

[U-Boot] [PATCH 05/48] ARM: dts: stm32mp1: DDR config v1.45

2019-07-30 Thread Patrick Delaunay
Update DDR configuration with the latest update: - Change DQSGE to 1 for DDR3, to cure missing DQS preamble. Signed-off-by: Nicolas Le Bayon Signed-off-by: Patrick Delaunay --- arch/arm/dts/stm32mp15-ddr3-1x4Gb-1066-binG.dtsi | 4 ++-- arch/arm/dts/stm32mp15-ddr3-2x4Gb-1066-binG.dtsi | 5

[U-Boot] [PATCH 30/48] stm32mp1: board: enable v1v2_hdmi and v3v3_hdmi regulator on dk2 boot

2019-07-30 Thread Patrick Delaunay
As for Audio codec IC, HDMI IC is not "IO safe". HDMI regulators (v3v3 and v1v2) must be enabled to allow I2C1 bus usage. HDMI IC must be under reset during power up and keep HDMI and AUDIO devices in reset while they are not used in U-Boot to keep them in low power mode (each device can be kept

[U-Boot] [PATCH 09/48] ARM: dts: stm32mp1: add key support on DK1/DK2

2019-07-30 Thread Patrick Delaunay
Allow to use PA13 and PA14 to force fastboot mode or STM32CubeProgrammer mode. Signed-off-by: Patrick Delaunay --- arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi b/arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi

[U-Boot] [PATCH 34/48] stm32mp1: board: Update the way vdd-supply is retrieved from DT

2019-07-30 Thread Patrick Delaunay
Due to kernel DT alignment, pwr-supply is renamed to vdd-supply and is a subnode of pwr-regulators. Signed-off-by: Patrice Chotard Signed-off-by: Patrick Delaunay --- arch/arm/dts/stm32mp157a-avenger96.dts | 5 - arch/arm/dts/stm32mp157a-dk1.dts | 5 -

[U-Boot] [PATCH 15/48] stm32mp1: configs: activate PRE_CONSOLE_BUFFER

2019-07-30 Thread Patrick Delaunay
Correctly handle silent=1 in the default environment. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/Kconfig | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/mach-stm32mp/Kconfig b/arch/arm/mach-stm32mp/Kconfig index e5f05af..7efe464 100644 ---

[U-Boot] [PATCH 04/48] ARM: dts: stm32mp1: sync device tree with v5.3-rc2

2019-07-30 Thread Patrick Delaunay
Synchronize device tree with v5.3-rc2 label and update the associated u-boot dtsi. Signed-off-by: Patrick Delaunay --- arch/arm/dts/stm32mp157-pinctrl.dtsi | 234 ++- arch/arm/dts/stm32mp157a-avenger96.dts | 39 +++--- arch/arm/dts/stm32mp157a-dk1.dts

[U-Boot] [PATCH 28/48] stm32mp1: configs: add spi load support in spl

2019-07-30 Thread Patrick Delaunay
Add the boot for NOR, SPL load U-Boot.img at offset CONFIG_SYS_SPI_U_BOOT_OFFS = 0x8. It is the start address of mtd partition ssbl in nor. Signed-off-by: Christophe Kerello Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/Kconfig | 1 + include/configs/stm32mp1.h| 5 + 2

[U-Boot] [PATCH 41/48] stm32mp1: ram: fix address issue in 2 tests

2019-07-30 Thread Patrick Delaunay
If user choose to test memory size is 1GByte (0x4000), memory address would overflow in test "Random" and test "FrequencySelectivePattern". Thus the system would hangs up when running DDR test. Signed-off-by: Patrick Delaunay Signed-off-by: Bossen WU ---

  1   2   >