stm32h7/Kconfig: hide STM32H7_SPI_DMA option and select it automatically

This commit is contained in:
raiden00pl 2022-07-15 19:34:54 +02:00 committed by Petro Karashchenko
parent cb94579ab7
commit 6aef19617b
1 changed files with 22 additions and 18 deletions

View File

@ -443,6 +443,10 @@ config STM32H7_SPI
bool
default n
config STM32H7_SPI_DMA
bool
default n
config STM32H7_TIM
bool
default n
@ -954,12 +958,6 @@ config STM32H7_SPI_INTERRUPTS
poll-waiting is recommended if the interrupt rate would be to high in
the interrupt driven case.
config STM32H7_SPI_DMA
bool "SPI DMA"
default n
---help---
Use DMA to improve SPI transfer performance. Cannot be used with STM32H7_SPI_INTERRUPT.
config STM32H7_SPI_DMATHRESHOLD
int "SPI DMA threshold"
default 4
@ -972,9 +970,10 @@ config STM32H7_SPI_DMATHRESHOLD
config STM32H7_SPI1_DMA
bool "SPI1 DMA"
default n
depends on STM32H7_SPI1 && STM32H7_SPI_DMA
depends on STM32H7_SPI1 && !STM32H7_SPI_INTERRUPT
select STM32H7_SPI_DMA
---help---
Use DMA to improve SPI1 transfer performance.
Use DMA to improve SPI1 transfer performance. Cannot be used with STM32H7_SPI_INTERRUPT
config STM32H7_SPI1_DMA_BUFFER
int "SPI1 DMA buffer size"
@ -994,9 +993,10 @@ config STM32H7_SPI1_COMMTYPE
config STM32H7_SPI2_DMA
bool "SPI2 DMA"
default n
depends on STM32H7_SPI2 && STM32H7_SPI_DMA
depends on STM32H7_SPI2 && !STM32H7_SPI_INTERRUPT
select STM32H7_SPI_DMA
---help---
Use DMA to improve SPI2 transfer performance.
Use DMA to improve SPI2 transfer performance. Cannot be used with STM32H7_SPI_INTERRUPT
config STM32H7_SPI2_DMA_BUFFER
int "SPI2 DMA buffer size"
@ -1016,9 +1016,10 @@ config STM32H7_SPI2_COMMTYPE
config STM32H7_SPI3_DMA
bool "SPI3 DMA"
default n
depends on STM32H7_SPI3 && STM32H7_SPI_DMA
depends on STM32H7_SPI3 && !STM32H7_SPI_INTERRUPT
select STM32H7_SPI_DMA
---help---
Use DMA to improve SPI3 transfer performance.
Use DMA to improve SPI3 transfer performance. Cannot be used with STM32H7_SPI_INTERRUPT
config STM32H7_SPI3_DMA_BUFFER
int "SPI3 DMA buffer size"
@ -1038,9 +1039,10 @@ config STM32H7_SPI3_COMMTYPE
config STM32H7_SPI4_DMA
bool "SPI4 DMA"
default n
depends on STM32H7_SPI4 && STM32H7_SPI_DMA
depends on STM32H7_SPI4 && !STM32H7_SPI_INTERRUPT
select STM32H7_SPI_DMA
---help---
Use DMA to improve SPI4 transfer performance.
Use DMA to improve SPI4 transfer performance. Cannot be used with STM32H7_SPI_INTERRUPT
config STM32H7_SPI4_DMA_BUFFER
int "SPI4 DMA buffer size"
@ -1060,9 +1062,10 @@ config STM32H7_SPI4_COMMTYPE
config STM32H7_SPI5_DMA
bool "SPI5 DMA"
default n
depends on STM32H7_SPI5 && STM32H7_SPI_DMA
depends on STM32H7_SPI5 && !STM32H7_SPI_INTERRUPT
select STM32H7_SPI_DMA
---help---
Use DMA to improve SPI5 transfer performance.
Use DMA to improve SPI5 transfer performance. Cannot be used with STM32H7_SPI_INTERRUPT
config STM32H7_SPI5_DMA_BUFFER
int "SPI5 DMA buffer size"
@ -1082,9 +1085,10 @@ config STM32H7_SPI5_COMMTYPE
config STM32H7_SPI6_DMA
bool "SPI6 DMA"
default n
depends on STM32H7_SPI6 && STM32H7_SPI_DMA
depends on STM32H7_SPI6 && !STM32H7_SPI_INTERRUPT
select STM32H7_SPI_DMA
---help---
Use DMA to improve SPI6 transfer performance.
Use DMA to improve SPI6 transfer performance. Cannot be used with STM32H7_SPI_INTERRUPT
config STM32H7_SPI6_DMA_BUFFER
int "SPI6 DMA buffer size"