spi: cadence-quadspi: Use STIG mode for all ops with small payload
authorApurva Nandan <a-nandan@ti.com>
Wed, 12 Apr 2023 10:58:55 +0000 (16:28 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Wed, 26 Apr 2023 08:07:14 +0000 (13:37 +0530)
commit8077d296adff235e13c1478f92ef42c08e17ec33
tree74cda649b79b9967a4505f5787d635d5587e43b2
parent44e2de0480a8a5a5780b6b200935a96b961b94e7
spi: cadence-quadspi: Use STIG mode for all ops with small payload

OSPI controller supports all types of op variants in STIG mode,
only limitation being that the data payload should be less than
8 bytes when not using memory banks.

STIG mode is more stable for operations that send small data
payload and is more efficient than using DMA for few bytes of
memory accesses. It overcomes the limitation of minimum 4 bytes
read from flash into RAM seen in DAC mode.

Use STIG mode for all read and write operations that require
data input/output of less than 8 bytes from the flash, and thereby
support all four phases, cmd/address/dummy/data, through OSPI STIG.

Also, remove the reorder address chunk in apb_command_write since we now
setup ADDR BIT field that does the same job in a cleaner way.

Signed-off-by: Apurva Nandan <a-nandan@ti.com>
Signed-off-by: Dhruva Gole <d-gole@ti.com>
Acked-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/spi/cadence_qspi.c
drivers/spi/cadence_qspi_apb.c