[PATCH] fastboot: Only call the bootm command if it is enabled

2023-02-19 Thread Samuel Holland
This fixes an error with trying to link against do_bootm() when CONFIG_CMD_BOOTM is disabled. Signed-off-by: Samuel Holland --- drivers/fastboot/fb_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/fastboot/fb_common.c b/drivers/fastboot/fb_common.c index 57b6

[PATCH 3/3] remoteproc: Remove legacy probing method

2023-02-19 Thread Samuel Holland
This removes code that abused the device's platform data, interpreting the driver platform data as if it was the uclass platform data. Signed-off-by: Samuel Holland --- .../driver-model/remoteproc-framework.rst | 29 --- drivers/remoteproc/rproc-uclass.c | 18 +--

[PATCH 2/3] remoteproc: Remove unused mem_type platform data

2023-02-19 Thread Samuel Holland
There is only one possible value for this field, it is unused except for debugging, and the devicetree property is not documented. Signed-off-by: Samuel Holland --- cmd/remoteproc.c | 12 +--- doc/develop/driver-model/remoteproc-framework.rst | 1 - dri

[PATCH 1/3] remoteproc: Move rproc_cfg_arr out of the uclass header

2023-02-19 Thread Samuel Holland
This array is private to the IPU driver, so it should be declared there. Signed-off-by: Samuel Holland --- drivers/remoteproc/ipu_rproc.c | 4 +++- include/remoteproc.h | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/remoteproc/ipu_rproc.c b/drivers/remot

[PATCH 0/3] remoteproc: uclass cleanup

2023-02-19 Thread Samuel Holland
This series cleans up some misplaced and dead code that I ran in to while writing a new remoteproc driver for the Bouffalo Lab BL808. Samuel Holland (3): remoteproc: Move rproc_cfg_arr out of the uclass header remoteproc: Remove unused mem_type platform data remoteproc: Remove legacy probin

[PATCH] riscv: Support CONFIG_REMAKE_ELF

2023-02-19 Thread Samuel Holland
Add flags to tell objcopy what kind of ELF to create. Signed-off-by: Samuel Holland --- arch/riscv/config.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/riscv/config.mk b/arch/riscv/config.mk index a8ed3faf28c..e5f4af22bcb 100644 --- a/arch/riscv/config.mk +++ b/arch/riscv/config

[PATCH 6/6] clk: Add a .get_parent operation

2023-02-19 Thread Samuel Holland
This allows clk_get_parent() to work with non-CCF clock drivers. Signed-off-by: Samuel Holland --- drivers/clk/clk-uclass.c | 18 -- include/clk-uclass.h | 2 ++ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/drivers/clk/clk-uclass.c b/drivers/clk/clk-uclas

[PATCH 5/6] clk: Remove an unneeded check from clk_get_parent_rate()

2023-02-19 Thread Samuel Holland
There is no need to check the parent clock's ops. The following call to clk_get_rate() does that already. Signed-off-by: Samuel Holland --- drivers/clk/clk-uclass.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/clk/clk-uclass.c b/drivers/clk/clk-uclass.c index 9d052e5a814..53c

[PATCH 2/6] clk: Fix error handling in clk_get_rate()

2023-02-19 Thread Samuel Holland
log_ret() cannot work with unsigned values, and the assignment to 'ret' incorrectly truncates the rate from long to int. Fixes: 5c5992cb90cf ("clk: Add debugging for return values") Signed-off-by: Samuel Holland --- drivers/clk/clk-uclass.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletio

[PATCH 4/6] clk: Fix rate caching in clk_get_parent_rate()

2023-02-19 Thread Samuel Holland
clk_get_rate() can return an error value. Recompute the rate if the cached value is an error value. Fixes: 4aa78300a025 ("dm: clk: Define clk_get_parent_rate() for clk operations") Signed-off-by: Samuel Holland --- drivers/clk/clk-uclass.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[PATCH 3/6] clk: Fix error handling in clk_get_parent()

2023-02-19 Thread Samuel Holland
Do not return both NULL and error pointers. The function is only documented as returning error pointers. Fixes: 8a1661f20e6c ("drivers: clk: Handle gracefully NULL pointers") Signed-off-by: Samuel Holland --- drivers/clk/clk-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -

