From 57897c13de03ac0136d64641a3eab526c6810387 Mon Sep 17 00:00:00 2001 From: Vignesh R Date: Wed, 21 Dec 2016 10:42:32 +0530 Subject: spi: cadence_qspi_apb: Use 32 bit indirect write transaction when possible According to Section 11.15.4.9.2 Indirect Write Controller of K2G SoC TRM SPRUHY8D[1], the external master is only permitted to issue 32-bit data interface writes until the last word of an indirect transfer otherwise indirect writes is known to fails sometimes. So, make sure that QSPI indirect writes are 32 bit sized except for the last write. If the txbuf is unaligned then use bounce buffer to avoid data aborts. So, now that the driver uses bounce_buffer, enable CONFIG_BOUNCE_BUFFER for all boards that use Cadence QSPI driver. [1]www.ti.com/lit/ug/spruhy8d/spruhy8d.pdf Signed-off-by: Vignesh R Reviewed-by: Marek Vasut Reviewed-by: Jagan Teki --- include/configs/k2g_evm.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/configs/k2g_evm.h') diff --git a/include/configs/k2g_evm.h b/include/configs/k2g_evm.h index e9e69a7805..fb8fbe4be4 100644 --- a/include/configs/k2g_evm.h +++ b/include/configs/k2g_evm.h @@ -77,6 +77,7 @@ #define CONFIG_CADENCE_QSPI #define CONFIG_CQSPI_REF_CLK 384000000 #define CONFIG_CQSPI_DECODER 0x0 +#define CONFIG_BOUNCE_BUFFER #endif #endif /* __CONFIG_K2G_EVM_H */ -- cgit v1.2.3