2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2019-02-15 21:42:39 +08:00
|
|
|
config SOC_FLASH_MCUX
|
|
|
|
bool "MCUX flash shim driver"
|
2019-11-12 20:40:23 +08:00
|
|
|
depends on (HAS_MCUX_FTFX || HAS_MCUX_IAP)
|
2019-02-15 21:42:39 +08:00
|
|
|
select FLASH_HAS_PAGE_LAYOUT
|
|
|
|
select FLASH_HAS_DRIVER_ENABLED
|
|
|
|
help
|
|
|
|
Enables the MCUX flash shim driver.
|
|
|
|
WARNING: This driver will disable the system interrupts for
|
|
|
|
the duration of the flash erase/write operations. This will
|
|
|
|
have an impact on the overall system performance - whether
|
|
|
|
this is acceptable or not will depend on the use case.
|
2020-05-11 22:40:53 +08:00
|
|
|
|
|
|
|
if SOC_FLASH_MCUX
|
|
|
|
|
|
|
|
config CHECK_BEFORE_READING
|
|
|
|
bool "Verify area before reading it"
|
|
|
|
default y if SOC_SERIES_LPC55XXX
|
|
|
|
help
|
|
|
|
Do a margin check flash command before reading an area.
|
|
|
|
This feature prevents erroneous/forbidden reading. Some ECC enabled
|
|
|
|
devices will crash when reading an erased or wrongly programmed area.
|
|
|
|
|
|
|
|
endif # SOC_FLASH_MCUX
|
2020-12-18 10:55:28 +08:00
|
|
|
|
|
|
|
if HAS_MCUX_FLEXSPI
|
|
|
|
|
|
|
|
config FLASH_MCUX_FLEXSPI_NOR
|
|
|
|
bool "MCUX FlexSPI NOR driver"
|
|
|
|
select FLASH_HAS_PAGE_LAYOUT
|
|
|
|
select FLASH_HAS_DRIVER_ENABLED
|
|
|
|
select FLASH_MCUX_FLEXSPI
|
|
|
|
|
|
|
|
config FLASH_MCUX_FLEXSPI
|
|
|
|
bool
|
|
|
|
|
|
|
|
endif # HAS_MCUX_FLEXSPI
|