Re: [U-Boot] [RFC 3/3] lib: rsa: add rsa_verify_with_pkey()

2019-10-22 Thread AKASHI Takahiro
On Tue, Oct 22, 2019 at 07:50:20AM -0600, Simon Glass wrote: > Hi Takahiro, > > On Tue, 17 Sep 2019 at 20:59, AKASHI Takahiro > wrote: > > > > Simon, > > > > Overall, do you agree to my approach here? > > > > On Mon, Sep 16, 2019 at 10:48:07PM -0700, Simon Glass wrote: > > > Hi AKASHI, > > > > >

[U-Boot] [PATCH 2/4] imx: cx9020: migrate cx9020 to CONFIG_DM_USB

2019-10-22 Thread linux-kernel-dev
From: Steffen Dirkwinkel Note: gpio7_8 was never used for usb power regulator so we remove it here Acked-by: Patrick Bruenn Signed-off-by: Steffen Dirkwinkel --- arch/arm/dts/imx53-cx9020.dts | 11 ++- board/beckhoff/mx53cx9020/mx53cx9020.c | 10 --

[U-Boot] [PATCH 3/4] imx: cx9020: enable vidconsole by default

2019-10-22 Thread linux-kernel-dev
From: Steffen Dirkwinkel Acked-by: Patrick Bruenn Signed-off-by: Steffen Dirkwinkel --- configs/mx53cx9020_defconfig | 1 + include/configs/mx53cx9020.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/configs/mx53cx9020_defconfig b/configs/mx53cx9020_defconfig index

[U-Boot] [PATCH 1/4] imx: cx9020: migrate cx9020 to CONFIG_DM_ETH

2019-10-22 Thread linux-kernel-dev
From: Steffen Dirkwinkel Acked-by: Patrick Bruenn Signed-off-by: Steffen Dirkwinkel --- arch/arm/dts/imx53-cx9020.dts | 31 --- configs/mx53cx9020_defconfig | 2 ++ include/configs/mx53cx9020.h | 4 3 files changed, 22 insertions(+), 15 deletions(-) diff

[U-Boot] [PATCH 0/4] Migrate cx9020 to DM_ETH, DM_USB and distro boot

2019-10-22 Thread linux-kernel-dev
From: Steffen Dirkwinkel This series migrates the cx9020 to DM_ETH and DM_USB. It also switches bootcmds from custom uEnv.txt based booting to distroboot. DM_USB works but enabling usb keyboards just makes them disappear from the usb device list. The cx9020 board needs to load a bitstream

[U-Boot] [PATCH 4/4] imx: cx9020: use distro boot

2019-10-22 Thread linux-kernel-dev
From: Steffen Dirkwinkel We switch from custom boot commands relying on uEnv.txt to distro boot. This removes the automatic fpga bitstream loading in favor of loading bitstreams via custom bootscripts (boot.scr) or after booting the kernel. Acked-by: Patrick Bruenn Signed-off-by: Steffen

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

2019-10-22 Thread AKASHI Takahiro
On Mon, Oct 21, 2019 at 06:17:03PM -0600, Simon Glass wrote: > 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

Re: [U-Boot] [PATCH v3 3/3] spi-nor: spi-nor-ids: Add USE_FSR flag for mt25q* and n25q* entry

2019-10-22 Thread Vignesh Raghavendra
Hi Jagan, On 23/10/19 12:00 AM, Jagan Teki wrote: > Hi Vignesh, > > On Fri, Oct 11, 2019 at 1:28 PM Vignesh Raghavendra wrote: >> >> n25q* and mt25q* (both 256Mb and 512Mb) flashes support Flag status >> register that indicates various errors that may be encountered during >> erase/write

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

2019-10-22 Thread AKASHI Takahiro
On Mon, Oct 21, 2019 at 06:17:02PM -0600, Simon Glass wrote: > 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 > >

Re: [U-Boot] [PATCH v3 01/20] arch: powerpc: add eSDHC node to p1020 dts

2019-10-22 Thread Priyanka Jain
>-Original Message- >From: Yinbo Zhu >Sent: Tuesday, October 15, 2019 2:51 PM >To: Wolfgang Denk ; Priyanka Jain ; >Shengzhou Liu ; u-boot@lists.denx.de >Cc: Yinbo Zhu ; Xiaobo Xie ; >Jiafei Pan ; Prabhakar X >; Bin Meng ; Simon >Goldschmidt ; Adam Ford >; Patrick Delaunay ; Jeremy

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

2019-10-22 Thread Rayees Shamsuddin
Hi Simon, I got some more information by instrumenting the u-boot functions that you suggested and made appropriate modifications, but still the kernel logs show RAMDISK error. "RAMDISK: Couldn't find valid RAM disk image starting at 0." This is with the normal u-boot from Tegra INFO_RAYEES:

[U-Boot] Cavium/Marvell Octeon Support

2019-10-22 Thread Aaron Williams
Hi all, I have been tasked with porting our Octeon U-Boot to the latest U-Boot and merging it upstream. This will involve a very significant amount of code that generally will not be compatible with other MIPS processors due to our needs and requirements. For example, the start.S will need to

Re: [U-Boot] [PATCH v5 1/5] spl: dm: disable SPI DM flash for non-DM SPL

