Marek Vasut
b719674578
ufs: ti: Rename CONFIG_TI_J721E_UFS to CONFIG_UFS_TI_J721E
...
Align the Kconfig option with the rest of the subsystem, use
CONFIG_UFS_<vendor> format for the Kconfig option.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
Link: https://patch.msgid.link/20251030223626.20005-4-marek.vasut+renesas@mailbox.org
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org >
2025-11-25 16:38:22 +01:00
Marek Vasut
ddeb78b022
ufs: rockchip: Rename CONFIG_ROCKCHIP_UFS to CONFIG_UFS_ROCKCHIP
...
Align the Kconfig option with the rest of the subsystem, use
CONFIG_UFS_<vendor> format for the Kconfig option.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
Link: https://patch.msgid.link/20251030223626.20005-3-marek.vasut+renesas@mailbox.org
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org >
2025-11-25 16:38:22 +01:00
Marek Vasut
9ce92c31d3
ufs: qcom: Rename CONFIG_QCOM_UFS to CONFIG_UFS_QCOM
...
Align the Kconfig option with the rest of the subsystem, use
CONFIG_UFS_<vendor> format for the Kconfig option.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
Link: https://patch.msgid.link/20251030223626.20005-2-marek.vasut+renesas@mailbox.org
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org >
2025-11-25 16:38:22 +01:00
Marek Vasut
f8d245f369
ufs: cadence: Rename CONFIG_CADENCE_UFS to CONFIG_UFS_CADENCE
...
Align the Kconfig option with the rest of the subsystem, use
CONFIG_UFS_<vendor> format for the Kconfig option.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
Link: https://patch.msgid.link/20251030223626.20005-1-marek.vasut+renesas@mailbox.org
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org >
2025-11-25 16:38:22 +01:00
Marek Vasut
65c843ebe5
ufs: Keep Makefile and Kconfig sorted one more time
...
Sort the Makefile and Kconfig alphabetically again. No functional change.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
Reviewed-by: Igor Belwon <igor.belwon@mentallysanemainliners.org >
Link: https://patch.msgid.link/20251029201435.215966-1-marek.vasut+renesas@mailbox.org
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org >
2025-11-17 10:27:06 +01:00
Tuyen Dang
3351fe7ecc
ufs: Add UFS driver for Renesas R-Car X5H
...
Add UFS driver for UFS controller present on Renesas R-Car X5H R8A78000.
The controller uses different initialization code compared to previous
generation UFS controller present in Renesas R-Car S4 R8A779F0, and the
majority of the driver is the initialization, hence a new driver.
[Marek: Clean driver up, add SCMI reset handling, use read_poll_timeout(),
pass error values out of ufs_renesas_pre_init(), change the
compatible string to "renesas,r8a78000-ufs" to align with
previous generation "renesas,r8a779f0-ufs"]
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com >
Signed-off-by: Tuyen Dang <tuyen.dang.xa@renesas.com >
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org >
Link: https://patch.msgid.link/20251028142335.18125-7-marek.vasut+renesas@mailbox.org
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org >
2025-10-28 17:35:46 +01:00
Marek Vasut
1de63f1be4
ufs: core: Rename ufs.c to ufs-uclass.c
...
Previous commit folded existing ufs-uclass.c into ufs.c ,
which produced a nice and reviewable change , but also broke
the UCLASS should be in *-uclass.c pattern. Fix it. Keep the
change separate from the previous one to make this reviewable.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
Link: https://patch.msgid.link/20251028142335.18125-3-marek.vasut+renesas@mailbox.org
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org >
2025-10-28 17:32:48 +01:00
Marek Vasut
ea97b85617
ufs: core: Fold ufs-uclass into ufs
...
Move the few lines of ufs-uclass.c into ufs.c and remove the
ufs-uclass.c . No functional change.
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org >
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
Link: https://patch.msgid.link/20251028142335.18125-2-marek.vasut+renesas@mailbox.org
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org >
2025-10-28 17:32:29 +01:00
Marek Vasut
9b37b60017
ufs: core: Keep Makefile and Kconfig list sorted
...
Sort the Makefile and Kconfig lists alphabetically. No functional change.
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org >
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
Link: https://patch.msgid.link/20251028142335.18125-1-marek.vasut+renesas@mailbox.org
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org >
2025-10-28 17:32:15 +01:00
Igor Belwon
6cca3db2bd
ufs: Add MediaTek UFS driver
...
Add the UFS driver for MediaTek platforms.
Loosely based on the Linux driver, this UFS driver can successfully get a
link and R/W access to the UFS chip on the MediaTek MT6878 mobile SoC,
when U-Boot is running as lk, or as the kernel (Secure world access is
not tested)
Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org >
Link: https://patch.msgid.link/20251011-mtk-ufs-uboot-v1-3-a05f991ee150@mentallysanemainliners.org
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org >
2025-10-28 17:22:52 +01:00
Shawn Lin
76465ce21e
ufs: rockchip: Add initial support
...
This patch adds initial support for UFS controller on Rockchip
platforms.
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org >
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com >
Link: https://patch.msgid.link/1760948182-128561-2-git-send-email-shawn.lin@rock-chips.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org >
2025-10-28 17:20:17 +01:00
Bhupesh Sharma
0c9c501a87
ufs: Add Support for Qualcomm UFS HC driver
...
Add Support for the Host Controller driver for UFS HC
present on Qualcomm Snapdragon SoCs.
It has been successfully tested on SDM845, SM8250,
SM8550 ant SM8650 SoCs.
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org >
Tested-by: Julius Lehmann <lehmanju@devpi.de >
Tested-by: Caleb Connolly <caleb.connolly@linaro.org > #rb3gen2
Link: https://lore.kernel.org/r/20240910-topic-ufs-qcom-controller-v1-4-54c0d2231b10@linaro.org
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org >
2024-10-14 08:56:03 +02:00
Venkatesh Yadav Abbarapu
b5ac5f0307
ufs: ufs-amd-versal2: Add support for AMD UFS controller
...
Add UFS AMD platform support on top of the UFS DWC
and UFS platform driver. UFS AMD platform requires
some platform specific configurations like M-PHY/RMMI/UniPro
and vendor specific registers programming before doing the LINKSTARTUP.
Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com >
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org >
Link: https://lore.kernel.org/r/20240920041651.18173-3-venkatesh.abbarapu@amd.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org >
2024-10-14 08:55:35 +02:00
Tom Rini
d6e052c615
Merge patch series "ufs: Add a PCI UFS controller support"
...
To quote the author:
This adds a PCI UFS controller support and enables the support on
QEMU RISC-V for testing.
Requiring QEMU v8.2+.
2023-11-27 16:19:09 -05:00
Bin Meng
2ec7d657c0
ufs: Add a PCI based UFS controller driver
...
This adds a simple PCI based UFS controller driver with a QEMU
emulated UFS controller on the PCI bus.
Requiring QEMU v8.2+.
Signed-off-by: Bin Meng <bmeng@tinylab.org >
Reviewed-by: Neha Malcom Francis <n-francis@ti.com >
Reviewed-by: Simon Glass <sjg@chromium.org >
2023-11-27 16:18:59 -05:00
Nishanth Menon
a94a4071d4
tree-wide: Replace http:// link with https:// link for ti.com
...
Replace instances of http://www.ti.com with https://www.ti.com
Signed-off-by: Nishanth Menon <nm@ti.com >
2023-11-10 11:01:50 -05:00
Marek Vasut
19f627ecea
ufs: ufs-renesas: Add support for Renesas R-Car UFS controller
...
Add support for Renesas R-Car UFS controller which needs vendor-specific
initialization.
Ported from Linux kernel as of commit
c2ab666072bc ("scsi: ufs: Explicitly include correct DT includes")
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
Reviewed-by: Tom Rini <trini@konsulko.com >
2023-09-09 04:53:31 +02:00
Faiz Abbas
4390eaf676
ufs: Add glue layer driver for TI J721E devices
...
Add glue layer driver for the controller present on TI's J721E devices.
Signed-off-by: Faiz Abbas <faiz_abbas@ti.com >
2019-10-23 20:47:12 -04:00
Faiz Abbas
ef5fb5a84c
ufs: Add Support for Cadence platform UFS driver
...
Add Support for the platform driver for the Cadence device present on
TI's J721e device.
Signed-off-by: Faiz Abbas <faiz_abbas@ti.com >
2019-10-23 20:47:12 -04:00
Faiz Abbas
7feafb0ae4
ufs: Add Initial Support for UFS subsystem
...
Add Support for UFS Host Controller Interface (UFSHCI) for communicating
with Universal Flash Storage (UFS) devices. The steps to initialize the
host controller interface are the following:
- Initiate the Host Controller Initialization process by writing to the
Host controller enable register.
- Configure the Host Controller base address registers by allocating a
host memory space and related data structures.
- Unipro link startup procedure
- Check for connected device
- Configure UFS host controller to process requests
Also register this host controller as a SCSI host controller.
Taken from Linux Kernel v5.2 (drivers/scsi/ufs/ufshcd.c) and ported to
U-boot.
Signed-off-by: Faiz Abbas <faiz_abbas@ti.com >
2019-10-23 20:47:12 -04:00