mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
cadence_qspi: Update the delays for flash reset
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 <venkatesh.abbarapu@amd.com> Signed-off-by: Michal Simek <michal.simek@amd.com> Link: https://lore.kernel.org/r/3fd0641a164a4d628fdf28a94771829f3bf9cb0c.1764181308.git.michal.simek@amd.com
This commit is contained in:
committed by
Michal Simek
parent
857a3b49c3
commit
b6391d1d9b
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user