cadence_qspi: Refactor the flash reset functionality
authorVenkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Fri, 8 Nov 2024 06:35:37 +0000 (12:05 +0530)
committerMichal Simek <michal.simek@amd.com>
Fri, 29 Nov 2024 12:21:17 +0000 (13:21 +0100)
commit6d234a79e9eb81cce0eed75227087c229f3c4e33
tree08af4910ba2d961b7c3d640b0bbd11e732b3e3cd
parent06ecbaae33111f792af96f94de5f8c43ccc47ebf
cadence_qspi: Refactor the flash reset functionality

As the flash reset is handled in spi nor core, removing the
flash reset functionality. As the configuration like tristate
and hysterisis need to be enabled by the cdo. Handle the flash
reset only for mini u-boot case.

Rename the "cadence_qspi_versal_flash_reset" to generic name
"cadence_qspi_flash_reset" as this can be used by other platforms
as well.

Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Link: https://lore.kernel.org/r/20241108063537.13180-1-venkatesh.abbarapu@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
drivers/spi/cadence_ospi_versal.c
drivers/spi/cadence_qspi.c