]> git.baikalelectronics.ru Git - uboot.git/commit
spi: cadence_qspi: setup ADDR Bits in cmd reads
authorDhruva Gole <d-gole@ti.com>
Tue, 3 Jan 2023 06:31:11 +0000 (12:01 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Thu, 26 Jan 2023 15:31:01 +0000 (21:01 +0530)
commit6edd12a83760d5c6df3ddbb2fc2d671a85c3d81b
tree3f33d7822e32622414a6cb06bb7a8eb265c91330
parent9946a1beda313f377cda75829a15d4afd4aeebe1
spi: cadence_qspi: setup ADDR Bits in cmd reads

Setup the Addr bit field while issuing register reads in STIG mode. This
is needed for example flashes like cypress define in their transaction
table that to read any register there is 1 cmd byte and a few more address
bytes trailing the cmd byte. Absence of addr bytes will obviously fail
to read correct data from flash register that maybe requested by flash
driver because the controller doesn't even specify which address of the
flash register the read is being requested from.

Signed-off-by: Dhruva Gole <d-gole@ti.com>
Reviewed-by: Pratyush Yadav <pratyush@kernel.org>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/spi/cadence_qspi_apb.c