2019-10-22 Thread Xiaowei Bao
> -Original Message- > From: Schrempf Frieder > Sent: 2019年10月22日 21:03 > To: Lukasz Majewski ; Xiaowei Bao > ; u-boot@lists.denx.de > Subject: Re: [U-Boot] [PATCH v5 1/5] spl: dm: disable SPI DM flash for > non-DM SPL > > Hi Lukasz, hi Xiaowei, > > On 22.10.19 14:20, Lukasz Majewski

[U-Boot] [PATCHv2 11/13] test/py: Update docs, add requirements.txt for pip

2019-10-22 Thread Tom Rini
To be more closely aligned with Python community best practices, we need to better document our usage of pip and make use of a requirements.txt file that shows the versions of the tools that we are using. This will aide in ensuring reproducibility of our tests as well. Signed-off-by: Tom Rini

[U-Boot] [PATCHv2 05/13] test/py: Automated conversion to Python 3

2019-10-22 Thread Tom Rini
Use the 2to3 tool to perform numerous automatic conversions from Python 2 syntax to Python 3. Also fix whitespace problems that Python 3 catches that Python 2 did not. Reviewed-by: Stephen Warren Signed-off-by: Tom Rini --- test/py/conftest.py | 9 ++--

[U-Boot] [PATCHv2 13/13] test/py: Use raw strings more to avoid deprecation warnings

2019-10-22 Thread Tom Rini
We have two further uses of raw string usage in the test/py codebase that are used under CI. The first of which is under the bind test and is a direct update. The second of which is to strip VT100 codes from the match buffer. While switching this to a raw string is also a direct update, the

[U-Boot] [PATCHv2 12/13] gitlab/travis: Rework how and when we use virtualenv in order to use python3

2019-10-22 Thread Tom Rini
As things stand today, we have tools that CI requires where "python" must be "python2". We need to use a virtualenv and pip in order to ensure that our pytest tests can be run. Rework things slightly so that: - On Travis-CI, we install python-pyelftools for the platforms that require

[U-Boot] [PATCHv2 03/13] test/py: Split mark to multiple lines

2019-10-22 Thread Tom Rini
We inconsistently note multiple dependencies today in our tests, sometimes with a single line that declares multiple and sometimes multiple single lines. Current pytest seems to fail on the single line format so change to multiple declarations. Reviewed-by: Stephen Warren Signed-off-by: Tom

[U-Boot] [PATCHv2 08/13] test/py: test_efi_selftest.py: Updates for python 3 support

2019-10-22 Thread Tom Rini
- In python 3 you must use raw strings for regex as other forms are deprecated and would require further changes to the pattern here. In one case this lets us have a simpler match pattern. - As strings are now Unicode our complex tests (Euro symbol, SHIFT+ALT+FN 5) we need to declare that as

[U-Boot] [PATCHv2 04/13] test/py: Fix pytest4 deprecation warnings

2019-10-22 Thread Tom Rini
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 node.get_closest_marker(name) or node.iter_markers(name). Docs:

[U-Boot] [PATCHv2 06/13] test/py: Manual python3 fixes

2019-10-22 Thread Tom Rini
- Modern pytest is more visible in telling us about parameters that we had not described, so describe a few more. - ConfigParser.readfp(...) is now configparser.read_file(...) - As part of the "strings vs bytes" conversions in Python 3, we use the default encoding/decoding of utf-8 but in some

[U-Boot] [PATCHv2 09/13] test/py: Update test_fs to decode check_output calls

2019-10-22 Thread Tom Rini
The check_output function from the subprocess Python module by default returns data as encoded bytes and leaves decoding to the application. Given our uses of the call, it makes the most sense to immediately decode the results. Signed-off-by: Tom Rini --- Changes in v2: - New patch ---

[U-Boot] [PATCHv2 10/13] test/py: Rework test.py to be a different kind of wrapper

2019-10-22 Thread Tom Rini
Now that we have moved to being based on pytest for python3 we need to make our test.py wrapper more robust in terms of only calling python3 rather than possibly finding and using python2. To do this, change from execvp()'ing pytest to invoking the package itself via python. In the event that

[U-Boot] [PATCHv2 07/13] test/py: test_ut.py: Ensure we use bytes

2019-10-22 Thread Tom Rini
In the case of some unit tests we are working with providing a fake flash device that we have written some text strings in to. In this case we want to tell Python to encode things to bytes for us. Reviewed-by: Stephen Warren Signed-off-by: Tom Rini --- test/py/tests/test_ut.py | 6 +++--- 1

[U-Boot] [PATCHv2 01/13] gitlab-ci: Fix indentation in some stanzas

2019-10-22 Thread Tom Rini
In a number of our stanzas we had multi-line commands that were one space short of alignment, correct this. Reviewed-by: Stephen Warren Reviewed-by: Simon Glass Signed-off-by: Tom Rini --- .gitlab-ci.yml | 40 1 file changed, 20 insertions(+), 20

[U-Boot] [PATCHv2 02/13] gitlab-ci: Prepend to PATH rather than replace it

2019-10-22 Thread Tom Rini
Currently we set the entire PATH rather than prepend the new paths that we need to have searched. This however breaks parts of the "virtualenv" that was have set up and need to use as that also will be modifying PATH. To fix this, prepend our new locations instead. Reviewed-by: Stephen Warren

[U-Boot] [PATCHv2 00/13] Moving test/py to Python 3

2019-10-22 Thread Tom Rini
Hey all, So, here's the second pass at moving our test/py code over to Python 3. This time, I think it's ready to merge as I've resovled the WORKAROUND / HACK patches. In terms of what I was calling a WORKAROUND, I'm comfortable saying this is a feature / intentional change in how and when we

Re: [U-Boot] [PATCH v2 3/6] arm: dts: k3-j721e-mcu-wakeup: Add HyperBus Controller node

2019-10-22 Thread Stefan Roese
Hi Vignesh, On 10.10.19 07:52, Vignesh Raghavendra wrote: Add DT node for HyperBus Memory Controller in the FSS. On J721e, its not possible to use OSPI0 and HBMC simultaneously as they are muxed within the Flash Subsystem hence disable HBMC by default as keep OSPI enabled. Bootloader will fixup

[U-Boot] [PATCH] spl: spl_mmc: fix getting raw_sect when boot from emmc boot partition

2019-10-22 Thread Peng Fan
On i.MX8, when booting from eMMC boot partition, the whole flash.bin is stored in boot partition, however SPL switches to user partition during the init of mmc driver: spl_mmc_load() -> mmc_init() Then it tries to load the container image in spl_mmc_get_uboot_raw_sector(), but here it reads the

[U-Boot] [GIT] Pull request: u-boot-clk (23.10.2019)

2019-10-22 Thread Lukasz Majewski
Dear Tom, Please find a PR for u-boot-clk branch: The following changes since commit 44510daea4d07fee736dd90411c4b503340b449e: dm: pinctrl: fix for introduce PINCONF_RECURSIVE option (2019-10-21 09:40:54 -0400) are available in the Git repository at:

[U-Boot] [BUG] efi_driver: crash while reading from iSCSI drive

2019-10-22 Thread Heinrich Schuchardt
The patch commit 867400677cda0fac4a411f1549fe3a61bb5ed172 efi_loader: disk: install FILE_SYSTEM_PROTOCOL only if available breaks booting my Pine A64 LTS board via iPXE and GRUB. But I assume this is not at the base of the problem. My iSCSI drive is partitioned like this: DeviceBoot

[U-Boot] [PATCH] spl: fix SPI config dependencies

2019-10-22 Thread Simon Goldschmidt
As SPL_SPI_FLASH_SUPPORT cannot work without SPL_SPI_SUPPORT, fix dependencies to prevent enabling SPI flash support without basic SPI support. Also SYS_SPI_U_BOOT_OFFS does not make sense without SPL_SPI_FLASH_SUPPORT enabled, so move it into its 'if' section. Signed-off-by: Simon Goldschmidt

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

2019-10-22 Thread Heiko Stübner
Hi Simon, Am Dienstag, 22. Oktober 2019, 14:08:04 CEST schrieb Heiko Stübner: > Am Dienstag, 22. Oktober 2019, 02:17:00 CEST schrieb Simon Glass: > > 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 > > >

[U-Boot] [PATCH 1/3] Kconfig add config ERR_PTR_OFFSET

2019-10-22 Thread Simon Goldschmidt
Some U-Boot pointers have redundant information, so we can use a scheme where we can return either an error code or a pointer with the same return value. The default implementation just casts the pointer to a number, however, this may fail on platforms where the end of the address range is used

[U-Boot] [PATCH 2/3] linux err: make ERR_PTR/PTR_ERR architecture specific

2019-10-22 Thread Simon Goldschmidt
This patch changes ERR_PTR/PTR_ERR to use CONFIG_ERR_PTR_OFFSET to map errno values into a pointer region that cannot contain valid pointers. IS_ERR and IS_ERR_OR_NULL have to be converted to use PTR_ERR, too, for this to work. Signed-off-by: Simon Goldschmidt --- include/linux/err.h | 8

[U-Boot] [PATCH 3/3] arm: socfpga: gen5: fix ERR_PTR_OFFSET

2019-10-22 Thread Simon Goldschmidt
The default implementation of ERR_PTR/PTR_ERR maps errno values at the and of the address range (e.g. -EINVAL/-22 gets 0xFFEA). For socfpga gen5 SPL, this doesn't really work, as the heap is nearly at the end of the 32 bit address range. This patch adjusts the ERR_PTR_OFFSET to map errno

[U-Boot] [PATCH 0/3] make ERR_PTR/PTR_ERR architecture specific

2019-10-22 Thread Simon Goldschmidt
Some U-Boot pointers have redundant information, so we can use a scheme where we can return either an error code or a pointer with the same return value. The default implementation just casts the pointer to a number, however, this may fail on platforms where the end of the address range is used

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

2019-10-22 Thread Heiko Stuebner
From: Heiko Stuebner 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 for the TEE startup, returns to TF-A and then

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

2019-10-22 Thread Heiko Stuebner
From: Heiko Stuebner 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-memory area and really just wants that area added.

[U-Boot] [PATCH v2 4/4] tests: add OP-TEE test suite

2019-10-22 Thread Heiko Stuebner
From: Heiko Stuebner OP-TEE can get supplied with a devicetree and will then insert its firmware node and reserved-memory sections into it. As this devicetree often is not the one supplied to a later loaded kernel, a previous commit added functionality to transfer these nodes onto that new

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

2019-10-22 Thread Heiko Stuebner
From: Heiko Stuebner 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 was not done and thus the phandle assignment

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

2019-10-22 Thread Andy Shevchenko
On Tue, Oct 22, 2019 at 4:51 PM Simon Glass wrote: > On Tue, 22 Oct 2019 at 02:23, Andy Shevchenko > wrote: > > On Tue, Oct 22, 2019 at 1:54 AM Simon Glass wrote: > > > On Mon, 21 Oct 2019 at 02:44, Andy Shevchenko > > > wrote: > > > > > OK. Where is the iLB driver? So are any changes needed

Re: [U-Boot] [PATCH v5 19/19] arm: socfpga: agilex: Enable Agilex SoC build

2019-10-22 Thread Simon Goldschmidt
Am 11.10.2019 um 11:52 schrieb Ley Foon Tan: Add build support for Agilex SoC. Signed-off-by: Ley Foon Tan Reviewed-by: Simon Goldschmidt This does not apply any more, you'll need to rebase it (Marek has changed mach-socfpga/Kconfig by renaming a board). Regards, Simon --- v5: -

Re: [U-Boot] [PATCH v5 14/19] ddr: altera: Restructure Stratix 10 SDRAM driver

2019-10-22 Thread Simon Goldschmidt
Am 11.10.2019 um 11:52 schrieb Ley Foon Tan: Restructure Stratix 10 SDRAM driver. Move common code to separate file, in preparation to support SDRAM driver for Agilex. Signed-off-by: Ley Foon Tan --- v3: - Change sdram_common.* to sdram_soc64.* --- drivers/ddr/altera/Makefile

Re: [U-Boot] [PATCH 0/9] rockchip: ram: add common code for sdram driver

2019-10-22 Thread Jagan Teki
Hi Kever, Thanks for new updated changes. On Tue, Oct 22, 2019 at 1:34 PM Kever Yang wrote: > > > The sdram drivers for Rockchip SoCs was all separate, some of the SoCs > has similar hardware controller and phy, so we have a change to share > the flow and some of the functions between different

Re: [U-Boot] [PATCH v5 12/19] drivers: Enable cache driver build in SPL

2019-10-22 Thread Simon Goldschmidt
Am 11.10.2019 um 11:52 schrieb Ley Foon Tan: Enable cache driver build in SPL. Signed-off-by: Ley Foon Tan --- drivers/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/Makefile b/drivers/Makefile index a4bb5e4975..0d231cddbb 100644 --- a/drivers/Makefile +++

Re: [U-Boot] [PATCH v5 11/19] cache: Add Arteris Ncore cache coherent unit driver

2019-10-22 Thread Simon Goldschmidt
Am 11.10.2019 um 11:52 schrieb Ley Foon Tan: Add Cache Coherency Unit (CCU) driver. CCU is to ensures consistency of shared data between multi masters in the system. Driver initializes CCU's directories and coherency agent interfaces in CCU IP. Signed-off-by: Ley Foon Tan Reviewed-by: Simon

Re: [U-Boot] [PATCH v5 08/19] arm: socfpga: Fix CLKMGR_INTOSC_HZ to 400MHz

2019-10-22 Thread Simon Goldschmidt
Am 11.10.2019 um 11:52 schrieb Ley Foon Tan: CLKMGR_INTOSC_HZ should be 400MHz, instead of 460MHz. Having this in a separate patch is clearly better. Signed-off-by: Ley Foon Tan --- arch/arm/mach-socfpga/include/mach/clock_manager_soc64.h | 2 +- 1 file changed, 1 insertion(+), 1

Re: [U-Boot] [PATCH v3 3/3] spi-nor: spi-nor-ids: Add USE_FSR flag for mt25q* and n25q* entry

2019-10-22 Thread Jagan Teki
Hi Vignesh, On Fri, Oct 11, 2019 at 1:28 PM Vignesh Raghavendra wrote: > > n25q* and mt25q* (both 256Mb and 512Mb) flashes support Flag status > register that indicates various errors that may be encountered during > erase/write operations. Therefore add USE_FSR flag wherever missing. Does

Re: [U-Boot] [PATCH v5 07/19] arm: socfpga: Move Stratix10 and Agilex clock manager common code

2019-10-22 Thread Simon Goldschmidt
Am 11.10.2019 um 11:52 schrieb Ley Foon Tan: Move Stratix10 and Agilex clock manager common code to new header file. Signed-off-by: Ley Foon Tan --- v5: - Revert CLKMGR_INTOSC_HZ to 460MHz. --- .../include/mach/clock_manager_s10.h | 16 +++--

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

2019-10-22 Thread Simon Goldschmidt
Am 11.10.2019 um 11:52 schrieb Ley Foon Tan: Add reset manager support for Agilex. Signed-off-by: Ley Foon Tan Reviewed-by: Simon Goldschmidt --- v5: - Remove reset_reset_manager_agilex.h and use reset_manager_soc64.h. v3: - Add reset_manager_soc64.h - Convert to use defines instead of

Re: [U-Boot] [PATCH v5 06/19] arm: socfpga: agilex: Add system manager support

2019-10-22 Thread Simon Goldschmidt
Am 11.10.2019 um 11:52 schrieb Ley Foon Tan: Add system manager support for Agilex. Signed-off-by: Ley Foon Tan Reviewed-by: Simon Goldschmidt --- v5: - Remove system_manager_agilex.h and use system_manager_soc64.h directly. v3: - Change include filename to system_manager_soc64.h. -

Re: [U-Boot] [PATCH v4 4/4] arm: socfpga: Convert clock manager from struct to defines

2019-10-22 Thread Simon Goldschmidt
Am 10.10.2019 um 09:37 schrieb Ley Foon Tan: Convert clock manager for Gen5, Arria 10 and Stratix 10 from struct to defines. Change to get clock manager base address from DT node instead of using #define. Signed-off-by: Ley Foon Tan --- v4: - Update commit message about get base address from

Re: [U-Boot] [PATCH v4 3/4] arm: socfpga: Convert system manager from struct to defines

2019-10-22 Thread Simon Goldschmidt
Am 10.10.2019 um 09:37 schrieb Ley Foon Tan: Convert system manager for Gen5, Arria 10 and Stratix 10 from struct to defines. Change to get system manager base address from DT node instead of using #define. Signed-off-by: Ley Foon Tan --- v4: - Update commit message about get base address

Re: [U-Boot] [PATCH 0/2] spi-nor-core: Fix small sector erase with SFDP

2019-10-22 Thread Jagan Teki
On Thu, Sep 26, 2019 at 7:04 PM Vignesh Raghavendra wrote: > > First patch improves error reporting on erase/write failures > Second patch makes sure small sector is used even when SFDP is enabled > and CONFIG_SPI_FLASH_USE_4K_SECTORS is set. > > Jagan, > > Could you please consider these patches

Re: [U-Boot] [PATCH 3/3] mtd: spi: Clean up usage of CONFIG_SPI_FLASH_MTD

2019-10-22 Thread Jagan Teki
On Sat, Sep 14, 2019 at 4:14 AM Schrempf Frieder wrote: > > From: Frieder Schrempf > > Most boards currently use SPI_FLASH_MTD only in U-Boot proper, not in > SPL. They often rely on hacks in the board header files to include > this option conditionally. To be able to fix this, we previously >

Re: [U-Boot] [PATCH v4 2/4] arm: socfpga: Convert reset manager from struct to defines

2019-10-22 Thread Simon Goldschmidt
Am 10.10.2019 um 09:37 schrieb Ley Foon Tan: Convert reset manager for Gen5, Arria 10 and Stratix 10 from struct to defines. Change to get reset manager base address from DT node instead of using #define. Signed-off-by: Ley Foon Tan --- v4: - Update commit message about get base address from

Re: [U-Boot] [PATCH 2/3] stm32mp1: configs: Add CONFIG_SPL_SPI_FLASH_MTD

2019-10-22 Thread Jagan Teki
On Tue, Oct 22, 2019 at 6:23 PM Schrempf Frieder wrote: > > Hi Jagan, > > On 17.10.19 08:42, Frieder Schrempf wrote: > > Hi Jagan, > > > > On 16.10.19 18:34, Jagan Teki wrote: > >> On Sat, Sep 14, 2019 at 4:18 AM Schrempf Frieder > >> wrote: > >>> > >>> From: Frieder Schrempf > >>> > >>> As

Re: [U-Boot] [PATCH 1/3] mtd: spi: Add a new option SPL_SPI_FLASH_MTD to Kconfig

2019-10-22 Thread Jagan Teki
On Sat, Sep 14, 2019 at 4:13 AM Schrempf Frieder wrote: > > From: Frieder Schrempf > > To allow SPI_FLASH_MTD being enabled separately in SPL we add a new > option. The only user currently is the stm32mp15_basic board. > > Signed-off-by: Frieder Schrempf > --- Applied to u-boot-spi/master

[U-Boot] [PATCH 6/9] usb: dwc3: Add phy interface for dwc3_uboot

2019-10-22 Thread Jagan Teki
U-Boot has two different variants of dwc3 initializations, - with dm variant gadget, so the respective dm driver would call the dwc3_init in core. - with non-dm variant gadget, so the usage board file would call dwc3_uboot_init in core. The driver probe would handle all respective gadget

[U-Boot] [PATCH 5/9] fastboot: rockchip: Select FASTBOOT_FLASH[_MMC_DEV]

2019-10-22 Thread Jagan Teki
Select CONFIG_FASTBOOT_FLASH, CONFIG_FASTBOOT_FLASH_MMC_DEV for rockchip SoC plaforms in fastboot Kconfig file instead of defined it in board defconfig. This eventually drop the explicit configs defined in supporting board defconfig files. Signed-off-by: Jagan Teki ---

[U-Boot] [PATCH 4/9] gadget: rockchip: Add rk3128 USB_GADGET_PRODUCT_NUM

2019-10-22 Thread Jagan Teki
Add 0x310c for rk3128 gadget product number. Signed-off-by: Jagan Teki --- drivers/usb/gadget/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index e120b48b33..2da8b40e05 100644 --- a/drivers/usb/gadget/Kconfig +++

[U-Boot] [PATCH 7/9] gadget: rockchip: Add rk3399 USB_GADGET_PRODUCT_NUM

