Skip to content
Commit bf8dae5f authored by T Karthik Reddy's avatar T Karthik Reddy Committed by Michal Simek
Browse files

spi: cadence-qspi: reset qspi flash for versal platform



When flash operated at non default mode like DDR, flash need to be reset
to operate in SDR mode to read flash ids by spi-nor framework. Reset the
flash to the default state before using the flash. This reset is handled
by a gpio driver, in case of mini U-Boot as gpio driver is disabled, we
do raw read and write access by the registers.
Versal platform utilizes spi calibration for read delay programming, so
incase by default read delay property is set in DT. We make sure not to
use read delay from DT by overwriting read_delay with -1.

Signed-off-by: default avatarT Karthik Reddy <t.karthik.reddy@xilinx.com>
Signed-off-by: default avatarAshok Reddy Soma <ashok.reddy.soma@xilinx.com>
Link: https://lore.kernel.org/r/20220512100535.16364-4-ashok.reddy.soma@xilinx.com


Signed-off-by: default avatarMichal Simek <michal.simek@amd.com>
parent cf553bf2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment