From 968f674c668d6a2c43a5720f2ec1cff44dae2bad Mon Sep 17 00:00:00 2001 From: Richard Wheatley Date: Thu, 5 Sep 2024 16:44:02 -0500 Subject: [PATCH] drivers: serial: ambiq uart update The number of modules is different for each soc. There is a macro in the HAL that should have been used. Signed-off-by: Richard Wheatley --- drivers/serial/uart_pl011_ambiq.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/uart_pl011_ambiq.h b/drivers/serial/uart_pl011_ambiq.h index 181a020614a..5efb0e5e62c 100644 --- a/drivers/serial/uart_pl011_ambiq.h +++ b/drivers/serial/uart_pl011_ambiq.h @@ -69,7 +69,7 @@ typedef struct { uint32_t regIFLS; uint32_t regIER; } uart_register_state_t; -static uart_register_state_t sRegState[2]; +static uart_register_state_t sRegState[AM_REG_UART_NUM_MODULES]; static int uart_ambiq_pm_action(const struct device *dev, enum pm_device_action action) {