kconfig: flash: Move nios code into it's own file
Cleanup the Kconfig code for the flash driver. Platform-specific options should be in their own Kconfig files to be consistent and to not pollute the common configuration. To this end we move the nios2 options into it's own file. Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
This commit is contained in:
parent
3f4a64cd4e
commit
ae846dce75
2 changed files with 14 additions and 13 deletions
|
@ -78,19 +78,7 @@ config SOC_FLASH_MCUX
|
|||
have an impact on the overall system performance - whether
|
||||
this is acceptable or not will depend on the use case.
|
||||
|
||||
config SOC_FLASH_NIOS2_QSPI
|
||||
bool "Nios-II QSPI flash driver"
|
||||
depends on HAS_ALTERA_HAL
|
||||
select FLASH_HAS_DRIVER_ENABLED
|
||||
help
|
||||
Enables the Nios-II QSPI flash driver.
|
||||
|
||||
config SOC_FLASH_NIOS2_QSPI_DEV_NAME
|
||||
string "Nios-II QSPI flash device name"
|
||||
depends on SOC_FLASH_NIOS2_QSPI
|
||||
default "NIOS2_QSPI_FLASH"
|
||||
help
|
||||
Specify the device name for the QSPI flash driver.
|
||||
source "drivers/flash/Kconfig.nios2_qspi"
|
||||
|
||||
source "drivers/flash/Kconfig.gecko"
|
||||
|
||||
|
|
13
drivers/flash/Kconfig.nios2_qspi
Normal file
13
drivers/flash/Kconfig.nios2_qspi
Normal file
|
@ -0,0 +1,13 @@
|
|||
config SOC_FLASH_NIOS2_QSPI
|
||||
bool "Nios-II QSPI flash driver"
|
||||
depends on HAS_ALTERA_HAL
|
||||
select FLASH_HAS_DRIVER_ENABLED
|
||||
help
|
||||
Enables the Nios-II QSPI flash driver.
|
||||
|
||||
config SOC_FLASH_NIOS2_QSPI_DEV_NAME
|
||||
string "Nios-II QSPI flash device name"
|
||||
depends on SOC_FLASH_NIOS2_QSPI
|
||||
default "NIOS2_QSPI_FLASH"
|
||||
help
|
||||
Specify the device name for the QSPI flash driver.
|
Loading…
Add table
Add a link
Reference in a new issue