2019-10-22 Thread Jagan Teki
Add 0x330a for rk3399 gadget product number. Signed-off-by: Jagan Teki --- drivers/usb/gadget/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index 2da8b40e05..b0e61f3fcd 100644 --- a/drivers/usb/gadget/Kconfig

[U-Boot] [PATCH 8/9] rockchip: Setup dwc3_device (for non-dm gadgets)

2019-10-22 Thread Jagan Teki
Setup dwc3_device structure for non-dm gadgets, which is used in rk3399 platforms. dwc3_device would have basic regbase, dr_mode, high speed and 16-bit UTMI+ etc. Cc: Marek Vasut Signed-off-by: Jagan Teki --- arch/arm/mach-rockchip/board.c | 32 ++-- 1 file

[U-Boot] [DO NOT MERGE] [PATCH 9/9] rockchip: rk3399: Enable fastboot

2019-10-22 Thread Jagan Teki
Enable fastboot on NanoPC-T4 and ROC-PC based rk3399 boards. Signed-off-by: Jagan Teki --- configs/nanopc-t4-rk3399_defconfig | 3 +++ configs/roc-rk3399-pc_defconfig| 3 +++ 2 files changed, 6 insertions(+) diff --git a/configs/nanopc-t4-rk3399_defconfig

[U-Boot] [PATCH 3/9] gadget: rockchip: USB_GADGET_PRODUCT_NUM

2019-10-22 Thread Jagan Teki
Rockchip support differnet or common gadget product number between Rockchip SoCs like, 0x310a - rk3036 0x320a - rk3229, rk3288 0x330a - rk3328 So, select them on Kconfig based on platform specific config defined.     This eventually drop the explicit configs defined in supporting board defconfig

[U-Boot] [PATCH 2/9] gadget: Select USB_GADGET_VENDOR_NUM for rockchip

2019-10-22 Thread Jagan Teki
Gadget vendor number, 0x2207 is common across all platfroms supported in Rockchip SoC. So, select the same number globally, if ARCH_ROCKCHIP. This eventually drop the explicit configs defined in supported board defconfig files. Signed-off-by: Jagan Teki --- configs/elgin-rv1108_defconfig|

[U-Boot] [PATCH 1/9] gadget: Select USB_GADGET_MANUFACTURER for rockchip

2019-10-22 Thread Jagan Teki
Select the gadget manufacturer as 'Rockchip' for all rockchip platform SoC's. This eventually drop the explicit defined added on supported board defconfig files. Signed-off-by: Jagan Teki --- configs/elgin-rv1108_defconfig| 1 - configs/evb-rk3036_defconfig | 1 -

[U-Boot] [PATCH 0/9] rockchip: rk3399: Add fastboot support

2019-10-22 Thread Jagan Teki
This patchset add fastboot support on RK3399 and also rework of CONFIG items related to fastboot support. patch 0001 - 0005: existing gadget, fastboot config move patch 0006: add phy interface for dwc3_uboot patch 0007: 0008: dwc3 setup for rk3399 patch 0009: enable fastboot, nanopc-t4, roc-pc

Re: [U-Boot] [PATCH 4/9] ram: rk3328: use common sdram driver

2019-10-22 Thread Matwey V. Kornilov
Hi, Thank you. Currently, I see the following at Rock64 SBC: U-Boot TPL 2019.10-00024-g8b580d5b93 (Oct 22 2019 - 20:29:01) data training error LPDDR3, 800MHz BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB Trying to boot from BOOTROM Returning to boot ROM... The rest seems

Re: [U-Boot] [RFC PATCH v2 08/18] socfpga: gen5: add new tool to create handoff dtsi files

2019-10-22 Thread Simon Goldschmidt
Dalon L Westergreen schrieb am Di., 22. Okt. 2019, 19:10: > I mentioned this before, it would be great to not rely on the generated > files > and do this based purely on the handoff data generated during a quartus > build. Did you look at the python source i pointed you to? > No, not yet. But I

Re: [U-Boot] [RFC PATCH v2 08/18] socfpga: gen5: add new tool to create handoff dtsi files

2019-10-22 Thread Dalon L Westergreen
I mentioned this before, it would be great to not rely on the generated filesand do this based purely on the handoff data generated during a quartusbuild. Did you look at the python source i pointed you to? --dalon On Tue, 2019-10-15 at 22:10 +0200, Simon Goldschmidt wrote: > This new tool

Re: [U-Boot] [EXT] Re: [PATCH 1/6] spi: fsl_qspi: Fix DDR mode setting for latest iMX platforms

2019-10-22 Thread Ashish Kumar
> -Original Message- > From: Stefan Roese > Sent: Tuesday, October 22, 2019 9:12 PM > To: Schrempf Frieder ; Ashish Kumar > ; Ye Li ; > ja...@amarulasolutions.com > Cc: Fabio Estevam ; u-boot@lists.denx.de; dl- > uboot-imx > Subject: Re: [U-Boot] [EXT] Re: [PATCH 1/6] spi: fsl_qspi:

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

2019-10-22 Thread Stephen Warren
On 10/21/19 5:46 PM, Simon Glass wrote: 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

Re: [U-Boot] [EXT] Re: [PATCH 1/6] spi: fsl_qspi: Fix DDR mode setting for latest iMX platforms

