forked from mirrors/linux
		
	spi: cadence-qspi: Improve spi memory performance
I do not know the controller enough to really understand what is happening under the hood, but most of the supported IPs just disable direct access without explicit reason. In practice we observe a significant speed improvement when using indirect mode, some kind of direct mapping, instead of DAC, Direct ACcess. Add the relevant quirk for all boards with the same defaults as AM654 to use INDAC (INDirect ACcess) instead. Speed tests show no change on the write speed on a SPI NAND chip clocked at 25MHz on the AM62A LP SK, but a read speed jumping from 3500kiB/s up to more than 10000kiB/s (approximately x3). Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://patch.msgid.link/20250305200933.2512925-3-miquel.raynal@bootlin.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
		
							parent
							
								
									b8665a1b49
								
							
						
					
					
						commit
						cce2200dac
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -2073,7 +2073,7 @@ static const struct cqspi_driver_platdata k2g_qspi = {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static const struct cqspi_driver_platdata am654_ospi = {
 | 
					static const struct cqspi_driver_platdata am654_ospi = {
 | 
				
			||||||
	.hwcaps_mask = CQSPI_SUPPORTS_OCTAL | CQSPI_SUPPORTS_QUAD,
 | 
						.hwcaps_mask = CQSPI_SUPPORTS_OCTAL | CQSPI_SUPPORTS_QUAD,
 | 
				
			||||||
	.quirks = CQSPI_NEEDS_WR_DELAY,
 | 
						.quirks = CQSPI_DISABLE_DAC_MODE | CQSPI_NEEDS_WR_DELAY,
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static const struct cqspi_driver_platdata intel_lgm_qspi = {
 | 
					static const struct cqspi_driver_platdata intel_lgm_qspi = {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue