[PATCH v3 0/3] spl: allow loading via partition type GUID

2023-02-19 Thread Heinrich Schuchardt
Some boards provide main U-Boot as a dedicated partition to SPL. Currently we can define either a fixed partition number or an MBR partition type to define which partition is to be used. Partition numbers tend to conflict with established partitioning schemes of Linux distros. MBR partitioning is

[PATCH v3 2/3] kconfig: new macro IF_ENABLED()

2023-02-19 Thread Heinrich Schuchardt
We want to move from using #ifdef to using if in our code. A lot of our code using #ifdef is structured like: #ifdef CONFIG_FOO fun(CONFIG_FOO_OPT); #endif In Kconfig you will find config FOO bool "enable foo" config FOO_OPT string "value for foo"

[PATCH v3 1/3] disk: accessors for conditional partition fields

2023-02-19 Thread Heinrich Schuchardt
Structure disk_partition contains some fields whose existence depends on configuration variables. Provide macros that return a value irrespective of the value of configuration. This allows to replace #ifdefs by simple ifs in codes that relies on these fields which is our preferred coding style. Si

[PATCH v3 3/3] spl: allow loading via partition type GUID

2023-02-19 Thread Heinrich Schuchardt
Some boards provide main U-Boot as a dedicated partition to SPL. Currently we can define either a fixed partition number or an MBR partition type to define which partition is to be used. Partition numbers tend to conflict with established partitioning schemes of Linux distros. MBR partitioning is

[PATCH v2] Let the EQoS in imx8mp handle fixed-phy too.

2023-02-19 Thread Elmar Psilog
Without that patch it lost track to the node to scan speed and duplex. Patch was created by Marek Vasut, just tested by me. Signed-off-by: Elmar Psilog --- changes v2: fix format issues drivers/net/dwc_eth_qos.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff -

Re: [PATCH v2] Let the EQoS in imx8mp handle fixed-phy too.

2023-02-19 Thread Marek Vasut
On 2/19/23 13:48, Elmar Psilog wrote: Without that patch it lost track to the node to scan speed and duplex. Patch was created by Marek Vasut, just tested by me. Signed-off-by: Elmar Psilog --- changes v2: fix format issues drivers/net/dwc_eth_qos.c | 19 --- 1 file change

[PATCH 00/15] tools: Support uploading tools to PyPi for use with pip

2023-02-19 Thread Simon Glass
Some of the tools in U-Boot are useful beyond just U-Boot. For example, patman can be used to work with Linux and other projects which use mailing lists (and patchwork) for patch submissions. Binman can be used to package firmware for any project, even though it is heavily slanted towards U-Boot so

[PATCH 01/15] binman: Avoid unwanted output in testFitFirmwareLoadables()

2023-02-19 Thread Simon Glass
This prints a message about the missing tee-os generated by the test. This is confusing, so suppress it. Signed-off-by: Simon Glass --- tools/binman/ftest.py | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py index 062f54ad

[PATCH 02/15] Revert "patman: test_util: Print test stdout/stderr within test summaries"

2023-02-19 Thread Simon Glass
Unfortunately this adds a new feature to concurrencytest and it has not made it upstream to the project[1]. Drop it for now so we can use the upstream module. Once it is applied we can bring this functionality back. [1] https://github.com/cgoldberg/concurrencytest This reverts commit ebcaafcded4

[PATCH 08/15] patman: Add support for building a patmanu PyPi package

2023-02-19 Thread Simon Glass
Create the necessary files to build this new package. Signed-off-by: Simon Glass --- Makefile | 1 + tools/patmanu/pyproject.toml | 29 + 2 files changed, 30 insertions(+) create mode 100644 tools/patmanu/pyproject.toml diff --git a/Makefile b/

[PATCH 03/15] Remove concurrencytest

2023-02-19 Thread Simon Glass
While our version is better, it is tricky to use it when we are trying to package things with pip. Drop it. Somewhat reduced functionality is provided by the upstream version[1], along with a rather annoying message each time it is used[2] [3]. [1] pip install concurrencytest [2] https://github.c

[PATCH 05/15] script: Add a script to build a PyPi package

2023-02-19 Thread Simon Glass
Create a script which can package a tool for use with PyPi and the 'pip' tool. This involves quite a few steps so is best automated. Future work will enable use of this for some of the tools in U-Boot. Signed-off-by: Simon Glass --- scripts/make_pip.sh | 113

[PATCH 10/15] dtoc: Add support for building a dtoc PyPi package

2023-02-19 Thread Simon Glass
Create the necessary files to build this new package. This is needed for binman. Move the main program into a function so that it can easily be called by the PyPi-created script. Signed-off-by: Simon Glass --- Makefile | 1 + tools/dtoc/README.rst | 15 +++ tools/dto

[PATCH 09/15] buildman: Add support for building a buildman PyPi package

