Add support for the UFS tool to Kconfig and the Makefile. The HBA ID defaults to 0 and can be overridden by the user.
Signed-off-by: Raz Ben Yehuda <[email protected]> --- drivers/ufs/Kconfig | 15 +++++++++++++++ drivers/ufs/Makefile | 1 + 2 files changed, 16 insertions(+) diff --git a/drivers/ufs/Kconfig b/drivers/ufs/Kconfig index 49472933de3..8f67d916a72 100644 --- a/drivers/ufs/Kconfig +++ b/drivers/ufs/Kconfig @@ -8,6 +8,21 @@ config UFS This selects support for Universal Flash Subsystem (UFS). Say Y here if you want UFS Support. +config UFS_TOOL + bool "ufs tool" + depends on UFS + help + Add a UFS tool implementation for querying, printing, and updating + UFS descriptors and configuration parameters. + Please see doc/README.ufs for details. + +config UFS_HBA_ID + int "Id of the ufs hba" + depends on UFS_TOOL + default 0 + help + Default UFS HBA ID. + config UFS_AMD_VERSAL2 bool "AMD Versal Gen 2 UFS controller platform driver" depends on UFS && ZYNQMP_FIRMWARE diff --git a/drivers/ufs/Makefile b/drivers/ufs/Makefile index e7f3c1d30c4..0e472782261 100644 --- a/drivers/ufs/Makefile +++ b/drivers/ufs/Makefile @@ -4,6 +4,7 @@ # obj-$(CONFIG_UFS) += ufs-uclass.o +obj-$(CONFIG_UFS_TOOL) += ufs_tool.o obj-$(CONFIG_UFS_AMD_VERSAL2) += ufs-amd-versal2.o ufshcd-dwc.o obj-$(CONFIG_UFS_CADENCE) += cdns-platform.o obj-$(CONFIG_UFS_MEDIATEK) += ufs-mediatek.o -- 2.43.0

