serial: stm32: extend max number of U(S)ART to 9

STM32MP25x got 9 instances of U(S)ART. So extend STM32_MAX_PORTS to 9, in
order to handle all instances.

Signed-off-by: Valentin Caron <valentin.caron@foss.st.com>
Link: https://lore.kernel.org/r/20240112095300.2004878-3-valentin.caron@foss.st.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Valentin Caron
2024-01-12 10:52:58 +01:00
committed by Greg Kroah-Hartman
parent ec240f8893
commit 7316888fa4

View File

@@ -183,7 +183,7 @@ struct stm32_usart_info {
#define USART_PRESC_MAX 0b1011
#define STM32_SERIAL_NAME "ttySTM"
#define STM32_MAX_PORTS 8
#define STM32_MAX_PORTS 9
#define RX_BUF_L 4096 /* dma rx buffer length */
#define RX_BUF_P (RX_BUF_L / 2) /* dma rx buffer period */