From: Venkatesh Yadav Abbarapu <[email protected]>

Updating the delays for flash reset in the mini u-boot case.
These experimental delay values by looking at different flash device
vendors datasheets.

Signed-off-by: Venkatesh Yadav Abbarapu <[email protected]>
Signed-off-by: Michal Simek <[email protected]>
---

 drivers/spi/cadence_ospi_versal.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/spi/cadence_ospi_versal.c 
b/drivers/spi/cadence_ospi_versal.c
index 0efbbf56a5e3..e3ddf127e5a8 100644
--- a/drivers/spi/cadence_ospi_versal.c
+++ b/drivers/spi/cadence_ospi_versal.c
@@ -178,15 +178,15 @@ int cadence_qspi_flash_reset(struct udevice *dev)
 
        /* Disable Tri-state */
        writel((readl(BANK0_TRI) & ~BIT(FLASH_RESET_GPIO)), BANK0_TRI);
-       udelay(1);
+       udelay(5);
 
        /* Set value 0 to pin */
        writel((readl(BANK0_OUTPUT) & ~BIT(FLASH_RESET_GPIO)), BANK0_OUTPUT);
-       udelay(10);
+       udelay(150);
 
        /* Set value 1 to pin */
        writel((readl(BANK0_OUTPUT) | BIT(FLASH_RESET_GPIO)), BANK0_OUTPUT);
-       udelay(10);
+       udelay(1200);
 
        return 0;
 }
-- 
2.43.0

base-commit: 5f6d6db9c301daf10ddb707a9031f1a467d6ebf1
branch: debian-sent3

Reply via email to