refactor(ufs): adds a function for fdeviceinit
time taken for device init varies based on different devices,
instead of waiting for 200ms - we can poll on fdevice init
until it gets cleared, similar to what linux does
Change-Id: I571649231732fde0cd6d5be89b6f14fe905fcaff
Signed-off-by: anans <anans@google.com>
diff --git a/include/drivers/ufs.h b/include/drivers/ufs.h
index c074e85..8930474 100644
--- a/include/drivers/ufs.h
+++ b/include/drivers/ufs.h
@@ -265,6 +265,8 @@
#define HCE_ENABLE_INNER_RETRIES 50
#define HCE_ENABLE_TIMEOUT_US 100
+#define FDEVICEINIT_TIMEOUT_MS 1500
+
/**
* ufs_dev_desc - ufs device details from the device descriptor
* @wmanufacturerid: card details