History log of /rk3399_rockchip-uboot/drivers/ufs/ufs.c (Results 1 – 21 of 21)
Revision Date Author Comments
# 0adb93ae 20-Feb-2025 Yifeng Zhao <yifeng.zhao@rock-chips.com>

ufs: add quirk set for micron ufs 2.2

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I66a8dd53cd94fdd8cba05255db2b0b6cf51d3548


# bdb116e3 09-Jan-2025 Yifeng Zhao <yifeng.zhao@rock-chips.com>

ufs: add quirk set for hg ufs 2.2

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: Id340860656e7e7b7a60f1aaec7b2d38f441d6527


# 840f624d 23-Sep-2024 Yifeng Zhao <yifeng.zhao@rock-chips.com>

ufs: rockchip: remove ufs power support test code

1. Delaying the initialization of phy can solve the problem of
UFS initialization getting stuck when phy is not powered on.
2. Config linkup timeout

ufs: rockchip: remove ufs power support test code

1. Delaying the initialization of phy can solve the problem of
UFS initialization getting stuck when phy is not powered on.
2. Config linkup timeout to 150ms.
3. Config NOP_OUT_TIMEOUT to 1500ms.
4. Add retry for dev init.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I7b3dc1d3245e27626ab81f0807146b7e05507f27

show more ...


# 8532be35 09-Sep-2024 Yifeng Zhao <yifeng.zhao@rock-chips.com>

ufs: rockchip: optimize the MPHY power detection mechanism

Some UFS particles do not support multiple execution of linkup.
This patch has been modified to only be done once.

Signed-off-by: Yifeng Z

ufs: rockchip: optimize the MPHY power detection mechanism

Some UFS particles do not support multiple execution of linkup.
This patch has been modified to only be done once.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: Id8ff8e7c1cd246f07e2d9fce18dfe9bd5c83a653

show more ...


# fb526a24 15-Aug-2024 Yifeng Zhao <yifeng.zhao@rock-chips.com>

ufs: add quirk config for some devices

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: Ib81511bcb3c9c59021f0a1281646d2cb52d0f389


# c16ecc08 25-Jun-2024 Yifeng Zhao <yifeng.zhao@rock-chips.com>

ufs: add rpmb support for rk3576

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: Ia719c3351b898a1ebf6835df4e2e4053a868c0b7


# a18f1d98 04-Jun-2024 Yifeng Zhao <yifeng.zhao@rock-chips.com>

Revert "ufs: rockchip: remove ufs power support test code"

This reverts commit 2cdac94816d3a1964ee02fb3ac0369d61508541b.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I128cd981

Revert "ufs: rockchip: remove ufs power support test code"

This reverts commit 2cdac94816d3a1964ee02fb3ac0369d61508541b.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I128cd981d30991e658d9fab3f4e1961954a52a4f

show more ...


# 2cdac948 11-May-2024 Yifeng Zhao <yifeng.zhao@rock-chips.com>

ufs: rockchip: remove ufs power support test code

1. Delaying the initialization of phy can solve the problem of
UFS initialization getting stuck when phy is not powered on.
2. Config linkup timeout

ufs: rockchip: remove ufs power support test code

1. Delaying the initialization of phy can solve the problem of
UFS initialization getting stuck when phy is not powered on.
2. Config linkup timeout to 100ms.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I6c9dbc793612a7659653b85b0aafb5a7aab50899

show more ...


# fa96a41a 12-Apr-2024 Yifeng Zhao <yifeng.zhao@rock-chips.com>

ufs: add to support ufs with PHISON controller

Test ready command is failed in ufs using PHISON controller,
and a workaround is required.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Cha

ufs: add to support ufs with PHISON controller

Test ready command is failed in ufs using PHISON controller,
and a workaround is required.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: Ic82dbff9a98b233e182dd6ea23f689aaa11a60b9

show more ...


# 700e0d00 07-Apr-2024 Yifeng Zhao <yifeng.zhao@rock-chips.com>

ufs: add retry while utp timeout

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: Id225d1671ec9fb3a054c2c657a1c5b3b454e76d9


# 1e6560df 11-Apr-2024 Yifeng Zhao <yifeng.zhao@rock-chips.com>

rockchip: usbplug: ufs: add ref clock config to 26Mhz

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I7fb9f03824460420a07a0d32fd2e8707dbc41708


