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-01-29 02:32:26 +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
|
|
|
|
|
|
|
config SPI_NOR_PAGE_SIZE
|
|
|
|
int "Page size of SPI flash"
|
|
|
|
default 0
|
|
|
|
help
|
|
|
|
This option specifies page size of SPI flash
|
|
|
|
|
|
|
|
config SPI_NOR_SECTOR_SIZE
|
|
|
|
int "Sector size of SPI flash"
|
|
|
|
default 0
|
|
|
|
help
|
|
|
|
This option specifies sector size of SPI flash
|
|
|
|
|
|
|
|
endif # SPI_NOR
|