]> Git Repo - J-u-boot.git/commitdiff
Merge patch series "cmd: add scmi command"
authorTom Rini <[email protected]>
Wed, 29 Nov 2023 03:31:09 +0000 (22:31 -0500)
committerTom Rini <[email protected]>
Wed, 29 Nov 2023 03:31:09 +0000 (22:31 -0500)
To quote the author:

"Scmi" command will be re-introduced per Michal's request.
The functionality is the same as I put it in my patch set of adding
SCMI base protocol support, but made some tweak to make UT, "ut dm
scmi_cmd," more flexible and tolerable when enabling/disabling a specific
SCMI protocol for test purpose.

Each commit may have some change history inherited from the preceding
patch series.

Test
====
The patch series was tested on the following platforms:
* sandbox

1  2 
cmd/Kconfig
cmd/Makefile
configs/sandbox_defconfig

diff --combined cmd/Kconfig
index 7418c20c425e78313009ab346950d435408875ea,ca9f742dcf78c43dcd974170d270f8b336a9da1e..bebe816b075b3b83605ba32f1ce8aaae21dcde16
@@@ -1,5 -1,7 +1,5 @@@
 -menu "Command line interface"
 -
 -config CMDLINE
 -      bool "Support U-Boot commands"
 +menuconfig CMDLINE
 +      bool "Command line interface"
        default y
        help
          Enable U-Boot's command-line functions. This provides a means
@@@ -9,10 -11,9 +9,10 @@@
          Depending on the number of commands enabled, this can add
          substantially to the size of U-Boot.
  
 +if CMDLINE
 +
  config HUSH_PARSER
        bool "Use hush shell"
 -      depends on CMDLINE
        help
          This option enables the "hush" shell (from Busybox) as command line
          interpreter, thus enabling powerful command line syntax like
@@@ -24,6 -25,7 +24,6 @@@
  
  config CMDLINE_EDITING
        bool "Enable command line editing"
 -      depends on CMDLINE
        default y
        help
          Enable editing and History functions for interactive command line
@@@ -38,13 -40,15 +38,13 @@@ config CMDLINE_PS_SUPPOR
  
  config AUTO_COMPLETE
        bool "Enable auto complete using TAB"
 -      depends on CMDLINE
        default y
        help
          Enable auto completion of commands using TAB.
  
  config SYS_LONGHELP
        bool "Enable long help messages"
 -      depends on CMDLINE
 -      default y if CMDLINE
 +      default y
        help
          Defined when you want long help messages included
          Do not set this option when short of memory.
@@@ -71,9 -75,24 +71,9 @@@ config SYS_MAXARG
        int "Maximum number arguments accepted by commands"
        default 16
  
 -config SYS_CBSIZE
 -      int "Console input buffer size"
 -      default 2048 if ARCH_TEGRA || ARCH_VERSAL || ARCH_ZYNQ || ARCH_ZYNQMP || \
 -              RCAR_GEN3 || TARGET_SOCFPGA_SOC64
 -      default 512 if ARCH_MX5 || ARCH_MX6 || ARCH_MX7 || FSL_LSCH2 || \
 -              FSL_LSCH3 || X86
 -      default 256 if M68K || PPC
 -      default 1024
 -
 -config SYS_PBSIZE
 -      int "Buffer size for console output"
 -      default 1024 if ARCH_SUNXI
 -      default 1044
 -
  config SYS_XTRACE
        bool "Command execution tracer"
 -      depends on CMDLINE
 -      default y if CMDLINE
 +      default y
        help
          This option enables the possiblity to print all commands before
          executing them and after all variables are evaluated (similar
@@@ -355,6 -374,17 +355,6 @@@ config BOOTM_VXWORK
        help
          Support booting VxWorks images via the bootm command.
  
 -config SYS_BOOTM_LEN
 -      hex "Maximum size of a decompresed OS image"
 -      depends on CMD_BOOTM || CMD_BOOTI || CMD_BOOTZ || \
 -                 LEGACY_IMAGE_FORMAT || SPL_LEGACY_IMAGE_FORMAT
 -      default 0x4000000 if PPC || ARM64
 -      default 0x1000000 if X86 || ARCH_MX6 || ARCH_MX7
 -      default 0x800000
 -      help
 -        This is the maximum size of the buffer that is used to decompress the OS
 -        image in to, if passing a compressed image to bootm/booti/bootz.
 -
  config CMD_BOOTEFI
        bool "bootefi"
        depends on EFI_LOADER
        help
          Boot an EFI image from memory.
  
 +config CMD_BOOTEFI_BOOTMGR
 +      bool "UEFI Boot Manager command"
 +      depends on BOOTEFI_BOOTMGR && CMD_BOOTEFI
 +      default y
 +      help
 +        Select this option to enable the 'bootmgr' subcommand of 'bootefi'.
 +        This subcommand will allow you to select the UEFI binary to be booted
 +        via UEFI variables Boot####, BootOrder, and BootNext.
 +
  config CMD_BOOTEFI_HELLO_COMPILE
        bool "Compile a standard EFI hello world binary for testing"
        depends on CMD_BOOTEFI && !CPU_V7M
@@@ -960,6 -981,7 +960,6 @@@ config CMD_AD
  
  config CMD_BCB
        bool "bcb"
 -      depends on MMC
        depends on PARTITIONS
        help
          Read/modify/write the fields of Bootloader Control Block, usually
  config CMD_BIND
        bool "bind/unbind - Bind or unbind a device to/from a driver"
        depends on DM
 -      default y if USB_ETHER
 +      imply CMD_DM
        help
          Bind or unbind a device to/from a driver from the command line.
          This is useful in situations where a device may be handled by several
@@@ -1130,6 -1152,13 +1130,6 @@@ config CMD_GP
          Enable the 'gpt' command to ready and write GPT style partition
          tables.
  
 -config RANDOM_UUID
 -      bool "GPT Random UUID generation"
 -      select LIB_UUID
 -      help
 -        Enable the generation of partitions with random UUIDs if none
 -        are provided.
 -
  config CMD_GPT_RENAME
        bool "GPT partition renaming commands"
        depends on CMD_GPT
@@@ -1520,7 -1549,7 +1520,7 @@@ config CMD_TSI14
          Turndra tsi148 device. See the command help for full details.
  
  config CMD_UFS
 -      bool "Enable UFS - Universal Flash Subsystem commands"
 +      bool "ufs - Universal Flash Storage commands"
        depends on UFS
        help
          "This provides commands to initialise and configure universal flash
@@@ -1681,6 -1710,7 +1681,6 @@@ if NE
  menuconfig CMD_NET
        bool "Network commands"
        default y
 -      imply NETDEVICES
  
  if CMD_NET
  
@@@ -2112,7 -2142,7 +2112,7 @@@ config CMD_EFIDEBU
  config CMD_EFICONFIG
        bool "eficonfig - provide menu-driven uefi variables maintenance interface"
        default y if !HAS_BOARD_SIZE_LIMIT
 -      depends on CMD_BOOTEFI_BOOTMGR
 +      depends on BOOTEFI_BOOTMGR
        select MENU
        help
          Enable the 'eficonfig' command which provides the menu-driven UEFI
@@@ -2227,8 -2257,6 +2227,8 @@@ config CMD_SYSBOO
  config CMD_QFW
        bool "qfw"
        select QFW
 +      default y if TARGET_QEMU_ARM_32BIT || TARGET_QEMU_ARM_64BIT || \
 +              TARGET_QEMU_X86 || TARGET_QEMU_X86_64
        help
          This provides access to the QEMU firmware interface.  The main
          feature is to allow easy loading of files passed to qemu-system
@@@ -2342,7 -2370,6 +2342,7 @@@ config CMD_VIDCONSOL
  config CMD_SELECT_FONT
        bool "select font size"
        depends on VIDEO
 +      default y if CONSOLE_TRUETYPE
        help
          Enabling this will provide 'font' command.
          Allows font selection at runtime.
@@@ -2532,6 -2559,15 +2532,15 @@@ config CMD_CROS_E
          a number of sub-commands for performing EC tasks such as
          updating its flash, accessing a small saved context area
          and talking to the I2C bus behind the EC (if there is one).
+ config CMD_SCMI
+       bool "Enable scmi command"
+       depends on SCMI_FIRMWARE
+       default n
+       help
+         This command provides user interfaces to several SCMI (System
+         Control and Management Interface) protocols available on Arm
+         platforms to manage system resources.
  endmenu
  
  menu "Filesystem commands"
@@@ -2875,5 -2911,4 +2884,5 @@@ config CMD_MESO
        default y
        help
          Enable useful commands for the Meson Soc family developed by Amlogic Inc.
 -endmenu
 +
 +endif
diff --combined cmd/Makefile
index dbeeebe2c4b1938df730a3223fdee515046c7790,320f0b5266ebe2aaae3cf300e99279e1a807e8f7..5ed0e4011d07562e4ca4e7fd929d31d432118a31
@@@ -128,7 -128,6 +128,7 @@@ endi
  obj-$(CONFIG_CMD_MUX) += mux.o
  obj-$(CONFIG_CMD_NAND) += nand.o
  obj-$(CONFIG_CMD_NET) += net.o
 +obj-$(CONFIG_ENV_SUPPORT) += nvedit.o
  obj-$(CONFIG_CMD_NVEDIT_EFI) += nvedit_efi.o
  obj-$(CONFIG_CMD_ONENAND) += onenand.o
  obj-$(CONFIG_CMD_OSD) += osd.o
@@@ -160,6 -159,7 +160,7 @@@ obj-$(CONFIG_CMD_SATA) += sata.
  obj-$(CONFIG_CMD_NVME) += nvme.o
  obj-$(CONFIG_SANDBOX) += sb.o
  obj-$(CONFIG_CMD_SF) += sf.o
+ obj-$(CONFIG_CMD_SCMI) += scmi.o
  obj-$(CONFIG_CMD_SCSI) += scsi.o disk.o
  obj-$(CONFIG_CMD_SHA1SUM) += sha1sum.o
  obj-$(CONFIG_CMD_SEAMA) += seama.o
@@@ -246,6 -246,9 +247,6 @@@ endif # !CONFIG_SPL_BUIL
  
  obj-$(CONFIG_$(SPL_)CMD_TLV_EEPROM) += tlv_eeprom.o
  
 -# core command
 -obj-y += nvedit.o
 -
  obj-$(CONFIG_CMD_BCM_EXT_UTILS) += broadcom/
  
  filechk_data_gz = (echo "static const char data_gz[] ="; cat $< | scripts/bin2c; echo ";")
index b7ae1f07c71561e87442b255ff821fa1074b3ec2,c550af93b0ca19a776be749d53eec9f9d18d8dd3..45034e7e400d51a67620a029291824719cd8f17d
@@@ -1,5 -1,4 +1,5 @@@
  CONFIG_TEXT_BASE=0
 +CONFIG_SYS_MALLOC_LEN=0x6000000
  CONFIG_NR_DRAM_BANKS=1
  CONFIG_ENV_SIZE=0x2000
  CONFIG_DEFAULT_DEVICE_TREE="sandbox"
@@@ -16,6 -15,7 +16,6 @@@ CONFIG_FIT_CIPHER=
  CONFIG_FIT_VERBOSE=y
  CONFIG_LEGACY_IMAGE_FORMAT=y
  CONFIG_MEASURED_BOOT=y
 -CONFIG_DISTRO_DEFAULTS=y
  CONFIG_BOOTSTAGE=y
  CONFIG_BOOTSTAGE_REPORT=y
  CONFIG_BOOTSTAGE_FDT=y
@@@ -74,7 -74,6 +74,7 @@@ CONFIG_CMD_IDE=
  CONFIG_CMD_I2C=y
  CONFIG_CMD_LOADM=y
  CONFIG_CMD_LSBLK=y
 +CONFIG_CMD_MTD=y
  CONFIG_CMD_MUX=y
  CONFIG_CMD_OSD=y
  CONFIG_CMD_PCI=y
@@@ -122,6 -121,7 +122,7 @@@ CONFIG_CMD_REGULATOR=
  CONFIG_CMD_AES=y
  CONFIG_CMD_TPM=y
  CONFIG_CMD_TPM_TEST=y
+ CONFIG_CMD_SCMI=y
  CONFIG_CMD_BTRFS=y
  CONFIG_CMD_CBFS=y
  CONFIG_CMD_CRAMFS=y
@@@ -217,13 -217,6 +218,13 @@@ CONFIG_MMC_PCI=
  CONFIG_MMC_SANDBOX=y
  CONFIG_MMC_SDHCI=y
  CONFIG_MTD=y
 +CONFIG_DM_MTD=y
 +CONFIG_MTD_RAW_NAND=y
 +CONFIG_SYS_MAX_NAND_DEVICE=8
 +CONFIG_SYS_NAND_USE_FLASH_BBT=y
 +CONFIG_NAND_SANDBOX=y
 +CONFIG_SYS_NAND_ONFI_DETECTION=y
 +CONFIG_SYS_NAND_PAGE_SIZE=0x200
  CONFIG_SPI_FLASH_SANDBOX=y
  CONFIG_BOOTDEV_SPI_FLASH=y
  CONFIG_SPI_FLASH_ATMEL=y
This page took 0.058856 seconds and 4 git commands to generate.