2023-02-19 Thread Simon Glass
Create the necessary files to build this new package. It is not actually clear whether this is useful, since buildman has no purpose outside U-Boot. It is included for completeness, since adding this later would be more trouble. Move the main program into a function so that it can easily be calle

[PATCH 07/15] patman: Rename directory to patmanu

2023-02-19 Thread Simon Glass
The name 'patman' is already taken in PyPi so use 'patmanu' as the name of the package. Rename the source directory accordingly. Fix up some uses of this in buildman. Add a symlink to avoid any major disruption for people used to invoking patman from within the source tree. Signed-off-by: Simon

[PATCH 14/15] doc: Add notes on how to install patman and binman

2023-02-19 Thread Simon Glass
These can be installed with 'pip' now. Add the details for those who are interested. Signed-off-by: Simon Glass --- tools/binmanu/binman.rst | 14 ++ tools/patmanu/patman.rst | 13 + 2 files changed, 27 insertions(+) diff --git a/tools/binmanu/binman.rst b/tools/binmanu

[PATCH 12/15] binman: Add support for building a binmanu PyPi package

2023-02-19 Thread Simon Glass
Create the necessary files to build this new package. It is not actually clear whether this is useful, since buildman has no purpose outside U-Boot. Move the main program into a function so that it can easily be called by the PyPi-created script. Signed-off-by: Simon Glass --- Makefile

[PATCH 04/15] patman: Move library functions into a library directory

2023-02-19 Thread Simon Glass
The patman directory has a number of modules which are used by other tools in U-Boot. This makes it hard to package the tools using pypi since the common files must be copied along with the tool that uses them. To address this, move these files into a new u_boot_pylib library. This can be packaged

[PATCH 06/15] patman: Add support for building a u_boot_tools PyPi package

2023-02-19 Thread Simon Glass
Create the necessary files to build this new package. Signed-off-by: Simon Glass --- Makefile | 18 +- tools/u_boot_pylib/LICENSE| 339 ++ tools/u_boot_pylib/README.rst | 15 ++ tools/u_boot_pylib/pyproject.toml | 22 ++ 4 file

[PATCH 13/15] test: Add concurrencytest to the requirements

2023-02-19 Thread Simon Glass
This allows tests to run in parallel and speeds up some tests markedly, particularly with binman. Add it to the requirements. Signed-off-by: Simon Glass --- test/py/requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test/py/requirements.txt b/test/py/requirements.txt index fae

[PATCH 15/15] CI: Add a check for building tools for PyPi

2023-02-19 Thread Simon Glass
Add a simple check that the PyPi packages can be built. Signed-off-by: Simon Glass --- .azure-pipelines.yml | 10 ++ .gitlab-ci.yml | 6 ++ 2 files changed, 16 insertions(+) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 8327edf87aa..6cd93f7f4d2 100644 --- a/

[PATCH v4 0/4] rockchip: Use external TPL binary to create a working firmware image

2023-02-19 Thread Jonas Karlman
Rockchip SoCs typically use U-Boot TPL to initialize DRAM, then jumps back to BootRom to load next stage, U-Boot SPL, into DRAM. BootRom then jumps to U-Boot SPL to continue the boot flow. For RK356x there is no support to initialize DRAM using U-Boot TPL and instead an external TPL binary must be

[PATCH v4 2/4] rockchip: Use an external TPL binary on RK3568

2023-02-19 Thread Jonas Karlman
Rockchip SoCs typically use U-Boot TPL to initialize DRAM, then jumps back to BootRom to load next stage, U-Boot SPL, into DRAM. BootRom then jumps to U-Boot SPL to continue the normal boot flow. However, there is no support to initialize DRAM on RK35xx SoCs using U-Boot TPL and instead an externa

[PATCH v4 3/4] Revert "board: rockchip: Fix binman_init failure on EVB-RK3568"

2023-02-19 Thread Jonas Karlman
An external TPL binary is now expected to be provided using ROCKCHIP_TPL when building RK3568 targets. This reverts commit 31500e7bcfaca08ab7c2879f502a6cf852410244. Signed-off-by: Jonas Karlman Reviewed-by: Simon Glass Reviewed-by: Kever Yang --- v4: - No change v3: - Collect r-b tag v2: - C

[PATCH v4 4/4] rockchip: mkimage: Update init size limit for RK3328 and RK3568

2023-02-19 Thread Jonas Karlman
Latest vendor TPL for RK3328 has grown past the current init size limit of 28KiB and the current init size limit for RK3568 of 76KiB is too big to fit in 64KiB SRAM. Sync init size limit from vendor u-boot for the following SoCs: rk3328: 30KiB (+2KiB) rk3568: 60KiB (-16KiB) This makes it possi

[PATCH v4 1/4] binman: Add support for a rockchip-tpl entry

