drivers: flash: silabs: replace 'depends on DMA' with 'select'
When a driver requires the usage of a low level driver subsystem (like SPI, I2C, DMA...), it shall enable it instead of depending on it. Also, make DMA usage depend on its DT properties being defined. Signed-off-by: Abderrahmane JARMOUNI <git@jarmouni.me>
This commit is contained in:
committed by
Fabio Baltieri
parent
6d9ded6651
commit
fe039cb07b
@@ -17,11 +17,13 @@ if SOC_FLASH_SILABS_S2
|
||||
|
||||
config SOC_FLASH_SILABS_S2_DMA_WRITE
|
||||
bool "Use DMA for flash write operations"
|
||||
depends on DMA
|
||||
default y if $(dt_compat_any_has_prop,$(DT_COMPAT_SILABS_SERIES2_FLASH_CONTROLLER),dmas)
|
||||
default y
|
||||
select DMA
|
||||
depends on $(dt_compat_any_has_prop,$(DT_COMPAT_SILABS_SERIES2_FLASH_CONTROLLER),dmas)
|
||||
|
||||
config SOC_FLASH_SILABS_S2_DMA_READ
|
||||
bool "Use DMA for flash read operations"
|
||||
depends on DMA
|
||||
select DMA
|
||||
depends on $(dt_compat_any_has_prop,$(DT_COMPAT_SILABS_SERIES2_FLASH_CONTROLLER),dmas)
|
||||
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user