2018-11-12 23:36:24 +08:00
|
|
|
# Copyright (c) 2018 Savoir-Faire Linux.
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
menuconfig SPI_NOR
|
2019-02-27 04:12:10 +08:00
|
|
|
bool "SPI NOR Flash"
|
2018-11-12 23:36:24 +08:00
|
|
|
select FLASH_HAS_DRIVER_ENABLED
|
2019-03-07 12:45:23 +08:00
|
|
|
depends on SPI
|
2018-11-12 23:36:24 +08:00
|
|
|
|
|
|
|
if SPI_NOR
|
|
|
|
|
|
|
|
config SPI_NOR_INIT_PRIORITY
|
|
|
|
int
|
|
|
|
default 80
|
|
|
|
help
|
|
|
|
Device driver initialization priority.
|
|
|
|
Device is connected to SPI bus, it has to
|
|
|
|
be initialized after SPI driver.
|
|
|
|
|
2019-01-29 02:32:26 +08:00
|
|
|
config SPI_NOR_CS_WAIT_DELAY
|
|
|
|
int "Delay time in us"
|
2018-11-12 23:36:24 +08:00
|
|
|
default 0
|
|
|
|
help
|
2019-11-01 17:24:07 +08:00
|
|
|
This is the wait delay (in us) to allow for CS switching to take effect
|
2018-11-12 23:36:24 +08:00
|
|
|
|
2019-07-21 07:47:11 +08:00
|
|
|
config SPI_NOR_FLASH_LAYOUT_PAGE_SIZE
|
|
|
|
int "Page size to use for FLASH_LAYOUT feature"
|
|
|
|
default 65536
|
|
|
|
help
|
|
|
|
When CONFIG_FLASH_PAGE_LAYOUT is used this driver will support
|
|
|
|
that API. By default the page size corresponds to the block
|
|
|
|
size (65536). Other options include the 32K-byte erase size
|
2019-10-29 18:18:46 +08:00
|
|
|
(32768), the sector size (4096), or any non-zero multiple of the
|
|
|
|
sector size.
|
2019-07-21 07:47:11 +08:00
|
|
|
|
2019-10-28 01:57:09 +08:00
|
|
|
config SPI_NOR_IDLE_IN_DPD
|
|
|
|
bool "Use Deep Power-Down mode when flash is not being accessed."
|
|
|
|
help
|
|
|
|
Where supported deep power-down mode can reduce current draw
|
|
|
|
to as little as 0.1% of standby current. However it takes
|
|
|
|
some milliseconds to enter and exit from this mode.
|
|
|
|
|
|
|
|
Select this option for applications where device power
|
|
|
|
management is not enabled, the flash remains inactive for
|
|
|
|
long periods, and when used the impact of waiting for mode
|
|
|
|
enter and exit delays is acceptable.
|
|
|
|
|
2018-11-12 23:36:24 +08:00
|
|
|
endif # SPI_NOR
|