[PATCH 0/6] clk: uclass fixes and improvements

2023-02-19 Thread Samuel Holland
This series fixes a few issues found while writing a clk driver for a new SoC (Bouffalo Lab BL808), and adds the new functionality needed to implement a hierarchy of clocks in a single device (without the CCF). The .get_parent hook will be useful on other platforms as well; I plan to use it to impl

[PATCH 1/6] clk: Handle error pointers in clk_valid()

2023-02-19 Thread Samuel Holland
Some clk uclass functions, such as devm_clk_get() and clk_get_parent(), return error pointers. clk_valid() should not consider these pointers to be valid. Fixes: 8a1661f20e6c ("drivers: clk: Handle gracefully NULL pointers") Signed-off-by: Samuel Holland --- include/clk.h | 2 +- 1 file changed

[PATCH v4 08/10] phy: socionext: Add UniPhier USB3 PHY driver

2023-02-19 Thread Kunihiko Hayashi
Add USB3 PHY driver support to control clocks and resets needed to enable PHY. The phy_ops->init() and exit() control PHY clocks and resets only, and clocks and resets for the controller and the parent logic are enabled in advance. Signed-off-by: Kunihiko Hayashi --- drivers/phy/socionext/Kconfi

[PATCH v4 09/10] usb: dwc3-uniphier: Use dwc3-generic instead of xhci-dwc3

2023-02-19 Thread Kunihiko Hayashi
dwc3-uniphier depends on xhci-dwc3 framework, however, it is preferable to use dwc3-generic. This driver calls the exported dwc3-generic functions and redefine the SoC-dependent operations to fit dwc3-generic. Signed-off-by: Kunihiko Hayashi Reviewed-by: Marek Vasut --- drivers/usb/dwc3/Kconfi

[PATCH v4 10/10] uniphier_defconfig: Disable USB_XHCI_DWC3

2023-02-19 Thread Kunihiko Hayashi
Replacing with dwc3-generic, no need USB_XHCI_DWC3 anymore. Signed-off-by: Kunihiko Hayashi Reviewed-by: Marek Vasut --- configs/uniphier_v7_defconfig | 1 - configs/uniphier_v8_defconfig | 1 - 2 files changed, 2 deletions(-) diff --git a/configs/uniphier_v7_defconfig b/configs/uniphier_v7_de

[PATCH v4 05/10] usb: dwc3-generic: Add the size of regs property to glue structure

2023-02-19 Thread Kunihiko Hayashi
Add the size of regs property to the glue structure to correctly specify the register region to map. Signed-off-by: Kunihiko Hayashi Reviewed-by: Marek Vasut --- drivers/usb/dwc3/dwc3-generic.c | 2 +- drivers/usb/dwc3/dwc3-generic.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff

[PATCH v4 03/10] usb: dwc3-generic: Add clock initialization in child DT node

2023-02-19 Thread Kunihiko Hayashi
Same as the reset cotnrol, should add a clock initialization in child DT node, if the glue node doesn't have any clocks. Signed-off-by: Kunihiko Hayashi Reviewed-by: Marek Vasut --- drivers/usb/dwc3/dwc3-generic.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/dwc3/dwc3-g

[PATCH v4 02/10] usb: dwc3-generic: Allow different controller DT node pattern

2023-02-19 Thread Kunihiko Hayashi
The most of devicetree has the following USB node structure. The controller node is placed as a child node of the glue node. Current dwc3-generic driver works on this premise. glue { /* glue node */ usb { /* controller node */ }; }; However, UniPhier or

[PATCH v4 07/10] clk: uniphier: Add missing USB SS-PHY clocks

2023-02-19 Thread Kunihiko Hayashi
The USB SS-PHY needs its own clock, however, some clocks don't have clock gates. Define missing clock entries for the PHY as reference clock. Signed-off-by: Kunihiko Hayashi --- drivers/clk/uniphier/clk-uniphier-sys.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/clk/uniphier/

[PATCH v4 06/10] reset: uniphier: Add USB glue reset support

2023-02-19 Thread Kunihiko Hayashi
Add reset control support in USB glue logic. This needs to control the external clocks and resets for the logic before accessing the glue logic. The USB dm tree when using dwc3-generic is the following: USB glue +-- controller (need controller-reset) +-- controller-reset (need

[PATCH v4 01/10] usb: dwc3: Look up reference clock DT phandle in both controller DT nodes

2023-02-19 Thread Kunihiko Hayashi
From: Marek Vasut There are currently four disparate placement possibilities of DWC3 reference clock phandle in SoC DTs: - in top level glue node, with generic subnode without clock (ZynqMP) - in top level generic node, with no subnode (i.MX8MQ) - in generic subnode, with other clock in top level

[PATCH v4 04/10] usb: dwc3-generic: Export glue structures and functions

2023-02-19 Thread Kunihiko Hayashi
In order to allow external SoC-dependent glue drivers to use dwc3-generic functions, push the glue structures and export the functions to a header file. The exported structures and functions are: - struct dwc3_glue_data - struct dwc3_glue_ops - dwc3_glue_bind() - dwc3_glue_probe() - dwc3_glue_rem

[PATCH v4 00/10] usb: dwc3: Refactor dwc3-generic and apply to dwc3-uniphier

2023-02-19 Thread Kunihiko Hayashi
This series achieves refactoring of dwc3-generic. First, dwc3-generic allows DT controller nodes to be children of glue nodes, but outside of glue nodes. To achieve this goal, define a glue-specific function to get controller node, look up more reference clocks in the controller node, and initial

[PATCH] spi: spi-mem: s/dummy/data buswidth check in dtr_supports_op()

2023-02-19 Thread Dhruva Gole
This should have been op->data.buswidth instead as we check for octal bus width for the data related ops Also add explanation for why there is checks for 8D even data bytes Cc: Pratyush Yadav Signed-off-by: Dhruva Gole --- Address Pratyush Yadav's comments from here: https://lore.kernel.org/u-b

Re: [PATCH v3 08/10] phy: socionext: Add UniPhier USB3 PHY driver

2023-02-19 Thread Kunihiko Hayashi
Hi Marek, On 2023/02/18 4:58, Marek Vasut wrote: On 2/16/23 17:14, Kunihiko Hayashi wrote: Hi Marek, Hello Hayashi-san, Sorry for late reply. On 2023/02/14 6:06, Marek Vasut wrote: On 2/13/23 04:08, Kunihiko Hayashi wrote: Hi Marek, Hello Hayashi-san, [...] I think so, however, wh

[PATCH 4/4] buildman: Add a flag for reproducible builds

2023-02-19 Thread Simon Glass
This is quite a useful thing to use when building since it avoids small size changes between commits. Add a -r flag for it. Signed-off-by: Simon Glass --- doc/build/reproducible.rst | 2 ++ tools/buildman/builder.py | 4 +++- tools/buildman/builderthread.py | 2 ++ tools/buildman/bui

[PATCH 3/4] buildman: Support disabling LTO

2023-02-19 Thread Simon Glass
This cuts down build performance considerably and is not always needed, when checking for build errors, etc. Add a flag to disable it. Signed-off-by: Simon Glass --- tools/buildman/builder.py | 5 - tools/buildman/builderthread.py | 2 ++ tools/buildman/buildman.rst | 14 ++

[PATCH 2/4] buildman: Write out the build command used

2023-02-19 Thread Simon Glass
It is sometimes useful to see the exact 'make' command used by buildman for a commit. Add an output file for this. Signed-off-by: Simon Glass --- tools/buildman/builderthread.py | 13 + tools/buildman/buildman.rst | 8 tools/buildman/func_test.py | 13 +

[PATCH 1/4] buildman: Add a note about the out-env file

2023-02-19 Thread Simon Glass
This file holds the environment used when doing a build. Add a note about it. Signed-off-by: Simon Glass --- tools/buildman/buildman.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/buildman/buildman.rst b/tools/buildman/buildman.rst index 2a83cb7e4f8..9a2d913c785 100644 --- a/to

[PATCH 3/3] arm: rpi: Switch to a text environment

2023-02-19 Thread Simon Glass
Use the new environment format so we can drop most of the config.h file. Signed-off-by: Simon Glass --- board/raspberrypi/rpi/rpi.env | 77 ++ include/configs/rpi.h | 100 -- 2 files changed, 77 insertions(+), 100 deletions(-) cr

[PATCH 2/3] arm: rpi: Switch to standard boot

2023-02-19 Thread Simon Glass
Drop use of the distro scripts and use standard boot instead. We don't need to specify the mmc devices individually, since they are used in order from 0 to 2, and standard boot uses that order anyway. Signed-off-by: Simon Glass --- configs/rpi_0_w_defconfig | 6 +++--- configs/rpi_2_defc

[PATCH 1/3] bootstd: Add support for booti and bootz

2023-02-19 Thread Simon Glass
Enable these options so that we can boot ARM images in these formats. Signed-off-by: Simon Glass --- boot/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boot/Kconfig b/boot/Kconfig index 5f491625c82..da640a37f4f 100644 --- a/boot/Kconfig +++ b/boot/Kconfig @@ -419,6 +419,8 @@ con

[PATCH 0/3] rpi: Convert to standard boot

2023-02-19 Thread Simon Glass
This series moves Raspberry Pi boards over to use standard boot. It also adds a few more default boot options to standard boot, which are commonly used on ARM boards. These are needed for some distros to boot. It also moves rpi over to use a text-based environment. Unfortunately it is not possibl

[PATCH v4 18/46] event: Add Kconfig options for SPL

2023-02-19 Thread Simon Glass
Add options to enable events in SPL. This is mostly so the code can be excluded from SPL builds. Signed-off-by: Simon Glass --- Changes in v4: - Modify to get rid of def_bool - Adjust Kconfig ordering common/Kconfig | 20 1 file changed, 20 insertions(+) diff --git a/comm

[PATCH v4 19/46] bootstd: Correct 'VPL' typo

2023-02-19 Thread Simon Glass
Correct a 'VPL' typo in the Kconfig. Signed-off-by: Simon Glass --- Changes in v4: - Just fix the typo Changes in v3: - Correct 'VPL' typo - Use a consistent format for the comment boot/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/Kconfig b/boot/Kconfig ind

[PATCH v4 44/46] power: wandboard: Add a missing CONFIG

2023-02-19 Thread Simon Glass
We should enable pmic in SPL since it is used. Signed-off-by: Simon Glass --- Changes in v4: - Fix 'wanderboard' typo - Reduce and rename commit configs/wandboard_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/wandboard_defconfig b/configs/wandboard_defconfig index a6baf

[PATCH v4 22/46] lib: Add VPL options for SHA1 and SHA256

2023-02-19 Thread Simon Glass
Add these options so these algorithms can be used in VPL. Signed-off-by: Simon Glass --- (no changes since v1) lib/Kconfig | 20 1 file changed, 20 insertions(+) diff --git a/lib/Kconfig b/lib/Kconfig index 1c93f523b3a..08318843231 100644 --- a/lib/Kconfig +++ b/lib/Kconf

[PATCH v4 21/46] env: Allow VPL environment to be nowhere

2023-02-19 Thread Simon Glass
Add an option to put the VPL environment nowhere (not in storage). Signed-off-by: Simon Glass --- (no changes since v1) env/Kconfig | 10 ++ 1 file changed, 10 insertions(+) diff --git a/env/Kconfig b/env/Kconfig index 6e24eee55f2..2bbe4c466a6 100644 --- a/env/Kconfig +++ b/env/Kconfi

[PATCH v4 08/46] Correct SPL uses of FSL_ISBC_KEY_EXT

2023-02-19 Thread Simon Glass
This converts 9 usages of this option to the non-SPL form, since there is no SPL_FSL_ISBC_KEY_EXT defined in Kconfig Signed-off-by: Simon Glass --- (no changes since v1) board/freescale/common/fsl_validate.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a

[PATCH v4 20/46] env: Avoid checking ENV_IS_IN when env disabled

2023-02-19 Thread Simon Glass
This check is not needed when the environment is not enabled, e.g. in SPL. Add a condition to handle this. Signed-off-by: Simon Glass --- (no changes since v1) cmd/nvedit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/nvedit.c b/cmd/nvedit.c index 7cbc3fd573a..277293679df 100644 -

[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

[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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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

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 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

[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 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 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

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 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

[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 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 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 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 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 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 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 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 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/

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] 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

  1   2   >