mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 07:31:15 +00:00
ufs: Handle UFS 3.1 controllers
Extend the version check to handle UFS 3.1 controllers as well. Tested on QEMU emulated UFS 3.1 controller. Signed-off-by: Bin Meng <bmeng@tinylab.org> Reviewed-by: Neha Malcom Francis <n-francis@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
2ec7d657c0
commit
5b2d25a2e3
2 changed files with 3 additions and 1 deletions
|
@ -1953,7 +1953,8 @@ int ufshcd_probe(struct udevice *ufs_dev, struct ufs_hba_ops *hba_ops)
|
|||
hba->version != UFSHCI_VERSION_11 &&
|
||||
hba->version != UFSHCI_VERSION_20 &&
|
||||
hba->version != UFSHCI_VERSION_21 &&
|
||||
hba->version != UFSHCI_VERSION_30)
|
||||
hba->version != UFSHCI_VERSION_30 &&
|
||||
hba->version != UFSHCI_VERSION_31)
|
||||
dev_err(hba->dev, "invalid UFS version 0x%x\n",
|
||||
hba->version);
|
||||
|
||||
|
|
|
@ -782,6 +782,7 @@ enum {
|
|||
UFSHCI_VERSION_20 = 0x00000200, /* 2.0 */
|
||||
UFSHCI_VERSION_21 = 0x00000210, /* 2.1 */
|
||||
UFSHCI_VERSION_30 = 0x00000300, /* 3.0 */
|
||||
UFSHCI_VERSION_31 = 0x00000310, /* 3.1 */
|
||||
};
|
||||
|
||||
/* Interrupt disable masks */
|
||||
|
|
Loading…
Reference in a new issue