2019-10-22 Thread Stefan Roese
Hi Frieder, On 22.10.19 16:24, Schrempf Frieder wrote: On 22.10.19 15:55, Frieder Schrempf wrote: Hi Stefan, On 22.10.19 15:18, Stefan Roese wrote: Hi Frieder, Hi Ashish, Hi Ye Li, Hi Fabio, On 18.09.19 09:42, Stefan Roese wrote: Hi Frieder, On 18.09.19 09:08, Schrempf Frieder wrote:

Re: [U-Boot] [EXT] Re: [PATCH 1/6] spi: fsl_qspi: Fix DDR mode setting for latest iMX platforms

2019-10-22 Thread Stefan Roese
Hi Frieder, On 22.10.19 15:55, Schrempf Frieder wrote: Hi Stefan, On 22.10.19 15:18, Stefan Roese wrote: Hi Frieder, Hi Ashish, Hi Ye Li, Hi Fabio, On 18.09.19 09:42, Stefan Roese wrote: Hi Frieder, On 18.09.19 09:08, Schrempf Frieder wrote: One further update on this QSPI driver. This

[U-Boot] [PATCH] dts: Kconfig: Fix help for SPL_OF_CONTROL

2019-10-22 Thread Walter Lozano
As initially this feature was implemented as a negative CONFIG and later it was redesigned to be positive the help text should be updated to reflect this change. This commit updates the help text to match the current implementation. Signed-off-by: Walter Lozano --- dts/Kconfig | 2 +- 1 file

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

2019-10-22 Thread Michael Walle
Am 2019-10-22 15:45, schrieb Michal Simek: On 22. 10. 19 15:09, Michael Walle wrote: Am 2019-10-14 15:29, schrieb Michal Simek: 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

[U-Boot] [PATCH PATCH v6 00/13] Add support for applications of overlays in SPL

2019-10-22 Thread Jean-Jacques Hiblot
The purpose of this series is to provide the SPL with ability to apply overlays for u-boot. Our use-case is the support of the daughter boards of the AM65x and J721e EVMs. In Linux, each board is supported by a unique overlay. The presence of the boards is detected at runtime, and some useful

[U-Boot] [PATCH PATCH v6 12/13] dts: Add support for adding DT overlays in u-boot.img

2019-10-22 Thread Jean-Jacques Hiblot
If u-boot.img is a FIT image, CONFIG_OF_OVERLAY_LIST can be used to add DT overlays to u-boot.img. Signed-off-by: Jean-Jacques Hiblot --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None Makefile| 3 ++- dts/Kconfig | 8 2 files

[U-Boot] [PATCH PATCH v6 13/13] spl: fit: Allow the board to tell if more images must be loaded from FIT

2019-10-22 Thread Jean-Jacques Hiblot
spl_fit_get_image_name() is used to get the names of the images that the SPL must load from the FIT. It relies on the content of a property present in the FIT. The list of images is thus statically defined in the FIT. With this scheme, it quickly becomes hard to manage combinations of more than a

[U-Boot] [PATCH PATCH v6 09/13] drivers: board: Make the board drivers available in SPL

2019-10-22 Thread Jean-Jacques Hiblot
Make the board driver available in the SPL too. The board driver is a way to provide useful information about the board and that can be useful in the SPL too. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in

[U-Boot] [PATCH PATCH v6 06/13] spl: fit: be more verbose when an error occurs when applying the overlays

2019-10-22 Thread Jean-Jacques Hiblot
There are many ways the overlay application can fail. 2 of them are probably the most common: - the application itself failed. Usually this is comes from an unresolved reference - DTBO not available in FIT (could be because of a typo) In both case it is good to be more explicit about the error

[U-Boot] [PATCH PATCH v6 04/13] spl: fit: allocate a temporary buffer to load the overlays

2019-10-22 Thread Jean-Jacques Hiblot
If the node describing an overlay does not specify a load address, it will be loaded at the address previously used. Fixing it by allocating a temporary buffer that will be used as a default load address. By default, the size of the buffer is 64kB which should be plenty for most use cases.

[U-Boot] [PATCH PATCH v6 10/13] drivers: board: Add get_fit_loadable()

2019-10-22 Thread Jean-Jacques Hiblot
This function will be used by the SPL to get the names of images to load from the FIT. This allows to load different images based on runtime HW detection. Signed-off-by: Jean-Jacques Hiblot --- Changes in v6: None Changes in v5: - board_get_fit_loadable() returns an error code instead of a

[U-Boot] [PATCH PATCH v6 02/13] spl: fit: Add support for applying DT overlay