# 44374e40 07-Apr-2024 Yifeng Zhao <yifeng.zhao@rock-chips.com>

drivers: ufs: poll for max. 1500ms for fDeviceInit flag to clear

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: Ie3ed28df73fe1604aa8781abc5559a65d1822442


# 63e1d60d 13-Mar-2024 Yifeng Zhao <yifeng.zhao@rock-chips.com>

ufs: rockchip: add ufs power supply test for usbplug

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I4b7e91cc77ebb023df81d60f99d24bba3e1aff2d


# d0f3c250 04-Mar-2024 Yifeng Zhao <yifeng.zhao@rock-chips.com>

drivers: ufs: add retry for test unit ready command

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I98901eb79dce9bbd2c647a166625d12c5831c2c0


# befc4b64 04-Mar-2024 Yifeng Zhao <yifeng.zhao@rock-chips.com>

drivers: ufs: fix spec version judgment for ufs 2.1

The specification version is stored on the large end

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I91348caa5a1dcb74de22c44b

drivers: ufs: fix spec version judgment for ufs 2.1

The specification version is stored on the large end

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I91348caa5a1dcb74de22c44b0f1b52b0250969c9

show more ...


# b0da7222 01-Mar-2024 Yifeng Zhao <yifeng.zhao@rock-chips.com>

ufs: add support ufs 2.1

Do not include the Lun parameter in the SCSI command for
MICRON UFS 2.1 device, Otherwise, unable to access boot
partition.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chi

ufs: add support ufs 2.1

Do not include the Lun parameter in the SCSI command for
MICRON UFS 2.1 device, Otherwise, unable to access boot
partition.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: Ic312ba24dca150f75a3c6b04d28c9be473b7b8a5

show more ...


# 2c3d2faa 29-Feb-2024 Yifeng Zhao <yifeng.zhao@rock-chips.com>

drivers: ufs: support create partition and set boot partition

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I84afcf20500b4db15308f39ec9a7bb573be42f55


# ec622ba8 27-Feb-2024 Yifeng Zhao <yifeng.zhao@rock-chips.com>

drivers: ufs: synchronize upstream code

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: Ie8d0a0915e290b0e6d134a0d84653d63ae695914


# c926a6ba 16-Aug-2023 Marek Vasut <marek.vasut+renesas@mailbox.org>

ufs: Implement cache management

Add function to flush and invalidate cache over request and response
queue entries, and perform flush and optional invalidate over block
layer data that are passed in

ufs: Implement cache management

Add function to flush and invalidate cache over request and response
queue entries, and perform flush and optional invalidate over block
layer data that are passed into the UFS layer. This makes it possible
to use UFS with caches enabled.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
Tested-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
Change-Id: I0d9da79089f160f6946ae3620d079f892c32ed2b
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>

show more ...


# e8ff63f6 02-Jul-2023 Bhupesh Sharma <bhupesh.sharma@linaro.org>

ufs: Use 'TASK_TAG' to construct the ucd_req_ptr->header.dword_0

Instead of using the hard-coded value of 0x1f, use 'TASK_TAG'
macro instead to construct the ucd_req_ptr->header.dword_0

This is in

ufs: Use 'TASK_TAG' to construct the ucd_req_ptr->header.dword_0

Instead of using the hard-coded value of 0x1f, use 'TASK_TAG'
macro instead to construct the ucd_req_ptr->header.dword_0

This is in sync with what the Linux UFS driver does, i.e.
set the byte0 equal to TASK_TAG (see [1]).

Setting it to a fixed value of 0x1f is wrong as we define
TASK_TAG as 0 inside u-boot ufs framework. So, instead we
should use the macro value directly.

[1]. https://github.com/torvalds/linux/blob/master/drivers/ufs/core/ufshcd.c#L2705

Change-Id: Ia8ec2d4ce0aedcda338a271fe9475cddcfe4f618
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>

show more ...


# 8f7de514 02-Feb-2023 Shawn Lin <shawn.lin@rock-chips.com>

ufs: backport ufs from upstream

Add ufs directory and cover some SCSI interface to fit for current
SCSI model.

Change-Id: I24c13fc494b1596905d9397a551b10f965dcb4dd
Signed-off-by: Shawn Lin <shawn.l

ufs: backport ufs from upstream

Add ufs directory and cover some SCSI interface to fit for current
SCSI model.

Change-Id: I24c13fc494b1596905d9397a551b10f965dcb4dd
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>

show more ...