]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ufs: allow UFSHCI version 4.0
authorNeil Armstrong <neil.armstrong@linaro.org>
Tue, 10 Sep 2024 09:50:12 +0000 (11:50 +0200)
committerNeil Armstrong <neil.armstrong@linaro.org>
Mon, 14 Oct 2024 06:56:03 +0000 (08:56 +0200)
Add UFSHCI version 4.0 found on the recent Qualcomm UFS Controllers.

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-3-54c0d2231b10@linaro.org
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
drivers/ufs/ufs.c
drivers/ufs/ufs.h

index 1edd31677b28e57f7af4bab73b04f973cc0b3b07..f7d8c40c448c6865b7c04e03bab6f3f93a44a591 100644 (file)
@@ -1974,7 +1974,8 @@ int ufshcd_probe(struct udevice *ufs_dev, struct ufs_hba_ops *hba_ops)
            hba->version != UFSHCI_VERSION_20 &&
            hba->version != UFSHCI_VERSION_21 &&
            hba->version != UFSHCI_VERSION_30 &&
-           hba->version != UFSHCI_VERSION_31)
+           hba->version != UFSHCI_VERSION_31 &&
+           hba->version != UFSHCI_VERSION_40)
                dev_err(hba->dev, "invalid UFS version 0x%x\n",
                        hba->version);
 
index 81107e5b37eadac3fae18a865e625890832531d9..00ecca350c350cc930d9056aba8ada0475a280dd 100644 (file)
@@ -948,6 +948,7 @@ enum {
        UFSHCI_VERSION_21 = 0x00000210, /* 2.1 */
        UFSHCI_VERSION_30 = 0x00000300, /* 3.0 */
        UFSHCI_VERSION_31 = 0x00000310, /* 3.1 */
+       UFSHCI_VERSION_40 = 0x00000400, /* 4.0 */
 };
 
 /* Interrupt disable masks */