All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 000/171] Kconfig: More cleanup of CONFIG options
@ 2023-01-30 14:40 Simon Glass
  2023-01-30 14:40 ` [PATCH 001/171] moveconfig: Update to detect / correct missing SPL Kconfigs Simon Glass
                   ` (100 more replies)
  0 siblings, 101 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:40 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, AKASHI Takahiro, Aleksandar Gerasimovski,
	Anastasiia Lukianenko, Andreas Kemnade, Andrew Scull,
	Angelo Dureghello, Anup Patel, Ashok Reddy Soma,
	Aswath Govindraju, Bharat Gooty, Bin Meng, Chia-Wei Wang,
	Claudiu Beznea, Daniel Golle, Heiko Schocher, Heiko Thiery,
	Heinrich Schuchardt, Huang Jianan, Ilias Apalodimas, Jason Liu,
	Jeffy Chen, Jens Wiklander, Judith Mendez, Kautuk Consul,
	Keerthy, Leo Yu-Chi Liang, Lukasz Majewski, Manoj Sai,
	Marek Vasut, Masahisa Kojima, Matthias Brugger,
	Meenakshi Aggarwal, Neil Armstrong, Oleksandr Andrushchenko,
	Oleksandr Suvorov, Ovidiu Panait, Patrice Chotard, Paul Walmsley,
	Philipp Tomsich, Pierre-Clément Tosi, Rayagonda Kokatanur,
	Rick Chen, Ryan Chen, Sergiu Moga, Stefano Babic,
	Stephan Gerhold, Sughosh Ganu, T Karthik Reddy, Wasim Khan,
	Wolfgang Denk

Quite a few CONFIG options without an SPL equivalent are used as if they
have one. For example, we see CONFIG_IS_ENABLED(IOMMU) when there is no
SPL_IOMMU Kconfig option.

This series adds new features to moveconfig to detect and remove these
problems. It includes additions to the Kconfig for options which are
needed as well as dropping unwanted us of CONFIG_IS_ENABLED, etc.

This follows on from the previous series[1]

It is available at u-boot-dm/splb-working

[1] https://patchwork.ozlabs.org/project/uboot/list/?series=339004


Simon Glass (171):
  moveconfig: Update to detect / correct missing SPL Kconfigs
  x86: Correct Chrromebook typo
  boot: Add a Kconfig for SPL_FIT_CIPHER
  boot: Add a Kconfig for SPL_BOOTSTD_FULL
  boot: Add Kconfigs for BOOTMETH_VBE_REQUEST
  boot: Add a Kconfig for SPL_BOOTDEV_SPI_FLASH
  boot: Add a Kconfig for SPL_BOOTDEV_ETH
  dm: Add a Kconfig for SPL_DEVRES
  dm: Add a Kconfig for SPL_DM_HWSPINLOCK
  boot: Add a Kconfig for SPL_OF_LIVE
  cmd: Add a Kconfig for SPL_CRC32_VERIFY
  console: Add a Kconfig for SPL_CONSOLE_MUX et al
  button: Add a Kconfig for SPL_BUTTON
  lib: Add a Kconfig for SPL_ERRNO_STR
  iommu: Add a Kconfig for SPL_IOMMU
  iommu: Add a Kconfig for SPL_PINCTRL_ARMADA_38X
  virtio: Add a Kconfig for SPL_VIRTIO
  lib: Add a Kconfig for SPL_BZIP2
  lib: Add a Kconfig for SPL_GENERATE_ACPI_TABLE
  efi: Add a Kconfig for SPL_EFI_LOADER et all
  acpi: Add a Kconfig for SPL_ACPIGEN
  rockchip: Add a Kconfig for SPL_RESET_ROCKCHIP
  mediatek: Add a Kconfig for SPL_RESET_MEDIATEK
  Correct SPL use of A003399_NOR_WORKAROUND
  Correct SPL use of AHCI
  Correct SPL uses of ALLEYCAT_5
  Correct SPL uses of ARCH_MVEBU
  Correct SPL use of ARCH_VERSAL
  Correct SPL use of ARCH_ZYNQ
  Correct SPL use of ARM64
  Correct SPL uses of ARMADA_3700
  Correct SPL uses of ARMADA_8K
  Correct SPL use of ATMEL_PIO4
  Correct SPL use of BNXT_ETH
  Correct SPL use of BOOTSTAGE_FDT
  Correct SPL uses of BOOTSTAGE_REPORT
  Correct SPL use of CMD_BCB
  Correct SPL uses of CMD_BOOTEFI_BOOTMGR
  Correct SPL use of CMD_BOOTI
  Correct SPL uses of CMD_BOOTM_PRE_LOAD
  Correct SPL use of CMD_BOOTZ
  Correct SPL uses of CMD_CLK
  Correct SPL uses of CMD_DHCP
  Correct SPL uses of CMD_EFICONFIG
  Correct SPL use of CMD_ERASEENV
  Correct SPL uses of CMD_FDT
  Correct SPL use of CMD_FRU
  Correct SPL use of CMD_HASH
  Correct SPL use of CMD_MBR
  Correct SPL uses of CMD_MMC
  Correct SPL use of CMD_NET
  Correct SPL use of CMD_NVEDIT_EFI
  Correct SPL uses of CMD_NVME
  Correct SPL use of CMD_PSTORE
  Correct SPL uses of CMD_PXE
  Correct SPL uses of CMD_SCSI
  Correct SPL uses of CMD_SF
  Correct SPL use of CMD_SHA1SUM
  Correct SPL use of CMD_STBOARD
  Correct SPL use of CMD_STM32PROG
  Correct SPL uses of CMD_TFTPPUT
  Correct SPL uses of CMD_USB
  Correct SPL use of CMD_VIRTIO
  Correct SPL uses of CPU_MICROBLAZE
  Correct SPL use of DEBUG_UART_ZYNQ
  Correct SPL uses of DFU_VIRT
  Correct SPL uses of DISPLAY_AER_BRIEF
  Correct SPL uses of DISPLAY_AER_FULL
  Correct SPL use of DISPLAY_CPUINFO
  Correct SPL use of DM_RNG
  Correct SPL uses of DTB_RESELECT
  Correct SPL uses of DWC_ETH_QOS
  Correct SPL use of EFI_APP
  Correct SPL use of EFI_DEVICE_PATH_UTIL
  Correct SPL uses of EFI_HAVE_CAPSULE_SUPPORT
  Correct SPL use of EFI_LOADER_HII
  Correct SPL use of EFI_MM_COMM_TEE
  Correct SPL use of EFI_SECURE_BOOT
  Correct SPL use of EFI_TCG2_PROTOCOL
  Correct SPL use of EFI_UNICODE_COLLATION_PROTOCOL2
  Correct SPL uses of ENV_IS_IN_UBI
  Correct SPL uses of ENV_VARS_UBOOT_RUNTIME_CONFIG
  Correct SPL use of ENV_WRITEABLE_LIST
  Correct SPL use of EXYNOS7420
  Correct SPL uses of FASTBOOT
  Correct SPL uses of FASTBOOT_FLASH
  Correct SPL uses of FASTBOOT_FLASH_MMC
  Correct SPL uses of FASTBOOT_FLASH_NAND
  Correct SPL use of FASTBOOT_MMC_USER_SUPPORT
  Correct SPL use of FDT_SIMPLEFB
  Correct SPL uses of FEC_MXC
  Correct SPL use of FSL_CAAM
  Correct SPL uses of FSL_ISBC_KEY_EXT
  Correct SPL use of FSL_MC_ENET
  Correct SPL use of FSP_VERSION2
  Correct SPL use of FS_EROFS
  Correct SPL use of GENERATE_SMBIOS_TABLE
  Correct SPL uses of GMAC_ROCKCHIP
  Correct SPL use of HUSH_PARSER
  Correct SPL uses of HW_WATCHDOG
  Correct SPL uses of I8259_PIC
  Correct SPL uses of IMX8M
  Correct SPL use of IMX8MN_BEACON_2GB_LPDDR
  Correct SPL uses of IMX_MODULE_FUSE
  Correct SPL uses of IMX_RDC
  Correct SPL uses of LMB
  Correct SPL uses of MICROBLAZE
  Correct SPL use of MIPS_CM
  Correct SPL use of MMC_QUIRKS
  Correct SPL uses of MTD
  Correct SPL uses of MULTIPLEXER
  Correct SPL uses of NEEDS_MANUAL_RELOC
  Correct SPL use of NETDEVICES
  Correct SPL uses of NXP_FSPI
  Correct SPL use of OCTEON_SERIAL_BOOTCMD
  Correct SPL use of OCTEON_SERIAL_PCIE_CONSOLE
  Correct SPL uses of OF_BOARD
  Correct SPL use of OF_EMBED
  Correct SPL use of PANEL
  Correct SPL use of PARTITION_TYPE_GUID
  Correct SPL use of PCI_PNP
  Correct SPL uses of PG_WCOM_UBOOT_BOOTPACKAGE
  Correct SPL uses of PG_WCOM_UBOOT_UPDATE
  Correct SPL use of PG_WCOM_UBOOT_UPDATE_SUPPORTED
  Correct SPL use of PHY_CADENCE_SIERRA
  Correct SPL use of PHY_CADENCE_TORRENT
  Correct SPL uses of PHY_FIXED
  Correct SPL uses of PMIC_STPMIC1
  Correct SPL use of QFW_PIO
  Correct SPL use of REGEX
  Correct SPL use of RENESAS_SDHI
  Correct SPL use of RESV_RAM
  Correct SPL uses of ROCKCHIP_EFUSE
  Correct SPL uses of ROCKCHIP_OTP
  Correct SPL use of SANDBOX
  Correct SPL uses of SANDBOX_CLK_CCF
  Correct SPL uses of SAVE_PREV_BL_FDT_ADDR
  Correct SPL uses of SAVE_PREV_BL_INITRAMFS_START_ADDR
  Correct SPL uses of SEC_FIRMWARE_ARMV8_PSCI
  Correct SPL uses of SIFIVE_OTP
  Correct SPL use of SL28CPLD
  Correct SPL use of SL28_SPL_LOADS_OPTEE_BL32
  Correct SPL use of SPI_FLASH_BAR
  Correct SPL uses of SPI_FLASH_MACRONIX
  Correct SPL use of SPLASH_SOURCE
  Correct SPL use of STM32MP15X_STM32IMAGE
  Correct SPL use of SUPPORT_EMMC_RPMB
  Correct SPL use of SYS_FSL_ERRATUM_A010539
  Correct SPL uses of SYS_LONGHELP
  Correct SPL use of SYS_MEM_RSVD_FOR_MMU
  Correct SPL uses of TARGET_LX2160ARDB
  Correct SPL use of TARGET_MX6UL_9X9_EVK
  Correct SPL use of TARGET_PG_WCOM_EXPU1
  Correct SPL use of TARGET_PG_WCOM_SELI8
  Correct SPL use of TEE
  Correct SPL uses of TEN64_CONTROLLER
  Correct SPL use of TPM_RNG
  Correct SPL use of UDP_FUNCTION_FASTBOOT
  Correct SPL use of USB_DWC3_MESON_G12A
  Correct SPL uses of USB_DWC3_MESON_GXL
  Correct SPL use of USB_FUNCTION_FASTBOOT
  Correct SPL uses of USB_GADGET_DWC2_OTG
  Correct SPL uses of USB_KEYBOARD
  Correct SPL uses of USB_MUSB_HOST
  Correct SPL uses of VIDEO
  Correct SPL use of VIDEO_ANSI
  Correct SPL use of VIDEO_BPP16
  Correct SPL use of VIDEO_BPP32
  Correct SPL use of WATCHDOG_AUTOSTART
  Correct SPL uses of XEN_SERIAL
  Correct SPL uses of ZYNQMP_FIRMWARE

 arch/arc/lib/bootm.c                          |   2 +-
 arch/arm/cpu/armv8/cpu-dt.c                   |   2 +-
 arch/arm/cpu/armv8/fsl-layerscape/cpu.c       |   2 +-
 arch/arm/include/asm/mach-imx/module_fuse.h   |   2 +-
 arch/arm/lib/bootm-fdt.c                      |   2 +-
 arch/arm/lib/bootm.c                          |   2 +-
 arch/arm/lib/save_prev_bl_data.c              |   4 +-
 arch/arm/mach-exynos/mmu-arm64.c              |   2 +-
 arch/arm/mach-imx/imx_bootaux.c               |   8 +-
 arch/arm/mach-imx/mx7/soc.c                   |   4 +-
 arch/arm/mach-meson/board-axg.c               |   4 +-
 arch/arm/mach-meson/board-g12a.c              |   4 +-
 arch/arm/mach-meson/board-gx.c                |   4 +-
 arch/arm/mach-mvebu/arm64-common.c            |  12 +-
 arch/arm/mach-rockchip/board.c                |   2 +-
 arch/arm/mach-rockchip/cpu-info.c             |   2 +-
 arch/arm/mach-rockchip/misc.c                 |   8 +-
 .../cmd_stm32prog/cmd_stm32prog.c             |   2 +-
 .../mach-stm32mp/cmd_stm32prog/stm32prog.c    |   6 +-
 arch/arm/mach-stm32mp/fdt.c                   |   2 +-
 arch/m68k/lib/bootm.c                         |   2 +-
 arch/microblaze/cpu/cpuinfo.c                 |   2 +-
 arch/microblaze/include/asm/cpuinfo.h         |   2 +-
 arch/microblaze/lib/bootm.c                   |   2 +-
 arch/mips/include/asm/cm.h                    |   2 +-
 arch/mips/lib/bootm.c                         |   4 +-
 arch/mips/mach-octeon/cpu.c                   |   4 +-
 arch/powerpc/lib/bootm.c                      |   2 +-
 arch/riscv/lib/bootm.c                        |   2 +-
 arch/sandbox/lib/bootm.c                      |   2 +-
 arch/x86/cpu/coreboot/coreboot.c              |   2 +-
 arch/x86/cpu/efi/payload.c                    |   2 +-
 arch/x86/cpu/qemu/qemu.c                      |   2 +-
 arch/x86/lib/bootm.c                          |   4 +-
 arch/x86/lib/fsp/fsp_dram.c                   |   4 +-
 arch/x86/lib/interrupts.c                     |   8 +-
 .../imx8mp_rsb3720a1/imx8mp_rsb3720a1.c       |   2 +-
 board/broadcom/bcmns3/ns3.c                   |   2 +-
 board/compulab/cm_fx6/cm_fx6.c                |   2 +-
 .../imx8mm-cl-iot-gate/imx8mm-cl-iot-gate.c   |   2 +-
 board/emulation/common/qemu_dfu.c             |   2 +-
 board/emulation/qemu-arm/qemu-arm.c           |   2 +-
 board/engicam/imx8mp/icore_mx8mp.c            |   4 +-
 board/engicam/stm32mp1/stm32mp1.c             |   2 +-
 board/freescale/common/fsl_validate.c         |  18 +-
 board/freescale/imx8mp_evk/imx8mp_evk.c       |   4 +-
 board/freescale/imx93_evk/imx93_evk.c         |   4 +-
 board/freescale/lx2160a/lx2160a.c             |   6 +-
 board/keymile/common/common.c                 |  10 +-
 .../keymile/pg-wcom-ls102xa/pg-wcom-ls102xa.c |   4 +-
 board/kontron/pitx_imx8m/pitx_imx8m.c         |   2 +-
 board/kontron/sl-mx8mm/sl-mx8mm.c             |   2 +-
 board/kontron/sl28/sl28.c                     |   8 +-
 board/rockchip/evb_rk3399/evb-rk3399.c        |   2 +-
 board/sandbox/sandbox.c                       |   2 +-
 board/sifive/unleashed/unleashed.c            |   4 +-
 board/socionext/developerbox/developerbox.c   |   2 +-
 board/st/common/stm32mp_dfu.c                 |   4 +-
 board/st/common/stm32mp_mtdparts.c            |   2 +-
 board/st/stm32mp1/stm32mp1.c                  |  10 +-
 board/ti/am57xx/board.c                       |   2 +-
 board/ti/dra7xx/evm.c                         |   2 +-
 board/traverse/ten64/ten64.c                  |  10 +-
 .../variscite/imx8mn_var_som/imx8mn_var_som.c |   2 +-
 board/xilinx/common/board.c                   |  14 +-
 board/xilinx/versal-net/board.c               |   4 +-
 board/xilinx/versal/board.c                   |   2 +-
 board/xilinx/zynq/board.c                     |   2 +-
 board/xilinx/zynqmp/zynqmp.c                  |   2 +-
 boot/Kconfig                                  |  21 +
 boot/Makefile                                 |   5 +-
 boot/bootm.c                                  |   8 +-
 boot/image-board.c                            |   2 +-
 boot/image-fdt.c                              |   4 +-
 boot/vbe_request.c                            |   2 +-
 cmd/Kconfig                                   |   4 +
 cmd/bootcount.c                               |   4 +-
 cmd/bootmenu.c                                |   4 +-
 cmd/cls.c                                     |   2 +-
 cmd/cpu.c                                     |   2 +-
 cmd/dm.c                                      |   2 +-
 cmd/eficonfig.c                               |   2 +-
 cmd/fastboot.c                                |   4 +-
 cmd/net.c                                     |   6 +-
 cmd/nvedit.c                                  |   2 +-
 cmd/ti/pd.c                                   |   2 +-
 common/Kconfig                                |   8 +
 common/board_r.c                              |   8 +-
 common/cli.c                                  |   2 +-
 common/event.c                                |   2 +-
 common/fdt_simplefb.c                         |   2 +-
 common/hash.c                                 |   4 +-
 common/splash.c                               |   2 +-
 disk/part_dos.c                               |   2 +-
 disk/part_efi.c                               |   2 +-
 drivers/Makefile                              |   2 +-
 drivers/button/Kconfig                        |   4 +
 drivers/clk/clk-divider.c                     |   4 +-
 drivers/clk/clk-gate.c                        |   6 +-
 drivers/clk/clk-mux.c                         |   8 +-
 drivers/clk/clk_k210.c                        |   6 +-
 drivers/clk/imx/clk-imx8.c                    |   2 +-
 drivers/clk/imx/clk-imx8.h                    |   2 +-
 drivers/clk/imx/clk-imx8mm.c                  |   4 +-
 drivers/clk/imx/clk-imx8qm.c                  |   2 +-
 drivers/clk/imx/clk-imx8qxp.c                 |   2 +-
 drivers/clk/rockchip/clk_rk3368.c             |   4 +-
 drivers/core/Kconfig                          |   7 +
 drivers/crypto/aspeed/aspeed_hace.c           |   2 +-
 drivers/crypto/hash/hash_sw.c                 |   2 +-
 drivers/dfu/Makefile                          |   2 +-
 drivers/fastboot/fb_command.c                 |   8 +-
 drivers/fastboot/fb_common.c                  |   2 +-
 drivers/fastboot/fb_getvar.c                  |  10 +-
 drivers/fastboot/fb_mmc.c                     |   2 +-
 drivers/hwspinlock/Kconfig                    |   4 +
 drivers/i2c/mxc_i2c.c                         |   4 +-
 drivers/iommu/Kconfig                         |   4 +
 drivers/misc/fsl_ifc.c                        |   2 +-
 drivers/mmc/Makefile                          |   2 +-
 drivers/mmc/mmc.c                             |   2 +-
 drivers/mmc/mv_sdhci.c                        |   4 +-
 drivers/mmc/tmio-common.h                     |   2 +-
 drivers/mtd/spi/Kconfig                       |   4 +
 drivers/mtd/spi/spi-nor-core.c                |   6 +-
 drivers/mux/Makefile                          |   2 +-
 drivers/net/fec_mxc.c                         |   2 +-
 drivers/net/mvneta.c                          |   4 +-
 drivers/pci/pci-uclass.c                      |   2 +-
 drivers/phy/cadence/Makefile                  |   4 +-
 drivers/phy/phy-ab8500-usb.c                  |   2 +-
 drivers/pinctrl/broadcom/pinctrl-bcm283x.c    |   2 +-
 drivers/pinctrl/mvebu/Kconfig                 |   4 +
 drivers/pinctrl/pinctrl-at91-pio4.c           |   2 +-
 drivers/pinctrl/pinctrl-single.c              |   2 +-
 drivers/reset/Kconfig                         |   8 +
 drivers/serial/serial_bcm283x_mu.c            |   2 +-
 drivers/serial/serial_bcm283x_pl011.c         |   2 +-
 drivers/serial/serial_zynq.c                  |   2 +-
 drivers/spi/cadence_ospi_versal.c             |   2 +-
 drivers/spi/cadence_qspi.c                    |   4 +-
 drivers/sysreset/sysreset_mpc83xx.c           |   8 +-
 drivers/tpm/tpm-uclass.c                      |   2 +-
 drivers/usb/host/ehci-mx6.c                   |   4 +-
 drivers/usb/musb-new/omap2430.c               |   2 +-
 drivers/video/imx/mxc_ipuv3_fb.c              |   2 +-
 drivers/video/video-uclass.c                  |   4 +-
 drivers/virtio/Kconfig                        |   4 +
 drivers/xen/events.c                          |   8 +-
 dts/Kconfig                                   |   4 +
 fs/erofs/Makefile                             |   2 +-
 include/asm-generic/global_data.h             |   2 +-
 include/bcb.h                                 |   2 +-
 include/configs/am335x_evm.h                  |   6 +-
 include/configs/am62ax_evm.h                  |   4 +-
 include/configs/apple.h                       |   4 +-
 include/configs/imx8mm-cl-iot-gate.h          |   8 +-
 include/configs/imx8mn_beacon.h               |   2 +-
 include/configs/imx8mp_rsb3720.h              |   6 +-
 include/configs/iot2050.h                     |   2 +-
 include/configs/j721e_evm.h                   |   4 +-
 include/configs/mx6ul_14x14_evk.h             |   2 +-
 include/configs/qemu-arm.h                    |  10 +-
 include/configs/rockchip-common.h             |  14 +-
 include/configs/rpi.h                         |   8 +-
 include/configs/tegra-common-post.h           |   2 +-
 include/dfu.h                                 |   2 +-
 include/env_internal.h                        |   2 +-
 include/environment/distro/sf.h               |   2 +-
 include/linux/clk-provider.h                  |   6 +-
 include/mux.h                                 |   2 +-
 include/tee.h                                 |   2 +-
 lib/Kconfig                                   |  14 +
 lib/efi_loader/Kconfig                        |   8 +
 lib/efi_loader/efi_image_loader.c             |   2 +-
 lib/efi_loader/efi_root_node.c                |   6 +-
 lib/hashtable.c                               |   2 +-
 lib/vsprintf.c                                |   2 +-
 net/Kconfig                                   |   4 +
 net/bootp.c                                   |   2 +-
 net/fastboot.c                                |   2 +-
 net/mdio-uclass.c                             |   2 +-
 tools/moveconfig.py                           | 599 +++++++++++++-----
 183 files changed, 862 insertions(+), 446 deletions(-)

-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply	[flat|nested] 134+ messages in thread

* [PATCH 001/171] moveconfig: Update to detect / correct missing SPL Kconfigs
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
@ 2023-01-30 14:40 ` Simon Glass
  2023-01-30 14:40 ` [PATCH 002/171] x86: Correct Chrromebook typo Simon Glass
                   ` (99 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:40 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Alper Nebi Yasak

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_ENABLED() and CONFIG_$(SPL)_FOO to CONFIG_FOO, creating commits
automatically if requested.

These features are only useful for code clean-up, not for normal
development.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 tools/moveconfig.py | 599 +++++++++++++++++++++++++++++++++-----------
 1 file changed, 456 insertions(+), 143 deletions(-)

diff --git a/tools/moveconfig.py b/tools/moveconfig.py
index 219addd556c..5eef9b25862 100755
--- a/tools/moveconfig.py
+++ b/tools/moveconfig.py
@@ -20,6 +20,7 @@ import doctest
 import filecmp
 import fnmatch
 import glob
+import io
 import multiprocessing
 import os
 import queue
@@ -118,6 +119,16 @@ def check_clean_directory():
         if os.path.exists(fname):
             sys.exit("source tree is not clean, please run 'make mrproper'")
 
+def write_commit(msg):
+    """Create a new commit with all modified files
+
+    Args:
+        msg (str): Commit message
+    """
+    subprocess.call(['git', 'add', '-u'])
+    rc = subprocess.call(['git', 'commit', '-s', '-m', msg])
+    return rc == 0
+
 def get_make_cmd():
     """Get the command name of GNU Make.
 
@@ -1606,30 +1617,59 @@ def prefix_config(cfg):
     return op + cfg
 
 
-RE_MK_CONFIGS = re.compile('CONFIG_(\$\(SPL_(?:TPL_)?\))?([A-Z0-9_]*)')
-RE_IFDEF = re.compile('(ifdef|ifndef)')
-RE_C_CONFIGS = re.compile('CONFIG_([A-Z0-9_]*)')
-RE_CONFIG_IS = re.compile('CONFIG_IS_ENABLED\(([A-Z0-9_]*)\)')
+RE_MK_CONFIGS = re.compile(r'CONFIG_(\$\(SPL_(?:TPL_)?\))?([A-Z0-9_]*)')
+
+# Makefile ifdefs: this only handles 'else' on its own line, so not
+# 'else ifeq ...', for example
+RE_IF = re.compile(r'^(ifdef|ifndef|endif|ifeq|ifneq|else)([^,]*,([^,]*)\))?.*$')
+
+# Normal CONFIG options in C
+RE_C_CONFIGS = re.compile(r'CONFIG_([A-Z0-9_]*)')
+
+# CONFIG_IS_ENABLED() construct
+RE_CONFIG_IS = re.compile(r'CONFIG_IS_ENABLED\(([A-Z0-9_]*)\)')
+
+# Preprocessor #if/#ifdef directives, etc.
+RE_IFDEF = re.compile(r'^\s*#\s*(ifdef|ifndef|endif|if|elif|else)\s*(?:#.*)?(.*)$')
 
 class ConfigUse:
-    def __init__(self, cfg, is_spl, fname, rest):
+    """Holds information about a use of a CONFIG option"""
+    def __init__(self, cfg, is_spl, conds, fname, rest, is_mk):
+        """Set up a new use of a CONFIG option
+
+        Args:
+            cfg (str): Config option, without the CONFIG_
+            is_spl (bool): True if it indicates an SPL option, i.e. has a
+                $(SPL_) or similar, False if not
+            conds (list of str): List of conditions for this use, e.g.
+                ['SPL_BUILD']
+            fname (str): Filename contining the use
+            rest (str): Entire line from the file
+            is_mk (bool): True if this is in a Makefile, False if not
+        """
         self.cfg = cfg
         self.is_spl = is_spl
+        self.conds = list(c for c in conds if '(NONE)' not in c)
         self.fname = fname
         self.rest = rest
+        self.is_mk = is_mk
 
     def __hash__(self):
         return hash((self.cfg, self.is_spl))
 
-def scan_makefiles(fnames):
+    def __str__(self):
+        return (f'ConfigUse({self.cfg}, is_spl={self.is_spl}, '
+                f'is_mk={self.is_mk}, fname={self.fname}, rest={self.rest}')
+
+def scan_makefiles(fname_dict):
     """Scan Makefiles looking for Kconfig options
 
     Looks for uses of CONFIG options in Makefiles
 
     Args:
-        fnames (list of tuple):
-            str: Makefile filename where the option was found
-            str: Line of the Makefile
+        fname_dict (dict lines):
+            key: Makefile filename where the option was found
+            value: List of str lines of the Makefile
 
     Returns:
         tuple:
@@ -1646,46 +1686,81 @@ def scan_makefiles(fnames):
     ('$(SPL_)', 'MARY')
     >>> RE_MK_CONFIGS.search('CONFIG_$(SPL_TPL_)MARY').groups()
     ('$(SPL_TPL_)', 'MARY')
+    >>> RE_IF.match('ifdef CONFIG_SPL_BUILD').groups()
+    ('ifdef', None, None)
+    >>> RE_IF.match('endif # CONFIG_SPL_BUILD').groups()
+    ('endif', None, None)
+    >>> RE_IF.match('endif').groups()
+    ('endif', None, None)
+    >>> RE_IF.match('else').groups()
+    ('else', None, None)
     """
     all_uses = collections.defaultdict(list)
     fname_uses = {}
-    for fname, rest in fnames:
-        m_iter = RE_MK_CONFIGS.finditer(rest)
-        found = False
-        for m in m_iter:
-            found = True
-            real_opt = m.group(2)
-            if real_opt == '':
-                continue
-            is_spl = False
-            if m.group(1):
-                is_spl = True
-            use = ConfigUse(real_opt, is_spl, fname, rest)
-            if fname not in fname_uses:
-                fname_uses[fname] = set()
-            fname_uses[fname].add(use)
-            all_uses[use].append(rest)
+    for fname, rest_list in fname_dict.items():
+        conds = []
+        for rest in rest_list:
+            m_iter = RE_MK_CONFIGS.finditer(rest)
+            m_cond = RE_IF.match(rest)
+            #print('line', conds, m_cond and m_cond.group(1) or '.', rest)
+            last_use = None
+            use = None
+            for m in m_iter:
+                real_opt = m.group(2)
+                if real_opt == '':
+                    continue
+                is_spl = False
+                if m.group(1):
+                    is_spl = True
+                use = ConfigUse(real_opt, is_spl, conds, fname, rest, True)
+                if fname not in fname_uses:
+                    fname_uses[fname] = set()
+                fname_uses[fname].add(use)
+                all_uses[use].append(rest)
+                last_use = use
+            if m_cond:
+                cfg = last_use.cfg if last_use else '(NONE)'
+                cond = m_cond.group(1)
+                if cond == 'ifdef':
+                    conds.append(cfg)
+                elif cond == 'ifndef':
+                    conds.append(f'~{cfg}')
+                elif cond == 'ifeq':
+                    #print('todo', fname, m_cond.group(3), fname, rest)
+                    conds.append(f'{m_cond.group(3)}={cfg}')
+                elif cond == 'ifneq':
+                    conds.append(f'{m_cond.group(3)}={cfg}')
+                    #print('todo', m_cond.group(3))
+                elif cond == 'endif':
+                    conds.pop()
+                elif cond == 'else':
+                    cond = conds.pop()
+                    if cond.startswith('~'):
+                        cond = cond[1:]
+                    else:
+                        cond = f'~{cond}'
+                    conds.append(cond)
+                else:
+                    print(f'unknown condition: {rest}')
+        if conds:
+            print(f'leftover {conds}')
     return all_uses, fname_uses
 
-
-def scan_src_files(fnames):
+def scan_src_files(fname_dict, all_uses, fname_uses):
     """Scan source files (other than Makefiles) looking for Kconfig options
 
     Looks for uses of CONFIG options
 
     Args:
-        fnames (list of tuple):
-            str: Makefile filename where the option was found
-            str: Line of the Makefile
-
-    Returns:
-        tuple:
-            dict: all_uses
-                key (ConfigUse): object
-                value (list of str): matching lines
-            dict: Uses by filename
-                key (str): filename
-                value (set of ConfigUse): uses in that filename
+        fname_dict (dict):
+            key (str): Filename
+            value (list of ConfigUse): List of uses in that filename
+        all_uses (dict): to add more uses to:
+            key (ConfigUse): object
+            value (list of str): matching lines
+        fname (dict): to add more uses-by-filename to
+            key (str): filename
+            value (set of ConfigUse): uses in that filename
 
     >>> RE_C_CONFIGS.search('CONFIG_FRED').groups()
     ('FRED',)
@@ -1693,39 +1768,78 @@ def scan_src_files(fnames):
     ('MARY',)
     >>> RE_CONFIG_IS.search('#if CONFIG_IS_ENABLED(OF_PLATDATA)').groups()
     ('OF_PLATDATA',)
+    >>> RE_IFDEF.match('#ifdef CONFIG_SPL_BUILD').groups()
+    ('ifdef', 'CONFIG_SPL_BUILD')
+    >>> RE_IFDEF.match('#endif # CONFIG_SPL_BUILD').groups()
+    ('endif', '')
+    >>> RE_IFDEF.match('#endif').groups()
+    ('endif', '')
+    >>> RE_IFDEF.match('#else').groups()
+    ('else', '')
+    >>> RE_IFDEF.match(' # if defined(CONFIG_CMD_NET) && !defined(CONFIG_DM_ETH)').groups()
+    ('if', 'defined(CONFIG_CMD_NET) && !defined(CONFIG_DM_ETH)')
     """
     def add_uses(m_iter, is_spl):
+        last_use = None
         for m in m_iter:
             found = True
             real_opt = m.group(1)
             if real_opt == '':
                 continue
-            use = ConfigUse(real_opt, is_spl, fname, rest)
+            use = ConfigUse(real_opt, is_spl, conds, fname, rest, False)
             if fname not in fname_uses:
                 fname_uses[fname] = set()
             fname_uses[fname].add(use)
             all_uses[use].append(rest)
-
-    all_uses = collections.defaultdict(list)
-    fname_uses = {}
-    for fname, rest in fnames:
-        m_iter = RE_C_CONFIGS.finditer(rest)
-        add_uses(m_iter, False)
-
-        m_iter2 = RE_CONFIG_IS.finditer(rest)
-        add_uses(m_iter2, True)
-
-    return all_uses, fname_uses
+            last_use = use
+        return last_use
+
+    for fname, rest_list in fname_dict.items():
+        conds = []
+        for rest in rest_list:
+            m_iter = RE_C_CONFIGS.finditer(rest)
+            m_cond = RE_IFDEF.match(rest)
+            last_use1 = add_uses(m_iter, False)
+
+            m_iter2 = RE_CONFIG_IS.finditer(rest)
+            last_use2 = add_uses(m_iter2, True)
+            last_use = last_use1 or last_use2
+            if m_cond:
+                cfg = last_use.cfg if last_use else '(NONE)'
+                cond = m_cond.group(1)
+                #print(fname, rest, cond, conds)
+                if cond == 'ifdef':
+                    conds.append(cfg)
+                elif cond == 'ifndef':
+                    conds.append(f'~{cfg}')
+                elif cond == 'if':
+                    #print('todo', fname, m_cond.group(3), fname, rest)
+                    conds.append(f'{m_cond.group(2)}={cfg}')
+                elif cond == 'endif':
+                    conds.pop()
+                elif cond == 'else':
+                    cond = conds.pop()
+                    if cond.startswith('~'):
+                        cond = cond[1:]
+                    else:
+                        cond = f'~{cond}'
+                    conds.append(cond)
+                elif cond == 'elif':
+                    cond = conds.pop()
+                    conds.append(cfg)
+                else:
+                    print(f'{fname}: unknown condition: {rest}')
 
 
 MODE_NORMAL, MODE_SPL, MODE_PROPER = range(3)
 
-def do_scan_source(path, do_update):
+def do_scan_source(path, do_update, show_conflicts, do_commit):
     """Scan the source tree for Kconfig inconsistencies
 
     Args:
         path (str): Path to source tree
-        do_update (bool) : True to write to scripts/kconf_... files
+        do_update (bool): True to write to scripts/kconf_... files
+        show_conflicts (bool): True to show conflicts
     """
     def is_not_proper(name):
         for prefix in SPL_PREFIXES:
@@ -1754,7 +1868,7 @@ def do_scan_source(path, do_update):
         """
         # Make sure we know about all the options
         not_found = collections.defaultdict(list)
-        for use, rest in all_uses.items():
+        for use, _ in all_uses.items():
             name = use.cfg
             if name in IGNORE_SYMS:
                 continue
@@ -1766,7 +1880,6 @@ def do_scan_source(path, do_update):
                 # If it is an SPL symbol, try prepending all SPL_ prefixes to
                 # find at least one SPL symbol
                 if use.is_spl:
-                    add_to_dict = False
                     for prefix in SPL_PREFIXES:
                         try_name = prefix + name
                         sym = kconf.syms.get(try_name)
@@ -1784,7 +1897,6 @@ def do_scan_source(path, do_update):
                 elif not use.is_spl:
                     check = False
             else: # MODE_NORMAL
-                debug = False
                 sym = kconf.syms.get(name)
                 if not sym:
                     proper_name = is_not_proper(name)
@@ -1819,105 +1931,304 @@ def do_scan_source(path, do_update):
             for i, use in enumerate(uses[name]):
                 print(f'{"   " if i else ""}{use.fname}: {use.rest.strip()}')
 
+    def do_scan():
+        """Scan the source tree
 
-    print('Scanning Kconfig')
-    kconf = KconfigScanner().conf
-    print(f'Scanning source in {path}')
-    args = ['git', 'grep', '-E', r'IS_ENABLED|\bCONFIG']
-    with subprocess.Popen(args, stdout=subprocess.PIPE) as proc:
-        out, err = proc.communicate()
-    lines = out.splitlines()
-    re_fname = re.compile('^([^:]*):(.*)')
-    src_list = []
-    mk_list = []
-    for line in lines:
-        linestr = line.decode('utf-8')
-        m_fname = re_fname.search(linestr)
-        if not m_fname:
-            continue
-        fname, rest = m_fname.groups()
-        dirname, leaf = os.path.split(fname)
-        root, ext = os.path.splitext(leaf)
-        if ext == '.autoconf':
-            pass
-        elif ext in ['.c', '.h', '.S', '.lds', '.dts', '.dtsi', '.asl', '.cfg',
-                     '.env', '.tmpl']:
-            src_list.append([fname, rest])
-        elif 'Makefile' in root or ext == '.mk':
-            mk_list.append([fname, rest])
-        elif ext in ['.yml', '.sh', '.py', '.awk', '.pl', '.rst', '', '.sed']:
-            pass
-        elif 'Kconfig' in root or 'Kbuild' in root:
-            pass
-        elif 'README' in root:
-            pass
-        elif dirname in ['configs']:
-            pass
-        elif dirname.startswith('doc') or dirname.startswith('scripts/kconfig'):
-            pass
+        This runs a 'git grep' and then picks out uses of CONFIG options from
+        the resulting output
+
+        Returns: tuple
+            dict of uses of CONFIG in Makefiles:
+                key (str): Filename
+                value (list of ConfigUse): List of uses in that filename
+            dict of uses of CONFIG in source files:
+                key (str): Filename
+                value (list of ConfigUse): List of uses in that filename
+        """
+        def finish_file(last_fname, rest_list):
+            if is_mkfile:
+                mk_dict[last_fname] = rest_list
+            else:
+                src_dict[last_fname] = rest_list
+            rest_list = []
+
+        print(f'Scanning source in {path}')
+        args = ['git', 'grep', '-E',
+                r'IS_ENABLED|\bCONFIG|CONFIG_SPL_BUILD|if|else|endif']
+        with subprocess.Popen(args, stdout=subprocess.PIPE) as proc:
+            out, _ = proc.communicate()
+        lines = out.splitlines()
+        re_fname = re.compile('^([^:]*):(.*)')
+        src_dict = collections.OrderedDict()
+        mk_dict = collections.OrderedDict()
+        last_fname = None
+        rest_list = []
+        is_mkfile = None
+        for line in lines:
+            linestr = line.decode('utf-8')
+            m_fname = re_fname.search(linestr)
+            if not m_fname:
+                continue
+            fname, rest = m_fname.groups()
+            if fname != last_fname:
+                finish_file(last_fname, rest_list)
+                rest_list = []
+                last_fname = fname
+
+            dirname, leaf = os.path.split(fname)
+            root, ext = os.path.splitext(leaf)
+            #if dirname != '' or root != 'Makefile':
+                #continue
+            if (dirname.startswith('test') or
+                dirname.startswith('lib/efi_selftest')):
+                # Ignore test code since it is mostly only for sandbox
+                pass
+            elif ext == '.autoconf':
+                pass
+            elif ext in ['.c', '.h', '.S', '.lds', '.dts', '.dtsi', '.asl',
+                         '.cfg', '.env', '.tmpl']:
+                rest_list.append(rest)
+                is_mkfile = False
+            elif 'Makefile' in root or ext == '.mk':
+                rest_list.append(rest)
+                is_mkfile = True
+            elif ext in ['.yml', '.sh', '.py', '.awk', '.pl', '.rst', '', '.sed',
+                         '.src', '.inc', '.l', '.i_shipped', '.txt', '.cmd',
+                         '.cfg', '.y', '.cocci', '.ini', '.asn1', '.base',
+                         '.cnf', '.patch', '.mak', '.its', '.svg', '.tcl',
+                         '.css', '.config', '.conf']:
+                pass
+            elif 'Kconfig' in root or 'Kbuild' in root:
+                pass
+            elif 'README' in root:
+                pass
+            elif dirname in ['configs']:
+                pass
+            elif dirname.startswith('doc') or dirname.startswith('scripts/kconfig'):
+                pass
+            else:
+                print(f'Not sure how to handle file {fname}')
+        finish_file(last_fname, rest_list)
+        return mk_dict, src_dict
+
+    def check_mk_missing(all_uses, spl_not_found, proper_not_found):
+        # Make sure we know about all the options in Makefiles
+        print('\nCONFIG options present in Makefiles but not Kconfig:')
+        not_found = check_not_found(all_uses, MODE_NORMAL)
+        show_uses(not_found)
+
+        print('\nCONFIG options present in Makefiles but not Kconfig (SPL):')
+        not_found = check_not_found(all_uses, MODE_SPL)
+        show_uses(not_found)
+        spl_not_found |= set(is_not_proper(key) or key for key in not_found.keys())
+
+        print('\nCONFIG options used as Proper in Makefiles but without a non-SPL_ variant:')
+        not_found = check_not_found(all_uses, MODE_PROPER)
+        show_uses(not_found)
+        proper_not_found |= set(key for key in not_found.keys())
+
+    def check_src_missing(all_uses, spl_not_found, proper_not_found):
+        # Make sure we know about all the options in source files
+        print('\nCONFIG options present in source but not Kconfig:')
+        not_found = check_not_found(all_uses, MODE_NORMAL)
+        show_uses(not_found)
+
+        print('\nCONFIG options present in source but not Kconfig (SPL):')
+        not_found = check_not_found(all_uses, MODE_SPL)
+        show_uses(not_found)
+        spl_not_found |= set(is_not_proper(key) or key
+                             for key in not_found.keys())
+
+        print('\nCONFIG options used as Proper in source but without a non-SPL_ variant:')
+        not_found = check_not_found(all_uses, MODE_PROPER)
+        show_uses(not_found)
+        proper_not_found |= set(key for key in not_found.keys())
+
+    def show_summary(spl_not_found, proper_not_found):
+        print('\nCONFIG options used as SPL but without an SPL_ variant:')
+        for item in sorted(spl_not_found):
+            print(f'   {item}')
+
+        print('\nCONFIG options used as Proper but without a non-SPL_ variant:')
+        for item in sorted(proper_not_found):
+            print(f'   {item}')
+
+    def write_update(spl_not_found, proper_not_found):
+        with open(os.path.join(path, 'scripts', 'conf_nospl'),
+                  encoding='utf-8') as out:
+            print('# These options should not be enabled in SPL builds\n',
+                  file=out)
+            for item in sorted(spl_not_found):
+                print(item, file=out)
+        with open(os.path.join(path, 'scripts', 'conf_noproper'), 'w',
+                  encoding='utf-8') as out:
+            print('# These options should not be enabled in Proper builds\n',
+                  file=out)
+            for item in sorted(proper_not_found):
+                print(item, file=out)
+
+    def check_conflict(kconf, all_uses, show):
+        """Check conflicts between uses of CONFIG options in source
+
+        Sometimes an option is used in an SPL context in once place and not in
+        another. For example if we see CONFIG_SPL_FOO and CONFIG_FOO then we
+        don't know whether FOO should be enabled in SPL if CONFIG_FOO is
+        enabled, or only if CONFIG_SPL_FOO is enabled.,
+
+        This function detects such situations
+
+        Args:
+            kconf (Kconfiglib.Kconfig): Kconfig tree read from source
+            all_uses (dict): dict to add more uses to:
+                key (ConfigUse): object
+                value (list of str): matching lines
+            show (bool): True to show the problems
+
+        Returns:
+            dict of conflicts:
+                key: filename
+                value: list of ConfigUse objects
+        """
+        conflict_dict = collections.defaultdict(list)
+        cfg_dict = collections.defaultdict(list)
+
+        uses = collections.defaultdict(list)
+        for use in all_uses:
+            uses[use.cfg].append(use)
+
+        bad = 0
+        for cfg in sorted(uses):
+            use_list = uses[cfg]
+
+            # Check if
+            #  - there is no SPL_ version of the symbol, and
+            #  - some uses are SPL and some are not
+            is_spl = list(set(u.is_spl for u in use_list))
+            if len(is_spl) > 1 and f'SPL_{cfg}' not in kconf.syms:
+                if show:
+                    print(f'{cfg}: {is_spl}')
+                for use in use_list:
+                    if show:
+                        print(f'   spl={use.is_spl}: {use.conds} {use.fname} {use.rest}')
+                    if use.is_spl:
+                        conflict_dict[use.fname].append(use)
+                        cfg_dict[use.cfg].append(use)
+                bad += 1
+        print(f'total bad: {bad}')
+        return conflict_dict, cfg_dict
+
+    def replace_in_file(fname, use_or_uses):
+        """Replace a CONFIG pattern in a file
+
+        Args:
+            fname (str): Filename to replace in
+            use_or_uses (ConfigUse or list of ConfigUse): Uses to replace
+        """
+        with open(fname, encoding='utf-8') as inf:
+            data = inf.read()
+        out = io.StringIO()
+
+        if isinstance(use_or_uses, list):
+            uses = use_or_uses
         else:
-            print(f'Not sure how to handle file {fname}')
+            uses = [use_or_uses]
 
-    # Scan the Makefiles
-    all_uses, fname_uses = scan_makefiles(mk_list)
+        re_cfgs = []
+        for use in uses:
+            if use.is_mk:
+                expr = r'CONFIG_(?:\$\(SPL_(?:TPL_)?\))%s\b' % use.cfg
+            else:
+                expr = r'CONFIG_IS_ENABLED\(%s\)' % use.cfg
+            re_cfgs.append(re.compile(expr))
+
+        for line in data.splitlines():
+            new_line = line
+            if 'CONFIG_' in line:
+                todo = []
+                for i, re_cfg in enumerate(re_cfgs):
+                    if not re_cfg.search(line):
+                        todo.append(re_cfg)
+                    use = uses[i]
+                    if use.is_mk:
+                        new_line = re_cfg.sub(f'CONFIG_{use.cfg}', new_line)
+                    else:
+                        new = f'IS_ENABLED(CONFIG_{use.cfg})'
+                        new_line = re_cfg.sub(new, new_line)
+                re_cfgs = todo
+            out.write(new_line)
+            out.write('\n')
+        out_data = out.getvalue()
+        if out_data == data:
+            print(f'\n\nfailed with {fname}\n\n')
+        with open(fname, 'w', encoding='utf-8') as outf:
+            outf.write(out_data)
+
+    def update_source(conflicts):
+        """Replace any SPL constructs with plain non-SPL ones
+
+        CONFIG_IS_ENABLED(FOO) becomes IS_ENABLED(CONFIG_FOO)
+        CONFIG$_(SPL_TPL_)FOO becomes CONFIG_FOO
 
-    spl_not_found = set()
-    proper_not_found = set()
+        Args:
+            conflicts (dict): dict of conflicts:
+                key (str): filename
+                value (list of ConfigUse): uses within that file
+        """
+        print(f'Updating {len(conflicts)} files')
+        for fname, uses in conflicts.items():
+            replace_in_file(fname, uses)
 
-    # Make sure we know about all the options
-    print('\nCONFIG options present in Makefiles but not Kconfig:')
-    not_found = check_not_found(all_uses, MODE_NORMAL)
-    show_uses(not_found)
+    def create_commits(cfg_dict):
+        """Create a set of commits to fix SPL conflicts
 
-    print('\nCONFIG options present in Makefiles but not Kconfig (SPL):')
-    not_found = check_not_found(all_uses, MODE_SPL)
-    show_uses(not_found)
-    spl_not_found |= set([is_not_proper(key) or key for key in not_found.keys()])
+        """
+        print(f'Creating {len(cfg_dict)} commits')
+        for cfg, uses in cfg_dict.items():
+            print(f'Processing {cfg}')
+            for use in uses:
+                #print(f'   {use.fname}: {use}')
+                replace_in_file(use.fname, use)
+            plural = 's' if len(uses) > 1 else ''
+            msg = f'Correct SPL use{plural} of {cfg}'
+            msg += f'\n\nThis converts {len(uses)} usage{plural} '
+            msg += 'of this option to the non-SPL form, since there is\n'
+            msg += f'no SPL_{cfg} defined in Kconfig'
+            if not write_commit(msg):
+                print('failed\n', uses)
+                break
 
-    print('\nCONFIG options used as Proper in Makefiles but without a non-SPL_ variant:')
-    not_found = check_not_found(all_uses, MODE_PROPER)
-    show_uses(not_found)
-    proper_not_found |= set([key for key in not_found.keys()])
+    print('Scanning Kconfig')
+    kconf = KconfigScanner().conf
 
-    # Scan the source code
-    all_uses, fname_uses = scan_src_files(src_list)
+    all_uses = collections.defaultdict(list)
+    fname_uses = {}
+    mk_dict, src_dict = do_scan()
+
+    # Scan the Makefiles
+    all_uses, fname_uses = scan_makefiles(mk_dict)
+    scan_src_files(src_dict, all_uses, fname_uses)
 
-    # Make sure we know about all the options
-    print('\nCONFIG options present in source but not Kconfig:')
-    not_found = check_not_found(all_uses, MODE_NORMAL)
-    show_uses(not_found)
+    conflicts, cfg_dict = check_conflict(kconf, all_uses, show_conflicts)
 
-    print('\nCONFIG options present in source but not Kconfig (SPL):')
-    not_found = check_not_found(all_uses, MODE_SPL)
-    show_uses(not_found)
-    spl_not_found |= set([is_not_proper(key) or key for key in not_found.keys()])
+    if do_update:
+        update_source(conflicts)
+    if do_commit:
+        create_commits(cfg_dict)
 
-    print('\nCONFIG options used as Proper in source but without a non-SPL_ variant:')
-    not_found = check_not_found(all_uses, MODE_PROPER)
-    show_uses(not_found)
-    proper_not_found |= set([key for key in not_found.keys()])
+    # Look for CONFIG options that are not found
+    spl_not_found = set()
+    proper_not_found = set()
+    check_mk_missing(all_uses, spl_not_found, proper_not_found)
 
-    print('\nCONFIG options used as SPL but without an SPL_ variant:')
-    for item in sorted(spl_not_found):
-        print(f'   {item}')
+    # Scan the source code
+    scan_src_files(src_dict, all_uses, fname_uses)
+    check_src_missing(all_uses, spl_not_found, proper_not_found)
 
-    print('\nCONFIG options used as Proper but without a non-SPL_ variant:')
-    for item in sorted(proper_not_found):
-        print(f'   {item}')
+    show_summary(spl_not_found, proper_not_found)
 
     # Write out the updated information
     if do_update:
-        with open(os.path.join(path, 'scripts', 'conf_nospl'), 'w') as out:
-            print('# These options should not be enabled in SPL builds\n',
-                  file=out)
-            for item in sorted(spl_not_found):
-                print(item, file=out)
-        with open(os.path.join(path, 'scripts', 'conf_noproper'), 'w') as out:
-            print('# These options should not be enabled in Proper builds\n',
-                  file=out)
-            for item in sorted(proper_not_found):
-                print(item, file=out)
-
+        write_update(spl_not_found, proper_not_found)
 
 def main():
     try:
@@ -1957,9 +2268,11 @@ doc/develop/moveconfig.rst for documentation.'''
     parser.add_argument('-i', '--imply', action='store_true', default=False,
                       help='find options which imply others')
     parser.add_argument('-I', '--imply-flags', type=str, default='',
-                      help="control the -i option ('help' for help")
+                      help="control the -i option ('help' for help)")
     parser.add_argument('-j', '--jobs', type=int, default=cpu_count,
                       help='the number of jobs to run simultaneously')
+    parser.add_argument('-l', '--list-problems', action='store_true',
+                        help='list problems found with --scan-source')
     parser.add_argument('-n', '--dry-run', action='store_true', default=False,
                       help='perform a trial run (show log with no changes)')
     parser.add_argument('-r', '--git-ref', type=str,
@@ -1991,7 +2304,8 @@ doc/develop/moveconfig.rst for documentation.'''
         unittest.main()
 
     if args.scan_source:
-        do_scan_source(os.getcwd(), args.update)
+        do_scan_source(os.getcwd(), args.update, args.list_problems,
+                       args.commit)
         return
 
     if not any((len(configs), args.force_sync, args.build_db, args.imply,
@@ -2049,7 +2363,6 @@ doc/develop/moveconfig.rst for documentation.'''
         cleanup_readme(configs, args)
 
     if args.commit:
-        subprocess.call(['git', 'add', '-u'])
         if configs:
             msg = 'Convert %s %sto Kconfig' % (configs[0],
                     'et al ' if len(configs) > 1 else '')
@@ -2058,7 +2371,7 @@ doc/develop/moveconfig.rst for documentation.'''
         else:
             msg = 'configs: Resync with savedefconfig'
             msg += '\n\nRsync all defconfig files using moveconfig.py'
-        subprocess.call(['git', 'commit', '-s', '-m', msg])
+        write_commit(msg)
 
     if args.build_db:
         with open(CONFIG_DATABASE, 'w', encoding='utf-8') as fd:
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 002/171] x86: Correct Chrromebook typo
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
  2023-01-30 14:40 ` [PATCH 001/171] moveconfig: Update to detect / correct missing SPL Kconfigs Simon Glass
@ 2023-01-30 14:40 ` Simon Glass
  2023-01-30 14:40 ` [PATCH 003/171] boot: Add a Kconfig for SPL_FIT_CIPHER Simon Glass
                   ` (98 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:40 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Bin Meng

Fix a typo in a comment.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 arch/x86/lib/fsp/fsp_dram.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/lib/fsp/fsp_dram.c b/arch/x86/lib/fsp/fsp_dram.c
index 2bd408d0c56..cc889a688d8 100644
--- a/arch/x86/lib/fsp/fsp_dram.c
+++ b/arch/x86/lib/fsp/fsp_dram.c
@@ -60,7 +60,7 @@ int dram_init_banksize(void)
 	 *
 	 * However it seems FSP2's behavior is different. We need to add the
 	 * DRAM range in MTRR otherwise the boot process goes very slowly,
-	 * which was observed on Chrromebook Coral with FSP2.
+	 * which was observed on Chromebook Coral with FSP2.
 	 */
 	update_mtrr = CONFIG_IS_ENABLED(FSP_VERSION2);
 
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 003/171] boot: Add a Kconfig for SPL_FIT_CIPHER
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
  2023-01-30 14:40 ` [PATCH 001/171] moveconfig: Update to detect / correct missing SPL Kconfigs Simon Glass
  2023-01-30 14:40 ` [PATCH 002/171] x86: Correct Chrromebook typo Simon Glass
@ 2023-01-30 14:40 ` Simon Glass
  2023-01-30 14:40 ` [PATCH 004/171] boot: Add a Kconfig for SPL_BOOTSTD_FULL Simon Glass
                   ` (97 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:40 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Andre Przywara, Philippe Reynes

This is implicitly used in the source and seems useful, so add it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 boot/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/boot/Kconfig b/boot/Kconfig
index 4bb1af23ac5..5b5b4f50670 100644
--- a/boot/Kconfig
+++ b/boot/Kconfig
@@ -103,6 +103,10 @@ config FIT_CIPHER
 	  Enable the feature of data ciphering/unciphering in the tool mkimage
 	  and in the u-boot support of the FIT image.
 
+config SPL_FIT_CIPHER
+	def_bool n  # Enable ciphering data in a FIT uImages (SPL
+	depends on SPL_DM && SPL_FIT
+
 config FIT_VERBOSE
 	bool "Show verbose messages when FIT images fail"
 	depends on FIT
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 004/171] boot: Add a Kconfig for SPL_BOOTSTD_FULL
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (2 preceding siblings ...)
  2023-01-30 14:40 ` [PATCH 003/171] boot: Add a Kconfig for SPL_FIT_CIPHER Simon Glass
@ 2023-01-30 14:40 ` Simon Glass
  2023-01-30 14:40 ` [PATCH 005/171] boot: Add Kconfigs for BOOTMETH_VBE_REQUEST Simon Glass
                   ` (96 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:40 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Andre Przywara, Philippe Reynes

This is implicitly used in the source and seems useful, so add it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 boot/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/boot/Kconfig b/boot/Kconfig
index 5b5b4f50670..ebad2a8eca4 100644
--- a/boot/Kconfig
+++ b/boot/Kconfig
@@ -408,6 +408,10 @@ config VPL_BOOTSTD
 	  boot. It is enabled by default since the main purpose of VPL is to
 	  handle the firmware part of VBE.
 
+config SPL_BOOTSTD_FULL
+	def_bool n  # "Enhanced features for standard boot"
+	depends on BOOTSTD && SPL
+
 if BOOTSTD
 
 config BOOTSTD_BOOTCOMMAND
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 005/171] boot: Add Kconfigs for BOOTMETH_VBE_REQUEST
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (3 preceding siblings ...)
  2023-01-30 14:40 ` [PATCH 004/171] boot: Add a Kconfig for SPL_BOOTSTD_FULL Simon Glass
@ 2023-01-30 14:40 ` Simon Glass
  2023-01-30 14:40 ` [PATCH 006/171] boot: Add a Kconfig for SPL_BOOTDEV_SPI_FLASH Simon Glass
                   ` (95 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:40 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Andre Przywara, John Keeping, Philippe Reynes

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 <sjg@chromium.org>
---

 boot/Kconfig  | 13 +++++++++++++
 boot/Makefile |  3 ++-
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/boot/Kconfig b/boot/Kconfig
index ebad2a8eca4..dcfbe6ae9e0 100644
--- a/boot/Kconfig
+++ b/boot/Kconfig
@@ -509,6 +509,19 @@ config VPL_BOOTMETH_VBE
 
 if BOOTMETH_VBE
 
+config BOOTMETH_VBE_REQUEST
+	bool "Support for serving VBE OS requests"
+	default y
+	help
+	  Enables support for looking that the requests made by the
+	  Operating System being booted. These requests result in additions to
+	  the device tree /chosen node, added during the device tree fixup
+	  phase.
+
+config SPL_BOOTMETH_VBE_REQUEST
+	def_bool n  # Support for serving VBE OS requests (SPL)
+	depends on SPL
+
 config BOOTMETH_VBE_SIMPLE
 	bool "Bootdev support for VBE 'simple' method"
 	default y
diff --git a/boot/Makefile b/boot/Makefile
index f990e66f522..69c31adb77d 100644
--- a/boot/Makefile
+++ b/boot/Makefile
@@ -50,7 +50,8 @@ endif
 
 obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_VBE) += expo.o scene.o scene_menu.o
 
-obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_VBE) += vbe.o vbe_request.o
+obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_VBE) += vbe.o
+obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_VBE_REQUEST) += vbe_request.o
 obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_VBE_SIMPLE) += vbe_simple.o
 obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_VBE_SIMPLE_FW) += vbe_simple_fw.o
 obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_VBE_SIMPLE_OS) += vbe_simple_os.o
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 006/171] boot: Add a Kconfig for SPL_BOOTDEV_SPI_FLASH
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (4 preceding siblings ...)
  2023-01-30 14:40 ` [PATCH 005/171] boot: Add Kconfigs for BOOTMETH_VBE_REQUEST Simon Glass
@ 2023-01-30 14:40 ` Simon Glass
  2023-01-30 14:40 ` [PATCH 007/171] boot: Add a Kconfig for SPL_BOOTDEV_ETH Simon Glass
                   ` (94 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:40 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Jagan Teki, Vignesh R

This is implicitly used in the source and seems useful, so add it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/mtd/spi/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig
index a9617c6c58c..949404c4a96 100644
--- a/drivers/mtd/spi/Kconfig
+++ b/drivers/mtd/spi/Kconfig
@@ -88,6 +88,10 @@ config BOOTDEV_SPI_FLASH
 
 	  If unsure, say N
 
+config SPL_BOOTDEV_SPI_FLASH
+	def_bool n  # "SPI Flash bootdev support"
+	depends on SPL_SPI_FLASH_SUPPORT
+
 config SPI_FLASH_SFDP_SUPPORT
 	bool "SFDP table parsing support for SPI NOR flashes"
 	depends on !SPI_FLASH_BAR
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 007/171] boot: Add a Kconfig for SPL_BOOTDEV_ETH
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (5 preceding siblings ...)
  2023-01-30 14:40 ` [PATCH 006/171] boot: Add a Kconfig for SPL_BOOTDEV_SPI_FLASH Simon Glass
@ 2023-01-30 14:40 ` Simon Glass
  2023-01-30 14:40 ` [PATCH 008/171] dm: Add a Kconfig for SPL_DEVRES Simon Glass
                   ` (93 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:40 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Joe Hershberger, Ramon Fried

This is implicitly used in the source and seems useful, so add it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 net/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/net/Kconfig b/net/Kconfig
index 4215889127c..fbe6b35077f 100644
--- a/net/Kconfig
+++ b/net/Kconfig
@@ -34,6 +34,10 @@ config BOOTDEV_ETH
 	  an operationg system over the network, using the PXE (Preboot
 	  Execution Environment) protocol.
 
+config SPL_BOOTDEV_ETH
+	def_bool n  # "Enable bootdev for ethernet (SPL)"
+	depends on SPL_BOOTSTD
+
 config BOOTP_SEND_HOSTNAME
 	bool "Send hostname to DNS server"
 	help
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 008/171] dm: Add a Kconfig for SPL_DEVRES
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (6 preceding siblings ...)
  2023-01-30 14:40 ` [PATCH 007/171] boot: Add a Kconfig for SPL_BOOTDEV_ETH Simon Glass
@ 2023-01-30 14:40 ` Simon Glass
  2023-01-30 14:40 ` [PATCH 009/171] dm: Add a Kconfig for SPL_DM_HWSPINLOCK Simon Glass
                   ` (92 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:40 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Marek Vasut, Pavel Herrmann

This is implicitly used in the source and seems useful, so add it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/core/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/core/Kconfig b/drivers/core/Kconfig
index 6fc8854b574..22381500afe 100644
--- a/drivers/core/Kconfig
+++ b/drivers/core/Kconfig
@@ -275,6 +275,10 @@ config DEVRES
 	  non-managed variants.  For example, devres_alloc() to kzalloc(),
 	  devm_kmalloc() to kmalloc(), etc.
 
+config SPL_DEVRES
+	def_bool n  # Managed device resources (SPL)
+	depends on SPL_DM
+
 config DEBUG_DEVRES
 	bool "Managed device resources debugging functions"
 	depends on DEVRES
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 009/171] dm: Add a Kconfig for SPL_DM_HWSPINLOCK
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (7 preceding siblings ...)
  2023-01-30 14:40 ` [PATCH 008/171] dm: Add a Kconfig for SPL_DEVRES Simon Glass
@ 2023-01-30 14:40 ` Simon Glass
  2023-01-30 14:40 ` [PATCH 010/171] boot: Add a Kconfig for SPL_OF_LIVE Simon Glass
                   ` (91 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:40 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Marek Vasut, Pavel Herrmann

This is implicitly used in the source and seems useful, so add it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/hwspinlock/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/hwspinlock/Kconfig b/drivers/hwspinlock/Kconfig
index 96d4f5d6ca3..56406da3d87 100644
--- a/drivers/hwspinlock/Kconfig
+++ b/drivers/hwspinlock/Kconfig
@@ -5,6 +5,10 @@ config DM_HWSPINLOCK
 	help
 	  This option enables U-Boot hardware spinlock support
 
+config SPL_DM_HWSPINLOCK
+	def_bool n  # Enable U-Boot hardware spinlock support (SPL)
+	depends on SPL
+
 config HWSPINLOCK_SANDBOX
 	bool "Enable Hardware Spinlock support for Sandbox"
 	depends on SANDBOX && DM_HWSPINLOCK
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 010/171] boot: Add a Kconfig for SPL_OF_LIVE
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (8 preceding siblings ...)
  2023-01-30 14:40 ` [PATCH 009/171] dm: Add a Kconfig for SPL_DM_HWSPINLOCK Simon Glass
@ 2023-01-30 14:40 ` Simon Glass
  2023-01-30 14:40 ` [PATCH 011/171] cmd: Add a Kconfig for SPL_CRC32_VERIFY Simon Glass
                   ` (90 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:40 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Rasmus Villemoes

This is implicitly used in the source and seems useful, so add it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 dts/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dts/Kconfig b/dts/Kconfig
index 44cc6bf1f6f..bb63eda9c40 100644
--- a/dts/Kconfig
+++ b/dts/Kconfig
@@ -85,6 +85,10 @@ config OF_LIVE
 	  enables a live tree which is available after relocation,
 	  and can be adjusted as needed.
 
+config SPL_OF_LIVE
+	def_bool n  # Enable use of a live tree (SPL)
+	depends on SPL_DM && SPL_OF_CONTROL
+
 choice
 	prompt "Provider of DTB for DT control"
 	depends on OF_CONTROL
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 011/171] cmd: Add a Kconfig for SPL_CRC32_VERIFY
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (9 preceding siblings ...)
  2023-01-30 14:40 ` [PATCH 010/171] boot: Add a Kconfig for SPL_OF_LIVE Simon Glass
@ 2023-01-30 14:40 ` Simon Glass
  2023-01-30 14:40 ` [PATCH 012/171] console: Add a Kconfig for SPL_CONSOLE_MUX et al Simon Glass
                   ` (89 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:40 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Heinrich Schuchardt, Ilias Apalodimas,
	John Keeping, Masahisa Kojima, Pali Rohár

This is implicitly used in the source and seems useful, so add it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 cmd/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/cmd/Kconfig b/cmd/Kconfig
index b697469a4cb..82321bd3293 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -680,6 +680,10 @@ config CRC32_VERIFY
 	help
 	  Add -v option to verify data against a crc32 checksum.
 
+config SPL_CRC32_VERIFY
+	def_bool n  # crc32 -v (SPL)
+	depends on SPL
+
 config CMD_EEPROM
 	bool "eeprom - EEPROM subsystem"
 	help
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 012/171] console: Add a Kconfig for SPL_CONSOLE_MUX et al
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (10 preceding siblings ...)
  2023-01-30 14:40 ` [PATCH 011/171] cmd: Add a Kconfig for SPL_CRC32_VERIFY Simon Glass
@ 2023-01-30 14:40 ` Simon Glass
  2023-01-30 14:40 ` [PATCH 013/171] button: Add a Kconfig for SPL_BUTTON Simon Glass
                   ` (88 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:40 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Stefan Roese

This and SYS_CONSOLE_IS_IN_ENV are implicitly used in the source and seem
useful, so add them.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 common/Kconfig | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/common/Kconfig b/common/Kconfig
index 99ff67cac6a..6d23cdde94e 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -235,6 +235,10 @@ config CONSOLE_MUX
 	  adds a small amount of size to U-Boot.  Changes to the environment
 	  variables stdout, stdin and stderr will take effect immediately.
 
+config SPL_CONSOLE_MUX
+	def_bool n  # Enable console multiplexing (SPL)
+	depends on SPL
+
 config SYS_CONSOLE_IS_IN_ENV
 	bool "Select console devices from the environment"
 	default y if CONSOLE_MUX
@@ -245,6 +249,10 @@ config SYS_CONSOLE_IS_IN_ENV
 	  environment variables can be updated after boot to change the
 	  input/output devices.
 
+config SPL_SYS_CONSOLE_IS_IN_ENV
+	def_bool n  # Select console devices from the environment (SPL)
+	depends on SPL
+
 config SYS_CONSOLE_OVERWRITE_ROUTINE
 	bool "Allow board control over console overwriting"
 	help
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 013/171] button: Add a Kconfig for SPL_BUTTON
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (11 preceding siblings ...)
  2023-01-30 14:40 ` [PATCH 012/171] console: Add a Kconfig for SPL_CONSOLE_MUX et al Simon Glass
@ 2023-01-30 14:40 ` Simon Glass
  2023-01-30 14:40 ` [PATCH 014/171] lib: Add a Kconfig for SPL_ERRNO_STR Simon Glass
                   ` (87 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:40 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Michael Walle, Stefan Roese

This is implicitly used in the source and seems useful, so add it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/button/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/button/Kconfig b/drivers/button/Kconfig
index 8ce2de37d62..60645a7745a 100644
--- a/drivers/button/Kconfig
+++ b/drivers/button/Kconfig
@@ -9,6 +9,10 @@ config BUTTON
 	  can provide access to board-specific buttons. Use of the device tree
 	  for configuration is encouraged.
 
+config SPL_BUTTON
+	def_bool n  # Enable button support (SPL)
+	depends on SPL
+
 config BUTTON_ADC
 	bool "Button adc"
 	depends on BUTTON
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 014/171] lib: Add a Kconfig for SPL_ERRNO_STR
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (12 preceding siblings ...)
  2023-01-30 14:40 ` [PATCH 013/171] button: Add a Kconfig for SPL_BUTTON Simon Glass
@ 2023-01-30 14:40 ` Simon Glass
  2023-01-30 14:51   ` Heinrich Schuchardt
  2023-01-30 14:40 ` [PATCH 015/171] iommu: Add a Kconfig for SPL_IOMMU Simon Glass
                   ` (86 subsequent siblings)
  100 siblings, 1 reply; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:40 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Brandon Maier, Heinrich Schuchardt,
	Ilias Apalodimas, Kautuk Consul, Leo Yu-Chi Liang,
	Philippe Reynes, Rasmus Villemoes, Sughosh Ganu

This is implicitly used in the source and seems useful, so add it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 lib/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/Kconfig b/lib/Kconfig
index 549bd357785..999ae99bf68 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -782,6 +782,10 @@ config ERRNO_STR
 	  - if errno is null or positive number - a pointer to "Success" message
 	  - if errno is negative - a pointer to errno related message
 
+config SPL_ERRNO_STR
+	def_bool n  # Enable function for getting errno-related string message (SPL)
+	depends on SPL
+
 config HEXDUMP
 	bool "Enable hexdump"
 	help
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 015/171] iommu: Add a Kconfig for SPL_IOMMU
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (13 preceding siblings ...)
  2023-01-30 14:40 ` [PATCH 014/171] lib: Add a Kconfig for SPL_ERRNO_STR Simon Glass
@ 2023-01-30 14:40 ` Simon Glass
  2023-01-30 16:23   ` Mark Kettenis
  2023-01-30 14:40 ` [PATCH 016/171] iommu: Add a Kconfig for SPL_PINCTRL_ARMADA_38X Simon Glass
                   ` (85 subsequent siblings)
  100 siblings, 1 reply; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:40 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass

This is implicitly used in the source and seems useful, so add it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/iommu/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig
index dabc1f900d5..bbacd14a56c 100644
--- a/drivers/iommu/Kconfig
+++ b/drivers/iommu/Kconfig
@@ -14,6 +14,10 @@ config IOMMU
 	  memory if the IOMMU has been programmed to allow access to
 	  that memory.
 
+config SPL_IOMMU
+	def_bool n  # Enable Driver Model for IOMMU drivers (SPL)
+	depends on SPL_DM
+
 config APPLE_DART
 	bool "Apple DART support"
 	depends on IOMMU && ARCH_APPLE
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 016/171] iommu: Add a Kconfig for SPL_PINCTRL_ARMADA_38X
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (14 preceding siblings ...)
  2023-01-30 14:40 ` [PATCH 015/171] iommu: Add a Kconfig for SPL_IOMMU Simon Glass
@ 2023-01-30 14:40 ` Simon Glass
  2023-01-30 16:19   ` Mark Kettenis
  2023-01-30 14:40 ` [PATCH 017/171] virtio: Add a Kconfig for SPL_VIRTIO Simon Glass
                   ` (84 subsequent siblings)
  100 siblings, 1 reply; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:40 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Stefan Roese

This is implicitly used in the source and seems useful, so add it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/pinctrl/mvebu/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/pinctrl/mvebu/Kconfig b/drivers/pinctrl/mvebu/Kconfig
index 7c51d138c8b..0b2be88e3a1 100644
--- a/drivers/pinctrl/mvebu/Kconfig
+++ b/drivers/pinctrl/mvebu/Kconfig
@@ -7,6 +7,10 @@ config PINCTRL_ARMADA_38X
 	   Support pin multiplexing and pin configuration control on
 	   Marvell's Armada-38x SoC.
 
+config SPL_PINCTRL_ARMADA_38X
+	def_bool n  # Armada 38x pin control driver (SPL)
+	depends on SPL && ARMADA_38X && SPL_PINCTRL_FULL
+
 config PINCTRL_ARMADA_37XX
 	depends on ARMADA_3700 && PINCTRL_FULL
 	bool "Armada 37xx pin control driver"
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 017/171] virtio: Add a Kconfig for SPL_VIRTIO
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (15 preceding siblings ...)
  2023-01-30 14:40 ` [PATCH 016/171] iommu: Add a Kconfig for SPL_PINCTRL_ARMADA_38X Simon Glass
@ 2023-01-30 14:40 ` Simon Glass
  2023-01-30 14:40 ` [PATCH 018/171] lib: Add a Kconfig for SPL_BZIP2 Simon Glass
                   ` (83 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:40 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Bin Meng

This is implicitly used in the source and seems useful, so add it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/virtio/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/virtio/Kconfig b/drivers/virtio/Kconfig
index 852f6735b60..410cdf39b67 100644
--- a/drivers/virtio/Kconfig
+++ b/drivers/virtio/Kconfig
@@ -22,6 +22,10 @@ config VIRTIO
 	  This option is selected by any driver which implements the virtio
 	  transport, such as CONFIG_VIRTIO_MMIO or CONFIG_VIRTIO_PCI.
 
+config SPL_VIRTIO
+	def_bool n
+	depends on SPL
+
 config VIRTIO_MMIO
 	bool "Platform bus driver for memory mapped virtio devices"
 	select VIRTIO
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 018/171] lib: Add a Kconfig for SPL_BZIP2
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (16 preceding siblings ...)
  2023-01-30 14:40 ` [PATCH 017/171] virtio: Add a Kconfig for SPL_VIRTIO Simon Glass
@ 2023-01-30 14:40 ` Simon Glass
  2023-01-30 14:40 ` [PATCH 019/171] lib: Add a Kconfig for SPL_GENERATE_ACPI_TABLE Simon Glass
                   ` (82 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:40 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Brandon Maier, Heinrich Schuchardt,
	Ilias Apalodimas, Kautuk Consul, Leo Yu-Chi Liang,
	Philippe Reynes, Rasmus Villemoes, Sughosh Ganu

This is implicitly used in the source and seems useful, so add it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 lib/Kconfig | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/Kconfig b/lib/Kconfig
index 999ae99bf68..a6c269a8535 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -727,6 +727,12 @@ config ZSTD_LIB_MINIFY
 
 endif
 
+config SPL_BZIP2
+	bool "Enable bzip2 decompression support for SPL build"
+	depends on SPL
+	help
+	  This enables support for bzip2 compression algorithm for SPL boot.
+
 config SPL_LZ4
 	bool "Enable LZ4 decompression support in SPL"
 	depends on SPL
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 019/171] lib: Add a Kconfig for SPL_GENERATE_ACPI_TABLE
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (17 preceding siblings ...)
  2023-01-30 14:40 ` [PATCH 018/171] lib: Add a Kconfig for SPL_BZIP2 Simon Glass
@ 2023-01-30 14:40 ` Simon Glass
  2023-01-30 14:50   ` Heinrich Schuchardt
  2023-01-30 14:40 ` [PATCH 020/171] efi: Add a Kconfig for SPL_EFI_LOADER et all Simon Glass
                   ` (81 subsequent siblings)
  100 siblings, 1 reply; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:40 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Brandon Maier, Heinrich Schuchardt,
	Ilias Apalodimas, Kautuk Consul, Leo Yu-Chi Liang,
	Philippe Reynes, Rasmus Villemoes, Sughosh Ganu

This is implicitly used in the source and seems useful, so add it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 lib/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/Kconfig b/lib/Kconfig
index a6c269a8535..47edd0719aa 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -287,6 +287,10 @@ config GENERATE_ACPI_TABLE
 	  by the operating system. It defines platform-independent interfaces
 	  for configuration and power management monitoring.
 
+config SPL_GENERATE_ACPI_TABLE
+	def_bool n  # Generate an ACPI table (SPL)
+	depends on SPL && SUPPORT_ACPI
+
 config SPL_TINY_MEMSET
 	bool "Use a very small memset() in SPL"
 	depends on SPL
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 020/171] efi: Add a Kconfig for SPL_EFI_LOADER et all
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (18 preceding siblings ...)
  2023-01-30 14:40 ` [PATCH 019/171] lib: Add a Kconfig for SPL_GENERATE_ACPI_TABLE Simon Glass
@ 2023-01-30 14:40 ` Simon Glass
  2023-01-30 14:48   ` Heinrich Schuchardt
  2023-01-30 14:40 ` [PATCH 021/171] acpi: Add a Kconfig for SPL_ACPIGEN Simon Glass
                   ` (80 subsequent siblings)
  100 siblings, 1 reply; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:40 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Heinrich Schuchardt, Ilias Apalodimas

This and EFI_DEVICE_PATH_TO_TEXT are implicitly used in the source and
seem useful, so add them.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 lib/efi_loader/Kconfig | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig
index 9fe9a2df9ea..0bd42b9e196 100644
--- a/lib/efi_loader/Kconfig
+++ b/lib/efi_loader/Kconfig
@@ -32,6 +32,10 @@ config EFI_LOADER
 
 if EFI_LOADER
 
+config SPL_EFI_LOADER
+	def_bool n  # Support running UEFI applications (SPL)
+	depends on SPL
+
 config CMD_BOOTEFI_BOOTMGR
 	bool "UEFI Boot Manager"
 	default y
@@ -233,6 +237,10 @@ config EFI_DEVICE_PATH_TO_TEXT
 	  The device path to text protocol converts device nodes and paths to
 	  human readable strings.
 
+config SPL_EFI_DEVICE_PATH_TO_TEXT
+	def_bool n  # Device path to text protocol (SPL)
+	depends on SPL
+
 config EFI_DEVICE_PATH_UTIL
 	bool "Device path utilities protocol"
 	default y
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 021/171] acpi: Add a Kconfig for SPL_ACPIGEN
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (19 preceding siblings ...)
  2023-01-30 14:40 ` [PATCH 020/171] efi: Add a Kconfig for SPL_EFI_LOADER et all Simon Glass
@ 2023-01-30 14:40 ` Simon Glass
  2023-01-30 14:40 ` [PATCH 022/171] rockchip: Add a Kconfig for SPL_RESET_ROCKCHIP Simon Glass
                   ` (79 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:40 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass

This is implicitly used in the source and seems useful, so add it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/core/Kconfig | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/core/Kconfig b/drivers/core/Kconfig
index 22381500afe..f1ef5cd35f3 100644
--- a/drivers/core/Kconfig
+++ b/drivers/core/Kconfig
@@ -453,6 +453,9 @@ config ACPIGEN
 	  things like generating device-specific tables and returning the ACPI
 	  name of a device.
 
+config SPL_ACPIGEN
+	def_bool n
+
 config BOUNCE_BUFFER
 	bool "Include bounce buffer API"
 	help
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 022/171] rockchip: Add a Kconfig for SPL_RESET_ROCKCHIP
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (20 preceding siblings ...)
  2023-01-30 14:40 ` [PATCH 021/171] acpi: Add a Kconfig for SPL_ACPIGEN Simon Glass
@ 2023-01-30 14:40 ` Simon Glass
  2023-01-30 14:40 ` [PATCH 023/171] mediatek: Add a Kconfig for SPL_RESET_MEDIATEK Simon Glass
                   ` (78 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:40 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Amjad Ouled-Ameur, Jeffy Chen, Keerthy,
	Kever Yang, Philipp Tomsich, Sergiu Moga, Sumit Garg,
	T Karthik Reddy, huang lin

This is implicitly used in the source and seems useful, so add it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/reset/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig
index e4039d74744..e2affe20e34 100644
--- a/drivers/reset/Kconfig
+++ b/drivers/reset/Kconfig
@@ -99,6 +99,10 @@ config RESET_ROCKCHIP
 	  though is that some reset signals, like I2C or MISC reset multiple
 	  devices.
 
+config SPL_RESET_ROCKCHIP
+	def_bool n  # Reset controller driver for Rockchip SoCs (SPL)
+	depends on SPL_DM_RESET && ARCH_ROCKCHIP && SPL_CLK
+
 config RESET_HSDK
 	bool "Synopsys HSDK Reset Driver"
 	depends on DM_RESET && TARGET_HSDK
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 023/171] mediatek: Add a Kconfig for SPL_RESET_MEDIATEK
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (21 preceding siblings ...)
  2023-01-30 14:40 ` [PATCH 022/171] rockchip: Add a Kconfig for SPL_RESET_ROCKCHIP Simon Glass
@ 2023-01-30 14:40 ` Simon Glass
  2023-01-30 14:40 ` [PATCH 024/171] Correct SPL use of A003399_NOR_WORKAROUND Simon Glass
                   ` (77 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:40 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Claudiu Beznea, Keerthy, Michal Simek,
	Sergiu Moga, Sumit Garg, T Karthik Reddy

This is implicitly used in the source and seems useful, so add it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/reset/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig
index e2affe20e34..64c3ea332b4 100644
--- a/drivers/reset/Kconfig
+++ b/drivers/reset/Kconfig
@@ -132,6 +132,10 @@ config RESET_MEDIATEK
 	help
 	  Support for reset controller on MediaTek SoCs.
 
+config SPL_RESET_MEDIATEK
+	def_bool n  # Reset controller driver for MediaTek SoCs (SPL)
+	depends on SPL_DM_RESET && ARCH_MEDIATEK && SPL_CLK
+
 config RESET_MTMIPS
 	bool "Reset controller driver for MediaTek MIPS platform"
 	depends on DM_RESET && ARCH_MTMIPS
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 024/171] Correct SPL use of A003399_NOR_WORKAROUND
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (22 preceding siblings ...)
  2023-01-30 14:40 ` [PATCH 023/171] mediatek: Add a Kconfig for SPL_RESET_MEDIATEK Simon Glass
@ 2023-01-30 14:40 ` Simon Glass
  2023-01-30 14:40 ` [PATCH 025/171] Correct SPL use of AHCI Simon Glass
                   ` (76 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:40 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_A003399_NOR_WORKAROUND defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/misc/fsl_ifc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/misc/fsl_ifc.c b/drivers/misc/fsl_ifc.c
index 58b00587363..f165b8c36ba 100644
--- a/drivers/misc/fsl_ifc.c
+++ b/drivers/misc/fsl_ifc.c
@@ -371,7 +371,7 @@ void init_early_memctl_regs(void)
 	for (i = 0 ; i < regs_info.cs_size; i++) {
 		if (regs[i].pr && (regs[i].pr & CSPR_V)) {
 			/* skip setting cspr/csor_ext in below condition */
-			if (!(CONFIG_IS_ENABLED(A003399_NOR_WORKAROUND) &&
+			if (!(IS_ENABLED(CONFIG_A003399_NOR_WORKAROUND) &&
 			      i == 0 &&
 			      ((regs[0].pr & CSPR_MSEL) == CSPR_MSEL_NOR))) {
 				if (regs[i].pr_ext)
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 025/171] Correct SPL use of AHCI
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (23 preceding siblings ...)
  2023-01-30 14:40 ` [PATCH 024/171] Correct SPL use of A003399_NOR_WORKAROUND Simon Glass
@ 2023-01-30 14:40 ` Simon Glass
  2023-01-30 14:40 ` [PATCH 026/171] Correct SPL uses of ALLEYCAT_5 Simon Glass
                   ` (75 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:40 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Nikita Kiryanov

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_AHCI defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 board/compulab/cm_fx6/cm_fx6.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/compulab/cm_fx6/cm_fx6.c b/board/compulab/cm_fx6/cm_fx6.c
index 847ac33ad6b..7bce09e432c 100644
--- a/board/compulab/cm_fx6/cm_fx6.c
+++ b/board/compulab/cm_fx6/cm_fx6.c
@@ -736,7 +736,7 @@ U_BOOT_DRVINFO(cm_fx6_serial) = {
 	.plat = &cm_fx6_mxc_serial_plat,
 };
 
-#if CONFIG_IS_ENABLED(AHCI)
+#if IS_ENABLED(CONFIG_AHCI)
 static int sata_imx_probe(struct udevice *dev)
 {
 	int i, err;
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 026/171] Correct SPL uses of ALLEYCAT_5
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (24 preceding siblings ...)
  2023-01-30 14:40 ` [PATCH 025/171] Correct SPL use of AHCI Simon Glass
@ 2023-01-30 14:40 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 027/171] Correct SPL uses of ARCH_MVEBU Simon Glass
                   ` (74 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:40 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Stefan Roese

This converts 2 usages of this option to the non-SPL form, since there is
no SPL_ALLEYCAT_5 defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 arch/arm/mach-mvebu/arm64-common.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-mvebu/arm64-common.c b/arch/arm/mach-mvebu/arm64-common.c
index 2c94f899f37..b9745c3c99f 100644
--- a/arch/arm/mach-mvebu/arm64-common.c
+++ b/arch/arm/mach-mvebu/arm64-common.c
@@ -53,7 +53,7 @@ __weak int dram_init_banksize(void)
 		return a8k_dram_init_banksize();
 	else if (CONFIG_IS_ENABLED(ARMADA_3700))
 		return a3700_dram_init_banksize();
-	else if (CONFIG_IS_ENABLED(ALLEYCAT_5))
+	else if (IS_ENABLED(CONFIG_ALLEYCAT_5))
 		return alleycat5_dram_init_banksize();
 	else
 		return fdtdec_setup_memory_banksize();
@@ -70,7 +70,7 @@ __weak int dram_init(void)
 	if (CONFIG_IS_ENABLED(ARMADA_3700))
 		return a3700_dram_init();
 
-	if (CONFIG_IS_ENABLED(ALLEYCAT_5))
+	if (IS_ENABLED(CONFIG_ALLEYCAT_5))
 		return alleycat5_dram_init();
 
 	if (fdtdec_setup_mem_size_base() != 0)
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 027/171] Correct SPL uses of ARCH_MVEBU
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (25 preceding siblings ...)
  2023-01-30 14:40 ` [PATCH 026/171] Correct SPL uses of ALLEYCAT_5 Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 028/171] Correct SPL use of ARCH_VERSAL Simon Glass
                   ` (73 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Jaehoon Chung, Peng Fan

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 <sjg@chromium.org>
---

 drivers/mmc/mv_sdhci.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mmc/mv_sdhci.c b/drivers/mmc/mv_sdhci.c
index 336ebf14102..20049981473 100644
--- a/drivers/mmc/mv_sdhci.c
+++ b/drivers/mmc/mv_sdhci.c
@@ -64,7 +64,7 @@ int mv_sdh_init(unsigned long regbase, u32 max_clk, u32 min_clk, u32 quirks)
 	host->ops = &mv_ops;
 #endif
 
-	if (CONFIG_IS_ENABLED(ARCH_MVEBU)) {
+	if (IS_ENABLED(CONFIG_ARCH_MVEBU)) {
 		/* Configure SDHCI MBUS mbus bridge windows */
 		sdhci_mvebu_mbus_config((void __iomem *)regbase);
 	}
@@ -103,7 +103,7 @@ static int mv_sdhci_probe(struct udevice *dev)
 	if (ret)
 		return ret;
 
-	if (CONFIG_IS_ENABLED(ARCH_MVEBU)) {
+	if (IS_ENABLED(CONFIG_ARCH_MVEBU)) {
 		/* Configure SDHCI MBUS mbus bridge windows */
 		sdhci_mvebu_mbus_config(host->ioaddr);
 	}
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 028/171] Correct SPL use of ARCH_VERSAL
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (26 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 027/171] Correct SPL uses of ARCH_MVEBU Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 029/171] Correct SPL use of ARCH_ZYNQ Simon Glass
                   ` (72 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Jagan Teki

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_ARCH_VERSAL defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/spi/cadence_qspi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/cadence_qspi.c b/drivers/spi/cadence_qspi.c
index 328dfb0a388..3ce5f8fb8d8 100644
--- a/drivers/spi/cadence_qspi.c
+++ b/drivers/spi/cadence_qspi.c
@@ -249,7 +249,7 @@ static int cadence_spi_probe(struct udevice *bus)
 
 	priv->wr_delay = 50 * DIV_ROUND_UP(NSEC_PER_SEC, priv->ref_clk_hz);
 
-	if (CONFIG_IS_ENABLED(ARCH_VERSAL)) {
+	if (IS_ENABLED(CONFIG_ARCH_VERSAL)) {
 		/* Versal platform uses spi calibration to set read delay */
 		if (priv->read_delay >= 0)
 			priv->read_delay = -1;
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 029/171] Correct SPL use of ARCH_ZYNQ
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (27 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 028/171] Correct SPL use of ARCH_VERSAL Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 030/171] Correct SPL use of ARM64 Simon Glass
                   ` (71 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Michal Simek

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_ARCH_ZYNQ defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 board/xilinx/common/board.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/xilinx/common/board.c b/board/xilinx/common/board.c
index fbc76eef20d..e2c957fa163 100644
--- a/board/xilinx/common/board.c
+++ b/board/xilinx/common/board.c
@@ -419,7 +419,7 @@ int board_late_init_xilinx(void)
 		ret |= env_set_hex("scriptaddr", gd->ram_base + scriptaddr);
 	}
 
-	if (CONFIG_IS_ENABLED(ARCH_ZYNQ) || CONFIG_IS_ENABLED(MICROBLAZE))
+	if (IS_ENABLED(CONFIG_ARCH_ZYNQ) || CONFIG_IS_ENABLED(MICROBLAZE))
 		bootm_size = min(bootm_size, (phys_size_t)(SZ_512M + SZ_256M));
 
 	ret |= env_set_hex("script_offset_f", CONFIG_BOOT_SCRIPT_OFFSET);
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 030/171] Correct SPL use of ARM64
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (28 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 029/171] Correct SPL use of ARCH_ZYNQ Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 031/171] Correct SPL uses of ARMADA_3700 Simon Glass
                   ` (70 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Fabio Estevam, NXP i.MX U-Boot Team,
	Stefano Babic

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_ARM64 defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 arch/arm/mach-imx/imx_bootaux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-imx/imx_bootaux.c b/arch/arm/mach-imx/imx_bootaux.c
index 8115bf40f1a..1a3e538c4fa 100644
--- a/arch/arm/mach-imx/imx_bootaux.c
+++ b/arch/arm/mach-imx/imx_bootaux.c
@@ -106,7 +106,7 @@ int arch_auxiliary_core_up(u32 core_id, ulong addr)
 		if (!pc)
 			return CMD_RET_FAILURE;
 
-		if (!CONFIG_IS_ENABLED(ARM64))
+		if (!IS_ENABLED(CONFIG_ARM64))
 			stack = 0x0;
 	} else {
 		/*
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 031/171] Correct SPL uses of ARMADA_3700
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (29 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 030/171] Correct SPL use of ARM64 Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 032/171] Correct SPL uses of ARMADA_8K Simon Glass
                   ` (69 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Stefan Roese

This converts 2 usages of this option to the non-SPL form, since there is
no SPL_ARMADA_3700 defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 arch/arm/mach-mvebu/arm64-common.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-mvebu/arm64-common.c b/arch/arm/mach-mvebu/arm64-common.c
index b9745c3c99f..5ab6925480d 100644
--- a/arch/arm/mach-mvebu/arm64-common.c
+++ b/arch/arm/mach-mvebu/arm64-common.c
@@ -51,7 +51,7 @@ __weak int dram_init_banksize(void)
 {
 	if (CONFIG_IS_ENABLED(ARMADA_8K))
 		return a8k_dram_init_banksize();
-	else if (CONFIG_IS_ENABLED(ARMADA_3700))
+	else if (IS_ENABLED(CONFIG_ARMADA_3700))
 		return a3700_dram_init_banksize();
 	else if (IS_ENABLED(CONFIG_ALLEYCAT_5))
 		return alleycat5_dram_init_banksize();
@@ -67,7 +67,7 @@ __weak int dram_init(void)
 			return 0;
 	}
 
-	if (CONFIG_IS_ENABLED(ARMADA_3700))
+	if (IS_ENABLED(CONFIG_ARMADA_3700))
 		return a3700_dram_init();
 
 	if (IS_ENABLED(CONFIG_ALLEYCAT_5))
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 032/171] Correct SPL uses of ARMADA_8K
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (30 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 031/171] Correct SPL uses of ARMADA_3700 Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 033/171] Correct SPL use of ATMEL_PIO4 Simon Glass
                   ` (68 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Stefan Roese

This converts 2 usages of this option to the non-SPL form, since there is
no SPL_ARMADA_8K defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 arch/arm/mach-mvebu/arm64-common.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-mvebu/arm64-common.c b/arch/arm/mach-mvebu/arm64-common.c
index 5ab6925480d..d3a95730be5 100644
--- a/arch/arm/mach-mvebu/arm64-common.c
+++ b/arch/arm/mach-mvebu/arm64-common.c
@@ -49,7 +49,7 @@ const struct mbus_dram_target_info *mvebu_mbus_dram_info(void)
 
 __weak int dram_init_banksize(void)
 {
-	if (CONFIG_IS_ENABLED(ARMADA_8K))
+	if (IS_ENABLED(CONFIG_ARMADA_8K))
 		return a8k_dram_init_banksize();
 	else if (IS_ENABLED(CONFIG_ARMADA_3700))
 		return a3700_dram_init_banksize();
@@ -61,7 +61,7 @@ __weak int dram_init_banksize(void)
 
 __weak int dram_init(void)
 {
-	if (CONFIG_IS_ENABLED(ARMADA_8K)) {
+	if (IS_ENABLED(CONFIG_ARMADA_8K)) {
 		gd->ram_size = a8k_dram_scan_ap_sz();
 		if (gd->ram_size != 0)
 			return 0;
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 033/171] Correct SPL use of ATMEL_PIO4
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (31 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 032/171] Correct SPL uses of ARMADA_8K Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 034/171] Correct SPL use of BNXT_ETH Simon Glass
                   ` (67 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Sergiu Moga

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_ATMEL_PIO4 defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/pinctrl/pinctrl-at91-pio4.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pinctrl/pinctrl-at91-pio4.c b/drivers/pinctrl/pinctrl-at91-pio4.c
index 50e3dd449ab..84b398619c4 100644
--- a/drivers/pinctrl/pinctrl-at91-pio4.c
+++ b/drivers/pinctrl/pinctrl-at91-pio4.c
@@ -271,7 +271,7 @@ static int atmel_pinctrl_bind(struct udevice *dev)
 	ofnode node = dev_ofnode(dev);
 	struct atmel_pinctrl_data *priv = (struct atmel_pinctrl_data *)dev_get_driver_data(dev);
 
-	if (!CONFIG_IS_ENABLED(ATMEL_PIO4))
+	if (!IS_ENABLED(CONFIG_ATMEL_PIO4))
 		return 0;
 
 	/* Obtain a handle to the GPIO driver */
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 034/171] Correct SPL use of BNXT_ETH
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (32 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 033/171] Correct SPL use of ATMEL_PIO4 Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 035/171] Correct SPL use of BOOTSTAGE_FDT Simon Glass
                   ` (66 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Bharat Gooty, Rayagonda Kokatanur

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_BNXT_ETH defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 board/broadcom/bcmns3/ns3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/broadcom/bcmns3/ns3.c b/board/broadcom/bcmns3/ns3.c
index 26652e8f773..2a78df670cc 100644
--- a/board/broadcom/bcmns3/ns3.c
+++ b/board/broadcom/bcmns3/ns3.c
@@ -150,7 +150,7 @@ int board_init(void)
 
 	if (bl33_info->version != BL33_INFO_VERSION)
 		printf("*** warning: ATF BL31 and U-Boot not in sync! ***\n");
-#if CONFIG_IS_ENABLED(BNXT_ETH)
+#if IS_ENABLED(CONFIG_BNXT_ETH)
 	if (chimp_fastboot_optee() != 0)
 		printf("*** warning: secure chimp fastboot failed! ***\n");
 #endif
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 035/171] Correct SPL use of BOOTSTAGE_FDT
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (33 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 034/171] Correct SPL use of BNXT_ETH Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 036/171] Correct SPL uses of BOOTSTAGE_REPORT Simon Glass
                   ` (65 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Daniel Schwierzeck

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_BOOTSTAGE_FDT defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 arch/mips/lib/bootm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/lib/bootm.c b/arch/mips/lib/bootm.c
index 5fda914e6ba..5687ff22cb8 100644
--- a/arch/mips/lib/bootm.c
+++ b/arch/mips/lib/bootm.c
@@ -284,7 +284,7 @@ static void boot_jump_linux(struct bootm_headers *images)
 	if (CONFIG_IS_ENABLED(MALTA))
 		linux_extra = gd->ram_size;
 
-#if CONFIG_IS_ENABLED(BOOTSTAGE_FDT)
+#if IS_ENABLED(CONFIG_BOOTSTAGE_FDT)
 	bootstage_fdt_add_report();
 #endif
 #if CONFIG_IS_ENABLED(BOOTSTAGE_REPORT)
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 036/171] Correct SPL uses of BOOTSTAGE_REPORT
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (34 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 035/171] Correct SPL use of BOOTSTAGE_FDT Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 037/171] Correct SPL use of CMD_BCB Simon Glass
                   ` (64 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Ashok Reddy Soma, Bin Meng,
	Daniel Schwierzeck, Michal Simek

This converts 2 usages of this option to the non-SPL form, since there is
no SPL_BOOTSTAGE_REPORT defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 arch/mips/lib/bootm.c | 2 +-
 arch/x86/lib/bootm.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/mips/lib/bootm.c b/arch/mips/lib/bootm.c
index 5687ff22cb8..ab92bd06b0e 100644
--- a/arch/mips/lib/bootm.c
+++ b/arch/mips/lib/bootm.c
@@ -287,7 +287,7 @@ static void boot_jump_linux(struct bootm_headers *images)
 #if IS_ENABLED(CONFIG_BOOTSTAGE_FDT)
 	bootstage_fdt_add_report();
 #endif
-#if CONFIG_IS_ENABLED(BOOTSTAGE_REPORT)
+#if IS_ENABLED(CONFIG_BOOTSTAGE_REPORT)
 	bootstage_report();
 #endif
 
diff --git a/arch/x86/lib/bootm.c b/arch/x86/lib/bootm.c
index eafcddfa24b..04e475bdc24 100644
--- a/arch/x86/lib/bootm.c
+++ b/arch/x86/lib/bootm.c
@@ -39,7 +39,7 @@ void bootm_announce_and_cleanup(void)
 	timestamp_add_now(TS_START_KERNEL);
 #endif
 	bootstage_mark_name(BOOTSTAGE_ID_BOOTM_HANDOFF, "start_kernel");
-#if CONFIG_IS_ENABLED(BOOTSTAGE_REPORT)
+#if IS_ENABLED(CONFIG_BOOTSTAGE_REPORT)
 	bootstage_report();
 #endif
 
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 037/171] Correct SPL use of CMD_BCB
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (35 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 036/171] Correct SPL uses of BOOTSTAGE_REPORT Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 038/171] Correct SPL uses of CMD_BOOTEFI_BOOTMGR Simon Glass
                   ` (63 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_CMD_BCB defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 include/bcb.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/bcb.h b/include/bcb.h
index 897e83d371f..5edb17aa47d 100644
--- a/include/bcb.h
+++ b/include/bcb.h
@@ -8,7 +8,7 @@
 #ifndef __BCB_H__
 #define __BCB_H__
 
-#if CONFIG_IS_ENABLED(CMD_BCB)
+#if IS_ENABLED(CONFIG_CMD_BCB)
 int bcb_write_reboot_reason(int devnum, char *partp, const char *reasonp);
 #else
 #include <linux/errno.h>
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 038/171] Correct SPL uses of CMD_BOOTEFI_BOOTMGR
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (36 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 037/171] Correct SPL use of CMD_BCB Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 039/171] Correct SPL use of CMD_BOOTI Simon Glass
                   ` (62 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Heinrich Schuchardt, Ilias Apalodimas,
	John Keeping, Masahisa Kojima

This converts 3 usages of this option to the non-SPL form, since there is
no SPL_CMD_BOOTEFI_BOOTMGR defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 boot/Makefile  | 2 +-
 cmd/bootmenu.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/boot/Makefile b/boot/Makefile
index 69c31adb77d..73b5b19816b 100644
--- a/boot/Makefile
+++ b/boot/Makefile
@@ -29,7 +29,7 @@ obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_EFILOADER) += bootmeth_efi.o
 obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_SANDBOX) += bootmeth_sandbox.o
 obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_SCRIPT) += bootmeth_script.o
 ifdef CONFIG_$(SPL_TPL_)BOOTSTD_FULL
-obj-$(CONFIG_$(SPL_TPL_)CMD_BOOTEFI_BOOTMGR) += bootmeth_efi_mgr.o
+obj-$(CONFIG_CMD_BOOTEFI_BOOTMGR) += bootmeth_efi_mgr.o
 obj-$(CONFIG_$(SPL_TPL_)BOOTSTD) += bootflow_menu.o
 endif
 
diff --git a/cmd/bootmenu.c b/cmd/bootmenu.c
index 3236ca5d799..422ab411252 100644
--- a/cmd/bootmenu.c
+++ b/cmd/bootmenu.c
@@ -223,7 +223,7 @@ static int prepare_bootmenu_entry(struct bootmenu_data *menu,
 	return 1;
 }
 
-#if (CONFIG_IS_ENABLED(CMD_BOOTEFI_BOOTMGR)) && (CONFIG_IS_ENABLED(CMD_EFICONFIG))
+#if (IS_ENABLED(CONFIG_CMD_BOOTEFI_BOOTMGR)) && (CONFIG_IS_ENABLED(CMD_EFICONFIG))
 /**
  * prepare_uefi_bootorder_entry() - generate the uefi bootmenu entries
  *
@@ -343,7 +343,7 @@ static struct bootmenu_data *bootmenu_create(int delay)
 	if (ret < 0)
 		goto cleanup;
 
-#if (CONFIG_IS_ENABLED(CMD_BOOTEFI_BOOTMGR)) && (CONFIG_IS_ENABLED(CMD_EFICONFIG))
+#if (IS_ENABLED(CONFIG_CMD_BOOTEFI_BOOTMGR)) && (CONFIG_IS_ENABLED(CMD_EFICONFIG))
 	if (i < MAX_COUNT - 1) {
 		efi_status_t efi_ret;
 
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 039/171] Correct SPL use of CMD_BOOTI
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (37 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 038/171] Correct SPL uses of CMD_BOOTEFI_BOOTMGR Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 040/171] Correct SPL uses of CMD_BOOTM_PRE_LOAD Simon Glass
                   ` (61 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Daniel Golle, Pali Rohár,
	Philippe Reynes, Sean Anderson

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_CMD_BOOTI defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 boot/bootm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/boot/bootm.c b/boot/bootm.c
index 15fce8ad95e..e6715ae6b14 100644
--- a/boot/bootm.c
+++ b/boot/bootm.c
@@ -226,7 +226,7 @@ static int bootm_find_os(struct cmd_tbl *cmdtp, int flag, int argc,
 	}
 
 	if (images.os.type == IH_TYPE_KERNEL_NOLOAD) {
-		if (CONFIG_IS_ENABLED(CMD_BOOTI) &&
+		if (IS_ENABLED(CONFIG_CMD_BOOTI) &&
 		    images.os.arch == IH_ARCH_ARM64) {
 			ulong image_addr;
 			ulong image_size;
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 040/171] Correct SPL uses of CMD_BOOTM_PRE_LOAD
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (38 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 039/171] Correct SPL use of CMD_BOOTI Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 041/171] Correct SPL use of CMD_BOOTZ Simon Glass
                   ` (60 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Daniel Golle, Pali Rohár,
	Philippe Reynes, Sean Anderson

This converts 2 usages of this option to the non-SPL form, since there is
no SPL_CMD_BOOTM_PRE_LOAD defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 boot/bootm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/boot/bootm.c b/boot/bootm.c
index e6715ae6b14..56b82bbb8b7 100644
--- a/boot/bootm.c
+++ b/boot/bootm.c
@@ -100,7 +100,7 @@ static int bootm_pre_load(struct cmd_tbl *cmdtp, int flag, int argc,
 	ulong data_addr = bootm_data_addr(argc, argv);
 	int ret = 0;
 
-	if (CONFIG_IS_ENABLED(CMD_BOOTM_PRE_LOAD))
+	if (IS_ENABLED(CONFIG_CMD_BOOTM_PRE_LOAD))
 		ret = image_pre_load(data_addr);
 
 	if (ret)
@@ -893,7 +893,7 @@ static const void *boot_get_kernel(struct cmd_tbl *cmdtp, int flag, int argc,
 					      &fit_uname_config,
 					      &fit_uname_kernel);
 
-	if (CONFIG_IS_ENABLED(CMD_BOOTM_PRE_LOAD))
+	if (IS_ENABLED(CONFIG_CMD_BOOTM_PRE_LOAD))
 		img_addr += image_load_offset;
 
 	bootstage_mark(BOOTSTAGE_ID_CHECK_MAGIC);
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 041/171] Correct SPL use of CMD_BOOTZ
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (39 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 040/171] Correct SPL uses of CMD_BOOTM_PRE_LOAD Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 042/171] Correct SPL uses of CMD_CLK Simon Glass
                   ` (59 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Patrice Chotard, Patrick Delaunay,
	Sean Anderson, uboot-stm32

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_CMD_BOOTZ defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c b/arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c
index c9f99259054..61caf27bc58 100644
--- a/arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c
+++ b/arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c
@@ -150,7 +150,7 @@ static int do_stm32prog(struct cmd_tbl *cmdtp, int flag, int argc,
 		/* Try bootm for legacy and FIT format image */
 		if (genimg_get_format(uimage) != IMAGE_FORMAT_INVALID)
 			do_bootm(cmdtp, 0, 4, bootm_argv);
-		else if (CONFIG_IS_ENABLED(CMD_BOOTZ))
+		else if (IS_ENABLED(CONFIG_CMD_BOOTZ))
 			do_bootz(cmdtp, 0, 4, bootm_argv);
 	}
 	if (data->script)
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 042/171] Correct SPL uses of CMD_CLK
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (40 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 041/171] Correct SPL use of CMD_BOOTZ Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:54   ` Sean Anderson
  2023-01-30 14:41 ` [PATCH 043/171] Correct SPL uses of CMD_DHCP Simon Glass
                   ` (58 subsequent siblings)
  100 siblings, 1 reply; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Lukasz Majewski, Sean Anderson

This converts 7 usages of this option to the non-SPL form, since there is
no SPL_CMD_CLK defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/clk/clk_k210.c        | 6 +++---
 drivers/clk/imx/clk-imx8.c    | 2 +-
 drivers/clk/imx/clk-imx8.h    | 2 +-
 drivers/clk/imx/clk-imx8qm.c  | 2 +-
 drivers/clk/imx/clk-imx8qxp.c | 2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/clk/clk_k210.c b/drivers/clk/clk_k210.c
index f7d36963f85..c534cc07e09 100644
--- a/drivers/clk/clk_k210.c
+++ b/drivers/clk/clk_k210.c
@@ -308,7 +308,7 @@ enum k210_clk_flags {
  * @gate: An &enum k210_gate_id of this clock's gate
  */
 struct k210_clk_params {
-#if CONFIG_IS_ENABLED(CMD_CLK)
+#if IS_ENABLED(CONFIG_CMD_CLK)
 	const char *name;
 #endif
 	u8 flags;
@@ -326,7 +326,7 @@ struct k210_clk_params {
 };
 
 static const struct k210_clk_params k210_clks[] = {
-#if CONFIG_IS_ENABLED(CMD_CLK)
+#if IS_ENABLED(CONFIG_CMD_CLK)
 #define NAME(_name) .name = (_name),
 #else
 #define NAME(name)
@@ -1284,7 +1284,7 @@ U_BOOT_DRIVER(k210_clk) = {
 	.priv_auto = sizeof(struct k210_clk_priv),
 };
 
-#if CONFIG_IS_ENABLED(CMD_CLK)
+#if IS_ENABLED(CONFIG_CMD_CLK)
 static char show_enabled(struct k210_clk_priv *priv, int id)
 {
 	bool enabled;
diff --git a/drivers/clk/imx/clk-imx8.c b/drivers/clk/imx/clk-imx8.c
index b3dc138c4bb..24bdab28aa4 100644
--- a/drivers/clk/imx/clk-imx8.c
+++ b/drivers/clk/imx/clk-imx8.c
@@ -42,7 +42,7 @@ static int imx8_clk_enable(struct clk *clk)
 	return __imx8_clk_enable(clk, 1);
 }
 
-#if CONFIG_IS_ENABLED(CMD_CLK)
+#if IS_ENABLED(CONFIG_CMD_CLK)
 int soc_clk_dump(void)
 {
 	struct udevice *dev;
diff --git a/drivers/clk/imx/clk-imx8.h b/drivers/clk/imx/clk-imx8.h
index 68ad6755e80..6e850ba2666 100644
--- a/drivers/clk/imx/clk-imx8.h
+++ b/drivers/clk/imx/clk-imx8.h
@@ -9,7 +9,7 @@ struct imx8_clks {
 	const char *name;
 };
 
-#if CONFIG_IS_ENABLED(CMD_CLK)
+#if IS_ENABLED(CONFIG_CMD_CLK)
 extern struct imx8_clks imx8_clk_names[];
 extern int num_clks;
 #endif
diff --git a/drivers/clk/imx/clk-imx8qm.c b/drivers/clk/imx/clk-imx8qm.c
index 7759dc63ee1..b874915ba6a 100644
--- a/drivers/clk/imx/clk-imx8qm.c
+++ b/drivers/clk/imx/clk-imx8qm.c
@@ -16,7 +16,7 @@
 
 #include "clk-imx8.h"
 
-#if CONFIG_IS_ENABLED(CMD_CLK)
+#if IS_ENABLED(CONFIG_CMD_CLK)
 struct imx8_clks imx8_clk_names[] = {
 	{ IMX8QM_A53_DIV, "A53_DIV" },
 	{ IMX8QM_UART0_CLK, "UART0" },
diff --git a/drivers/clk/imx/clk-imx8qxp.c b/drivers/clk/imx/clk-imx8qxp.c
index ffa2fcee0b2..d580b437221 100644
--- a/drivers/clk/imx/clk-imx8qxp.c
+++ b/drivers/clk/imx/clk-imx8qxp.c
@@ -16,7 +16,7 @@
 
 #include "clk-imx8.h"
 
-#if CONFIG_IS_ENABLED(CMD_CLK)
+#if IS_ENABLED(CONFIG_CMD_CLK)
 struct imx8_clks imx8_clk_names[] = {
 	{ IMX8QXP_A35_DIV, "A35_DIV" },
 	{ IMX8QXP_I2C0_CLK, "I2C0" },
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 043/171] Correct SPL uses of CMD_DHCP
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (41 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 042/171] Correct SPL uses of CMD_CLK Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 044/171] Correct SPL uses of CMD_EFICONFIG Simon Glass
                   ` (57 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Fabio Estevam, Kever Yang,
	Matthias Brugger, Peng Fan, Peter Robinson, Philipp Tomsich,
	Tuomas Tynkkynen, Vagrant Cascadian, Ying-Chun Liu (PaulLiu)

This converts 7 usages of this option to the non-SPL form, since there is
no SPL_CMD_DHCP defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 include/configs/am335x_evm.h         | 2 +-
 include/configs/imx8mm-cl-iot-gate.h | 2 +-
 include/configs/imx8mp_rsb3720.h     | 2 +-
 include/configs/j721e_evm.h          | 2 +-
 include/configs/qemu-arm.h           | 2 +-
 include/configs/rockchip-common.h    | 2 +-
 include/configs/rpi.h                | 2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index 1f473b5a150..60006173c0c 100644
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -59,7 +59,7 @@
 # define BOOT_TARGET_PXE(func)
 #endif
 
-#if CONFIG_IS_ENABLED(CMD_DHCP)
+#if IS_ENABLED(CONFIG_CMD_DHCP)
 # define BOOT_TARGET_DHCP(func) func(DHCP, dhcp, na)
 #else
 # define BOOT_TARGET_DHCP(func)
diff --git a/include/configs/imx8mm-cl-iot-gate.h b/include/configs/imx8mm-cl-iot-gate.h
index 2641d7bc960..6f34b79e0db 100644
--- a/include/configs/imx8mm-cl-iot-gate.h
+++ b/include/configs/imx8mm-cl-iot-gate.h
@@ -50,7 +50,7 @@
 # define BOOT_TARGET_PXE(func)
 #endif
 
-#if CONFIG_IS_ENABLED(CMD_DHCP)
+#if IS_ENABLED(CONFIG_CMD_DHCP)
 # define BOOT_TARGET_DHCP(func) func(DHCP, dhcp, na)
 #else
 # define BOOT_TARGET_DHCP(func)
diff --git a/include/configs/imx8mp_rsb3720.h b/include/configs/imx8mp_rsb3720.h
index d4ab6a6207d..86311ee862b 100644
--- a/include/configs/imx8mp_rsb3720.h
+++ b/include/configs/imx8mp_rsb3720.h
@@ -53,7 +53,7 @@
 # define BOOT_TARGET_PXE(func)
 #endif
 
-#if CONFIG_IS_ENABLED(CMD_DHCP)
+#if IS_ENABLED(CONFIG_CMD_DHCP)
 # define BOOT_TARGET_DHCP(func) func(DHCP, dhcp, na)
 #else
 # define BOOT_TARGET_DHCP(func)
diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h
index a7210b5cf3a..f72b31e1d63 100644
--- a/include/configs/j721e_evm.h
+++ b/include/configs/j721e_evm.h
@@ -155,7 +155,7 @@
 # define BOOT_TARGET_PXE(func)
 #endif
 
-#if CONFIG_IS_ENABLED(CMD_DHCP)
+#if IS_ENABLED(CONFIG_CMD_DHCP)
 # define BOOT_TARGET_DHCP(func) func(DHCP, dhcp, na)
 #else
 # define BOOT_TARGET_DHCP(func)
diff --git a/include/configs/qemu-arm.h b/include/configs/qemu-arm.h
index 45bd94ee5c7..8289e338f6a 100644
--- a/include/configs/qemu-arm.h
+++ b/include/configs/qemu-arm.h
@@ -60,7 +60,7 @@
 # define BOOT_TARGET_NVME(func)
 #endif
 
-#if CONFIG_IS_ENABLED(CMD_DHCP)
+#if IS_ENABLED(CONFIG_CMD_DHCP)
 # define BOOT_TARGET_DHCP(func) func(DHCP, dhcp, na)
 #else
 # define BOOT_TARGET_DHCP(func)
diff --git a/include/configs/rockchip-common.h b/include/configs/rockchip-common.h
index 0b23e4c0433..4b849134d12 100644
--- a/include/configs/rockchip-common.h
+++ b/include/configs/rockchip-common.h
@@ -44,7 +44,7 @@
 	#define BOOT_TARGET_PXE(func)
 #endif
 
-#if CONFIG_IS_ENABLED(CMD_DHCP)
+#if IS_ENABLED(CONFIG_CMD_DHCP)
 	#define BOOT_TARGET_DHCP(func) func(DHCP, dhcp, na)
 #else
 	#define BOOT_TARGET_DHCP(func)
diff --git a/include/configs/rpi.h b/include/configs/rpi.h
index c3f8e7bf85c..ffbf4347658 100644
--- a/include/configs/rpi.h
+++ b/include/configs/rpi.h
@@ -143,7 +143,7 @@
 	#define BOOT_TARGET_PXE(func)
 #endif
 
-#if CONFIG_IS_ENABLED(CMD_DHCP)
+#if IS_ENABLED(CONFIG_CMD_DHCP)
 	#define BOOT_TARGET_DHCP(func) func(DHCP, dhcp, na)
 #else
 	#define BOOT_TARGET_DHCP(func)
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 044/171] Correct SPL uses of CMD_EFICONFIG
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (42 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 043/171] Correct SPL uses of CMD_DHCP Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 045/171] Correct SPL use of CMD_ERASEENV Simon Glass
                   ` (56 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Heinrich Schuchardt, Ilias Apalodimas,
	Masahisa Kojima

This converts 2 usages of this option to the non-SPL form, since there is
no SPL_CMD_EFICONFIG defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 cmd/bootmenu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmd/bootmenu.c b/cmd/bootmenu.c
index 422ab411252..ef196bd504f 100644
--- a/cmd/bootmenu.c
+++ b/cmd/bootmenu.c
@@ -223,7 +223,7 @@ static int prepare_bootmenu_entry(struct bootmenu_data *menu,
 	return 1;
 }
 
-#if (IS_ENABLED(CONFIG_CMD_BOOTEFI_BOOTMGR)) && (CONFIG_IS_ENABLED(CMD_EFICONFIG))
+#if (IS_ENABLED(CONFIG_CMD_BOOTEFI_BOOTMGR)) && (IS_ENABLED(CONFIG_CMD_EFICONFIG))
 /**
  * prepare_uefi_bootorder_entry() - generate the uefi bootmenu entries
  *
@@ -343,7 +343,7 @@ static struct bootmenu_data *bootmenu_create(int delay)
 	if (ret < 0)
 		goto cleanup;
 
-#if (IS_ENABLED(CONFIG_CMD_BOOTEFI_BOOTMGR)) && (CONFIG_IS_ENABLED(CMD_EFICONFIG))
+#if (IS_ENABLED(CONFIG_CMD_BOOTEFI_BOOTMGR)) && (IS_ENABLED(CONFIG_CMD_EFICONFIG))
 	if (i < MAX_COUNT - 1) {
 		efi_status_t efi_ret;
 
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 045/171] Correct SPL use of CMD_ERASEENV
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (43 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 044/171] Correct SPL uses of CMD_EFICONFIG Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 046/171] Correct SPL uses of CMD_FDT Simon Glass
                   ` (55 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Joe Hershberger, Wolfgang Denk

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_CMD_ERASEENV defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 include/env_internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/env_internal.h b/include/env_internal.h
index aee6b3e48fa..6a694946468 100644
--- a/include/env_internal.h
+++ b/include/env_internal.h
@@ -189,7 +189,7 @@ struct env_driver {
 #endif
 
 #define ENV_SAVE_PTR(x) (CONFIG_IS_ENABLED(SAVEENV) ? (x) : NULL)
-#define ENV_ERASE_PTR(x) (CONFIG_IS_ENABLED(CMD_ERASEENV) ? (x) : NULL)
+#define ENV_ERASE_PTR(x) (IS_ENABLED(CONFIG_CMD_ERASEENV) ? (x) : NULL)
 
 extern struct hsearch_data env_htab;
 
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 046/171] Correct SPL uses of CMD_FDT
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (44 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 045/171] Correct SPL use of CMD_ERASEENV Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 047/171] Correct SPL use of CMD_FRU Simon Glass
                   ` (54 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Daniel Golle, Marek Vasut,
	Pali Rohár, Philippe Reynes, Sean Anderson

This converts 2 usages of this option to the non-SPL form, since there is
no SPL_CMD_FDT defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 boot/bootm.c     | 2 +-
 boot/image-fdt.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/boot/bootm.c b/boot/bootm.c
index 56b82bbb8b7..2eec60ec7b5 100644
--- a/boot/bootm.c
+++ b/boot/bootm.c
@@ -313,7 +313,7 @@ int bootm_find_images(int flag, int argc, char *const argv[], ulong start,
 		return 1;
 	}
 
-	if (CONFIG_IS_ENABLED(CMD_FDT))
+	if (IS_ENABLED(CONFIG_CMD_FDT))
 		set_working_fdt_addr(map_to_sysmem(images.ft_addr));
 #endif
 
diff --git a/boot/image-fdt.c b/boot/image-fdt.c
index b830a0ab418..408abce096f 100644
--- a/boot/image-fdt.c
+++ b/boot/image-fdt.c
@@ -272,7 +272,7 @@ int boot_relocate_fdt(struct lmb *lmb, char **of_flat_tree, ulong *of_size)
 	*of_flat_tree = of_start;
 	*of_size = of_len;
 
-	if (CONFIG_IS_ENABLED(CMD_FDT))
+	if (IS_ENABLED(CONFIG_CMD_FDT))
 		set_working_fdt_addr(map_to_sysmem(*of_flat_tree));
 	return 0;
 
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 047/171] Correct SPL use of CMD_FRU
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (45 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 046/171] Correct SPL uses of CMD_FDT Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 048/171] Correct SPL use of CMD_HASH Simon Glass
                   ` (53 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Michal Simek

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_CMD_FRU defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 board/xilinx/common/board.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/xilinx/common/board.c b/board/xilinx/common/board.c
index e2c957fa163..3dea238466d 100644
--- a/board/xilinx/common/board.c
+++ b/board/xilinx/common/board.c
@@ -306,7 +306,7 @@ static int xilinx_read_eeprom_single(char *name,
 
 	debug("%s: i2c memory detected: %s\n", __func__, name);
 
-	if (CONFIG_IS_ENABLED(CMD_FRU) && xilinx_detect_fru(buffer))
+	if (IS_ENABLED(CONFIG_CMD_FRU) && xilinx_detect_fru(buffer))
 		return xilinx_read_eeprom_fru(dev, name, desc);
 
 	if (xilinx_detect_legacy(buffer))
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 048/171] Correct SPL use of CMD_HASH
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (46 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 047/171] Correct SPL use of CMD_FRU Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 049/171] Correct SPL use of CMD_MBR Simon Glass
                   ` (52 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_CMD_HASH defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 common/hash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/hash.c b/common/hash.c
index 9e53545dbde..2ce79b9908b 100644
--- a/common/hash.c
+++ b/common/hash.c
@@ -327,7 +327,7 @@ static struct hash_algo hash_algo[] = {
 
 /* Try to minimize code size for boards that don't want much hashing */
 #if CONFIG_IS_ENABLED(SHA256) || CONFIG_IS_ENABLED(CMD_SHA1SUM) || \
-	CONFIG_IS_ENABLED(CRC32_VERIFY) || CONFIG_IS_ENABLED(CMD_HASH) || \
+	CONFIG_IS_ENABLED(CRC32_VERIFY) || IS_ENABLED(CONFIG_CMD_HASH) || \
 	CONFIG_IS_ENABLED(SHA384) || CONFIG_IS_ENABLED(SHA512)
 #define multi_hash()	1
 #else
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 049/171] Correct SPL use of CMD_MBR
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (47 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 048/171] Correct SPL use of CMD_HASH Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 050/171] Correct SPL uses of CMD_MMC Simon Glass
                   ` (51 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_CMD_MBR defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 disk/part_dos.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/disk/part_dos.c b/disk/part_dos.c
index a94702c5f34..56e61884def 100644
--- a/disk/part_dos.c
+++ b/disk/part_dos.c
@@ -318,7 +318,7 @@ int is_valid_dos_buf(void *buf)
 	return test_block_type(buf) == DOS_MBR ? 0 : -1;
 }
 
-#if CONFIG_IS_ENABLED(CMD_MBR)
+#if IS_ENABLED(CONFIG_CMD_MBR)
 static void lba_to_chs(lbaint_t lba, unsigned char *rc, unsigned char *rh,
 		       unsigned char *rs)
 {
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 050/171] Correct SPL uses of CMD_MMC
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (48 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 049/171] Correct SPL use of CMD_MBR Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 051/171] Correct SPL use of CMD_NET Simon Glass
                   ` (50 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Aswath Govindraju, Bryan Brattlof,
	Fabio Estevam, Judith Mendez, Kever Yang, Matthias Brugger,
	Peng Fan, Peter Robinson, Philipp Tomsich, Vagrant Cascadian,
	Vignesh Raghavendra, Ying-Chun Liu (PaulLiu)

This converts 6 usages of this option to the non-SPL form, since there is
no SPL_CMD_MMC defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 include/configs/am62ax_evm.h         | 4 ++--
 include/configs/imx8mm-cl-iot-gate.h | 2 +-
 include/configs/imx8mp_rsb3720.h     | 2 +-
 include/configs/rockchip-common.h    | 2 +-
 include/configs/rpi.h                | 2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/include/configs/am62ax_evm.h b/include/configs/am62ax_evm.h
index cdd639b9309..a18b1572b13 100644
--- a/include/configs/am62ax_evm.h
+++ b/include/configs/am62ax_evm.h
@@ -71,12 +71,12 @@
 #define BOOTENV_DEV_NAME_TI_MMC(devtyeu, devtypel, instance)		\
 	"ti_mmc "
 
-#if CONFIG_IS_ENABLED(CMD_MMC)
+#if IS_ENABLED(CONFIG_CMD_MMC)
 	#define BOOT_TARGET_MMC(func)					\
 		func(TI_MMC, ti_mmc, na)
 #else
 	#define BOOT_TARGET_MMC(func)
-#endif /* CONFIG_IS_ENABLED(CMD_MMC) */
+#endif /* IS_ENABLED(CONFIG_CMD_MMC) */
 
 #define BOOT_TARGET_DEVICES(func)					\
 	BOOT_TARGET_MMC(func)
diff --git a/include/configs/imx8mm-cl-iot-gate.h b/include/configs/imx8mm-cl-iot-gate.h
index 6f34b79e0db..3a666acb736 100644
--- a/include/configs/imx8mm-cl-iot-gate.h
+++ b/include/configs/imx8mm-cl-iot-gate.h
@@ -30,7 +30,7 @@
 	EFI_GUID(0x0bf1165c, 0x1831, 0x4864, 0x94, 0x5e, \
 		 0xac, 0x3d, 0x38, 0x48, 0xf4, 0x99)
 
-#if CONFIG_IS_ENABLED(CMD_MMC)
+#if IS_ENABLED(CONFIG_CMD_MMC)
 # define BOOT_TARGET_MMC(func) \
 	func(MMC, mmc, 2)      \
 	func(MMC, mmc, 0)
diff --git a/include/configs/imx8mp_rsb3720.h b/include/configs/imx8mp_rsb3720.h
index 86311ee862b..8008631a7c0 100644
--- a/include/configs/imx8mp_rsb3720.h
+++ b/include/configs/imx8mp_rsb3720.h
@@ -39,7 +39,7 @@
 
 #endif
 
-#if CONFIG_IS_ENABLED(CMD_MMC)
+#if IS_ENABLED(CONFIG_CMD_MMC)
 # define BOOT_TARGET_MMC(func) \
 	func(MMC, mmc, 2)      \
 	func(MMC, mmc, 1)
diff --git a/include/configs/rockchip-common.h b/include/configs/rockchip-common.h
index 4b849134d12..6a283dcfe78 100644
--- a/include/configs/rockchip-common.h
+++ b/include/configs/rockchip-common.h
@@ -12,7 +12,7 @@
 #ifndef CONFIG_SPL_BUILD
 
 /* First try to boot from SD (index 1), then eMMC (index 0) */
-#if CONFIG_IS_ENABLED(CMD_MMC)
+#if IS_ENABLED(CONFIG_CMD_MMC)
 	#define BOOT_TARGET_MMC(func) \
 		func(MMC, mmc, 1) \
 		func(MMC, mmc, 0)
diff --git a/include/configs/rpi.h b/include/configs/rpi.h
index ffbf4347658..9e63fe9ca96 100644
--- a/include/configs/rpi.h
+++ b/include/configs/rpi.h
@@ -122,7 +122,7 @@
 	"fdt_addr_r=0x02600000\0" \
 	"ramdisk_addr_r=0x02700000\0"
 
-#if CONFIG_IS_ENABLED(CMD_MMC)
+#if IS_ENABLED(CONFIG_CMD_MMC)
 	#define BOOT_TARGET_MMC(func) \
 		func(MMC, mmc, 0) \
 		func(MMC, mmc, 1) \
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 051/171] Correct SPL use of CMD_NET
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (49 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 050/171] Correct SPL uses of CMD_MMC Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 052/171] Correct SPL use of CMD_NVEDIT_EFI Simon Glass
                   ` (49 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Kever Yang, Philipp Tomsich

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_CMD_NET defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 arch/arm/mach-rockchip/misc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-rockchip/misc.c b/arch/arm/mach-rockchip/misc.c
index 87eebd9872d..01aedadf2c6 100644
--- a/arch/arm/mach-rockchip/misc.c
+++ b/arch/arm/mach-rockchip/misc.c
@@ -23,7 +23,7 @@
 
 int rockchip_setup_macaddr(void)
 {
-#if CONFIG_IS_ENABLED(CMD_NET)
+#if IS_ENABLED(CONFIG_CMD_NET)
 	int ret;
 	const char *cpuid = env_get("cpuid#");
 	u8 hash[SHA256_SUM_LEN];
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 052/171] Correct SPL use of CMD_NVEDIT_EFI
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (50 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 051/171] Correct SPL use of CMD_NET Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 053/171] Correct SPL uses of CMD_NVME Simon Glass
                   ` (48 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Samuel Dionne-Riel

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_CMD_NVEDIT_EFI defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 cmd/nvedit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/nvedit.c b/cmd/nvedit.c
index e2a5f0089e9..7cbc3fd573a 100644
--- a/cmd/nvedit.c
+++ b/cmd/nvedit.c
@@ -231,7 +231,7 @@ static int _do_env_set(int flag, int argc, char *const argv[], int env_flag)
 
 	debug("Initial value for argc=%d\n", argc);
 
-#if CONFIG_IS_ENABLED(CMD_NVEDIT_EFI)
+#if !IS_ENABLED(CONFIG_SPL_BUILD) && IS_ENABLED(CONFIG_CMD_NVEDIT_EFI)
 	if (argc > 1 && argv[1][0] == '-' && argv[1][1] == 'e')
 		return do_env_set_efi(NULL, flag, --argc, ++argv);
 #endif
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 053/171] Correct SPL uses of CMD_NVME
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (51 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 052/171] Correct SPL use of CMD_NVEDIT_EFI Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 054/171] Correct SPL use of CMD_PSTORE Simon Glass
                   ` (47 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Kever Yang, Mark Kettenis,
	Philipp Tomsich, Tuomas Tynkkynen, Vagrant Cascadian

This converts 3 usages of this option to the non-SPL form, since there is
no SPL_CMD_NVME defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 include/configs/apple.h           | 2 +-
 include/configs/qemu-arm.h        | 2 +-
 include/configs/rockchip-common.h | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/configs/apple.h b/include/configs/apple.h
index fe7d11bcdb3..ee6e1169b3b 100644
--- a/include/configs/apple.h
+++ b/include/configs/apple.h
@@ -9,7 +9,7 @@
 	"stdout=serial,vidconsole\0" \
 	"stderr=serial,vidconsole\0"
 
-#if CONFIG_IS_ENABLED(CMD_NVME)
+#if IS_ENABLED(CONFIG_CMD_NVME)
 	#define BOOT_TARGET_NVME(func) func(NVME, nvme, 0)
 #else
 	#define BOOT_TARGET_NVME(func)
diff --git a/include/configs/qemu-arm.h b/include/configs/qemu-arm.h
index 8289e338f6a..4cae2b103e6 100644
--- a/include/configs/qemu-arm.h
+++ b/include/configs/qemu-arm.h
@@ -54,7 +54,7 @@
 # define BOOT_TARGET_VIRTIO(func)
 #endif
 
-#if CONFIG_IS_ENABLED(CMD_NVME)
+#if IS_ENABLED(CONFIG_CMD_NVME)
 # define BOOT_TARGET_NVME(func) func(NVME, nvme, 0)
 #else
 # define BOOT_TARGET_NVME(func)
diff --git a/include/configs/rockchip-common.h b/include/configs/rockchip-common.h
index 6a283dcfe78..2e1325fc816 100644
--- a/include/configs/rockchip-common.h
+++ b/include/configs/rockchip-common.h
@@ -20,7 +20,7 @@
 	#define BOOT_TARGET_MMC(func)
 #endif
 
-#if CONFIG_IS_ENABLED(CMD_NVME)
+#if IS_ENABLED(CONFIG_CMD_NVME)
 	#define BOOT_TARGET_NVME(func) func(NVME, nvme, 0)
 #else
 	#define BOOT_TARGET_NVME(func)
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 054/171] Correct SPL use of CMD_PSTORE
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (52 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 053/171] Correct SPL uses of CMD_NVME Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 055/171] Correct SPL uses of CMD_PXE Simon Glass
                   ` (46 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Daniel Golle, Marek Vasut

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_CMD_PSTORE defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 boot/image-fdt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/boot/image-fdt.c b/boot/image-fdt.c
index 408abce096f..714d05d1a53 100644
--- a/boot/image-fdt.c
+++ b/boot/image-fdt.c
@@ -638,7 +638,7 @@ int image_setup_libfdt(struct bootm_headers *images, void *blob,
 
 	/* Update ethernet nodes */
 	fdt_fixup_ethernet(blob);
-#if CONFIG_IS_ENABLED(CMD_PSTORE)
+#if IS_ENABLED(CONFIG_CMD_PSTORE)
 	/* Append PStore configuration */
 	fdt_fixup_pstore(blob);
 #endif
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 055/171] Correct SPL uses of CMD_PXE
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (53 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 054/171] Correct SPL use of CMD_PSTORE Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 056/171] Correct SPL uses of CMD_SCSI Simon Glass
                   ` (45 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Fabio Estevam, Kever Yang,
	Matthias Brugger, Peng Fan, Peter Robinson, Philipp Tomsich,
	Vagrant Cascadian, Ying-Chun Liu (PaulLiu)

This converts 6 usages of this option to the non-SPL form, since there is
no SPL_CMD_PXE defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 include/configs/am335x_evm.h         | 2 +-
 include/configs/imx8mm-cl-iot-gate.h | 2 +-
 include/configs/imx8mp_rsb3720.h     | 2 +-
 include/configs/j721e_evm.h          | 2 +-
 include/configs/rockchip-common.h    | 2 +-
 include/configs/rpi.h                | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index 60006173c0c..d66614598a1 100644
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -53,7 +53,7 @@
 # define BOOT_TARGET_USB(func)
 #endif
 
-#if CONFIG_IS_ENABLED(CMD_PXE)
+#if IS_ENABLED(CONFIG_CMD_PXE)
 # define BOOT_TARGET_PXE(func) func(PXE, pxe, na)
 #else
 # define BOOT_TARGET_PXE(func)
diff --git a/include/configs/imx8mm-cl-iot-gate.h b/include/configs/imx8mm-cl-iot-gate.h
index 3a666acb736..c6d7cfbcbcd 100644
--- a/include/configs/imx8mm-cl-iot-gate.h
+++ b/include/configs/imx8mm-cl-iot-gate.h
@@ -44,7 +44,7 @@
 # define BOOT_TARGET_USB(func)
 #endif
 
-#if CONFIG_IS_ENABLED(CMD_PXE)
+#if IS_ENABLED(CONFIG_CMD_PXE)
 # define BOOT_TARGET_PXE(func) func(PXE, pxe, na)
 #else
 # define BOOT_TARGET_PXE(func)
diff --git a/include/configs/imx8mp_rsb3720.h b/include/configs/imx8mp_rsb3720.h
index 8008631a7c0..6ebdeb0f11b 100644
--- a/include/configs/imx8mp_rsb3720.h
+++ b/include/configs/imx8mp_rsb3720.h
@@ -47,7 +47,7 @@
 # define BOOT_TARGET_MMC(func)
 #endif
 
-#if CONFIG_IS_ENABLED(CMD_PXE)
+#if IS_ENABLED(CONFIG_CMD_PXE)
 # define BOOT_TARGET_PXE(func) func(PXE, pxe, na)
 #else
 # define BOOT_TARGET_PXE(func)
diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h
index f72b31e1d63..cda2fcea0ab 100644
--- a/include/configs/j721e_evm.h
+++ b/include/configs/j721e_evm.h
@@ -149,7 +149,7 @@
 	DFU_ALT_INFO_RAM \
 	DFU_ALT_INFO_OSPI
 
-#if CONFIG_IS_ENABLED(CMD_PXE)
+#if IS_ENABLED(CONFIG_CMD_PXE)
 # define BOOT_TARGET_PXE(func) func(PXE, pxe, na)
 #else
 # define BOOT_TARGET_PXE(func)
diff --git a/include/configs/rockchip-common.h b/include/configs/rockchip-common.h
index 2e1325fc816..332338a876d 100644
--- a/include/configs/rockchip-common.h
+++ b/include/configs/rockchip-common.h
@@ -38,7 +38,7 @@
 	#define BOOT_TARGET_USB(func)
 #endif
 
-#if CONFIG_IS_ENABLED(CMD_PXE)
+#if IS_ENABLED(CONFIG_CMD_PXE)
 	#define BOOT_TARGET_PXE(func) func(PXE, pxe, na)
 #else
 	#define BOOT_TARGET_PXE(func)
diff --git a/include/configs/rpi.h b/include/configs/rpi.h
index 9e63fe9ca96..2593edcf96b 100644
--- a/include/configs/rpi.h
+++ b/include/configs/rpi.h
@@ -137,7 +137,7 @@
 	#define BOOT_TARGET_USB(func)
 #endif
 
-#if CONFIG_IS_ENABLED(CMD_PXE)
+#if IS_ENABLED(CONFIG_CMD_PXE)
 	#define BOOT_TARGET_PXE(func) func(PXE, pxe, na)
 #else
 	#define BOOT_TARGET_PXE(func)
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 056/171] Correct SPL uses of CMD_SCSI
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (54 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 055/171] Correct SPL uses of CMD_PXE Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 057/171] Correct SPL uses of CMD_SF Simon Glass
                   ` (44 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Kever Yang, Philipp Tomsich,
	Tuomas Tynkkynen, Vagrant Cascadian

This converts 2 usages of this option to the non-SPL form, since there is
no SPL_CMD_SCSI defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 include/configs/qemu-arm.h        | 2 +-
 include/configs/rockchip-common.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/configs/qemu-arm.h b/include/configs/qemu-arm.h
index 4cae2b103e6..23fba23ce0a 100644
--- a/include/configs/qemu-arm.h
+++ b/include/configs/qemu-arm.h
@@ -42,7 +42,7 @@
 # define BOOT_TARGET_USB(func)
 #endif
 
-#if CONFIG_IS_ENABLED(CMD_SCSI)
+#if IS_ENABLED(CONFIG_CMD_SCSI)
 # define BOOT_TARGET_SCSI(func) func(SCSI, scsi, 0)
 #else
 # define BOOT_TARGET_SCSI(func)
diff --git a/include/configs/rockchip-common.h b/include/configs/rockchip-common.h
index 332338a876d..0f47c111745 100644
--- a/include/configs/rockchip-common.h
+++ b/include/configs/rockchip-common.h
@@ -26,7 +26,7 @@
 	#define BOOT_TARGET_NVME(func)
 #endif
 
-#if CONFIG_IS_ENABLED(CMD_SCSI)
+#if IS_ENABLED(CONFIG_CMD_SCSI)
 	#define BOOT_TARGET_SCSI(func) func(SCSI, scsi, 0)
 #else
 	#define BOOT_TARGET_SCSI(func)
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 057/171] Correct SPL uses of CMD_SF
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (55 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 056/171] Correct SPL uses of CMD_SCSI Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 058/171] Correct SPL use of CMD_SHA1SUM Simon Glass
                   ` (43 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Kever Yang, Philipp Tomsich, Vagrant Cascadian

This converts 2 usages of this option to the non-SPL form, since there is
no SPL_CMD_SF defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 include/configs/rockchip-common.h | 2 +-
 include/environment/distro/sf.h   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/configs/rockchip-common.h b/include/configs/rockchip-common.h
index 0f47c111745..96deb4b3b6c 100644
--- a/include/configs/rockchip-common.h
+++ b/include/configs/rockchip-common.h
@@ -50,7 +50,7 @@
 	#define BOOT_TARGET_DHCP(func)
 #endif
 
-#if CONFIG_IS_ENABLED(CMD_SF)
+#if IS_ENABLED(CONFIG_CMD_SF)
 	#define BOOT_TARGET_SF(func)	func(SF, sf, 0)
 #else
 	#define BOOT_TARGET_SF(func)
diff --git a/include/environment/distro/sf.h b/include/environment/distro/sf.h
index 62624d553c0..ee48a8a4e8f 100644
--- a/include/environment/distro/sf.h
+++ b/include/environment/distro/sf.h
@@ -8,7 +8,7 @@
 #ifndef __DISTRO_SF_CONFIG_H
 #define __DISTRO_SF_CONFIG_H
 
-#if CONFIG_IS_ENABLED(CMD_SF)
+#if IS_ENABLED(CONFIG_CMD_SF)
 #define BOOTENV_SHARED_SF(devtypel)				\
 	#devtypel "_boot="					\
 	"if " #devtypel " probe ${busnum}; then "		\
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 058/171] Correct SPL use of CMD_SHA1SUM
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (56 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 057/171] Correct SPL uses of CMD_SF Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 059/171] Correct SPL use of CMD_STBOARD Simon Glass
                   ` (42 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_CMD_SHA1SUM defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 common/hash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/hash.c b/common/hash.c
index 2ce79b9908b..9a52d6073ce 100644
--- a/common/hash.c
+++ b/common/hash.c
@@ -326,7 +326,7 @@ static struct hash_algo hash_algo[] = {
 };
 
 /* Try to minimize code size for boards that don't want much hashing */
-#if CONFIG_IS_ENABLED(SHA256) || CONFIG_IS_ENABLED(CMD_SHA1SUM) || \
+#if CONFIG_IS_ENABLED(SHA256) || IS_ENABLED(CONFIG_CMD_SHA1SUM) || \
 	CONFIG_IS_ENABLED(CRC32_VERIFY) || IS_ENABLED(CONFIG_CMD_HASH) || \
 	CONFIG_IS_ENABLED(SHA384) || CONFIG_IS_ENABLED(SHA512)
 #define multi_hash()	1
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 059/171] Correct SPL use of CMD_STBOARD
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (57 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 058/171] Correct SPL use of CMD_SHA1SUM Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 060/171] Correct SPL use of CMD_STM32PROG Simon Glass
                   ` (41 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Patrice Chotard, Patrick Delaunay, uboot-stm32

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_CMD_STBOARD defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 board/st/stm32mp1/stm32mp1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c
index 4536c1c673c..914f900ac86 100644
--- a/board/st/stm32mp1/stm32mp1.c
+++ b/board/st/stm32mp1/stm32mp1.c
@@ -129,7 +129,7 @@ int checkboard(void)
 		 fdt_compat && fdt_compat_len ? fdt_compat : "");
 
 	/* display the STMicroelectronics board identification */
-	if (CONFIG_IS_ENABLED(CMD_STBOARD)) {
+	if (IS_ENABLED(CONFIG_CMD_STBOARD)) {
 		ret = uclass_get_device_by_driver(UCLASS_MISC,
 						  DM_DRIVER_GET(stm32mp_bsec),
 						  &dev);
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 060/171] Correct SPL use of CMD_STM32PROG
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (58 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 059/171] Correct SPL use of CMD_STBOARD Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 061/171] Correct SPL uses of CMD_TFTPPUT Simon Glass
                   ` (40 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Patrice Chotard, Patrick Delaunay, uboot-stm32

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_CMD_STM32PROG defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 board/st/common/stm32mp_mtdparts.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/st/common/stm32mp_mtdparts.c b/board/st/common/stm32mp_mtdparts.c
index bc2ce600287..b866dd5038c 100644
--- a/board/st/common/stm32mp_mtdparts.c
+++ b/board/st/common/stm32mp_mtdparts.c
@@ -96,7 +96,7 @@ void board_mtdparts_default(const char **mtdids, const char **mtdparts)
 	case BOOT_SERIAL_UART:
 	case BOOT_SERIAL_USB:
 		serial = true;
-		if (CONFIG_IS_ENABLED(CMD_STM32PROG)) {
+		if (IS_ENABLED(CONFIG_CMD_STM32PROG)) {
 #ifdef CONFIG_STM32MP15X_STM32IMAGE
 			tee = stm32prog_get_tee_partitions();
 #endif
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 061/171] Correct SPL uses of CMD_TFTPPUT
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (59 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 060/171] Correct SPL use of CMD_STM32PROG Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 062/171] Correct SPL uses of CMD_USB Simon Glass
                   ` (39 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Heinrich Schuchardt, Joel Stanley,
	Ramon Fried, Samuel Mendoza-Jonas, Viacheslav Mitrofanov,
	Ying-Chun Liu (PaulLiu)

This converts 3 usages of this option to the non-SPL form, since there is
no SPL_CMD_TFTPPUT defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 cmd/net.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cmd/net.c b/cmd/net.c
index 4227321871c..d5e20843dda 100644
--- a/cmd/net.c
+++ b/cmd/net.c
@@ -280,7 +280,7 @@ static int parse_args(enum proto_t proto, int argc, char *const argv[])
 
 	switch (argc) {
 	case 1:
-		if (CONFIG_IS_ENABLED(CMD_TFTPPUT) && proto == TFTPPUT)
+		if (IS_ENABLED(CONFIG_CMD_TFTPPUT) && proto == TFTPPUT)
 			return 1;
 
 		/* refresh bootfile name from env */
@@ -289,7 +289,7 @@ static int parse_args(enum proto_t proto, int argc, char *const argv[])
 		break;
 
 	case 2:
-		if (CONFIG_IS_ENABLED(CMD_TFTPPUT) && proto == TFTPPUT)
+		if (IS_ENABLED(CONFIG_CMD_TFTPPUT) && proto == TFTPPUT)
 			return 1;
 		/*
 		 * Only one arg - accept two forms:
@@ -311,7 +311,7 @@ static int parse_args(enum proto_t proto, int argc, char *const argv[])
 		break;
 
 	case 3:
-		if (CONFIG_IS_ENABLED(CMD_TFTPPUT) && proto == TFTPPUT) {
+		if (IS_ENABLED(CONFIG_CMD_TFTPPUT) && proto == TFTPPUT) {
 			if (parse_addr_size(argv))
 				return 1;
 		} else {
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 062/171] Correct SPL uses of CMD_USB
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (60 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 061/171] Correct SPL uses of CMD_TFTPPUT Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 063/171] Correct SPL use of CMD_VIRTIO Simon Glass
                   ` (38 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Jan Kiszka, Kever Yang, Le Jin,
	Mark Kettenis, Matthias Brugger, Peter Robinson, Philipp Tomsich,
	Tuomas Tynkkynen, Vagrant Cascadian, Ying-Chun Liu (PaulLiu)

This converts 8 usages of this option to the non-SPL form, since there is
no SPL_CMD_USB defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 include/configs/am335x_evm.h         | 2 +-
 include/configs/apple.h              | 2 +-
 include/configs/imx8mm-cl-iot-gate.h | 2 +-
 include/configs/iot2050.h            | 2 +-
 include/configs/qemu-arm.h           | 2 +-
 include/configs/rockchip-common.h    | 2 +-
 include/configs/rpi.h                | 2 +-
 include/configs/tegra-common-post.h  | 2 +-
 8 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index d66614598a1..cef19090f68 100644
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -47,7 +47,7 @@
 #define BOOTENV_DEV_NAME_NAND(devtypeu, devtypel, instance) \
 	#devtypel #instance " "
 
-#if CONFIG_IS_ENABLED(CMD_USB)
+#if IS_ENABLED(CONFIG_CMD_USB)
 # define BOOT_TARGET_USB(func) func(USB, usb, 0)
 #else
 # define BOOT_TARGET_USB(func)
diff --git a/include/configs/apple.h b/include/configs/apple.h
index ee6e1169b3b..0576bc04c94 100644
--- a/include/configs/apple.h
+++ b/include/configs/apple.h
@@ -15,7 +15,7 @@
 	#define BOOT_TARGET_NVME(func)
 #endif
 
-#if CONFIG_IS_ENABLED(CMD_USB)
+#if IS_ENABLED(CONFIG_CMD_USB)
 	#define BOOT_TARGET_USB(func) func(USB, usb, 0)
 #else
 	#define BOOT_TARGET_USB(func)
diff --git a/include/configs/imx8mm-cl-iot-gate.h b/include/configs/imx8mm-cl-iot-gate.h
index c6d7cfbcbcd..44e45e7791d 100644
--- a/include/configs/imx8mm-cl-iot-gate.h
+++ b/include/configs/imx8mm-cl-iot-gate.h
@@ -38,7 +38,7 @@
 # define BOOT_TARGET_MMC(func)
 #endif
 
-#if CONFIG_IS_ENABLED(CMD_USB)
+#if IS_ENABLED(CONFIG_CMD_USB)
 # define BOOT_TARGET_USB(func) func(USB, usb, 0)
 #else
 # define BOOT_TARGET_USB(func)
diff --git a/include/configs/iot2050.h b/include/configs/iot2050.h
index 7d087413362..cfff46ce339 100644
--- a/include/configs/iot2050.h
+++ b/include/configs/iot2050.h
@@ -19,7 +19,7 @@
 #define EXTRA_ENV_IOT2050_BOARD_SETTINGS				\
 	"usb_pgood_delay=900\0"
 
-#if CONFIG_IS_ENABLED(CMD_USB)
+#if IS_ENABLED(CONFIG_CMD_USB)
 # define BOOT_TARGET_USB(func) \
 	func(USB, usb, 0) \
 	func(USB, usb, 1) \
diff --git a/include/configs/qemu-arm.h b/include/configs/qemu-arm.h
index 23fba23ce0a..60ac5489ac1 100644
--- a/include/configs/qemu-arm.h
+++ b/include/configs/qemu-arm.h
@@ -36,7 +36,7 @@
 
 /* Environment options */
 
-#if CONFIG_IS_ENABLED(CMD_USB)
+#if IS_ENABLED(CONFIG_CMD_USB)
 # define BOOT_TARGET_USB(func) func(USB, usb, 0)
 #else
 # define BOOT_TARGET_USB(func)
diff --git a/include/configs/rockchip-common.h b/include/configs/rockchip-common.h
index 96deb4b3b6c..37321f964fb 100644
--- a/include/configs/rockchip-common.h
+++ b/include/configs/rockchip-common.h
@@ -32,7 +32,7 @@
 	#define BOOT_TARGET_SCSI(func)
 #endif
 
-#if CONFIG_IS_ENABLED(CMD_USB)
+#if IS_ENABLED(CONFIG_CMD_USB)
 	#define BOOT_TARGET_USB(func) func(USB, usb, 0)
 #else
 	#define BOOT_TARGET_USB(func)
diff --git a/include/configs/rpi.h b/include/configs/rpi.h
index 2593edcf96b..032d228f477 100644
--- a/include/configs/rpi.h
+++ b/include/configs/rpi.h
@@ -131,7 +131,7 @@
 	#define BOOT_TARGET_MMC(func)
 #endif
 
-#if CONFIG_IS_ENABLED(CMD_USB)
+#if IS_ENABLED(CONFIG_CMD_USB)
 	#define BOOT_TARGET_USB(func) func(USB, usb, 0)
 #else
 	#define BOOT_TARGET_USB(func)
diff --git a/include/configs/tegra-common-post.h b/include/configs/tegra-common-post.h
index 0fdb5a81605..991ffbb7dff 100644
--- a/include/configs/tegra-common-post.h
+++ b/include/configs/tegra-common-post.h
@@ -7,7 +7,7 @@
 #ifndef __TEGRA_COMMON_POST_H
 #define __TEGRA_COMMON_POST_H
 
-#if CONFIG_IS_ENABLED(CMD_USB)
+#if IS_ENABLED(CONFIG_CMD_USB)
 # define BOOT_TARGET_USB(func) func(USB, usb, 0)
 #else
 # define BOOT_TARGET_USB(func)
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 063/171] Correct SPL use of CMD_VIRTIO
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (61 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 062/171] Correct SPL uses of CMD_USB Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 064/171] Correct SPL uses of CPU_MICROBLAZE Simon Glass
                   ` (37 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Tuomas Tynkkynen

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_CMD_VIRTIO defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 include/configs/qemu-arm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/configs/qemu-arm.h b/include/configs/qemu-arm.h
index 60ac5489ac1..1d4d3f28983 100644
--- a/include/configs/qemu-arm.h
+++ b/include/configs/qemu-arm.h
@@ -48,7 +48,7 @@
 # define BOOT_TARGET_SCSI(func)
 #endif
 
-#if CONFIG_IS_ENABLED(CMD_VIRTIO)
+#if IS_ENABLED(CONFIG_CMD_VIRTIO)
 # define BOOT_TARGET_VIRTIO(func) func(VIRTIO, virtio, 0)
 #else
 # define BOOT_TARGET_VIRTIO(func)
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 064/171] Correct SPL uses of CPU_MICROBLAZE
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (62 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 063/171] Correct SPL use of CMD_VIRTIO Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 065/171] Correct SPL use of DEBUG_UART_ZYNQ Simon Glass
                   ` (36 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Michal Simek, Ovidiu Panait

This converts 2 usages of this option to the non-SPL form, since there is
no SPL_CPU_MICROBLAZE defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 arch/microblaze/cpu/cpuinfo.c         | 2 +-
 arch/microblaze/include/asm/cpuinfo.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/microblaze/cpu/cpuinfo.c b/arch/microblaze/cpu/cpuinfo.c
index f021f4e5e25..6b15d6ca41c 100644
--- a/arch/microblaze/cpu/cpuinfo.c
+++ b/arch/microblaze/cpu/cpuinfo.c
@@ -8,7 +8,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#if CONFIG_IS_ENABLED(CPU_MICROBLAZE)
+#if IS_ENABLED(CONFIG_CPU_MICROBLAZE)
 /* These key value are as per MBV field in PVR0 */
 static const struct microblaze_version_map cpu_ver_lookup[] = {
 	{"5.00.a", 0x01},
diff --git a/arch/microblaze/include/asm/cpuinfo.h b/arch/microblaze/include/asm/cpuinfo.h
index 86d2c8a034d..3c58e52217c 100644
--- a/arch/microblaze/include/asm/cpuinfo.h
+++ b/arch/microblaze/include/asm/cpuinfo.h
@@ -26,7 +26,7 @@ struct microblaze_cpuinfo {
 	u32 dcache_size;
 	u32 dcache_line_length;
 
-#if CONFIG_IS_ENABLED(CPU_MICROBLAZE)
+#if IS_ENABLED(CONFIG_CPU_MICROBLAZE)
 	u32 use_mmu;
 	u32 cpu_freq;
 	u32 addr_size;
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 065/171] Correct SPL use of DEBUG_UART_ZYNQ
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (63 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 064/171] Correct SPL uses of CPU_MICROBLAZE Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 066/171] Correct SPL uses of DFU_VIRT Simon Glass
                   ` (35 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Michal Simek

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_DEBUG_UART_ZYNQ defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/serial/serial_zynq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/serial/serial_zynq.c b/drivers/serial/serial_zynq.c
index 4b1818313a8..9bb9b7d3b8d 100644
--- a/drivers/serial/serial_zynq.c
+++ b/drivers/serial/serial_zynq.c
@@ -108,7 +108,7 @@ static void _uart_zynq_serial_init(struct uart_zynq *regs)
 
 static int _uart_zynq_serial_putc(struct uart_zynq *regs, const char c)
 {
-	if (CONFIG_IS_ENABLED(DEBUG_UART_ZYNQ)) {
+	if (IS_ENABLED(CONFIG_DEBUG_UART_ZYNQ)) {
 		if (!(readl(&regs->channel_sts) & ZYNQ_UART_SR_TXEMPTY))
 			return -EAGAIN;
 	} else {
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 066/171] Correct SPL uses of DFU_VIRT
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (64 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 065/171] Correct SPL use of DEBUG_UART_ZYNQ Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 067/171] Correct SPL uses of DISPLAY_AER_BRIEF Simon Glass
                   ` (34 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Lukasz Majewski, Patrice Chotard,
	Patrick Delaunay, uboot-stm32

This converts 3 usages of this option to the non-SPL form, since there is
no SPL_DFU_VIRT defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 board/st/common/stm32mp_dfu.c | 2 +-
 drivers/dfu/Makefile          | 2 +-
 include/dfu.h                 | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/board/st/common/stm32mp_dfu.c b/board/st/common/stm32mp_dfu.c
index 0096f71dfc1..19e9c3b2402 100644
--- a/board/st/common/stm32mp_dfu.c
+++ b/board/st/common/stm32mp_dfu.c
@@ -159,7 +159,7 @@ void set_dfu_alt_info(char *interface, char *devstr)
 	puts("DFU alt info setting: done\n");
 }
 
-#if CONFIG_IS_ENABLED(DFU_VIRT)
+#if IS_ENABLED(CONFIG_DFU_VIRT)
 #include <dfu.h>
 #include <power/stpmic1.h>
 
diff --git a/drivers/dfu/Makefile b/drivers/dfu/Makefile
index dfbf64da667..df88f4be59a 100644
--- a/drivers/dfu/Makefile
+++ b/drivers/dfu/Makefile
@@ -10,4 +10,4 @@ obj-$(CONFIG_$(SPL_)DFU_NAND) += dfu_nand.o
 obj-$(CONFIG_$(SPL_)DFU_RAM) += dfu_ram.o
 obj-$(CONFIG_$(SPL_)DFU_SF) += dfu_sf.o
 obj-$(CONFIG_$(SPL_)DFU_WRITE_ALT) += dfu_alt.o
-obj-$(CONFIG_$(SPL_)DFU_VIRT) += dfu_virt.o
+obj-$(CONFIG_DFU_VIRT) += dfu_virt.o
diff --git a/include/dfu.h b/include/dfu.h
index 07922224ef1..06efbf4b208 100644
--- a/include/dfu.h
+++ b/include/dfu.h
@@ -495,7 +495,7 @@ static inline int dfu_fill_entity_mtd(struct dfu_entity *dfu, char *devstr,
 }
 #endif
 
-#if CONFIG_IS_ENABLED(DFU_VIRT)
+#if IS_ENABLED(CONFIG_DFU_VIRT)
 int dfu_fill_entity_virt(struct dfu_entity *dfu, char *devstr,
 			 char **argv, int argc);
 int dfu_write_medium_virt(struct dfu_entity *dfu, u64 offset,
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 067/171] Correct SPL uses of DISPLAY_AER_BRIEF
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (65 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 066/171] Correct SPL uses of DFU_VIRT Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 068/171] Correct SPL uses of DISPLAY_AER_FULL Simon Glass
                   ` (33 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Mario Six

This converts 2 usages of this option to the non-SPL form, since there is
no SPL_DISPLAY_AER_BRIEF defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/sysreset/sysreset_mpc83xx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/sysreset/sysreset_mpc83xx.c b/drivers/sysreset/sysreset_mpc83xx.c
index 81fccf95767..c9a03266595 100644
--- a/drivers/sysreset/sysreset_mpc83xx.c
+++ b/drivers/sysreset/sysreset_mpc83xx.c
@@ -120,7 +120,7 @@ static int print_83xx_arb_event(bool force, char *buf, int size)
 			       "Master ID", mstr_id, master[mstr_id],
 			       "Transfer Size", tsize_val, tsize_bytes,
 			       "Transfer Type", ttype, transfer[ttype]);
-	} else if (CONFIG_IS_ENABLED(DISPLAY_AER_BRIEF)) {
+	} else if (IS_ENABLED(CONFIG_DISPLAY_AER_BRIEF)) {
 		res = snprintf(buf, size,
 			       "Arbiter Event Status: AEATR=0x%08lX, AEADR=0x%08lX\n",
 			       gd->arch.arbiter_event_attributes,
@@ -185,7 +185,7 @@ static int mpc83xx_sysreset_get_status(struct udevice *dev, char *buf, int size)
 	 *			     arbiter driver
 	 */
 	if (CONFIG_IS_ENABLED(DISPLAY_AER_FULL) ||
-	    CONFIG_IS_ENABLED(DISPLAY_AER_BRIEF)) {
+	    IS_ENABLED(CONFIG_DISPLAY_AER_BRIEF)) {
 		/*
 		 * If there was a bus monitor reset event, we force the arbiter
 		 * event to be printed
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 068/171] Correct SPL uses of DISPLAY_AER_FULL
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (66 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 067/171] Correct SPL uses of DISPLAY_AER_BRIEF Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 069/171] Correct SPL use of DISPLAY_CPUINFO Simon Glass
                   ` (32 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Mario Six

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 <sjg@chromium.org>
---

 drivers/sysreset/sysreset_mpc83xx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/sysreset/sysreset_mpc83xx.c b/drivers/sysreset/sysreset_mpc83xx.c
index c9a03266595..ca48328f7b5 100644
--- a/drivers/sysreset/sysreset_mpc83xx.c
+++ b/drivers/sysreset/sysreset_mpc83xx.c
@@ -107,7 +107,7 @@ static int print_83xx_arb_event(bool force, char *buf, int size)
 	if (!force && !gd->arch.arbiter_event_address)
 		return 0;
 
-	if (CONFIG_IS_ENABLED(DISPLAY_AER_FULL)) {
+	if (IS_ENABLED(CONFIG_DISPLAY_AER_FULL)) {
 		res = snprintf(buf, size,
 			       "Arbiter Event Status:\n"
 			       "    %s: 0x%08lX\n"
@@ -184,7 +184,7 @@ static int mpc83xx_sysreset_get_status(struct udevice *dev, char *buf, int size)
 	 * TODO(mario.six@gdsys.cc): Move this into a dedicated
 	 *			     arbiter driver
 	 */
-	if (CONFIG_IS_ENABLED(DISPLAY_AER_FULL) ||
+	if (IS_ENABLED(CONFIG_DISPLAY_AER_FULL) ||
 	    IS_ENABLED(CONFIG_DISPLAY_AER_BRIEF)) {
 		/*
 		 * If there was a bus monitor reset event, we force the arbiter
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 069/171] Correct SPL use of DISPLAY_CPUINFO
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (67 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 068/171] Correct SPL uses of DISPLAY_AER_FULL Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 070/171] Correct SPL use of DM_RNG Simon Glass
                   ` (31 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Kever Yang, Philipp Tomsich

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_DISPLAY_CPUINFO defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 arch/arm/mach-rockchip/cpu-info.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-rockchip/cpu-info.c b/arch/arm/mach-rockchip/cpu-info.c
index d0f030109f4..dac24910e0c 100644
--- a/arch/arm/mach-rockchip/cpu-info.c
+++ b/arch/arm/mach-rockchip/cpu-info.c
@@ -44,7 +44,7 @@ char *get_reset_cause(void)
 	return cause;
 }
 
-#if CONFIG_IS_ENABLED(DISPLAY_CPUINFO)
+#if IS_ENABLED(CONFIG_DISPLAY_CPUINFO)
 int print_cpuinfo(void)
 {
 	char *cause = get_reset_cause();
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 070/171] Correct SPL use of DM_RNG
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (68 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 069/171] Correct SPL use of DISPLAY_CPUINFO Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 071/171] Correct SPL uses of DTB_RESELECT Simon Glass
                   ` (30 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, 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 <sjg@chromium.org>
---

 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 45f1d2b7e17..312edfa2bdb 100644
--- a/boot/vbe_request.c
+++ b/boot/vbe_request.c
@@ -36,7 +36,7 @@ static int handle_random_req(ofnode node, int default_size,
 	u32 size;
 	int ret;
 
-	if (!CONFIG_IS_ENABLED(DM_RNG))
+	if (!IS_ENABLED(CONFIG_DM_RNG))
 		return -ENOTSUPP;
 
 	if (ofnode_read_u32(node, "vbe,size", &size)) {
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 071/171] Correct SPL uses of DTB_RESELECT
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (69 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 070/171] Correct SPL use of DM_RNG Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 072/171] Correct SPL uses of DWC_ETH_QOS Simon Glass
                   ` (29 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Michal Simek

This converts 2 usages of this option to the non-SPL form, since there is
no SPL_DTB_RESELECT defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 board/xilinx/common/board.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/board/xilinx/common/board.c b/board/xilinx/common/board.c
index 3dea238466d..35a2f310f4f 100644
--- a/board/xilinx/common/board.c
+++ b/board/xilinx/common/board.c
@@ -208,7 +208,7 @@ static int xilinx_read_eeprom_fru(struct udevice *dev, char *name,
 	}
 
 	fru_capture((unsigned long)fru_content);
-	if (gd->flags & GD_FLG_RELOC || (_DEBUG && CONFIG_IS_ENABLED(DTB_RESELECT))) {
+	if (gd->flags & GD_FLG_RELOC || (_DEBUG && IS_ENABLED(CONFIG_DTB_RESELECT))) {
 		printf("Xilinx I2C FRU format at %s:\n", name);
 		ret = fru_display(0);
 		if (ret) {
@@ -501,7 +501,7 @@ int __maybe_unused board_fit_config_name_match(const char *name)
 	return -1;
 }
 
-#if CONFIG_IS_ENABLED(DTB_RESELECT)
+#if IS_ENABLED(CONFIG_DTB_RESELECT)
 #define MAX_NAME_LENGTH	50
 
 char * __maybe_unused __weak board_name_decode(void)
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 072/171] Correct SPL uses of DWC_ETH_QOS
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (70 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 071/171] Correct SPL uses of DTB_RESELECT Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 073/171] Correct SPL use of EFI_APP Simon Glass
                   ` (28 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Fabio Estevam, Manoj Sai, Matteo Lisi,
	NXP i.MX U-Boot Team, Peng Fan, Stefano Babic

This converts 3 usages of this option to the non-SPL form, since there is
no SPL_DWC_ETH_QOS defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 board/engicam/imx8mp/icore_mx8mp.c      | 2 +-
 board/freescale/imx8mp_evk/imx8mp_evk.c | 2 +-
 board/freescale/imx93_evk/imx93_evk.c   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/board/engicam/imx8mp/icore_mx8mp.c b/board/engicam/imx8mp/icore_mx8mp.c
index b309a12df08..f0096a2a879 100644
--- a/board/engicam/imx8mp/icore_mx8mp.c
+++ b/board/engicam/imx8mp/icore_mx8mp.c
@@ -61,7 +61,7 @@ int board_init(void)
 	if (CONFIG_IS_ENABLED(FEC_MXC))
 		setup_fec();
 
-	if (CONFIG_IS_ENABLED(DWC_ETH_QOS))
+	if (IS_ENABLED(CONFIG_DWC_ETH_QOS))
 		setup_eqos();
 
 	return 0;
diff --git a/board/freescale/imx8mp_evk/imx8mp_evk.c b/board/freescale/imx8mp_evk/imx8mp_evk.c
index 8971a827df3..c7692677f9a 100644
--- a/board/freescale/imx8mp_evk/imx8mp_evk.c
+++ b/board/freescale/imx8mp_evk/imx8mp_evk.c
@@ -59,7 +59,7 @@ int board_init(void)
 		setup_fec();
 	}
 
-	if (CONFIG_IS_ENABLED(DWC_ETH_QOS)) {
+	if (IS_ENABLED(CONFIG_DWC_ETH_QOS)) {
 		ret = setup_eqos();
 	}
 
diff --git a/board/freescale/imx93_evk/imx93_evk.c b/board/freescale/imx93_evk/imx93_evk.c
index 182ae5fd518..e01b2f59e3f 100644
--- a/board/freescale/imx93_evk/imx93_evk.c
+++ b/board/freescale/imx93_evk/imx93_evk.c
@@ -69,7 +69,7 @@ int board_init(void)
 	if (CONFIG_IS_ENABLED(FEC_MXC))
 		setup_fec();
 
-	if (CONFIG_IS_ENABLED(DWC_ETH_QOS))
+	if (IS_ENABLED(CONFIG_DWC_ETH_QOS))
 		setup_eqos();
 
 	return 0;
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 073/171] Correct SPL use of EFI_APP
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (71 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 072/171] Correct SPL uses of DWC_ETH_QOS Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 074/171] Correct SPL use of EFI_DEVICE_PATH_UTIL Simon Glass
                   ` (27 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Heinrich Schuchardt, Ramon Fried,
	Viacheslav Mitrofanov

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_EFI_APP defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 lib/vsprintf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index 8de3882fb6c..2d13e68b579 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -629,7 +629,7 @@ repeat:
 
 		case 's':
 /* U-Boot uses UTF-16 strings in the EFI context only. */
-#if (CONFIG_IS_ENABLED(EFI_LOADER) || CONFIG_IS_ENABLED(EFI_APP)) && \
+#if (CONFIG_IS_ENABLED(EFI_LOADER) || IS_ENABLED(CONFIG_EFI_APP)) && \
 	!defined(API_BUILD)
 			if (qualifier == 'l') {
 				str = string16(str, end, va_arg(args, u16 *),
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 074/171] Correct SPL use of EFI_DEVICE_PATH_UTIL
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (72 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 073/171] Correct SPL use of EFI_APP Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 075/171] Correct SPL uses of EFI_HAVE_CAPSULE_SUPPORT Simon Glass
                   ` (26 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Heinrich Schuchardt, Ilias Apalodimas

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_EFI_DEVICE_PATH_UTIL defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 lib/efi_loader/efi_root_node.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/efi_loader/efi_root_node.c b/lib/efi_loader/efi_root_node.c
index a4eb6f493dc..09699b2968f 100644
--- a/lib/efi_loader/efi_root_node.c
+++ b/lib/efi_loader/efi_root_node.c
@@ -58,7 +58,7 @@ efi_status_t efi_root_node_register(void)
 		 &efi_guid_device_path_to_text_protocol,
 		 &efi_device_path_to_text,
 #endif
-#if CONFIG_IS_ENABLED(EFI_DEVICE_PATH_UTIL)
+#if IS_ENABLED(CONFIG_EFI_DEVICE_PATH_UTIL)
 		 /* Device path utilities protocol */
 		 &efi_guid_device_path_utilities_protocol,
 		 &efi_device_path_utilities,
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 075/171] Correct SPL uses of EFI_HAVE_CAPSULE_SUPPORT
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (73 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 074/171] Correct SPL use of EFI_DEVICE_PATH_UTIL Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 076/171] Correct SPL use of EFI_LOADER_HII Simon Glass
                   ` (25 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Frieder Schrempf, Heiko Thiery,
	Jassi Brar, Kever Yang, Mario Six, Michael Walle, Michal Simek,
	Patrice Chotard, Patrick Delaunay, Philipp Tomsich, Sughosh Ganu,
	Tuomas Tynkkynen, Ying-Chun Liu (PaulLiu),
	uboot-stm32

This converts 13 usages of this option to the non-SPL form, since there is
no SPL_EFI_HAVE_CAPSULE_SUPPORT defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 board/advantech/imx8mp_rsb3720a1/imx8mp_rsb3720a1.c    | 2 +-
 board/compulab/imx8mm-cl-iot-gate/imx8mm-cl-iot-gate.c | 2 +-
 board/emulation/common/qemu_dfu.c                      | 2 +-
 board/emulation/qemu-arm/qemu-arm.c                    | 2 +-
 board/kontron/pitx_imx8m/pitx_imx8m.c                  | 2 +-
 board/kontron/sl-mx8mm/sl-mx8mm.c                      | 2 +-
 board/kontron/sl28/sl28.c                              | 2 +-
 board/rockchip/evb_rk3399/evb-rk3399.c                 | 2 +-
 board/sandbox/sandbox.c                                | 2 +-
 board/socionext/developerbox/developerbox.c            | 2 +-
 board/st/stm32mp1/stm32mp1.c                           | 4 ++--
 board/xilinx/common/board.c                            | 2 +-
 12 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/board/advantech/imx8mp_rsb3720a1/imx8mp_rsb3720a1.c b/board/advantech/imx8mp_rsb3720a1/imx8mp_rsb3720a1.c
index aa9687f7a9d..34109c69ddb 100644
--- a/board/advantech/imx8mp_rsb3720a1/imx8mp_rsb3720a1.c
+++ b/board/advantech/imx8mp_rsb3720a1/imx8mp_rsb3720a1.c
@@ -35,7 +35,7 @@ static void setup_gpmi_nand(void)
 }
 #endif
 
-#if CONFIG_IS_ENABLED(EFI_HAVE_CAPSULE_SUPPORT)
+#if IS_ENABLED(CONFIG_EFI_HAVE_CAPSULE_SUPPORT)
 struct efi_fw_image fw_images[] = {
 #if defined(CONFIG_TARGET_IMX8MP_RSB3720A1_4G)
 	{
diff --git a/board/compulab/imx8mm-cl-iot-gate/imx8mm-cl-iot-gate.c b/board/compulab/imx8mm-cl-iot-gate/imx8mm-cl-iot-gate.c
index 3d7fff34d25..b373e45df95 100644
--- a/board/compulab/imx8mm-cl-iot-gate/imx8mm-cl-iot-gate.c
+++ b/board/compulab/imx8mm-cl-iot-gate/imx8mm-cl-iot-gate.c
@@ -31,7 +31,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#if CONFIG_IS_ENABLED(EFI_HAVE_CAPSULE_SUPPORT)
+#if IS_ENABLED(CONFIG_EFI_HAVE_CAPSULE_SUPPORT)
 struct efi_fw_image fw_images[] = {
 #if defined(CONFIG_TARGET_IMX8MM_CL_IOT_GATE)
 	{
diff --git a/board/emulation/common/qemu_dfu.c b/board/emulation/common/qemu_dfu.c
index c1aeaf10d93..332d659c1f7 100644
--- a/board/emulation/common/qemu_dfu.c
+++ b/board/emulation/common/qemu_dfu.c
@@ -44,7 +44,7 @@ void set_dfu_alt_info(char *interface, char *devstr)
 
 	ALLOC_CACHE_ALIGN_BUFFER(char, buf, DFU_ALT_BUF_LEN);
 
-	if (!CONFIG_IS_ENABLED(EFI_HAVE_CAPSULE_SUPPORT) &&
+	if (!IS_ENABLED(CONFIG_EFI_HAVE_CAPSULE_SUPPORT) &&
 	    env_get("dfu_alt_info"))
 		return;
 
diff --git a/board/emulation/qemu-arm/qemu-arm.c b/board/emulation/qemu-arm/qemu-arm.c
index 3df3e41c0b2..ff1755f8cde 100644
--- a/board/emulation/qemu-arm/qemu-arm.c
+++ b/board/emulation/qemu-arm/qemu-arm.c
@@ -19,7 +19,7 @@
 #ifdef CONFIG_ARM64
 #include <asm/armv8/mmu.h>
 
-#if CONFIG_IS_ENABLED(EFI_HAVE_CAPSULE_SUPPORT)
+#if IS_ENABLED(CONFIG_EFI_HAVE_CAPSULE_SUPPORT)
 struct efi_fw_image fw_images[] = {
 #if defined(CONFIG_TARGET_QEMU_ARM_32BIT)
 	{
diff --git a/board/kontron/pitx_imx8m/pitx_imx8m.c b/board/kontron/pitx_imx8m/pitx_imx8m.c
index d974af8da1a..af1832c4736 100644
--- a/board/kontron/pitx_imx8m/pitx_imx8m.c
+++ b/board/kontron/pitx_imx8m/pitx_imx8m.c
@@ -32,7 +32,7 @@ static iomux_v3_cfg_t const uart_pads[] = {
 	IMX8MQ_PAD_ECSPI1_MISO__UART3_CTS_B | MUX_PAD_CTRL(UART_PAD_CTRL),
 };
 
-#if CONFIG_IS_ENABLED(EFI_HAVE_CAPSULE_SUPPORT)
+#if IS_ENABLED(CONFIG_EFI_HAVE_CAPSULE_SUPPORT)
 struct efi_fw_image fw_images[] = {
 	{
 		.image_type_id = KONTRON_PITX_IMX8M_FIT_IMAGE_GUID,
diff --git a/board/kontron/sl-mx8mm/sl-mx8mm.c b/board/kontron/sl-mx8mm/sl-mx8mm.c
index 4ac430b29a9..250195694ba 100644
--- a/board/kontron/sl-mx8mm/sl-mx8mm.c
+++ b/board/kontron/sl-mx8mm/sl-mx8mm.c
@@ -18,7 +18,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#if CONFIG_IS_ENABLED(EFI_HAVE_CAPSULE_SUPPORT)
+#if IS_ENABLED(CONFIG_EFI_HAVE_CAPSULE_SUPPORT)
 struct efi_fw_image fw_images[] = {
 	{
 		.image_type_id = KONTRON_SL_MX8MM_FIT_IMAGE_GUID,
diff --git a/board/kontron/sl28/sl28.c b/board/kontron/sl28/sl28.c
index 0576b3eae48..4ad6b323476 100644
--- a/board/kontron/sl28/sl28.c
+++ b/board/kontron/sl28/sl28.c
@@ -28,7 +28,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#if CONFIG_IS_ENABLED(EFI_HAVE_CAPSULE_SUPPORT)
+#if IS_ENABLED(CONFIG_EFI_HAVE_CAPSULE_SUPPORT)
 struct efi_fw_image fw_images[] = {
 	{
 		.image_type_id = KONTRON_SL28_FIT_IMAGE_GUID,
diff --git a/board/rockchip/evb_rk3399/evb-rk3399.c b/board/rockchip/evb_rk3399/evb-rk3399.c
index f56b379b937..c99ffdd75e8 100644
--- a/board/rockchip/evb_rk3399/evb-rk3399.c
+++ b/board/rockchip/evb_rk3399/evb-rk3399.c
@@ -14,7 +14,7 @@
 
 #define ROCKPI4_UPDATABLE_IMAGES	2
 
-#if CONFIG_IS_ENABLED(EFI_HAVE_CAPSULE_SUPPORT)
+#if IS_ENABLED(CONFIG_EFI_HAVE_CAPSULE_SUPPORT)
 static struct efi_fw_image fw_images[ROCKPI4_UPDATABLE_IMAGES] = {0};
 
 struct efi_capsule_update_info update_info = {
diff --git a/board/sandbox/sandbox.c b/board/sandbox/sandbox.c
index 8b953f9b397..2e44bdf0df3 100644
--- a/board/sandbox/sandbox.c
+++ b/board/sandbox/sandbox.c
@@ -29,7 +29,7 @@
  */
 gd_t *gd;
 
-#if CONFIG_IS_ENABLED(EFI_HAVE_CAPSULE_SUPPORT)
+#if IS_ENABLED(CONFIG_EFI_HAVE_CAPSULE_SUPPORT)
 /* GUIDs for capsule updatable firmware images */
 #define SANDBOX_UBOOT_IMAGE_GUID \
 	EFI_GUID(0x09d7cf52, 0x0720, 0x4710, 0x91, 0xd1, \
diff --git a/board/socionext/developerbox/developerbox.c b/board/socionext/developerbox/developerbox.c
index 6415c90c1c1..16e14d4f7f5 100644
--- a/board/socionext/developerbox/developerbox.c
+++ b/board/socionext/developerbox/developerbox.c
@@ -18,7 +18,7 @@
 
 #include <linux/kernel.h>
 
-#if CONFIG_IS_ENABLED(EFI_HAVE_CAPSULE_SUPPORT)
+#if IS_ENABLED(CONFIG_EFI_HAVE_CAPSULE_SUPPORT)
 struct efi_fw_image fw_images[] = {
 	{
 		.image_type_id = DEVELOPERBOX_UBOOT_IMAGE_GUID,
diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c
index 914f900ac86..b9fc240d5b6 100644
--- a/board/st/stm32mp1/stm32mp1.c
+++ b/board/st/stm32mp1/stm32mp1.c
@@ -88,7 +88,7 @@
 #define USB_START_LOW_THRESHOLD_UV	1230000
 #define USB_START_HIGH_THRESHOLD_UV	2150000
 
-#if CONFIG_IS_ENABLED(EFI_HAVE_CAPSULE_SUPPORT)
+#if IS_ENABLED(CONFIG_EFI_HAVE_CAPSULE_SUPPORT)
 struct efi_fw_image fw_images[1];
 
 struct efi_capsule_update_info update_info = {
@@ -677,7 +677,7 @@ int board_init(void)
 
 	setup_led(LEDST_ON);
 
-#if CONFIG_IS_ENABLED(EFI_HAVE_CAPSULE_SUPPORT)
+#if IS_ENABLED(CONFIG_EFI_HAVE_CAPSULE_SUPPORT)
 	efi_guid_t image_type_guid = STM32MP_FIP_IMAGE_GUID;
 
 	guidcpy(&fw_images[0].image_type_id, &image_type_guid);
diff --git a/board/xilinx/common/board.c b/board/xilinx/common/board.c
index 35a2f310f4f..aa9f3ef071c 100644
--- a/board/xilinx/common/board.c
+++ b/board/xilinx/common/board.c
@@ -33,7 +33,7 @@
 
 #include "fru.h"
 
-#if CONFIG_IS_ENABLED(EFI_HAVE_CAPSULE_SUPPORT)
+#if IS_ENABLED(CONFIG_EFI_HAVE_CAPSULE_SUPPORT)
 struct efi_fw_image fw_images[] = {
 #if defined(XILINX_BOOT_IMAGE_GUID)
 	{
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 076/171] Correct SPL use of EFI_LOADER_HII
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (74 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 075/171] Correct SPL uses of EFI_HAVE_CAPSULE_SUPPORT Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 077/171] Correct SPL use of EFI_MM_COMM_TEE Simon Glass
                   ` (24 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Heinrich Schuchardt, Ilias Apalodimas

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_EFI_LOADER_HII defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 lib/efi_loader/efi_root_node.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/efi_loader/efi_root_node.c b/lib/efi_loader/efi_root_node.c
index 09699b2968f..21a014d7c21 100644
--- a/lib/efi_loader/efi_root_node.c
+++ b/lib/efi_loader/efi_root_node.c
@@ -72,7 +72,7 @@ efi_status_t efi_root_node_register(void)
 		 &efi_guid_unicode_collation_protocol2,
 		 &efi_unicode_collation_protocol2,
 #endif
-#if CONFIG_IS_ENABLED(EFI_LOADER_HII)
+#if IS_ENABLED(CONFIG_EFI_LOADER_HII)
 		 /* HII string protocol */
 		 &efi_guid_hii_string_protocol,
 		 &efi_hii_string,
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 077/171] Correct SPL use of EFI_MM_COMM_TEE
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (75 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 076/171] Correct SPL use of EFI_LOADER_HII Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 078/171] Correct SPL use of EFI_SECURE_BOOT Simon Glass
                   ` (23 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Heinrich Schuchardt, Ilias Apalodimas

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_EFI_MM_COMM_TEE defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 cmd/eficonfig.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/eficonfig.c b/cmd/eficonfig.c
index 47c04cf5363..46f652c35d6 100644
--- a/cmd/eficonfig.c
+++ b/cmd/eficonfig.c
@@ -2670,7 +2670,7 @@ static const struct eficonfig_item maintenance_menu_items[] = {
 	{"Edit Boot Option", eficonfig_process_edit_boot_option},
 	{"Change Boot Order", eficonfig_process_change_boot_order},
 	{"Delete Boot Option", eficonfig_process_delete_boot_option},
-#if (CONFIG_IS_ENABLED(EFI_SECURE_BOOT) && CONFIG_IS_ENABLED(EFI_MM_COMM_TEE))
+#if (CONFIG_IS_ENABLED(EFI_SECURE_BOOT) && IS_ENABLED(CONFIG_EFI_MM_COMM_TEE))
 	{"Secure Boot Configuration", eficonfig_process_secure_boot_config},
 #endif
 	{"Quit", eficonfig_process_quit},
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 078/171] Correct SPL use of EFI_SECURE_BOOT
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (76 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 077/171] Correct SPL use of EFI_MM_COMM_TEE Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 079/171] Correct SPL use of EFI_TCG2_PROTOCOL Simon Glass
                   ` (22 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Heinrich Schuchardt, Ilias Apalodimas

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_EFI_SECURE_BOOT defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 cmd/eficonfig.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/eficonfig.c b/cmd/eficonfig.c
index 46f652c35d6..5b1f2a7731a 100644
--- a/cmd/eficonfig.c
+++ b/cmd/eficonfig.c
@@ -2670,7 +2670,7 @@ static const struct eficonfig_item maintenance_menu_items[] = {
 	{"Edit Boot Option", eficonfig_process_edit_boot_option},
 	{"Change Boot Order", eficonfig_process_change_boot_order},
 	{"Delete Boot Option", eficonfig_process_delete_boot_option},
-#if (CONFIG_IS_ENABLED(EFI_SECURE_BOOT) && IS_ENABLED(CONFIG_EFI_MM_COMM_TEE))
+#if (IS_ENABLED(CONFIG_EFI_SECURE_BOOT) && IS_ENABLED(CONFIG_EFI_MM_COMM_TEE))
 	{"Secure Boot Configuration", eficonfig_process_secure_boot_config},
 #endif
 	{"Quit", eficonfig_process_quit},
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 079/171] Correct SPL use of EFI_TCG2_PROTOCOL
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (77 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 078/171] Correct SPL use of EFI_SECURE_BOOT Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 080/171] Correct SPL use of EFI_UNICODE_COLLATION_PROTOCOL2 Simon Glass
                   ` (21 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Heinrich Schuchardt, Ilias Apalodimas

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_EFI_TCG2_PROTOCOL defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 lib/efi_loader/efi_image_loader.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/efi_loader/efi_image_loader.c b/lib/efi_loader/efi_image_loader.c
index eaf75a5803d..26df0da16c9 100644
--- a/lib/efi_loader/efi_image_loader.c
+++ b/lib/efi_loader/efi_image_loader.c
@@ -938,7 +938,7 @@ efi_status_t efi_load_pe(struct efi_loaded_image_obj *handle,
 		goto err;
 	}
 
-#if CONFIG_IS_ENABLED(EFI_TCG2_PROTOCOL)
+#if IS_ENABLED(CONFIG_EFI_TCG2_PROTOCOL)
 	/* Measure an PE/COFF image */
 	ret = tcg2_measure_pe_image(efi, efi_size, handle, loaded_image_info);
 	if (ret == EFI_SECURITY_VIOLATION) {
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 080/171] Correct SPL use of EFI_UNICODE_COLLATION_PROTOCOL2
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (78 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 079/171] Correct SPL use of EFI_TCG2_PROTOCOL Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 081/171] Correct SPL uses of ENV_IS_IN_UBI Simon Glass
                   ` (20 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Heinrich Schuchardt, Ilias Apalodimas

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_EFI_UNICODE_COLLATION_PROTOCOL2 defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 lib/efi_loader/efi_root_node.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/efi_loader/efi_root_node.c b/lib/efi_loader/efi_root_node.c
index 21a014d7c21..108c14b95bd 100644
--- a/lib/efi_loader/efi_root_node.c
+++ b/lib/efi_loader/efi_root_node.c
@@ -68,7 +68,7 @@ efi_status_t efi_root_node_register(void)
 		 &efi_guid_dt_fixup_protocol,
 		 &efi_dt_fixup_prot,
 #endif
-#if CONFIG_IS_ENABLED(EFI_UNICODE_COLLATION_PROTOCOL2)
+#if IS_ENABLED(CONFIG_EFI_UNICODE_COLLATION_PROTOCOL2)
 		 &efi_guid_unicode_collation_protocol2,
 		 &efi_unicode_collation_protocol2,
 #endif
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 081/171] Correct SPL uses of ENV_IS_IN_UBI
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (79 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 080/171] Correct SPL use of EFI_UNICODE_COLLATION_PROTOCOL2 Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 082/171] Correct SPL uses of ENV_VARS_UBOOT_RUNTIME_CONFIG Simon Glass
                   ` (19 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Jagan Teki, Matteo Lisi, Patrice Chotard,
	Patrick Delaunay, uboot-stm32

This converts 2 usages of this option to the non-SPL form, since there is
no SPL_ENV_IS_IN_UBI defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 board/engicam/stm32mp1/stm32mp1.c | 2 +-
 board/st/stm32mp1/stm32mp1.c      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/board/engicam/stm32mp1/stm32mp1.c b/board/engicam/stm32mp1/stm32mp1.c
index 0a3e580f5b4..5223e9bae8d 100644
--- a/board/engicam/stm32mp1/stm32mp1.c
+++ b/board/engicam/stm32mp1/stm32mp1.c
@@ -68,7 +68,7 @@ enum env_location env_get_location(enum env_operation op, int prio)
 
 	case BOOT_FLASH_NAND:
 	case BOOT_FLASH_SPINAND:
-		if (CONFIG_IS_ENABLED(ENV_IS_IN_UBI))
+		if (IS_ENABLED(CONFIG_ENV_IS_IN_UBI))
 			return ENVL_UBI;
 		else
 			return ENVL_NOWHERE;
diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c
index b9fc240d5b6..7cff9e3d860 100644
--- a/board/st/stm32mp1/stm32mp1.c
+++ b/board/st/stm32mp1/stm32mp1.c
@@ -831,7 +831,7 @@ enum env_location env_get_location(enum env_operation op, int prio)
 
 	case BOOT_FLASH_NAND:
 	case BOOT_FLASH_SPINAND:
-		if (CONFIG_IS_ENABLED(ENV_IS_IN_UBI))
+		if (IS_ENABLED(CONFIG_ENV_IS_IN_UBI))
 			return ENVL_UBI;
 		else
 			return ENVL_NOWHERE;
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 082/171] Correct SPL uses of ENV_VARS_UBOOT_RUNTIME_CONFIG
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (80 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 081/171] Correct SPL uses of ENV_IS_IN_UBI Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 083/171] Correct SPL use of ENV_WRITEABLE_LIST Simon Glass
                   ` (18 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Michal Simek

This converts 4 usages of this option to the non-SPL form, since there is
no SPL_ENV_VARS_UBOOT_RUNTIME_CONFIG defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 board/xilinx/versal-net/board.c | 2 +-
 board/xilinx/versal/board.c     | 2 +-
 board/xilinx/zynq/board.c       | 2 +-
 board/xilinx/zynqmp/zynqmp.c    | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/board/xilinx/versal-net/board.c b/board/xilinx/versal-net/board.c
index 5fb71107ddc..7ff2c620110 100644
--- a/board/xilinx/versal-net/board.c
+++ b/board/xilinx/versal-net/board.c
@@ -172,7 +172,7 @@ int board_late_init(void)
 		return 0;
 	}
 
-	if (!CONFIG_IS_ENABLED(ENV_VARS_UBOOT_RUNTIME_CONFIG))
+	if (!IS_ENABLED(CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG))
 		return 0;
 
 	return board_late_init_xilinx();
diff --git a/board/xilinx/versal/board.c b/board/xilinx/versal/board.c
index 4cdc2ecd1d2..81e1b69905e 100644
--- a/board/xilinx/versal/board.c
+++ b/board/xilinx/versal/board.c
@@ -142,7 +142,7 @@ int board_late_init(void)
 		return 0;
 	}
 
-	if (!CONFIG_IS_ENABLED(ENV_VARS_UBOOT_RUNTIME_CONFIG))
+	if (!IS_ENABLED(CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG))
 		return 0;
 
 	bootmode = versal_get_bootmode();
diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c
index df4c4576723..9a59445b442 100644
--- a/board/xilinx/zynq/board.c
+++ b/board/xilinx/zynq/board.c
@@ -55,7 +55,7 @@ int board_late_init(void)
 		return 0;
 	}
 
-	if (!CONFIG_IS_ENABLED(ENV_VARS_UBOOT_RUNTIME_CONFIG))
+	if (!IS_ENABLED(CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG))
 		return 0;
 
 	switch ((zynq_slcr_get_boot_mode()) & ZYNQ_BM_MASK) {
diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
index e3f70c4caf4..39da96bcfb0 100644
--- a/board/xilinx/zynqmp/zynqmp.c
+++ b/board/xilinx/zynqmp/zynqmp.c
@@ -405,7 +405,7 @@ int board_late_init(void)
 		return 0;
 	}
 
-	if (!CONFIG_IS_ENABLED(ENV_VARS_UBOOT_RUNTIME_CONFIG))
+	if (!IS_ENABLED(CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG))
 		return 0;
 
 	ret = set_fdtfile();
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 083/171] Correct SPL use of ENV_WRITEABLE_LIST
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (81 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 082/171] Correct SPL uses of ENV_VARS_UBOOT_RUNTIME_CONFIG Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 084/171] Correct SPL use of EXYNOS7420 Simon Glass
                   ` (17 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_ENV_WRITEABLE_LIST defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 lib/hashtable.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/hashtable.c b/lib/hashtable.c
index 90c8465611e..f2d36bd34b4 100644
--- a/lib/hashtable.c
+++ b/lib/hashtable.c
@@ -942,7 +942,7 @@ int himport_r(struct hsearch_data *htab,
 		e.data = value;
 
 		hsearch_r(e, ENV_ENTER, &rv, htab, flag);
-#if !CONFIG_IS_ENABLED(ENV_WRITEABLE_LIST)
+#if !IS_ENABLED(CONFIG_ENV_WRITEABLE_LIST)
 		if (rv == NULL) {
 			printf("himport_r: can't insert \"%s=%s\" into hash table\n",
 				name, value);
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 084/171] Correct SPL use of EXYNOS7420
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (82 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 083/171] Correct SPL use of ENV_WRITEABLE_LIST Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 085/171] Correct SPL uses of FASTBOOT Simon Glass
                   ` (16 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Minkyu Kang

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_EXYNOS7420 defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 arch/arm/mach-exynos/mmu-arm64.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-exynos/mmu-arm64.c b/arch/arm/mach-exynos/mmu-arm64.c
index d2c550b27d3..8d8c64e8f8f 100644
--- a/arch/arm/mach-exynos/mmu-arm64.c
+++ b/arch/arm/mach-exynos/mmu-arm64.c
@@ -7,7 +7,7 @@
 #include <common.h>
 #include <asm/armv8/mmu.h>
 
-#if CONFIG_IS_ENABLED(EXYNOS7420)
+#if IS_ENABLED(CONFIG_EXYNOS7420)
 
 static struct mm_region exynos7420_mem_map[] = {
 	{
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 085/171] Correct SPL uses of FASTBOOT
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (83 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 084/171] Correct SPL use of EXYNOS7420 Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-30 14:41 ` [PATCH 086/171] Correct SPL uses of FASTBOOT_FLASH Simon Glass
                   ` (15 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Kever Yang, Philipp Tomsich

This converts 3 usages of this option to the non-SPL form, since there is
no SPL_FASTBOOT defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 arch/arm/mach-rockchip/board.c | 2 +-
 board/ti/am57xx/board.c        | 2 +-
 board/ti/dra7xx/evm.c          | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm/mach-rockchip/board.c b/arch/arm/mach-rockchip/board.c
index 6e05a8f76ef..ebffb6c3ff0 100644
--- a/arch/arm/mach-rockchip/board.c
+++ b/arch/arm/mach-rockchip/board.c
@@ -306,7 +306,7 @@ int board_usb_init(int index, enum usb_init_type init)
 
 #endif /* CONFIG_USB_GADGET */
 
-#if CONFIG_IS_ENABLED(FASTBOOT)
+#if IS_ENABLED(CONFIG_FASTBOOT)
 int fastboot_set_reboot_flag(enum fastboot_reboot_reason reason)
 {
 	if (reason != FASTBOOT_REBOOT_REASON_BOOTLOADER)
diff --git a/board/ti/am57xx/board.c b/board/ti/am57xx/board.c
index 0e57ee566b3..9ea507a8e96 100644
--- a/board/ti/am57xx/board.c
+++ b/board/ti/am57xx/board.c
@@ -1172,7 +1172,7 @@ int board_fit_config_name_match(const char *name)
 }
 #endif
 
-#if CONFIG_IS_ENABLED(FASTBOOT) && !CONFIG_IS_ENABLED(ENV_IS_NOWHERE)
+#if IS_ENABLED(CONFIG_FASTBOOT) && !CONFIG_IS_ENABLED(ENV_IS_NOWHERE)
 int fastboot_set_reboot_flag(enum fastboot_reboot_reason reason)
 {
 	if (reason != FASTBOOT_REBOOT_REASON_BOOTLOADER)
diff --git a/board/ti/dra7xx/evm.c b/board/ti/dra7xx/evm.c
index 568c8fb0411..a8a216d034a 100644
--- a/board/ti/dra7xx/evm.c
+++ b/board/ti/dra7xx/evm.c
@@ -1049,7 +1049,7 @@ int board_fit_config_name_match(const char *name)
 }
 #endif
 
-#if CONFIG_IS_ENABLED(FASTBOOT) && !CONFIG_IS_ENABLED(ENV_IS_NOWHERE)
+#if IS_ENABLED(CONFIG_FASTBOOT) && !CONFIG_IS_ENABLED(ENV_IS_NOWHERE)
 int fastboot_set_reboot_flag(enum fastboot_reboot_reason reason)
 {
 	if (reason != FASTBOOT_REBOOT_REASON_BOOTLOADER)
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 086/171] Correct SPL uses of FASTBOOT_FLASH
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (84 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 085/171] Correct SPL uses of FASTBOOT Simon Glass
@ 2023-01-30 14:41 ` Simon Glass
  2023-01-31 16:56   ` Mattijs Korpershoek
  2023-01-30 14:42 ` [PATCH 087/171] Correct SPL uses of FASTBOOT_FLASH_MMC Simon Glass
                   ` (14 subsequent siblings)
  100 siblings, 1 reply; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:41 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Joe Hershberger, Mattijs Korpershoek,
	Patrick Delaunay, Ramon Fried, Sean Anderson

This converts 3 usages of this option to the non-SPL form, since there is
no SPL_FASTBOOT_FLASH defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/fastboot/fb_getvar.c | 4 ++--
 net/fastboot.c               | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/fastboot/fb_getvar.c b/drivers/fastboot/fb_getvar.c
index 2fbd285db38..bcef8f866f3 100644
--- a/drivers/fastboot/fb_getvar.c
+++ b/drivers/fastboot/fb_getvar.c
@@ -57,7 +57,7 @@ static const struct {
 	}, {
 		.variable = "current-slot",
 		.dispatch = getvar_current_slot
-#if CONFIG_IS_ENABLED(FASTBOOT_FLASH)
+#if IS_ENABLED(CONFIG_FASTBOOT_FLASH)
 	}, {
 		.variable = "has-slot",
 		.dispatch = getvar_has_slot
@@ -67,7 +67,7 @@ static const struct {
 		.variable = "partition-type",
 		.dispatch = getvar_partition_type
 #endif
-#if CONFIG_IS_ENABLED(FASTBOOT_FLASH)
+#if IS_ENABLED(CONFIG_FASTBOOT_FLASH)
 	}, {
 		.variable = "partition-size",
 		.dispatch = getvar_partition_size
diff --git a/net/fastboot.c b/net/fastboot.c
index 96bdf5486fa..e9569d88d2a 100644
--- a/net/fastboot.c
+++ b/net/fastboot.c
@@ -307,7 +307,7 @@ void fastboot_start_server(void)
 
 	fastboot_our_port = CONFIG_UDP_FUNCTION_FASTBOOT_PORT;
 
-	if (CONFIG_IS_ENABLED(FASTBOOT_FLASH))
+	if (IS_ENABLED(CONFIG_FASTBOOT_FLASH))
 		fastboot_set_progress_callback(fastboot_timed_send_info);
 
 	net_set_udp_handler(fastboot_handler);
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 087/171] Correct SPL uses of FASTBOOT_FLASH_MMC
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (85 preceding siblings ...)
  2023-01-30 14:41 ` [PATCH 086/171] Correct SPL uses of FASTBOOT_FLASH Simon Glass
@ 2023-01-30 14:42 ` Simon Glass
  2023-01-31 16:57   ` Mattijs Korpershoek
  2023-01-30 14:42 ` [PATCH 088/171] Correct SPL uses of FASTBOOT_FLASH_NAND Simon Glass
                   ` (13 subsequent siblings)
  100 siblings, 1 reply; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:42 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Heiko Schocher, Mattijs Korpershoek,
	Patrick Delaunay, Sean Anderson

This converts 5 usages of this option to the non-SPL form, since there is
no SPL_FASTBOOT_FLASH_MMC defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/fastboot/fb_command.c | 4 ++--
 drivers/fastboot/fb_common.c  | 2 +-
 drivers/fastboot/fb_getvar.c  | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/fastboot/fb_command.c b/drivers/fastboot/fb_command.c
index 67a94798287..5a3fb69b3f7 100644
--- a/drivers/fastboot/fb_command.c
+++ b/drivers/fastboot/fb_command.c
@@ -295,7 +295,7 @@ void fastboot_data_complete(char *response)
  */
 static void __maybe_unused flash(char *cmd_parameter, char *response)
 {
-	if (CONFIG_IS_ENABLED(FASTBOOT_FLASH_MMC))
+	if (IS_ENABLED(CONFIG_FASTBOOT_FLASH_MMC))
 		fastboot_mmc_flash_write(cmd_parameter, fastboot_buf_addr,
 					 image_size, response);
 
@@ -315,7 +315,7 @@ static void __maybe_unused flash(char *cmd_parameter, char *response)
  */
 static void __maybe_unused erase(char *cmd_parameter, char *response)
 {
-	if (CONFIG_IS_ENABLED(FASTBOOT_FLASH_MMC))
+	if (IS_ENABLED(CONFIG_FASTBOOT_FLASH_MMC))
 		fastboot_mmc_erase(cmd_parameter, response);
 
 	if (CONFIG_IS_ENABLED(FASTBOOT_FLASH_NAND))
diff --git a/drivers/fastboot/fb_common.c b/drivers/fastboot/fb_common.c
index 7563650d07d..57b6182c46a 100644
--- a/drivers/fastboot/fb_common.c
+++ b/drivers/fastboot/fb_common.c
@@ -99,7 +99,7 @@ int __weak fastboot_set_reboot_flag(enum fastboot_reboot_reason reason)
 	const int mmc_dev = config_opt_enabled(CONFIG_FASTBOOT_FLASH_MMC,
 					       CONFIG_FASTBOOT_FLASH_MMC_DEV, -1);
 
-	if (!CONFIG_IS_ENABLED(FASTBOOT_FLASH_MMC))
+	if (!IS_ENABLED(CONFIG_FASTBOOT_FLASH_MMC))
 		return -EINVAL;
 
 	if (reason >= FASTBOOT_REBOOT_REASONS_COUNT)
diff --git a/drivers/fastboot/fb_getvar.c b/drivers/fastboot/fb_getvar.c
index bcef8f866f3..de4879dadfb 100644
--- a/drivers/fastboot/fb_getvar.c
+++ b/drivers/fastboot/fb_getvar.c
@@ -62,7 +62,7 @@ static const struct {
 		.variable = "has-slot",
 		.dispatch = getvar_has_slot
 #endif
-#if CONFIG_IS_ENABLED(FASTBOOT_FLASH_MMC)
+#if IS_ENABLED(CONFIG_FASTBOOT_FLASH_MMC)
 	}, {
 		.variable = "partition-type",
 		.dispatch = getvar_partition_type
@@ -99,7 +99,7 @@ static int getvar_get_part_info(const char *part_name, char *response,
 	struct disk_partition disk_part;
 	struct part_info *part_info;
 
-	if (CONFIG_IS_ENABLED(FASTBOOT_FLASH_MMC)) {
+	if (IS_ENABLED(CONFIG_FASTBOOT_FLASH_MMC)) {
 		r = fastboot_mmc_get_part_info(part_name, &dev_desc, &disk_part,
 					       response);
 		if (r >= 0 && size)
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 088/171] Correct SPL uses of FASTBOOT_FLASH_NAND
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (86 preceding siblings ...)
  2023-01-30 14:42 ` [PATCH 087/171] Correct SPL uses of FASTBOOT_FLASH_MMC Simon Glass
@ 2023-01-30 14:42 ` Simon Glass
  2023-01-31 16:58   ` Mattijs Korpershoek
  2023-01-30 14:42 ` [PATCH 089/171] Correct SPL use of FASTBOOT_MMC_USER_SUPPORT Simon Glass
                   ` (12 subsequent siblings)
  100 siblings, 1 reply; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:42 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Heiko Schocher, Mattijs Korpershoek,
	Patrick Delaunay, Sean Anderson

This converts 3 usages of this option to the non-SPL form, since there is
no SPL_FASTBOOT_FLASH_NAND defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/fastboot/fb_command.c | 4 ++--
 drivers/fastboot/fb_getvar.c  | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/fastboot/fb_command.c b/drivers/fastboot/fb_command.c
index 5a3fb69b3f7..71cfaec6e9d 100644
--- a/drivers/fastboot/fb_command.c
+++ b/drivers/fastboot/fb_command.c
@@ -299,7 +299,7 @@ static void __maybe_unused flash(char *cmd_parameter, char *response)
 		fastboot_mmc_flash_write(cmd_parameter, fastboot_buf_addr,
 					 image_size, response);
 
-	if (CONFIG_IS_ENABLED(FASTBOOT_FLASH_NAND))
+	if (IS_ENABLED(CONFIG_FASTBOOT_FLASH_NAND))
 		fastboot_nand_flash_write(cmd_parameter, fastboot_buf_addr,
 					  image_size, response);
 }
@@ -318,7 +318,7 @@ static void __maybe_unused erase(char *cmd_parameter, char *response)
 	if (IS_ENABLED(CONFIG_FASTBOOT_FLASH_MMC))
 		fastboot_mmc_erase(cmd_parameter, response);
 
-	if (CONFIG_IS_ENABLED(FASTBOOT_FLASH_NAND))
+	if (IS_ENABLED(CONFIG_FASTBOOT_FLASH_NAND))
 		fastboot_nand_erase(cmd_parameter, response);
 }
 
diff --git a/drivers/fastboot/fb_getvar.c b/drivers/fastboot/fb_getvar.c
index de4879dadfb..dd3475e0a8b 100644
--- a/drivers/fastboot/fb_getvar.c
+++ b/drivers/fastboot/fb_getvar.c
@@ -104,7 +104,7 @@ static int getvar_get_part_info(const char *part_name, char *response,
 					       response);
 		if (r >= 0 && size)
 			*size = disk_part.size * disk_part.blksz;
-	} else if (CONFIG_IS_ENABLED(FASTBOOT_FLASH_NAND)) {
+	} else if (IS_ENABLED(CONFIG_FASTBOOT_FLASH_NAND)) {
 		r = fastboot_nand_get_part_info(part_name, &part_info, response);
 		if (r >= 0 && size)
 			*size = part_info->size;
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 089/171] Correct SPL use of FASTBOOT_MMC_USER_SUPPORT
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (87 preceding siblings ...)
  2023-01-30 14:42 ` [PATCH 088/171] Correct SPL uses of FASTBOOT_FLASH_NAND Simon Glass
@ 2023-01-30 14:42 ` Simon Glass
  2023-01-30 14:42 ` [PATCH 090/171] Correct SPL use of FDT_SIMPLEFB Simon Glass
                   ` (11 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:42 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_FASTBOOT_MMC_USER_SUPPORT defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/fastboot/fb_mmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/fastboot/fb_mmc.c b/drivers/fastboot/fb_mmc.c
index 033c510bc09..a06c590234f 100644
--- a/drivers/fastboot/fb_mmc.c
+++ b/drivers/fastboot/fb_mmc.c
@@ -588,7 +588,7 @@ void fastboot_mmc_flash_write(const char *cmd, void *download_buffer,
 	}
 #endif
 
-#if CONFIG_IS_ENABLED(FASTBOOT_MMC_USER_SUPPORT)
+#if IS_ENABLED(CONFIG_FASTBOOT_MMC_USER_SUPPORT)
 	if (strcmp(cmd, CONFIG_FASTBOOT_MMC_USER_NAME) == 0) {
 		dev_desc = fastboot_mmc_get_dev(response);
 		if (!dev_desc)
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 090/171] Correct SPL use of FDT_SIMPLEFB
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (88 preceding siblings ...)
  2023-01-30 14:42 ` [PATCH 089/171] Correct SPL use of FASTBOOT_MMC_USER_SUPPORT Simon Glass
@ 2023-01-30 14:42 ` Simon Glass
  2023-01-30 14:42 ` [PATCH 091/171] Correct SPL uses of FEC_MXC Simon Glass
                   ` (10 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:42 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Patrice Chotard, Patrick Delaunay, uboot-stm32

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_FDT_SIMPLEFB defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 board/st/stm32mp1/stm32mp1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c
index 7cff9e3d860..5e89192ec03 100644
--- a/board/st/stm32mp1/stm32mp1.c
+++ b/board/st/stm32mp1/stm32mp1.c
@@ -930,7 +930,7 @@ int ft_board_setup(void *blob, struct bd_info *bd)
 		if (IS_ENABLED(CONFIG_FDT_FIXUP_PARTITIONS))
 			fdt_fixup_mtdparts(blob, nodes, ARRAY_SIZE(nodes));
 
-	if (CONFIG_IS_ENABLED(FDT_SIMPLEFB))
+	if (IS_ENABLED(CONFIG_FDT_SIMPLEFB))
 		fdt_simplefb_enable_and_mem_rsv(blob);
 
 	return 0;
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 091/171] Correct SPL uses of FEC_MXC
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (89 preceding siblings ...)
  2023-01-30 14:42 ` [PATCH 090/171] Correct SPL use of FDT_SIMPLEFB Simon Glass
@ 2023-01-30 14:42 ` Simon Glass
  2023-01-30 14:42 ` [PATCH 092/171] Correct SPL use of FSL_CAAM Simon Glass
                   ` (9 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:42 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Ariel D'Alessandro, Fabio Estevam,
	Manoj Sai, Matteo Lisi, NXP i.MX U-Boot Team, Peng Fan,
	Stefano Babic

This converts 4 usages of this option to the non-SPL form, since there is
no SPL_FEC_MXC defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 board/engicam/imx8mp/icore_mx8mp.c              | 2 +-
 board/freescale/imx8mp_evk/imx8mp_evk.c         | 2 +-
 board/freescale/imx93_evk/imx93_evk.c           | 2 +-
 board/variscite/imx8mn_var_som/imx8mn_var_som.c | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/board/engicam/imx8mp/icore_mx8mp.c b/board/engicam/imx8mp/icore_mx8mp.c
index f0096a2a879..500080c7cff 100644
--- a/board/engicam/imx8mp/icore_mx8mp.c
+++ b/board/engicam/imx8mp/icore_mx8mp.c
@@ -58,7 +58,7 @@ int board_phy_config(struct phy_device *phydev)
 
 int board_init(void)
 {
-	if (CONFIG_IS_ENABLED(FEC_MXC))
+	if (IS_ENABLED(CONFIG_FEC_MXC))
 		setup_fec();
 
 	if (IS_ENABLED(CONFIG_DWC_ETH_QOS))
diff --git a/board/freescale/imx8mp_evk/imx8mp_evk.c b/board/freescale/imx8mp_evk/imx8mp_evk.c
index c7692677f9a..ce211d486ab 100644
--- a/board/freescale/imx8mp_evk/imx8mp_evk.c
+++ b/board/freescale/imx8mp_evk/imx8mp_evk.c
@@ -55,7 +55,7 @@ int board_init(void)
 {
 	int ret = 0;
 
-	if (CONFIG_IS_ENABLED(FEC_MXC)) {
+	if (IS_ENABLED(CONFIG_FEC_MXC)) {
 		setup_fec();
 	}
 
diff --git a/board/freescale/imx93_evk/imx93_evk.c b/board/freescale/imx93_evk/imx93_evk.c
index e01b2f59e3f..e73a498733b 100644
--- a/board/freescale/imx93_evk/imx93_evk.c
+++ b/board/freescale/imx93_evk/imx93_evk.c
@@ -66,7 +66,7 @@ static int setup_eqos(void)
 
 int board_init(void)
 {
-	if (CONFIG_IS_ENABLED(FEC_MXC))
+	if (IS_ENABLED(CONFIG_FEC_MXC))
 		setup_fec();
 
 	if (IS_ENABLED(CONFIG_DWC_ETH_QOS))
diff --git a/board/variscite/imx8mn_var_som/imx8mn_var_som.c b/board/variscite/imx8mn_var_som/imx8mn_var_som.c
index e274e0e0a4c..d40f4d01761 100644
--- a/board/variscite/imx8mn_var_som/imx8mn_var_som.c
+++ b/board/variscite/imx8mn_var_som/imx8mn_var_som.c
@@ -18,7 +18,7 @@ static void setup_fec(void)
 
 int board_init(void)
 {
-	if (CONFIG_IS_ENABLED(FEC_MXC))
+	if (IS_ENABLED(CONFIG_FEC_MXC))
 		setup_fec();
 
 	return 0;
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 092/171] Correct SPL use of FSL_CAAM
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (90 preceding siblings ...)
  2023-01-30 14:42 ` [PATCH 091/171] Correct SPL uses of FEC_MXC Simon Glass
@ 2023-01-30 14:42 ` Simon Glass
  2023-01-30 14:42 ` [PATCH 093/171] Correct SPL uses of FSL_ISBC_KEY_EXT Simon Glass
                   ` (8 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:42 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Mathew McBride

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_FSL_CAAM defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 board/traverse/ten64/ten64.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/traverse/ten64/ten64.c b/board/traverse/ten64/ten64.c
index e6403cad1f5..d3ff1d143b0 100644
--- a/board/traverse/ten64/ten64.c
+++ b/board/traverse/ten64/ten64.c
@@ -123,7 +123,7 @@ int board_init(void)
 {
 	init_final_memctl_regs();
 
-	if (CONFIG_IS_ENABLED(FSL_CAAM))
+	if (IS_ENABLED(CONFIG_FSL_CAAM))
 		sec_init();
 
 	return 0;
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 093/171] Correct SPL uses of FSL_ISBC_KEY_EXT
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (91 preceding siblings ...)
  2023-01-30 14:42 ` [PATCH 092/171] Correct SPL use of FSL_CAAM Simon Glass
@ 2023-01-30 14:42 ` Simon Glass
  2023-01-30 14:42 ` [PATCH 094/171] Correct SPL use of FSL_MC_ENET Simon Glass
                   ` (7 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:42 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Gaurav Jain

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 <sjg@chromium.org>
---

 board/freescale/common/fsl_validate.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/board/freescale/common/fsl_validate.c b/board/freescale/common/fsl_validate.c
index 451341ddc04..b4d2bd5b708 100644
--- a/board/freescale/common/fsl_validate.c
+++ b/board/freescale/common/fsl_validate.c
@@ -29,7 +29,7 @@
 #define CHECK_KEY_LEN(key_len)	(((key_len) == 2 * KEY_SIZE_BYTES / 4) || \
 				 ((key_len) == 2 * KEY_SIZE_BYTES / 2) || \
 				 ((key_len) == 2 * KEY_SIZE_BYTES))
-#if CONFIG_IS_ENABLED(FSL_ISBC_KEY_EXT)
+#if IS_ENABLED(CONFIG_FSL_ISBC_KEY_EXT)
 /* Global data structure */
 static struct fsl_secboot_glb glb;
 #endif
@@ -63,7 +63,7 @@ self:
 	goto self;
 }
 
-#if CONFIG_IS_ENABLED(FSL_ISBC_KEY_EXT)
+#if IS_ENABLED(CONFIG_FSL_ISBC_KEY_EXT)
 static u32 check_ie(struct fsl_secboot_img_priv *img)
 {
 	if (img->hdr.ie_flag & IE_FLAG_MASK)
@@ -188,7 +188,7 @@ static u32 check_srk(struct fsl_secboot_img_priv *img)
 {
 #ifdef CONFIG_ESBC_HDR_LS
 	/* In LS, No SRK Flag as SRK is always present if IE not present*/
-#if CONFIG_IS_ENABLED(FSL_ISBC_KEY_EXT)
+#if IS_ENABLED(CONFIG_FSL_ISBC_KEY_EXT)
 	return !check_ie(img);
 #endif
 	return 1;
@@ -278,7 +278,7 @@ static u32 read_validate_single_key(struct fsl_secboot_img_priv *img)
 }
 #endif /* CONFIG_ESBC_HDR_LS */
 
-#if CONFIG_IS_ENABLED(FSL_ISBC_KEY_EXT)
+#if IS_ENABLED(CONFIG_FSL_ISBC_KEY_EXT)
 
 static void install_ie_tbl(uintptr_t ie_tbl_addr,
 		struct fsl_secboot_img_priv *img)
@@ -434,7 +434,7 @@ void fsl_secboot_handle_error(int error)
 	case ERROR_ESBC_CLIENT_HEADER_INVALID_KEY_NUM:
 	case ERROR_ESBC_CLIENT_HEADER_INV_SRK_ENTRY_KEYLEN:
 #endif
-#if CONFIG_IS_ENABLED(FSL_ISBC_KEY_EXT)
+#if IS_ENABLED(CONFIG_FSL_ISBC_KEY_EXT)
 	/*@fallthrough@*/
 	case ERROR_ESBC_CLIENT_HEADER_IE_KEY_REVOKED:
 	case ERROR_ESBC_CLIENT_HEADER_INVALID_IE_NUM_ENTRY:
@@ -571,7 +571,7 @@ static int calc_esbchdr_esbc_hash(struct fsl_secboot_img_priv *img)
 		key_hash = 1;
 	}
 #endif
-#if CONFIG_IS_ENABLED(FSL_ISBC_KEY_EXT)
+#if IS_ENABLED(CONFIG_FSL_ISBC_KEY_EXT)
 	if (!key_hash && check_ie(img))
 		key_hash = 1;
 #endif
@@ -705,7 +705,7 @@ static int read_validate_esbc_client_header(struct fsl_secboot_img_priv *img)
 	}
 #endif
 
-#if CONFIG_IS_ENABLED(FSL_ISBC_KEY_EXT)
+#if IS_ENABLED(CONFIG_FSL_ISBC_KEY_EXT)
 	if (!key_found && check_ie(img)) {
 		ret = read_validate_ie_tbl(img);
 		if (ret != 0)
@@ -851,7 +851,7 @@ static int secboot_init(struct fsl_secboot_img_priv **img_ptr)
 		return -ENOMEM;
 	memset(img, 0, sizeof(struct fsl_secboot_img_priv));
 
-#if CONFIG_IS_ENABLED(FSL_ISBC_KEY_EXT)
+#if IS_ENABLED(CONFIG_FSL_ISBC_KEY_EXT)
 	if (glb.ie_addr)
 		img->ie_addr = glb.ie_addr;
 #endif
@@ -952,7 +952,7 @@ int fsl_secboot_validate(uintptr_t haddr, char *arg_hash_str,
 	else
 		ret = memcmp(srk_hash, img->img_key_hash, SHA256_BYTES);
 
-#if CONFIG_IS_ENABLED(FSL_ISBC_KEY_EXT)
+#if IS_ENABLED(CONFIG_FSL_ISBC_KEY_EXT)
 	if (!hash_cmd && check_ie(img))
 		ret = 0;
 #endif
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 094/171] Correct SPL use of FSL_MC_ENET
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (92 preceding siblings ...)
  2023-01-30 14:42 ` [PATCH 093/171] Correct SPL uses of FSL_ISBC_KEY_EXT Simon Glass
@ 2023-01-30 14:42 ` Simon Glass
  2023-01-30 14:42 ` [PATCH 095/171] Correct SPL use of FSP_VERSION2 Simon Glass
                   ` (6 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:42 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Mathew McBride

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_FSL_MC_ENET defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 board/traverse/ten64/ten64.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/traverse/ten64/ten64.c b/board/traverse/ten64/ten64.c
index d3ff1d143b0..13aafb5de76 100644
--- a/board/traverse/ten64/ten64.c
+++ b/board/traverse/ten64/ten64.c
@@ -229,7 +229,7 @@ int ft_board_setup(void *blob, struct bd_info *bd)
 
 	fdt_fsl_mc_fixup_iommu_map_entry(blob);
 
-	if (CONFIG_IS_ENABLED(FSL_MC_ENET))
+	if (IS_ENABLED(CONFIG_FSL_MC_ENET))
 		fdt_fixup_board_enet(blob);
 
 	fdt_fixup_icid(blob);
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 095/171] Correct SPL use of FSP_VERSION2
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (93 preceding siblings ...)
  2023-01-30 14:42 ` [PATCH 094/171] Correct SPL use of FSL_MC_ENET Simon Glass
@ 2023-01-30 14:42 ` Simon Glass
  2023-01-30 14:42   ` Simon Glass
                   ` (5 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:42 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Bin Meng

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_FSP_VERSION2 defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 arch/x86/lib/fsp/fsp_dram.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/lib/fsp/fsp_dram.c b/arch/x86/lib/fsp/fsp_dram.c
index cc889a688d8..3805a011dda 100644
--- a/arch/x86/lib/fsp/fsp_dram.c
+++ b/arch/x86/lib/fsp/fsp_dram.c
@@ -62,7 +62,7 @@ int dram_init_banksize(void)
 	 * DRAM range in MTRR otherwise the boot process goes very slowly,
 	 * which was observed on Chromebook Coral with FSP2.
 	 */
-	update_mtrr = CONFIG_IS_ENABLED(FSP_VERSION2);
+	update_mtrr = IS_ENABLED(CONFIG_FSP_VERSION2);
 
 	if (!ll_boot_init()) {
 		gd->bd->bi_dram[0].start = 0;
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 096/171] Correct SPL use of FS_EROFS
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
@ 2023-01-30 14:42   ` Simon Glass
  2023-01-30 14:40 ` [PATCH 002/171] x86: Correct Chrromebook typo Simon Glass
                     ` (99 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:42 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, linux-erofs

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_FS_EROFS defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 fs/erofs/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/erofs/Makefile b/fs/erofs/Makefile
index 58af6a68e41..ef94d2db45d 100644
--- a/fs/erofs/Makefile
+++ b/fs/erofs/Makefile
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0+
 #
 
-obj-$(CONFIG_$(SPL_)FS_EROFS) = fs.o \
+obj-$(CONFIG_FS_EROFS) = fs.o \
 				super.o \
 				namei.o \
 				data.o \
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 096/171] Correct SPL use of FS_EROFS
@ 2023-01-30 14:42   ` Simon Glass
  0 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:42 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Huang Jianan, linux-erofs

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_FS_EROFS defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 fs/erofs/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/erofs/Makefile b/fs/erofs/Makefile
index 58af6a68e41..ef94d2db45d 100644
--- a/fs/erofs/Makefile
+++ b/fs/erofs/Makefile
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0+
 #
 
-obj-$(CONFIG_$(SPL_)FS_EROFS) = fs.o \
+obj-$(CONFIG_FS_EROFS) = fs.o \
 				super.o \
 				namei.o \
 				data.o \
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 097/171] Correct SPL use of GENERATE_SMBIOS_TABLE
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (95 preceding siblings ...)
  2023-01-30 14:42   ` Simon Glass
@ 2023-01-30 14:42 ` Simon Glass
  2023-01-30 14:42 ` [PATCH 098/171] Correct SPL uses of GMAC_ROCKCHIP Simon Glass
                   ` (3 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:42 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, AKASHI Takahiro, Heinrich Schuchardt,
	Jason Liu, Rasmus Villemoes, Stefan Roese

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_GENERATE_SMBIOS_TABLE defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 include/asm-generic/global_data.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h
index da17ac8cbc8..ac7640c5ed0 100644
--- a/include/asm-generic/global_data.h
+++ b/include/asm-generic/global_data.h
@@ -467,7 +467,7 @@ struct global_data {
 	 */
 	ulong acpi_start;
 #endif
-#if CONFIG_IS_ENABLED(GENERATE_SMBIOS_TABLE)
+#if IS_ENABLED(CONFIG_GENERATE_SMBIOS_TABLE)
 	/**
 	 * @smbios_version: Points to SMBIOS type 0 version
 	 */
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 098/171] Correct SPL uses of GMAC_ROCKCHIP
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (96 preceding siblings ...)
  2023-01-30 14:42 ` [PATCH 097/171] Correct SPL use of GENERATE_SMBIOS_TABLE Simon Glass
@ 2023-01-30 14:42 ` Simon Glass
  2023-01-30 14:42 ` [PATCH 099/171] Correct SPL use of HUSH_PARSER Simon Glass
                   ` (2 subsequent siblings)
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:42 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Kever Yang, Lukasz Majewski,
	Philipp Tomsich, Sean Anderson

This converts 2 usages of this option to the non-SPL form, since there is
no SPL_GMAC_ROCKCHIP defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/clk/rockchip/clk_rk3368.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/clk/rockchip/clk_rk3368.c b/drivers/clk/rockchip/clk_rk3368.c
index 39caf23c31f..ea8d120738f 100644
--- a/drivers/clk/rockchip/clk_rk3368.c
+++ b/drivers/clk/rockchip/clk_rk3368.c
@@ -313,7 +313,7 @@ static ulong rk3368_ddr_set_clk(struct rk3368_cru *cru, ulong set_rate)
 }
 #endif
 
-#if CONFIG_IS_ENABLED(GMAC_ROCKCHIP)
+#if IS_ENABLED(CONFIG_GMAC_ROCKCHIP)
 static ulong rk3368_gmac_set_clk(struct rk3368_cru *cru, ulong set_rate)
 {
 	ulong ret;
@@ -507,7 +507,7 @@ static ulong rk3368_clk_set_rate(struct clk *clk, ulong rate)
 		ret = rk3368_mmc_set_clk(clk, rate);
 		break;
 #endif
-#if CONFIG_IS_ENABLED(GMAC_ROCKCHIP)
+#if IS_ENABLED(CONFIG_GMAC_ROCKCHIP)
 	case SCLK_MAC:
 		/* select the external clock */
 		ret = rk3368_gmac_set_clk(priv->cru, rate);
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 099/171] Correct SPL use of HUSH_PARSER
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (97 preceding siblings ...)
  2023-01-30 14:42 ` [PATCH 098/171] Correct SPL uses of GMAC_ROCKCHIP Simon Glass
@ 2023-01-30 14:42 ` Simon Glass
  2023-01-30 14:42 ` [PATCH 100/171] Correct SPL uses of HW_WATCHDOG Simon Glass
  2023-01-30 15:10 ` [PATCH 000/171] Kconfig: More cleanup of CONFIG options Tom Rini
  100 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:42 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass, Hector Palacios, Marek Vasut

This converts 1 usage of this option to the non-SPL form, since there is
no SPL_HUSH_PARSER defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 common/cli.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/cli.c b/common/cli.c
index ba45dad2db5..9451e6a1426 100644
--- a/common/cli.c
+++ b/common/cli.c
@@ -31,7 +31,7 @@
  */
 int run_command(const char *cmd, int flag)
 {
-#if !CONFIG_IS_ENABLED(HUSH_PARSER)
+#if !IS_ENABLED(CONFIG_HUSH_PARSER)
 	/*
 	 * cli_run_command can return 0 or 1 for success, so clean up
 	 * its result.
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* [PATCH 100/171] Correct SPL uses of HW_WATCHDOG
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (98 preceding siblings ...)
  2023-01-30 14:42 ` [PATCH 099/171] Correct SPL use of HUSH_PARSER Simon Glass
@ 2023-01-30 14:42 ` Simon Glass
  2023-01-31  1:14   ` ChiaWei Wang
  2023-01-30 15:10 ` [PATCH 000/171] Kconfig: More cleanup of CONFIG options Tom Rini
  100 siblings, 1 reply; 134+ messages in thread
From: Simon Glass @ 2023-01-30 14:42 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Aspeed BMC SW team, Chia-Wei Wang,
	Joel Stanley, Ryan Chen, Stefan Roese

This converts 2 usages of this option to the non-SPL form, since there is
no SPL_HW_WATCHDOG defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/crypto/aspeed/aspeed_hace.c | 2 +-
 drivers/crypto/hash/hash_sw.c       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/crypto/aspeed/aspeed_hace.c b/drivers/crypto/aspeed/aspeed_hace.c
index a1b0b9f564b..6b6c8fa6588 100644
--- a/drivers/crypto/aspeed/aspeed_hace.c
+++ b/drivers/crypto/aspeed/aspeed_hace.c
@@ -288,7 +288,7 @@ static int aspeed_hace_digest_wd(struct udevice *dev, enum HASH_ALGO algo,
 	if (rc)
 		return rc;
 
-	if (CONFIG_IS_ENABLED(HW_WATCHDOG) || CONFIG_IS_ENABLED(WATCHDOG)) {
+	if (IS_ENABLED(CONFIG_HW_WATCHDOG) || CONFIG_IS_ENABLED(WATCHDOG)) {
 		cur = ibuf;
 		end = ibuf + ilen;
 
diff --git a/drivers/crypto/hash/hash_sw.c b/drivers/crypto/hash/hash_sw.c
index 553c068010c..d8065d68ea4 100644
--- a/drivers/crypto/hash/hash_sw.c
+++ b/drivers/crypto/hash/hash_sw.c
@@ -244,7 +244,7 @@ static int sw_hash_digest_wd(struct udevice *dev, enum HASH_ALGO algo,
 	if (rc)
 		return rc;
 
-	if (CONFIG_IS_ENABLED(HW_WATCHDOG) || CONFIG_IS_ENABLED(WATCHDOG)) {
+	if (IS_ENABLED(CONFIG_HW_WATCHDOG) || CONFIG_IS_ENABLED(WATCHDOG)) {
 		cur = ibuf;
 		end = ibuf + ilen;
 
-- 
2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply related	[flat|nested] 134+ messages in thread

* Re: [PATCH 020/171] efi: Add a Kconfig for SPL_EFI_LOADER et all
  2023-01-30 14:40 ` [PATCH 020/171] efi: Add a Kconfig for SPL_EFI_LOADER et all Simon Glass
@ 2023-01-30 14:48   ` Heinrich Schuchardt
  2023-01-30 14:51     ` Tom Rini
  0 siblings, 1 reply; 134+ messages in thread
From: Heinrich Schuchardt @ 2023-01-30 14:48 UTC (permalink / raw)
  To: Simon Glass; +Cc: Tom Rini, Ilias Apalodimas, U-Boot Mailing List

On 1/30/23 15:40, Simon Glass wrote:
> This and EFI_DEVICE_PATH_TO_TEXT are implicitly used in the source and

This code is not compiled in SPL. So it cannot be used there.

> seem useful, so add them.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
>   lib/efi_loader/Kconfig | 8 ++++++++
>   1 file changed, 8 insertions(+)
>
> diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig
> index 9fe9a2df9ea..0bd42b9e196 100644
> --- a/lib/efi_loader/Kconfig
> +++ b/lib/efi_loader/Kconfig
> @@ -32,6 +32,10 @@ config EFI_LOADER
>
>   if EFI_LOADER
>
> +config SPL_EFI_LOADER
> +	def_bool n  # Support running UEFI applications (SPL)
> +	depends on SPL
> +

I cannot see how this could be used:

* The size of the EFI code is too big to fit into SPL on most boards.
* Our EFI code depends on DM.

>   config CMD_BOOTEFI_BOOTMGR
>   	bool "UEFI Boot Manager"
>   	default y
> @@ -233,6 +237,10 @@ config EFI_DEVICE_PATH_TO_TEXT
>   	  The device path to text protocol converts device nodes and paths to
>   	  human readable strings.
>
> +config SPL_EFI_DEVICE_PATH_TO_TEXT
> +	def_bool n  # Device path to text protocol (SPL)
> +	depends on SPL
> +

The EFI sub-system does not exist in SPL.

Best regards

Heinrich

>   config EFI_DEVICE_PATH_UTIL
>   	bool "Device path utilities protocol"
>   	default y


^ permalink raw reply	[flat|nested] 134+ messages in thread

* Re: [PATCH 019/171] lib: Add a Kconfig for SPL_GENERATE_ACPI_TABLE
  2023-01-30 14:40 ` [PATCH 019/171] lib: Add a Kconfig for SPL_GENERATE_ACPI_TABLE Simon Glass
@ 2023-01-30 14:50   ` Heinrich Schuchardt
  2023-01-30 14:52     ` Tom Rini
  0 siblings, 1 reply; 134+ messages in thread
From: Heinrich Schuchardt @ 2023-01-30 14:50 UTC (permalink / raw)
  To: Simon Glass
  Cc: Tom Rini, Brandon Maier, Ilias Apalodimas, Kautuk Consul,
	Leo Yu-Chi Liang, Philippe Reynes, Rasmus Villemoes,
	Sughosh Ganu, U-Boot Mailing List

On 1/30/23 15:40, Simon Glass wrote:
> This is implicitly used in the source and seems useful, so add it.

Please, provide a clear description how this will be used.

Do you think of LinuxBoot started from SPL?

Best regards

Heinrich

>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
>   lib/Kconfig | 4 ++++
>   1 file changed, 4 insertions(+)
>
> diff --git a/lib/Kconfig b/lib/Kconfig
> index a6c269a8535..47edd0719aa 100644
> --- a/lib/Kconfig
> +++ b/lib/Kconfig
> @@ -287,6 +287,10 @@ config GENERATE_ACPI_TABLE
>   	  by the operating system. It defines platform-independent interfaces
>   	  for configuration and power management monitoring.
>
> +config SPL_GENERATE_ACPI_TABLE
> +	def_bool n  # Generate an ACPI table (SPL)
> +	depends on SPL && SUPPORT_ACPI
> +
>   config SPL_TINY_MEMSET
>   	bool "Use a very small memset() in SPL"
>   	depends on SPL


^ permalink raw reply	[flat|nested] 134+ messages in thread

* Re: [PATCH 020/171] efi: Add a Kconfig for SPL_EFI_LOADER et all
  2023-01-30 14:48   ` Heinrich Schuchardt
@ 2023-01-30 14:51     ` Tom Rini
  2023-02-05  1:21       ` Simon Glass
  0 siblings, 1 reply; 134+ messages in thread
From: Tom Rini @ 2023-01-30 14:51 UTC (permalink / raw)
  To: Heinrich Schuchardt; +Cc: Simon Glass, Ilias Apalodimas, U-Boot Mailing List

[-- Attachment #1: Type: text/plain, Size: 1102 bytes --]

On Mon, Jan 30, 2023 at 03:48:44PM +0100, Heinrich Schuchardt wrote:
> On 1/30/23 15:40, Simon Glass wrote:
> > This and EFI_DEVICE_PATH_TO_TEXT are implicitly used in the source and
> 
> This code is not compiled in SPL. So it cannot be used there.
> 
> > seem useful, so add them.
> > 
> > Signed-off-by: Simon Glass <sjg@chromium.org>
> > ---
> > 
> >   lib/efi_loader/Kconfig | 8 ++++++++
> >   1 file changed, 8 insertions(+)
> > 
> > diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig
> > index 9fe9a2df9ea..0bd42b9e196 100644
> > --- a/lib/efi_loader/Kconfig
> > +++ b/lib/efi_loader/Kconfig
> > @@ -32,6 +32,10 @@ config EFI_LOADER
> > 
> >   if EFI_LOADER
> > 
> > +config SPL_EFI_LOADER
> > +	def_bool n  # Support running UEFI applications (SPL)
> > +	depends on SPL
> > +
> 
> I cannot see how this could be used:
> 
> * The size of the EFI code is too big to fit into SPL on most boards.

OK, so please do a series to correct all CONFIG_IS_ENABLED(EFI_*) to be
IS_ENABLED(CONFIG_EFI_*), other than EFI_PARTITIONS which can be in SPL.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 134+ messages in thread

* Re: [PATCH 014/171] lib: Add a Kconfig for SPL_ERRNO_STR
  2023-01-30 14:40 ` [PATCH 014/171] lib: Add a Kconfig for SPL_ERRNO_STR Simon Glass
@ 2023-01-30 14:51   ` Heinrich Schuchardt
  2023-01-30 14:53     ` Tom Rini
  2023-01-31 14:16     ` Simon Glass
  0 siblings, 2 replies; 134+ messages in thread
From: Heinrich Schuchardt @ 2023-01-30 14:51 UTC (permalink / raw)
  To: Simon Glass
  Cc: Tom Rini, Brandon Maier, Ilias Apalodimas, Kautuk Consul,
	Leo Yu-Chi Liang, Philippe Reynes, Rasmus Villemoes,
	Sughosh Ganu, U-Boot Mailing List

On 1/30/23 15:40, Simon Glass wrote:
> This is implicitly used in the source and seems useful, so add it.

Do not use the same commit message for all patches.

Clearly describe how you plan to use this and put this patch in a series
where you actually use the new CONFIG option

>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
>   lib/Kconfig | 4 ++++
>   1 file changed, 4 insertions(+)
>
> diff --git a/lib/Kconfig b/lib/Kconfig
> index 549bd357785..999ae99bf68 100644
> --- a/lib/Kconfig
> +++ b/lib/Kconfig
> @@ -782,6 +782,10 @@ config ERRNO_STR
>   	  - if errno is null or positive number - a pointer to "Success" message
>   	  - if errno is negative - a pointer to errno related message
>
> +config SPL_ERRNO_STR
> +	def_bool n  # Enable function for getting errno-related string message (SPL)
> +	depends on SPL
> +
>   config HEXDUMP
>   	bool "Enable hexdump"
>   	help


^ permalink raw reply	[flat|nested] 134+ messages in thread

* Re: [PATCH 019/171] lib: Add a Kconfig for SPL_GENERATE_ACPI_TABLE
  2023-01-30 14:50   ` Heinrich Schuchardt
@ 2023-01-30 14:52     ` Tom Rini
  2023-01-30 15:18       ` Mark Kettenis
  2023-02-05  1:21       ` Simon Glass
  0 siblings, 2 replies; 134+ messages in thread
From: Tom Rini @ 2023-01-30 14:52 UTC (permalink / raw)
  To: Heinrich Schuchardt
  Cc: Simon Glass, Brandon Maier, Ilias Apalodimas, Kautuk Consul,
	Leo Yu-Chi Liang, Philippe Reynes, Rasmus Villemoes,
	Sughosh Ganu, U-Boot Mailing List

[-- Attachment #1: Type: text/plain, Size: 534 bytes --]

On Mon, Jan 30, 2023 at 03:50:23PM +0100, Heinrich Schuchardt wrote:
> On 1/30/23 15:40, Simon Glass wrote:
> > This is implicitly used in the source and seems useful, so add it.
> 
> Please, provide a clear description how this will be used.

To follow up on what I just sent, Simon seems to be taking a pass at
adding to Kconfig many / most of the options that aren't available today
but are implied by the usage of CONFIG_IS_ENABLED(FOO). So, this is
another case where IS_ENABLED(CONFIG_FOO) should be used.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 134+ messages in thread

* Re: [PATCH 014/171] lib: Add a Kconfig for SPL_ERRNO_STR
  2023-01-30 14:51   ` Heinrich Schuchardt
@ 2023-01-30 14:53     ` Tom Rini
  2023-01-31 14:16     ` Simon Glass
  1 sibling, 0 replies; 134+ messages in thread
From: Tom Rini @ 2023-01-30 14:53 UTC (permalink / raw)
  To: Heinrich Schuchardt
  Cc: Simon Glass, Brandon Maier, Ilias Apalodimas, Kautuk Consul,
	Leo Yu-Chi Liang, Philippe Reynes, Rasmus Villemoes,
	Sughosh Ganu, U-Boot Mailing List

[-- Attachment #1: Type: text/plain, Size: 329 bytes --]

On Mon, Jan 30, 2023 at 03:51:56PM +0100, Heinrich Schuchardt wrote:
> On 1/30/23 15:40, Simon Glass wrote:
> > This is implicitly used in the source and seems useful, so add it.
> 
> Do not use the same commit message for all patches.

The same commit message is fine, when scripting a bulk fix such as this.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 134+ messages in thread

* Re: [PATCH 042/171] Correct SPL uses of CMD_CLK
  2023-01-30 14:41 ` [PATCH 042/171] Correct SPL uses of CMD_CLK Simon Glass
@ 2023-01-30 14:54   ` Sean Anderson
  0 siblings, 0 replies; 134+ messages in thread
From: Sean Anderson @ 2023-01-30 14:54 UTC (permalink / raw)
  To: Simon Glass, U-Boot Mailing List; +Cc: Tom Rini, Lukasz Majewski

On 1/30/23 09:41, Simon Glass wrote:
> This converts 7 usages of this option to the non-SPL form, since there is
> no SPL_CMD_CLK defined in Kconfig
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
> 
>   drivers/clk/clk_k210.c        | 6 +++---
>   drivers/clk/imx/clk-imx8.c    | 2 +-
>   drivers/clk/imx/clk-imx8.h    | 2 +-
>   drivers/clk/imx/clk-imx8qm.c  | 2 +-
>   drivers/clk/imx/clk-imx8qxp.c | 2 +-
>   5 files changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/drivers/clk/clk_k210.c b/drivers/clk/clk_k210.c
> index f7d36963f85..c534cc07e09 100644
> --- a/drivers/clk/clk_k210.c
> +++ b/drivers/clk/clk_k210.c
> @@ -308,7 +308,7 @@ enum k210_clk_flags {
>    * @gate: An &enum k210_gate_id of this clock's gate
>    */
>   struct k210_clk_params {
> -#if CONFIG_IS_ENABLED(CMD_CLK)
> +#if IS_ENABLED(CONFIG_CMD_CLK)
>   	const char *name;
>   #endif
>   	u8 flags;
> @@ -326,7 +326,7 @@ struct k210_clk_params {
>   };
>   
>   static const struct k210_clk_params k210_clks[] = {
> -#if CONFIG_IS_ENABLED(CMD_CLK)
> +#if IS_ENABLED(CONFIG_CMD_CLK)
>   #define NAME(_name) .name = (_name),
>   #else
>   #define NAME(name)
> @@ -1284,7 +1284,7 @@ U_BOOT_DRIVER(k210_clk) = {
>   	.priv_auto = sizeof(struct k210_clk_priv),
>   };
>   
> -#if CONFIG_IS_ENABLED(CMD_CLK)
> +#if IS_ENABLED(CONFIG_CMD_CLK)
>   static char show_enabled(struct k210_clk_priv *priv, int id)
>   {
>   	bool enabled;
> diff --git a/drivers/clk/imx/clk-imx8.c b/drivers/clk/imx/clk-imx8.c
> index b3dc138c4bb..24bdab28aa4 100644
> --- a/drivers/clk/imx/clk-imx8.c
> +++ b/drivers/clk/imx/clk-imx8.c
> @@ -42,7 +42,7 @@ static int imx8_clk_enable(struct clk *clk)
>   	return __imx8_clk_enable(clk, 1);
>   }
>   
> -#if CONFIG_IS_ENABLED(CMD_CLK)
> +#if IS_ENABLED(CONFIG_CMD_CLK)
>   int soc_clk_dump(void)
>   {
>   	struct udevice *dev;
> diff --git a/drivers/clk/imx/clk-imx8.h b/drivers/clk/imx/clk-imx8.h
> index 68ad6755e80..6e850ba2666 100644
> --- a/drivers/clk/imx/clk-imx8.h
> +++ b/drivers/clk/imx/clk-imx8.h
> @@ -9,7 +9,7 @@ struct imx8_clks {
>   	const char *name;
>   };
>   
> -#if CONFIG_IS_ENABLED(CMD_CLK)
> +#if IS_ENABLED(CONFIG_CMD_CLK)
>   extern struct imx8_clks imx8_clk_names[];
>   extern int num_clks;
>   #endif
> diff --git a/drivers/clk/imx/clk-imx8qm.c b/drivers/clk/imx/clk-imx8qm.c
> index 7759dc63ee1..b874915ba6a 100644
> --- a/drivers/clk/imx/clk-imx8qm.c
> +++ b/drivers/clk/imx/clk-imx8qm.c
> @@ -16,7 +16,7 @@
>   
>   #include "clk-imx8.h"
>   
> -#if CONFIG_IS_ENABLED(CMD_CLK)
> +#if IS_ENABLED(CONFIG_CMD_CLK)
>   struct imx8_clks imx8_clk_names[] = {
>   	{ IMX8QM_A53_DIV, "A53_DIV" },
>   	{ IMX8QM_UART0_CLK, "UART0" },
> diff --git a/drivers/clk/imx/clk-imx8qxp.c b/drivers/clk/imx/clk-imx8qxp.c
> index ffa2fcee0b2..d580b437221 100644
> --- a/drivers/clk/imx/clk-imx8qxp.c
> +++ b/drivers/clk/imx/clk-imx8qxp.c
> @@ -16,7 +16,7 @@
>   
>   #include "clk-imx8.h"
>   
> -#if CONFIG_IS_ENABLED(CMD_CLK)
> +#if IS_ENABLED(CONFIG_CMD_CLK)
>   struct imx8_clks imx8_clk_names[] = {
>   	{ IMX8QXP_A35_DIV, "A35_DIV" },
>   	{ IMX8QXP_I2C0_CLK, "I2C0" },

Reviewed-by: Sean Anderson <seanga2@gmail.com>

^ permalink raw reply	[flat|nested] 134+ messages in thread

* Re: [PATCH 000/171] Kconfig: More cleanup of CONFIG options
  2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
                   ` (99 preceding siblings ...)
  2023-01-30 14:42 ` [PATCH 100/171] Correct SPL uses of HW_WATCHDOG Simon Glass
@ 2023-01-30 15:10 ` Tom Rini
  2023-01-31 14:16   ` Simon Glass
  100 siblings, 1 reply; 134+ messages in thread
From: Tom Rini @ 2023-01-30 15:10 UTC (permalink / raw)
  To: Simon Glass, Troy Kisky
  Cc: U-Boot Mailing List, AKASHI Takahiro, Aleksandar Gerasimovski,
	Anastasiia Lukianenko, Andreas Kemnade, Andrew Scull,
	Angelo Dureghello, Anup Patel, Ashok Reddy Soma,
	Aswath Govindraju, Bharat Gooty, Bin Meng, Chia-Wei Wang,
	Claudiu Beznea, Daniel Golle, Heiko Schocher, Heiko Thiery,
	Heinrich Schuchardt, Huang Jianan, Ilias Apalodimas, Jason Liu,
	Jeffy Chen, Jens Wiklander, Judith Mendez, Kautuk Consul,
	Keerthy, Leo Yu-Chi Liang, Lukasz Majewski, Manoj Sai,
	Marek Vasut, Masahisa Kojima, Matthias Brugger,
	Meenakshi Aggarwal, Neil Armstrong, Oleksandr Andrushchenko,
	Oleksandr Suvorov, Ovidiu Panait, Patrice Chotard, Paul Walmsley,
	Philipp Tomsich, Pierre-Clément Tosi, Rayagonda Kokatanur,
	Rick Chen, Ryan Chen, Sergiu Moga, Stefano Babic,
	Stephan Gerhold, Sughosh Ganu, T Karthik Reddy, Wasim Khan,
	Wolfgang Denk

[-- Attachment #1: Type: text/plain, Size: 1328 bytes --]

On Mon, Jan 30, 2023 at 07:40:33AM -0700, Simon Glass wrote:

> Quite a few CONFIG options without an SPL equivalent are used as if they
> have one. For example, we see CONFIG_IS_ENABLED(IOMMU) when there is no
> SPL_IOMMU Kconfig option.
> 
> This series adds new features to moveconfig to detect and remove these
> problems. It includes additions to the Kconfig for options which are
> needed as well as dropping unwanted us of CONFIG_IS_ENABLED, etc.
> 
> This follows on from the previous series[1]
> 
> It is available at u-boot-dm/splb-working
> 
> [1] https://patchwork.ozlabs.org/project/uboot/list/?series=339004

I'm a little confused at the rush, and duplication right now. As part
off the CONFIG_IS_ENABLED / IS_ENABLED thread, Troy did a series of
patches to convert everyone that's using CONFIG_IS_ENABLED to use
IS_ENABLED, got it through CI and I assumed was trying to figure out how
to get it posted, next. Further, this series does too many things, and
needs a bit more thought. All of the CMD_FOO ones are obviously correct,
but then the majority of the rest of the cases should likely not be
adding a disabled Kconfig option but instead converted as well as it's
most likely people are just silencing the checkpatch.pl message and not
thinking about the ramificationns.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 134+ messages in thread

* Re: [PATCH 019/171] lib: Add a Kconfig for SPL_GENERATE_ACPI_TABLE
  2023-01-30 14:52     ` Tom Rini
@ 2023-01-30 15:18       ` Mark Kettenis
  2023-01-30 15:27         ` Tom Rini
                           ` (2 more replies)
  2023-02-05  1:21       ` Simon Glass
  1 sibling, 3 replies; 134+ messages in thread
From: Mark Kettenis @ 2023-01-30 15:18 UTC (permalink / raw)
  To: Tom Rini
  Cc: xypron.glpk, sjg, brandon.maier, ilias.apalodimas, kconsul,
	ycliang, philippe.reynes, rasmus.villemoes, sughosh.ganu, u-boot

> Date: Mon, 30 Jan 2023 09:52:52 -0500
> From: Tom Rini <trini@konsulko.com>
> 
> On Mon, Jan 30, 2023 at 03:50:23PM +0100, Heinrich Schuchardt wrote:
> > On 1/30/23 15:40, Simon Glass wrote:
> > > This is implicitly used in the source and seems useful, so add it.
> > 
> > Please, provide a clear description how this will be used.
> 
> To follow up on what I just sent, Simon seems to be taking a pass at
> adding to Kconfig many / most of the options that aren't available today
> but are implied by the usage of CONFIG_IS_ENABLED(FOO). So, this is
> another case where IS_ENABLED(CONFIG_FOO) should be used.

Hi Tom, Simon,

I fear we have a documentation/communication/naming issue here.
Before Simon pointed out an issue to me in the s5p serial driver my
mential picture of this was:

  #if -> CONFIG_IS_ENABLED(FOO)

  if () -> IS_ENABLED(CONFIG_FOO)

possibly because that's the pattern you see if you grep the source
code (IS_ENABLED(CONFIG_FOO) is rarely used with preprocessor
conditionals).  And that makes me think I'm not the only developer
that got this wrong.

After I realized that the purpose of CONFIG_IS_ENABLED(FOO) is to
cover TPL, SPL and U-Boot proper with a single condition it was fairly
obvious to me that there are many, many cases where
IS_ENABLED(CONFIG_FOO) should be used instead.

And I fear Simon's series only makes it harder to fix that.  Right now
you can easily see that CONFIG_IS_ENABLED(FOO) is probably the wrong
construction since no CONFIG_TPL_FOO and CONFIG_SPL_FOO Kconfig
symbols exist.

^ permalink raw reply	[flat|nested] 134+ messages in thread

* Re: [PATCH 019/171] lib: Add a Kconfig for SPL_GENERATE_ACPI_TABLE
  2023-01-30 15:18       ` Mark Kettenis
@ 2023-01-30 15:27         ` Tom Rini
  2023-01-30 15:29         ` Simon Glass
  2023-01-30 15:38         ` Mark Kettenis
  2 siblings, 0 replies; 134+ messages in thread
From: Tom Rini @ 2023-01-30 15:27 UTC (permalink / raw)
  To: Mark Kettenis
  Cc: xypron.glpk, sjg, brandon.maier, ilias.apalodimas, kconsul,
	ycliang, philippe.reynes, rasmus.villemoes, sughosh.ganu, u-boot

[-- Attachment #1: Type: text/plain, Size: 2165 bytes --]

On Mon, Jan 30, 2023 at 04:18:28PM +0100, Mark Kettenis wrote:
> > Date: Mon, 30 Jan 2023 09:52:52 -0500
> > From: Tom Rini <trini@konsulko.com>
> > 
> > On Mon, Jan 30, 2023 at 03:50:23PM +0100, Heinrich Schuchardt wrote:
> > > On 1/30/23 15:40, Simon Glass wrote:
> > > > This is implicitly used in the source and seems useful, so add it.
> > > 
> > > Please, provide a clear description how this will be used.
> > 
> > To follow up on what I just sent, Simon seems to be taking a pass at
> > adding to Kconfig many / most of the options that aren't available today
> > but are implied by the usage of CONFIG_IS_ENABLED(FOO). So, this is
> > another case where IS_ENABLED(CONFIG_FOO) should be used.
> 
> Hi Tom, Simon,
> 
> I fear we have a documentation/communication/naming issue here.
> Before Simon pointed out an issue to me in the s5p serial driver my
> mential picture of this was:
> 
>   #if -> CONFIG_IS_ENABLED(FOO)
> 
>   if () -> IS_ENABLED(CONFIG_FOO)
> 
> possibly because that's the pattern you see if you grep the source
> code (IS_ENABLED(CONFIG_FOO) is rarely used with preprocessor
> conditionals).  And that makes me think I'm not the only developer
> that got this wrong.
> 
> After I realized that the purpose of CONFIG_IS_ENABLED(FOO) is to
> cover TPL, SPL and U-Boot proper with a single condition it was fairly
> obvious to me that there are many, many cases where
> IS_ENABLED(CONFIG_FOO) should be used instead.
> 
> And I fear Simon's series only makes it harder to fix that.  Right now
> you can easily see that CONFIG_IS_ENABLED(FOO) is probably the wrong
> construction since no CONFIG_TPL_FOO and CONFIG_SPL_FOO Kconfig
> symbols exist.

This is why I'm not sure that moving away from #ifdef for the most part
is helpful. Simon has a plan to make things so that we only ever use one
form of the macro, because SPL/TPl/VPL are handled differently. I'm not
sure and need to read it all over again once it's re-posted as I have
some concerns. I'm still not convinced that a lot of cases of if
(MACRO(SYMBOL)) { ... } actually read any better than #ifdef SYMBOL ...
#endif.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 134+ messages in thread

* Re: [PATCH 019/171] lib: Add a Kconfig for SPL_GENERATE_ACPI_TABLE
  2023-01-30 15:18       ` Mark Kettenis
  2023-01-30 15:27         ` Tom Rini
@ 2023-01-30 15:29         ` Simon Glass
  2023-01-30 15:38         ` Mark Kettenis
  2 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-30 15:29 UTC (permalink / raw)
  To: Mark Kettenis
  Cc: Tom Rini, xypron.glpk, brandon.maier, ilias.apalodimas, kconsul,
	ycliang, philippe.reynes, rasmus.villemoes, sughosh.ganu, u-boot

Hi Mark,

On Mon, 30 Jan 2023 at 08:18, Mark Kettenis <mark.kettenis@xs4all.nl> wrote:
>
> > Date: Mon, 30 Jan 2023 09:52:52 -0500
> > From: Tom Rini <trini@konsulko.com>
> >
> > On Mon, Jan 30, 2023 at 03:50:23PM +0100, Heinrich Schuchardt wrote:
> > > On 1/30/23 15:40, Simon Glass wrote:
> > > > This is implicitly used in the source and seems useful, so add it.
> > >
> > > Please, provide a clear description how this will be used.
> >
> > To follow up on what I just sent, Simon seems to be taking a pass at
> > adding to Kconfig many / most of the options that aren't available today
> > but are implied by the usage of CONFIG_IS_ENABLED(FOO). So, this is
> > another case where IS_ENABLED(CONFIG_FOO) should be used.
>
> Hi Tom, Simon,
>
> I fear we have a documentation/communication/naming issue here.
> Before Simon pointed out an issue to me in the s5p serial driver my
> mential picture of this was:
>
>   #if -> CONFIG_IS_ENABLED(FOO)
>
>   if () -> IS_ENABLED(CONFIG_FOO)
>
> possibly because that's the pattern you see if you grep the source
> code (IS_ENABLED(CONFIG_FOO) is rarely used with preprocessor
> conditionals).  And that makes me think I'm not the only developer
> that got this wrong.
>
> After I realized that the purpose of CONFIG_IS_ENABLED(FOO) is to
> cover TPL, SPL and U-Boot proper with a single condition it was fairly
> obvious to me that there are many, many cases where
> IS_ENABLED(CONFIG_FOO) should be used instead.
>
> And I fear Simon's series only makes it harder to fix that.  Right now
> you can easily see that CONFIG_IS_ENABLED(FOO) is probably the wrong
> construction since no CONFIG_TPL_FOO and CONFIG_SPL_FOO Kconfig
> symbols exist.

Not after this series, though. You can use 'move_config.py
--scan-source -l' to check that.

Regards,
Simon

^ permalink raw reply	[flat|nested] 134+ messages in thread

* Re: [PATCH 019/171] lib: Add a Kconfig for SPL_GENERATE_ACPI_TABLE
  2023-01-30 15:18       ` Mark Kettenis
  2023-01-30 15:27         ` Tom Rini
  2023-01-30 15:29         ` Simon Glass
@ 2023-01-30 15:38         ` Mark Kettenis
  2 siblings, 0 replies; 134+ messages in thread
From: Mark Kettenis @ 2023-01-30 15:38 UTC (permalink / raw)
  To: Mark Kettenis
  Cc: trini, xypron.glpk, sjg, brandon.maier, ilias.apalodimas,
	kconsul, ycliang, philippe.reynes, rasmus.villemoes,
	sughosh.ganu, u-boot

> Date: Mon, 30 Jan 2023 16:18:28 +0100
> From: Mark Kettenis <mark.kettenis@xs4all.nl>
> 
> > Date: Mon, 30 Jan 2023 09:52:52 -0500
> > From: Tom Rini <trini@konsulko.com>
> > 
> > On Mon, Jan 30, 2023 at 03:50:23PM +0100, Heinrich Schuchardt wrote:
> > > On 1/30/23 15:40, Simon Glass wrote:
> > > > This is implicitly used in the source and seems useful, so add it.
> > > 
> > > Please, provide a clear description how this will be used.
> > 
> > To follow up on what I just sent, Simon seems to be taking a pass at
> > adding to Kconfig many / most of the options that aren't available today
> > but are implied by the usage of CONFIG_IS_ENABLED(FOO). So, this is
> > another case where IS_ENABLED(CONFIG_FOO) should be used.
> 
> Hi Tom, Simon,
> 
> I fear we have a documentation/communication/naming issue here.
> Before Simon pointed out an issue to me in the s5p serial driver my
> mential picture of this was:
> 
>   #if -> CONFIG_IS_ENABLED(FOO)
> 
>   if () -> IS_ENABLED(CONFIG_FOO)
> 
> possibly because that's the pattern you see if you grep the source
> code (IS_ENABLED(CONFIG_FOO) is rarely used with preprocessor
> conditionals).  And that makes me think I'm not the only developer
> that got this wrong.
> 
> After I realized that the purpose of CONFIG_IS_ENABLED(FOO) is to
> cover TPL, SPL and U-Boot proper with a single condition it was fairly
> obvious to me that there are many, many cases where
> IS_ENABLED(CONFIG_FOO) should be used instead.
> 
> And I fear Simon's series only makes it harder to fix that.  Right now
> you can easily see that CONFIG_IS_ENABLED(FOO) is probably the wrong
> construction since no CONFIG_TPL_FOO and CONFIG_SPL_FOO Kconfig
> symbols exist.

Wrote this after seeing the first ~50 mails from the series.  I now
see that it does include quite a few diffs that go
CONFIG_IS_ENABLED(FOO) -> IS_ENABLED(CONFIG_FOO) so ignore that last
bit.

Cheers,

Mark

^ permalink raw reply	[flat|nested] 134+ messages in thread

* Re: [PATCH 016/171] iommu: Add a Kconfig for SPL_PINCTRL_ARMADA_38X
  2023-01-30 14:40 ` [PATCH 016/171] iommu: Add a Kconfig for SPL_PINCTRL_ARMADA_38X Simon Glass
@ 2023-01-30 16:19   ` Mark Kettenis
  2023-01-30 16:29     ` Tom Rini
  0 siblings, 1 reply; 134+ messages in thread
From: Mark Kettenis @ 2023-01-30 16:19 UTC (permalink / raw)
  To: Simon Glass; +Cc: u-boot, trini, sjg, sr

> From: Simon Glass <sjg@chromium.org>
> Date: Mon, 30 Jan 2023 07:40:49 -0700
> 
> This is implicitly used in the source and seems useful, so add it.

Not sure how this ended up with an "iommu" tag, but that seems wrong.

> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
> 
>  drivers/pinctrl/mvebu/Kconfig | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/pinctrl/mvebu/Kconfig b/drivers/pinctrl/mvebu/Kconfig
> index 7c51d138c8b..0b2be88e3a1 100644
> --- a/drivers/pinctrl/mvebu/Kconfig
> +++ b/drivers/pinctrl/mvebu/Kconfig
> @@ -7,6 +7,10 @@ config PINCTRL_ARMADA_38X
>  	   Support pin multiplexing and pin configuration control on
>  	   Marvell's Armada-38x SoC.
>  
> +config SPL_PINCTRL_ARMADA_38X
> +	def_bool n  # Armada 38x pin control driver (SPL)
> +	depends on SPL && ARMADA_38X && SPL_PINCTRL_FULL
> +
>  config PINCTRL_ARMADA_37XX
>  	depends on ARMADA_3700 && PINCTRL_FULL
>  	bool "Armada 37xx pin control driver"
> -- 
> 2.39.1.456.gfc5497dd1b-goog
> 
> 

^ permalink raw reply	[flat|nested] 134+ messages in thread

* Re: [PATCH 015/171] iommu: Add a Kconfig for SPL_IOMMU
  2023-01-30 14:40 ` [PATCH 015/171] iommu: Add a Kconfig for SPL_IOMMU Simon Glass
@ 2023-01-30 16:23   ` Mark Kettenis
  2023-02-05  1:21     ` Simon Glass
  0 siblings, 1 reply; 134+ messages in thread
From: Mark Kettenis @ 2023-01-30 16:23 UTC (permalink / raw)
  To: Simon Glass; +Cc: u-boot, trini, sjg

> From: Simon Glass <sjg@chromium.org>
> Date: Mon, 30 Jan 2023 07:40:48 -0700
> 
> This is implicitly used in the source and seems useful, so add it.

At this point the IOMMU support isn't used for SPL.  While I can't
rule out we'll see an SoC at some point the needs it, I don't think
I've seen an SoC that has devices that are typically used in SPL (MMC,
NOR flash, memory controllers) behind an IOMMU.  So switching to
IS_ENABLED(CONFIG_IOMMU) seems more logical to me.

Cheers,

Mark

> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
> 
>  drivers/iommu/Kconfig | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig
> index dabc1f900d5..bbacd14a56c 100644
> --- a/drivers/iommu/Kconfig
> +++ b/drivers/iommu/Kconfig
> @@ -14,6 +14,10 @@ config IOMMU
>  	  memory if the IOMMU has been programmed to allow access to
>  	  that memory.
>  
> +config SPL_IOMMU
> +	def_bool n  # Enable Driver Model for IOMMU drivers (SPL)
> +	depends on SPL_DM
> +
>  config APPLE_DART
>  	bool "Apple DART support"
>  	depends on IOMMU && ARCH_APPLE
> -- 
> 2.39.1.456.gfc5497dd1b-goog
> 
> 

^ permalink raw reply	[flat|nested] 134+ messages in thread

* Re: [PATCH 016/171] iommu: Add a Kconfig for SPL_PINCTRL_ARMADA_38X
  2023-01-30 16:19   ` Mark Kettenis
@ 2023-01-30 16:29     ` Tom Rini
  2023-01-30 18:16       ` Pali Rohár
  0 siblings, 1 reply; 134+ messages in thread
From: Tom Rini @ 2023-01-30 16:29 UTC (permalink / raw)
  To: Mark Kettenis, Marek Behún, Pali Rohár; +Cc: Simon Glass, u-boot, sr

[-- Attachment #1: Type: text/plain, Size: 1527 bytes --]

On Mon, Jan 30, 2023 at 05:19:01PM +0100, Mark Kettenis wrote:
> > From: Simon Glass <sjg@chromium.org>
> > Date: Mon, 30 Jan 2023 07:40:49 -0700
> > 
> > This is implicitly used in the source and seems useful, so add it.
> 
> Not sure how this ended up with an "iommu" tag, but that seems wrong.
> 
> > Signed-off-by: Simon Glass <sjg@chromium.org>
> > ---
> > 
> >  drivers/pinctrl/mvebu/Kconfig | 4 ++++
> >  1 file changed, 4 insertions(+)
> > 
> > diff --git a/drivers/pinctrl/mvebu/Kconfig b/drivers/pinctrl/mvebu/Kconfig
> > index 7c51d138c8b..0b2be88e3a1 100644
> > --- a/drivers/pinctrl/mvebu/Kconfig
> > +++ b/drivers/pinctrl/mvebu/Kconfig
> > @@ -7,6 +7,10 @@ config PINCTRL_ARMADA_38X
> >  	   Support pin multiplexing and pin configuration control on
> >  	   Marvell's Armada-38x SoC.
> >  
> > +config SPL_PINCTRL_ARMADA_38X
> > +	def_bool n  # Armada 38x pin control driver (SPL)
> > +	depends on SPL && ARMADA_38X && SPL_PINCTRL_FULL
> > +
> >  config PINCTRL_ARMADA_37XX
> >  	depends on ARMADA_3700 && PINCTRL_FULL
> >  	bool "Armada 37xx pin control driver"

Looking at the code in question, it's because in
drivers/gpio/mvebu_gpio.c we conditionally not set request / rfree
dm_gpio_ops because turris_omnia (only platform in question) does not
set pinctrl in SPL, but does set SPL_DM_GPIO. So the question I have, is
all of that intentional and used today, in SPL, on the platform? I guess
some set/get directions / values, to check board revs or something?

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 134+ messages in thread

* Re: [PATCH 016/171] iommu: Add a Kconfig for SPL_PINCTRL_ARMADA_38X
  2023-01-30 16:29     ` Tom Rini
@ 2023-01-30 18:16       ` Pali Rohár
  2023-01-30 18:25         ` Tom Rini
  0 siblings, 1 reply; 134+ messages in thread
From: Pali Rohár @ 2023-01-30 18:16 UTC (permalink / raw)
  To: Tom Rini; +Cc: Mark Kettenis, Marek Behún, Simon Glass, u-boot, sr

On Monday 30 January 2023 11:29:27 Tom Rini wrote:
> On Mon, Jan 30, 2023 at 05:19:01PM +0100, Mark Kettenis wrote:
> > > From: Simon Glass <sjg@chromium.org>
> > > Date: Mon, 30 Jan 2023 07:40:49 -0700
> > > 
> > > This is implicitly used in the source and seems useful, so add it.
> > 
> > Not sure how this ended up with an "iommu" tag, but that seems wrong.
> > 
> > > Signed-off-by: Simon Glass <sjg@chromium.org>
> > > ---
> > > 
> > >  drivers/pinctrl/mvebu/Kconfig | 4 ++++
> > >  1 file changed, 4 insertions(+)
> > > 
> > > diff --git a/drivers/pinctrl/mvebu/Kconfig b/drivers/pinctrl/mvebu/Kconfig
> > > index 7c51d138c8b..0b2be88e3a1 100644
> > > --- a/drivers/pinctrl/mvebu/Kconfig
> > > +++ b/drivers/pinctrl/mvebu/Kconfig
> > > @@ -7,6 +7,10 @@ config PINCTRL_ARMADA_38X
> > >  	   Support pin multiplexing and pin configuration control on
> > >  	   Marvell's Armada-38x SoC.
> > >  
> > > +config SPL_PINCTRL_ARMADA_38X
> > > +	def_bool n  # Armada 38x pin control driver (SPL)
> > > +	depends on SPL && ARMADA_38X && SPL_PINCTRL_FULL
> > > +
> > >  config PINCTRL_ARMADA_37XX
> > >  	depends on ARMADA_3700 && PINCTRL_FULL
> > >  	bool "Armada 37xx pin control driver"
> 
> Looking at the code in question, it's because in
> drivers/gpio/mvebu_gpio.c we conditionally not set request / rfree
> dm_gpio_ops because turris_omnia (only platform in question) does not
> set pinctrl in SPL, but does set SPL_DM_GPIO. So the question I have, is
> all of that intentional and used today, in SPL, on the platform? I guess
> some set/get directions / values, to check board revs or something?
> 
> -- 
> Tom

I think this is because no A38x board use DM pinctrl framework for
configuring pin muxing. All boards set pin muxing in open coded board
function which directly touch HW registers. DM pinctrl driver for A38x
is relatively new and I think nobody converted any board to use it for
initialization.

^ permalink raw reply	[flat|nested] 134+ messages in thread

* Re: [PATCH 016/171] iommu: Add a Kconfig for SPL_PINCTRL_ARMADA_38X
  2023-01-30 18:16       ` Pali Rohár
@ 2023-01-30 18:25         ` Tom Rini
  2023-01-30 18:28           ` Pali Rohár
  0 siblings, 1 reply; 134+ messages in thread
From: Tom Rini @ 2023-01-30 18:25 UTC (permalink / raw)
  To: Pali Rohár; +Cc: Mark Kettenis, Marek Behún, Simon Glass, u-boot, sr

[-- Attachment #1: Type: text/plain, Size: 2496 bytes --]

On Mon, Jan 30, 2023 at 07:16:26PM +0100, Pali Rohár wrote:
> On Monday 30 January 2023 11:29:27 Tom Rini wrote:
> > On Mon, Jan 30, 2023 at 05:19:01PM +0100, Mark Kettenis wrote:
> > > > From: Simon Glass <sjg@chromium.org>
> > > > Date: Mon, 30 Jan 2023 07:40:49 -0700
> > > > 
> > > > This is implicitly used in the source and seems useful, so add it.
> > > 
> > > Not sure how this ended up with an "iommu" tag, but that seems wrong.
> > > 
> > > > Signed-off-by: Simon Glass <sjg@chromium.org>
> > > > ---
> > > > 
> > > >  drivers/pinctrl/mvebu/Kconfig | 4 ++++
> > > >  1 file changed, 4 insertions(+)
> > > > 
> > > > diff --git a/drivers/pinctrl/mvebu/Kconfig b/drivers/pinctrl/mvebu/Kconfig
> > > > index 7c51d138c8b..0b2be88e3a1 100644
> > > > --- a/drivers/pinctrl/mvebu/Kconfig
> > > > +++ b/drivers/pinctrl/mvebu/Kconfig
> > > > @@ -7,6 +7,10 @@ config PINCTRL_ARMADA_38X
> > > >  	   Support pin multiplexing and pin configuration control on
> > > >  	   Marvell's Armada-38x SoC.
> > > >  
> > > > +config SPL_PINCTRL_ARMADA_38X
> > > > +	def_bool n  # Armada 38x pin control driver (SPL)
> > > > +	depends on SPL && ARMADA_38X && SPL_PINCTRL_FULL
> > > > +
> > > >  config PINCTRL_ARMADA_37XX
> > > >  	depends on ARMADA_3700 && PINCTRL_FULL
> > > >  	bool "Armada 37xx pin control driver"
> > 
> > Looking at the code in question, it's because in
> > drivers/gpio/mvebu_gpio.c we conditionally not set request / rfree
> > dm_gpio_ops because turris_omnia (only platform in question) does not
> > set pinctrl in SPL, but does set SPL_DM_GPIO. So the question I have, is
> > all of that intentional and used today, in SPL, on the platform? I guess
> > some set/get directions / values, to check board revs or something?
> 
> I think this is because no A38x board use DM pinctrl framework for
> configuring pin muxing. All boards set pin muxing in open coded board
> function which directly touch HW registers. DM pinctrl driver for A38x
> is relatively new and I think nobody converted any board to use it for
> initialization.

I do see that turris_omnia builds the pinctrl driver for full U-Boot
today.  But, does that mean that at some point in the future it should
be converted to use SPL_PINCTRL ? As that would imply that we do not
need / want SPL_PINCTRL_ARMADA_38X added (I suspect SPL_PINCTRL_STMFX
and SPL_PINCTRL_ROCKCHIP are wrong) as it will be handled like the
majority of other platforms in this area.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 134+ messages in thread

* Re: [PATCH 016/171] iommu: Add a Kconfig for SPL_PINCTRL_ARMADA_38X
  2023-01-30 18:25         ` Tom Rini
@ 2023-01-30 18:28           ` Pali Rohár
  2023-01-30 18:59             ` Tom Rini
  0 siblings, 1 reply; 134+ messages in thread
From: Pali Rohár @ 2023-01-30 18:28 UTC (permalink / raw)
  To: Tom Rini; +Cc: Mark Kettenis, Marek Behún, Simon Glass, u-boot, sr

On Monday 30 January 2023 13:25:25 Tom Rini wrote:
> On Mon, Jan 30, 2023 at 07:16:26PM +0100, Pali Rohár wrote:
> > On Monday 30 January 2023 11:29:27 Tom Rini wrote:
> > > On Mon, Jan 30, 2023 at 05:19:01PM +0100, Mark Kettenis wrote:
> > > > > From: Simon Glass <sjg@chromium.org>
> > > > > Date: Mon, 30 Jan 2023 07:40:49 -0700
> > > > > 
> > > > > This is implicitly used in the source and seems useful, so add it.
> > > > 
> > > > Not sure how this ended up with an "iommu" tag, but that seems wrong.
> > > > 
> > > > > Signed-off-by: Simon Glass <sjg@chromium.org>
> > > > > ---
> > > > > 
> > > > >  drivers/pinctrl/mvebu/Kconfig | 4 ++++
> > > > >  1 file changed, 4 insertions(+)
> > > > > 
> > > > > diff --git a/drivers/pinctrl/mvebu/Kconfig b/drivers/pinctrl/mvebu/Kconfig
> > > > > index 7c51d138c8b..0b2be88e3a1 100644
> > > > > --- a/drivers/pinctrl/mvebu/Kconfig
> > > > > +++ b/drivers/pinctrl/mvebu/Kconfig
> > > > > @@ -7,6 +7,10 @@ config PINCTRL_ARMADA_38X
> > > > >  	   Support pin multiplexing and pin configuration control on
> > > > >  	   Marvell's Armada-38x SoC.
> > > > >  
> > > > > +config SPL_PINCTRL_ARMADA_38X
> > > > > +	def_bool n  # Armada 38x pin control driver (SPL)
> > > > > +	depends on SPL && ARMADA_38X && SPL_PINCTRL_FULL
> > > > > +
> > > > >  config PINCTRL_ARMADA_37XX
> > > > >  	depends on ARMADA_3700 && PINCTRL_FULL
> > > > >  	bool "Armada 37xx pin control driver"
> > > 
> > > Looking at the code in question, it's because in
> > > drivers/gpio/mvebu_gpio.c we conditionally not set request / rfree
> > > dm_gpio_ops because turris_omnia (only platform in question) does not
> > > set pinctrl in SPL, but does set SPL_DM_GPIO. So the question I have, is
> > > all of that intentional and used today, in SPL, on the platform? I guess
> > > some set/get directions / values, to check board revs or something?
> > 
> > I think this is because no A38x board use DM pinctrl framework for
> > configuring pin muxing. All boards set pin muxing in open coded board
> > function which directly touch HW registers. DM pinctrl driver for A38x
> > is relatively new and I think nobody converted any board to use it for
> > initialization.
> 
> I do see that turris_omnia builds the pinctrl driver for full U-Boot
> today.

Yes, it allows u-boot pinmux command to print current pinctrl
configuration and also allows gpio command to work correctly for gpios
which are not in gpio mode by default.

> But, does that mean that at some point in the future it should
> be converted to use SPL_PINCTRL ?

Every a38x board could be converted. But personally I'm not planning to
do it.

> As that would imply that we do not
> need / want SPL_PINCTRL_ARMADA_38X added (I suspect SPL_PINCTRL_STMFX
> and SPL_PINCTRL_ROCKCHIP are wrong) as it will be handled like the
> majority of other platforms in this area.
> 
> -- 
> Tom



^ permalink raw reply	[flat|nested] 134+ messages in thread

* Re: [PATCH 016/171] iommu: Add a Kconfig for SPL_PINCTRL_ARMADA_38X
  2023-01-30 18:28           ` Pali Rohár
@ 2023-01-30 18:59             ` Tom Rini
  2023-01-30 19:02               ` Pali Rohár
  0 siblings, 1 reply; 134+ messages in thread
From: Tom Rini @ 2023-01-30 18:59 UTC (permalink / raw)
  To: Pali Rohár; +Cc: Mark Kettenis, Marek Behún, Simon Glass, u-boot, sr

[-- Attachment #1: Type: text/plain, Size: 3485 bytes --]

On Mon, Jan 30, 2023 at 07:28:56PM +0100, Pali Rohár wrote:
> On Monday 30 January 2023 13:25:25 Tom Rini wrote:
> > On Mon, Jan 30, 2023 at 07:16:26PM +0100, Pali Rohár wrote:
> > > On Monday 30 January 2023 11:29:27 Tom Rini wrote:
> > > > On Mon, Jan 30, 2023 at 05:19:01PM +0100, Mark Kettenis wrote:
> > > > > > From: Simon Glass <sjg@chromium.org>
> > > > > > Date: Mon, 30 Jan 2023 07:40:49 -0700
> > > > > > 
> > > > > > This is implicitly used in the source and seems useful, so add it.
> > > > > 
> > > > > Not sure how this ended up with an "iommu" tag, but that seems wrong.
> > > > > 
> > > > > > Signed-off-by: Simon Glass <sjg@chromium.org>
> > > > > > ---
> > > > > > 
> > > > > >  drivers/pinctrl/mvebu/Kconfig | 4 ++++
> > > > > >  1 file changed, 4 insertions(+)
> > > > > > 
> > > > > > diff --git a/drivers/pinctrl/mvebu/Kconfig b/drivers/pinctrl/mvebu/Kconfig
> > > > > > index 7c51d138c8b..0b2be88e3a1 100644
> > > > > > --- a/drivers/pinctrl/mvebu/Kconfig
> > > > > > +++ b/drivers/pinctrl/mvebu/Kconfig
> > > > > > @@ -7,6 +7,10 @@ config PINCTRL_ARMADA_38X
> > > > > >  	   Support pin multiplexing and pin configuration control on
> > > > > >  	   Marvell's Armada-38x SoC.
> > > > > >  
> > > > > > +config SPL_PINCTRL_ARMADA_38X
> > > > > > +	def_bool n  # Armada 38x pin control driver (SPL)
> > > > > > +	depends on SPL && ARMADA_38X && SPL_PINCTRL_FULL
> > > > > > +
> > > > > >  config PINCTRL_ARMADA_37XX
> > > > > >  	depends on ARMADA_3700 && PINCTRL_FULL
> > > > > >  	bool "Armada 37xx pin control driver"
> > > > 
> > > > Looking at the code in question, it's because in
> > > > drivers/gpio/mvebu_gpio.c we conditionally not set request / rfree
> > > > dm_gpio_ops because turris_omnia (only platform in question) does not
> > > > set pinctrl in SPL, but does set SPL_DM_GPIO. So the question I have, is
> > > > all of that intentional and used today, in SPL, on the platform? I guess
> > > > some set/get directions / values, to check board revs or something?
> > > 
> > > I think this is because no A38x board use DM pinctrl framework for
> > > configuring pin muxing. All boards set pin muxing in open coded board
> > > function which directly touch HW registers. DM pinctrl driver for A38x
> > > is relatively new and I think nobody converted any board to use it for
> > > initialization.
> > 
> > I do see that turris_omnia builds the pinctrl driver for full U-Boot
> > today.
> 
> Yes, it allows u-boot pinmux command to print current pinctrl
> configuration and also allows gpio command to work correctly for gpios
> which are not in gpio mode by default.
> 
> > But, does that mean that at some point in the future it should
> > be converted to use SPL_PINCTRL ?
> 
> Every a38x board could be converted. But personally I'm not planning to
> do it.

OK, but if someone were to do it, it would then be the case that
PINCTRL_ARMADA_38X would be the driver used, yes?

> > As that would imply that we do not
> > need / want SPL_PINCTRL_ARMADA_38X added (I suspect SPL_PINCTRL_STMFX
> > and SPL_PINCTRL_ROCKCHIP are wrong) as it will be handled like the
> > majority of other platforms in this area.

As I look at this more, I see that SPL_PINCTRL_STMFX _is_ one of the
special cases as it seems in SPL they use the PINCTRL_STM32 driver and
do _not_ want PINCTRL_STMFX so SPL_PINCTRL_STMFX is introduced as a way
to keep the driver from being built in SPL.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 134+ messages in thread

* Re: [PATCH 016/171] iommu: Add a Kconfig for SPL_PINCTRL_ARMADA_38X
  2023-01-30 18:59             ` Tom Rini
@ 2023-01-30 19:02               ` Pali Rohár
  0 siblings, 0 replies; 134+ messages in thread
From: Pali Rohár @ 2023-01-30 19:02 UTC (permalink / raw)
  To: Tom Rini; +Cc: Mark Kettenis, Marek Behún, Simon Glass, u-boot, sr

On Monday 30 January 2023 13:59:21 Tom Rini wrote:
> On Mon, Jan 30, 2023 at 07:28:56PM +0100, Pali Rohár wrote:
> > On Monday 30 January 2023 13:25:25 Tom Rini wrote:
> > > On Mon, Jan 30, 2023 at 07:16:26PM +0100, Pali Rohár wrote:
> > > > On Monday 30 January 2023 11:29:27 Tom Rini wrote:
> > > > > On Mon, Jan 30, 2023 at 05:19:01PM +0100, Mark Kettenis wrote:
> > > > > > > From: Simon Glass <sjg@chromium.org>
> > > > > > > Date: Mon, 30 Jan 2023 07:40:49 -0700
> > > > > > > 
> > > > > > > This is implicitly used in the source and seems useful, so add it.
> > > > > > 
> > > > > > Not sure how this ended up with an "iommu" tag, but that seems wrong.
> > > > > > 
> > > > > > > Signed-off-by: Simon Glass <sjg@chromium.org>
> > > > > > > ---
> > > > > > > 
> > > > > > >  drivers/pinctrl/mvebu/Kconfig | 4 ++++
> > > > > > >  1 file changed, 4 insertions(+)
> > > > > > > 
> > > > > > > diff --git a/drivers/pinctrl/mvebu/Kconfig b/drivers/pinctrl/mvebu/Kconfig
> > > > > > > index 7c51d138c8b..0b2be88e3a1 100644
> > > > > > > --- a/drivers/pinctrl/mvebu/Kconfig
> > > > > > > +++ b/drivers/pinctrl/mvebu/Kconfig
> > > > > > > @@ -7,6 +7,10 @@ config PINCTRL_ARMADA_38X
> > > > > > >  	   Support pin multiplexing and pin configuration control on
> > > > > > >  	   Marvell's Armada-38x SoC.
> > > > > > >  
> > > > > > > +config SPL_PINCTRL_ARMADA_38X
> > > > > > > +	def_bool n  # Armada 38x pin control driver (SPL)
> > > > > > > +	depends on SPL && ARMADA_38X && SPL_PINCTRL_FULL
> > > > > > > +
> > > > > > >  config PINCTRL_ARMADA_37XX
> > > > > > >  	depends on ARMADA_3700 && PINCTRL_FULL
> > > > > > >  	bool "Armada 37xx pin control driver"
> > > > > 
> > > > > Looking at the code in question, it's because in
> > > > > drivers/gpio/mvebu_gpio.c we conditionally not set request / rfree
> > > > > dm_gpio_ops because turris_omnia (only platform in question) does not
> > > > > set pinctrl in SPL, but does set SPL_DM_GPIO. So the question I have, is
> > > > > all of that intentional and used today, in SPL, on the platform? I guess
> > > > > some set/get directions / values, to check board revs or something?
> > > > 
> > > > I think this is because no A38x board use DM pinctrl framework for
> > > > configuring pin muxing. All boards set pin muxing in open coded board
> > > > function which directly touch HW registers. DM pinctrl driver for A38x
> > > > is relatively new and I think nobody converted any board to use it for
> > > > initialization.
> > > 
> > > I do see that turris_omnia builds the pinctrl driver for full U-Boot
> > > today.
> > 
> > Yes, it allows u-boot pinmux command to print current pinctrl
> > configuration and also allows gpio command to work correctly for gpios
> > which are not in gpio mode by default.
> > 
> > > But, does that mean that at some point in the future it should
> > > be converted to use SPL_PINCTRL ?
> > 
> > Every a38x board could be converted. But personally I'm not planning to
> > do it.
> 
> OK, but if someone were to do it, it would then be the case that
> PINCTRL_ARMADA_38X would be the driver used, yes?

Then it would be used in SPL. In proper U-Boot it is already used by
commands like 'pinmux' or 'gpio'.

> > > As that would imply that we do not
> > > need / want SPL_PINCTRL_ARMADA_38X added (I suspect SPL_PINCTRL_STMFX
> > > and SPL_PINCTRL_ROCKCHIP are wrong) as it will be handled like the
> > > majority of other platforms in this area.
> 
> As I look at this more, I see that SPL_PINCTRL_STMFX _is_ one of the
> special cases as it seems in SPL they use the PINCTRL_STM32 driver and
> do _not_ want PINCTRL_STMFX so SPL_PINCTRL_STMFX is introduced as a way
> to keep the driver from being built in SPL.
> 
> -- 
> Tom



^ permalink raw reply	[flat|nested] 134+ messages in thread

* RE: [PATCH 100/171] Correct SPL uses of HW_WATCHDOG
  2023-01-30 14:42 ` [PATCH 100/171] Correct SPL uses of HW_WATCHDOG Simon Glass
@ 2023-01-31  1:14   ` ChiaWei Wang
  0 siblings, 0 replies; 134+ messages in thread
From: ChiaWei Wang @ 2023-01-31  1:14 UTC (permalink / raw)
  To: Simon Glass, U-Boot Mailing List
  Cc: Tom Rini, BMC-SW, Joel Stanley, Ryan Chen, Stefan Roese

Reviewed-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>

Thanks.

> From: Simon Glass <sjg@chromium.org>
> Sent: Monday, January 30, 2023 10:42 PM
> 
> This converts 2 usages of this option to the non-SPL form, since there is no
> SPL_HW_WATCHDOG defined in Kconfig
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
> 
>  drivers/crypto/aspeed/aspeed_hace.c | 2 +-
>  drivers/crypto/hash/hash_sw.c       | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/crypto/aspeed/aspeed_hace.c
> b/drivers/crypto/aspeed/aspeed_hace.c
> index a1b0b9f564b..6b6c8fa6588 100644
> --- a/drivers/crypto/aspeed/aspeed_hace.c
> +++ b/drivers/crypto/aspeed/aspeed_hace.c
> @@ -288,7 +288,7 @@ static int aspeed_hace_digest_wd(struct udevice *dev,
> enum HASH_ALGO algo,
>  	if (rc)
>  		return rc;
> 
> -	if (CONFIG_IS_ENABLED(HW_WATCHDOG) ||
> CONFIG_IS_ENABLED(WATCHDOG)) {
> +	if (IS_ENABLED(CONFIG_HW_WATCHDOG) ||
> CONFIG_IS_ENABLED(WATCHDOG)) {
>  		cur = ibuf;
>  		end = ibuf + ilen;
> 
> diff --git a/drivers/crypto/hash/hash_sw.c b/drivers/crypto/hash/hash_sw.c
> index 553c068010c..d8065d68ea4 100644
> --- a/drivers/crypto/hash/hash_sw.c
> +++ b/drivers/crypto/hash/hash_sw.c
> @@ -244,7 +244,7 @@ static int sw_hash_digest_wd(struct udevice *dev,
> enum HASH_ALGO algo,
>  	if (rc)
>  		return rc;
> 
> -	if (CONFIG_IS_ENABLED(HW_WATCHDOG) ||
> CONFIG_IS_ENABLED(WATCHDOG)) {
> +	if (IS_ENABLED(CONFIG_HW_WATCHDOG) ||
> CONFIG_IS_ENABLED(WATCHDOG)) {
>  		cur = ibuf;
>  		end = ibuf + ilen;
> 
> --
> 2.39.1.456.gfc5497dd1b-goog


^ permalink raw reply	[flat|nested] 134+ messages in thread

* Re: [PATCH 096/171] Correct SPL use of FS_EROFS
  2023-01-30 14:42   ` Simon Glass
  (?)
@ 2023-01-31  2:57   ` Huang Jianan
  -1 siblings, 0 replies; 134+ messages in thread
From: Huang Jianan @ 2023-01-31  2:57 UTC (permalink / raw)
  To: Simon Glass, U-Boot Mailing List; +Cc: Tom Rini, linux-erofs


在 2023/1/30 22:42, Simon Glass 写道:
> This converts 1 usage of this option to the non-SPL form, since there is
> no SPL_FS_EROFS defined in Kconfig
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
>   fs/erofs/Makefile | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/erofs/Makefile b/fs/erofs/Makefile
> index 58af6a68e41..ef94d2db45d 100644
> --- a/fs/erofs/Makefile
> +++ b/fs/erofs/Makefile
> @@ -1,7 +1,7 @@
>   # SPDX-License-Identifier: GPL-2.0+
>   #
>   
> -obj-$(CONFIG_$(SPL_)FS_EROFS) = fs.o \
> +obj-$(CONFIG_FS_EROFS) = fs.o \
>   				super.o \
>   				namei.o \
>   				data.o \

Looks good to me.
Reviewed-by: Huang Jianan <jnhuang95@gmail.com>

Thanks,
Jianan

^ permalink raw reply	[flat|nested] 134+ messages in thread

* Re: [PATCH 014/171] lib: Add a Kconfig for SPL_ERRNO_STR
  2023-01-30 14:51   ` Heinrich Schuchardt
  2023-01-30 14:53     ` Tom Rini
@ 2023-01-31 14:16     ` Simon Glass
  1 sibling, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-31 14:16 UTC (permalink / raw)
  To: Heinrich Schuchardt
  Cc: Tom Rini, Brandon Maier, Ilias Apalodimas, Kautuk Consul,
	Leo Yu-Chi Liang, Philippe Reynes, Rasmus Villemoes,
	Sughosh Ganu, U-Boot Mailing List

Hi Heinrich,

On Mon, 30 Jan 2023 at 07:57, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
>
> On 1/30/23 15:40, Simon Glass wrote:
> > This is implicitly used in the source and seems useful, so add it.
>
> Do not use the same commit message for all patches.
>
> Clearly describe how you plan to use this and put this patch in a series
> where you actually use the new CONFIG option

It is actually used today. To see that, you only need to grep for use
this with CONFIG_IS_ENABLDE().

Of course it is never actually enabled, but that doesn't mean we can drop it.

The reason this works today is that CONFIG_IS_ENABLED() looks for
Kconfig options which are not actually in Kconfig. That is what I am
trying to change, since it is incompatible with separating out the
builds.



>
> >
> > Signed-off-by: Simon Glass <sjg@chromium.org>
> > ---
> >
> >   lib/Kconfig | 4 ++++
> >   1 file changed, 4 insertions(+)
> >
> > diff --git a/lib/Kconfig b/lib/Kconfig
> > index 549bd357785..999ae99bf68 100644
> > --- a/lib/Kconfig
> > +++ b/lib/Kconfig
> > @@ -782,6 +782,10 @@ config ERRNO_STR
> >         - if errno is null or positive number - a pointer to "Success" message
> >         - if errno is negative - a pointer to errno related message
> >
> > +config SPL_ERRNO_STR
> > +     def_bool n  # Enable function for getting errno-related string message (SPL)
> > +     depends on SPL
> > +
> >   config HEXDUMP
> >       bool "Enable hexdump"
> >       help
>

^ permalink raw reply	[flat|nested] 134+ messages in thread

* Re: [PATCH 000/171] Kconfig: More cleanup of CONFIG options
  2023-01-30 15:10 ` [PATCH 000/171] Kconfig: More cleanup of CONFIG options Tom Rini
@ 2023-01-31 14:16   ` Simon Glass
  0 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-01-31 14:16 UTC (permalink / raw)
  To: Tom Rini
  Cc: Troy Kisky, U-Boot Mailing List, AKASHI Takahiro,
	Aleksandar Gerasimovski, Anastasiia Lukianenko, Andreas Kemnade,
	Andrew Scull, Angelo Dureghello, Anup Patel, Ashok Reddy Soma,
	Aswath Govindraju, Bharat Gooty, Bin Meng, Chia-Wei Wang,
	Claudiu Beznea, Daniel Golle, Heiko Schocher, Heiko Thiery,
	Heinrich Schuchardt, Huang Jianan, Ilias Apalodimas, Jason Liu,
	Jeffy Chen, Jens Wiklander, Judith Mendez, Kautuk Consul,
	Keerthy, Leo Yu-Chi Liang, Lukasz Majewski, Manoj Sai,
	Marek Vasut, Masahisa Kojima, Matthias Brugger,
	Meenakshi Aggarwal, Neil Armstrong, Oleksandr Andrushchenko,
	Oleksandr Suvorov, Ovidiu Panait, Patrice Chotard, Paul Walmsley,
	Philipp Tomsich, Pierre-Clément Tosi, Rayagonda Kokatanur,
	Rick Chen, Ryan Chen, Sergiu Moga, Stefano Babic,
	Stephan Gerhold, Sughosh Ganu, T Karthik Reddy, Wasim Khan,
	Wolfgang Denk

Hi Tom,

On Mon, 30 Jan 2023 at 08:10, Tom Rini <trini@konsulko.com> wrote:
>
> On Mon, Jan 30, 2023 at 07:40:33AM -0700, Simon Glass wrote:
>
> > Quite a few CONFIG options without an SPL equivalent are used as if they
> > have one. For example, we see CONFIG_IS_ENABLED(IOMMU) when there is no
> > SPL_IOMMU Kconfig option.
> >
> > This series adds new features to moveconfig to detect and remove these
> > problems. It includes additions to the Kconfig for options which are
> > needed as well as dropping unwanted us of CONFIG_IS_ENABLED, etc.
> >
> > This follows on from the previous series[1]
> >
> > It is available at u-boot-dm/splb-working
> >
> > [1] https://patchwork.ozlabs.org/project/uboot/list/?series=339004
>
> I'm a little confused at the rush, and duplication right now. As part
> off the CONFIG_IS_ENABLED / IS_ENABLED thread, Troy did a series of
> patches to convert everyone that's using CONFIG_IS_ENABLED to use
> IS_ENABLED, got it through CI and I assumed was trying to figure out how
> to get it posted, next. Further, this series does too many things, and
> needs a bit more thought. All of the CMD_FOO ones are obviously correct,
> but then the majority of the rest of the cases should likely not be
> adding a disabled Kconfig option but instead converted as well as it's
> most likely people are just silencing the checkpatch.pl message and not
> thinking about the ramificationns.

Most of them have been disabled. The patches you refer to at the front
(which add a disabled option) are because I hit build failures just
trying to convert things away from CONFIG_IS_ENABLED(). I may have
made some errors, of course, as there is alot going on.

The rush is that I'd like to do the split config thing, but keep
hitting problems with the Kconfig:

- mention of options which don't existing in Kconfig (spla series)
- use of options in SPL context when there is no SPL_ option (this series splb)

My goal is 'splc', being a small series to split out the configs...but
it requires a pretty high level of consistency. Perhaps I should send
that out so you get the idea where it is heading?

Regards,
Simon

^ permalink raw reply	[flat|nested] 134+ messages in thread

* Re: [PATCH 086/171] Correct SPL uses of FASTBOOT_FLASH
  2023-01-30 14:41 ` [PATCH 086/171] Correct SPL uses of FASTBOOT_FLASH Simon Glass
@ 2023-01-31 16:56   ` Mattijs Korpershoek
  0 siblings, 0 replies; 134+ messages in thread
From: Mattijs Korpershoek @ 2023-01-31 16:56 UTC (permalink / raw)
  To: Simon Glass, U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Joe Hershberger, Patrick Delaunay,
	Ramon Fried, Sean Anderson

On Mon, Jan 30, 2023 at 07:41, Simon Glass <sjg@chromium.org> wrote:

> This converts 3 usages of this option to the non-SPL form, since there is
> no SPL_FASTBOOT_FLASH defined in Kconfig
>
> Signed-off-by: Simon Glass <sjg@chromium.org>

Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>

> ---
>
>  drivers/fastboot/fb_getvar.c | 4 ++--
>  net/fastboot.c               | 2 +-
>  2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/fastboot/fb_getvar.c b/drivers/fastboot/fb_getvar.c
> index 2fbd285db38..bcef8f866f3 100644
> --- a/drivers/fastboot/fb_getvar.c
> +++ b/drivers/fastboot/fb_getvar.c
> @@ -57,7 +57,7 @@ static const struct {
>  	}, {
>  		.variable = "current-slot",
>  		.dispatch = getvar_current_slot
> -#if CONFIG_IS_ENABLED(FASTBOOT_FLASH)
> +#if IS_ENABLED(CONFIG_FASTBOOT_FLASH)
>  	}, {
>  		.variable = "has-slot",
>  		.dispatch = getvar_has_slot
> @@ -67,7 +67,7 @@ static const struct {
>  		.variable = "partition-type",
>  		.dispatch = getvar_partition_type
>  #endif
> -#if CONFIG_IS_ENABLED(FASTBOOT_FLASH)
> +#if IS_ENABLED(CONFIG_FASTBOOT_FLASH)
>  	}, {
>  		.variable = "partition-size",
>  		.dispatch = getvar_partition_size
> diff --git a/net/fastboot.c b/net/fastboot.c
> index 96bdf5486fa..e9569d88d2a 100644
> --- a/net/fastboot.c
> +++ b/net/fastboot.c
> @@ -307,7 +307,7 @@ void fastboot_start_server(void)
>  
>  	fastboot_our_port = CONFIG_UDP_FUNCTION_FASTBOOT_PORT;
>  
> -	if (CONFIG_IS_ENABLED(FASTBOOT_FLASH))
> +	if (IS_ENABLED(CONFIG_FASTBOOT_FLASH))
>  		fastboot_set_progress_callback(fastboot_timed_send_info);
>  
>  	net_set_udp_handler(fastboot_handler);
> -- 
> 2.39.1.456.gfc5497dd1b-goog

^ permalink raw reply	[flat|nested] 134+ messages in thread

* Re: [PATCH 087/171] Correct SPL uses of FASTBOOT_FLASH_MMC
  2023-01-30 14:42 ` [PATCH 087/171] Correct SPL uses of FASTBOOT_FLASH_MMC Simon Glass
@ 2023-01-31 16:57   ` Mattijs Korpershoek
  0 siblings, 0 replies; 134+ messages in thread
From: Mattijs Korpershoek @ 2023-01-31 16:57 UTC (permalink / raw)
  To: Simon Glass, U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Heiko Schocher, Patrick Delaunay, Sean Anderson

On Mon, Jan 30, 2023 at 07:42, Simon Glass <sjg@chromium.org> wrote:

> This converts 5 usages of this option to the non-SPL form, since there is
> no SPL_FASTBOOT_FLASH_MMC defined in Kconfig
>
> Signed-off-by: Simon Glass <sjg@chromium.org>

Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>

> ---
>
>  drivers/fastboot/fb_command.c | 4 ++--
>  drivers/fastboot/fb_common.c  | 2 +-
>  drivers/fastboot/fb_getvar.c  | 4 ++--
>  3 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/fastboot/fb_command.c b/drivers/fastboot/fb_command.c
> index 67a94798287..5a3fb69b3f7 100644
> --- a/drivers/fastboot/fb_command.c
> +++ b/drivers/fastboot/fb_command.c
> @@ -295,7 +295,7 @@ void fastboot_data_complete(char *response)
>   */
>  static void __maybe_unused flash(char *cmd_parameter, char *response)
>  {
> -	if (CONFIG_IS_ENABLED(FASTBOOT_FLASH_MMC))
> +	if (IS_ENABLED(CONFIG_FASTBOOT_FLASH_MMC))
>  		fastboot_mmc_flash_write(cmd_parameter, fastboot_buf_addr,
>  					 image_size, response);
>  
> @@ -315,7 +315,7 @@ static void __maybe_unused flash(char *cmd_parameter, char *response)
>   */
>  static void __maybe_unused erase(char *cmd_parameter, char *response)
>  {
> -	if (CONFIG_IS_ENABLED(FASTBOOT_FLASH_MMC))
> +	if (IS_ENABLED(CONFIG_FASTBOOT_FLASH_MMC))
>  		fastboot_mmc_erase(cmd_parameter, response);
>  
>  	if (CONFIG_IS_ENABLED(FASTBOOT_FLASH_NAND))
> diff --git a/drivers/fastboot/fb_common.c b/drivers/fastboot/fb_common.c
> index 7563650d07d..57b6182c46a 100644
> --- a/drivers/fastboot/fb_common.c
> +++ b/drivers/fastboot/fb_common.c
> @@ -99,7 +99,7 @@ int __weak fastboot_set_reboot_flag(enum fastboot_reboot_reason reason)
>  	const int mmc_dev = config_opt_enabled(CONFIG_FASTBOOT_FLASH_MMC,
>  					       CONFIG_FASTBOOT_FLASH_MMC_DEV, -1);
>  
> -	if (!CONFIG_IS_ENABLED(FASTBOOT_FLASH_MMC))
> +	if (!IS_ENABLED(CONFIG_FASTBOOT_FLASH_MMC))
>  		return -EINVAL;
>  
>  	if (reason >= FASTBOOT_REBOOT_REASONS_COUNT)
> diff --git a/drivers/fastboot/fb_getvar.c b/drivers/fastboot/fb_getvar.c
> index bcef8f866f3..de4879dadfb 100644
> --- a/drivers/fastboot/fb_getvar.c
> +++ b/drivers/fastboot/fb_getvar.c
> @@ -62,7 +62,7 @@ static const struct {
>  		.variable = "has-slot",
>  		.dispatch = getvar_has_slot
>  #endif
> -#if CONFIG_IS_ENABLED(FASTBOOT_FLASH_MMC)
> +#if IS_ENABLED(CONFIG_FASTBOOT_FLASH_MMC)
>  	}, {
>  		.variable = "partition-type",
>  		.dispatch = getvar_partition_type
> @@ -99,7 +99,7 @@ static int getvar_get_part_info(const char *part_name, char *response,
>  	struct disk_partition disk_part;
>  	struct part_info *part_info;
>  
> -	if (CONFIG_IS_ENABLED(FASTBOOT_FLASH_MMC)) {
> +	if (IS_ENABLED(CONFIG_FASTBOOT_FLASH_MMC)) {
>  		r = fastboot_mmc_get_part_info(part_name, &dev_desc, &disk_part,
>  					       response);
>  		if (r >= 0 && size)
> -- 
> 2.39.1.456.gfc5497dd1b-goog

^ permalink raw reply	[flat|nested] 134+ messages in thread

* Re: [PATCH 088/171] Correct SPL uses of FASTBOOT_FLASH_NAND
  2023-01-30 14:42 ` [PATCH 088/171] Correct SPL uses of FASTBOOT_FLASH_NAND Simon Glass
@ 2023-01-31 16:58   ` Mattijs Korpershoek
  0 siblings, 0 replies; 134+ messages in thread
From: Mattijs Korpershoek @ 2023-01-31 16:58 UTC (permalink / raw)
  To: Simon Glass, U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Heiko Schocher, Patrick Delaunay, Sean Anderson

On Mon, Jan 30, 2023 at 07:42, Simon Glass <sjg@chromium.org> wrote:

> This converts 3 usages of this option to the non-SPL form, since there is
> no SPL_FASTBOOT_FLASH_NAND defined in Kconfig
>
> Signed-off-by: Simon Glass <sjg@chromium.org>

Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>

> ---
>
>  drivers/fastboot/fb_command.c | 4 ++--
>  drivers/fastboot/fb_getvar.c  | 2 +-
>  2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/fastboot/fb_command.c b/drivers/fastboot/fb_command.c
> index 5a3fb69b3f7..71cfaec6e9d 100644
> --- a/drivers/fastboot/fb_command.c
> +++ b/drivers/fastboot/fb_command.c
> @@ -299,7 +299,7 @@ static void __maybe_unused flash(char *cmd_parameter, char *response)
>  		fastboot_mmc_flash_write(cmd_parameter, fastboot_buf_addr,
>  					 image_size, response);
>  
> -	if (CONFIG_IS_ENABLED(FASTBOOT_FLASH_NAND))
> +	if (IS_ENABLED(CONFIG_FASTBOOT_FLASH_NAND))
>  		fastboot_nand_flash_write(cmd_parameter, fastboot_buf_addr,
>  					  image_size, response);
>  }
> @@ -318,7 +318,7 @@ static void __maybe_unused erase(char *cmd_parameter, char *response)
>  	if (IS_ENABLED(CONFIG_FASTBOOT_FLASH_MMC))
>  		fastboot_mmc_erase(cmd_parameter, response);
>  
> -	if (CONFIG_IS_ENABLED(FASTBOOT_FLASH_NAND))
> +	if (IS_ENABLED(CONFIG_FASTBOOT_FLASH_NAND))
>  		fastboot_nand_erase(cmd_parameter, response);
>  }
>  
> diff --git a/drivers/fastboot/fb_getvar.c b/drivers/fastboot/fb_getvar.c
> index de4879dadfb..dd3475e0a8b 100644
> --- a/drivers/fastboot/fb_getvar.c
> +++ b/drivers/fastboot/fb_getvar.c
> @@ -104,7 +104,7 @@ static int getvar_get_part_info(const char *part_name, char *response,
>  					       response);
>  		if (r >= 0 && size)
>  			*size = disk_part.size * disk_part.blksz;
> -	} else if (CONFIG_IS_ENABLED(FASTBOOT_FLASH_NAND)) {
> +	} else if (IS_ENABLED(CONFIG_FASTBOOT_FLASH_NAND)) {
>  		r = fastboot_nand_get_part_info(part_name, &part_info, response);
>  		if (r >= 0 && size)
>  			*size = part_info->size;
> -- 
> 2.39.1.456.gfc5497dd1b-goog

^ permalink raw reply	[flat|nested] 134+ messages in thread

* Re: [PATCH 015/171] iommu: Add a Kconfig for SPL_IOMMU
  2023-01-30 16:23   ` Mark Kettenis
@ 2023-02-05  1:21     ` Simon Glass
  0 siblings, 0 replies; 134+ messages in thread
From: Simon Glass @ 2023-02-05  1:21 UTC (permalink / raw)
  To: Mark Kettenis; +Cc: u-boot, trini

Hi Mark,

On Mon, 30 Jan 2023 at 09:24, Mark Kettenis <mark.kettenis@xs4all.nl> wrote:
>
> > From: Simon Glass <sjg@chromium.org>
> > Date: Mon, 30 Jan 2023 07:40:48 -0700
> >
> > This is implicitly used in the source and seems useful, so add it.
>
> At this point the IOMMU support isn't used for SPL.  While I can't
> rule out we'll see an SoC at some point the needs it, I don't think
> I've seen an SoC that has devices that are typically used in SPL (MMC,
> NOR flash, memory controllers) behind an IOMMU.  So switching to
> IS_ENABLED(CONFIG_IOMMU) seems more logical to me.

That's actually not the issue here. If we need an option enabled in
U-Boot proper, but not in SPL, then we need to have an SPL option.
Otherwise it gets enabled in both.

If it were OK to have the feature in SPL always for all boards, we
would not need this.

Regards,
Simon

^ permalink raw reply	[flat|nested] 134+ messages in thread

* Re: [PATCH 019/171] lib: Add a Kconfig for SPL_GENERATE_ACPI_TABLE
  2023-01-30 14:52     ` Tom Rini
  2023-01-30 15:18       ` Mark Kettenis
@ 2023-02-05  1:21       ` Simon Glass
  2023-02-05  2:01         ` Tom Rini
  1 sibling, 1 reply; 134+ messages in thread
From: Simon Glass @ 2023-02-05  1:21 UTC (permalink / raw)
  To: Tom Rini
  Cc: Heinrich Schuchardt, Brandon Maier, Ilias Apalodimas,
	Kautuk Consul, Leo Yu-Chi Liang, Philippe Reynes,
	Rasmus Villemoes, Sughosh Ganu, U-Boot Mailing List

Hi Tom, Heinrich,

On Mon, 30 Jan 2023 at 07:52, Tom Rini <trini@konsulko.com> wrote:
>
> On Mon, Jan 30, 2023 at 03:50:23PM +0100, Heinrich Schuchardt wrote:
> > On 1/30/23 15:40, Simon Glass wrote:
> > > This is implicitly used in the source and seems useful, so add it.
> >
> > Please, provide a clear description how this will be used.
>
> To follow up on what I just sent, Simon seems to be taking a pass at
> adding to Kconfig many / most of the options that aren't available today
> but are implied by the usage of CONFIG_IS_ENABLED(FOO). So, this is
> another case where IS_ENABLED(CONFIG_FOO) should be used.

This is needed for coral, which needs to know whether to include the
code to generate the ACPI tables or not. It needs to be omitted in
SPL, for code-size reasons.

If we use IS_ENABLED() then it will be built into SPL.

Regards,
Simon

^ permalink raw reply	[flat|nested] 134+ messages in thread

* Re: [PATCH 020/171] efi: Add a Kconfig for SPL_EFI_LOADER et all
  2023-01-30 14:51     ` Tom Rini
@ 2023-02-05  1:21       ` Simon Glass
  2023-02-05  2:01         ` Tom Rini
  0 siblings, 1 reply; 134+ messages in thread
From: Simon Glass @ 2023-02-05  1:21 UTC (permalink / raw)
  To: Tom Rini; +Cc: Heinrich Schuchardt, Ilias Apalodimas, U-Boot Mailing List

Hi Tom, Heinrich,

On Mon, 30 Jan 2023 at 07:51, Tom Rini <trini@konsulko.com> wrote:
>
> On Mon, Jan 30, 2023 at 03:48:44PM +0100, Heinrich Schuchardt wrote:
> > On 1/30/23 15:40, Simon Glass wrote:
> > > This and EFI_DEVICE_PATH_TO_TEXT are implicitly used in the source and
> >
> > This code is not compiled in SPL. So it cannot be used there.
> >
> > > seem useful, so add them.
> > >
> > > Signed-off-by: Simon Glass <sjg@chromium.org>
> > > ---
> > >
> > >   lib/efi_loader/Kconfig | 8 ++++++++
> > >   1 file changed, 8 insertions(+)
> > >
> > > diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig
> > > index 9fe9a2df9ea..0bd42b9e196 100644
> > > --- a/lib/efi_loader/Kconfig
> > > +++ b/lib/efi_loader/Kconfig
> > > @@ -32,6 +32,10 @@ config EFI_LOADER
> > >
> > >   if EFI_LOADER
> > >
> > > +config SPL_EFI_LOADER
> > > +   def_bool n  # Support running UEFI applications (SPL)
> > > +   depends on SPL
> > > +
> >
> > I cannot see how this could be used:
> >
> > * The size of the EFI code is too big to fit into SPL on most boards.
>
> OK, so please do a series to correct all CONFIG_IS_ENABLED(EFI_*) to be
> IS_ENABLED(CONFIG_EFI_*), other than EFI_PARTITIONS which can be in SPL.

This is another case where I think it is actually needed.

Heinrich makes the point that this code cannot be used in SPL. It is
precisely because of that that we need an SPL version of the config.
Otherwise it will be enabled everywhere. The fact that it currently
works is due to CONFIG_IS_ENABLED() not caring whether the Kconfig
options it is checking are present or not. That needs to change with
split config.

Regards,
Simon

^ permalink raw reply	[flat|nested] 134+ messages in thread

* Re: [PATCH 020/171] efi: Add a Kconfig for SPL_EFI_LOADER et all
  2023-02-05  1:21       ` Simon Glass
@ 2023-02-05  2:01         ` Tom Rini
  0 siblings, 0 replies; 134+ messages in thread
From: Tom Rini @ 2023-02-05  2:01 UTC (permalink / raw)
  To: Simon Glass; +Cc: Heinrich Schuchardt, Ilias Apalodimas, U-Boot Mailing List

[-- Attachment #1: Type: text/plain, Size: 2612 bytes --]

On Sat, Feb 04, 2023 at 06:21:48PM -0700, Simon Glass wrote:
> Hi Tom, Heinrich,
> 
> On Mon, 30 Jan 2023 at 07:51, Tom Rini <trini@konsulko.com> wrote:
> >
> > On Mon, Jan 30, 2023 at 03:48:44PM +0100, Heinrich Schuchardt wrote:
> > > On 1/30/23 15:40, Simon Glass wrote:
> > > > This and EFI_DEVICE_PATH_TO_TEXT are implicitly used in the source and
> > >
> > > This code is not compiled in SPL. So it cannot be used there.
> > >
> > > > seem useful, so add them.
> > > >
> > > > Signed-off-by: Simon Glass <sjg@chromium.org>
> > > > ---
> > > >
> > > >   lib/efi_loader/Kconfig | 8 ++++++++
> > > >   1 file changed, 8 insertions(+)
> > > >
> > > > diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig
> > > > index 9fe9a2df9ea..0bd42b9e196 100644
> > > > --- a/lib/efi_loader/Kconfig
> > > > +++ b/lib/efi_loader/Kconfig
> > > > @@ -32,6 +32,10 @@ config EFI_LOADER
> > > >
> > > >   if EFI_LOADER
> > > >
> > > > +config SPL_EFI_LOADER
> > > > +   def_bool n  # Support running UEFI applications (SPL)
> > > > +   depends on SPL
> > > > +
> > >
> > > I cannot see how this could be used:
> > >
> > > * The size of the EFI code is too big to fit into SPL on most boards.
> >
> > OK, so please do a series to correct all CONFIG_IS_ENABLED(EFI_*) to be
> > IS_ENABLED(CONFIG_EFI_*), other than EFI_PARTITIONS which can be in SPL.
> 
> This is another case where I think it is actually needed.
> 
> Heinrich makes the point that this code cannot be used in SPL. It is
> precisely because of that that we need an SPL version of the config.
> Otherwise it will be enabled everywhere. The fact that it currently
> works is due to CONFIG_IS_ENABLED() not caring whether the Kconfig
> options it is checking are present or not. That needs to change with
> split config.

OK, so this belongs in the split config series then. That today
CONFIG_IS_ENABLED(FOO) evaluates to false if we never define
SPL/TPL/VPL_FOO as a symbol is a feature, not a glitch, of the system.
It's used both in cases like you further explained around EFI_LOADER
where we do have some additions to core functionality (like printing
EFI paths in lib/vsprintf.c) that will never be needed in SPL, but
modify code that is included in SPL, so it cannot just use IS_ENABLED or
an ifdef as that would be true in SPL, and bloat the code, so we rely on
an always false test. It's also been used a time or two for the case of
"today no one has SPL_FOO, but in the future they may, and would want
this path to be taken". That is rarer, but I know I did that at least
once.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 134+ messages in thread

* Re: [PATCH 019/171] lib: Add a Kconfig for SPL_GENERATE_ACPI_TABLE
  2023-02-05  1:21       ` Simon Glass
@ 2023-02-05  2:01         ` Tom Rini
  0 siblings, 0 replies; 134+ messages in thread
From: Tom Rini @ 2023-02-05  2:01 UTC (permalink / raw)
  To: Simon Glass
  Cc: Heinrich Schuchardt, Brandon Maier, Ilias Apalodimas,
	Kautuk Consul, Leo Yu-Chi Liang, Philippe Reynes,
	Rasmus Villemoes, Sughosh Ganu, U-Boot Mailing List

[-- Attachment #1: Type: text/plain, Size: 1114 bytes --]

On Sat, Feb 04, 2023 at 06:21:47PM -0700, Simon Glass wrote:
> Hi Tom, Heinrich,
> 
> On Mon, 30 Jan 2023 at 07:52, Tom Rini <trini@konsulko.com> wrote:
> >
> > On Mon, Jan 30, 2023 at 03:50:23PM +0100, Heinrich Schuchardt wrote:
> > > On 1/30/23 15:40, Simon Glass wrote:
> > > > This is implicitly used in the source and seems useful, so add it.
> > >
> > > Please, provide a clear description how this will be used.
> >
> > To follow up on what I just sent, Simon seems to be taking a pass at
> > adding to Kconfig many / most of the options that aren't available today
> > but are implied by the usage of CONFIG_IS_ENABLED(FOO). So, this is
> > another case where IS_ENABLED(CONFIG_FOO) should be used.
> 
> This is needed for coral, which needs to know whether to include the
> code to generate the ACPI tables or not. It needs to be omitted in
> SPL, for code-size reasons.
> 
> If we use IS_ENABLED() then it will be built into SPL.

OK, so then this needs to be part of the split config series as it
relies on CONFIG_IS_ENABLED behavior that is changed by split config.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 134+ messages in thread

end of thread, other threads:[~2023-02-05  2:02 UTC | newest]

Thread overview: 134+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-30 14:40 [PATCH 000/171] Kconfig: More cleanup of CONFIG options Simon Glass
2023-01-30 14:40 ` [PATCH 001/171] moveconfig: Update to detect / correct missing SPL Kconfigs Simon Glass
2023-01-30 14:40 ` [PATCH 002/171] x86: Correct Chrromebook typo Simon Glass
2023-01-30 14:40 ` [PATCH 003/171] boot: Add a Kconfig for SPL_FIT_CIPHER Simon Glass
2023-01-30 14:40 ` [PATCH 004/171] boot: Add a Kconfig for SPL_BOOTSTD_FULL Simon Glass
2023-01-30 14:40 ` [PATCH 005/171] boot: Add Kconfigs for BOOTMETH_VBE_REQUEST Simon Glass
2023-01-30 14:40 ` [PATCH 006/171] boot: Add a Kconfig for SPL_BOOTDEV_SPI_FLASH Simon Glass
2023-01-30 14:40 ` [PATCH 007/171] boot: Add a Kconfig for SPL_BOOTDEV_ETH Simon Glass
2023-01-30 14:40 ` [PATCH 008/171] dm: Add a Kconfig for SPL_DEVRES Simon Glass
2023-01-30 14:40 ` [PATCH 009/171] dm: Add a Kconfig for SPL_DM_HWSPINLOCK Simon Glass
2023-01-30 14:40 ` [PATCH 010/171] boot: Add a Kconfig for SPL_OF_LIVE Simon Glass
2023-01-30 14:40 ` [PATCH 011/171] cmd: Add a Kconfig for SPL_CRC32_VERIFY Simon Glass
2023-01-30 14:40 ` [PATCH 012/171] console: Add a Kconfig for SPL_CONSOLE_MUX et al Simon Glass
2023-01-30 14:40 ` [PATCH 013/171] button: Add a Kconfig for SPL_BUTTON Simon Glass
2023-01-30 14:40 ` [PATCH 014/171] lib: Add a Kconfig for SPL_ERRNO_STR Simon Glass
2023-01-30 14:51   ` Heinrich Schuchardt
2023-01-30 14:53     ` Tom Rini
2023-01-31 14:16     ` Simon Glass
2023-01-30 14:40 ` [PATCH 015/171] iommu: Add a Kconfig for SPL_IOMMU Simon Glass
2023-01-30 16:23   ` Mark Kettenis
2023-02-05  1:21     ` Simon Glass
2023-01-30 14:40 ` [PATCH 016/171] iommu: Add a Kconfig for SPL_PINCTRL_ARMADA_38X Simon Glass
2023-01-30 16:19   ` Mark Kettenis
2023-01-30 16:29     ` Tom Rini
2023-01-30 18:16       ` Pali Rohár
2023-01-30 18:25         ` Tom Rini
2023-01-30 18:28           ` Pali Rohár
2023-01-30 18:59             ` Tom Rini
2023-01-30 19:02               ` Pali Rohár
2023-01-30 14:40 ` [PATCH 017/171] virtio: Add a Kconfig for SPL_VIRTIO Simon Glass
2023-01-30 14:40 ` [PATCH 018/171] lib: Add a Kconfig for SPL_BZIP2 Simon Glass
2023-01-30 14:40 ` [PATCH 019/171] lib: Add a Kconfig for SPL_GENERATE_ACPI_TABLE Simon Glass
2023-01-30 14:50   ` Heinrich Schuchardt
2023-01-30 14:52     ` Tom Rini
2023-01-30 15:18       ` Mark Kettenis
2023-01-30 15:27         ` Tom Rini
2023-01-30 15:29         ` Simon Glass
2023-01-30 15:38         ` Mark Kettenis
2023-02-05  1:21       ` Simon Glass
2023-02-05  2:01         ` Tom Rini
2023-01-30 14:40 ` [PATCH 020/171] efi: Add a Kconfig for SPL_EFI_LOADER et all Simon Glass
2023-01-30 14:48   ` Heinrich Schuchardt
2023-01-30 14:51     ` Tom Rini
2023-02-05  1:21       ` Simon Glass
2023-02-05  2:01         ` Tom Rini
2023-01-30 14:40 ` [PATCH 021/171] acpi: Add a Kconfig for SPL_ACPIGEN Simon Glass
2023-01-30 14:40 ` [PATCH 022/171] rockchip: Add a Kconfig for SPL_RESET_ROCKCHIP Simon Glass
2023-01-30 14:40 ` [PATCH 023/171] mediatek: Add a Kconfig for SPL_RESET_MEDIATEK Simon Glass
2023-01-30 14:40 ` [PATCH 024/171] Correct SPL use of A003399_NOR_WORKAROUND Simon Glass
2023-01-30 14:40 ` [PATCH 025/171] Correct SPL use of AHCI Simon Glass
2023-01-30 14:40 ` [PATCH 026/171] Correct SPL uses of ALLEYCAT_5 Simon Glass
2023-01-30 14:41 ` [PATCH 027/171] Correct SPL uses of ARCH_MVEBU Simon Glass
2023-01-30 14:41 ` [PATCH 028/171] Correct SPL use of ARCH_VERSAL Simon Glass
2023-01-30 14:41 ` [PATCH 029/171] Correct SPL use of ARCH_ZYNQ Simon Glass
2023-01-30 14:41 ` [PATCH 030/171] Correct SPL use of ARM64 Simon Glass
2023-01-30 14:41 ` [PATCH 031/171] Correct SPL uses of ARMADA_3700 Simon Glass
2023-01-30 14:41 ` [PATCH 032/171] Correct SPL uses of ARMADA_8K Simon Glass
2023-01-30 14:41 ` [PATCH 033/171] Correct SPL use of ATMEL_PIO4 Simon Glass
2023-01-30 14:41 ` [PATCH 034/171] Correct SPL use of BNXT_ETH Simon Glass
2023-01-30 14:41 ` [PATCH 035/171] Correct SPL use of BOOTSTAGE_FDT Simon Glass
2023-01-30 14:41 ` [PATCH 036/171] Correct SPL uses of BOOTSTAGE_REPORT Simon Glass
2023-01-30 14:41 ` [PATCH 037/171] Correct SPL use of CMD_BCB Simon Glass
2023-01-30 14:41 ` [PATCH 038/171] Correct SPL uses of CMD_BOOTEFI_BOOTMGR Simon Glass
2023-01-30 14:41 ` [PATCH 039/171] Correct SPL use of CMD_BOOTI Simon Glass
2023-01-30 14:41 ` [PATCH 040/171] Correct SPL uses of CMD_BOOTM_PRE_LOAD Simon Glass
2023-01-30 14:41 ` [PATCH 041/171] Correct SPL use of CMD_BOOTZ Simon Glass
2023-01-30 14:41 ` [PATCH 042/171] Correct SPL uses of CMD_CLK Simon Glass
2023-01-30 14:54   ` Sean Anderson
2023-01-30 14:41 ` [PATCH 043/171] Correct SPL uses of CMD_DHCP Simon Glass
2023-01-30 14:41 ` [PATCH 044/171] Correct SPL uses of CMD_EFICONFIG Simon Glass
2023-01-30 14:41 ` [PATCH 045/171] Correct SPL use of CMD_ERASEENV Simon Glass
2023-01-30 14:41 ` [PATCH 046/171] Correct SPL uses of CMD_FDT Simon Glass
2023-01-30 14:41 ` [PATCH 047/171] Correct SPL use of CMD_FRU Simon Glass
2023-01-30 14:41 ` [PATCH 048/171] Correct SPL use of CMD_HASH Simon Glass
2023-01-30 14:41 ` [PATCH 049/171] Correct SPL use of CMD_MBR Simon Glass
2023-01-30 14:41 ` [PATCH 050/171] Correct SPL uses of CMD_MMC Simon Glass
2023-01-30 14:41 ` [PATCH 051/171] Correct SPL use of CMD_NET Simon Glass
2023-01-30 14:41 ` [PATCH 052/171] Correct SPL use of CMD_NVEDIT_EFI Simon Glass
2023-01-30 14:41 ` [PATCH 053/171] Correct SPL uses of CMD_NVME Simon Glass
2023-01-30 14:41 ` [PATCH 054/171] Correct SPL use of CMD_PSTORE Simon Glass
2023-01-30 14:41 ` [PATCH 055/171] Correct SPL uses of CMD_PXE Simon Glass
2023-01-30 14:41 ` [PATCH 056/171] Correct SPL uses of CMD_SCSI Simon Glass
2023-01-30 14:41 ` [PATCH 057/171] Correct SPL uses of CMD_SF Simon Glass
2023-01-30 14:41 ` [PATCH 058/171] Correct SPL use of CMD_SHA1SUM Simon Glass
2023-01-30 14:41 ` [PATCH 059/171] Correct SPL use of CMD_STBOARD Simon Glass
2023-01-30 14:41 ` [PATCH 060/171] Correct SPL use of CMD_STM32PROG Simon Glass
2023-01-30 14:41 ` [PATCH 061/171] Correct SPL uses of CMD_TFTPPUT Simon Glass
2023-01-30 14:41 ` [PATCH 062/171] Correct SPL uses of CMD_USB Simon Glass
2023-01-30 14:41 ` [PATCH 063/171] Correct SPL use of CMD_VIRTIO Simon Glass
2023-01-30 14:41 ` [PATCH 064/171] Correct SPL uses of CPU_MICROBLAZE Simon Glass
2023-01-30 14:41 ` [PATCH 065/171] Correct SPL use of DEBUG_UART_ZYNQ Simon Glass
2023-01-30 14:41 ` [PATCH 066/171] Correct SPL uses of DFU_VIRT Simon Glass
2023-01-30 14:41 ` [PATCH 067/171] Correct SPL uses of DISPLAY_AER_BRIEF Simon Glass
2023-01-30 14:41 ` [PATCH 068/171] Correct SPL uses of DISPLAY_AER_FULL Simon Glass
2023-01-30 14:41 ` [PATCH 069/171] Correct SPL use of DISPLAY_CPUINFO Simon Glass
2023-01-30 14:41 ` [PATCH 070/171] Correct SPL use of DM_RNG Simon Glass
2023-01-30 14:41 ` [PATCH 071/171] Correct SPL uses of DTB_RESELECT Simon Glass
2023-01-30 14:41 ` [PATCH 072/171] Correct SPL uses of DWC_ETH_QOS Simon Glass
2023-01-30 14:41 ` [PATCH 073/171] Correct SPL use of EFI_APP Simon Glass
2023-01-30 14:41 ` [PATCH 074/171] Correct SPL use of EFI_DEVICE_PATH_UTIL Simon Glass
2023-01-30 14:41 ` [PATCH 075/171] Correct SPL uses of EFI_HAVE_CAPSULE_SUPPORT Simon Glass
2023-01-30 14:41 ` [PATCH 076/171] Correct SPL use of EFI_LOADER_HII Simon Glass
2023-01-30 14:41 ` [PATCH 077/171] Correct SPL use of EFI_MM_COMM_TEE Simon Glass
2023-01-30 14:41 ` [PATCH 078/171] Correct SPL use of EFI_SECURE_BOOT Simon Glass
2023-01-30 14:41 ` [PATCH 079/171] Correct SPL use of EFI_TCG2_PROTOCOL Simon Glass
2023-01-30 14:41 ` [PATCH 080/171] Correct SPL use of EFI_UNICODE_COLLATION_PROTOCOL2 Simon Glass
2023-01-30 14:41 ` [PATCH 081/171] Correct SPL uses of ENV_IS_IN_UBI Simon Glass
2023-01-30 14:41 ` [PATCH 082/171] Correct SPL uses of ENV_VARS_UBOOT_RUNTIME_CONFIG Simon Glass
2023-01-30 14:41 ` [PATCH 083/171] Correct SPL use of ENV_WRITEABLE_LIST Simon Glass
2023-01-30 14:41 ` [PATCH 084/171] Correct SPL use of EXYNOS7420 Simon Glass
2023-01-30 14:41 ` [PATCH 085/171] Correct SPL uses of FASTBOOT Simon Glass
2023-01-30 14:41 ` [PATCH 086/171] Correct SPL uses of FASTBOOT_FLASH Simon Glass
2023-01-31 16:56   ` Mattijs Korpershoek
2023-01-30 14:42 ` [PATCH 087/171] Correct SPL uses of FASTBOOT_FLASH_MMC Simon Glass
2023-01-31 16:57   ` Mattijs Korpershoek
2023-01-30 14:42 ` [PATCH 088/171] Correct SPL uses of FASTBOOT_FLASH_NAND Simon Glass
2023-01-31 16:58   ` Mattijs Korpershoek
2023-01-30 14:42 ` [PATCH 089/171] Correct SPL use of FASTBOOT_MMC_USER_SUPPORT Simon Glass
2023-01-30 14:42 ` [PATCH 090/171] Correct SPL use of FDT_SIMPLEFB Simon Glass
2023-01-30 14:42 ` [PATCH 091/171] Correct SPL uses of FEC_MXC Simon Glass
2023-01-30 14:42 ` [PATCH 092/171] Correct SPL use of FSL_CAAM Simon Glass
2023-01-30 14:42 ` [PATCH 093/171] Correct SPL uses of FSL_ISBC_KEY_EXT Simon Glass
2023-01-30 14:42 ` [PATCH 094/171] Correct SPL use of FSL_MC_ENET Simon Glass
2023-01-30 14:42 ` [PATCH 095/171] Correct SPL use of FSP_VERSION2 Simon Glass
2023-01-30 14:42 ` [PATCH 096/171] Correct SPL use of FS_EROFS Simon Glass
2023-01-30 14:42   ` Simon Glass
2023-01-31  2:57   ` Huang Jianan
2023-01-30 14:42 ` [PATCH 097/171] Correct SPL use of GENERATE_SMBIOS_TABLE Simon Glass
2023-01-30 14:42 ` [PATCH 098/171] Correct SPL uses of GMAC_ROCKCHIP Simon Glass
2023-01-30 14:42 ` [PATCH 099/171] Correct SPL use of HUSH_PARSER Simon Glass
2023-01-30 14:42 ` [PATCH 100/171] Correct SPL uses of HW_WATCHDOG Simon Glass
2023-01-31  1:14   ` ChiaWei Wang
2023-01-30 15:10 ` [PATCH 000/171] Kconfig: More cleanup of CONFIG options Tom Rini
2023-01-31 14:16   ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.