Re: [U-Boot] [PATCH 3/3] image: fdt: copy possible optee nodes to a loaded devicetree

2019-10-21 Thread Jens Wiklander
Hi Heiko, [+Igor] On Tue, Oct 8, 2019 at 2:22 AM Heiko Stuebner wrote: > > The loading convention for optee or any other tee on arm64 is as bl32 > parameter to the trusted-firmware. So TF-A gets invoked with the TEE as > bl32 and main u-boot as bl33. Once it has done its startup TF-A jumps > int

Re: [U-Boot] [v3, 2/2] armv7: ls102xa: Don't power down OCRAM1 during deep sleep

2019-10-21 Thread Priyanka Jain
>-Original Message- >From: Biwen Li >Sent: Wednesday, September 25, 2019 4:11 PM >To: albert.u.b...@aribaud.net; Prabhakar X >; Rajesh Bhagat ; >Priyanka Jain ; Ran Wang ; >Leo Li ; Jagdish Gediya >Cc: u-boot@lists.denx.de; Biwen Li >Subject: [v3,2/2] armv7: ls102xa: Don't power down O

Re: [U-Boot] [v3, 1/2] armv7: ls102xa: add errata ID A-008646 for workaround

2019-10-21 Thread Priyanka Jain
>-Original Message- >From: Biwen Li >Sent: Wednesday, September 25, 2019 4:11 PM >To: albert.u.b...@aribaud.net; Prabhakar X >; Rajesh Bhagat ; >Priyanka Jain ; Ran Wang ; >Leo Li ; Jagdish Gediya >Cc: u-boot@lists.denx.de; Biwen Li >Subject: [v3,1/2] armv7: ls102xa: add errata ID A-00

Re: [U-Boot] [PATCH v2] armv8: lx2160a: Update LX2160A/LX2120A/LX2080A SVR value

2019-10-21 Thread Priyanka Jain
>-Original Message- >From: Wasim Khan >Sent: Tuesday, October 15, 2019 2:24 PM >To: Priyanka Jain >Cc: u-boot@lists.denx.de; Wasim Khan >Subject: [PATCH v2] armv8: lx2160a: Update LX2160A/LX2120A/LX2080A SVR >value > >LX2160A/LX2120A/LX2080A SVR value should be >0x873600/0x873620/0x8736

Re: [U-Boot] [PATCH v2] armv8: ls1028a: disable multimedia feature when not supported

2019-10-21 Thread Priyanka Jain
>-Original Message- >From: Yuantian Tang >Sent: Thursday, October 10, 2019 2:50 PM >To: Prabhakar X >Cc: u-boot@lists.denx.de; Priyanka Jain ; Jagdish >Gediya ; Andy Tang >Subject: [PATCH v2] armv8: ls1028a: disable multimedia feature when not >supported > >ls1028a has 4 personalities:

Re: [U-Boot] [PATCH 1/1] board/freescale/ls1028a: Secure boot: Adds sec_init call.

2019-10-21 Thread Priyanka Jain
>-Original Message- >From: Udit Agarwal >Sent: Monday, September 30, 2019 3:47 PM >To: u-boot@lists.denx.de >Cc: Ruchika Gupta ; Arun Pathak >; Jagdish Gediya ; >Priyanka Jain ; Udit Agarwal > >Subject: [PATCH 1/1] board/freescale/ls1028a: Secure boot: Adds sec_init call. > >Adds sec_init

Re: [U-Boot] [PATCH] configs: ls1012afrwy: Add CONFIG_ENV_ADDR for LS1012AFRWY

2019-10-21 Thread Priyanka Jain
>-Original Message- >From: Kuldeep Singh >Sent: Monday, September 30, 2019 12:39 PM >To: u-boot@lists.denx.de >Cc: Priyanka Jain ; vinitha.pil...@nxp.com; Kuldeep >Singh >Subject: [PATCH] configs: ls1012afrwy: Add CONFIG_ENV_ADDR for >LS1012AFRWY > >This configuration helps in picking t

Re: [U-Boot] [v2] armv7: ls102xa: Correct endianness of SCFG_SPARECR8 read

2019-10-21 Thread Priyanka Jain
>-Original Message- >From: Biwen Li >Sent: Wednesday, September 25, 2019 3:18 PM >To: albert.u.b...@aribaud.net; Prabhakar X >; Rajesh Bhagat ; >Priyanka Jain ; Ran Wang ; >Leo Li ; Jagdish Gediya >Cc: u-boot@lists.denx.de; Biwen Li >Subject: [v2] armv7: ls102xa: Correct endianness of

Re: [U-Boot] [PATCH] armv8: fsl-layerscape: Make USB masters snoopable

2019-10-21 Thread Priyanka Jain
>-Original Message- >From: U-Boot On Behalf Of Ran Wang >Sent: Friday, September 20, 2019 3:04 PM >To: Albert Aribaud ; Prabhakar X > >Cc: open list ; Ran Wang >Subject: [U-Boot] [PATCH] armv8: fsl-layerscape: Make USB masters snoopable > >Program register bit of SCFG_SNPCNFGCR_USBxRDSN

Re: [U-Boot] [PATCH v2] armv7: ls102xa: Correct entry of SCFG_QSPI_CLKSEL

2019-10-21 Thread Priyanka Jain
>-Original Message- >From: Kuldeep Singh >Sent: Wednesday, September 18, 2019 4:28 PM >To: u-boot@lists.denx.de >Cc: albert.u.b...@aribaud.net; Priyanka Jain ; Ran >Wang ; Peng Ma ; Kuldeep Singh >; Ashish Kumar >Subject: [PATCH v2] armv7: ls102xa: Correct entry of SCFG_QSPI_CLKSEL > >V

Re: [U-Boot] [RESEND][PATCH v2] configs: ls1012ardb: Add CONFIG_ENV_ADDR for LS1012ARDB

2019-10-21 Thread Priyanka Jain
>-Original Message- >From: Kuldeep Singh >Sent: Wednesday, September 18, 2019 2:58 PM >To: u-boot@lists.denx.de >Cc: Priyanka Jain ; Rajesh Bhagat >; Ashish Kumar ; Kuldeep >Singh ; Ashish Kumar >Subject: [RESEND][PATCH v2] configs: ls1012ardb: Add CONFIG_ENV_ADDR for >LS1012ARDB > >This

Re: [U-Boot] [PATCH v2] armv8: ls1028a: add more personalities support

2019-10-21 Thread Priyanka Jain
>-Original Message- >From: U-Boot On Behalf Of Yuantian Tang >Sent: Wednesday, September 18, 2019 2:21 PM >To: Prabhakar Kushwaha >Cc: Andy Tang ; u-boot@lists.denx.de >Subject: [U-Boot] [PATCH v2] armv8: ls1028a: add more personalities support > >Add LS1027A, LS1018A and LS1017A perso

[U-Boot] pull request u-boot-fsl-qoriq

2019-10-21 Thread Priyanka Jain
Dear Tom, Please find my pull-request for u-boot-fsl-qoriq/master https://travis-ci.org/p-priyanka-jain/u-boot/builds/600659013 Summary Add LS1027A, LS1018A, LS1017A support Few updates related to usb, ls1012a, lx2160a priyankajain -- The follow

[U-Boot] [PATCH] clk: show more error info when uclass_get_device_by_name

2019-10-21 Thread Peng Fan
It will ease debug when uclass_get_device_by_name failed with more error info printed out. Signed-off-by: Peng Fan --- drivers/clk/clk.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 1cf9987f6c..4c477a488e 100644 --- a/drive

[U-Boot] [PATCH V1 5/6] net: fec_mxc: support i.MX8M with CLK_CCF

2019-10-21 Thread Peng Fan
Add more clks for fec_mxc according to Linux Kernel 5.4.0-rc1 drivers/net/ethernet/freescale/fec_main.c. Since i.MX8MQ not support CLK_CCF, so add a check to restrict the code only effect when CONFIG_IMX8M and CONFIG_CLK_CCF both defined. Signed-off-by: Peng Fan --- drivers/net/fec_mxc.c | 74 +

[U-Boot] [PATCH V1 4/6] net: Kconfig: FEC: Add dependency on i.MX8M

2019-10-21 Thread Peng Fan
Make FEC driver could be used by i.MX8M when CONFIG_FEC_MXC defined in defconfig. Signed-off-by: Peng Fan --- drivers/net/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 2ce3092db0..08cdd95727 100644 --- a/drivers/net/Kc

[U-Boot] [PATCH V1 6/6] imx: imx8mm-evk: enable ethernet

2019-10-21 Thread Peng Fan
add phy-reset-gpios to reset phy Add board_phy_config to configure phy Enable DM_ETH Signed-off-by: Peng Fan --- arch/arm/dts/imx8mm-evk-u-boot.dtsi | 4 board/freescale/imx8mm_evk/imx8mm_evk.c | 37 + configs/imx8mm_evk_defconfig| 7 +++

[U-Boot] [PATCH V1 2/6] clk: imx: imx8mm: add set_parent callback

2019-10-21 Thread Peng Fan
Add set_parent callback, then assigned-clock-parents in dts could be work. Signed-off-by: Peng Fan --- drivers/clk/imx/clk-imx8mm.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c index 4911345fd9..091b092bbb 10

[U-Boot] [PATCH V1 3/6] arm: dts: imx8mm: drop assigned clocks for clk node

2019-10-21 Thread Peng Fan
Drop assigned clocks for clk node, this will break boot on i.MX8MM EVK board. Signed-off-by: Peng Fan --- arch/arm/dts/imx8mm-evk-u-boot.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/dts/imx8mm-evk-u-boot.dtsi b/arch/arm/dts/imx8mm-evk-u-boot.dtsi index 16093f2067..f62a7c

[U-Boot] [PATCH V1 1/6] clk: imx8mm: add enet clk

2019-10-21 Thread Peng Fan
Add enet ref/timer/PHY_REF/root clk which are required to make enet function well. Signed-off-by: Peng Fan --- drivers/clk/imx/clk-imx8mm.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c index f4913e70a

[U-Boot] [PATCH V1 0/6] imx: imx8mm-evk: support eth

2019-10-21 Thread Peng Fan
This patchset is based on imx/next. Add imx8mm enet clk Add fec_mxc more clks support for i.MX8M Add board code to configure phy and gpr Fix imx8mm boot Peng Fan (6): clk: imx8mm: add enet clk clk: imx: imx8mm: add set_parent callback arm: dts: imx8mm: drop assigned clocks for clk node ne

Re: [U-Boot] [PATCH v2 3/3] video: mxsfb: set gd->fb_base

2019-10-21 Thread Peng Fan
> Subject: [PATCH v2 3/3] video: mxsfb: set gd->fb_base > > Set gd->fb_base so it can be shown with bdinfo command. > > Signed-off-by: Sébastien Szymanski > --- > > Changes for v3: > - use plat->base instead of fb_start > > drivers/video/mxsfb.c | 1 + > 1 file changed, 1 insertion(+) > > d

Re: [U-Boot] [PATCH 3/3] imx8: output SECO-FW, ATF and imx-mkimage commit IDs

2019-10-21 Thread Peng Fan
Hi Anatolij, > Subject: [PATCH 3/3] imx8: output SECO-FW, ATF and imx-mkimage commit > IDs > > Borrow ID reading code from Ye Li (NXP U-Boot, commit ID 5b443e3e2617) > and add the commit IDs to the environment. > > Signed-off-by: Anatolij Gustschin > --- > arch/arm/mach-imx/imx8/misc.c | 61 >

Re: [U-Boot] [PATCH 2/3] imx8: add sc_misc_seco_build_info()