2023-02-19 Thread Jonas Karlman
The rockchip-tpl entry can be used when an external TPL binary should be used instead of the normal U-Boot TPL. Signed-off-by: Jonas Karlman Reviewed-by: Simon Glass Reviewed-by: Kever Yang Tested-by: Eugen Hristev --- v4: - No change v3: - Move test function last - Collect r-b and t-b tags

fix ext4_write_file can only write file once

2023-02-19 Thread Wavin
Hi!     I found an problem that the u-boot will delete my file first when I write an exists file on ext4 filesystem. This results in only one line being written when I want to write multiple lines, and cannot write more times. Although the method maybe betrickly, It's really resolve my problem.

Re-writing SMC91111 Ethernet driver

2023-02-19 Thread Robert Catherall
Hi, The SMC9 Ethernet driver was removed in commit ecf1d2741d95f5f84e31dc1d0bef149d8ff1f0a3 because it had not been converted to DM_ETH. I would be interested in doing the conversion and re-instating the driver to support Arm FastModel virtual prototypes (and Juno r0 hardware while I'm a

[PATCH 0/4] patman: Speed up some operations

2023-02-19 Thread Simon Glass
This little series updates patman to run the get_maintainer.py script in parallel for each commit. It also does the same with checkpatch. In some cases this can make a dramatic different to the speed. Simon Glass (4): patman: Drop an uncorrect comment about git am patman: Refactor MakeCcFile

[PATCH 1/4] patman: Drop an uncorrect comment about git am

2023-02-19 Thread Simon Glass
Patman does not do this anymore, so drop the comment. Signed-off-by: Simon Glass --- tools/patmanu/control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/patmanu/control.py b/tools/patmanu/control.py index b1e23870d9d..6ff94776da9 100644 --- a/tools/patmanu/control

[PATCH 3/4] patman: Run get_maintainer.pl in parallel

2023-02-19 Thread Simon Glass
This script can take ages on some series. Try to limit the time by using threads. If a few stubborn patches remain, show progress so the user has some idea what is going on. Signed-off-by: Simon Glass --- tools/patmanu/func_test.py | 2 ++ tools/patmanu/series.py| 33 ++

[PATCH 4/4] patman: Check patches in parallel

2023-02-19 Thread Simon Glass
For large series this can take a while. Run checkpatch in parallel to try to reduce the time. The checkpatch information is still reported in sequential order, so a very slow patch at the start can still slow things down. But overall this gives good results. Signed-off-by: Simon Glass --- tools

[PATCH 2/4] patman: Refactor MakeCcFile() into two functions

2023-02-19 Thread Simon Glass
This function is quite long. Moving the handling of a commit into a separate function. This will make it easier to do the work in parallel. Update function comments while we are here. Signed-off-by: Simon Glass --- tools/patmanu/series.py | 80 - 1 file

Re: [PATCH 07/15] patman: Rename directory to patmanu

2023-02-19 Thread Sean Anderson
On 2/19/23 09:51, Simon Glass wrote: The name 'patman' is already taken in PyPi so use 'patmanu' as the name of the package. Rename the source directory accordingly. Can't we just have a pypi package named e.g. patch-manager while the actual package name stays the same? --Sean Fix up some us

Re: [PATCH 07/15] patman: Rename directory to patmanu

2023-02-19 Thread Simon Glass
Hi Sean, On Sun, 19 Feb 2023 at 09:49, Sean Anderson wrote: > > On 2/19/23 09:51, Simon Glass wrote: > > The name 'patman' is already taken in PyPi so use 'patmanu' as the name > > of the package. Rename the source directory accordingly. > > Can't we just have a pypi package named e.g. patch-mana

Re: [PATCH v4 0/2] arm: dts: rockchip: rk3399: usb: ehci: Fix EHCI probe in rk3399 to access peripherals by USB 2.

2023-02-19 Thread Christoph Fritz
Hello Xavier > The first patch in the series (identical to v3) just registers usb2phy > as a clock driver (device_bind_driver() didn't work but > device_bind_driver_to_node() did), without any specific operations, so > that ehci-generic.c finds it and is happy. It worked in my tests on a > Rock Pi

Re: [PATCH 07/15] patman: Rename directory to patmanu

2023-02-19 Thread Sean Anderson
On 2/19/23 13:50, Simon Glass wrote: Hi Sean, On Sun, 19 Feb 2023 at 09:49, Sean Anderson wrote: On 2/19/23 09:51, Simon Glass wrote: The name 'patman' is already taken in PyPi so use 'patmanu' as the name of the package. Rename the source directory accordingly. Can't we just have a pypi p

Re: [PATCH v2 1/1] spl: allow loading via partition type GUID

2023-02-19 Thread Mark Kettenis
> Date: Fri, 17 Feb 2023 12:06:40 +0100 > From: Heinrich Schuchardt > > On 2/17/23 11:34, Mark Kettenis wrote: > >> Date: Fri, 17 Feb 2023 07:55:58 +0100 > >> From: Heinrich Schuchardt > >> > >>> I'm not sure, but at some point this is all going to get out of hand. > >>> Already we have these op

Re: [PATCH] efi_loader: efi_allocate_pages: check parameter pages

2023-02-19 Thread Heinrich Schuchardt
On 2/16/23 11:53, Peng Fan (OSS) wrote: From: Peng Fan On i.MX8MM-EVK, when doing UEFI Capsule On Disk, we met such issue, It will create Boot option for capsule on disk: Boot: VenHw(E61D73B9-A384-4ACC-AEAB-82E828F3628B)/eMMC(0x2)/eMMC(0x1)/HD(1,GPT,F5CC8412-CD9F-4C9E-A782-0E945461E89E,0x8

[PATCH 1/1] doc: remove superfluous warning

2023-02-19 Thread Heinrich Schuchardt
We have been using Sphinx >=3 since 2020. We don't expect issues. Signed-off-by: Heinrich Schuchardt --- doc/conf.py | 4 1 file changed, 4 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 3db70f80c1..00f2413664 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -47,10 +47,6 @@ extensi

Re: [PATCH v2 1/1] spl: allow loading via partition type GUID

2023-02-19 Thread Heinrich Schuchardt
On 2/19/23 20:52, Mark Kettenis wrote: Date: Fri, 17 Feb 2023 12:06:40 +0100 From: Heinrich Schuchardt On 2/17/23 11:34, Mark Kettenis wrote: Date: Fri, 17 Feb 2023 07:55:58 +0100 From: Heinrich Schuchardt I'm not sure, but at some point this is all going to get out of hand. Already we h

[PATCH] kconfig: Proposed language extension for multiple builds

2023-02-19 Thread Simon Glass
In the case of Linux, only one build is produced so there is only a single configuration. For other projects, such as U-Boot and Zephyr, the same code is used to produce multiple builds, each with related (but different) options enabled. This can be handled with the existing kconfig language, but

Pull request for efi-2023-04-rc3

2023-02-19 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit 1198b38ba980efed050c878c083607d997010e03: Merge branch '2023-02-17-assorted-fixes' (2023-02-17 14:18:46 -0500) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2023-04-rc3 for you to fet

[PATCH 1/9] binman: Remove redundant SetAllowFakeBlob from blob-ext entry

2023-02-19 Thread Jonas Karlman
Entry_blob_ext contains an implementation of SetAllowFakeBlob that is identical to the one in the base Entry class, remove it. Signed-off-by: Jonas Karlman --- tools/binman/etype/blob_ext.py | 8 1 file changed, 8 deletions(-) diff --git a/tools/binman/etype/blob_ext.py b/tools/binman/

[PATCH 0/9] binman: Show missing blob message when building U-Boot

2023-02-19 Thread Jonas Karlman
binman currently support showing a helpful missing blob message, but only when the --allow-missing flag is used. This changes so that binman is invoked with the --allow-missing flag and the helpful message can be shown by default when building U-Boot. Using the following: make rockpro64-rk3399

[PATCH 4/9] binman: Override CheckOptional in fit entry

2023-02-19 Thread Jonas Karlman
Missing optional blobs was not reported for generated entries, e.g. tee-os on rockchip targets. Implement a CheckOptional to fix this. After this the following can be shown: Image 'simple-bin' is missing external blobs but is still functional: tee-os /binman/simple-bin/fit/images/@tee-SEQ/te

[PATCH 6/9] binman: Mark mkimage entry missing when its subnodes is missing

2023-02-19 Thread Jonas Karlman
Using the mkimage entry with the multiple-data-files prop and having a missing external blob result in an unexpected ValueError exception using the --allow-missing flag. ValueError: Filename 'missing.bin' not found in input path (...) Fix this by using _pathname that is resolved by ObtainConten

[PATCH 3/9] binman: Use correct argument name in docstrings

2023-02-19 Thread Jonas Karlman
Use correct argument name in docstrings. Signed-off-by: Jonas Karlman --- tools/binman/entry.py | 2 +- tools/binman/etype/blob.py| 2 +- tools/binman/etype/section.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/binman/entry.py b/tools/binman/entry.

[PATCH 8/9] binman: Show filename in missing blob help message

2023-02-19 Thread Jonas Karlman
Show the filename next to the node path in missing blob help messages, also show a generic missing blob message when there was no help message for the help tag. Signed-off-by: Jonas Karlman --- tools/binman/control.py | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --g

[PATCH 2/9] binman: Fix spelling of nodes in code comments

2023-02-19 Thread Jonas Karlman
Replace notes with nodes in code comments and docstrings. Signed-off-by: Jonas Karlman --- tools/binman/etype/fit.py | 2 +- tools/binman/etype/section.py | 2 +- tools/binman/state.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/binman/etype/fit.py b/

[PATCH 7/9] binman: Fix blank line usage for invalid images warning text

2023-02-19 Thread Jonas Karlman
There is no blank line between last missing blob help message and the header line for optional blob help messages. Image 'simple-bin' is missing external blobs and is non-functional: atf-bl31 /binman/simple-bin/fit/images/@atf-SEQ/atf-bl31: See the documentation for your board. You may n

[PATCH 5/9] binman: Implement missing check functions in mkimage entry

2023-02-19 Thread Jonas Karlman
The mkimage entry is working like a section entry but inherits from Entry not Entry_section. Copy implementations of missing Check-functions from Entry_section and adopt to Entry_mkimage. Signed-off-by: Jonas Karlman --- tools/binman/etype/mkimage.py | 44 ++- 1 f

[PATCH 9/9] Makefile: Show binman missing blob message

2023-02-19 Thread Jonas Karlman
When binman is invoked during a build of U-Boot and an external blob is missing, the user is usually presented with a generic file not found in input path message. Invoke binman with --allow-missing so that binman can show relevant missing blob help messages. Build continue to fail with missing bl

Re: [PATCH 07/15] patman: Rename directory to patmanu

2023-02-19 Thread Simon Glass
Hi Sean, On Sun, 19 Feb 2023 at 12:51, Sean Anderson wrote: > > On 2/19/23 13:50, Simon Glass wrote: > > Hi Sean, > > > > On Sun, 19 Feb 2023 at 09:49, Sean Anderson wrote: > >> > >> On 2/19/23 09:51, Simon Glass wrote: > >>> The name 'patman' is already taken in PyPi so use 'patmanu' as the nam

[PATCH v4 00/50] More tidy-ups of Kconfig options

2023-02-19 Thread Simon Glass
This series was split out of the old 'split config' splc series. It contains clean-up patches which do not depend on split config. This is available at u-boot-dm/spld-working The remaining patches will move into a new 'splg' series (G for Good). [1] https://patchwork.ozlabs.org/project/uboot/lis

[PATCH v4 00/46] More tidy-ups of Kconfig options

2023-02-19 Thread Simon Glass
This series was split out of the old 'split config' splc series. It contains clean-up patches which do not depend on split config. This is available at u-boot-dm/spld-working The remaining patches will move into a new 'splg' series (G for Good). [1] https://patchwork.ozlabs.org/project/uboot/lis

[PATCH v4 01/46] mtd: Drop unused kb9202_nand driver

2023-02-19 Thread Simon Glass
This is not used since time out of mind. Drop the driver and Kconfig option. Signed-off-by: Simon Glass Acked-by: Michael Trimarchi --- (no changes since v1) drivers/mtd/nand/raw/Makefile | 1 - drivers/mtd/nand/raw/kb9202_nand.c | 134 - 2 files changed, 1

[PATCH v4 02/46] mtd: Drop unused CONFIG_ONENAND_U_BOOT

2023-02-19 Thread Simon Glass
This option does not exist, so the Makefile rule does nothing. Drop it. Signed-off-by: Simon Glass --- (no changes since v1) Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/Makefile b/Makefile index 54f894dab84..20608b6a800 100644 --- a/Makefile +++ b/Makefile @@ -956,7 +956,6 @@ e

Re: [PATCH v4 00/50] More tidy-ups of Kconfig options

2023-02-19 Thread Simon Glass
Hi, On Sun, 19 Feb 2023 at 16:45, Simon Glass wrote: > > This series was split out of the old 'split config' splc series. It > contains clean-up patches which do not depend on split config. > > This is available at u-boot-dm/spld-working > > The remaining patches will move into a new 'splg' serie

[PATCH v4 06/46] Correct SPL uses of ARCH_MVEBU

2023-02-19 Thread Simon Glass
This converts 2 usages of this option to the non-SPL form, since there is no SPL_ARCH_MVEBU defined in Kconfig Signed-off-by: Simon Glass --- (no changes since v1) drivers/mmc/mv_sdhci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/mv_sdhci.c b/drivers/mm

[PATCH v4 05/46] bootstd: Disable QFW bootmeth in SPL

2023-02-19 Thread Simon Glass
Move this Makefile line into the non-SPL area so we don't have to reply on the SPL_TPL_ macro. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch to disable QFW bootmeth in SPL boot/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/b

[PATCH v4 07/46] Correct SPL uses of DISPLAY_AER_FULL

2023-02-19 Thread Simon Glass
This converts 2 usages of this option to the non-SPL form, since there is no SPL_DISPLAY_AER_FULL defined in Kconfig Signed-off-by: Simon Glass --- (no changes since v1) drivers/sysreset/sysreset_mpc83xx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/sysreset

[PATCH v4 09/46] Correct SPL uses of MULTIPLEXER

2023-02-19 Thread Simon Glass
This converts 3 usages of this option to the non-SPL form, since there is no SPL_MULTIPLEXER defined in Kconfig Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- (no changes since v3) Changes in v3: - Move the option down to the non-SPL part of drivers/Makefile drivers/Makefile | 2 +-

[PATCH v4 04/46] moveconfig: Update to detect / correct missing SPL Kconfigs

2023-02-19 Thread Simon Glass
This adds quite a few more features, all designed to detect problems with Kconfig options and their use. It can find options mentioned in the source code which are not in the Kconfig and vice versa. It can convert SPL usages of non-SPL Kconfig options (i.e. changing CONFIG_IS_ENABLED() to IS_ENABLE

[PATCH v4 03/46] sh4: Drop unused twl6030 driver

2023-02-19 Thread Simon Glass
This is not used. Drop the driver and Kconfig option. Signed-off-by: Simon Glass --- (no changes since v1) drivers/input/Makefile | 1 - drivers/input/twl6030.c | 47 - 2 files changed, 48 deletions(-) delete mode 100644 drivers/input/twl6030.c diff

[PATCH v4 11/46] Correct SPL use of PHY_CADENCE_SIERRA

2023-02-19 Thread Simon Glass
This converts 1 usage of this option to the non-SPL form, since there is no SPL_PHY_CADENCE_SIERRA defined in Kconfig Signed-off-by: Simon Glass --- (no changes since v1) drivers/phy/cadence/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/cadence/Makefi

[PATCH v4 10/46] Correct SPL use of PG_WCOM_UBOOT_UPDATE_SUPPORTED

2023-02-19 Thread Simon Glass
This converts 1 usage of this option to the non-SPL form, since there is no SPL_PG_WCOM_UBOOT_UPDATE_SUPPORTED defined in Kconfig Signed-off-by: Simon Glass Aleksandar Gerasimovski --- (no changes since v1) board/keymile/common/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) d

[PATCH v4 12/46] Correct SPL uses of PHY_FIXED

2023-02-19 Thread Simon Glass
This converts 3 usages of this option to the non-SPL form, since there is no SPL_PHY_FIXED defined in Kconfig Signed-off-by: Simon Glass --- (no changes since v1) drivers/net/mvneta.c | 4 ++-- net/mdio-uclass.c| 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/

[PATCH v4 13/46] boot: Add Kconfigs for BOOTMETH_VBE_REQUEST

2023-02-19 Thread Simon Glass
Allow this to be enabled separately in U-Boot proper and in SPL, since it is not needed in SPL. Signed-off-by: Simon Glass --- Changes in v4: - Avoid use of def_bool boot/Kconfig | 20 boot/Makefile | 3 ++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/

[PATCH v4 15/46] lib: Add a Kconfig for SPL_BZIP2

2023-02-19 Thread Simon Glass
This is implicitly used in the source and seems useful, so add it. Signed-off-by: Simon Glass --- (no changes since v1) lib/Kconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/lib/Kconfig b/lib/Kconfig index 83e5edd73b0..1c93f523b3a 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -

[PATCH v4 30/46] fixdep: Add some tests for parse_config_line()

2023-02-19 Thread Simon Glass
Add tests for this code to cover the basic cases. Signed-off-by: Simon Glass --- (no changes since v1) scripts/basic/fixdep.c | 73 ++ 1 file changed, 73 insertions(+) diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c index a49d35ba5f6..fe818

[PATCH v4 43/46] x86: coral: Add missing TPL options

2023-02-19 Thread Simon Glass
Some options should be enabled which are missing. Fix this. Signed-off-by: Simon Glass --- Changes in v4: - Reduce and rename commit configs/chromebook_coral_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/chromebook_coral_defconfig b/configs/chromebook_coral_defconfi

[PATCH v4 33/46] test: Tidy up sandbox handling in test-main

2023-02-19 Thread Simon Glass
This is pretty messy at present since it relies on a SPL_SANDBOX option that does not exist. Use the normal options instead, so that it will work with split config. Signed-off-by: Simon Glass --- (no changes since v1) test/test-main.c | 10 +- 1 file changed, 5 insertions(+), 5 deletio

[PATCH v4 32/46] lib: Add an SPL config for LIB_UUID

2023-02-19 Thread Simon Glass
This is selected by PARTITION_UUIDS which has a separate option for SPL. Add an SPL option for LIB_UUID also, so that we can keep them consistent. Also add one for PARTITION_TYPE_GUID to avoid a build error in part_efi.c which wants to call a uuid function in SPL. Signed-off-by: Simon Glass ---

[PATCH v4 29/46] fixdep: Refactor to make testing easier

2023-02-19 Thread Simon Glass
Move the config parsing into a separate function so that it is possible to write tests for the function. Signed-off-by: Simon Glass --- (no changes since v1) scripts/basic/fixdep.c | 87 ++ 1 file changed, 54 insertions(+), 33 deletions(-) diff --git a/

[PATCH v4 38/46] imx: Use SATA instead of CMD_SATA

2023-02-19 Thread Simon Glass
This causes a build failure on mx6cuboxi with split config, since CMD_SATA shows up as enabled in SPl (because there is no SPL_CMD_SATA). The condition is wrong anyway, so change it to use SATA instead. Signed-off-by: Simon Glass --- (no changes since v1) board/solidrun/mx6cuboxi/mx6cuboxi.c

[PATCH v4 40/46] freescale: Fix odd use of ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE

2023-02-19 Thread Simon Glass
This is not a CONFIG option so we should not be using IS_ENABLED() on it, particularly not when it is not defined to anything, so shows up as calling IS_ENABLED() with no arguments. Just check it normally. This fixes a build error with split config on T2080QDS. Signed-off-by: Simon Glass --- (

[PATCH v4 36/46] rockchip: Avoid checking environment without ENV_SUPPORT

2023-02-19 Thread Simon Glass
With split config, this causes a build error in SPL where the environment may not be enabled. It affects two rk3399 boards. Add a condition. Signed-off-by: Simon Glass --- (no changes since v1) board/theobroma-systems/puma_rk3399/puma-rk3399.c | 2 +- board/theobroma-systems/ringneck_px30/

[PATCH v4 42/46] dm: Add a TPL symbol for simple-bus

2023-02-19 Thread Simon Glass
This is used in some x86 code, so add a symbol for it. Signed-off-by: Simon Glass --- (no changes since v1) drivers/core/Kconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/core/Kconfig b/drivers/core/Kconfig index 6fc8854b574..0f755aa702e 100644 --- a/drivers/core/Kconf

[PATCH v4 35/46] Add VPL options for BLOBLIST

2023-02-19 Thread Simon Glass
We can use this feature in VPL, so add some options for it. Also fix a typo in the SPL help while we are here. Signed-off-by: Simon Glass --- (no changes since v1) common/Kconfig | 31 ++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/common/Kconfig

[PATCH v4 24/46] lib: Fix build condition for tiny-printf

2023-02-19 Thread Simon Glass
This should be checking for any SPL build. Drop the use of SPL_TPL_ since it is not necessary and will not work with split config. Signed-off-by: Simon Glass --- (no changes since v1) lib/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Makefile b/lib/Makefile i

[PATCH v4 25/46] sandbox: Tidy up RTC options

2023-02-19 Thread Simon Glass
At present we enable the sandbox RTC driver for all builds. Add a separate Kconfig option to control this, so that it can be disabled in TPL, where it is not needed. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Fix a transitory build error with sandbox_spl arch/sandbo

[PATCH v4 31/46] test: Add SPL versions of the TEST_KCONFIG options

2023-02-19 Thread Simon Glass
These are needed since we need a separate value in SPL and Proper. Signed-off-by: Simon Glass --- (no changes since v1) test/lib/Kconfig | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/test/lib/Kconfig b/test/lib/Kconfig index dbb03e4a36f..134cbb85b83 1

[PATCH v4 26/46] sandbox: Use the generic VPL option to enable VPL

2023-02-19 Thread Simon Glass
Avoid using CONFIG_SANDBOX_VPL since we have a generic option which works just as well. Signed-off-by: Simon Glass --- (no changes since v1) arch/sandbox/dts/sandbox.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sandbox/dts/sandbox.dts b/arch/sandbox/dts/sandbox.

[PATCH v4 16/46] moveconfig: Various minor improvements

2023-02-19 Thread Simon Glass
It turns out that the conf_noproper file is not neeed, since if an option does not appear in U-Boot proper we can just omit it from the autoconf for that build. Drop it. Also add more control over what is output from the tool. Add this in here. It should be added to the previous series (splb). S

[PATCH v4 34/46] x86: Fix up use of X86_32BIT_INIT and X86_64 options

2023-02-19 Thread Simon Glass
Drop the invalid SPL_ in a CONFIG_IS_ENABLED() usage. Use the correct X86_64 option in msr.h since SPL may be 32-bit when U-Bout proper is not. Signed-off-by: Simon Glass --- Changes in v4: - Reduce and rename commit arch/x86/cpu/qemu/qemu.c | 2 +- arch/x86/include/asm/msr.h | 2 +- 2 files

[PATCH v4 28/46] fixdep: Add support for VPL

2023-02-19 Thread Simon Glass
Add VPL files into the mix so that we can fix up the dependencies there. Signed-off-by: Simon Glass --- (no changes since v1) scripts/basic/fixdep.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c index 5ced0f6b069..3d40bd7ee25 100644 --- a

[PATCH v4 23/46] x86: Use string functions for all 32-bit builds

2023-02-19 Thread Simon Glass
At present these are not included in SPL. They do add to code size but are a bit faster, so adjust the setting to add them. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/include/asm/string.h | 2 +- arch/x86/lib/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 delet

[PATCH v4 46/46] command: Don't allow commands in SPL

2023-02-19 Thread Simon Glass
At present we compile commands into U-Boot SPL even though they cannot be used. This wastes space. Adjust the condition to avoid this. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add a new patch to disallow commands in SPL include/command.h | 2 +- 1 file changed, 1

[PATCH v2 0/4] patman: Speed up some operations

2023-02-19 Thread Simon Glass
This little series updates patman to run the get_maintainer.py script in parallel for each commit. It also does the same with checkpatch. In some cases this can make a dramatic different to the speed. Changes in v2: - Fix 'uncorrect' typo in subject - Fix missing 'f' on format string Simon Glass

[PATCH v2 1/4] patman: Drop an incorrect comment about git am

2023-02-19 Thread Simon Glass
Patman does not do this anymore, so drop the comment. Signed-off-by: Simon Glass --- Changes in v2: - Fix 'uncorrect' typo in subject tools/patmanu/control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/patmanu/control.py b/tools/patmanu/control.py index b1e23870d

[PATCH v4 37/46] freescale: Drop old pre-DM_ETH code

2023-02-19 Thread Simon Glass
This is used by ls1021atwr_sdcard_ifc_SECURE_BOOT with split config, but is not needed anymore, since Ethernet migration is complete. Drop it. Signed-off-by: Simon Glass --- (no changes since v1) arch/arm/cpu/armv7/ls102xa/fdt.c | 12 1 file changed, 12 deletions(-) diff --git a/

[PATCH v4 39/46] net: Add an SPL config for atheros

2023-02-19 Thread Simon Glass
Add a new SPL_PHY_ATHEROS to avoid a build error on am335x_evm with split config. Signed-off-by: Simon Glass Reviewed-by: Ramon Fried --- (no changes since v1) drivers/net/phy/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/phy/Kconfig b/drivers/net/phy/Kconfig inde

[PATCH v4 45/46] venice: Simplify conditions for network init

2023-02-19 Thread Simon Glass
The conditions in this code do not align when doing an SPL build with split config. Use __maybe_unused to avoid needing to be so explicit. Of course a better solution would be to refactor all of this to avoid using #ifdef. Signed-off-by: Simon Glass --- (no changes since v1) board/gateworks/v

[PATCH v2 2/4] patman: Refactor MakeCcFile() into two functions

2023-02-19 Thread Simon Glass
This function is quite long. Moving the handling of a commit into a separate function. This will make it easier to do the work in parallel. Update function comments while we are here. Signed-off-by: Simon Glass --- Changes in v2: - Fix missing 'f' on format string tools/patmanu/series.py | 80

[PATCH v2 3/4] patman: Run get_maintainer.pl in parallel

2023-02-19 Thread Simon Glass
This script can take ages on some series. Try to limit the time by using threads. If a few stubborn patches remain, show progress so the user has some idea what is going on. Signed-off-by: Simon Glass --- (no changes since v1) tools/patmanu/func_test.py | 2 ++ tools/patmanu/series.py| 33

[PATCH v2 4/4] patman: Check patches in parallel

2023-02-19 Thread Simon Glass
For large series this can take a while. Run checkpatch in parallel to try to reduce the time. The checkpatch information is still reported in sequential order, so a very slow patch at the start can still slow things down. But overall this gives good results. Signed-off-by: Simon Glass --- (no ch

[PATCH v4 41/46] serial: Support ns16550 driver in TPL

2023-02-19 Thread Simon Glass
Add options for this since they are needed by P1020RDB-PC_NAND. Signed-off-by: Simon Glass --- (no changes since v1) drivers/serial/Kconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index bb5083201b3..6f40c051604 100644 --- a/driv

[PATCH v4 27/46] sandbox: Tidy up I2C options

2023-02-19 Thread Simon Glass
At present we enable the sandbox I2C driver for all builds. Add a separate Kconfig option to control this, so that it can be disabled in TPL, where it is not needed. Signed-off-by: Simon Glass --- (no changes since v1) drivers/i2c/Kconfig | 20 1 file changed, 20 insertion

[PATCH v4 14/46] Correct SPL use of DM_RNG

2023-02-19 Thread Simon Glass
This converts 1 usage of this option to the non-SPL form, since there is no SPL_DM_RNG defined in Kconfig Signed-off-by: Simon Glass --- (no changes since v1) boot/vbe_request.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/vbe_request.c b/boot/vbe_request.c index 45

  1   2   >