GD25 Flash memory - performance enhancements

This commit is contained in:
TimJTi
2023-05-23 01:32:58 +08:00
committed by Xiang Xiao
parent a043657323
commit 3cb168b177
2 changed files with 36 additions and 0 deletions
+32
View File
@@ -1165,6 +1165,38 @@ config GD25_SLOWREAD
bool
default n
config GD25_START_DELAY
int "GD25 startdelay"
---help---
The delay between CS active and first CLK. In ns.
depends on SPI_DELAY_CONTROL
range 0 1000000
default 5000
config GD25_STOP_DELAY
int "GD25 stopdelay"
---help---
The delay between last CLK and CS inactive. In ns.
depends on SPI_DELAY_CONTROL
range 0 1000000
default 5000
config GD25_CS_DELAY
int "GD25 csdelay"
---help---
The delay between CS inactive and CS active again. In ns.
depends on SPI_DELAY_CONTROL
range 0 1000000
default 5000
config GD25_IFDELAY
int "GD25 ifdelay"
---help---
The delay between frames. In ns.
depends on SPI_DELAY_CONTROL
range 0 1000000
default 5000
endif # MTD_GD25
config MTD_GD5F
+4
View File
@@ -230,6 +230,10 @@ static void gd25_lock(FAR struct spi_dev_s *spi)
SPI_SETBITS(spi, 8);
SPI_HWFEATURES(spi, 0);
SPI_SETFREQUENCY(spi, CONFIG_GD25_SPIFREQUENCY);
#ifdef CONFIG_SPI_DELAY_CONTROL
SPI_SETDELAY(spi, CONFIG_GD25_START_DELAY, CONFIG_GD25_STOP_DELAY,
CONFIG_GD25_CS_DELAY, CONFIG_GD25_IFDELAY);
#endif
}
/***************************************************************************