2019-10-21 Thread Peng Fan
Hi Anatolij > Subject: [PATCH 2/3] imx8: add sc_misc_seco_build_info() sc_seco_build_info already in Stefano's tree. Thanks, Peng. > > Add function for reading SECO-FW commit id. > > Signed-off-by: Anatolij Gustschin > --- > arch/arm/include/asm/arch-imx8/sci/sci.h | 1 + > drivers/misc/im

Re: [U-Boot] [PATCH] imx: imx8qxp_mek: increase buffer sizes and args number

2019-10-21 Thread Peng Fan
> Subject: [PATCH] imx: imx8qxp_mek: increase buffer sizes and args number > > The default value of CONFIG_SYS_CBSIZE is too small when we need to input > long commands or when using long kernel command line. > > The default value of CONFIG_SYS_MAXARGS is too small to add a long > command line, a

Re: [U-Boot] [PATCH] imx: imx8: fix loading container image from eMMC boot partitions

2019-10-21 Thread Peng Fan
Hi Anatolij, > -Original Message- > From: Anatolij Gustschin > Sent: 2019年10月21日 23:22 > To: u-boot@lists.denx.de > Cc: sba...@denx.de; feste...@gmail.com; dl-uboot-imx > ; Ye Li > Subject: [PATCH] imx: imx8: fix loading container image from eMMC boot > partitions > > Booting with image

Re: [U-Boot] [EXTERNAL] Re: Need help with verified u-boot on Tegra TX2

2019-10-21 Thread Rayees Shamsuddin
Hi Simon, Thanks again for all your help. The one thing I wasn't sure is regarding the compression type for the ramdisk. It is gzip compressed, but some commit comments indicated that I should keep compression type as none since the kernel should be uncompressing the ramdisk. https://gitlab.de

Re: [U-Boot] [PATCH 3/3] image: fdt: copy possible optee nodes to a loaded devicetree

2019-10-21 Thread Simon Glass
Hi Heiko, On Mon, 7 Oct 2019 at 18:22, Heiko Stuebner wrote: > > The loading convention for optee or any other tee on arm64 is as bl32 > parameter to the trusted-firmware. So TF-A gets invoked with the TEE as > bl32 and main u-boot as bl33. Once it has done its startup TF-A jumps > into the bl32

Re: [U-Boot] [PATCH v1 2/3] lib: rsa: generate additional parameters for public key

2019-10-21 Thread Simon Glass
Hi Takahiro, On Tue, 8 Oct 2019 at 23:27, AKASHI Takahiro wrote: > > In the current implementation of FIT_SIGNATURE, five parameters for > a RSA public key are required while only two of them are essential. > (See rsa-mod-exp.h and uImage.FIT/signature.txt) > This is a result of considering relat

Re: [U-Boot] [PATCH] patman: separate emails in CC list with NULs

2019-10-21 Thread Simon Glass
Hi Dmitry, On Fri, 18 Oct 2019 at 12:21, Dmitry Torokhov wrote: > > There is a contributor in Linux kernel with a comma in their name, which > confuses patman and results in invalid to- or cc- addresses on some > patches. To avoid this, let's use \0 as a separator when generating cc > file. > > S

Re: [U-Boot] [PATCH v1 1/3] lib: rsa: decouple rsa from FIT image verification

2019-10-21 Thread Simon Glass
Hi Takahiro, On Tue, 8 Oct 2019 at 23:27, AKASHI Takahiro wrote: > > Introduce new configuration, CONFIG_RSA_VERIFY which will decouple building > RSA functions from FIT verification and allow for adding a RSA-based > signature verification for other file formats, in particular PE file > for UEFI

Re: [U-Boot] [PATCH 2/3] fdtdec: only create phandle if caller wants it in fdtdec_add_reserved_memory()

2019-10-21 Thread Simon Glass
Hi Heiko, On Mon, 7 Oct 2019 at 18:22, Heiko Stuebner wrote: > > The phandlep pointer returning the phandle to the caller is optional > and if it is not set when calling fdtdec_add_reserved_memory() it is > highly likely that the caller is not interested in a phandle to the > created reserved-mem

Re: [U-Boot] [PATCH 1/3] fdtdec: protect against another NULL phandlep in fdtdec_add_reserved_memory()

2019-10-21 Thread Simon Glass
Hi Heiko, On Mon, 7 Oct 2019 at 18:22, Heiko Stuebner wrote: > > The change adding fdtdec_add_reserved_memory() already protected the added > phandle against the phandlep being NULL - making the phandlep var optional. > > But in the early code checking for an already existing carveout this check

Re: [U-Boot] [PATCH 1/5] remoteproc: elf_loader: Add elf resource table load support

2019-10-21 Thread Simon Glass
Hi Fabien, On Wed, 9 Oct 2019 at 09:36, Fabien Dessenne wrote: > > Add rproc_elf_load_rsc_table(), which searches for a resource table in > an elf64/elf32 image, and if found, copies it to device memory. > Add also the elf32 and elf64 variants of this API. > Add a test for this. > > Signed-off-by

Re: [U-Boot] [PATCH v2 1/2] rockchip: make_fit_atf.py: allow inclusion of a tee binary

2019-10-21 Thread Simon Glass
Hi, On Mon, 14 Oct 2019 at 03:07, Kever Yang wrote: > > > On 2019/10/7 上午2:10, Heiko Stuebner wrote: > > A trusted execution environment should also get loaded as loadable from > > a fit image, so add the possibility to present a tee.elf to make_fit_atf.py > > that then gets included as additiona

Re: [U-Boot] [PATCH] dm: core: Update log method for uclass_find_device_by_seq

2019-10-21 Thread Simon Glass
Hi Kever, On Wed, 16 Oct 2019 at 03:14, Kever Yang wrote: > > Use log() insted of debug() for uclass_find_device_by_seq function, > since this print is very much and we can filter it out with log() > interface. > > Signed-off-by: Kever Yang > --- > > drivers/core/uclass.c | 10 ++ > 1 f

Re: [U-Boot] [PATCH 1/3] cmd: fru: Add support for FRU commands

2019-10-21 Thread Simon Glass
Hi Michal, On Mon, 14 Oct 2019 at 07:29, Michal Simek wrote: > > From: Siva Durga Prasad Paladugu > > This patch adds support for fru commands "fru capture" and "fru display". > The fru capture parses the FRU table present at an address and stores in a > structure for later use. The fru display

Re: [U-Boot] [PATCH] test/py: hush_if_test: Add tests to cover octal/hex values

2019-10-21 Thread Simon Glass
Hi Stephen, On Mon, 21 Oct 2019 at 17:04, Stephen Warren wrote: > > On 10/21/19 4:53 PM, Simon Glass wrote: > > Hi Michal, > > > > On Tue, 15 Oct 2019 at 00:09, Michal Simek wrote: > >> > >> Hi Simon, > >> > >> On 11. 10. 19 17:53, Simon Glass wrote: > >>> Hi Michal, > >>> > >>> On Fri, 11 Oct 2

Re: [U-Boot] [PATCH] fdt: Fix alignment issue when reading 64-bits properties

2019-10-21 Thread Simon Glass
Hi Jean-Jacques, On Mon, 21 Oct 2019 at 06:50, Jean-Jacques Hiblot wrote: > > The FDT specification [0] gives a requirement of aligning properties on > 32-bits. Make sure that the compiler is aware of this constraint when > accessing 64-bits properties. > > [0]: > https://github.com/devicetree-o

Re: [U-Boot] [PATCH 16/37] i2c: add support for offset overflow in to address

2019-10-21 Thread Simon Glass
Hi Robert, On Thu, 17 Oct 2019 at 08:35, Robert Beckett wrote: > > On Tue, 2019-10-15 at 21:40 -0600, Simon Glass wrote: > > Hi Robert, > > > > On Tue, 15 Oct 2019 at 09:55, Robert Beckett < > > bob.beck...@collabora.com> wrote: > > > Some devices (2 wire eeproms for example) use some bits from t

Re: [U-Boot] [PATCH v2 0/4] Fix default values for address and size cells

2019-10-21 Thread Simon Glass
Hi Matthias, On Wed, 25 Sep 2019 at 03:57, Matthias Brugger wrote: > > Hi Simon, > > On 05/09/2019 10:48, matthias@kernel.org wrote: > > From: Matthias Brugger > > > > The libftd implementation of U-Boot is outdated with the > > upstream project. Especially the default number of size-cells >

[U-Boot] [PATCH v2 08/10] bootstage: Correct relocation algorithm

2019-10-21 Thread Simon Glass
At present bootstage relocation assumes that it is possible to point back to memory available before relocation, so it does not relocate the strings. However this is not the case on some platforms, such as x86 which uses the cache as RAM and loses access to this when the cache is enabled. Move the

[U-Boot] [PATCH v2 05/10] bootstage: Store the next ID in the stash

2019-10-21 Thread Simon Glass
When stashing bootstage info, store the next ID so that it can be used when the stash is restored. This avoids the ID starting at zero and potentially overwriting existing entries. Signed-off-by: Simon Glass --- Changes in v2: None common/bootstage.c | 11 +++ 1 file changed, 7 inserti

[U-Boot] [PATCH v2 04/10] bloblist: Reserve an aligned base

2019-10-21 Thread Simon Glass
Make sure that the bloblist starts on an aligned boundary. This protects against one of the early allocating causing the alignment to be lost. Signed-off-by: Simon Glass --- Changes in v2: None common/board_f.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/board_f.c b/common/board

[U-Boot] [PATCH v2 06/10] bootstage: Fix counting of entries in stash

2019-10-21 Thread Simon Glass
The current code searches for empty records but these not existing with bootstage now. This used to be needed when bootstage records were stored in a spare array. Drop the unnecessary code and fix a code-style nit at the same time. Signed-off-by: Simon Glass --- Changes in v2: None common/boo

[U-Boot] [PATCH v2 03/10] tiny-printf: Reorder code to support %p

2019-10-21 Thread Simon Glass
With a bit of code reordering we can support %p using the existing code for ulong. Move the %p code up and adjust the logic accordingly. Signed-off-by: Simon Glass --- Changes in v2: - Add a new patch to support %p without DEBUG lib/tiny-printf.c | 30 +- 1 file ch

[U-Boot] [PATCH v2 09/10] bootstage: Mark the start/end of TPL and SPL separately

2019-10-21 Thread Simon Glass
At present bootstage in TPL and SPL use the same ID so it is not possible to see the timing of each. Separate out the IDs and use the correct one depending on which phase we are at. Example output: Timer summary in microseconds (14 records): MarkElapsed Stage 0 0 r

[U-Boot] [PATCH v2 10/10] bootstage: Allow SPL to obtain bootstage info from TPL

2019-10-21 Thread Simon Glass
It is possible to enable bootstage in TPL. TPL can stash the info for SPL. But at present this information is then lost because SPL does not read from the stash. Add support for SPL not being the first phase to enable bootstage. Signed-off-by: Simon Glass --- Changes in v2: - Adjust SPL logic to

[U-Boot] [PATCH v2 07/10] bootstage: Avoid conflicts between stash/unstash

2019-10-21 Thread Simon Glass
At present there is a single shared address for bootstage data in both TPL and SPL. If SPL unstashs TPL bootstage info and then stashes it again to pass it to U-Boot, the new stash overwrites the strings of the old stash. Fix this by duplicating the strings into the malloc() region. This should be

[U-Boot] [PATCH v2 02/10] tiny-printf: Add print_grouped_ull()

2019-10-21 Thread Simon Glass
This function is used in the bootstage report which may be trigged in TPL or TPL. Add a very basic implication of this function so that it builds. There is no attempt to get the formatting right, since this would add too much code size. Signed-off-by: Simon Glass --- Changes in v2: None lib/ti

[U-Boot] [PATCH v2 01/10] tiny-printf: Reduce size by removing ctype

2019-10-21 Thread Simon Glass
The ctype array is brought into the image, adding 256 bytes, when it is unlikely to be needed. The extra code for %p is only present when DEBUG is defined, so let's drop ctype as well unless DEBUG is defined. Signed-off-by: Simon Glass --- Changes in v2: None lib/tiny-printf.c | 7 +++ 1 f

[U-Boot] [PATCH v2 00/10] bootstage: TPL and SPL improvements

2019-10-21 Thread Simon Glass
At present bootstage cannot be fully used on x86 since it violates a few U-Boot rules, mostly accessing pre-relocation memory after relocation. This series corrects this and adds better support for using bootstage in TPL. It also includes a few improvements to tiny-printf. Changes in v2: - Add a

[U-Boot] [PATCH] armv8: fsl-lsch3: convert CONFIG_TARGET_x to CONFIG_ARCH_x

2019-10-21 Thread Michael Walle
The clocks are not dependent on the target but only on the SoC. Therefore, convert the CONFIG_TARGET_x macros to the corresponding CONFIG_ARCH_x. This will allow other targets to automatically use the common code. Otherwise every new target would have to add itself to the "#if defined(CONFIG_TARGET

Re: [U-Boot] [PATCH] test/py: hush_if_test: Add tests to cover octal/hex values

2019-10-21 Thread Stephen Warren
On 10/21/19 4:53 PM, Simon Glass wrote: Hi Michal, On Tue, 15 Oct 2019 at 00:09, Michal Simek wrote: Hi Simon, On 11. 10. 19 17:53, Simon Glass wrote: Hi Michal, On Fri, 11 Oct 2019 at 01:50, Michal Simek wrote: On 10. 10. 19 19:06, Simon Glass wrote: Hi Michal, On Thu, 10 Oct 2019 at

[U-Boot] [PATCH] net: eth-uclass: ignore unavailable devices

2019-10-21 Thread Michael Walle
device_probe() may fail in which case the seq_id will be -1. Don't display these devices during startup. While this is only a cosmetic change, the return value of eth_initialize() will also change to the actual number of available devices. The return value is only used in spl_net to decide whether

Re: [U-Boot] [PATCH v3 000/108] x86: Add initial support for apollolake

2019-10-21 Thread Simon Glass
Hi Andy, On Mon, 21 Oct 2019 at 01:55, Andy Shevchenko wrote: > > On Mon, Oct 21, 2019 at 6:32 AM Simon Glass wrote: > > > > Apollolake is an Intel SoC generation aimed at relatively low-end embedded > > systems. It was released in 2016 but has become more popular recently with > > some embedded

Re: [U-Boot] [EXTERNAL] Re: Need help with verified u-boot on Tegra TX2

2019-10-21 Thread Simon Glass
Hi Rayees, On Mon, 21 Oct 2019 at 15:55, Rayees Shamsuddin wrote: > > Hi Simon, > > In the normal u-boot, they used extlinux to specify the ramdisk. I was using > bootm to load the ramdisk. > > This is the normal boot up terminal logs. > > "MMC: no card present > switch to partitions #0, OK > mm

Re: [U-Boot] [PATCH v3 035/108] x86: power: Add a 'pmc' command

2019-10-21 Thread Simon Glass
Hi Andy, On Mon, 21 Oct 2019 at 01:49, Andy Shevchenko wrote: > > On Mon, Oct 21, 2019 at 7:26 AM Simon Glass wrote: > > > > Add a simple command to show information about the PMC. > > PMC is a part of almost all Intel Atom SoCs. Can you describe how can > it be utilized for example in case of T

Re: [U-Boot] [PATCH v3 104/108] x86: apollolake: Add P2SB driver

2019-10-21 Thread Simon Glass
Hi Andy, On Mon, 21 Oct 2019 at 02:49, Andy Shevchenko wrote: > > On Mon, Oct 21, 2019 at 7:14 AM Simon Glass wrote: > > > > Adds a driver for the apollolake Primary-to-sideband bus. This supports > > various child devices. It supposed both device tree and of-platdata. > > > +static int apl_p2sb

Re: [U-Boot] [PATCH] test/py: hush_if_test: Add tests to cover octal/hex values

2019-10-21 Thread Simon Glass
Hi Michal, On Tue, 15 Oct 2019 at 00:09, Michal Simek wrote: > > Hi Simon, > > On 11. 10. 19 17:53, Simon Glass wrote: > > Hi Michal, > > > > On Fri, 11 Oct 2019 at 01:50, Michal Simek wrote: > >> > >> On 10. 10. 19 19:06, Simon Glass wrote: > >>> Hi Michal, > >>> > >>> On Thu, 10 Oct 2019 at 05

Re: [U-Boot] [PATCH v3 097/108] x86: apollolake: Add ITSS driver

2019-10-21 Thread Simon Glass
Hi Andy, On Mon, 21 Oct 2019 at 02:44, Andy Shevchenko wrote: > > On Mon, Oct 21, 2019 at 11:41 AM Andy Shevchenko > wrote: > > > > On Mon, Oct 21, 2019 at 6:58 AM Simon Glass wrote: > > > > > > This driver models some sort of interrupt thingy but there are so many > > > abreviations that I can

Re: [U-Boot] [PATCH v3 025/108] x86: tpl: Add a fake PCI bus

2019-10-21 Thread Simon Glass
Hi Andy, On Mon, 21 Oct 2019 at 01:52, Andy Shevchenko wrote: > > On Mon, Oct 21, 2019 at 7:24 AM Simon Glass wrote: > > > > In TPL we try to minimise code size so do not include the PCI subsystem. > > We can use fixed BARs and drivers can directly program the devices that > > they need. > > > >

Re: [U-Boot] [PATCH v1 1/3] drivers: gpio: Handle gracefully NULL pointers

2019-10-21 Thread Simon Glass
Hi Jean-Jacques, On Mon, 21 Oct 2019 at 01:45, Jean-Jacques Hiblot wrote: > > > On 18/10/2019 22:38, Simon Glass wrote: > > Hi Jean-Jacques, > > > > On Tue, 1 Oct 2019 at 05:51, Jean-Jacques Hiblot wrote: > >> Prepare the way for a managed GPIO API by handling NULL pointers without > >> crashing

Re: [U-Boot] [PATCH v3 092/108] x86: apollolake: Add UART driver

2019-10-21 Thread Simon Glass
Hi Andy, On Mon, 21 Oct 2019 at 01:46, Andy Shevchenko wrote: > > On Mon, Oct 21, 2019 at 7:28 AM Simon Glass wrote: > > > > Add a driver for the apollolake UART. It uses the standard ns16550 device > > but also sets up the input clock with LPSS and supports configuration via > > of-platdata. >

Re: [U-Boot] [EXTERNAL] Re: Need help with verified u-boot on Tegra TX2

2019-10-21 Thread Rayees Shamsuddin
Hi Simon, In the normal u-boot, they used extlinux to specify the ramdisk. I was using bootm to load the ramdisk. This is the normal boot up terminal logs. "MMC: no card present switch to partitions #0, OK mmc0(part 0) is current device Scanning mmc 0:1... Found /boot/extlinux/extlinux.conf Ret

Re: [U-Boot] Need help with verified u-boot on Tegra TX2

2019-10-21 Thread Simon Glass
Hi Rayees, On Sat, 19 Oct 2019 at 20:14, Rayees Shamsuddin wrote: > > Simon, > > Thanks for all your great and pioneering effort on verified u-boot. I am > benefiting a lot for your work. I am trying to implement verified u-boot on > Tegra TX2. > > Based on the wonderful documentation that you

[U-Boot] [PATCH] armv8: fsl-layerscape: introduce fsl_board_late_init()

2019-10-21 Thread Michael Walle
The fsl-layerscape already occupies board_late_init(), therefore it is not possible for a board to have its own board_late_init(). Introduce fsl_board_late_init() which can be implemented in the board specific code. Signed-off-by: Michael Walle --- arch/arm/cpu/armv8/fsl-layerscape/soc.c | 7 +++

[U-Boot] [PATCH] armv8: fsl-layerscape: fix hwconfig and prefetching

2019-10-21 Thread Michael Walle
If CONFIG_HWCONFIG is disabled, hwconfig_subarg_f() will return the empty string, ie. not NULL. Therefore, we have to check the returned argument length as well as the return value. Signed-off-by: Michael Walle --- arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1

[U-Boot] i.MX6UL Secure Boot Problem

2019-10-21 Thread Emre Karaaslan
Hello and good work. I am trying to make my i.MX6UL board secure. I'm using the Yocto "sumo" distribution, and I have a few questions before moving on to signing images with HAB. First, I implemented an open source secure software update (OTA) solution called mender.io on my board. Mender spli

Re: [U-Boot] [EXT] Re: Issues with driver binding and probing

2019-10-21 Thread Aaron Williams
Hi Simon, From: Simon Glass Sent: Friday, October 11, 2019 4:42 PM To: Aaron Williams Cc: Bin Meng ; u-boot@lists.denx.de Subject: Re: [EXT] Re: [U-Boot] Issues with driver binding and probing Hi Aaron, On Wed, 25 Sep 2019 at 22:08, Aaron Williams wrote: > >

Re: [U-Boot] [PATCH v3 022/108] x86: timer: Use a separate flag for whether timer is inited

