d7513fb526
Workaround for DMAT errata was applied on all SoCs declaring STM32U5 DMA compatible. This errata has been fixed in later SoCs revisions and should not be applied anymore as this can cause compatibility issues with power mgmt (can not enter STOP1 in some cases). Declare a specific Kconfig symbol to restrict the workaround only to the set of SoCs impacted by the issue and requiring workaround. Note that I preferred using Kconfig over device tree since it doesn't feel right to declare a compatible on a silicon bug base. Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
# STM32 UART configuration
|
|
|
|
# Copyright (c) 2016 Open-RnD Sp. z o.o.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config UART_STM32
|
|
bool "STM32 MCU serial driver"
|
|
default y
|
|
depends on DT_HAS_ST_STM32_UART_ENABLED
|
|
select SERIAL_HAS_DRIVER
|
|
select SERIAL_SUPPORT_INTERRUPT
|
|
# the ASYNC implementation requires a DMA controller
|
|
select SERIAL_SUPPORT_ASYNC \
|
|
if DT_HAS_ST_STM32_DMA_V1_ENABLED || \
|
|
DT_HAS_ST_STM32_DMA_V2_ENABLED || \
|
|
DT_HAS_ST_STM32_DMA_V2BIS_ENABLED || \
|
|
DT_HAS_ST_STM32U5_DMA_ENABLED
|
|
select DMA if UART_ASYNC_API
|
|
select RESET
|
|
help
|
|
This option enables the UART driver for STM32 family of
|
|
processors.
|
|
Say y if you wish to use serial port on STM32 MCU.
|
|
|
|
if UART_STM32
|
|
|
|
config UART_STM32U5_ERRATA_DMAT
|
|
bool
|
|
default y
|
|
depends on SOC_STM32U575XX || SOC_STM32U585XX || \
|
|
SOC_STM32H562XX || SOC_STM32H563XX || SOC_STM32H573XX
|
|
help
|
|
Handles erratum "USART does not generate DMA requests after
|
|
setting/clearing DMAT bit".
|
|
Seen in Errata Sheet 0499 § 2.19.2 and §2.20.1 for stm32u57x/u58x,
|
|
Errata Sheet 0565 § 2.14.1 and §2.15.1 for stm32h56x/h57x
|
|
|
|
endif
|