2019-10-22 Thread Jean-Jacques Hiblot
From: Michal Simek doc/uImage.FIT/overlay-fdt-boot.txt is describing how to create FIT image with DT overlays in it. Add support for this feature to SPL. Here is the ZynqMP fragment where dtb points to full DT and dtbo is overlay which should be applied on the top of dtb. config {

[U-Boot] [PATCH PATCH v6 07/13] Makefile.lib: include /__symbols__ in dtb if SPL_LOAD_FIT_APPLY_OVERLAY is enabled

2019-10-22 Thread Jean-Jacques Hiblot
In order to apply an overlay to a DTB. The DTB must have been generated with the option '-@'. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None scripts/Makefile.lib | 4 1

[U-Boot] [PATCH PATCH v6 01/13] spl: fit: don't load the firmware twice

2019-10-22 Thread Jean-Jacques Hiblot
When u-boot.img is a FIT image generated automatically by mkimage, the configuration node has the following structure: conf-1 { description = "k3-am654-base-board"; firmware = "firmware-1"; loadables = "firmware-1"; fdt = "fdt-1"; }; The firmware is referenced twice. Once by the

[U-Boot] [PATCH PATCH v6 08/13] spl: fit: constify the output parameter of spl_fit_get_image_name()

2019-10-22 Thread Jean-Jacques Hiblot
There is no need for it to be non-constant. Making it constant, allows to return constant string without warning. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None

[U-Boot] [PATCH PATCH v6 11/13] include: board: provide empty stubs when the BOARD option is not selected

2019-10-22 Thread Jean-Jacques Hiblot
Useful to avoid #ifdef throughout the code that uses the board driver API. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None include/board.h | 37

[U-Boot] [PATCH PATCH v6 03/13] spl: fit: Make room in the FDT before applying overlays

2019-10-22 Thread Jean-Jacques Hiblot
Make room in the FDT before applying the overlay, otherwise it may fail if the overlay is big. As the exact added size is not known in advance, just add the size of the overlay. Move after the end of the application of the overlays, the resize of the FDT for the injection of the details on the

[U-Boot] [PATCH PATCH v6 05/13] spl: fit: Do not fail immediately if an overlay is not available

2019-10-22 Thread Jean-Jacques Hiblot
If one overlay that must be applied cannot be found in the FIT, the current implementation stops applying the overlays. Let's make it skip only the failing overlay instead. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass --- Changes in v6: None Changes in v5: None Changes in v4:

Re: [U-Boot] [EXT] Re: [PATCH 1/6] spi: fsl_qspi: Fix DDR mode setting for latest iMX platforms

2019-10-22 Thread Schrempf Frieder
On 22.10.19 15:55, Frieder Schrempf wrote: > Hi Stefan, > > On 22.10.19 15:18, Stefan Roese wrote: >> Hi Frieder, >> Hi Ashish, >> Hi Ye Li, >> Hi Fabio, >> >> On 18.09.19 09:42, Stefan Roese wrote: >>> Hi Frieder, >>> >>> On 18.09.19 09:08, Schrempf Frieder wrote: >>> >>> >>> > One further

[U-Boot] linker question u-boot - setting armv8 mem_map struct at runtime

2019-10-22 Thread Matthias Brugger
Hi all, I'm trying to support one binary that can boot from RPi3 and RPi4 [1]. For this I need to set mem_map at runtime [2]. Up to now, mem_map is defined in lowlevel_init.S which pushes it to section .text_rest But as Alex noted in the thread, much cleaner would be to define mem_map as an

Re: [U-Boot] [EXT] Re: [PATCH 1/6] spi: fsl_qspi: Fix DDR mode setting for latest iMX platforms

2019-10-22 Thread Schrempf Frieder
Hi Stefan, On 22.10.19 15:18, Stefan Roese wrote: > Hi Frieder, > Hi Ashish, > Hi Ye Li, > Hi Fabio, > > On 18.09.19 09:42, Stefan Roese wrote: >> Hi Frieder, >> >> On 18.09.19 09:08, Schrempf Frieder wrote: >> >> >> One further update on this QSPI driver. This driver only works when

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

2019-10-22 Thread Michal Simek
On 22. 10. 19 15:09, Michael Walle wrote: > Am 2019-10-14 15:29, schrieb Michal Simek: >> 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

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

2019-10-22 Thread Simon Glass
Hi Andy, On Tue, 22 Oct 2019 at 02:23, Andy Shevchenko wrote: > > On Tue, Oct 22, 2019 at 1:54 AM Simon Glass wrote: > > On Mon, 21 Oct 2019 at 02:44, Andy Shevchenko > > wrote: > > > OK. Where is the iLB driver? So are any changes needed for this patch? > > I guess in U-Boot we call it

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

2019-10-22 Thread Michael Walle
Am 2019-10-14 15:29, schrieb Michal Simek: 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 prints the content of

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

2019-10-22 Thread Simon Glass
Hi Andy, On Tue, 22 Oct 2019 at 02:19, Andy Shevchenko wrote: > > On Tue, Oct 22, 2019 at 1:54 AM Simon Glass wrote: > > On Mon, 21 Oct 2019 at 01:52, Andy Shevchenko > > wrote: > > > On Mon, Oct 21, 2019 at 7:24 AM Simon Glass wrote: > > > > PCI(e) bus is present in a lot of SoCs (not

Re: [U-Boot] [PATCH v3 2/3] env: introduce macro ENV_IS_IN_SOMEWHERE

2019-10-22 Thread Simon Glass
Hi Patrick, On Mon, 30 Sep 2019 at 03:30, Patrick DELAUNAY wrote: > > Hi Simon, > > > From: Simon Glass > > Sent: vendredi 27 septembre 2019 03:49 > > > > On Wed, 18 Sep 2019 at 03:30, Patrick Delaunay > > wrote: > > > > > > This patch introduce a macro ENV_IS_IN_SOMEWHERE to check if the the

  1   2   >