2019-10-21 Thread Park, Aiden
> -Original Message- > From: Simon Glass [mailto:s...@chromium.org] > Sent: Sunday, October 20, 2019 8:38 PM > To: U-Boot Mailing List > Cc: Bin Meng ; Simon Glass ; > Andy Shevchenko ; Bernhard Messerklinger > ; Park, Aiden > ; Simon Goldschmidt > ; Stefan Roese > Subject: [PATCH v3 022/

Re: [U-Boot] [PATCH v3 3/3] configs: sopine-baseboard: Enable SPI-FLASH

2019-10-21 Thread Jagan Teki
On Sun, Oct 20, 2019 at 11:54 AM Vasily Khoruzhick wrote: > > On Wed, Oct 16, 2019 at 9:23 AM Jagan Teki wrote: > > > > SoPine has winbond SPI-FLASH, so enable the same in defconfig > > and add aliases for spi0 in -u-boot.dtsi > > > > Signed-off-by: Jagan Teki > > --- > > Changes for v3: > > - n

Re: [U-Boot] [PATCH] dm: pinctrl: fix for introduce PINCONF_RECURSIVE option

2019-10-21 Thread Anatolij Gustschin
Hi Patrick, On Mon, 21 Oct 2019 17:10:21 + Patrick DELAUNAY patrick.delau...@st.com wrote: ... > I check deeper today the root cause of the issue and I have a clean solution > with v2 patch: http://patchwork.ozlabs.org/patch/1180575/ > > The friday patch wasn't enough at least for my board, b

[U-Boot] [PATCH] armv8: layerscape: set HWCONFIG_BUFFER_SIZE

2019-10-21 Thread Michael Walle
Set the HWCONFIG_BUFFER_SIZE if it is not already set. Otherwise compilation will fail if CONFIG_HWCONFIG and HWCONFIG_BUFFER_SIZE are not set. Taken from arch/powerpc/include/asm/config.h. Signed-off-by: Michael Walle --- arch/arm/include/asm/arch-fsl-layerscape/config.h | 4 1 file chang

[U-Boot] [PATCH] armv8: fsl-layerscape: use IS_ENABLED()

2019-10-21 Thread Michael Walle
We have to use IS_ENABLED() otherwise the compiler will throw an error if CONFIG_ARMV8_SEC_FIRMWARE_SUPPORT is not set. Signed-off-by: Michael Walle --- arch/arm/include/asm/arch-fsl-layerscape/fsl_icid.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/ar

Re: [U-Boot] [PATCH] warp7: Fix U-Boot corruption after saving the environment

2019-10-21 Thread Joris Offouga
Hi Fabio, Pierre-Jean Le 21/10/2019 à 19:12, Pierre-Jean Texier a écrit : Fabio, Le 21/10/2019 à 18:50, Fabio Estevam a écrit : Hi Pierre-Jean, On Mon, Oct 21, 2019 at 1:43 PM Pierre-Jean Texier wrote: On top-of master 32ded50 ("spl: mmc: make eMMC HW boot partition configuration optiona

Re: [U-Boot] [PATCH] pinctrl: Kconfig: remove duplicated nodes

2019-10-21 Thread Tom Rini
On Mon, Oct 21, 2019 at 03:07:54PM +0200, Patrick Delaunay wrote: > Remove the duplicated configs introduced when the same patch is > applied twice times: > - commit e878b53a79d1 ("dm: pinctrl: introduce PINCONF_RECURSIVE > option") > - commit c20851b3d850 ("dm: pinctrl: introduce PINCONF_RECURS

Re: [U-Boot] [PATCH v2] dm: pinctrl: fix for introduce PINCONF_RECURSIVE option

2019-10-21 Thread Tom Rini
On Mon, Oct 21, 2019 at 03:02:40PM +0200, Patrick Delaunay wrote: > Correct the name of the define used CONFIG_IS_ENABLED which is > not aligned with Kconfig name: CONFIG_$(SPL_)PINCONF_RECURSIVE. > > The recursive calls is conditional only for UCLASS_PINCONFIG > "pinconfig" driver. > It is alway

Re: [U-Boot] [PATCH 1/1] imx: include files should be chmod 644

2019-10-21 Thread Patrick Wildt
On Sat, Oct 19, 2019 at 09:10:46AM +0200, Heinrich Schuchardt wrote: > Correct include files which are chmod 755. > > Fixes: d08a194871fd ("imx: add support for i.MX8MQ power domain controller") > Signed-off-by: Heinrich Schuchardt > --- > include/dt-bindings/power/imx8mq-power.h | 0 > include/

Re: [U-Boot] [PATCH] warp7: Fix U-Boot corruption after saving the environment

2019-10-21 Thread Pierre-Jean Texier
Fabio, Le 21/10/2019 à 18:50, Fabio Estevam a écrit : Hi Pierre-Jean, On Mon, Oct 21, 2019 at 1:43 PM Pierre-Jean Texier wrote: On top-of master 32ded50 ("spl: mmc: make eMMC HW boot partition configuration optional ") I am not able to reproduce the described behavior. I used u-boot-imx tr

Re: [U-Boot] [PATCH 1/3] mach-imx: Adding new argument for SIP call interface

2019-10-21 Thread Patrick Wildt
On Mon, Oct 21, 2019 at 05:58:49PM +0200, Anatolij Gustschin wrote: > From: Ye Li > > Need to pass total 5 arguments for SIP HAB call on i.MX8MQ, > so update the interface to add new argument. > > Signed-off-by: Ye Li > --- > arch/arm/include/asm/mach-imx/sys_proto.h | 3 ++- > arch/arm/mach-i

Re: [U-Boot] [PATCH] dm: pinctrl: fix for introduce PINCONF_RECURSIVE option

2019-10-21 Thread Patrick DELAUNAY
Hi Anatolij and Tom, > From: Anatolij Gustschin > Sent: samedi 19 octobre 2019 22:02 > > Hi Tom, > > On Fri, 18 Oct 2019 20:29:22 +0200 > Patrick Delaunay patrick.delau...@st.com wrote: > ... > > This correct a regression introduced by commit c20851b3d850 ("dm: > > pinctrl: introduce PINCONF_RE

[U-Boot] [PATCH 2/2] arm: ls1028a: use the new flexspi driver

2019-10-21 Thread Michael Walle
Also align the fspi node with the kernel one. Signed-off-by: Michael Walle --- arch/arm/dts/fsl-ls1028a.dtsi | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/arch/arm/dts/fsl-ls1028a.dtsi b/arch/arm/dts/fsl-ls1028a.dtsi index 43a154e8e7..774e477542 100644 --- a/

[U-Boot] [PATCH 1/2] spi: nxp_fspi: new driver for the FlexSPI controller

2019-10-21 Thread Michael Walle
This is a port of the kernel's spi-nxp-fspi driver. It uses the new spi-mem interface and does not expose the more generic spi-xfer interface. The source was taken from the v5.3-rc3 tag. The port was straightforward: - remove the interrupt handling and the completion by busy polling the contro

Re: [U-Boot] [PATCH] warp7: Fix U-Boot corruption after saving the environment

2019-10-21 Thread Fabio Estevam
Hi Pierre-Jean, On Mon, Oct 21, 2019 at 1:43 PM Pierre-Jean Texier wrote: > On top-of master 32ded50 ("spl: mmc: make eMMC HW boot > partition configuration optional ") > I am not able to reproduce the described behavior. I used u-boot-imx tree and this is what I get: ls -al u-boot-dtb.imx -rw

Re: [U-Boot] [PATCH] warp7: Fix U-Boot corruption after saving the environment

2019-10-21 Thread Pierre-Jean Texier
Hello Fabio, Le 21/10/2019 à 16:22, Fabio Estevam a écrit : U-Boot binary has grown in such a way that it goes beyond the reserved area for the environment variables. Running "saveenv" followed by a "reset" causes U-Boot to hang because of this overlap. On top-of master 32ded50 ("spl: mm

Re: [U-Boot] [PATCH] cmd: avb: Fix requested partitions list

2019-10-21 Thread Igor Opaniuk
On Thu, Aug 15, 2019 at 8:55 PM Sam Protsenko wrote: > > Hi Eugeniu, > > On Tue, Aug 13, 2019 at 7:59 PM Eugeniu Rosca wrote: > > > > Hi Sam, > > > > On Fri, Aug 09, 2019 at 07:16:03PM +0300, Sam Protsenko wrote: > > > The requested_partitions[] array should contain only boot partitions. > > > Us

[U-Boot] [PATCH 2/3] imx8: add sc_misc_seco_build_info()

2019-10-21 Thread Anatolij Gustschin
Add function for reading SECO-FW commit id. Signed-off-by: Anatolij Gustschin --- arch/arm/include/asm/arch-imx8/sci/sci.h | 1 + drivers/misc/imx8/scu_api.c | 27 2 files changed, 28 insertions(+) diff --git a/arch/arm/include/asm/arch-imx8/sci/sci.h b/a

[U-Boot] [PATCH 3/3] imx8: output SECO-FW, ATF and imx-mkimage commit IDs

2019-10-21 Thread Anatolij Gustschin
Borrow ID reading code from Ye Li (NXP U-Boot, commit ID 5b443e3e2617) and add the commit IDs to the environment. Signed-off-by: Anatolij Gustschin --- arch/arm/mach-imx/imx8/misc.c | 61 ++- 1 file changed, 60 insertions(+), 1 deletion(-) diff --git a/arch/arm/m

[U-Boot] [PATCH 1/3] mach-imx: Adding new argument for SIP call interface

2019-10-21 Thread Anatolij Gustschin
From: Ye Li Need to pass total 5 arguments for SIP HAB call on i.MX8MQ, so update the interface to add new argument. Signed-off-by: Ye Li --- arch/arm/include/asm/mach-imx/sys_proto.h | 3 ++- arch/arm/mach-imx/imx_bootaux.c | 4 ++-- arch/arm/mach-imx/sip.c | 4 +++

Re: [U-Boot] [PATCH 03/10] test/py: Fix pytest4 deprecation warnings

2019-10-21 Thread Tom Rini
On Mon, Oct 21, 2019 at 09:25:56AM -0600, Simon Glass wrote: > Hi Tom, > > On Fri, 18 Oct 2019 at 14:53, Tom Rini wrote: > > > > From: Marek Vasut > > > > Fix the following spit from pytest: > > > > u-boot/test/py/conftest.py:438: RemovedInPytest4Warning: MarkInfo objects > > are deprecated as

Re: [U-Boot] [PATCH] pinctrl: Kconfig: remove duplicated nodes

2019-10-21 Thread Anatolij Gustschin
Hi Patrick, On Mon, 21 Oct 2019 15:07:54 +0200 Patrick Delaunay patrick.delau...@st.com wrote: > Remove the duplicated configs introduced when the same patch is > applied twice times: There is already a patch pending http://patchwork.ozlabs.org/patch/1179889 -- Anatolij

[U-Boot] [PATCH] imx: imx8qxp_mek: increase buffer sizes and args number

2019-10-21 Thread Anatolij Gustschin
The default value of CONFIG_SYS_CBSIZE is too small when we need to input long commands or when using long kernel command line. The default value of CONFIG_SYS_MAXARGS is too small to add a long command line, and the kernel might not boot as intended without the complete bootargs. Increase argumen

Re: [U-Boot] [PATCH 01/10] gitlab-ci: Fix indentation in some stanzas

2019-10-21 Thread Simon Glass
On Fri, 18 Oct 2019 at 14:53, Tom Rini wrote: > > In a number of our stanzas we had multi-line commands that were one > space short of alignment, correct this. > > Signed-off-by: Tom Rini > --- > .gitlab-ci.yml | 40 > 1 file changed, 20 insertions(+), 20

Re: [U-Boot] [PATCH 03/10] test/py: Fix pytest4 deprecation warnings

2019-10-21 Thread Simon Glass
Hi Tom, On Fri, 18 Oct 2019 at 14:53, Tom Rini wrote: > > From: Marek Vasut > > Fix the following spit from pytest: > > u-boot/test/py/conftest.py:438: RemovedInPytest4Warning: MarkInfo objects are > deprecated as they contain merged marks which are hard to deal with correctly. > Please use n

Re: [U-Boot] [PATCH 02/10] gitlab-ci: Prepend to PATH rather than overwrite it

2019-10-21 Thread Simon Glass
Hi Tom, On Fri, 18 Oct 2019 at 14:53, Tom Rini wrote: > > We need to make sure that we prepend changes to PATH, so that any > binaries we need to provide ourselves are used not overwrite PATH for This reads a bit wonkily. > this. Overwriting PATH like this breaks the python virtualenv PATH > c

Re: [U-Boot] [PATCH 1/4] sandbox: enable command aes

2019-10-21 Thread Simon Glass
On Thu, 19 Sep 2019 at 07:40, Philippe Reynes wrote: > > This commit enable the command aes on sandbox. > Then, it may be used on pytest. > > Signed-off-by: Philippe Reynes > --- > configs/sandbox_defconfig | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Simon Glass __

Re: [U-Boot] [PATCH 1/4] aes: add a define for the size of a block

2019-10-21 Thread Simon Glass
On Mon, 23 Sep 2019 at 10:48, Philippe Reynes wrote: > > In the code, we use the size of the key for the > size of the block. It's true when the key is 128 bits, > but it become false for key of 192 bits and 256 bits. > So to prepare the support of aes192 and 256, > we introduce a constant for th

Re: [U-Boot] [PATCH V2 1/4] sandbox: enable command aes

2019-10-21 Thread Simon Glass
On Mon, 23 Sep 2019 at 10:39, Philippe Reynes wrote: > > This commit enable the command aes on sandbox. > Then, it may be used on pytest. > > Signed-off-by: Philippe Reynes > --- > configs/sandbox_defconfig | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Simon Glass __

[U-Boot] [PATCH] imx: imx8: fix loading container image from eMMC boot partitions

2019-10-21 Thread Anatolij Gustschin
Booting with images in eMMC hardware boot partition doesn't work because the container header is loaded from user partition, thus the loaded data doesn't have a valid header. Add partition switching to support booting from eMMC boot partitions. Signed-off-by: Anatolij Gustschin --- arch/arm/mach

  1   2   >