[components][sfud] update sfud options.
This commit is contained in:
parent
0dc7da688f
commit
15b10bd5e2
|
@ -224,6 +224,13 @@ config RT_USING_SPI
|
||||||
select RT_USING_QSPI
|
select RT_USING_QSPI
|
||||||
default n
|
default n
|
||||||
|
|
||||||
|
config RT_SFUD_SPI_MAX_HZ
|
||||||
|
int "Default spi maximum speed(HZ)"
|
||||||
|
range 0 50000000
|
||||||
|
default 50000000
|
||||||
|
help
|
||||||
|
Read the JEDEC SFDP command must run at 50 MHz or less,and you also can use rt_spi_configure(); to config spi speed.
|
||||||
|
|
||||||
config RT_DEBUG_SFUD
|
config RT_DEBUG_SFUD
|
||||||
bool "Show more SFUD debug information"
|
bool "Show more SFUD debug information"
|
||||||
default n
|
default n
|
||||||
|
|
|
@ -22,12 +22,17 @@
|
||||||
#endif /* RT_DEBUG_SFUD */
|
#endif /* RT_DEBUG_SFUD */
|
||||||
|
|
||||||
#ifndef RT_SFUD_DEFAULT_SPI_CFG
|
#ifndef RT_SFUD_DEFAULT_SPI_CFG
|
||||||
|
|
||||||
|
#ifndef RT_SFUD_SPI_MAX_HZ
|
||||||
|
#define RT_SFUD_SPI_MAX_HZ 50000000
|
||||||
|
#endif
|
||||||
|
|
||||||
/* read the JEDEC SFDP command must run at 50 MHz or less */
|
/* read the JEDEC SFDP command must run at 50 MHz or less */
|
||||||
#define RT_SFUD_DEFAULT_SPI_CFG \
|
#define RT_SFUD_DEFAULT_SPI_CFG \
|
||||||
{ \
|
{ \
|
||||||
.mode = RT_SPI_MODE_0 | RT_SPI_MSB, \
|
.mode = RT_SPI_MODE_0 | RT_SPI_MSB, \
|
||||||
.data_width = 8, \
|
.data_width = 8, \
|
||||||
.max_hz = 50 * 1000 * 1000, \
|
.max_hz = RT_SFUD_SPI_MAX_HZ, \
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue